@everymatrix/cashier-verifications 1.90.2 → 1.90.4

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,8 +1,8 @@
1
- "use strict";var Pi=Object.defineProperty,Hi=Object.defineProperties;var Ai=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var Bi=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable;var dt=(e,t,r)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))Bi.call(t,r)&&dt(e,r,t[r]);if(Gt)for(var r of Gt(t))Mi.call(t,r)&&dt(e,r,t[r]);return e},zt=(e,t)=>Hi(e,Ai(t));var Q=(e,t,r)=>(dt(e,typeof t!="symbol"?t+"":t,r),r);var Wt=(e,t,r)=>new Promise((i,n)=>{var o=u=>{try{a(r.next(u))}catch(l){n(l)}},s=u=>{try{a(r.throw(u))}catch(l){n(l)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(e,t)).next())});function ee(){}function $i(e,t){for(const r in t)e[r]=t[r];return e}function Tr(e){return e()}function Xt(){return Object.create(null)}function $e(e){e.forEach(Tr)}function Nt(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Ci(e){return Object.keys(e).length===0}function Or(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function qt(e,t,r){e.$$.on_destroy.push(Or(t,r))}function Li(e,t,r,i){if(e){const n=Pr(e,t,r,i);return e[0](n)}}function Pr(e,t,r,i){return e[1]&&i?$i(r.ctx.slice(),e[1](i(t))):r.ctx}function Ii(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const o=[],s=Math.max(t.dirty.length,n.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|n[a];return o}return t.dirty|n}return t.dirty}function Di(e,t,r,i,n,o){if(n){const s=Pr(t,r,i,o);e.p(s,n)}}function Ni(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function G(e,t){e.appendChild(t)}function Hr(e,t,r){const i=ki(e);if(!i.getElementById(t)){const n=X("style");n.id=t,n.textContent=r,Ri(i,n)}}function ki(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ri(e,t){return G(e.head||e,t),t.sheet}function oe(e,t,r){e.insertBefore(t,r||null)}function te(e){e.parentNode&&e.parentNode.removeChild(e)}function Ui(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function X(e){return document.createElement(e)}function De(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Rt(e){return document.createTextNode(e)}function ye(){return Rt(" ")}function Re(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function $(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function qe(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:$(e,t,r)}function Vi(e){return Array.from(e.childNodes)}function Ar(e,t){t=""+t,e.data!==t&&(e.data=t)}let Ye;function Fi(){if(Ye===void 0){Ye=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ye=!0}}return Ye}function Gi(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=X("iframe");i.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;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const n=Fi();let o;return n?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Re(window,"message",s=>{s.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{o=Re(i.contentWindow,"resize",t),t()}),G(e,i),()=>{(n||o&&i.contentWindow)&&o(),te(i)}}function le(e,t,r){e.classList.toggle(t,!!r)}function ji(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ue;function ke(e){Ue=e}function zi(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function Br(e){zi().$$.on_mount.push(e)}const Te=[],it=[];let Pe=[];const Yt=[],Mr=Promise.resolve();let wt=!1;function $r(){wt||(wt=!0,Mr.then(K))}function Wi(){return $r(),Mr}function nt(e){Pe.push(e)}const pt=new Set;let Ee=0;function K(){if(Ee!==0)return;const e=Ue;do{try{for(;Ee<Te.length;){const t=Te[Ee];Ee++,ke(t),Xi(t.$$)}}catch(t){throw Te.length=0,Ee=0,t}for(ke(null),Te.length=0,Ee=0;it.length;)it.pop()();for(let t=0;t<Pe.length;t+=1){const r=Pe[t];pt.has(r)||(pt.add(r),r())}Pe.length=0}while(Te.length);for(;Yt.length;)Yt.pop()();wt=!1,pt.clear(),ke(e)}function Xi(e){if(e.fragment!==null){e.update(),$e(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(nt)}}function qi(e){const t=[],r=[];Pe.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Pe=t}const Qe=new Set;let _e;function Yi(){_e={r:0,c:[],p:_e}}function Zi(){_e.r||$e(_e.c),_e=_e.p}function Cr(e,t){e&&e.i&&(Qe.delete(e),e.i(t))}function Ji(e,t,r,i){if(e&&e.o){if(Qe.has(e))return;Qe.add(e),_e.c.push(()=>{Qe.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function Zt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Qi(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),nt(()=>{const o=e.$$.on_mount.map(Tr).filter(Nt);e.$$.on_destroy?e.$$.on_destroy.push(...o):$e(o),e.$$.on_mount=[]}),n.forEach(nt)}function Ki(e,t){const r=e.$$;r.fragment!==null&&(qi(r.after_update),$e(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function en(e,t){e.$$.dirty[0]===-1&&(Te.push(e),$r(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lr(e,t,r,i,n,o,s=null,a=[-1]){const u=Ue;ke(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:n,bound:Xt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Xt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let f=!1;if(l.ctx=r?r(e,t.props||{},(h,m,...b)=>{const w=b.length?b[0]:m;return l.ctx&&n(l.ctx[h],l.ctx[h]=w)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](w),f&&en(e,h)),m}):[],l.update(),f=!0,$e(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const h=Vi(t.target);l.fragment&&l.fragment.l(h),h.forEach(te)}else l.fragment&&l.fragment.c();t.intro&&Cr(e.$$.fragment),Qi(e,t.target,t.anchor),K()}ke(u)}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=X("slot"),o!=="default"&&$(s,"name",o)},m:function(l,f){oe(l,s,f)},d:function(l){l&&te(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ji(this);for(const o of this.$$s)o in i&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ke(s,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:zt(jt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{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 s=Ke(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ke(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ke(e,t,r,i){var o;const n=(o=r[e])==null?void 0:o.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dr(e,t,r,i,n,o){let s=class extends Ir{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ke(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Nr{constructor(){Q(this,"$$");Q(this,"$$set")}$destroy(){Ki(this,1),this.$destroy=ee}$on(t,r){if(!Nt(r))return ee;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!Ci(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const tn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tn);const Se=[];function rn(e,t){return{subscribe:Ge(e,t).subscribe}}function Ge(e,t=ee){let r;const i=new Set;function n(a){if(kt(e,a)&&(e=a,r)){const u=!Se.length;for(const l of i)l[1](),Se.push(l,e);if(u){for(let l=0;l<Se.length;l+=2)Se[l][0](Se[l+1]);Se.length=0}}}function o(a){n(a(e))}function s(a,u=ee){const l=[a,u];return i.add(l),i.size===1&&(r=t(n,o)||ee),a(e),()=>{i.delete(l),i.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:s}}function Ce(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return rn(r,(s,a)=>{let u=!1;const l=[];let f=0,h=ee;const m=()=>{if(f)return;h();const w=t(i?l[0]:l,s,a);o?s(w):h=Nt(w)?w:ee},b=n.map((w,d)=>Or(w,I=>{l[d]=I,f&=~(1<<d),u&&m()},()=>{f|=1<<d}));return u=!0,m(),function(){$e(b),h(),u=!1}})}var kr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nn=function(t){return on(t)&&!sn(t)};function on(e){return!!e&&typeof e=="object"}function sn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ln(e)}var an=typeof Symbol=="function"&&Symbol.for,un=an?Symbol.for("react.element"):60103;function ln(e){return e.$$typeof===un}function cn(e){return Array.isArray(e)?[]:{}}function Ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?He(cn(e),e,t):e}function fn(e,t,r){return e.concat(t).map(function(i){return Ve(i,r)})}function hn(e,t){if(!t.customMerge)return He;var r=t.customMerge(e);return typeof r=="function"?r:He}function dn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Jt(e){return Object.keys(e).concat(dn(e))}function Rr(e,t){try{return t in e}catch(r){return!1}}function pn(e,t){return Rr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function mn(e,t,r){var i={};return r.isMergeableObject(e)&&Jt(e).forEach(function(n){i[n]=Ve(e[n],r)}),Jt(t).forEach(function(n){pn(e,n)||(Rr(e,n)&&r.isMergeableObject(t[n])?i[n]=hn(n,r)(e[n],t[n],r):i[n]=Ve(t[n],r))}),i}function He(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||fn,r.isMergeableObject=r.isMergeableObject||nn,r.cloneUnlessOtherwiseSpecified=Ve;var i=Array.isArray(t),n=Array.isArray(e),o=i===n;return o?i?r.arrayMerge(e,t,r):mn(e,t,r):Ve(t,r)}He.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return He(i,n,r)},{})};var vn=He,gn=vn;const bn=Ut(gn);var Et=function(e,t){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Et(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Et(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ne=function(){return ne=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ne.apply(this,arguments)};function yn(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function mt(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function vt(e,t){var r=t&&t.cache?t.cache:On,i=t&&t.serializer?t.serializer:Sn,n=t&&t.strategy?t.strategy:wn;return n(e,{cache:r,serializer:i})}function _n(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xn(e,t,r,i){var n=_n(i)?i:r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,i),t.set(n,o)),o}function Ur(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,i),t.set(n,o)),o}function Vr(e,t,r,i,n){return r.bind(t,e,i,n)}function wn(e,t){var r=e.length===1?xn:Ur;return Vr(e,this,r,t.cache.create(),t.serializer)}function En(e,t){return Vr(e,this,Ur,t.cache.create(),t.serializer)}var Sn=function(){return JSON.stringify(arguments)},Tn=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),On={create:function(){return new Tn}},gt={variadic:En},ot=function(){return ot=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ot.apply(this,arguments)};var A;(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"})(A||(A={}));var k;(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"})(k||(k={}));var Ae;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ae||(Ae={}));function Qt(e){return e.type===k.literal}function Pn(e){return e.type===k.argument}function Fr(e){return e.type===k.number}function Gr(e){return e.type===k.date}function jr(e){return e.type===k.time}function zr(e){return e.type===k.select}function Wr(e){return e.type===k.plural}function Hn(e){return e.type===k.pound}function Xr(e){return e.type===k.tag}function qr(e){return!!(e&&typeof e=="object"&&e.type===Ae.number)}function St(e){return!!(e&&typeof e=="object"&&e.type===Ae.dateTime)}var Yr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,An=/(?:[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 Bn(e){var t={};return e.replace(An,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===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"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-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=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-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"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-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"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<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 U=function(){return U=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},U.apply(this,arguments)};var Mn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $n(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Mn).filter(function(m){return m.length>0}),r=[],i=0,n=t;i<n.length;i++){var o=n[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,f=u;l<f.length;l++){var h=f[l];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Cn(e){return e.replace(/^(.*?)-/,"")}var Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zr=/^(@+)?(\+|#+)?[rs]?$/g,Ln=/(\*)(0+)|(#+)(0+)|(0+)/g,Jr=/^(0+)$/;function er(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zr,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function Qr(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 In(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Jr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function tr(e){var t={},r=Qr(e);return r||t}function Dn(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=Cn(n.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=U(U(U({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return U(U({},u),tr(l))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return U(U({},u),tr(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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Ln,function(u,l,f,h,m,b){if(l)t.minimumIntegerDigits=f.length;else{if(h&&m)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Jr.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Kt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Kt,function(u,l,f,h,m,b){return f==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:m&&b?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+b.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=n.options[0];o==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=U(U({},t),er(o)));continue}if(Zr.test(n.stem)){t=U(U({},t),er(n.stem));continue}var s=Qr(n.stem);s&&(t=U(U({},t),s));var a=In(n.stem);a&&(t=U(U({},t),a))}return t}var Ze={"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 Nn(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=kn(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;s-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function kn(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 r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=Ze[i||""]||Ze[r||""]||Ze["".concat(r,"-001")]||Ze["001"];return n[0]}var bt,Rn=new RegExp("^".concat(Yr.source,"*")),Un=new RegExp("".concat(Yr.source,"*$"));function M(e,t){return{start:e,end:t}}var Vn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fn=!!String.fromCodePoint,Gn=!!Object.fromEntries,jn=!!String.prototype.codePointAt,zn=!!String.prototype.trimStart,Wn=!!String.prototype.trimEnd,Xn=!!Number.isSafeInteger,qn=Xn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tt=!0;try{var Yn=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tt=((bt=Yn.exec("a"))===null||bt===void 0?void 0:bt[0])==="a"}catch(e){Tt=!1}var rr=Vn?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Ot=Fn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,o=0,s;n>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},ir=Gn?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var o=n[i],s=o[0],a=o[1];r[s]=a}return r},Kr=jn?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===i||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Zn=zn?function(t){return t.trimStart()}:function(t){return t.replace(Rn,"")},Jn=Wn?function(t){return t.trimEnd()}:function(t){return t.replace(Un,"")};function ei(e,t){return new RegExp(e,t)}var Pt;if(Tt){var nr=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=function(t,r){var i;nr.lastIndex=r;var n=nr.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Pt=function(t,r){for(var i=[];;){var n=Kr(t,r);if(n===void 0||ti(n)||to(n))break;i.push(n),r+=n>=65536?2:1}return Ot.apply(void 0,i)};var Qn=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:k.pound,location:M(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(A.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ht(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<".concat(n,"/>"),location:M(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ht(this.char()))return this.error(A.INVALID_TAG,M(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(A.UNMATCHED_CLOSING_TAG,M(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:n,children:s,location:M(i,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,M(a,this.clonePosition())))}else return this.error(A.UNCLOSED_TAG,M(i,this.clonePosition()))}else return this.error(A.INVALID_TAG,M(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&eo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var u=M(i,this.clonePosition());return{val:{type:k.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Kn(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 r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Ot.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Ot(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(A.EMPTY_ARGUMENT,M(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(A.MALFORMED_ARGUMENT,M(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:n,location:M(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(A.MALFORMED_ARGUMENT,M(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Pt(this.message,r),n=r+i.length;this.bumpTo(n);var o=this.clonePosition(),s=M(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,r,i,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,M(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var m=Jn(h.val);if(m.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var b=M(f,this.clonePosition());l={style:m,styleLocation:b}}var w=this.tryParseArgumentClose(n);if(w.err)return w;var d=M(n,this.clonePosition());if(l&&rr(l==null?void 0:l.style,"::",0)){var I=Zn(l.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(I,l.styleLocation);return h.err?h:{val:{type:k.number,value:i,location:d,style:h.val},err:null}}else{if(I.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,d);var N=I;this.locale&&(N=Nn(I,this.locale));var m={type:Ae.dateTime,pattern:N,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Bn(N):{}},H=a==="date"?k.date:k.time;return{val:{type:H,value:i,location:d,style:m},err:null}}}return{val:{type:a==="number"?k.number:a==="date"?k.date:k.time,value:i,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 T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,M(T,ot({},T)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),O=this.parseIdentifierIfPossible(),L=h.val}var P=this.tryParsePluralOrSelectOptions(t,a,r,O);if(P.err)return P;var w=this.tryParseArgumentClose(n);if(w.err)return w;var q=M(n,this.clonePosition());return a==="select"?{val:{type:k.select,value:i,options:ir(P.val),location:q},err:null}:{val:{type:k.plural,value:i,options:ir(P.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:q},err:null}}default:return this.error(A.INVALID_ARGUMENT_TYPE,M(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,M(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(n,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=$n(t)}catch(n){return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ae.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Dn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var o,s=!1,a=[],u=new Set,l=n.value,f=n.location;;){if(l.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;f=M(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(s=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,i);if(w.err)return w;var d=this.tryParseArgumentClose(b);if(d.err)return d;a.push([l,{value:w.val,location:M(b,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return a.length===0?this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(A.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=M(n,this.clonePosition());return o?(s*=i,qn(s)?{val:s,err:null}:this.error(r,u)):this.error(t,u)},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 r=Kr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(rr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!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 r=this.offset();if(r===t)break;if(r>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()&&ti(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function Ht(e){return e>=97&&e<=122||e>=65&&e<=90}function Kn(e){return Ht(e)||e===47}function eo(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 ti(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function to(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 At(e){e.forEach(function(t){if(delete t.location,zr(t)||Wr(t))for(var r in t.options)delete t.options[r].location,At(t.options[r].value);else Fr(t)&&qr(t.style)||(Gr(t)||jr(t))&&St(t.style)?delete t.style.location:Xr(t)&&At(t.children)})}function ro(e,t){t===void 0&&(t={}),t=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Qn(e,t).parse();if(r.err){var i=SyntaxError(A[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||At(r.val),r.val}var Be;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Be||(Be={}));var ct=function(e){lt(t,e);function t(r,i,n){var o=e.call(this,r)||this;return o.code=i,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),or=function(e){lt(t,e);function t(r,i,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Be.INVALID_VALUE,o)||this}return t}(ct),io=function(e){lt(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Be.INVALID_VALUE,n)||this}return t}(ct),no=function(e){lt(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Be.MISSING_VALUE,i)||this}return t}(ct),J;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(J||(J={}));function oo(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==J.literal||r.type!==J.literal?t.push(r):i.value+=r.value,t},[])}function so(e){return typeof e=="function"}function et(e,t,r,i,n,o,s){if(e.length===1&&Qt(e[0]))return[{type:J.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Qt(f)){a.push({type:J.literal,value:f.value});continue}if(Hn(f)){typeof o=="number"&&a.push({type:J.literal,value:r.getNumberFormat(t).format(o)});continue}var h=f.value;if(!(n&&h in n))throw new no(h,s);var m=n[h];if(Pn(f)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?J.literal:J.object,value:m});continue}if(Gr(f)){var b=typeof f.style=="string"?i.date[f.style]:St(f.style)?f.style.parsedOptions:void 0;a.push({type:J.literal,value:r.getDateTimeFormat(t,b).format(m)});continue}if(jr(f)){var b=typeof f.style=="string"?i.time[f.style]:St(f.style)?f.style.parsedOptions:i.time.medium;a.push({type:J.literal,value:r.getDateTimeFormat(t,b).format(m)});continue}if(Fr(f)){var b=typeof f.style=="string"?i.number[f.style]:qr(f.style)?f.style.parsedOptions:void 0;b&&b.scale&&(m=m*(b.scale||1)),a.push({type:J.literal,value:r.getNumberFormat(t,b).format(m)});continue}if(Xr(f)){var w=f.children,d=f.value,I=n[d];if(!so(I))throw new io(d,"function",s);var N=et(w,t,r,i,n,o),H=I(N.map(function(L){return L.value}));Array.isArray(H)||(H=[H]),a.push.apply(a,H.map(function(L){return{type:typeof L=="string"?J.literal:J.object,value:L}}))}if(zr(f)){var T=f.options[m]||f.options.other;if(!T)throw new or(f.value,m,Object.keys(f.options),s);a.push.apply(a,et(T.value,t,r,i,n));continue}if(Wr(f)){var T=f.options["=".concat(m)];if(!T){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var Bi=Object.defineProperty,Mi=Object.defineProperties;var Ci=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var $i=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable;var dt=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))$i.call(t,r)&&dt(e,r,t[r]);if(Gt)for(var r of Gt(t))Li.call(t,r)&&dt(e,r,t[r]);return e},zt=(e,t)=>Mi(e,Ci(t));var K=(e,t,r)=>(dt(e,typeof t!="symbol"?t+"":t,r),r);var Wt=(e,t,r)=>new Promise((i,n)=>{var o=u=>{try{a(r.next(u))}catch(l){n(l)}},s=u=>{try{a(r.throw(u))}catch(l){n(l)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(e,t)).next())});function ee(){}function Ii(e,t){for(const r in t)e[r]=t[r];return e}function Tr(e){return e()}function Xt(){return Object.create(null)}function Ce(e){e.forEach(Tr)}function Nt(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Di(e){return Object.keys(e).length===0}function Or(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function qt(e,t,r){e.$$.on_destroy.push(Or(t,r))}function Ni(e,t,r,i){if(e){const n=Pr(e,t,r,i);return e[0](n)}}function Pr(e,t,r,i){return e[1]&&i?Ii(r.ctx.slice(),e[1](i(t))):r.ctx}function ki(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const o=[],s=Math.max(t.dirty.length,n.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|n[a];return o}return t.dirty|n}return t.dirty}function Ri(e,t,r,i,n,o){if(n){const s=Pr(t,r,i,o);e.p(s,n)}}function Ui(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function G(e,t){e.appendChild(t)}function Hr(e,t,r){const i=Vi(e);if(!i.getElementById(t)){const n=W("style");n.id=t,n.textContent=r,Fi(i,n)}}function Vi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Fi(e,t){return G(e.head||e,t),t.sheet}function oe(e,t,r){e.insertBefore(t,r||null)}function te(e){e.parentNode&&e.parentNode.removeChild(e)}function Gi(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function W(e){return document.createElement(e)}function De(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Rt(e){return document.createTextNode(e)}function be(){return Rt(" ")}function Re(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function M(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function qe(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:M(e,t,r)}function ji(e){return Array.from(e.childNodes)}function Ar(e,t){t=""+t,e.data!==t&&(e.data=t)}let Ye;function zi(){if(Ye===void 0){Ye=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ye=!0}}return Ye}function Wi(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=W("iframe");i.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;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const n=zi();let o;return n?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Re(window,"message",s=>{s.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{o=Re(i.contentWindow,"resize",t),t()}),G(e,i),()=>{(n||o&&i.contentWindow)&&o(),te(i)}}function ue(e,t,r){e.classList.toggle(t,!!r)}function Xi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ue;function ke(e){Ue=e}function qi(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function Br(e){qi().$$.on_mount.push(e)}const Te=[],it=[];let Pe=[];const Yt=[],Mr=Promise.resolve();let Et=!1;function Cr(){Et||(Et=!0,Mr.then(J))}function Yi(){return Cr(),Mr}function nt(e){Pe.push(e)}const pt=new Set;let we=0;function J(){if(we!==0)return;const e=Ue;do{try{for(;we<Te.length;){const t=Te[we];we++,ke(t),Zi(t.$$)}}catch(t){throw Te.length=0,we=0,t}for(ke(null),Te.length=0,we=0;it.length;)it.pop()();for(let t=0;t<Pe.length;t+=1){const r=Pe[t];pt.has(r)||(pt.add(r),r())}Pe.length=0}while(Te.length);for(;Yt.length;)Yt.pop()();Et=!1,pt.clear(),ke(e)}function Zi(e){if(e.fragment!==null){e.update(),Ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(nt)}}function Ji(e){const t=[],r=[];Pe.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Pe=t}const Qe=new Set;let ye;function Qi(){ye={r:0,c:[],p:ye}}function Ki(){ye.r||Ce(ye.c),ye=ye.p}function $r(e,t){e&&e.i&&(Qe.delete(e),e.i(t))}function en(e,t,r,i){if(e&&e.o){if(Qe.has(e))return;Qe.add(e),ye.c.push(()=>{Qe.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function Zt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function tn(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),nt(()=>{const o=e.$$.on_mount.map(Tr).filter(Nt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ce(o),e.$$.on_mount=[]}),n.forEach(nt)}function rn(e,t){const r=e.$$;r.fragment!==null&&(Ji(r.after_update),Ce(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function nn(e,t){e.$$.dirty[0]===-1&&(Te.push(e),Cr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lr(e,t,r,i,n,o,s=null,a=[-1]){const u=Ue;ke(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:n,bound:Xt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Xt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let f=!1;if(l.ctx=r?r(e,t.props||{},(p,v,...b)=>{const T=b.length?b[0]:v;return l.ctx&&n(l.ctx[p],l.ctx[p]=T)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](T),f&&nn(e,p)),v}):[],l.update(),f=!0,Ce(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=ji(t.target);l.fragment&&l.fragment.l(p),p.forEach(te)}else l.fragment&&l.fragment.c();t.intro&&$r(e.$$.fragment),tn(e,t.target,t.anchor),J()}ke(u)}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{constructor(t,r,i){super();K(this,"$$ctor");K(this,"$$s");K(this,"$$c");K(this,"$$cn",!1);K(this,"$$d",{});K(this,"$$r",!1);K(this,"$$p_d",{});K(this,"$$l",{});K(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=W("slot"),o!=="default"&&M(s,"name",o)},m:function(l,f){oe(l,s,f)},d:function(l){l&&te(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Xi(this);for(const o of this.$$s)o in i&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ke(s,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:zt(jt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{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 s=Ke(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ke(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ke(e,t,r,i){var o;const n=(o=r[e])==null?void 0:o.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dr(e,t,r,i,n,o){let s=class extends Ir{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ke(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Nr{constructor(){K(this,"$$");K(this,"$$set")}$destroy(){rn(this,1),this.$destroy=ee}$on(t,r){if(!Nt(r))return ee;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!Di(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const on="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(on);const Se=[];function sn(e,t){return{subscribe:Ge(e,t).subscribe}}function Ge(e,t=ee){let r;const i=new Set;function n(a){if(kt(e,a)&&(e=a,r)){const u=!Se.length;for(const l of i)l[1](),Se.push(l,e);if(u){for(let l=0;l<Se.length;l+=2)Se[l][0](Se[l+1]);Se.length=0}}}function o(a){n(a(e))}function s(a,u=ee){const l=[a,u];return i.add(l),i.size===1&&(r=t(n,o)||ee),a(e),()=>{i.delete(l),i.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:s}}function $e(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return sn(r,(s,a)=>{let u=!1;const l=[];let f=0,p=ee;const v=()=>{if(f)return;p();const T=t(i?l[0]:l,s,a);o?s(T):p=Nt(T)?T:ee},b=n.map((T,h)=>Or(T,I=>{l[h]=I,f&=~(1<<h),u&&v()},()=>{f|=1<<h}));return u=!0,v(),function(){Ce(b),p(),u=!1}})}var kr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var an=function(t){return un(t)&&!ln(t)};function un(e){return!!e&&typeof e=="object"}function ln(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hn(e)}var cn=typeof Symbol=="function"&&Symbol.for,fn=cn?Symbol.for("react.element"):60103;function hn(e){return e.$$typeof===fn}function dn(e){return Array.isArray(e)?[]:{}}function Ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?He(dn(e),e,t):e}function pn(e,t,r){return e.concat(t).map(function(i){return Ve(i,r)})}function mn(e,t){if(!t.customMerge)return He;var r=t.customMerge(e);return typeof r=="function"?r:He}function vn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Jt(e){return Object.keys(e).concat(vn(e))}function Rr(e,t){try{return t in e}catch(r){return!1}}function gn(e,t){return Rr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function bn(e,t,r){var i={};return r.isMergeableObject(e)&&Jt(e).forEach(function(n){i[n]=Ve(e[n],r)}),Jt(t).forEach(function(n){gn(e,n)||(Rr(e,n)&&r.isMergeableObject(t[n])?i[n]=mn(n,r)(e[n],t[n],r):i[n]=Ve(t[n],r))}),i}function He(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pn,r.isMergeableObject=r.isMergeableObject||an,r.cloneUnlessOtherwiseSpecified=Ve;var i=Array.isArray(t),n=Array.isArray(e),o=i===n;return o?i?r.arrayMerge(e,t,r):bn(e,t,r):Ve(t,r)}He.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return He(i,n,r)},{})};var yn=He,_n=yn;const xn=Ut(_n);var wt=function(e,t){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},wt(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ne=function(){return ne=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ne.apply(this,arguments)};function En(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function mt(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function vt(e,t){var r=t&&t.cache?t.cache:An,i=t&&t.serializer?t.serializer:Pn,n=t&&t.strategy?t.strategy:Tn;return n(e,{cache:r,serializer:i})}function wn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Sn(e,t,r,i){var n=wn(i)?i:r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,i),t.set(n,o)),o}function Ur(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,i),t.set(n,o)),o}function Vr(e,t,r,i,n){return r.bind(t,e,i,n)}function Tn(e,t){var r=e.length===1?Sn:Ur;return Vr(e,this,r,t.cache.create(),t.serializer)}function On(e,t){return Vr(e,this,Ur,t.cache.create(),t.serializer)}var Pn=function(){return JSON.stringify(arguments)},Hn=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),An={create:function(){return new Hn}},gt={variadic:On},ot=function(){return ot=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ot.apply(this,arguments)};var A;(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"})(A||(A={}));var N;(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"})(N||(N={}));var Ae;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ae||(Ae={}));function Qt(e){return e.type===N.literal}function Bn(e){return e.type===N.argument}function Fr(e){return e.type===N.number}function Gr(e){return e.type===N.date}function jr(e){return e.type===N.time}function zr(e){return e.type===N.select}function Wr(e){return e.type===N.plural}function Mn(e){return e.type===N.pound}function Xr(e){return e.type===N.tag}function qr(e){return!!(e&&typeof e=="object"&&e.type===Ae.number)}function St(e){return!!(e&&typeof e=="object"&&e.type===Ae.dateTime)}var Yr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cn=/(?:[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 $n(e){var t={};return e.replace(Cn,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===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"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-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=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-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"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-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"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<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 U=function(){return U=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},U.apply(this,arguments)};var Ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function In(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ln).filter(function(v){return v.length>0}),r=[],i=0,n=t;i<n.length;i++){var o=n[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,f=u;l<f.length;l++){var p=f[l];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Dn(e){return e.replace(/^(.*?)-/,"")}var Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zr=/^(@+)?(\+|#+)?[rs]?$/g,Nn=/(\*)(0+)|(#+)(0+)|(0+)/g,Jr=/^(0+)$/;function er(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zr,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function Qr(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 kn(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Jr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function tr(e){var t={},r=Qr(e);return r||t}function Rn(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=Dn(n.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=U(U(U({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return U(U({},u),tr(l))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return U(U({},u),tr(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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Nn,function(u,l,f,p,v,b){if(l)t.minimumIntegerDigits=f.length;else{if(p&&v)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Jr.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Kt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Kt,function(u,l,f,p,v,b){return f==="*"?t.minimumFractionDigits=l.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:v&&b?(t.minimumFractionDigits=v.length,t.maximumFractionDigits=v.length+b.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=n.options[0];o==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=U(U({},t),er(o)));continue}if(Zr.test(n.stem)){t=U(U({},t),er(n.stem));continue}var s=Qr(n.stem);s&&(t=U(U({},t),s));var a=kn(n.stem);a&&(t=U(U({},t),a))}return t}var Ze={"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 Un(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=Vn(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;s-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function Vn(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 r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=Ze[i||""]||Ze[r||""]||Ze["".concat(r,"-001")]||Ze["001"];return n[0]}var bt,Fn=new RegExp("^".concat(Yr.source,"*")),Gn=new RegExp("".concat(Yr.source,"*$"));function B(e,t){return{start:e,end:t}}var jn=!!String.prototype.startsWith&&"_a".startsWith("a",1),zn=!!String.fromCodePoint,Wn=!!Object.fromEntries,Xn=!!String.prototype.codePointAt,qn=!!String.prototype.trimStart,Yn=!!String.prototype.trimEnd,Zn=!!Number.isSafeInteger,Jn=Zn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tt=!0;try{var Qn=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tt=((bt=Qn.exec("a"))===null||bt===void 0?void 0:bt[0])==="a"}catch(e){Tt=!1}var rr=jn?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Ot=zn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,o=0,s;n>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},ir=Wn?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var o=n[i],s=o[0],a=o[1];r[s]=a}return r},Kr=Xn?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===i||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Kn=qn?function(t){return t.trimStart()}:function(t){return t.replace(Fn,"")},eo=Yn?function(t){return t.trimEnd()}:function(t){return t.replace(Gn,"")};function ei(e,t){return new RegExp(e,t)}var Pt;if(Tt){var nr=ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=function(t,r){var i;nr.lastIndex=r;var n=nr.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Pt=function(t,r){for(var i=[];;){var n=Kr(t,r);if(n===void 0||ti(n)||no(n))break;i.push(n),r+=n>=65536?2:1}return Ot.apply(void 0,i)};var to=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:N.pound,location:B(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(A.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ht(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:N.literal,value:"<".concat(n,"/>"),location:B(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ht(this.char()))return this.error(A.INVALID_TAG,B(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(A.UNMATCHED_CLOSING_TAG,B(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:N.tag,value:n,children:s,location:B(i,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,B(a,this.clonePosition())))}else return this.error(A.UNCLOSED_TAG,B(i,this.clonePosition()))}else return this.error(A.INVALID_TAG,B(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&io(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var u=B(i,this.clonePosition());return{val:{type:N.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ro(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 r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Ot.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Ot(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(A.EMPTY_ARGUMENT,B(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(A.MALFORMED_ARGUMENT,B(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:N.argument,value:n,location:B(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(A.MALFORMED_ARGUMENT,B(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Pt(this.message,r),n=r+i.length;this.bumpTo(n);var o=this.clonePosition(),s=B(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,r,i,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,B(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var v=eo(p.val);if(v.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var b=B(f,this.clonePosition());l={style:v,styleLocation:b}}var T=this.tryParseArgumentClose(n);if(T.err)return T;var h=B(n,this.clonePosition());if(l&&rr(l==null?void 0:l.style,"::",0)){var I=Kn(l.style.slice(2));if(a==="number"){var p=this.parseNumberSkeletonFromString(I,l.styleLocation);return p.err?p:{val:{type:N.number,value:i,location:h,style:p.val},err:null}}else{if(I.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,h);var R=I;this.locale&&(R=Un(I,this.locale));var v={type:Ae.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(R):{}},H=a==="date"?N.date:N.time;return{val:{type:H,value:i,location:h,style:v},err:null}}}return{val:{type:a==="number"?N.number:a==="date"?N.date:N.time,value:i,location:h,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,B(E,ot({},E)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),O=this.parseIdentifierIfPossible(),C=p.val}var P=this.tryParsePluralOrSelectOptions(t,a,r,O);if(P.err)return P;var T=this.tryParseArgumentClose(n);if(T.err)return T;var X=B(n,this.clonePosition());return a==="select"?{val:{type:N.select,value:i,options:ir(P.val),location:X},err:null}:{val:{type:N.plural,value:i,options:ir(P.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(A.INVALID_ARGUMENT_TYPE,B(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,B(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=In(t)}catch(n){return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ae.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Rn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var o,s=!1,a=[],u=new Set,l=n.value,f=n.location;;){if(l.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var v=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(v.err)return v;f=B(p,this.clonePosition()),l=this.message.slice(p.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(s=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,r,i);if(T.err)return T;var h=this.tryParseArgumentClose(b);if(h.err)return h;a.push([l,{value:T.val,location:B(b,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return a.length===0?this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(A.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=B(n,this.clonePosition());return o?(s*=i,Jn(s)?{val:s,err:null}:this.error(r,u)):this.error(t,u)},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 r=Kr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(rr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!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 r=this.offset();if(r===t)break;if(r>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()&&ti(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function Ht(e){return e>=97&&e<=122||e>=65&&e<=90}function ro(e){return Ht(e)||e===47}function io(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 ti(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function no(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 At(e){e.forEach(function(t){if(delete t.location,zr(t)||Wr(t))for(var r in t.options)delete t.options[r].location,At(t.options[r].value);else Fr(t)&&qr(t.style)||(Gr(t)||jr(t))&&St(t.style)?delete t.style.location:Xr(t)&&At(t.children)})}function oo(e,t){t===void 0&&(t={}),t=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new to(e,t).parse();if(r.err){var i=SyntaxError(A[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||At(r.val),r.val}var Be;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Be||(Be={}));var ct=function(e){lt(t,e);function t(r,i,n){var o=e.call(this,r)||this;return o.code=i,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),or=function(e){lt(t,e);function t(r,i,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Be.INVALID_VALUE,o)||this}return t}(ct),so=function(e){lt(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Be.INVALID_VALUE,n)||this}return t}(ct),ao=function(e){lt(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Be.MISSING_VALUE,i)||this}return t}(ct),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function uo(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Y.literal||r.type!==Y.literal?t.push(r):i.value+=r.value,t},[])}function lo(e){return typeof e=="function"}function et(e,t,r,i,n,o,s){if(e.length===1&&Qt(e[0]))return[{type:Y.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Qt(f)){a.push({type:Y.literal,value:f.value});continue}if(Mn(f)){typeof o=="number"&&a.push({type:Y.literal,value:r.getNumberFormat(t).format(o)});continue}var p=f.value;if(!(n&&p in n))throw new ao(p,s);var v=n[p];if(Bn(f)){(!v||typeof v=="string"||typeof v=="number")&&(v=typeof v=="string"||typeof v=="number"?String(v):""),a.push({type:typeof v=="string"?Y.literal:Y.object,value:v});continue}if(Gr(f)){var b=typeof f.style=="string"?i.date[f.style]:St(f.style)?f.style.parsedOptions:void 0;a.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(v)});continue}if(jr(f)){var b=typeof f.style=="string"?i.time[f.style]:St(f.style)?f.style.parsedOptions:i.time.medium;a.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(v)});continue}if(Fr(f)){var b=typeof f.style=="string"?i.number[f.style]:qr(f.style)?f.style.parsedOptions:void 0;b&&b.scale&&(v=v*(b.scale||1)),a.push({type:Y.literal,value:r.getNumberFormat(t,b).format(v)});continue}if(Xr(f)){var T=f.children,h=f.value,I=n[h];if(!lo(I))throw new so(h,"function",s);var R=et(T,t,r,i,n,o),H=I(R.map(function(C){return C.value}));Array.isArray(H)||(H=[H]),a.push.apply(a,H.map(function(C){return{type:typeof C=="string"?Y.literal:Y.object,value:C}}))}if(zr(f)){var E=f.options[v]||f.options.other;if(!E)throw new or(f.value,v,Object.keys(f.options),s);a.push.apply(a,et(E.value,t,r,i,n));continue}if(Wr(f)){var E=f.options["=".concat(v)];if(!E){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,Be.MISSING_INTL_API,s);var O=r.getPluralRules(t,{type:f.pluralType}).select(m-(f.offset||0));T=f.options[O]||f.options.other}if(!T)throw new or(f.value,m,Object.keys(f.options),s);a.push.apply(a,et(T.value,t,r,i,n,m-(f.offset||0)));continue}}return oo(a)}function ao(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=ne(ne({},e[i]),t[i]||{}),r},{})):e}function uo(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=ao(e[i],t[i]),r},ne({},e)):e}function yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function lo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.number),strategy:gt.variadic}),getDateTimeFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.dateTime),strategy:gt.variadic}),getPluralRules:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.pluralRules),strategy:gt.variadic})}}var ri=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(h,m){return!h.length||m.type!==J.literal||typeof h[h.length-1]!="string"?h.push(m.value):h[h.length-1]+=m.value,h},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return et(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=yn(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=uo(e.formats,i),this.formatters=n&&n.formatters||lo(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 r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ro,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 co(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const o=r.slice(n,r.length).join(".");if(o in i){i=i[o];break}}i=i[r[n]]}else i=void 0;return i}const pe={},fo=(e,t,r)=>r&&(t in pe||(pe[t]={}),e in pe[t]||(pe[t][e]=r),r),ii=(e,t)=>{if(t==null)return;if(t in pe&&e in pe[t])return pe[t][e];const r=ze(t);for(let i=0;i<r.length;i++){const n=r[i],o=po(n,e);if(o)return fo(e,t,o)}};let Vt;const je=Ge({});function ho(e){return Vt[e]||null}function ni(e){return e in Vt}function po(e,t){if(!ni(e))return null;const r=ho(e);return co(r,t)}function mo(e){if(e==null)return;const t=ze(e);for(let r=0;r<t.length;r++){const i=t[r];if(ni(i))return i}}function oi(e,...t){delete pe[e],je.update(r=>(r[e]=bn.all([r[e]||{},...t]),r))}Ce([je],([e])=>Object.keys(e));je.subscribe(e=>Vt=e);const tt={};function vo(e,t){tt[e].delete(t),tt[e].size===0&&delete tt[e]}function si(e){return tt[e]}function go(e){return ze(e).map(t=>{const r=si(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function st(e){return e==null?!1:ze(e).some(t=>{var r;return(r=si(t))==null?void 0:r.size})}function bo(e,t){return Promise.all(t.map(i=>(vo(e,i),i().then(n=>n.default||n)))).then(i=>oi(e,...i))}const Ie={};function ai(e){if(!st(e))return e in Ie?Ie[e]:Promise.resolve();const t=go(e);return Ie[e]=Promise.all(t.map(([r,i])=>bo(r,i))).then(()=>{if(st(e))return ai(e);delete Ie[e]}),Ie[e]}var sr=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,_o=Object.prototype.propertyIsEnumerable,xo=(e,t)=>{var r={};for(var i in e)yo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&sr)for(var i of sr(e))t.indexOf(i)<0&&_o.call(e,i)&&(r[i]=e[i]);return r};const wo={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 Eo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ze(e).join('", "')}".${st(me())?`
3
+ `,Be.MISSING_INTL_API,s);var O=r.getPluralRules(t,{type:f.pluralType}).select(v-(f.offset||0));E=f.options[O]||f.options.other}if(!E)throw new or(f.value,v,Object.keys(f.options),s);a.push.apply(a,et(E.value,t,r,i,n,v-(f.offset||0)));continue}}return uo(a)}function co(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=ne(ne({},e[i]),t[i]||{}),r},{})):e}function fo(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=co(e[i],t[i]),r},ne({},e)):e}function yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ho(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.number),strategy:gt.variadic}),getDateTimeFormat:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.dateTime),strategy:gt.variadic}),getPluralRules:vt(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],r,!1)))},{cache:yt(e.pluralRules),strategy:gt.variadic})}}var ri=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(p,v){return!p.length||v.type!==Y.literal||typeof p[p.length-1]!="string"?p.push(v.value):p[p.length-1]+=v.value,p},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return et(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=En(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=fo(e.formats,i),this.formatters=n&&n.formatters||ho(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 r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=oo,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 po(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const o=r.slice(n,r.length).join(".");if(o in i){i=i[o];break}}i=i[r[n]]}else i=void 0;return i}const de={},mo=(e,t,r)=>r&&(t in de||(de[t]={}),e in de[t]||(de[t][e]=r),r),ii=(e,t)=>{if(t==null)return;if(t in de&&e in de[t])return de[t][e];const r=ze(t);for(let i=0;i<r.length;i++){const n=r[i],o=go(n,e);if(o)return mo(e,t,o)}};let Vt;const je=Ge({});function vo(e){return Vt[e]||null}function ni(e){return e in Vt}function go(e,t){if(!ni(e))return null;const r=vo(e);return po(r,t)}function bo(e){if(e==null)return;const t=ze(e);for(let r=0;r<t.length;r++){const i=t[r];if(ni(i))return i}}function oi(e,...t){delete de[e],je.update(r=>(r[e]=xn.all([r[e]||{},...t]),r))}$e([je],([e])=>Object.keys(e));je.subscribe(e=>Vt=e);const tt={};function yo(e,t){tt[e].delete(t),tt[e].size===0&&delete tt[e]}function si(e){return tt[e]}function _o(e){return ze(e).map(t=>{const r=si(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function st(e){return e==null?!1:ze(e).some(t=>{var r;return(r=si(t))==null?void 0:r.size})}function xo(e,t){return Promise.all(t.map(i=>(yo(e,i),i().then(n=>n.default||n)))).then(i=>oi(e,...i))}const Ie={};function ai(e){if(!st(e))return e in Ie?Ie[e]:Promise.resolve();const t=_o(e);return Ie[e]=Promise.all(t.map(([r,i])=>xo(r,i))).then(()=>{if(st(e))return ai(e);delete Ie[e]}),Ie[e]}var sr=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,So=(e,t)=>{var r={};for(var i in e)Eo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&sr)for(var i of sr(e))t.indexOf(i)<0&&wo.call(e,i)&&(r[i]=e[i]);return r};const To={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 Oo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ze(e).join('", "')}".${st(pe())?`
4
4
 
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const So={fallbackLocale:null,loadingDelay:200,formats:wo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ne=So;function Me(){return Ne}function To(e){const t=e,{formats:r}=t,i=xo(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{ri.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Eo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ne,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Ne.formats.number,r.number),"date"in r&&Object.assign(Ne.formats.date,r.date),"time"in r&&Object.assign(Ne.formats.time,r.time)),xe.set(n)}const _t=Ge(!1);var Oo=Object.defineProperty,Po=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,Bo=Object.prototype.propertyIsEnumerable,ur=(e,t,r)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))Ao.call(t,r)&&ur(e,r,t[r]);if(ar)for(var r of ar(t))Bo.call(t,r)&&ur(e,r,t[r]);return e},$o=(e,t)=>Po(e,Ho(t));let Bt;const at=Ge(null);function lr(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function ze(e,t=Me().fallbackLocale){const r=lr(e);return t?[...new Set([...r,...lr(t)])]:r}function me(){return Bt!=null?Bt:void 0}at.subscribe(e=>{Bt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Co=e=>{if(e&&mo(e)&&st(e)){const{loadingDelay:t}=Me();let r;return typeof window!="undefined"&&me()!=null&&t?r=window.setTimeout(()=>_t.set(!0),t):_t.set(!0),ai(e).then(()=>{at.set(e)}).finally(()=>{clearTimeout(r),_t.set(!1)})}return at.set(e)},xe=$o(Mo({},at),{set:Co}),ft=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var Lo=Object.defineProperty,ut=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,cr=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&cr(e,r,t[r]);if(ut)for(var r of ut(t))li.call(t,r)&&cr(e,r,t[r]);return e},Le=(e,t)=>{var r={};for(var i in e)ui.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&ut)for(var i of ut(e))t.indexOf(i)<0&&li.call(e,i)&&(r[i]=e[i]);return r};const Fe=(e,t)=>{const{formats:r}=Me();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Io=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Fe("number",i)),new Intl.NumberFormat(r,n)}),Do=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Fe("date",i):Object.keys(n).length===0&&(n=Fe("date","short")),new Intl.DateTimeFormat(r,n)}),No=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Fe("time",i):Object.keys(n).length===0&&(n=Fe("time","short")),new Intl.DateTimeFormat(r,n)}),ko=(e={})=>{var t=e,{locale:r=me()}=t,i=Le(t,["locale"]);return Io(Ft({locale:r},i))},Ro=(e={})=>{var t=e,{locale:r=me()}=t,i=Le(t,["locale"]);return Do(Ft({locale:r},i))},Uo=(e={})=>{var t=e,{locale:r=me()}=t,i=Le(t,["locale"]);return No(Ft({locale:r},i))},Vo=ft((e,t=me())=>new ri(e,t,Me().formats,{ignoreTag:Me().ignoreTag})),Fo=(e,t={})=>{var r,i,n,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=me(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ii(e,u);if(!f)f=(o=(n=(i=(r=Me()).handleMissingMessage)==null?void 0:i.call(r,{locale:u,id:e,defaultValue:l}))!=null?n: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(!a)return f;let h=f;try{h=Vo(f,u).format(a)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return h},Go=(e,t)=>Uo(t).format(e),jo=(e,t)=>Ro(t).format(e),zo=(e,t)=>ko(t).format(e),Wo=(e,t=me())=>ii(e,t),Xo=Ce([xe,je],()=>Fo);Ce([xe],()=>Go);Ce([xe],()=>jo);Ce([xe],()=>zo);Ce([xe,je],()=>Wo);function fr(e,t){oi(e,t)}function qo(e){To({fallbackLocale:"en"}),xe.set(e)}const hr={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},fr:{verificationsRequired:"Vérifications requises","verification.video.how-to":"Comment vérifier votre identité ?","verification.idenfy.referred-awaiting":"La vérification d’identité est en cours. Nous vous informerons dès que la vérification sera terminée et que vous pourrez retirer vos fonds.","verification.message.failed":"Nous sommes désolés, mais nous n’avons pas pu vérifier votre compte. Veuillez contacter l’équipe d’assistance.","verification.idenfy.link-name":"lien","verification.idenfy.in-progress":"Pour retirer des fonds vers votre compte, vous devez effectuer la vérification de l’utilisateur. Veuillez préparer votre pièce d’identité et suivre le {link} pour commencer la vérification.","verification.shuftipro.in-progress.Biometric":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}.","verification.shuftipro.in-progress.Biometric.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {Documents}.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}, la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents}.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {ProofOfAddress}.","verification.shuftipro.link-name.Biometric":"Biométrique","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Justificatif de domicile","verification.shuftipro.validations-started":"Après avoir terminé la vérification, veuillez procéder à la transaction."}};let Yo=Ge(null);const Oe="__WIDGET_GLOBAL_STYLE_CACHE__";function ci(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function fi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function hi(e,t,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=Zo(e,t),r;window[Oe]||(window[Oe]={}),r=Jo(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[Oe][t]){const a=window[Oe][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Oe][t]}o()};return r.unsubscribe=s,r}function Zo(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,i=>{e&&(r.innerHTML=i,e.appendChild(r))})}function Jo(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const i=e.getRootNode(),n=window[Oe];let o=n[t]&&n[t].sheet;o?n[t].refCount=n[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),n[t]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])})}/*! *****************************************************************************
5
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Po={fallbackLocale:null,loadingDelay:200,formats:To,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ne=Po;function Me(){return Ne}function Ho(e){const t=e,{formats:r}=t,i=So(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{ri.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Oo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ne,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Ne.formats.number,r.number),"date"in r&&Object.assign(Ne.formats.date,r.date),"time"in r&&Object.assign(Ne.formats.time,r.time)),_e.set(n)}const _t=Ge(!1);var Ao=Object.defineProperty,Bo=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,ur=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lo=(e,t)=>{for(var r in t||(t={}))Co.call(t,r)&&ur(e,r,t[r]);if(ar)for(var r of ar(t))$o.call(t,r)&&ur(e,r,t[r]);return e},Io=(e,t)=>Bo(e,Mo(t));let Bt;const at=Ge(null);function lr(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function ze(e,t=Me().fallbackLocale){const r=lr(e);return t?[...new Set([...r,...lr(t)])]:r}function pe(){return Bt!=null?Bt:void 0}at.subscribe(e=>{Bt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Do=e=>{if(e&&bo(e)&&st(e)){const{loadingDelay:t}=Me();let r;return typeof window!="undefined"&&pe()!=null&&t?r=window.setTimeout(()=>_t.set(!0),t):_t.set(!0),ai(e).then(()=>{at.set(e)}).finally(()=>{clearTimeout(r),_t.set(!1)})}return at.set(e)},_e=Io(Lo({},at),{set:Do}),ft=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var No=Object.defineProperty,ut=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,cr=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&cr(e,r,t[r]);if(ut)for(var r of ut(t))li.call(t,r)&&cr(e,r,t[r]);return e},Le=(e,t)=>{var r={};for(var i in e)ui.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&ut)for(var i of ut(e))t.indexOf(i)<0&&li.call(e,i)&&(r[i]=e[i]);return r};const Fe=(e,t)=>{const{formats:r}=Me();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ko=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Fe("number",i)),new Intl.NumberFormat(r,n)}),Ro=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Fe("date",i):Object.keys(n).length===0&&(n=Fe("date","short")),new Intl.DateTimeFormat(r,n)}),Uo=ft(e=>{var t=e,{locale:r,format:i}=t,n=Le(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Fe("time",i):Object.keys(n).length===0&&(n=Fe("time","short")),new Intl.DateTimeFormat(r,n)}),Vo=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return ko(Ft({locale:r},i))},Fo=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return Ro(Ft({locale:r},i))},Go=(e={})=>{var t=e,{locale:r=pe()}=t,i=Le(t,["locale"]);return Uo(Ft({locale:r},i))},jo=ft((e,t=pe())=>new ri(e,t,Me().formats,{ignoreTag:Me().ignoreTag})),zo=(e,t={})=>{var r,i,n,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=pe(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ii(e,u);if(!f)f=(o=(n=(i=(r=Me()).handleMissingMessage)==null?void 0:i.call(r,{locale:u,id:e,defaultValue:l}))!=null?n: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(!a)return f;let p=f;try{p=jo(f,u).format(a)}catch(v){v instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,v.message)}return p},Wo=(e,t)=>Go(t).format(e),Xo=(e,t)=>Fo(t).format(e),qo=(e,t)=>Vo(t).format(e),Yo=(e,t=pe())=>ii(e,t),Zo=$e([_e,je],()=>zo);$e([_e],()=>Wo);$e([_e],()=>Xo);$e([_e],()=>qo);$e([_e,je],()=>Yo);function fr(e,t){oi(e,t)}function Jo(e){Ho({fallbackLocale:"en"}),_e.set(e)}const hr={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},fr:{verificationsRequired:"Vérifications requises","verification.video.how-to":"Comment vérifier votre identité ?","verification.idenfy.referred-awaiting":"La vérification d’identité est en cours. Nous vous informerons dès que la vérification sera terminée et que vous pourrez retirer vos fonds.","verification.message.failed":"Nous sommes désolés, mais nous n’avons pas pu vérifier votre compte. Veuillez contacter l’équipe d’assistance.","verification.idenfy.link-name":"lien","verification.idenfy.in-progress":"Pour retirer des fonds vers votre compte, vous devez effectuer la vérification de l’utilisateur. Veuillez préparer votre pièce d’identité et suivre le {link} pour commencer la vérification.","verification.shuftipro.in-progress.Biometric":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}.","verification.shuftipro.in-progress.Biometric.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {Documents}.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric}, la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Biometric} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.Documents":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents}.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {Documents} et la vérification {ProofOfAddress}.","verification.shuftipro.in-progress.ProofOfAddress":"Pour poursuivre la transaction, vous devez effectuer la vérification de l’utilisateur. Veuillez suivre le lien pour commencer la vérification {ProofOfAddress}.","verification.shuftipro.link-name.Biometric":"Biométrique","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Justificatif de domicile","verification.shuftipro.validations-started":"Après avoir terminé la vérification, veuillez procéder à la transaction."}};let Qo=Ge(null);const Oe="__WIDGET_GLOBAL_STYLE_CACHE__";function ci(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function fi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function hi(e,t,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=Ko(e,t),r;window[Oe]||(window[Oe]={}),r=es(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[Oe][t]){const a=window[Oe][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Oe][t]}o()};return r.unsubscribe=s,r}function Ko(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,i=>{e&&(r.innerHTML=i,e.appendChild(r))})}function es(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const i=e.getRootNode(),n=window[Oe];let o=n[t]&&n[t].sheet;o?n[t].refCount=n[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),n[t]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])})}/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15,6 +15,6 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
15
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Mt=function(e,t){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Mt(e,t)};function We(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function $t(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ct(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function Lt(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function ce(e){return typeof e=="function"}function di(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var xt=di(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
18
+ ***************************************************************************** */var Mt=function(e,t){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Mt(e,t)};function We(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ct(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function Lt(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function le(e){return typeof e=="function"}function di(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var xt=di(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
19
19
  `+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
20
- `):"",this.name="UnsubscriptionError",this.errors=r}});function It(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ht=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=$t(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(d){t={error:d}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var f=this.initialTeardown;if(ce(f))try{f()}catch(d){o=d instanceof xt?d.errors:[d]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=$t(h),b=m.next();!b.done;b=m.next()){var w=b.value;try{dr(w)}catch(d){o=o!=null?o:[],d instanceof xt?o=Lt(Lt([],Ct(o)),Ct(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(n=m.return)&&n.call(m)}finally{if(i)throw i.error}}}if(o)throw new xt(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&It(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&It(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),pi=ht.EMPTY;function mi(e){return e instanceof ht||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function dr(e){ce(e)?e():e.unsubscribe()}var Qo={Promise:void 0},Ko={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Lt([e,t],Ct(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function es(e){Ko.setTimeout(function(){throw e})}function pr(){}function rt(e){e()}var vi=function(e){We(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,mi(r)&&r.add(i)):i.destination=is,i}return t.create=function(r,i,n){return new Dt(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ht),ts=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Je(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Je(i)}else Je(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Je(r)}},e}(),Dt=function(e){We(t,e);function t(r,i,n){var o=e.call(this)||this,s;return ce(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new ts(s),o}return t}(vi);function Je(e){es(e)}function rs(e){throw e}var is={closed:!0,next:pr,error:rs,complete:pr},ns=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function os(e){return e}function ss(e){return e.length===0?os:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var mr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=us(t)?t:new Dt(t,r,i);return rt(function(){var s=n,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=vr(r),new r(function(n,o){var s=new Dt({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ns]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ss(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vr(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function vr(e){var t;return(t=e!=null?e:Qo.Promise)!==null&&t!==void 0?t:Promise}function as(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}function us(e){return e&&e instanceof vi||as(e)&&mi(e)}var ls=di(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gi=function(e){We(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new gr(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ls},t.prototype.next=function(r){var i=this;rt(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=$t(i.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;rt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;rt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?pi:(this.currentObservers=null,a.push(r),new ht(function(){i.currentObservers=null,It(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new mr;return r.source=this,r},t.create=function(r,i){return new gr(r,i)},t}(mr),gr=function(e){We(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:pi},t}(gi),bi={now:function(){return(bi.delegate||Date).now()},delegate:void 0},cs=function(e){We(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=bi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,u=i._windowTime;n||(o.push(r),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=o?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=n.now(),l=0,f=1;f<o.length&&o[f]<=u;f+=2)l=f;l&&o.splice(0,l+1)}},t}(gi);const br=[],yr={},fs=(e,t=0)=>{if(br.indexOf(e)==-1){const r=new cs(t);yr[e]=r,br.push(e)}return yr[e]};window.emWidgets={topic:fs};const hs=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-BvdqK9BG.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var yi={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",f="week",h="month",m="quarter",b="year",w="date",d="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|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,H={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(_){var g=["th","st","nd","rd"],p=_%100;return"["+_+(g[(p-20)%10]||g[p]||g[0])+"]"}},T=function(_,g,p){var y=String(_);return!y||y.length>=g?_:""+Array(g+1-y.length).join(p)+_},O={s:T,z:function(_){var g=-_.utcOffset(),p=Math.abs(g),y=Math.floor(p/60),v=p%60;return(g<=0?"+":"-")+T(y,2,"0")+":"+T(v,2,"0")},m:function _(g,p){if(g.date()<p.date())return-_(p,g);var y=12*(p.year()-g.year())+(p.month()-g.month()),v=g.clone().add(y,h),E=p-v<0,S=g.clone().add(y+(E?-1:1),h);return+(-(y+(p-v)/(E?v-S:S-v))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:h,y:b,w:f,d:l,D:w,h:u,m:a,s,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},L="en",P={};P[L]=H;var q="$isDayjsObject",se=function(_){return _ instanceof fe||!(!_||!_[q])},re=function _(g,p,y){var v;if(!g)return L;if(typeof g=="string"){var E=g.toLowerCase();P[E]&&(v=E),p&&(P[E]=p,v=E);var S=g.split("-");if(!v&&S.length>1)return _(S[0])}else{var D=g.name;P[D]=g,v=D}return!y&&v&&(L=v),v||!y&&L},V=function(_,g){if(se(_))return _.clone();var p=typeof g=="object"?g:{};return p.date=_,p.args=arguments,new fe(p)},B=O;B.l=re,B.i=se,B.w=function(_,g){return V(_,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var fe=function(){function _(p){this.$L=re(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[q]=!0}var g=_.prototype;return g.parse=function(p){this.$d=function(y){var v=y.date,E=y.utc;if(v===null)return new Date(NaN);if(B.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var S=v.match(I);if(S){var D=S[2]-1||0,R=(S[7]||"0").substring(0,3);return E?new Date(Date.UTC(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,R)):new Date(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,R)}}return new Date(v)}(p),this.init()},g.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},g.$utils=function(){return B},g.isValid=function(){return this.$d.toString()!==d},g.isSame=function(p,y){var v=V(p);return this.startOf(y)<=v&&v<=this.endOf(y)},g.isAfter=function(p,y){return V(p)<this.startOf(y)},g.isBefore=function(p,y){return this.endOf(y)<V(p)},g.$g=function(p,y,v){return B.u(p)?this[y]:this.set(v,p)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(p,y){var v=this,E=!!B.u(y)||y,S=B.p(p),D=function(ue,Y){var ie=B.w(v.$u?Date.UTC(v.$y,Y,ue):new Date(v.$y,Y,ue),v);return E?ie:ie.endOf(l)},R=function(ue,Y){return B.w(v.toDate()[ue].apply(v.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(Y)),v)},F=this.$W,z=this.$M,Z=this.$D,he="set"+(this.$u?"UTC":"");switch(S){case b:return E?D(1,0):D(31,11);case h:return E?D(1,z):D(0,z+1);case f:var ae=this.$locale().weekStart||0,ve=(F<ae?F+7:F)-ae;return D(E?Z-ve:Z+(6-ve),z);case l:case w:return R(he+"Hours",0);case u:return R(he+"Minutes",1);case a:return R(he+"Seconds",2);case s:return R(he+"Milliseconds",3);default:return this.clone()}},g.endOf=function(p){return this.startOf(p,!1)},g.$set=function(p,y){var v,E=B.p(p),S="set"+(this.$u?"UTC":""),D=(v={},v[l]=S+"Date",v[w]=S+"Date",v[h]=S+"Month",v[b]=S+"FullYear",v[u]=S+"Hours",v[a]=S+"Minutes",v[s]=S+"Seconds",v[o]=S+"Milliseconds",v)[E],R=E===l?this.$D+(y-this.$W):y;if(E===h||E===b){var F=this.clone().set(w,1);F.$d[D](R),F.init(),this.$d=F.set(w,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},g.set=function(p,y){return this.clone().$set(p,y)},g.get=function(p){return this[B.p(p)]()},g.add=function(p,y){var v,E=this;p=Number(p);var S=B.p(y),D=function(z){var Z=V(E);return B.w(Z.date(Z.date()+Math.round(z*p)),E)};if(S===h)return this.set(h,this.$M+p);if(S===b)return this.set(b,this.$y+p);if(S===l)return D(1);if(S===f)return D(7);var R=(v={},v[a]=i,v[u]=n,v[s]=r,v)[S]||1,F=this.$d.getTime()+p*R;return B.w(F,this)},g.subtract=function(p,y){return this.add(-1*p,y)},g.format=function(p){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var E=p||"YYYY-MM-DDTHH:mm:ssZ",S=B.z(this),D=this.$H,R=this.$m,F=this.$M,z=v.weekdays,Z=v.months,he=v.meridiem,ae=function(Y,ie,ge,we){return Y&&(Y[ie]||Y(y,E))||ge[ie].slice(0,we)},ve=function(Y){return B.s(D%12||12,Y,"0")},ue=he||function(Y,ie,ge){var we=Y<12?"AM":"PM";return ge?we.toLowerCase():we};return E.replace(N,function(Y,ie){return ie||function(ge){switch(ge){case"YY":return String(y.$y).slice(-2);case"YYYY":return B.s(y.$y,4,"0");case"M":return F+1;case"MM":return B.s(F+1,2,"0");case"MMM":return ae(v.monthsShort,F,Z,3);case"MMMM":return ae(Z,F);case"D":return y.$D;case"DD":return B.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ae(v.weekdaysMin,y.$W,z,2);case"ddd":return ae(v.weekdaysShort,y.$W,z,3);case"dddd":return z[y.$W];case"H":return String(D);case"HH":return B.s(D,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return ue(D,R,!0);case"A":return ue(D,R,!1);case"m":return String(R);case"mm":return B.s(R,2,"0");case"s":return String(y.$s);case"ss":return B.s(y.$s,2,"0");case"SSS":return B.s(y.$ms,3,"0");case"Z":return S}return null}(Y)||S.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(p,y,v){var E,S=this,D=B.p(y),R=V(p),F=(R.utcOffset()-this.utcOffset())*i,z=this-R,Z=function(){return B.m(S,R)};switch(D){case b:E=Z()/12;break;case h:E=Z();break;case m:E=Z()/3;break;case f:E=(z-F)/6048e5;break;case l:E=(z-F)/864e5;break;case u:E=z/n;break;case a:E=z/i;break;case s:E=z/r;break;default:E=z}return v?E:B.a(E)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return P[this.$L]},g.locale=function(p,y){if(!p)return this.$L;var v=this.clone(),E=re(p,y,!0);return E&&(v.$L=E),v},g.clone=function(){return B.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},_}(),W=fe.prototype;return V.prototype=W,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",h],["$y",b],["$D",w]].forEach(function(_){W[_[1]]=function(g){return this.$g(g,_[0],_[1])}}),V.extend=function(_,g){return _.$i||(_(g,fe,V),_.$i=!0),V},V.locale=re,V.isDayjs=se,V.unix=function(_){return V(1e3*_)},V.en=P[L],V.Ls=P,V.p={},V})})(yi);var ds=yi.exports;const _r=Ut(ds);var _i={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,a){var u=s.prototype;a.utc=function(d){var I={date:d,utc:!0,args:arguments};return new s(I)},u.utc=function(d){var I=a(this.toDate(),{locale:this.$L,utc:!0});return d?I.add(this.utcOffset(),r):I},u.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var f=u.init;u.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 h=u.utcOffset;u.utcOffset=function(d,I){var N=this.$utils().u;if(N(d))return this.$u?0:N(this.$offset)?h.call(this):this.$offset;if(typeof d=="string"&&(d=function(L){L===void 0&&(L="");var P=L.match(i);if(!P)return null;var q=(""+P[0]).match(n)||["-",0,0],se=q[0],re=60*+q[1]+ +q[2];return re===0?0:se==="+"?re:-re}(d),d===null))return this;var H=Math.abs(d)<=16?60*d:d,T=this;if(I)return T.$offset=H,T.$u=d===0,T;if(d!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(T=this.local().add(H+O,r)).$offset=H,T.$x.$localOffset=O}else T=this.utc();return T};var m=u.format;u.format=function(d){var I=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,I)},u.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var b=u.toDate;u.toDate=function(d){return d==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var w=u.diff;u.diff=function(d,I,N){if(d&&this.$u===d.$u)return w.call(this,d,I,N);var H=this.local(),T=a(d).local();return w.call(H,T,I,N)}}})})(_i);var ps=_i.exports;const ms=Ut(ps);function vs(e){Hr(e,"svelte-etf668",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function xr(e,t,r){const i=e.slice();return i[53]=t[r],i}function gs(e){let t,r=e[3].length>0&&wr(e);return{c(){t=X("div"),r&&r.c(),$(t,"class","CashierVerificationsWrapper")},m(i,n){oe(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=wr(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&te(t),r&&r.d()}}}function bs(e){let t;return{c(){t=X("cashier-spinner"),qe(t,"clientstylingurl",e[1]),qe(t,"clientstyling",e[0])},m(r,i){oe(r,t,i)},p(r,i){i[0]&2&&qe(t,"clientstylingurl",r[1]),i[0]&1&&qe(t,"clientstyling",r[0])},d(r){r&&te(t)}}}function wr(e){let t,r,i,n,o,s,a,u=e[8]("verificationsRequired")+"",l,f,h,m,b,w,d,I,N=Zt(e[3]),H=[];for(let O=0;O<N.length;O+=1)H[O]=Er(xr(e,N,O));let T=e[6]&&Sr(e);return{c(){t=X("div"),r=De("svg"),i=De("path"),n=De("path"),o=De("path"),s=ye(),a=X("p"),l=Rt(u),f=ye(),h=X("span"),h.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',m=ye(),b=X("div");for(let O=0;O<H.length;O+=1)H[O].c();w=ye(),T&&T.c(),$(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),$(i,"stroke","#6E738F"),$(i,"stroke-width","2"),$(i,"stroke-linecap","round"),$(i,"stroke-linejoin","round"),$(n,"d","M12 8V12"),$(n,"stroke","#6E738F"),$(n,"stroke-width","2"),$(n,"stroke-linecap","round"),$(n,"stroke-linejoin","round"),$(o,"d","M12 16H12.01"),$(o,"stroke","#6E738F"),$(o,"stroke-width","2"),$(o,"stroke-linecap","round"),$(o,"stroke-linejoin","round"),$(r,"width","24"),$(r,"height","24"),$(r,"viewBox","0 0 24 24"),$(r,"fill","none"),$(r,"xmlns","http://www.w3.org/2000/svg"),$(h,"class","CashierVerificationChevron"),le(h,"ShowVerifications",e[4]),$(t,"class","VerificationsHeader"),$(b,"class","VerificationsList"),le(b,"ShowVerifications",e[4])},m(O,L){oe(O,t,L),G(t,r),G(r,i),G(r,n),G(r,o),G(t,s),G(t,a),G(a,l),G(t,f),G(t,h),oe(O,m,L),oe(O,b,L);for(let P=0;P<H.length;P+=1)H[P]&&H[P].m(b,null);G(b,w),T&&T.m(b,null),d||(I=Re(t,"click",e[9]),d=!0)},p(O,L){if(L[0]&256&&u!==(u=O[8]("verificationsRequired")+"")&&Ar(l,u),L[0]&16&&le(h,"ShowVerifications",O[4]),L[0]&8){N=Zt(O[3]);let P;for(P=0;P<N.length;P+=1){const q=xr(O,N,P);H[P]?H[P].p(q,L):(H[P]=Er(q),H[P].c(),H[P].m(b,w))}for(;P<H.length;P+=1)H[P].d(1);H.length=N.length}O[6]?T?T.p(O,L):(T=Sr(O),T.c(),T.m(b,null)):T&&(T.d(1),T=null),L[0]&16&&le(b,"ShowVerifications",O[4])},d(O){O&&(te(t),te(m),te(b)),Ui(H,O),T&&T.d(),d=!1,I()}}}function Er(e){let t,r,i,n,o=e[53]+"";return{c(){t=X("div"),r=X("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=ye(),n=X("p"),$(r,"class","IconVerification"),$(n,"class","text"),$(t,"class","CashierVerificationMessage Test")},m(s,a){oe(s,t,a),G(t,r),G(t,i),G(t,n),n.innerHTML=o},p(s,a){a[0]&8&&o!==(o=s[53]+"")&&(n.innerHTML=o)},d(s){s&&te(t)}}}function Sr(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,a,u;return{c(){t=X("div"),r=X("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=ye(),n=X("div"),s=Rt(o),$(r,"class","IconVideo"),$(n,"class","CashierVerificationVideoLink"),le(n,"CashierVerificationVideoLinkDesktop",e[5]),$(t,"class","CashierVerificationVideo Test")},m(l,f){oe(l,t,f),G(t,r),G(t,i),G(t,n),G(n,s),a||(u=Re(t,"click",e[10]),a=!0)},p(l,f){f[0]&256&&o!==(o=l[8]("verification.video.how-to")+"")&&Ar(s,o),f[0]&32&&le(n,"CashierVerificationVideoLinkDesktop",l[5])},d(l){l&&te(t),a=!1,u()}}}function ys(e){let t;function r(o,s){if(o[7])return bs;if(o[3])return gs}let i=r(e),n=i&&i(e);return{c(){t=X("div"),n&&n.c(),$(t,"class","CashierVerifications"),le(t,"CashierVerificationsDesktop",e[5])},m(o,s){oe(o,t,s),n&&n.m(t,null),e[19](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&le(t,"CashierVerificationsDesktop",o[5])},i:ee,o:ee,d(o){o&&te(t),n&&n.d(),e[19](null)}}}const _s="verification_explanation_video_widgets.MP4";function xs(e,t,r){let i,n;qt(e,Xo,c=>r(8,i=c)),qt(e,Yo,c=>r(27,n=c)),_r.extend(ms);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:a=""}=t,{clientstyling:u=""}=t,{clientstylingurl:l=""}=t,{session:f=""}=t,{customerid:h=""}=t,{playersession:m=""}=t,{mbsource:b=""}=t,w,d=new Set,I=new Set,N,H,T,O=!1,L=!0,P=!1,q="",se=!1,re,V=window.navigator.userAgent;var B;(function(c){c.Manual="Manual",c.ShuftiPro="ShuftiPro"})(B||(B={}));var fe;(function(c){c.Requested="Requested"})(fe||(fe={}));var W;(function(c){c.Unknown="Unknown",c.Unverified="Unverified",c.InProgress="InProgress",c.Failed="Failed",c.Verified="Verified",c.Referred="Referred",c.True="True",c.False="False",c.AwaitingForResponse="AwaitingForResponse"})(W||(W={}));var _;(function(c){c.Unknown="Unknown",c.Documents="Documents",c.Age="Age",c.Pep="Pep",c.Sanction="Sanction",c.Aml="Aml",c.ProofOfAddress="ProofOfAddress",c.SourceOfWealth="SourceOfWealth",c.SocialMedia="SocialMedia",c.Biometric="Biometric"})(_||(_={}));const g=c=>{c.data&&c.data.type};Br(()=>(window.addEventListener("message",g),Ei(),()=>{window.removeEventListener("message",g)}));const p=[W.InProgress,W.Referred,W.AwaitingForResponse],y=()=>{let c=a;if(c)return fetch(c).then(x=>x.json()).then(x=>{Object.keys(x).forEach(C=>{fr(C,x[C])})}).catch(x=>{console.log(x)})};Object.keys(hr).forEach(c=>{fr(c,hr[c])});const v=()=>{qo(s)},E=()=>{r(18,H=R());const c=new URL(`${o}/v1/player/${h}/verification/GetKYCCustomerStatus?language=${s}`),x=new Headers;x.append("accept","application/json"),x.append("Content-Type","application/json"),x.append("x-sessionid",`${m}`),x.append("X-Client-Request-Timestamp",_r.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const C={method:"POST",headers:x,body:JSON.stringify({})};r(7,se=!0),fetch(c,C).then(j=>j.json()).then(j=>{const de=S(j==null?void 0:j.Verifications);N=F(de),N.VerificationStatuses.forEach(Xe=>{Xe.VerificationUrlType!=="Widget"&&d.add(Xe.Vendor)}),r(3,T=ue())}).finally(()=>r(7,se=!1))},S=c=>c?c.sort((x,C)=>new Date(C.Created).getTime()-new Date(x.Created).getTime()):[],D=()=>{n&&E()},R=()=>{let c=(f||n).split(".")[1];if(c){let x=JSON.parse(atob(c));return x.cdn+"/cashier/operator-assets/"+(x==null?void 0:x.mid)}return""},F=c=>{var C;if(!c||!c.length)return{VerificationSummaryStatus:W.Unverified,VerificationStatuses:[]};const x=he(c);if(x&&x.length){const j=z(x);return{VerificationSummaryStatus:j.Status,VerificationUrl:(C=j.Flags)==null?void 0:C.DeferredUrlKey,VerificationStatuses:Z(x,j.Status)}}else return{VerificationSummaryStatus:c.some(de=>de.Status===W.Failed)?W.Failed:W.Verified,VerificationStatuses:Z(c,[W.Failed])}},z=c=>c.reduce((x,C)=>x?new Date(x)<new Date(C)?C:x:C,0),Z=(c,x)=>c.filter(C=>x.includes(C.Status)).map(C=>{var j,de;return{Type:C.Type,Vendor:C.VendorName,VerificationDocuments:C.Documents?[...C.Documents]:[],VerificationUrlType:(j=C.FlowInfo)==null?void 0:j.Type,VerificationUrl:(de=C.FlowInfo)==null?void 0:de.Url}}),he=c=>c.filter(x=>p.includes(x.Status)?x.FlowInfo&&x.FlowInfo.Url||ae(x)||ve(x):!1),ae=c=>{const x=c.Documents&&c.VendorName===B.Manual,C=c.Documents&&c.Documents.some(j=>j.Status===fe.Requested);return x&&C},ve=c=>c.VendorName===B.ShuftiPro&&c.Status===W.Referred,ue=()=>{switch(N.VerificationSummaryStatus){case W.InProgress:const c=[];return d.forEach(x=>{c.push(Y(x))}),c;case W.Referred:return[i("verification.idenfy.referred-awaiting")];case W.Failed:return[i("verification.message.failed")]}},Y=c=>{const x=N.VerificationStatuses.filter(C=>C.Vendor===c);if(c===B.ShuftiPro)return ie(x);{const C=i("verification.idenfy.link-name"),j={link:`<a href="${x[0].VerificationUrl}" target="_blank">${C}</a>`};return i("verification.idenfy.in-progress",{values:j})}},ie=c=>{const x=[],C={},j=[_.Biometric,_.Documents,_.ProofOfAddress];c.forEach(be=>{j.includes(be.Type)&&(x.push(be.Type),C[be.Type]=ge(be,we(be.Type)))});let de=x.every(be=>I.has(be)),Xe=`verification.shuftipro.in-progress.${x.sort().join(".")}`;return de?i("verification.shuftipro.validations-started"):i(Xe,{values:C})},ge=(c,x)=>`<a class="verificationLink ${c.Type}" href=" ${c.VerificationUrl} " target="_blank">${x}</a>`,we=c=>i(`verification.shuftipro.link-name.${c}`),wi=()=>{r(4,O=!O)},Ei=()=>{r(5,L=!hs(V))},Si=()=>{q=H+"/"+s+"/"+_s;try{fetch(q,{method:"HEAD"}).then(c=>{r(6,P=c.ok)})}catch(c){r(6,P=!1)}},Ti=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:q}}}))};function Oi(c){it[c?"unshift":"push"](()=>{w=c,r(2,w)})}return e.$$set=c=>{"endpoint"in c&&r(11,o=c.endpoint),"lang"in c&&r(12,s=c.lang),"translationurl"in c&&r(13,a=c.translationurl),"clientstyling"in c&&r(0,u=c.clientstyling),"clientstylingurl"in c&&r(1,l=c.clientstylingurl),"session"in c&&r(14,f=c.session),"customerid"in c&&r(15,h=c.customerid),"playersession"in c&&r(16,m=c.playersession),"mbsource"in c&&r(17,b=c.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&v(),e.$$.dirty[0]&83968&&o&&f&&m&&E(),e.$$.dirty[0]&83968&&o&&!f&&m&&D(),e.$$.dirty[0]&8192&&a&&y(),e.$$.dirty[0]&5&&u&&w&&ci(w,u),e.$$.dirty[0]&6&&l&&w&&fi(w,l),e.$$.dirty[0]&262144&&H&&Si(),e.$$.dirty[0]&131076&&b&&w&&hi(w,`${b}.Style`,re)},[u,l,w,T,O,L,P,se,i,wi,Ti,o,s,a,f,h,m,b,H,Oi]}class xi extends Nr{constructor(t){super(),Lr(this,t,xs,ys,kt,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},vs,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),K()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),K()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),K()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),K()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),K()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),K()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),K()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),K()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),K()}}Dr(xi,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);const ws=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"}));exports.CashierVerifications_ce=ws;exports.SvelteComponent=Nr;exports.add_iframe_resize_listener=Gi;exports.add_render_callback=nt;exports.append=G;exports.append_styles=Hr;exports.attr=$;exports.binding_callbacks=it;exports.check_outros=Zi;exports.create_custom_element=Dr;exports.create_slot=Li;exports.detach=te;exports.element=X;exports.flush=K;exports.get_all_dirty_from_scope=Ni;exports.get_slot_changes=Ii;exports.group_outros=Yi;exports.init=Lr;exports.insert=oe;exports.listen=Re;exports.noop=ee;exports.onMount=Br;exports.safe_not_equal=kt;exports.setClientStyling=ci;exports.setClientStylingURL=fi;exports.setStreamStyling=hi;exports.space=ye;exports.svg_element=De;exports.tick=Wi;exports.toggle_class=le;exports.transition_in=Cr;exports.transition_out=Ji;exports.update_slot_base=Di;
20
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function It(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ht=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ct(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(h){t={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var f=this.initialTeardown;if(le(f))try{f()}catch(h){o=h instanceof xt?h.errors:[h]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=Ct(p),b=v.next();!b.done;b=v.next()){var T=b.value;try{dr(T)}catch(h){o=o!=null?o:[],h instanceof xt?o=Lt(Lt([],$t(o)),$t(h.errors)):o.push(h)}}}catch(h){i={error:h}}finally{try{b&&!b.done&&(n=v.return)&&n.call(v)}finally{if(i)throw i.error}}}if(o)throw new xt(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&It(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&It(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),pi=ht.EMPTY;function mi(e){return e instanceof ht||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dr(e){le(e)?e():e.unsubscribe()}var ts={Promise:void 0},rs={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Lt([e,t],$t(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function is(e){rs.setTimeout(function(){throw e})}function pr(){}function rt(e){e()}var vi=function(e){We(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,mi(r)&&r.add(i)):i.destination=ss,i}return t.create=function(r,i,n){return new Dt(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ht),ns=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Je(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Je(i)}else Je(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Je(r)}},e}(),Dt=function(e){We(t,e);function t(r,i,n){var o=e.call(this)||this,s;return le(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new ns(s),o}return t}(vi);function Je(e){is(e)}function os(e){throw e}var ss={closed:!0,next:pr,error:os,complete:pr},as=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function us(e){return e}function ls(e){return e.length===0?us:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var mr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=fs(t)?t:new Dt(t,r,i);return rt(function(){var s=n,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=vr(r),new r(function(n,o){var s=new Dt({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[as]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ls(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vr(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function vr(e){var t;return(t=e!=null?e:ts.Promise)!==null&&t!==void 0?t:Promise}function cs(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}function fs(e){return e&&e instanceof vi||cs(e)&&mi(e)}var hs=di(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gi=function(e){We(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new gr(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new hs},t.prototype.next=function(r){var i=this;rt(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Ct(i.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;rt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;rt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?pi:(this.currentObservers=null,a.push(r),new ht(function(){i.currentObservers=null,It(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new mr;return r.source=this,r},t.create=function(r,i){return new gr(r,i)},t}(mr),gr=function(e){We(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:pi},t}(gi),bi={now:function(){return(bi.delegate||Date).now()},delegate:void 0},ds=function(e){We(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=bi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,u=i._windowTime;n||(o.push(r),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=o?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=n.now(),l=0,f=1;f<o.length&&o[f]<=u;f+=2)l=f;l&&o.splice(0,l+1)}},t}(gi);const br=[],yr={},ps=(e,t=0)=>{if(br.indexOf(e)==-1){const r=new ds(t);yr[e]=r,br.push(e)}return yr[e]};window.emWidgets={topic:ps};const ms=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-CcYe0NGS.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var yi={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",f="week",p="month",v="quarter",b="year",T="date",h="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,H={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(x){var d=["th","st","nd","rd"],m=x%100;return"["+x+(d[(m-20)%10]||d[m]||d[0])+"]"}},E=function(x,d,m){var y=String(x);return!y||y.length>=d?x:""+Array(d+1-y.length).join(m)+x},O={s:E,z:function(x){var d=-x.utcOffset(),m=Math.abs(d),y=Math.floor(m/60),g=m%60;return(d<=0?"+":"-")+E(y,2,"0")+":"+E(g,2,"0")},m:function x(d,m){if(d.date()<m.date())return-x(m,d);var y=12*(m.year()-d.year())+(m.month()-d.month()),g=d.clone().add(y,p),w=m-g<0,S=d.clone().add(y+(w?-1:1),p);return+(-(y+(m-g)/(w?g-S:S-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:p,y:b,w:f,d:l,D:T,h:u,m:a,s,ms:o,Q:v}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},C="en",P={};P[C]=H;var X="$isDayjsObject",se=function(x){return x instanceof xe||!(!x||!x[X])},Q=function x(d,m,y){var g;if(!d)return C;if(typeof d=="string"){var w=d.toLowerCase();P[w]&&(g=w),m&&(P[w]=m,g=w);var S=d.split("-");if(!g&&S.length>1)return x(S[0])}else{var D=d.name;P[D]=d,g=D}return!y&&g&&(C=g),g||!y&&C},V=function(x,d){if(se(x))return x.clone();var m=typeof d=="object"?d:{};return m.date=x,m.args=arguments,new xe(m)},L=O;L.l=Q,L.i=se,L.w=function(x,d){return V(x,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var xe=function(){function x(m){this.$L=Q(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[X]=!0}var d=x.prototype;return d.parse=function(m){this.$d=function(y){var g=y.date,w=y.utc;if(g===null)return new Date(NaN);if(L.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var S=g.match(I);if(S){var D=S[2]-1||0,k=(S[7]||"0").substring(0,3);return w?new Date(Date.UTC(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,k)):new Date(S[1],D,S[3]||1,S[4]||0,S[5]||0,S[6]||0,k)}}return new Date(g)}(m),this.init()},d.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},d.$utils=function(){return L},d.isValid=function(){return this.$d.toString()!==h},d.isSame=function(m,y){var g=V(m);return this.startOf(y)<=g&&g<=this.endOf(y)},d.isAfter=function(m,y){return V(m)<this.startOf(y)},d.isBefore=function(m,y){return this.endOf(y)<V(m)},d.$g=function(m,y,g){return L.u(m)?this[y]:this.set(g,m)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(m,y){var g=this,w=!!L.u(y)||y,S=L.p(m),D=function(ae,q){var ie=L.w(g.$u?Date.UTC(g.$y,q,ae):new Date(g.$y,q,ae),g);return w?ie:ie.endOf(l)},k=function(ae,q){return L.w(g.toDate()[ae].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(q)),g)},F=this.$W,z=this.$M,Z=this.$D,fe="set"+(this.$u?"UTC":"");switch(S){case b:return w?D(1,0):D(31,11);case p:return w?D(1,z):D(0,z+1);case f:var re=this.$locale().weekStart||0,me=(F<re?F+7:F)-re;return D(w?Z-me:Z+(6-me),z);case l:case T:return k(fe+"Hours",0);case u:return k(fe+"Minutes",1);case a:return k(fe+"Seconds",2);case s:return k(fe+"Milliseconds",3);default:return this.clone()}},d.endOf=function(m){return this.startOf(m,!1)},d.$set=function(m,y){var g,w=L.p(m),S="set"+(this.$u?"UTC":""),D=(g={},g[l]=S+"Date",g[T]=S+"Date",g[p]=S+"Month",g[b]=S+"FullYear",g[u]=S+"Hours",g[a]=S+"Minutes",g[s]=S+"Seconds",g[o]=S+"Milliseconds",g)[w],k=w===l?this.$D+(y-this.$W):y;if(w===p||w===b){var F=this.clone().set(T,1);F.$d[D](k),F.init(),this.$d=F.set(T,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](k);return this.init(),this},d.set=function(m,y){return this.clone().$set(m,y)},d.get=function(m){return this[L.p(m)]()},d.add=function(m,y){var g,w=this;m=Number(m);var S=L.p(y),D=function(z){var Z=V(w);return L.w(Z.date(Z.date()+Math.round(z*m)),w)};if(S===p)return this.set(p,this.$M+m);if(S===b)return this.set(b,this.$y+m);if(S===l)return D(1);if(S===f)return D(7);var k=(g={},g[a]=i,g[u]=n,g[s]=r,g)[S]||1,F=this.$d.getTime()+m*k;return L.w(F,this)},d.subtract=function(m,y){return this.add(-1*m,y)},d.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||h;var w=m||"YYYY-MM-DDTHH:mm:ssZ",S=L.z(this),D=this.$H,k=this.$m,F=this.$M,z=g.weekdays,Z=g.months,fe=g.meridiem,re=function(q,ie,ve,Ee){return q&&(q[ie]||q(y,w))||ve[ie].slice(0,Ee)},me=function(q){return L.s(D%12||12,q,"0")},ae=fe||function(q,ie,ve){var Ee=q<12?"AM":"PM";return ve?Ee.toLowerCase():Ee};return w.replace(R,function(q,ie){return ie||function(ve){switch(ve){case"YY":return String(y.$y).slice(-2);case"YYYY":return L.s(y.$y,4,"0");case"M":return F+1;case"MM":return L.s(F+1,2,"0");case"MMM":return re(g.monthsShort,F,Z,3);case"MMMM":return re(Z,F);case"D":return y.$D;case"DD":return L.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return re(g.weekdaysMin,y.$W,z,2);case"ddd":return re(g.weekdaysShort,y.$W,z,3);case"dddd":return z[y.$W];case"H":return String(D);case"HH":return L.s(D,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(D,k,!0);case"A":return ae(D,k,!1);case"m":return String(k);case"mm":return L.s(k,2,"0");case"s":return String(y.$s);case"ss":return L.s(y.$s,2,"0");case"SSS":return L.s(y.$ms,3,"0");case"Z":return S}return null}(q)||S.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(m,y,g){var w,S=this,D=L.p(y),k=V(m),F=(k.utcOffset()-this.utcOffset())*i,z=this-k,Z=function(){return L.m(S,k)};switch(D){case b:w=Z()/12;break;case p:w=Z();break;case v:w=Z()/3;break;case f:w=(z-F)/6048e5;break;case l:w=(z-F)/864e5;break;case u:w=z/n;break;case a:w=z/i;break;case s:w=z/r;break;default:w=z}return g?w:L.a(w)},d.daysInMonth=function(){return this.endOf(p).$D},d.$locale=function(){return P[this.$L]},d.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),w=Q(m,y,!0);return w&&(g.$L=w),g},d.clone=function(){return L.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},x}(),ce=xe.prototype;return V.prototype=ce,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",p],["$y",b],["$D",T]].forEach(function(x){ce[x[1]]=function(d){return this.$g(d,x[0],x[1])}}),V.extend=function(x,d){return x.$i||(x(d,xe,V),x.$i=!0),V},V.locale=Q,V.isDayjs=se,V.unix=function(x){return V(1e3*x)},V.en=P[C],V.Ls=P,V.p={},V})})(yi);var vs=yi.exports;const _r=Ut(vs);var _i={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kr,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,a){var u=s.prototype;a.utc=function(h){var I={date:h,utc:!0,args:arguments};return new s(I)},u.utc=function(h){var I=a(this.toDate(),{locale:this.$L,utc:!0});return h?I.add(this.utcOffset(),r):I},u.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),l.call(this,h)};var f=u.init;u.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var p=u.utcOffset;u.utcOffset=function(h,I){var R=this.$utils().u;if(R(h))return this.$u?0:R(this.$offset)?p.call(this):this.$offset;if(typeof h=="string"&&(h=function(C){C===void 0&&(C="");var P=C.match(i);if(!P)return null;var X=(""+P[0]).match(n)||["-",0,0],se=X[0],Q=60*+X[1]+ +X[2];return Q===0?0:se==="+"?Q:-Q}(h),h===null))return this;var H=Math.abs(h)<=16?60*h:h,E=this;if(I)return E.$offset=H,E.$u=h===0,E;if(h!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(H+O,r)).$offset=H,E.$x.$localOffset=O}else E=this.utc();return E};var v=u.format;u.format=function(h){var I=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,I)},u.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var b=u.toDate;u.toDate=function(h){return h==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var T=u.diff;u.diff=function(h,I,R){if(h&&this.$u===h.$u)return T.call(this,h,I,R);var H=this.local(),E=a(h).local();return T.call(H,E,I,R)}}})})(_i);var gs=_i.exports;const bs=Ut(gs);function ys(e){Hr(e,"svelte-etf668",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function xr(e,t,r){const i=e.slice();return i[56]=t[r],i}function _s(e){let t,r=e[3].length>0&&Er(e);return{c(){t=W("div"),r&&r.c(),M(t,"class","CashierVerificationsWrapper")},m(i,n){oe(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Er(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&te(t),r&&r.d()}}}function xs(e){let t;return{c(){t=W("cashier-spinner"),qe(t,"clientstylingurl",e[1]),qe(t,"clientstyling",e[0])},m(r,i){oe(r,t,i)},p(r,i){i[0]&2&&qe(t,"clientstylingurl",r[1]),i[0]&1&&qe(t,"clientstyling",r[0])},d(r){r&&te(t)}}}function Er(e){let t,r,i,n,o,s,a,u=e[8]("verificationsRequired")+"",l,f,p,v,b,T,h,I,R=Zt(e[3]),H=[];for(let O=0;O<R.length;O+=1)H[O]=wr(xr(e,R,O));let E=e[6]&&Sr(e);return{c(){t=W("div"),r=De("svg"),i=De("path"),n=De("path"),o=De("path"),s=be(),a=W("p"),l=Rt(u),f=be(),p=W("span"),p.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',v=be(),b=W("div");for(let O=0;O<H.length;O+=1)H[O].c();T=be(),E&&E.c(),M(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),M(i,"stroke","#6E738F"),M(i,"stroke-width","2"),M(i,"stroke-linecap","round"),M(i,"stroke-linejoin","round"),M(n,"d","M12 8V12"),M(n,"stroke","#6E738F"),M(n,"stroke-width","2"),M(n,"stroke-linecap","round"),M(n,"stroke-linejoin","round"),M(o,"d","M12 16H12.01"),M(o,"stroke","#6E738F"),M(o,"stroke-width","2"),M(o,"stroke-linecap","round"),M(o,"stroke-linejoin","round"),M(r,"width","24"),M(r,"height","24"),M(r,"viewBox","0 0 24 24"),M(r,"fill","none"),M(r,"xmlns","http://www.w3.org/2000/svg"),M(p,"class","CashierVerificationChevron"),ue(p,"ShowVerifications",e[4]),M(t,"class","VerificationsHeader"),M(b,"class","VerificationsList"),ue(b,"ShowVerifications",e[4])},m(O,C){oe(O,t,C),G(t,r),G(r,i),G(r,n),G(r,o),G(t,s),G(t,a),G(a,l),G(t,f),G(t,p),oe(O,v,C),oe(O,b,C);for(let P=0;P<H.length;P+=1)H[P]&&H[P].m(b,null);G(b,T),E&&E.m(b,null),h||(I=Re(t,"click",e[9]),h=!0)},p(O,C){if(C[0]&256&&u!==(u=O[8]("verificationsRequired")+"")&&Ar(l,u),C[0]&16&&ue(p,"ShowVerifications",O[4]),C[0]&8){R=Zt(O[3]);let P;for(P=0;P<R.length;P+=1){const X=xr(O,R,P);H[P]?H[P].p(X,C):(H[P]=wr(X),H[P].c(),H[P].m(b,T))}for(;P<H.length;P+=1)H[P].d(1);H.length=R.length}O[6]?E?E.p(O,C):(E=Sr(O),E.c(),E.m(b,null)):E&&(E.d(1),E=null),C[0]&16&&ue(b,"ShowVerifications",O[4])},d(O){O&&(te(t),te(v),te(b)),Gi(H,O),E&&E.d(),h=!1,I()}}}function wr(e){let t,r,i,n,o=e[56]+"";return{c(){t=W("div"),r=W("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=be(),n=W("p"),M(r,"class","IconVerification"),M(n,"class","text"),M(t,"class","CashierVerificationMessage Test")},m(s,a){oe(s,t,a),G(t,r),G(t,i),G(t,n),n.innerHTML=o},p(s,a){a[0]&8&&o!==(o=s[56]+"")&&(n.innerHTML=o)},d(s){s&&te(t)}}}function Sr(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,a,u;return{c(){t=W("div"),r=W("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=be(),n=W("div"),s=Rt(o),M(r,"class","IconVideo"),M(n,"class","CashierVerificationVideoLink"),ue(n,"CashierVerificationVideoLinkDesktop",e[5]),M(t,"class","CashierVerificationVideo Test")},m(l,f){oe(l,t,f),G(t,r),G(t,i),G(t,n),G(n,s),a||(u=Re(t,"click",e[10]),a=!0)},p(l,f){f[0]&256&&o!==(o=l[8]("verification.video.how-to")+"")&&Ar(s,o),f[0]&32&&ue(n,"CashierVerificationVideoLinkDesktop",l[5])},d(l){l&&te(t),a=!1,u()}}}function Es(e){let t;function r(o,s){if(o[7])return xs;if(o[3])return _s}let i=r(e),n=i&&i(e);return{c(){t=W("div"),n&&n.c(),M(t,"class","CashierVerifications"),ue(t,"CashierVerificationsDesktop",e[5])},m(o,s){oe(o,t,s),n&&n.m(t,null),e[20](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&ue(t,"CashierVerificationsDesktop",o[5])},i:ee,o:ee,d(o){o&&te(t),n&&n.d(),e[20](null)}}}const ws="verification_explanation_video_widgets.MP4";function Ss(e,t,r){let i,n;qt(e,Zo,c=>r(8,i=c)),qt(e,Qo,c=>r(29,n=c)),_r.extend(bs);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:a=""}=t,{clientstyling:u=""}=t,{clientstylingurl:l=""}=t,{session:f=""}=t,{customerid:p=""}=t,{playersession:v=""}=t,{userroles:b=""}=t,{mbsource:T=""}=t,h,I=new Set,R=new Set,H,E,O,C=!1,P=!0,X=!1,se="",Q=!1,V,L,xe=window.navigator.userAgent;var ce;(function(c){c.Manual="Manual",c.ShuftiPro="ShuftiPro"})(ce||(ce={}));var x;(function(c){c.Requested="Requested"})(x||(x={}));var d;(function(c){c.Unknown="Unknown",c.Unverified="Unverified",c.InProgress="InProgress",c.Failed="Failed",c.Verified="Verified",c.Referred="Referred",c.True="True",c.False="False",c.AwaitingForResponse="AwaitingForResponse"})(d||(d={}));var m;(function(c){c.Unknown="Unknown",c.Documents="Documents",c.Age="Age",c.Pep="Pep",c.Sanction="Sanction",c.Aml="Aml",c.ProofOfAddress="ProofOfAddress",c.SourceOfWealth="SourceOfWealth",c.SocialMedia="SocialMedia",c.Biometric="Biometric"})(m||(m={}));const y=c=>{c.data&&c.data.type};Br(()=>(window.addEventListener("message",y),Ti(),()=>{window.removeEventListener("message",y)}));const g=[d.InProgress,d.Referred,d.AwaitingForResponse],w=()=>{let c=a;if(c)return fetch(c).then(_=>_.json()).then(_=>{Object.keys(_).forEach($=>{fr($,_[$])})}).catch(_=>{console.log(_)})};Object.keys(hr).forEach(c=>{fr(c,hr[c])});const S=()=>{Jo(s)},D=()=>{r(19,E=z());const c=new URL(`${o}/v1/player/${p}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${v}`),_.append("X-Client-Request-Timestamp",_r.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),L.indexOf("MM_CHANNEL_BETA")!=-1&&_.append("MM_CHANNEL","BETA");const $={method:"POST",headers:_,body:JSON.stringify({})};r(7,Q=!0),fetch(c,$).then(j=>j.json()).then(j=>{const he=k(j==null?void 0:j.Verifications);H=Z(he),H.VerificationStatuses.forEach(Xe=>{Xe.VerificationUrlType!=="Widget"&&I.add(Xe.Vendor)}),r(3,O=ie())}).finally(()=>r(7,Q=!1))},k=c=>c?c.sort((_,$)=>new Date($.Created).getTime()-new Date(_.Created).getTime()):[],F=()=>{n&&D()},z=()=>{let c=(f||n).split(".")[1];if(c){let _=JSON.parse(atob(c));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},Z=c=>{var $;if(!c||!c.length)return{VerificationSummaryStatus:d.Unverified,VerificationStatuses:[]};const _=me(c);if(_&&_.length){const j=fe(_);return{VerificationSummaryStatus:j.Status,VerificationUrl:($=j.Flags)==null?void 0:$.DeferredUrlKey,VerificationStatuses:re(_,j.Status)}}else return{VerificationSummaryStatus:c.some(he=>he.Status===d.Failed)?d.Failed:d.Verified,VerificationStatuses:re(c,[d.Failed])}},fe=c=>c.reduce((_,$)=>_?new Date(_)<new Date($)?$:_:$,0),re=(c,_)=>c.filter($=>_.includes($.Status)).map($=>{var j,he;return{Type:$.Type,Vendor:$.VendorName,VerificationDocuments:$.Documents?[...$.Documents]:[],VerificationUrlType:(j=$.FlowInfo)==null?void 0:j.Type,VerificationUrl:(he=$.FlowInfo)==null?void 0:he.Url}}),me=c=>c.filter(_=>g.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ae(_)||q(_):!1),ae=c=>{const _=c.Documents&&c.VendorName===ce.Manual,$=c.Documents&&c.Documents.some(j=>j.Status===x.Requested);return _&&$},q=c=>c.VendorName===ce.ShuftiPro&&c.Status===d.Referred,ie=()=>{switch(H.VerificationSummaryStatus){case d.InProgress:const c=[];return I.forEach(_=>{c.push(ve(_))}),c;case d.Referred:return[i("verification.idenfy.referred-awaiting")];case d.Failed:return[i("verification.message.failed")]}},ve=c=>{const _=H.VerificationStatuses.filter($=>$.Vendor===c);if(c===ce.ShuftiPro)return Ee(_);{const $=i("verification.idenfy.link-name"),j={link:`<a href="${_[0].VerificationUrl}" target="_blank">${$}</a>`};return i("verification.idenfy.in-progress",{values:j})}},Ee=c=>{const _=[],$={},j=[m.Biometric,m.Documents,m.ProofOfAddress];c.forEach(ge=>{j.includes(ge.Type)&&(_.push(ge.Type),$[ge.Type]=Ei(ge,wi(ge.Type)))});let he=_.every(ge=>R.has(ge)),Xe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return he?i("verification.shuftipro.validations-started"):i(Xe,{values:$})},Ei=(c,_)=>`<a class="verificationLink ${c.Type}" href=" ${c.VerificationUrl} " target="_blank">${_}</a>`,wi=c=>i(`verification.shuftipro.link-name.${c}`),Si=()=>{r(4,C=!C)},Ti=()=>{r(5,P=!ms(xe))},Oi=()=>{se=E+"/"+s+"/"+ws;try{fetch(se,{method:"HEAD"}).then(c=>{r(6,X=c.ok)})}catch(c){r(6,X=!1)}},Pi=()=>{b.length>0&&(L=b.split(","))},Hi=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:se}}}))};function Ai(c){it[c?"unshift":"push"](()=>{h=c,r(2,h)})}return e.$$set=c=>{"endpoint"in c&&r(11,o=c.endpoint),"lang"in c&&r(12,s=c.lang),"translationurl"in c&&r(13,a=c.translationurl),"clientstyling"in c&&r(0,u=c.clientstyling),"clientstylingurl"in c&&r(1,l=c.clientstylingurl),"session"in c&&r(14,f=c.session),"customerid"in c&&r(15,p=c.customerid),"playersession"in c&&r(16,v=c.playersession),"userroles"in c&&r(17,b=c.userroles),"mbsource"in c&&r(18,T=c.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&S(),e.$$.dirty[0]&83968&&o&&f&&v&&D(),e.$$.dirty[0]&83968&&o&&!f&&v&&F(),e.$$.dirty[0]&8192&&a&&w(),e.$$.dirty[0]&5&&u&&h&&ci(h,u),e.$$.dirty[0]&6&&l&&h&&fi(h,l),e.$$.dirty[0]&524288&&E&&Oi(),e.$$.dirty[0]&131072&&b&&Pi(),e.$$.dirty[0]&262148&&T&&h&&hi(h,`${T}.Style`,V)},[u,l,h,O,C,P,X,Q,i,Si,Hi,o,s,a,f,p,v,b,T,E,Ai]}class xi extends Nr{constructor(t){super(),Lr(this,t,Ss,Es,kt,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,userroles:17,mbsource:18},ys,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),J()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),J()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),J()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),J()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),J()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),J()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),J()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),J()}get userroles(){return this.$$.ctx[17]}set userroles(t){this.$$set({userroles:t}),J()}get mbsource(){return this.$$.ctx[18]}set mbsource(t){this.$$set({mbsource:t}),J()}}Dr(xi,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},userroles:{},mbsource:{}},[],[],!0);const Ts=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"}));exports.CashierVerifications_ce=Ts;exports.SvelteComponent=Nr;exports.add_iframe_resize_listener=Wi;exports.add_render_callback=nt;exports.append=G;exports.append_styles=Hr;exports.attr=M;exports.binding_callbacks=it;exports.check_outros=Ki;exports.create_custom_element=Dr;exports.create_slot=Ni;exports.detach=te;exports.element=W;exports.flush=J;exports.get_all_dirty_from_scope=Ui;exports.get_slot_changes=ki;exports.group_outros=Qi;exports.init=Lr;exports.insert=oe;exports.listen=Re;exports.noop=ee;exports.onMount=Br;exports.safe_not_equal=kt;exports.setClientStyling=ci;exports.setClientStylingURL=fi;exports.setStreamStyling=hi;exports.space=be;exports.svg_element=De;exports.tick=Yi;exports.toggle_class=ue;exports.transition_in=$r;exports.transition_out=en;exports.update_slot_base=Ri;