@everymatrix/cashier-verifications 1.48.2 → 1.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +0,0 @@
1
- "use strict";var $r=Object.defineProperty,Hr=Object.defineProperties;var Pr=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var Or=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var Xe=(e,t,r)=>t in e?$r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yt=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Xe(e,r,t[r]);if(bt)for(var r of bt(t))Ar.call(t,r)&&Xe(e,r,t[r]);return e},xt=(e,t)=>Hr(e,Pr(t));var z=(e,t,r)=>Xe(e,typeof t!="symbol"?t+"":t,r);var Et=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{u(r.next(l))}catch(h){n(h)}},o=l=>{try{u(r.throw(l))}catch(h){n(h)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function q(){}function zt(e){return e()}function _t(){return Object.create(null)}function Pe(e){e.forEach(zt)}function ft(e){return typeof e=="function"}function Wt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Br(e){return Object.keys(e).length===0}function qt(e,...t){if(e==null){for(const i of t)i(void 0);return q}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Mr(e,t,r){e.$$.on_destroy.push(qt(t,r))}function ce(e,t){e.appendChild(t)}function Cr(e,t,r){const i=Dr(e);if(!i.getElementById(t)){const n=ie("style");n.id=t,n.textContent=r,Ir(i,n)}}function Dr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ir(e,t){return ce(e.head||e,t),t.sheet}function Oe(e,t,r){e.insertBefore(t,r||null)}function ye(e){e.parentNode&&e.parentNode.removeChild(e)}function Lr(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function ie(e){return document.createElement(e)}function Nr(e){return document.createTextNode(e)}function ze(){return Nr(" ")}function Yt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ae(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Rr(e){return Array.from(e.childNodes)}function Ne(e,t,r){e.classList.toggle(t,!!r)}function Ur(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let ct;function Te(e){ct=e}const de=[],et=[];let me=[];const wt=[],kr=Promise.resolve();let tt=!1;function Fr(){tt||(tt=!0,kr.then(J))}function rt(e){me.push(e)}const We=new Set;let le=0;function J(){if(le!==0)return;const e=ct;do{try{for(;le<de.length;){const t=de[le];le++,Te(t),Gr(t.$$)}}catch(t){throw de.length=0,le=0,t}for(Te(null),de.length=0,le=0;et.length;)et.pop()();for(let t=0;t<me.length;t+=1){const r=me[t];We.has(r)||(We.add(r),r())}me.length=0}while(de.length);for(;wt.length;)wt.pop()();tt=!1,We.clear(),Te(e)}function Gr(e){if(e.fragment!==null){e.update(),Pe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(rt)}}function Vr(e){const t=[],r=[];me.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),me=t}const jr=new Set;function Xr(e,t){e&&e.i&&(jr.delete(e),e.i(t))}function St(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function zr(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),rt(()=>{const s=e.$$.on_mount.map(zt).filter(ft);e.$$.on_destroy?e.$$.on_destroy.push(...s):Pe(s),e.$$.on_mount=[]}),n.forEach(rt)}function Wr(e,t){const r=e.$$;r.fragment!==null&&(Vr(r.after_update),Pe(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function qr(e,t){e.$$.dirty[0]===-1&&(de.push(e),Fr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Yr(e,t,r,i,n,s,o=null,u=[-1]){const l=ct;Te(e);const h=e.$$={fragment:null,ctx:[],props:s,update:q,not_equal:n,bound:_t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:_t(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};o&&o(h.root);let f=!1;if(h.ctx=r?r(e,t.props||{},(d,m,..._)=>{const $=_.length?_[0]:m;return h.ctx&&n(h.ctx[d],h.ctx[d]=$)&&(!h.skip_bound&&h.bound[d]&&h.bound[d]($),f&&qr(e,d)),m}):[],h.update(),f=!0,Pe(h.before_update),h.fragment=i?i(h.ctx):!1,t.target){if(t.hydrate){const d=Rr(t.target);h.fragment&&h.fragment.l(d),d.forEach(ye)}else h.fragment&&h.fragment.c();t.intro&&Xr(e.$$.fragment),zr(e,t.target,t.anchor),J()}Te(l)}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{constructor(t,r,i){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(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 Et(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=ie("slot"),s!=="default"&&ae(o,"name",s)},m:function(h,f){Oe(h,o,f)},d:function(h){h&&ye(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Ur(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=De(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:xt(yt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=De(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const u=this.$$c.$on(s,o);this.$$l_u.set(o,u)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=De(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 De(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.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 Zr(e,t,r,i,n,s){let o=class extends Zt{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var h;l=De(u,l,t),this.$$d[u]=l,(h=this.$$c)==null||h.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(o.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=o,o}class Jr{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){Wr(this,1),this.$destroy=q}$on(t,r){if(!ft(r))return q;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&&!Br(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qr);const fe=[];function Kr(e,t){return{subscribe:Fe(e,t).subscribe}}function Fe(e,t=q){let r;const i=new Set;function n(u){if(Wt(e,u)&&(e=u,r)){const l=!fe.length;for(const h of i)h[1](),fe.push(h,e);if(l){for(let h=0;h<fe.length;h+=2)fe[h][0](fe[h+1]);fe.length=0}}}function s(u){n(u(e))}function o(u,l=q){const h=[u,l];return i.add(h),i.size===1&&(r=t(n,s)||q),u(e),()=>{i.delete(h),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function xe(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 s=t.length<2;return Kr(r,(o,u)=>{let l=!1;const h=[];let f=0,d=q;const m=()=>{if(f)return;d();const $=t(i?h[0]:h,o,u);s?o($):d=ft($)?$:q},_=n.map(($,b)=>qt($,C=>{h[b]=C,f&=~(1<<b),l&&m()},()=>{f|=1<<b}));return l=!0,m(),function(){Pe(_),d(),l=!1}})}var Jt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ei=function(t){return ti(t)&&!ri(t)};function ti(e){return!!e&&typeof e=="object"}function ri(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||si(e)}var ii=typeof Symbol=="function"&&Symbol.for,ni=ii?Symbol.for("react.element"):60103;function si(e){return e.$$typeof===ni}function oi(e){return Array.isArray(e)?[]:{}}function $e(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pe(oi(e),e,t):e}function ai(e,t,r){return e.concat(t).map(function(i){return $e(i,r)})}function ui(e,t){if(!t.customMerge)return pe;var r=t.customMerge(e);return typeof r=="function"?r:pe}function hi(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Tt(e){return Object.keys(e).concat(hi(e))}function Qt(e,t){try{return t in e}catch(r){return!1}}function li(e,t){return Qt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function fi(e,t,r){var i={};return r.isMergeableObject(e)&&Tt(e).forEach(function(n){i[n]=$e(e[n],r)}),Tt(t).forEach(function(n){li(e,n)||(Qt(e,n)&&r.isMergeableObject(t[n])?i[n]=ui(n,r)(e[n],t[n],r):i[n]=$e(t[n],r))}),i}function pe(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ai,r.isMergeableObject=r.isMergeableObject||ei,r.cloneUnlessOtherwiseSpecified=$e;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):fi(e,t,r):$e(t,r)}pe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return pe(i,n,r)},{})};var ci=pe,di=ci;const mi=dt(di);var it=function(e,t){return it=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])},it(e,t)};function Ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");it(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var O=function(){return O=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},O.apply(this,arguments)};function pi(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 qe(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var T;(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"})(T||(T={}));var D;(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"})(D||(D={}));var ge;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ge||(ge={}));function $t(e){return e.type===D.literal}function gi(e){return e.type===D.argument}function Kt(e){return e.type===D.number}function er(e){return e.type===D.date}function tr(e){return e.type===D.time}function rr(e){return e.type===D.select}function ir(e){return e.type===D.plural}function vi(e){return e.type===D.pound}function nr(e){return e.type===D.tag}function sr(e){return!!(e&&typeof e=="object"&&e.type===ge.number)}function nt(e){return!!(e&&typeof e=="object"&&e.type===ge.dateTime)}var or=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bi=/(?:[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 yi(e){var t={};return e.replace(bi,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 xi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ei(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(xi).filter(function(m){return m.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var u=o[0],l=o.slice(1),h=0,f=l;h<f.length;h++){var d=f[h];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:l})}return r}function _i(e){return e.replace(/^(.*?)-/,"")}var Ht=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ar=/^(@+)?(\+|#+)?[rs]?$/g,wi=/(\*)(0+)|(#+)(0+)|(0+)/g,ur=/^(0+)$/;function Pt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ar,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 hr(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 Si(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)),!ur.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ot(e){var t={},r=hr(e);return r||t}function Ti(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=_i(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=O(O(O({},t),{notation:"scientific"}),n.options.reduce(function(l,h){return O(O({},l),Ot(h))},{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),n.options.reduce(function(l,h){return O(O({},l),Ot(h))},{}));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(wi,function(l,h,f,d,m,_){if(h)t.minimumIntegerDigits=f.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ur.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ht.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ht,function(l,h,f,d,m,_){return f==="*"?t.minimumFractionDigits=h.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&_?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+_.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var s=n.options[0];s==="w"?t=O(O({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=O(O({},t),Pt(s)));continue}if(ar.test(n.stem)){t=O(O({},t),Pt(n.stem));continue}var o=hr(n.stem);o&&(t=O(O({},t),o));var u=Si(n.stem);u&&(t=O(O({},t),u))}return t}var Ce={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 $i(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),u=s<2?1:3+(s>>1),l="a",h=Hi(t);for((h=="H"||h=="k")&&(u=0);u-- >0;)r+=l;for(;o-- >0;)r=h+r}else n==="J"?r+="H":r+=n}return r}function Hi(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=Ce[i||""]||Ce[r||""]||Ce["".concat(r,"-001")]||Ce["001"];return n[0]}var Ye,Pi=new RegExp("^".concat(or.source,"*")),Oi=new RegExp("".concat(or.source,"*$"));function H(e,t){return{start:e,end:t}}var Ai=!!String.prototype.startsWith&&"_a".startsWith("a",1),Bi=!!String.fromCodePoint,Mi=!!Object.fromEntries,Ci=!!String.prototype.codePointAt,Di=!!String.prototype.trimStart,Ii=!!String.prototype.trimEnd,Li=!!Number.isSafeInteger,Ni=Li?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},st=!0;try{var Ri=fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");st=((Ye=Ri.exec("a"))===null||Ye===void 0?void 0:Ye[0])==="a"}catch(e){st=!1}var At=Ai?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},ot=Bi?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Bt=Mi?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],u=s[1];r[o]=u}return r},lr=Ci?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},Ui=Di?function(t){return t.trimStart()}:function(t){return t.replace(Pi,"")},ki=Ii?function(t){return t.trimEnd()}:function(t){return t.replace(Oi,"")};function fr(e,t){return new RegExp(e,t)}var at;if(st){var Mt=fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");at=function(t,r){var i;Mt.lastIndex=r;var n=Mt.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else at=function(t,r){for(var i=[];;){var n=lr(t,r);if(n===void 0||cr(n)||ji(n))break;i.push(n),r+=n>=65536?2:1}return ot.apply(void 0,i)};var Fi=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 s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),n.push({type:D.pound,location:H(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ut(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.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:D.literal,value:"<".concat(n,"/>"),location:H(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ut(this.char()))return this.error(T.INVALID_TAG,H(u,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return n!==h?this.error(T.UNMATCHED_CLOSING_TAG,H(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:D.tag,value:n,children:o,location:H(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,H(u,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,H(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,H(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Vi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var u=this.tryParseLeftAngleBracket();if(u){n+=u;continue}break}var l=H(i,this.clonePosition());return{val:{type:D.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Gi(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(T.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,H(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(T.MALFORMED_ARGUMENT,H(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:D.argument,value:n,location:H(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(T.MALFORMED_ARGUMENT,H(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=at(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=H(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(u){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,H(o,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=ki(d.val);if(m.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var _=H(f,this.clonePosition());h={style:m,styleLocation:_}}var $=this.tryParseArgumentClose(n);if($.err)return $;var b=H(n,this.clonePosition());if(h&&At(h==null?void 0:h.style,"::",0)){var C=Ui(h.style.slice(2));if(u==="number"){var d=this.parseNumberSkeletonFromString(C,h.styleLocation);return d.err?d:{val:{type:D.number,value:i,location:b,style:d.val},err:null}}else{if(C.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,b);var F=C;this.locale&&(F=$i(C,this.locale));var m={type:ge.dateTime,pattern:F,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?yi(F):{}},G=u==="date"?D.date:D.time;return{val:{type:G,value:i,location:b,style:m},err:null}}}return{val:{type:u==="number"?D.number:u==="date"?D.date:D.time,value:i,location:b,style:(s=h==null?void 0:h.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,H(A,O({},A)));this.bumpSpace();var X=this.parseIdentifierIfPossible(),P=0;if(u!=="select"&&X.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),X=this.parseIdentifierIfPossible(),P=d.val}var N=this.tryParsePluralOrSelectOptions(t,u,r,X);if(N.err)return N;var $=this.tryParseArgumentClose(n);if($.err)return $;var W=H(n,this.clonePosition());return u==="select"?{val:{type:D.select,value:i,options:Bt(N.val),location:W},err:null}:{val:{type:D.plural,value:i,options:Bt(N.val),offset:P,pluralType:u==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,H(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,H(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(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(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=Ei(t)}catch(n){return this.error(T.INVALID_NUMBER_SKELETON,r)}return{val:{type:ge.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Ti(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,u=[],l=new Set,h=n.value,f=n.location;;){if(h.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;f=H(d,this.clonePosition()),h=this.message.slice(d.offset,this.offset())}else break}if(l.has(h))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);h==="other"&&(o=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var $=this.parseMessage(t+1,r,i);if($.err)return $;var b=this.tryParseArgumentClose(_);if(b.err)return b;u.push([h,{value:$.val,location:H(_,this.clonePosition())}]),l.add(h),this.bumpSpace(),s=this.parseIdentifierIfPossible(),h=s.value,f=s.location}return u.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(T.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)s=!0,o=o*10+(u-48),this.bump();else break}var l=H(n,this.clonePosition());return s?(o*=i,Ni(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},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=lr(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(At(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()&&cr(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 ut(e){return e>=97&&e<=122||e>=65&&e<=90}function Gi(e){return ut(e)||e===47}function Vi(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 cr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ji(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 ht(e){e.forEach(function(t){if(delete t.location,rr(t)||ir(t))for(var r in t.options)delete t.options[r].location,ht(t.options[r].value);else Kt(t)&&sr(t.style)||(er(t)||tr(t))&&nt(t.style)?delete t.style.location:nr(t)&&ht(t.children)})}function Xi(e,t){t===void 0&&(t={}),t=O({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Fi(e,t).parse();if(r.err){var i=SyntaxError(T[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||ht(r.val),r.val}function Ze(e,t){var r=t&&t.cache?t.cache:Ji,i=t&&t.serializer?t.serializer:Zi,n=t&&t.strategy?t.strategy:Wi;return n(e,{cache:r,serializer:i})}function zi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function dr(e,t,r,i){var n=zi(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function mr(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function mt(e,t,r,i,n){return r.bind(t,e,i,n)}function Wi(e,t){var r=e.length===1?dr:mr;return mt(e,this,r,t.cache.create(),t.serializer)}function qi(e,t){return mt(e,this,mr,t.cache.create(),t.serializer)}function Yi(e,t){return mt(e,this,dr,t.cache.create(),t.serializer)}var Zi=function(){return JSON.stringify(arguments)};function pt(){this.cache=Object.create(null)}pt.prototype.get=function(e){return this.cache[e]};pt.prototype.set=function(e,t){this.cache[e]=t};var Ji={create:function(){return new pt}},Je={variadic:qi,monadic:Yi},ve;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ve||(ve={}));var Ve=function(e){Ge(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ct=function(e){Ge(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ve.INVALID_VALUE,s)||this}return t}(Ve),Qi=function(e){Ge(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),ve.INVALID_VALUE,n)||this}return t}(Ve),Ki=function(e){Ge(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,'"'),ve.MISSING_VALUE,i)||this}return t}(Ve),j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(j||(j={}));function en(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 tn(e){return typeof e=="function"}function Ie(e,t,r,i,n,s,o){if(e.length===1&&$t(e[0]))return[{type:j.literal,value:e[0].value}];for(var u=[],l=0,h=e;l<h.length;l++){var f=h[l];if($t(f)){u.push({type:j.literal,value:f.value});continue}if(vi(f)){typeof s=="number"&&u.push({type:j.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(n&&d in n))throw new Ki(d,o);var m=n[d];if(gi(f)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),u.push({type:typeof m=="string"?j.literal:j.object,value:m});continue}if(er(f)){var _=typeof f.style=="string"?i.date[f.style]:nt(f.style)?f.style.parsedOptions:void 0;u.push({type:j.literal,value:r.getDateTimeFormat(t,_).format(m)});continue}if(tr(f)){var _=typeof f.style=="string"?i.time[f.style]:nt(f.style)?f.style.parsedOptions:i.time.medium;u.push({type:j.literal,value:r.getDateTimeFormat(t,_).format(m)});continue}if(Kt(f)){var _=typeof f.style=="string"?i.number[f.style]:sr(f.style)?f.style.parsedOptions:void 0;_&&_.scale&&(m=m*(_.scale||1)),u.push({type:j.literal,value:r.getNumberFormat(t,_).format(m)});continue}if(nr(f)){var $=f.children,b=f.value,C=n[b];if(!tn(C))throw new Qi(b,"function",o);var F=Ie($,t,r,i,n,s),G=C(F.map(function(P){return P.value}));Array.isArray(G)||(G=[G]),u.push.apply(u,G.map(function(P){return{type:typeof P=="string"?j.literal:j.object,value:P}}))}if(rr(f)){var A=f.options[m]||f.options.other;if(!A)throw new Ct(f.value,m,Object.keys(f.options),o);u.push.apply(u,Ie(A.value,t,r,i,n));continue}if(ir(f)){var A=f.options["=".concat(m)];if(!A){if(!Intl.PluralRules)throw new Ve(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,ve.MISSING_INTL_API,o);var X=r.getPluralRules(t,{type:f.pluralType}).select(m-(f.offset||0));A=f.options[X]||f.options.other}if(!A)throw new Ct(f.value,m,Object.keys(f.options),o);u.push.apply(u,Ie(A.value,t,r,i,n,m-(f.offset||0)));continue}}return en(u)}function rn(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=O(O({},e[i]),t[i]||{}),r},{})):e}function nn(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=rn(e[i],t[i]),r},O({},e)):e}function Qe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function sn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ze(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:Qe(e.number),strategy:Je.variadic}),getDateTimeFormat:Ze(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:Qe(e.dateTime),strategy:Je.variadic}),getPluralRules:Ze(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,qe([void 0],r,!1)))},{cache:Qe(e.pluralRules),strategy:Je.variadic})}}var pr=function(){function e(t,r,i,n){var s=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=s.formatToParts(l);if(h.length===1)return h[0].value;var f=h.reduce(function(d,m){return!d.length||m.type!==j.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Ie(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.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 o=n||{};o.formatters;var u=pi(o,["formatters"]);this.ast=e.__parse(t,O(O({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=nn(e.formats,i),this.formatters=n&&n.formatters||sn(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=Xi,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 on(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 s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const re={},an=(e,t,r)=>r&&(t in re||(re[t]={}),e in re[t]||(re[t][e]=r),r),gr=(e,t)=>{if(t==null)return;if(t in re&&e in re[t])return re[t][e];const r=Be(t);for(let i=0;i<r.length;i++){const n=r[i],s=hn(n,e);if(s)return an(e,t,s)}};let gt;const Ae=Fe({});function un(e){return gt[e]||null}function vr(e){return e in gt}function hn(e,t){if(!vr(e))return null;const r=un(e);return on(r,t)}function ln(e){if(e==null)return;const t=Be(e);for(let r=0;r<t.length;r++){const i=t[r];if(vr(i))return i}}function br(e,...t){delete re[e],Ae.update(r=>(r[e]=mi.all([r[e]||{},...t]),r))}xe([Ae],([e])=>Object.keys(e));Ae.subscribe(e=>gt=e);const Le={};function fn(e,t){Le[e].delete(t),Le[e].size===0&&delete Le[e]}function yr(e){return Le[e]}function cn(e){return Be(e).map(t=>{const r=yr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Re(e){return e==null?!1:Be(e).some(t=>{var r;return(r=yr(t))==null?void 0:r.size})}function dn(e,t){return Promise.all(t.map(i=>(fn(e,i),i().then(n=>n.default||n)))).then(i=>br(e,...i))}const we={};function xr(e){if(!Re(e))return e in we?we[e]:Promise.resolve();const t=cn(e);return we[e]=Promise.all(t.map(([r,i])=>dn(r,i))).then(()=>{if(Re(e))return xr(e);delete we[e]}),we[e]}var Dt=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,gn=(e,t)=>{var r={};for(var i in e)mn.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Dt)for(var i of Dt(e))t.indexOf(i)<0&&pn.call(e,i)&&(r[i]=e[i]);return r};const vn={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 bn({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Be(e).join('", "')}".${Re(ne())?`
4
-
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const yn={fallbackLocale:null,loadingDelay:200,formats:vn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Se=yn;function be(){return Se}function xn(e){const t=e,{formats:r}=t,i=gn(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{pr.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(s){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=bn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Se,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Se.formats.number,r.number),"date"in r&&Object.assign(Se.formats.date,r.date),"time"in r&&Object.assign(Se.formats.time,r.time)),ue.set(n)}const Ke=Fe(!1);var En=Object.defineProperty,_n=Object.defineProperties,wn=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Lt=(e,t,r)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$n=(e,t)=>{for(var r in t||(t={}))Sn.call(t,r)&&Lt(e,r,t[r]);if(It)for(var r of It(t))Tn.call(t,r)&&Lt(e,r,t[r]);return e},Hn=(e,t)=>_n(e,wn(t));let lt;const Ue=Fe(null);function Nt(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Be(e,t=be().fallbackLocale){const r=Nt(e);return t?[...new Set([...r,...Nt(t)])]:r}function ne(){return lt!=null?lt:void 0}Ue.subscribe(e=>{lt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Pn=e=>{if(e&&ln(e)&&Re(e)){const{loadingDelay:t}=be();let r;return typeof window!="undefined"&&ne()!=null&&t?r=window.setTimeout(()=>Ke.set(!0),t):Ke.set(!0),xr(e).then(()=>{Ue.set(e)}).finally(()=>{clearTimeout(r),Ke.set(!1)})}return Ue.set(e)},ue=Hn($n({},Ue),{set:Pn}),je=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var On=Object.defineProperty,ke=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?On(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vt=(e,t)=>{for(var r in t||(t={}))Er.call(t,r)&&Rt(e,r,t[r]);if(ke)for(var r of ke(t))_r.call(t,r)&&Rt(e,r,t[r]);return e},Ee=(e,t)=>{var r={};for(var i in e)Er.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&ke)for(var i of ke(e))t.indexOf(i)<0&&_r.call(e,i)&&(r[i]=e[i]);return r};const He=(e,t)=>{const{formats:r}=be();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},An=je(e=>{var t=e,{locale:r,format:i}=t,n=Ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=He("number",i)),new Intl.NumberFormat(r,n)}),Bn=je(e=>{var t=e,{locale:r,format:i}=t,n=Ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=He("date",i):Object.keys(n).length===0&&(n=He("date","short")),new Intl.DateTimeFormat(r,n)}),Mn=je(e=>{var t=e,{locale:r,format:i}=t,n=Ee(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=He("time",i):Object.keys(n).length===0&&(n=He("time","short")),new Intl.DateTimeFormat(r,n)}),Cn=(e={})=>{var t=e,{locale:r=ne()}=t,i=Ee(t,["locale"]);return An(vt({locale:r},i))},Dn=(e={})=>{var t=e,{locale:r=ne()}=t,i=Ee(t,["locale"]);return Bn(vt({locale:r},i))},In=(e={})=>{var t=e,{locale:r=ne()}=t,i=Ee(t,["locale"]);return Mn(vt({locale:r},i))},Ln=je((e,t=ne())=>new pr(e,t,be().formats,{ignoreTag:be().ignoreTag})),Nn=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:u,locale:l=ne(),default:h}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=gr(e,l);if(!f)f=(s=(n=(i=(r=be()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:e,defaultValue:h}))!=null?n:h)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!u)return f;let d=f;try{d=Ln(f,l).format(u)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},Rn=(e,t)=>In(t).format(e),Un=(e,t)=>Dn(t).format(e),kn=(e,t)=>Cn(t).format(e),Fn=(e,t=ne())=>gr(e,t),Gn=xe([ue,Ae],()=>Nn);xe([ue],()=>Rn);xe([ue],()=>Un);xe([ue],()=>kn);xe([ue,Ae],()=>Fn);function Ut(e,t){br(e,t)}function Vn(e){xn({fallbackLocale:"en"}),ue.set(e)}const kt={en:{"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:{"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"},hr:{"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"}};var wr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Jt,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",u="minute",l="hour",h="day",f="week",d="month",m="quarter",_="year",$="date",b="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var g=["th","st","nd","rd"],c=x%100;return"["+x+(g[(c-20)%10]||g[c]||g[0])+"]"}},A=function(x,g,c){var y=String(x);return!y||y.length>=g?x:""+Array(g+1-y.length).join(c)+x},X={s:A,z:function(x){var g=-x.utcOffset(),c=Math.abs(g),y=Math.floor(c/60),p=c%60;return(g<=0?"+":"-")+A(y,2,"0")+":"+A(p,2,"0")},m:function x(g,c){if(g.date()<c.date())return-x(c,g);var y=12*(c.year()-g.year())+(c.month()-g.month()),p=g.clone().add(y,d),w=c-p<0,E=g.clone().add(y+(w?-1:1),d);return+(-(y+(c-p)/(w?p-E:E-p))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:d,y:_,w:f,d:h,D:$,h:l,m:u,s:o,ms:s,Q:m}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},P="en",N={};N[P]=G;var W="$isDayjsObject",se=function(x){return x instanceof he||!(!x||!x[W])},Y=function x(g,c,y){var p;if(!g)return P;if(typeof g=="string"){var w=g.toLowerCase();N[w]&&(p=w),c&&(N[w]=c,p=w);var E=g.split("-");if(!p&&E.length>1)return x(E[0])}else{var M=g.name;N[M]=g,p=M}return!y&&p&&(P=p),p||!y&&P},R=function(x,g){if(se(x))return x.clone();var c=typeof g=="object"?g:{};return c.date=x,c.args=arguments,new he(c)},B=X;B.l=Y,B.i=se,B.w=function(x,g){return R(x,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var he=function(){function x(c){this.$L=Y(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[W]=!0}var g=x.prototype;return g.parse=function(c){this.$d=function(y){var p=y.date,w=y.utc;if(p===null)return new Date(NaN);if(B.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var E=p.match(C);if(E){var M=E[2]-1||0,I=(E[7]||"0").substring(0,3);return w?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,I)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,I)}}return new Date(p)}(c),this.init()},g.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},g.$utils=function(){return B},g.isValid=function(){return this.$d.toString()!==b},g.isSame=function(c,y){var p=R(c);return this.startOf(y)<=p&&p<=this.endOf(y)},g.isAfter=function(c,y){return R(c)<this.startOf(y)},g.isBefore=function(c,y){return this.endOf(y)<R(c)},g.$g=function(c,y,p){return B.u(c)?this[y]:this.set(p,c)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(c,y){var p=this,w=!!B.u(y)||y,E=B.p(c),M=function(K,a){var v=B.w(p.$u?Date.UTC(p.$y,a,K):new Date(p.$y,a,K),p);return w?v:v.endOf(h)},I=function(K,a){return B.w(p.toDate()[K].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(a)),p)},U=this.$W,k=this.$M,V=this.$D,ee="set"+(this.$u?"UTC":"");switch(E){case _:return w?M(1,0):M(31,11);case d:return w?M(1,k):M(0,k+1);case f:var Q=this.$locale().weekStart||0,oe=(U<Q?U+7:U)-Q;return M(w?V-oe:V+(6-oe),k);case h:case $:return I(ee+"Hours",0);case l:return I(ee+"Minutes",1);case u:return I(ee+"Seconds",2);case o:return I(ee+"Milliseconds",3);default:return this.clone()}},g.endOf=function(c){return this.startOf(c,!1)},g.$set=function(c,y){var p,w=B.p(c),E="set"+(this.$u?"UTC":""),M=(p={},p[h]=E+"Date",p[$]=E+"Date",p[d]=E+"Month",p[_]=E+"FullYear",p[l]=E+"Hours",p[u]=E+"Minutes",p[o]=E+"Seconds",p[s]=E+"Milliseconds",p)[w],I=w===h?this.$D+(y-this.$W):y;if(w===d||w===_){var U=this.clone().set($,1);U.$d[M](I),U.init(),this.$d=U.set($,Math.min(this.$D,U.daysInMonth())).$d}else M&&this.$d[M](I);return this.init(),this},g.set=function(c,y){return this.clone().$set(c,y)},g.get=function(c){return this[B.p(c)]()},g.add=function(c,y){var p,w=this;c=Number(c);var E=B.p(y),M=function(k){var V=R(w);return B.w(V.date(V.date()+Math.round(k*c)),w)};if(E===d)return this.set(d,this.$M+c);if(E===_)return this.set(_,this.$y+c);if(E===h)return M(1);if(E===f)return M(7);var I=(p={},p[u]=i,p[l]=n,p[o]=r,p)[E]||1,U=this.$d.getTime()+c*I;return B.w(U,this)},g.subtract=function(c,y){return this.add(-1*c,y)},g.format=function(c){var y=this,p=this.$locale();if(!this.isValid())return p.invalidDate||b;var w=c||"YYYY-MM-DDTHH:mm:ssZ",E=B.z(this),M=this.$H,I=this.$m,U=this.$M,k=p.weekdays,V=p.months,ee=p.meridiem,Q=function(a,v,S,L){return a&&(a[v]||a(y,w))||S[v].slice(0,L)},oe=function(a){return B.s(M%12||12,a,"0")},K=ee||function(a,v,S){var L=a<12?"AM":"PM";return S?L.toLowerCase():L};return w.replace(F,function(a,v){return v||function(S){switch(S){case"YY":return String(y.$y).slice(-2);case"YYYY":return B.s(y.$y,4,"0");case"M":return U+1;case"MM":return B.s(U+1,2,"0");case"MMM":return Q(p.monthsShort,U,V,3);case"MMMM":return Q(V,U);case"D":return y.$D;case"DD":return B.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Q(p.weekdaysMin,y.$W,k,2);case"ddd":return Q(p.weekdaysShort,y.$W,k,3);case"dddd":return k[y.$W];case"H":return String(M);case"HH":return B.s(M,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return K(M,I,!0);case"A":return K(M,I,!1);case"m":return String(I);case"mm":return B.s(I,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 E}return null}(a)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(c,y,p){var w,E=this,M=B.p(y),I=R(c),U=(I.utcOffset()-this.utcOffset())*i,k=this-I,V=function(){return B.m(E,I)};switch(M){case _:w=V()/12;break;case d:w=V();break;case m:w=V()/3;break;case f:w=(k-U)/6048e5;break;case h:w=(k-U)/864e5;break;case l:w=k/n;break;case u:w=k/i;break;case o:w=k/r;break;default:w=k}return p?w:B.a(w)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return N[this.$L]},g.locale=function(c,y){if(!c)return this.$L;var p=this.clone(),w=Y(c,y,!0);return w&&(p.$L=w),p},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()},x}(),Me=he.prototype;return R.prototype=Me,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",h],["$M",d],["$y",_],["$D",$]].forEach(function(x){Me[x[1]]=function(g){return this.$g(g,x[0],x[1])}}),R.extend=function(x,g){return x.$i||(x(g,he,R),x.$i=!0),R},R.locale=Y,R.isDayjs=se,R.unix=function(x){return R(1e3*x)},R.en=N[P],R.Ls=N,R.p={},R})})(wr);var jn=wr.exports;const Ft=dt(jn);var Sr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Jt,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(s,o,u){var l=o.prototype;u.utc=function(b){var C={date:b,utc:!0,args:arguments};return new o(C)},l.utc=function(b){var C=u(this.toDate(),{locale:this.$L,utc:!0});return b?C.add(this.utcOffset(),r):C},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var h=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),h.call(this,b)};var f=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else f.call(this)};var d=l.utcOffset;l.utcOffset=function(b,C){var F=this.$utils().u;if(F(b))return this.$u?0:F(this.$offset)?d.call(this):this.$offset;if(typeof b=="string"&&(b=function(P){P===void 0&&(P="");var N=P.match(i);if(!N)return null;var W=(""+N[0]).match(n)||["-",0,0],se=W[0],Y=60*+W[1]+ +W[2];return Y===0?0:se==="+"?Y:-Y}(b),b===null))return this;var G=Math.abs(b)<=16?60*b:b,A=this;if(C)return A.$offset=G,A.$u=b===0,A;if(b!==0){var X=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(G+X,r)).$offset=G,A.$x.$localOffset=X}else A=this.utc();return A};var m=l.format;l.format=function(b){var C=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,C)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var _=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():_.call(this)};var $=l.diff;l.diff=function(b,C,F){if(b&&this.$u===b.$u)return $.call(this,b,C,F);var G=this.local(),A=u(b).local();return $.call(G,A,C,F)}}})})(Sr);var Xn=Sr.exports;const zn=dt(Xn);function Wn(e){Cr(e,"svelte-73xn81","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);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}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);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:rotate(180deg)}")}function Gt(e,t,r){const i=e.slice();return i[43]=t[r],i[45]=r,i}function Vt(e){let t,r=St(e[1]),i=[];for(let n=0;n<r.length;n+=1)i[n]=Xt(Gt(e,r,n));return{c(){t=ie("div");for(let n=0;n<i.length;n+=1)i[n].c();ae(t,"class","CashierVerificationsWrapper")},m(n,s){Oe(n,t,s);for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(t,null)},p(n,s){if(s[0]&22){r=St(n[1]);let o;for(o=0;o<r.length;o+=1){const u=Gt(n,r,o);i[o]?i[o].p(u,s):(i[o]=Xt(u),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&ye(t),Lr(i,n)}}}function jt(e){let t,r,i;function n(...s){return e[13](e[45],...s)}return{c(){t=ie("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',ae(t,"class","CashierVerificationChevron")},m(s,o){Oe(s,t,o),r||(i=Yt(t,"click",n),r=!0)},p(s,o){e=s},d(s){s&&ye(t),r=!1,i()}}}function Xt(e){let t,r,i,n,s=e[43]+"",o,u,l,h,f=e[1].length>1&&e[45]===0&&jt(e);function d(...m){return e[14](e[45],...m)}return{c(){t=ie("div"),r=ie("div"),r.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',i=ze(),n=ie("p"),o=ze(),f&&f.c(),u=ze(),ae(r,"class","IconVerification"),ae(n,"class","text"),ae(t,"class","CashierVerificationMessage"),Ne(t,"ShowAll",e[2])},m(m,_){Oe(m,t,_),ce(t,r),ce(t,i),ce(t,n),n.innerHTML=s,ce(t,o),f&&f.m(t,null),ce(t,u),l||(h=Yt(t,"click",d),l=!0)},p(m,_){e=m,_[0]&2&&s!==(s=e[43]+"")&&(n.innerHTML=s),e[1].length>1&&e[45]===0?f?f.p(e,_):(f=jt(e),f.c(),f.m(t,u)):f&&(f.d(1),f=null),_[0]&4&&Ne(t,"ShowAll",e[2])},d(m){m&&ye(t),f&&f.d(),l=!1,h()}}}function qn(e){let t,r=e[1]&&Vt(e);return{c(){t=ie("div"),r&&r.c(),ae(t,"class","CashierVerifications"),Ne(t,"CashierVerificationsDesktop",e[3])},m(i,n){Oe(i,t,n),r&&r.m(t,null),e[15](t)},p(i,n){i[1]?r?r.p(i,n):(r=Vt(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null),n[0]&8&&Ne(t,"CashierVerificationsDesktop",i[3])},i:q,o:q,d(i){i&&ye(t),r&&r.d(),e[15](null)}}}function Yn(e,t,r){let i;Mr(e,Gn,a=>r(21,i=a)),Ft.extend(zn);let{endpoint:n}=t,{lang:s="en"}=t,{translationurl:o=""}=t,{clientstyling:u=""}=t,{clientstylingurl:l=""}=t,{session:h=""}=t,{customerid:f=""}=t,{ismobileview:d=""}=t,m,_=new Set,$=new Set,b,C,F=!0,G=!0;var A;(function(a){a.Manual="Manual",a.ShuftiPro="ShuftiPro"})(A||(A={}));var X;(function(a){a.Requested="Requested"})(X||(X={}));var P;(function(a){a.Unknown="Unknown",a.Unverified="Unverified",a.InProgress="InProgress",a.Failed="Failed",a.Verified="Verified",a.Referred="Referred",a.True="True",a.False="False",a.AwaitingForResponse="AwaitingForResponse"})(P||(P={}));var N;(function(a){a.Unknown="Unknown",a.Documents="Documents",a.Age="Age",a.Pep="Pep",a.Sanction="Sanction",a.Aml="Aml",a.ProofOfAddress="ProofOfAddress",a.SourceOfWealth="SourceOfWealth",a.SocialMedia="SocialMedia",a.Biometric="Biometric"})(N||(N={}));const W=[P.InProgress,P.Referred,P.AwaitingForResponse],se=()=>{let a=o;if(a)return fetch(a).then(v=>v.json()).then(v=>{Object.keys(v).forEach(S=>{Ut(S,v[S])})}).catch(v=>{console.log(v)})};Object.keys(kt).forEach(a=>{Ut(a,kt[a])});const Y=()=>{Vn(s)},R=()=>{let a=document.createElement("style");a.innerHTML=u,m.appendChild(a)},B=()=>{let a=new URL(l),v=document.createElement("style");fetch(a.href).then(S=>S.text()).then(S=>{v.innerHTML=S,setTimeout(()=>{m.appendChild(v)},1)})},he=()=>{const{merchantId:a,customerId:v}=Me();if(!a)return;const S=new URL(`${n}/v1/player/verification/GetKYCStatus`),L=new Headers;L.append("accept","application/json"),L.append("Content-Type","application/json"),L.append("X-Client-Request-Timestamp",Ft.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const te={method:"POST",headers:L,body:JSON.stringify({MerchantId:a,CustomerId:v,All:!1,AllParameters:!1})};fetch(S,te).then(_e=>_e.json()).then(_e=>{b=x(_e.Verifications),b.VerificationStatuses.forEach(Z=>{Z.VerificationUrlType!=="Widget"&&_.add(Z.Vendor)}),r(1,C=E())})},Me=()=>{let a=h.split(".")[1];if(a){let v=JSON.parse(atob(a));return{merchantId:v==null?void 0:v.mid,customerId:`${v==null?void 0:v.mid}~${f}`}}return{merchantId:null,customerId:null}},x=a=>{var S;if(!a||!a.length)return{VerificationSummaryStatus:P.Unverified,VerificationStatuses:[]};const v=y(a);if(v&&v.length){const L=g(v);return{VerificationSummaryStatus:L.Status,VerificationUrl:(S=L.Flags)==null?void 0:S.DeferredUrlKey,VerificationStatuses:c(v,L.Status)}}else return{VerificationSummaryStatus:a.some(te=>te.Status===P.Failed)?P.Failed:P.Verified,VerificationStatuses:c(a,[P.Failed])}},g=a=>a.reduce((v,S)=>v?new Date(v)<new Date(S)?S:v:S,0),c=(a,v)=>a.filter(S=>v.includes(S.Status)).map(S=>{var L,te;return{Type:S.Type,Vendor:S.VendorName,VerificationDocuments:S.Documents?[...Object.values(S.Documents)]:[],VerificationUrlType:(L=S.Flags)==null?void 0:L.DeferredUrlTypeKey,VerificationUrl:(te=S.Flags)==null?void 0:te.DeferredUrlKey}}),y=a=>a.filter(v=>W.includes(v.Status)?v.Flags&&v.Flags.DeferredUrlKey||p(v)||w(v):!1),p=a=>{const v=a.Documents&&a.VendorName===A.Manual,S=Object.values(a.Documents).some(L=>L.Status===X.Requested);return v&&S},w=a=>a.VendorName===A.ShuftiPro&&a.Status===P.Referred,E=()=>{switch(b.VerificationSummaryStatus){case P.InProgress:const a=[];return _.forEach(v=>{a.push(M(v))}),a;case P.Referred:return[i("verification.idenfy.referred-awaiting")];case P.Failed:return[i("verification.message.failed")]}},M=a=>{const v=b.VerificationStatuses.filter(S=>S.Vendor===a);if(a===A.ShuftiPro)return I(v);{const S=i("verification.idenfy.link-name"),L={link:`<a href="${v[0].VerificationUrl}" target="_blank">${S}</a>`};return i("verification.idenfy.in-progress",{values:L})}},I=a=>{const v=[],S={},L=[N.Biometric,N.Documents,N.ProofOfAddress];a.forEach(Z=>{L.includes(Z.Type)&&(v.push(Z.Type),S[Z.Type]=U(Z,k(Z.Type)))});let te=v.every(Z=>$.has(Z)),_e=`verification.shuftipro.in-progress.${v.sort().join(".")}`;return te?i("verification.shuftipro.validations-started"):i(_e,{values:S})},U=(a,v)=>`<a class="verificationLink ${a.Type}" href=" ${a.VerificationUrl} " target="_blank">${v}</a>`,k=a=>i(`verification.shuftipro.link-name.${a}`),V=(a,v)=>{if(a.stopPropagation(),a.target&&(a.target.href||a.target.closest("a"))){if(a.target.closest(".verificationLink")){const S=a.target.className.split(" ")[1];$.add(S),r(1,C=E())}return}v===0&&r(2,F=!F)},ee=()=>{r(3,G=d==="false")},Q=(a,v)=>V(v,a),oe=(a,v)=>V(v,a);function K(a){et[a?"unshift":"push"](()=>{m=a,r(0,m)})}return e.$$set=a=>{"endpoint"in a&&r(5,n=a.endpoint),"lang"in a&&r(6,s=a.lang),"translationurl"in a&&r(7,o=a.translationurl),"clientstyling"in a&&r(8,u=a.clientstyling),"clientstylingurl"in a&&r(9,l=a.clientstylingurl),"session"in a&&r(10,h=a.session),"customerid"in a&&r(11,f=a.customerid),"ismobileview"in a&&r(12,d=a.ismobileview)},e.$$.update=()=>{e.$$.dirty[0]&64&&s&&Y(),e.$$.dirty[0]&1056&&n&&h&&he(),e.$$.dirty[0]&128&&o&&se(),e.$$.dirty[0]&257&&u&&m&&R(),e.$$.dirty[0]&513&&l&&m&&B(),e.$$.dirty[0]&4096&&d&&ee()},[m,C,F,G,V,n,s,o,u,l,h,f,d,Q,oe,K]}class Tr extends Jr{constructor(t){super(),Yr(this,t,Yn,qn,Wt,{endpoint:5,lang:6,translationurl:7,clientstyling:8,clientstylingurl:9,session:10,customerid:11,ismobileview:12},Wn,[-1,-1])}get endpoint(){return this.$$.ctx[5]}set endpoint(t){this.$$set({endpoint:t}),J()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),J()}get translationurl(){return this.$$.ctx[7]}set translationurl(t){this.$$set({translationurl:t}),J()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),J()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),J()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),J()}get customerid(){return this.$$.ctx[11]}set customerid(t){this.$$set({customerid:t}),J()}get ismobileview(){return this.$$.ctx[12]}set ismobileview(t){this.$$set({ismobileview:t}),J()}}Zr(Tr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Tr;