@everymatrix/general-player-register-form-step3-nd 1.43.4 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ "use strict";var Kn=Object.defineProperty,es=Object.defineProperties;var ts=Object.getOwnPropertyDescriptors;var kr=Object.getOwnPropertySymbols;var rs=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable;var ar=(e,t,r)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lr=(e,t)=>{for(var r in t||(t={}))rs.call(t,r)&&ar(e,r,t[r]);if(kr)for(var r of kr(t))ns.call(t,r)&&ar(e,r,t[r]);return e},Rr=(e,t)=>es(e,ts(t));var ye=(e,t,r)=>ar(e,typeof t!="symbol"?t+"":t,r);var Ur=(e,t,r)=>new Promise((n,s)=>{var i=c=>{try{h(r.next(c))}catch(a){s(a)}},o=c=>{try{h(r.throw(c))}catch(a){s(a)}},h=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,o);h((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ce(){}function xn(e){return e()}function Fr(){return Object.create(null)}function gt(e){e.forEach(xn)}function qr(e){return typeof e=="function"}function An(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let $t;function Dr(e,t){return e===t?!0:($t||($t=document.createElement("a")),$t.href=t,e===$t.href)}function ss(e){return Object.keys(e).length===0}function Tn(e,...t){if(e==null){for(const n of t)n(void 0);return Ce}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function is(e,t,r){e.$$.on_destroy.push(Tn(t,r))}const os=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function l(e,t){e.appendChild(t)}function as(e,t,r){const n=ls(e);if(!n.getElementById(t)){const s=v("style");s.id=t,s.textContent=r,us(n,s)}}function ls(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function us(e,t){return l(e.head||e,t),t.sheet}function R(e,t,r){e.insertBefore(t,r||null)}function M(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 v(e){return document.createElement(e)}function Zt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function q(e){return document.createTextNode(e)}function x(){return q(" ")}function Hr(){return q("")}function B(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function f(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function hs(e){return Array.from(e.childNodes)}function D(e,t){t=""+t,e.data!==t&&(e.data=t)}function fe(e,t){e.value=t==null?"":t}function it(e,t,r){for(let n=0;n<e.options.length;n+=1){const s=e.options[n];if(s.__value===t){s.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ur(e){const t=e.querySelector(":checked");return t&&t.__value}function cs(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Pt;function Bt(e){Pt=e}function fs(){if(!Pt)throw new Error("Function called outside component initialization");return Pt}function ms(e){fs().$$.on_mount.push(e)}const ut=[],vr=[];let ht=[];const Gr=[],ds=Promise.resolve();let br=!1;function ps(){br||(br=!0,ds.then(ce))}function ct(e){ht.push(e)}const hr=new Set;let ot=0;function ce(){if(ot!==0)return;const e=Pt;do{try{for(;ot<ut.length;){const t=ut[ot];ot++,Bt(t),gs(t.$$)}}catch(t){throw ut.length=0,ot=0,t}for(Bt(null),ut.length=0,ot=0;vr.length;)vr.pop()();for(let t=0;t<ht.length;t+=1){const r=ht[t];hr.has(r)||(hr.add(r),r())}ht.length=0}while(ut.length);for(;Gr.length;)Gr.pop()();br=!1,hr.clear(),Bt(e)}function gs(e){if(e.fragment!==null){e.update(),gt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ct)}}function vs(e){const t=[],r=[];ht.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ht=t}const bs=new Set;function ws(e,t){e&&e.i&&(bs.delete(e),e.i(t))}function at(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ys(e,t,r){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,r),ct(()=>{const i=e.$$.on_mount.map(xn).filter(qr);e.$$.on_destroy?e.$$.on_destroy.push(...i):gt(i),e.$$.on_mount=[]}),s.forEach(ct)}function _s(e,t){const r=e.$$;r.fragment!==null&&(vs(r.after_update),gt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Es(e,t){e.$$.dirty[0]===-1&&(ut.push(e),ps(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Cs(e,t,r,n,s,i,o=null,h=[-1]){const c=Pt;Bt(e);const a=e.$$={fragment:null,ctx:[],props:i,update:Ce,not_equal:s,bound:Fr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Fr(),dirty:h,skip_bound:!1,root:t.target||c.$$.root};o&&o(a.root);let u=!1;if(a.ctx=r?r(e,t.props||{},(g,p,...y)=>{const w=y.length?y[0]:p;return a.ctx&&s(a.ctx[g],a.ctx[g]=w)&&(!a.skip_bound&&a.bound[g]&&a.bound[g](w),u&&Es(e,g)),p}):[],a.update(),u=!0,gt(a.before_update),a.fragment=n?n(a.ctx):!1,t.target){if(t.hydrate){const g=hs(t.target);a.fragment&&a.fragment.l(g),g.forEach(M)}else a.fragment&&a.fragment.c();t.intro&&ws(e.$$.fragment),ys(e,t.target,t.anchor),ce()}Bt(c)}let Sn;typeof HTMLElement=="function"&&(Sn=class extends HTMLElement{constructor(t,r,n){super();ye(this,"$$ctor");ye(this,"$$s");ye(this,"$$c");ye(this,"$$cn",!1);ye(this,"$$d",{});ye(this,"$$r",!1);ye(this,"$$p_d",{});ye(this,"$$l",{});ye(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const s=this.$$c.$on(t,r);this.$$l_u.set(r,s)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const s=this.$$l_u.get(r);s&&(s(),this.$$l_u.delete(r))}}connectedCallback(){return Ur(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=v("slot"),i!=="default"&&f(o,"name",i)},m:function(a,u){R(a,o,u)},d:function(a){a&&M(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=cs(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=Jt(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Rr(Lr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=Jt(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const i in this.$$l)for(const o of this.$$l[i]){const h=this.$$c.$on(i,o);this.$$l_u.set(o,h)}this.$$l={}}})}attributeChangedCallback(t,r,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Jt(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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 Jt(e,t,r,n){var i;const s=(i=r[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function xs(e,t,r,n,s,i){let o=class extends Sn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(h=>(t[h].attribute||h).toLowerCase())}};return Object.keys(t).forEach(h=>{Object.defineProperty(o.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(c){var a;c=Jt(h,c,t),this.$$d[h]=c,(a=this.$$c)==null||a.$set({[h]:c})}})}),n.forEach(h=>{Object.defineProperty(o.prototype,h,{get(){var c;return(c=this.$$c)==null?void 0:c[h]}})}),e.element=o,o}class As{constructor(){ye(this,"$$");ye(this,"$$set")}$destroy(){_s(this,1),this.$destroy=Ce}$on(t,r){if(!qr(r))return Ce;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!ss(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ts="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ts);const lt=[];function Ss(e,t){return{subscribe:rr(e,t).subscribe}}function rr(e,t=Ce){let r;const n=new Set;function s(h){if(An(e,h)&&(e=h,r)){const c=!lt.length;for(const a of n)a[1](),lt.push(a,e);if(c){for(let a=0;a<lt.length;a+=2)lt[a][0](lt[a+1]);lt.length=0}}}function i(h){s(h(e))}function o(h,c=Ce){const a=[h,c];return n.add(a),n.size===1&&(r=t(s,i)||Ce),h(e),()=>{n.delete(a),n.size===0&&r&&(r(),r=null)}}return{set:s,update:i,subscribe:o}}function vt(e,t,r){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Ss(r,(o,h)=>{let c=!1;const a=[];let u=0,g=Ce;const p=()=>{if(u)return;g();const w=t(n?a[0]:a,o,h);i?o(w):g=qr(w)?w:Ce},y=s.map((w,b)=>Tn(w,A=>{a[b]=A,u&=~(1<<b),c&&p()},()=>{u|=1<<b}));return c=!0,p(),function(){gt(y),g(),c=!1}})}function qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hs=function(t){return Bs(t)&&!Ps(t)};function Bs(e){return!!e&&typeof e=="object"}function Ps(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ns(e)}var Os=typeof Symbol=="function"&&Symbol.for,Ms=Os?Symbol.for("react.element"):60103;function Ns(e){return e.$$typeof===Ms}function Is(e){return Array.isArray(e)?[]:{}}function Ot(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ft(Is(e),e,t):e}function ks(e,t,r){return e.concat(t).map(function(n){return Ot(n,r)})}function Ls(e,t){if(!t.customMerge)return ft;var r=t.customMerge(e);return typeof r=="function"?r:ft}function Rs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jr(e){return Object.keys(e).concat(Rs(e))}function qn(e,t){try{return t in e}catch(r){return!1}}function Us(e,t){return qn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Fs(e,t,r){var n={};return r.isMergeableObject(e)&&jr(e).forEach(function(s){n[s]=Ot(e[s],r)}),jr(t).forEach(function(s){Us(e,s)||(qn(e,s)&&r.isMergeableObject(t[s])?n[s]=Ls(s,r)(e[s],t[s],r):n[s]=Ot(t[s],r))}),n}function ft(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ks,r.isMergeableObject=r.isMergeableObject||Hs,r.cloneUnlessOtherwiseSpecified=Ot;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):Fs(e,t,r):Ot(t,r)}ft.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return ft(n,s,r)},{})};var Ds=ft,Gs=Ds;const js=qs(Gs);var wr=function(e,t){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},wr(e,t)};function nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var S=function(){return S=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},S.apply(this,arguments)};function zs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function cr(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var C;(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"})(C||(C={}));var O;(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"})(O||(O={}));var mt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(mt||(mt={}));function zr(e){return e.type===O.literal}function Vs(e){return e.type===O.argument}function Hn(e){return e.type===O.number}function Bn(e){return e.type===O.date}function Pn(e){return e.type===O.time}function On(e){return e.type===O.select}function Mn(e){return e.type===O.plural}function Xs(e){return e.type===O.pound}function Nn(e){return e.type===O.tag}function In(e){return!!(e&&typeof e=="object"&&e.type===mt.number)}function yr(e){return!!(e&&typeof e=="object"&&e.type===mt.dateTime)}var kn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ws=/(?:[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 $s(e){var t={};return e.replace(Ws,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 Zs=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qs(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zs).filter(function(p){return p.length>0}),r=[],n=0,s=t;n<s.length;n++){var i=s[n],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var h=o[0],c=o.slice(1),a=0,u=c;a<u.length;a++){var g=u[a];if(g.length===0)throw new Error("Invalid number skeleton")}r.push({stem:h,options:c})}return r}function Js(e){return e.replace(/^(.*?)-/,"")}var Vr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ln=/^(@+)?(\+|#+)?[rs]?$/g,Ys=/(\*)(0+)|(#+)(0+)|(0+)/g,Rn=/^(0+)$/;function Xr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ln,function(r,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function Un(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 Ks(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)),!Rn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Wr(e){var t={},r=Un(e);return r||t}function ei(e){for(var t={},r=0,n=e;r<n.length;r++){var s=n[r];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=Js(s.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=S(S(S({},t),{notation:"scientific"}),s.options.reduce(function(c,a){return S(S({},c),Wr(a))},{}));continue;case"engineering":t=S(S(S({},t),{notation:"engineering"}),s.options.reduce(function(c,a){return S(S({},c),Wr(a))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Ys,function(c,a,u,g,p,y){if(a)t.minimumIntegerDigits=u.length;else{if(g&&p)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Rn.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Vr.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Vr,function(c,a,u,g,p,y){return u==="*"?t.minimumFractionDigits=a.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:p&&y?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+y.length):(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length),""});var i=s.options[0];i==="w"?t=S(S({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=S(S({},t),Xr(i)));continue}if(Ln.test(s.stem)){t=S(S({},t),Xr(s.stem));continue}var o=Un(s.stem);o&&(t=S(S({},t),o));var h=Ks(s.stem);h&&(t=S(S({},t),h))}return t}var Qt={"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 ti(e,t){for(var r="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===s;)i++,n++;var o=1+(i&1),h=i<2?1:3+(i>>1),c="a",a=ri(t);for((a=="H"||a=="k")&&(h=0);h-- >0;)r+=c;for(;o-- >0;)r=a+r}else s==="J"?r+="H":r+=s}return r}function ri(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,n;r!=="root"&&(n=e.maximize().region);var s=Qt[n||""]||Qt[r||""]||Qt["".concat(r,"-001")]||Qt["001"];return s[0]}var fr,ni=new RegExp("^".concat(kn.source,"*")),si=new RegExp("".concat(kn.source,"*$"));function T(e,t){return{start:e,end:t}}var ii=!!String.prototype.startsWith&&"_a".startsWith("a",1),oi=!!String.fromCodePoint,ai=!!Object.fromEntries,li=!!String.prototype.codePointAt,ui=!!String.prototype.trimStart,hi=!!String.prototype.trimEnd,ci=!!Number.isSafeInteger,fi=ci?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_r=!0;try{var mi=Dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_r=((fr=mi.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch(e){_r=!1}var $r=ii?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Er=oi?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",s=t.length,i=0,o;s>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Zr=ai?Object.fromEntries:function(t){for(var r={},n=0,s=t;n<s.length;n++){var i=s[n],o=i[0],h=i[1];r[o]=h}return r},Fn=li?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var s=t.charCodeAt(r),i;return s<55296||s>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?s:(s-55296<<10)+(i-56320)+65536}},di=ui?function(t){return t.trimStart()}:function(t){return t.replace(ni,"")},pi=hi?function(t){return t.trimEnd()}:function(t){return t.replace(si,"")};function Dn(e,t){return new RegExp(e,t)}var Cr;if(_r){var Qr=Dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cr=function(t,r){var n;Qr.lastIndex=r;var s=Qr.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else Cr=function(t,r){for(var n=[];;){var s=Fn(t,r);if(s===void 0||Gn(s)||wi(s))break;n.push(s),r+=s>=65536?2:1}return Er.apply(void 0,n)};var gi=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,n){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,n);if(o.err)return o;s.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var h=this.clonePosition();this.bump(),s.push({type:O.pound,location:T(h,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(C.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&xr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(s,"/>"),location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xr(this.char()))return this.error(C.INVALID_TAG,T(h,this.clonePosition()));var c=this.clonePosition(),a=this.parseTagName();return s!==a?this.error(C.UNMATCHED_CLOSING_TAG,T(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:s,children:o,location:T(n,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,T(h,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,T(n,this.clonePosition()))}else return this.error(C.INVALID_TAG,T(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),s="";;){var i=this.tryParseQuote(r);if(i){s+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){s+=o;continue}var h=this.tryParseLeftAngleBracket();if(h){s+=h;continue}break}var c=T(n,this.clonePosition());return{val:{type:O.literal,value:s,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vi(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 n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Er.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Er(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,T(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(C.MALFORMED_ARGUMENT,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:s,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition())):this.parseArgumentOptions(t,r,s,n);default:return this.error(C.MALFORMED_ARGUMENT,T(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Cr(this.message,r),s=r+n.length;this.bumpTo(s);var i=this.clonePosition(),o=T(t,i);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,s){var i,o=this.clonePosition(),h=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(h){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,T(o,c));case"number":case"date":case"time":{this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var p=pi(g.val);if(p.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var y=T(u,this.clonePosition());a={style:p,styleLocation:y}}var w=this.tryParseArgumentClose(s);if(w.err)return w;var b=T(s,this.clonePosition());if(a&&$r(a==null?void 0:a.style,"::",0)){var A=di(a.style.slice(2));if(h==="number"){var g=this.parseNumberSkeletonFromString(A,a.styleLocation);return g.err?g:{val:{type:O.number,value:n,location:b,style:g.val},err:null}}else{if(A.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,b);var H=A;this.locale&&(H=ti(A,this.locale));var p={type:mt.dateTime,pattern:H,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?$s(H):{}},G=h==="date"?O.date:O.time;return{val:{type:G,value:n,location:b,style:p},err:null}}}return{val:{type:h==="number"?O.number:h==="date"?O.date:O.time,value:n,location:b,style:(i=a==null?void 0:a.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var U=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,T(U,S({},U)));this.bumpSpace();var me=this.parseIdentifierIfPossible(),ee=0;if(h!=="select"&&me.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),me=this.parseIdentifierIfPossible(),ee=g.val}var de=this.tryParsePluralOrSelectOptions(t,h,r,me);if(de.err)return de;var w=this.tryParseArgumentClose(s);if(w.err)return w;var Te=T(s,this.clonePosition());return h==="select"?{val:{type:O.select,value:n,options:Zr(de.val),location:Te},err:null}:{val:{type:O.plural,value:n,options:Zr(de.val),offset:ee,pluralType:h==="plural"?"cardinal":"ordinal",location:Te},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,T(o,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,T(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(s,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 n=[];try{n=Qs(t)}catch(s){return this.error(C.INVALID_NUMBER_SKELETON,r)}return{val:{type:mt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?ei(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,s){for(var i,o=!1,h=[],c=new Set,a=s.value,u=s.location;;){if(a.length===0){var g=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=T(g,this.clonePosition()),a=this.message.slice(g.offset,this.offset())}else break}if(c.has(a))return this.error(r==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);a==="other"&&(o=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var b=this.tryParseArgumentClose(y);if(b.err)return b;h.push([a,{value:w.val,location:T(y,this.clonePosition())}]),c.add(a),this.bumpSpace(),i=this.parseIdentifierIfPossible(),a=i.value,u=i.location}return h.length===0?this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(C.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)i=!0,o=o*10+(h-48),this.bump();else break}var c=T(s,this.clonePosition());return i?(o*=n,fi(o)?{val:o,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Fn(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($r(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(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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()&&Gn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function xr(e){return e>=97&&e<=122||e>=65&&e<=90}function vi(e){return xr(e)||e===47}function bi(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 Gn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wi(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 Ar(e){e.forEach(function(t){if(delete t.location,On(t)||Mn(t))for(var r in t.options)delete t.options[r].location,Ar(t.options[r].value);else Hn(t)&&In(t.style)||(Bn(t)||Pn(t))&&yr(t.style)?delete t.style.location:Nn(t)&&Ar(t.children)})}function yi(e,t){t===void 0&&(t={}),t=S({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new gi(e,t).parse();if(r.err){var n=SyntaxError(C[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ar(r.val),r.val}function mr(e,t){var r=t&&t.cache?t.cache:Ti,n=t&&t.serializer?t.serializer:Ai,s=t&&t.strategy?t.strategy:Ei;return s(e,{cache:r,serializer:n})}function _i(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jn(e,t,r,n){var s=_i(n)?n:r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.call(this,n),t.set(s,i)),i}function zn(e,t,r){var n=Array.prototype.slice.call(arguments,3),s=r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.apply(this,n),t.set(s,i)),i}function Br(e,t,r,n,s){return r.bind(t,e,n,s)}function Ei(e,t){var r=e.length===1?jn:zn;return Br(e,this,r,t.cache.create(),t.serializer)}function Ci(e,t){return Br(e,this,zn,t.cache.create(),t.serializer)}function xi(e,t){return Br(e,this,jn,t.cache.create(),t.serializer)}var Ai=function(){return JSON.stringify(arguments)};function Pr(){this.cache=Object.create(null)}Pr.prototype.get=function(e){return this.cache[e]};Pr.prototype.set=function(e,t){this.cache[e]=t};var Ti={create:function(){return new Pr}},dr={variadic:Ci,monadic:xi},dt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dt||(dt={}));var sr=function(e){nr(t,e);function t(r,n,s){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Jr=function(e){nr(t,e);function t(r,n,s,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),dt.INVALID_VALUE,i)||this}return t}(sr),Si=function(e){nr(t,e);function t(r,n,s){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),dt.INVALID_VALUE,s)||this}return t}(sr),qi=function(e){nr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),dt.MISSING_VALUE,n)||this}return t}(sr),K;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(K||(K={}));function Hi(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==K.literal||r.type!==K.literal?t.push(r):n.value+=r.value,t},[])}function Bi(e){return typeof e=="function"}function Yt(e,t,r,n,s,i,o){if(e.length===1&&zr(e[0]))return[{type:K.literal,value:e[0].value}];for(var h=[],c=0,a=e;c<a.length;c++){var u=a[c];if(zr(u)){h.push({type:K.literal,value:u.value});continue}if(Xs(u)){typeof i=="number"&&h.push({type:K.literal,value:r.getNumberFormat(t).format(i)});continue}var g=u.value;if(!(s&&g in s))throw new qi(g,o);var p=s[g];if(Vs(u)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),h.push({type:typeof p=="string"?K.literal:K.object,value:p});continue}if(Bn(u)){var y=typeof u.style=="string"?n.date[u.style]:yr(u.style)?u.style.parsedOptions:void 0;h.push({type:K.literal,value:r.getDateTimeFormat(t,y).format(p)});continue}if(Pn(u)){var y=typeof u.style=="string"?n.time[u.style]:yr(u.style)?u.style.parsedOptions:n.time.medium;h.push({type:K.literal,value:r.getDateTimeFormat(t,y).format(p)});continue}if(Hn(u)){var y=typeof u.style=="string"?n.number[u.style]:In(u.style)?u.style.parsedOptions:void 0;y&&y.scale&&(p=p*(y.scale||1)),h.push({type:K.literal,value:r.getNumberFormat(t,y).format(p)});continue}if(Nn(u)){var w=u.children,b=u.value,A=s[b];if(!Bi(A))throw new Si(b,"function",o);var H=Yt(w,t,r,n,s,i),G=A(H.map(function(ee){return ee.value}));Array.isArray(G)||(G=[G]),h.push.apply(h,G.map(function(ee){return{type:typeof ee=="string"?K.literal:K.object,value:ee}}))}if(On(u)){var U=u.options[p]||u.options.other;if(!U)throw new Jr(u.value,p,Object.keys(u.options),o);h.push.apply(h,Yt(U.value,t,r,n,s));continue}if(Mn(u)){var U=u.options["=".concat(p)];if(!U){if(!Intl.PluralRules)throw new sr(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,dt.MISSING_INTL_API,o);var me=r.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));U=u.options[me]||u.options.other}if(!U)throw new Jr(u.value,p,Object.keys(u.options),o);h.push.apply(h,Yt(U.value,t,r,n,s,p-(u.offset||0)));continue}}return Hi(h)}function Pi(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=S(S({},e[n]),t[n]||{}),r},{})):e}function Oi(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Pi(e[n],t[n]),r},S({},e)):e}function pr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Mi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,cr([void 0],r,!1)))},{cache:pr(e.number),strategy:dr.variadic}),getDateTimeFormat:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,cr([void 0],r,!1)))},{cache:pr(e.dateTime),strategy:dr.variadic}),getPluralRules:mr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,cr([void 0],r,!1)))},{cache:pr(e.pluralRules),strategy:dr.variadic})}}var Ni=function(){function e(t,r,n,s){var i=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var a=i.formatToParts(c);if(a.length===1)return a[0].value;var u=a.reduce(function(g,p){return!g.length||p.type!==K.literal||typeof g[g.length-1]!="string"?g.push(p.value):g[g.length-1]+=p.value,g},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Yt(i.ast,i.locales,i.formatters,i.formats,c,void 0,i.message)},this.resolvedOptions=function(){var c;return{locale:((c=i.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.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=s||{};o.formatters;var h=zs(o,["formatters"]);this.ast=e.__parse(t,S(S({},h),{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=Oi(e.formats,n),this.formatters=s&&s.formatters||Mi(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=yi,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 Ii(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let s=0;s<r.length;s++)if(typeof n=="object"){if(s>0){const i=r.slice(s,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[s]]}else n=void 0;return n}const Le={},ki=(e,t,r)=>r&&(t in Le||(Le[t]={}),e in Le[t]||(Le[t][e]=r),r),Vn=(e,t)=>{if(t==null)return;if(t in Le&&e in Le[t])return Le[t][e];const r=ir(t);for(let n=0;n<r.length;n++){const s=r[n],i=Ri(s,e);if(i)return ki(e,t,i)}};let Or;const bt=rr({});function Li(e){return Or[e]||null}function Xn(e){return e in Or}function Ri(e,t){if(!Xn(e))return null;const r=Li(e);return Ii(r,t)}function Ui(e){if(e==null)return;const t=ir(e);for(let r=0;r<t.length;r++){const n=t[r];if(Xn(n))return n}}function Wn(e,...t){delete Le[e],bt.update(r=>(r[e]=js.all([r[e]||{},...t]),r))}vt([bt],([e])=>Object.keys(e));bt.subscribe(e=>Or=e);const Kt={};function Fi(e,t){Kt[e].delete(t),Kt[e].size===0&&delete Kt[e]}function $n(e){return Kt[e]}function Di(e){return ir(e).map(t=>{const r=$n(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Tr(e){return e==null?!1:ir(e).some(t=>{var r;return(r=$n(t))==null?void 0:r.size})}function Gi(e,t){return Promise.all(t.map(n=>(Fi(e,n),n().then(s=>s.default||s)))).then(n=>Wn(e,...n))}const Ht={};function Zn(e){if(!Tr(e))return e in Ht?Ht[e]:Promise.resolve();const t=Di(e);return Ht[e]=Promise.all(t.map(([r,n])=>Gi(r,n))).then(()=>{if(Tr(e))return Zn(e);delete Ht[e]}),Ht[e]}const ji={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"}}},zi={fallbackLocale:null,loadingDelay:200,formats:ji,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Vi=zi;function pt(){return Vi}const gr=rr(!1);var Xi=Object.defineProperty,Wi=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ji=(e,t)=>{for(var r in t||(t={}))Zi.call(t,r)&&Kr(e,r,t[r]);if(Yr)for(var r of Yr(t))Qi.call(t,r)&&Kr(e,r,t[r]);return e},Yi=(e,t)=>Wi(e,$i(t));let Sr;const er=rr(null);function en(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ir(e,t=pt().fallbackLocale){const r=en(e);return t?[...new Set([...r,...en(t)])]:r}function ze(){return Sr!=null?Sr:void 0}er.subscribe(e=>{Sr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ki=e=>{if(e&&Ui(e)&&Tr(e)){const{loadingDelay:t}=pt();let r;return typeof window!="undefined"&&ze()!=null&&t?r=window.setTimeout(()=>gr.set(!0),t):gr.set(!0),Zn(e).then(()=>{er.set(e)}).finally(()=>{clearTimeout(r),gr.set(!1)})}return er.set(e)},Re=Yi(Ji({},er),{set:Ki}),or=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var eo=Object.defineProperty,tr=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,tn=(e,t,r)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mr=(e,t)=>{for(var r in t||(t={}))Qn.call(t,r)&&tn(e,r,t[r]);if(tr)for(var r of tr(t))Jn.call(t,r)&&tn(e,r,t[r]);return e},wt=(e,t)=>{var r={};for(var n in e)Qn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&tr)for(var n of tr(e))t.indexOf(n)<0&&Jn.call(e,n)&&(r[n]=e[n]);return r};const Mt=(e,t)=>{const{formats:r}=pt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},to=or(e=>{var t=e,{locale:r,format:n}=t,s=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=Mt("number",n)),new Intl.NumberFormat(r,s)}),ro=or(e=>{var t=e,{locale:r,format:n}=t,s=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=Mt("date",n):Object.keys(s).length===0&&(s=Mt("date","short")),new Intl.DateTimeFormat(r,s)}),no=or(e=>{var t=e,{locale:r,format:n}=t,s=wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=Mt("time",n):Object.keys(s).length===0&&(s=Mt("time","short")),new Intl.DateTimeFormat(r,s)}),so=(e={})=>{var t=e,{locale:r=ze()}=t,n=wt(t,["locale"]);return to(Mr({locale:r},n))},io=(e={})=>{var t=e,{locale:r=ze()}=t,n=wt(t,["locale"]);return ro(Mr({locale:r},n))},oo=(e={})=>{var t=e,{locale:r=ze()}=t,n=wt(t,["locale"]);return no(Mr({locale:r},n))},ao=or((e,t=ze())=>new Ni(e,t,pt().formats,{ignoreTag:pt().ignoreTag})),lo=(e,t={})=>{var r,n,s,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:h,locale:c=ze(),default:a}=o;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Vn(e,c);if(!u)u=(i=(s=(n=(r=pt()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:a}))!=null?s:a)!=null?i:e;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!h)return u;let g=u;try{g=ao(u,c).format(h)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return g},uo=(e,t)=>oo(t).format(e),ho=(e,t)=>io(t).format(e),co=(e,t)=>so(t).format(e),fo=(e,t=ze())=>Vn(e,t),mo=vt([Re,bt],()=>lo);vt([Re],()=>uo);vt([Re],()=>ho);vt([Re],()=>co);vt([Re,bt],()=>fo);function po({withLocale:e,translations:t}){Re.subscribe(r=>{r==null&&(bt.set(t),Re.set(e))})}function rn(e,t){Wn(e,t)}function go(e){Re.set(e)}const nn={en:{registerBackButton:"Back",registerAddress:"Address",registerAddressError:"Address must be at least 1 character long and 100 characters maximum.",registerPostalCode:"Postal Code",registerPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",registerCity:"City",registerCityError:"City must be at least 1 character long and 50 characters maximum.",registerCountry:"Country",registerNationality:"Nationality",registerMobile:"Mobile",registerMobileError:"Mobile must be at least 5 character long and 12 characters maximum.",registerUserConsents:"I want to receive exclusive offers and bonuses. I am aware that I can unsubscribe whenever I want to.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"I am at least 18 years old and I have read and accepted the <a href='/terms-and-conditions' target='_blank'>Terms and Conditions</a>.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"},"zh-hk":{registerBackButton:"後退",registerAddress:"地址",registerAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",registerPostalCode:"郵政編碼",registerPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",registerCity:"城市",registerCityError:"城市必須至少 1 個字符長,最多 50 個字符。",registerCountry:"國家",registerNationality:"國籍",registerMobile:"移動的",registerMobileError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",registerUserConsents:"我想收到獨家優惠和獎金。 我知道我可以隨時取消訂閱。",registerUserConsentsSMS:"短信",registerUserConsentsEmail:"電子郵件",registerTermsConditions:"我至少 18 歲,並且我已閱讀並接受條件條款。",registerTermsConditionsError:"請在繼續之前接受條款和條件。",registerOpenAccount:"開戶口"},fr:{registerBackButton:"Retour",registerAddress:"Adresse",registerAddressError:"L'adresse doit comporter au moins un caractère et 100 caractères au maximum.",registerPostalCode:"Code postal",registerPostalCodeError:"Le code postal doit comporter au moins un caractère et 20 caractères au maximum.",registerCity:"Ville",registerCityError:"La ville doit comporter au moins un caractère et 50 caractères au maximum.",registerCountry:"Pays",registerNationality:"Nationalité",registerMobile:"Téléphone",registerMobileError:"Le téléphone doit comporter au moins 5 caractère et 12 caractères au maximum.",registerUserConsents:"Je veux recevoir des offres exclusives et des bonus , je sais que je peux me désinscrire quand je le veux.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"J'ai au moins 18 ans et j'ai lu et accepté les conditions d'utilisation.",registerTermsConditionsError:"Veuillez accepter les termes et conditions avant de poursuivre.",registerOpenAccount:"Ouvrir un compte"},tr:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",registerPostalCode:"Posta Kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin bilincindeyim.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve <a href='/terms-and-conditions' target='_blank'>Şartlar ve Koşullar</a>'ı okuyup kabul ettim.",registerTermsConditionsError:"Devam etmeden önce lütfen Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"},ro:{registerBackButton:"Inapoi",registerAddress:"Adresa",registerAddressError:"Adresa trebuie sa fie cuprinsa in 1 si 100 de litere.",registerPostalCode:"Cod Postal",registerPostalCodeError:"Codul postal trebuie sa fie cuprins intre 1 si 20 de caractere.",registerCity:"Oras",registerCityError:"Orasul trebuie sa fie cuprins intre 1 si 50 de litere.",registerCountry:"Tara",registerNationality:"Nationalitatea",registerMobile:"Telefon",registerMobileError:"Telefonul trebuie sa fie cuprins intre 5 si 12 de cifre.",registerUserConsents:"Vreau sa primesc oferte si bonusuri exclusive. Sunt constient ca pot sa dau unsubscribe oricand.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Am minim 18 ani si am citit si acceptat Termenii si Conditiile",registerTermsConditionsError:"Te rog accepta Termenii si Conditiile",registerOpenAccount:"Inregistrare"},es:{registerBackButton:"Anterior",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",registerPostalCode:"Código Postal",registerPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",registerCity:"Ciudad",registerCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Celular",registerMobileError:"Número celular debe tener al menos 5 caracteres y un máximo de 12 caracteres",registerUserConsents:"Quiero recibir ofertas Exclusivas y Bonos. Soy consciente que puedo desuscribirme en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Email",registerTermsConditions:"Tengo al menos 18 años de edad, y he leido y aceptado los Términos y Condiciones.",registerTermsConditionsError:"Por favor acepta los Términos y Condiciones antes de avanzar.",registerOpenAccount:"Abrir cuenta"},pt:{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres.",registerPostalCode:"CEP",registerPostalCodeError:"O CEP deve ter pelo menos 1 caractere e no máximo 20 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Celular",registerMobileError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar a inscrição quando quiser.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Tenho pelo menos 18 anos e li e aceito os Termos de Condições.",registerTermsConditionsError:"Por favor, aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Abrir conta"},hr:{registerBackButton:"Prethodno",registerAddress:"Adresa",registerAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",registerPostalCode:"Poštanski broj",registerPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",registerCity:"Grad",registerCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",registerCountry:"Zemlja",registerNationality:"Nacionalnost",registerMobile:"Broj mobitela",registerMobileError:"Broj mobitela mora imati najmanje 5 znakova i najviše 12 znakova.",registerUserConsents:"Želim primati ekskluzivne ponude i bonuse. Svjestan sam da se mogu odjaviti kad god to želim.",registerUserConsentsSMS:"SMS","registerUserConsentsE-mail":"E-mail",registerTermsConditions:"Imam najmanje 18 godina i pročitao sam i prihvatio Uvjete.",registerTermsConditionsError:"Prije nastavka prihvatite Uvjete i odredbe.",registerOpenAccount:"Otvori račun"},"pt-br":{registerBackButton:"Voltar",registerAddress:"Endereço",registerAddressError:"O endereço deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerPostalCode:"Código postal",registerPostalCodeError:"O CEP deve ter no mínimo 1 caractere e no máximo 100 caracteres.",registerCity:"Cidade",registerCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",registerCountry:"País",registerNationality:"Nacionalidade",registerMobile:"Número de telemóvel",registerMobileError:"O número do celular deve ter entre 5 e 12 caracteres no máximo.",registerUserConsents:"Quero receber ofertas e bônus exclusivos. Estou ciente de que posso cancelar esta assinatura a qualquer momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correio eletrônico",registerTermsConditions:"Tenho pelo menos 18 anos de idade e li e aceito os <a href='/terms-and-conditions' target='_blank'>Termos e Condições </a>.",registerTermsConditionsError:"Aceite os Termos e Condições antes de prosseguir.",registerOpenAccount:"Conta aberta"},"es-mx":{registerBackButton:"Atrás",registerAddress:"Dirección",registerAddressError:"La dirección debe tener al menos 1 caracter y 100 caracteres máximo.",registerPostalCode:"Código postal",registerPostalCodeError:"El código postal debe tener al menos 1 caracter y 100 caracteres máximo.",registerCity:"Ciudad",registerCityError:"Ciudad debe tener al menos 1 caracter y 50 caracteres máximo.",registerCountry:"País",registerNationality:"Nacionalidad",registerMobile:"Número de móvil",registerMobileError:"Número de móvil debe tener entre 5 caracteres de largo y 12 caracteres máximo.",registerUserConsents:"Quiero recibir ofertas exclusivas y bonos. Estoy consciente que puedo cancelar esta subscripción en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"Correo electrónico",registerTermsConditions:"Tengo al menos 18 años de edad y he leído y aceptado los <a href='/terms-and-conditions' target='_blank'>Términos y Condiciones </a>.",registerTermsConditionsError:"Por favor acepte los Términos y Condiciones antes de proceder.",registerOpenAccount:"Abrir cuenta"}},{document:sn}=os;function vo(e){as(e,"svelte-q95mw8",`input.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,select.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{font-family:inherit}.BackButton.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:var(--emw--border-radius-small, 5px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton.svelte-q95mw8 svg.svelte-q95mw8.svelte-q95mw8{width:20px;height:20px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressPostalCodeContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{display:flex;gap:16px}.CountryContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.CountryContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-medium, 15px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8:focus,.CountryContainer.svelte-q95mw8 select.svelte-q95mw8 .svelte-q95mw8:focus-within,.CountryContainer.svelte-q95mw8 select.svelte-q95mw8 .svelte-q95mw8:focus-visible,.CountryContainer.svelte-q95mw8 select.svelte-q95mw8 .svelte-q95mw8:visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.AddressContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.PostalCodeContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.CityContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.CountryContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.NationalityContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.MobileContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8,.PostalCodeContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8,.CityContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8,.CountryContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8,.NationalityContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8,.MobileContainer.svelte-q95mw8 label.svelte-q95mw8.svelte-q95mw8{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.AddressContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.PostalCodeContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.CityContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.CountryContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8,.NationalityContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8,.MobileContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.MobileContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.AddressContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8:focus,.PostalCodeContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8:focus,.CityContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8:focus,.CountryContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8:focus,.NationalityContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8:focus,.MobileContainer.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8:focus,.MobileContainer.svelte-q95mw8 select.svelte-q95mw8.svelte-q95mw8:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.AddressContainer.InvalidField.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.PostalCodeContainer.InvalidField.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.CityContainer.InvalidField.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.MobileContainer.InvalidField.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.AddressContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.PostalCodeContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.CityContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.CountryContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.NationalityContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.MobileContainer.Hidden.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{display:none}.AddressContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{width:65%}.PostalCodeContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{width:35%}.MobileWrapper.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{display:flex;gap:16px}.MobileWrapper.svelte-q95mw8 .MobilePrefixSelected.svelte-q95mw8.svelte-q95mw8{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper.svelte-q95mw8 .MobilePrefixSelected.svelte-q95mw8.svelte-q95mw8:focus,.MobileWrapper.svelte-q95mw8 .MobilePrefixSelected .svelte-q95mw8.svelte-q95mw8:focus-within,.MobileWrapper.svelte-q95mw8 .MobilePrefixSelected .svelte-q95mw8.svelte-q95mw8:focus-visible,.MobileWrapper.svelte-q95mw8 .MobilePrefixSelected .svelte-q95mw8.svelte-q95mw8:visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.MobileWrapper.svelte-q95mw8 .MobileInput.svelte-q95mw8.svelte-q95mw8{width:70%}.FormRequired.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{color:var(--emw--color-secondary, #E1A749)}.InvalidInput.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px}.OffersMethodsWrapper.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{padding-left:32px}.Offers.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.OffersMethod.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8,.AgeConsent.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:var(--emw--font-size-medium, 16px);user-select:none;line-height:18px}.Offers.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.OffersMethod.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8,.AgeConsent.svelte-q95mw8 input.svelte-q95mw8.svelte-q95mw8{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8,.OffersMethod.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8,.AgeConsent.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.Offers.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8,.OffersMethod.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8,.AgeConsent.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.Offers.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8:after,.OffersMethod.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8:after,.AgeConsent.svelte-q95mw8 .Checkmark.svelte-q95mw8.svelte-q95mw8:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.Offers.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8:after,.OffersMethod.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8:after,.AgeConsent.svelte-q95mw8 input.svelte-q95mw8:checked~.Checkmark.svelte-q95mw8:after{display:block}.NotificationContainer.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{margin-top:32px}.NotificationContainer.svelte-q95mw8 p.svelte-q95mw8.svelte-q95mw8{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749));font-size:var(--emw--font-size-small, 14px)}.RegisterError.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{color:var(--emw--color-error, #ed0909);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.RegisterStepNext.svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled].svelte-q95mw8.svelte-q95mw8.svelte-q95mw8{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}`)}function on(e,t,r){const n=e.slice();return n[89]=t[r],n}function an(e,t,r){const n=e.slice();return n[92]=t[r],n}function ln(e,t,r){const n=e.slice();return n[95]=t[r],n}function un(e){let t,r;return{c(){t=v("script"),Dr(t.src,r="//www.google.com/recaptcha/api.js?render="+e[4])||f(t,"src",r),t.async=!0,t.defer=!0},m(n,s){R(n,t,s)},p(n,s){s[0]&16&&!Dr(t.src,r="//www.google.com/recaptcha/api.js?render="+n[4])&&f(t,"src",r)},d(n){n&&M(t)}}}function hn(e){let t,r=e[32]("registerAddressError")+"",n;return{c(){t=v("p"),n=q(r),f(t,"class","InvalidInput svelte-q95mw8")},m(s,i){R(s,t,i),l(t,n)},p(s,i){i[1]&2&&r!==(r=s[32]("registerAddressError")+"")&&D(n,r)},d(s){s&&M(t)}}}function cn(e){let t,r=e[32]("registerPostalCodeError")+"",n;return{c(){t=v("p"),n=q(r),f(t,"class","InvalidInput svelte-q95mw8")},m(s,i){R(s,t,i),l(t,n)},p(s,i){i[1]&2&&r!==(r=s[32]("registerPostalCodeError")+"")&&D(n,r)},d(s){s&&M(t)}}}function fn(e){let t,r=e[32]("registerCityError")+"",n;return{c(){t=v("p"),n=q(r),f(t,"class","InvalidInput svelte-q95mw8")},m(s,i){R(s,t,i),l(t,n)},p(s,i){i[1]&2&&r!==(r=s[32]("registerCityError")+"")&&D(n,r)},d(s){s&&M(t)}}}function mn(e){let t,r=e[95].Name+"",n,s;return{c(){t=v("option"),n=q(r),t.__value=s=e[95].Alpha2Code,fe(t,t.__value),f(t,"class","svelte-q95mw8")},m(i,o){R(i,t,o),l(t,n)},p(i,o){o[0]&1048576&&r!==(r=i[95].Name+"")&&D(n,r),o[0]&1048576&&s!==(s=i[95].Alpha2Code)&&(t.__value=s,fe(t,t.__value))},d(i){i&&M(t)}}}function dn(e){let t,r=e[92].Name+"",n,s;return{c(){t=v("option"),n=q(r),t.__value=s=e[92].Alpha2Code,fe(t,t.__value),f(t,"class","svelte-q95mw8")},m(i,o){R(i,t,o),l(t,n)},p(i,o){o[0]&4194304&&r!==(r=i[92].Name+"")&&D(n,r),o[0]&4194304&&s!==(s=i[92].Alpha2Code)&&(t.__value=s,fe(t,t.__value))},d(i){i&&M(t)}}}function pn(e){let t,r=e[89].Prefix+"",n,s;return{c(){t=v("option"),n=q(r),t.__value=s=e[89].Prefix,fe(t,t.__value),f(t,"class","svelte-q95mw8")},m(i,o){R(i,t,o),l(t,n)},p(i,o){o[0]&33554432&&r!==(r=i[89].Prefix+"")&&D(n,r),o[0]&33554432&&s!==(s=i[89].Prefix)&&(t.__value=s,fe(t,t.__value))},d(i){i&&M(t)}}}function gn(e){let t,r=e[32]("registerMobileError")+"",n;return{c(){t=v("p"),n=q(r),f(t,"class","InvalidInput svelte-q95mw8")},m(s,i){R(s,t,i),l(t,n)},p(s,i){i[1]&2&&r!==(r=s[32]("registerMobileError")+"")&&D(n,r)},d(s){s&&M(t)}}}function vn(e){let t,r,n=(e[2]==="true"||e[3]==="true")&&bn(e),s=e[1]==="true"&&_n(e);return{c(){n&&n.c(),t=x(),s&&s.c(),r=Hr()},m(i,o){n&&n.m(i,o),R(i,t,o),s&&s.m(i,o),R(i,r,o)},p(i,o){i[2]==="true"||i[3]==="true"?n?n.p(i,o):(n=bn(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),i[1]==="true"?s?s.p(i,o):(s=_n(i),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(i){i&&(M(t),M(r)),n&&n.d(i),s&&s.d(i)}}}function bn(e){let t,r,n=e[32]("registerUserConsents")+"",s,i,o,h,c,a,u,g,p,y,w=e[2]==="true"&&wn(e),b=e[3]==="true"&&yn(e);return{c(){t=v("div"),r=v("label"),s=q(n),i=x(),o=v("input"),h=x(),c=v("span"),a=x(),u=v("div"),w&&w.c(),g=x(),b&&b.c(),f(o,"type","Checkbox"),o.checked=e[27],f(o,"class","svelte-q95mw8"),f(c,"class","Checkmark svelte-q95mw8"),f(r,"class","Offers svelte-q95mw8"),f(u,"class","OffersMethodsWrapper svelte-q95mw8"),f(t,"class","OffersContainer")},m(A,H){R(A,t,H),l(t,r),l(r,s),l(r,i),l(r,o),l(r,h),l(r,c),l(t,a),l(t,u),w&&w.m(u,null),l(u,g),b&&b.m(u,null),p||(y=B(o,"click",e[64]),p=!0)},p(A,H){H[1]&2&&n!==(n=A[32]("registerUserConsents")+"")&&D(s,n),H[0]&134217728&&(o.checked=A[27]),A[2]==="true"?w?w.p(A,H):(w=wn(A),w.c(),w.m(u,g)):w&&(w.d(1),w=null),A[3]==="true"?b?b.p(A,H):(b=yn(A),b.c(),b.m(u,null)):b&&(b.d(1),b=null)},d(A){A&&M(t),w&&w.d(),b&&b.d(),p=!1,y()}}}function wn(e){let t,r=e[32]("registerUserConsentsSMS")+"",n,s,i,o,h,c,a;return{c(){t=v("label"),n=q(r),s=x(),i=v("input"),o=x(),h=v("span"),f(i,"type","Checkbox"),i.checked=e[28],f(i,"class","svelte-q95mw8"),f(h,"class","Checkmark svelte-q95mw8"),f(t,"class","OffersMethod svelte-q95mw8")},m(u,g){R(u,t,g),l(t,n),l(t,s),l(t,i),l(t,o),l(t,h),c||(a=B(i,"click",e[65]),c=!0)},p(u,g){g[1]&2&&r!==(r=u[32]("registerUserConsentsSMS")+"")&&D(n,r),g[0]&268435456&&(i.checked=u[28])},d(u){u&&M(t),c=!1,a()}}}function yn(e){let t,r=e[32]("registerUserConsentsEmail")+"",n,s,i,o,h,c,a;return{c(){t=v("label"),n=q(r),s=x(),i=v("input"),o=x(),h=v("span"),f(i,"type","Checkbox"),i.checked=e[29],f(i,"class","svelte-q95mw8"),f(h,"class","Checkmark svelte-q95mw8"),f(t,"class","OffersMethod svelte-q95mw8")},m(u,g){R(u,t,g),l(t,n),l(t,s),l(t,i),l(t,o),l(t,h),c||(a=B(i,"click",e[66]),c=!0)},p(u,g){g[1]&2&&r!==(r=u[32]("registerUserConsentsEmail")+"")&&D(n,r),g[0]&536870912&&(i.checked=u[29])},d(u){u&&M(t),c=!1,a()}}}function _n(e){let t,r,n,s,i,o,h,c,a,u,g,p=!e[30]&&En(e);return{c(){t=v("div"),r=v("label"),n=v("span"),s=x(),i=v("input"),o=x(),h=v("span"),c=x(),p&&p.c(),a=Hr(),f(i,"type","Checkbox"),i.checked=e[30],f(i,"class","svelte-q95mw8"),f(h,"class","Checkmark svelte-q95mw8"),f(r,"class","AgeConsent svelte-q95mw8"),f(t,"class","AgeContainer")},m(y,w){R(y,t,w),l(t,r),l(r,n),n.innerHTML=e[33],l(r,s),l(r,i),l(r,o),l(r,h),R(y,c,w),p&&p.m(y,w),R(y,a,w),u||(g=B(i,"click",e[67]),u=!0)},p(y,w){w[0]&1073741824&&(i.checked=y[30]),y[30]?p&&(p.d(1),p=null):p?p.p(y,w):(p=En(y),p.c(),p.m(a.parentNode,a))},d(y){y&&(M(t),M(c),M(a)),p&&p.d(y),u=!1,g()}}}function En(e){let t,r,n=e[32]("registerTermsConditionsError")+"",s;return{c(){t=v("div"),r=v("p"),s=q(n),f(r,"class","svelte-q95mw8"),f(t,"class","NotificationContainer svelte-q95mw8")},m(i,o){R(i,t,o),l(t,r),l(r,s)},p(i,o){o[1]&2&&n!==(n=i[32]("registerTermsConditionsError")+"")&&D(s,n)},d(i){i&&M(t)}}}function Cn(e){let t,r,n;return{c(){t=v("div"),r=v("p"),n=q(e[16]),f(r,"class","RegisterError svelte-q95mw8")},m(s,i){R(s,t,i),l(t,r),l(r,n)},p(s,i){i[0]&65536&&D(n,s[16])},d(s){s&&M(t)}}}function bo(e){let t,r,n,s,i,o,h,c,a,u,g,p=e[32]("registerBackButton")+"",y,w,b,A,H,G,U=e[32]("registerAddress")+"",me,ee,de,Te,k,Ue,Me,yt,L,z,X=e[32]("registerPostalCode")+"",Ne,ge,Se,ve,P,Fe,W,pe,N,j,te=e[32]("registerCity")+"",De,xe,Ve,Nt,re,It,_e,kt,qe,He,Xe=e[32]("registerCountry")+"",_t,Lt,We,Rt,$,Ge,Et,Be,Ae,$e=e[32]("registerNationality")+"",Ze,Ut,Qe,Ft,be,Je,Dt,we,Pe,Ye=e[32]("registerMobile")+"",Ct,Gt,Ke,jt,Ie,Ee,zt,Z,Vt,et,Xt,xt,je,Wt,Oe,tt=e[32]("registerOpenAccount")+"",At,d,I,V,Nr,ne=e[4]&&un(e),se=e[6]&&hn(e),ie=e[7]&&cn(e),oe=e[9]&&fn(e),rt=at(e[20]),Q=[];for(let m=0;m<rt.length;m+=1)Q[m]=mn(ln(e,rt,m));let nt=at(e[22]),J=[];for(let m=0;m<nt.length;m+=1)J[m]=dn(an(e,nt,m));let st=at(e[25]),Y=[];for(let m=0;m<st.length;m+=1)Y[m]=pn(on(e,st,m));let ae=e[8]&&gn(e),le=e[0]==="true"&&vn(e),ue=e[15]&&Cn(e);return{c(){var m,_,F,Tt,St,qt;ne&&ne.c(),t=Hr(),r=x(),n=v("div"),s=v("div"),i=v("button"),o=Zt("svg"),h=Zt("defs"),c=Zt("style"),a=q(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),u=Zt("path"),g=x(),y=q(p),w=x(),b=v("form"),A=v("div"),H=v("div"),G=v("label"),me=q(U),ee=q(":"),de=v("span"),de.textContent="*",Te=x(),k=v("input"),Ue=x(),se&&se.c(),yt=x(),L=v("div"),z=v("label"),Ne=q(X),ge=q(":"),Se=v("span"),Se.textContent="*",ve=x(),P=v("input"),Fe=x(),ie&&ie.c(),pe=x(),N=v("div"),j=v("label"),De=q(te),xe=q(":"),Ve=v("span"),Ve.textContent="*",Nt=x(),re=v("input"),It=x(),oe&&oe.c(),kt=x(),qe=v("div"),He=v("label"),_t=q(Xe),Lt=q(":"),We=v("span"),We.textContent="*",Rt=x(),$=v("select");for(let he=0;he<Q.length;he+=1)Q[he].c();Et=x(),Be=v("div"),Ae=v("label"),Ze=q($e),Ut=q(":"),Qe=v("span"),Qe.textContent="*",Ft=x(),be=v("select");for(let he=0;he<J.length;he+=1)J[he].c();Dt=x(),we=v("div"),Pe=v("label"),Ct=q(Ye),Gt=q(":"),Ke=v("span"),Ke.textContent="*",jt=x(),Ie=v("div"),Ee=v("select");for(let he=0;he<Y.length;he+=1)Y[he].c();zt=x(),Z=v("input"),Vt=x(),ae&&ae.c(),Xt=x(),le&&le.c(),xt=x(),je=v("div"),Wt=x(),Oe=v("button"),At=q(tt),I=x(),ue&&ue.c(),f(u,"class","a"),f(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),f(u,"transform","translate(24 24) rotate(180)"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(o,"viewBox","0 0 24 24"),f(o,"class","svelte-q95mw8"),f(i,"class","BackButton svelte-q95mw8"),f(s,"class","RegisterFormHeader"),f(de,"class","FormRequired svelte-q95mw8"),f(G,"for","Address"),f(G,"class","svelte-q95mw8"),f(k,"type","text"),f(k,"id","Address"),f(k,"class","svelte-q95mw8"),f(H,"class",Me="AddressContainer "+(e[6]&&!e[10]?"InvalidField":"")+(((m=e[14])==null?void 0:m.indexOf("address"))>=0?"Hidden":"")+" svelte-q95mw8"),f(Se,"class","FormRequired svelte-q95mw8"),f(z,"for","PostalCode"),f(z,"class","svelte-q95mw8"),f(P,"type","text"),f(P,"id","PostalCode"),f(P,"class","svelte-q95mw8"),f(L,"class",W="PostalCodeContainer "+(e[7]&&!e[11]?"InvalidField":"")+(((_=e[14])==null?void 0:_.indexOf("postalCode"))>=0?"Hidden":"")+" svelte-q95mw8"),f(A,"class","AddressPostalCodeContainer svelte-q95mw8"),f(Ve,"class","FormRequired svelte-q95mw8"),f(j,"for","City"),f(j,"class","svelte-q95mw8"),f(re,"type","text"),f(re,"id","City"),f(re,"class","svelte-q95mw8"),f(N,"class",_e="CityContainer "+(e[9]&&e[13]?"InvalidField":"")+(((F=e[14])==null?void 0:F.indexOf("city"))>=0?"Hidden":"")+" svelte-q95mw8"),f(We,"class","FormRequired svelte-q95mw8"),f(He,"for","Country"),f(He,"class","svelte-q95mw8"),f($,"id","Country"),f($,"class","svelte-q95mw8"),e[21]===void 0&&ct(()=>e[58].call($)),f(qe,"class",Ge="CountryContainer "+(((Tt=e[14])==null?void 0:Tt.indexOf("country"))>=0?"Hidden":"")+" svelte-q95mw8"),f(Qe,"class","FormRequired svelte-q95mw8"),f(Ae,"for","Nationality"),f(Ae,"class","svelte-q95mw8"),f(be,"id","Nationality"),f(be,"class","svelte-q95mw8"),e[23]===void 0&&ct(()=>e[59].call(be)),f(Be,"class",Je="NationalityContainer "+(((St=e[14])==null?void 0:St.indexOf("nationality"))>=0?"Hidden":"")+" svelte-q95mw8"),f(Ke,"class","FormRequired svelte-q95mw8"),f(Pe,"for","Mobile"),f(Pe,"class","svelte-q95mw8"),f(Ee,"class","MobilePrefixSelected svelte-q95mw8"),e[26]===void 0&&ct(()=>e[60].call(Ee)),f(Z,"type","text"),f(Z,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),f(Z,"id","Mobile"),f(Z,"class","MobileInput svelte-q95mw8"),f(Ie,"class","MobileWrapper svelte-q95mw8"),f(we,"class",et="MobileContainer "+(e[8]&&!e[12]?"InvalidField":"")+(((qt=e[14])==null?void 0:qt.indexOf("mobile"))>=0?"Hidden":"")+" svelte-q95mw8"),f(je,"class","g-recaptcha"),f(je,"data-sitekey",e[4]),f(Oe,"class","RegisterStepNext svelte-q95mw8"),Oe.disabled=d=!e[31],f(b,"class","RegisterFormContent")},m(m,_){ne&&ne.m(sn.head,null),l(sn.head,t),R(m,r,_),R(m,n,_),l(n,s),l(s,i),l(i,o),l(o,h),l(h,c),l(c,a),l(o,u),l(i,g),l(i,y),l(n,w),l(n,b),l(b,A),l(A,H),l(H,G),l(G,me),l(G,ee),l(G,de),l(H,Te),l(H,k),fe(k,e[17]),l(H,Ue),se&&se.m(H,null),l(A,yt),l(A,L),l(L,z),l(z,Ne),l(z,ge),l(z,Se),l(L,ve),l(L,P),fe(P,e[18]),l(L,Fe),ie&&ie.m(L,null),l(b,pe),l(b,N),l(N,j),l(j,De),l(j,xe),l(j,Ve),l(N,Nt),l(N,re),fe(re,e[19]),l(N,It),oe&&oe.m(N,null),l(b,kt),l(b,qe),l(qe,He),l(He,_t),l(He,Lt),l(He,We),l(qe,Rt),l(qe,$);for(let F=0;F<Q.length;F+=1)Q[F]&&Q[F].m($,null);it($,e[21],!0),l(b,Et),l(b,Be),l(Be,Ae),l(Ae,Ze),l(Ae,Ut),l(Ae,Qe),l(Be,Ft),l(Be,be);for(let F=0;F<J.length;F+=1)J[F]&&J[F].m(be,null);it(be,e[23],!0),l(b,Dt),l(b,we),l(we,Pe),l(Pe,Ct),l(Pe,Gt),l(Pe,Ke),l(we,jt),l(we,Ie),l(Ie,Ee);for(let F=0;F<Y.length;F+=1)Y[F]&&Y[F].m(Ee,null);it(Ee,e[26],!0),l(Ie,zt),l(Ie,Z),fe(Z,e[24]),l(we,Vt),ae&&ae.m(we,null),l(b,Xt),le&&le.m(b,null),l(b,xt),l(b,je),l(b,Wt),l(b,Oe),l(Oe,At),l(n,I),ue&&ue.m(n,null),e[69](n),V||(Nr=[B(i,"click",e[41]),B(k,"input",e[49]),B(k,"keyup",e[34]),B(k,"focus",e[50]),B(k,"blur",e[51]),B(P,"input",e[52]),B(P,"keyup",e[35]),B(P,"focus",e[53]),B(P,"blur",e[54]),B(re,"input",e[55]),B(re,"keyup",e[36]),B(re,"focus",e[56]),B(re,"blur",e[57]),B($,"change",e[58]),B(be,"change",e[59]),B(Ee,"change",e[60]),B(Z,"input",e[61]),B(Z,"keyup",e[37]),B(Z,"focus",e[62]),B(Z,"blur",e[63]),B(Oe,"click",e[68])],V=!0)},p(m,_){var F,Tt,St,qt,he,Ir;if(m[4]?ne?ne.p(m,_):(ne=un(m),ne.c(),ne.m(t.parentNode,t)):ne&&(ne.d(1),ne=null),_[1]&2&&p!==(p=m[32]("registerBackButton")+"")&&D(y,p),_[1]&2&&U!==(U=m[32]("registerAddress")+"")&&D(me,U),_[0]&131072&&k.value!==m[17]&&fe(k,m[17]),m[6]?se?se.p(m,_):(se=hn(m),se.c(),se.m(H,null)):se&&(se.d(1),se=null),_[0]&17472&&Me!==(Me="AddressContainer "+(m[6]&&!m[10]?"InvalidField":"")+(((F=m[14])==null?void 0:F.indexOf("address"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(H,"class",Me),_[1]&2&&X!==(X=m[32]("registerPostalCode")+"")&&D(Ne,X),_[0]&262144&&P.value!==m[18]&&fe(P,m[18]),m[7]?ie?ie.p(m,_):(ie=cn(m),ie.c(),ie.m(L,null)):ie&&(ie.d(1),ie=null),_[0]&18560&&W!==(W="PostalCodeContainer "+(m[7]&&!m[11]?"InvalidField":"")+(((Tt=m[14])==null?void 0:Tt.indexOf("postalCode"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(L,"class",W),_[1]&2&&te!==(te=m[32]("registerCity")+"")&&D(De,te),_[0]&524288&&re.value!==m[19]&&fe(re,m[19]),m[9]?oe?oe.p(m,_):(oe=fn(m),oe.c(),oe.m(N,null)):oe&&(oe.d(1),oe=null),_[0]&25088&&_e!==(_e="CityContainer "+(m[9]&&m[13]?"InvalidField":"")+(((St=m[14])==null?void 0:St.indexOf("city"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(N,"class",_e),_[1]&2&&Xe!==(Xe=m[32]("registerCountry")+"")&&D(_t,Xe),_[0]&1048576){rt=at(m[20]);let E;for(E=0;E<rt.length;E+=1){const ke=ln(m,rt,E);Q[E]?Q[E].p(ke,_):(Q[E]=mn(ke),Q[E].c(),Q[E].m($,null))}for(;E<Q.length;E+=1)Q[E].d(1);Q.length=rt.length}if(_[0]&3145728&&it($,m[21]),_[0]&16384&&Ge!==(Ge="CountryContainer "+(((qt=m[14])==null?void 0:qt.indexOf("country"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(qe,"class",Ge),_[1]&2&&$e!==($e=m[32]("registerNationality")+"")&&D(Ze,$e),_[0]&4194304){nt=at(m[22]);let E;for(E=0;E<nt.length;E+=1){const ke=an(m,nt,E);J[E]?J[E].p(ke,_):(J[E]=dn(ke),J[E].c(),J[E].m(be,null))}for(;E<J.length;E+=1)J[E].d(1);J.length=nt.length}if(_[0]&12582912&&it(be,m[23]),_[0]&16384&&Je!==(Je="NationalityContainer "+(((he=m[14])==null?void 0:he.indexOf("nationality"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(Be,"class",Je),_[1]&2&&Ye!==(Ye=m[32]("registerMobile")+"")&&D(Ct,Ye),_[0]&33554432){st=at(m[25]);let E;for(E=0;E<st.length;E+=1){const ke=on(m,st,E);Y[E]?Y[E].p(ke,_):(Y[E]=pn(ke),Y[E].c(),Y[E].m(Ee,null))}for(;E<Y.length;E+=1)Y[E].d(1);Y.length=st.length}_[0]&100663296&&it(Ee,m[26]),_[0]&16777216&&Z.value!==m[24]&&fe(Z,m[24]),m[8]?ae?ae.p(m,_):(ae=gn(m),ae.c(),ae.m(we,null)):ae&&(ae.d(1),ae=null),_[0]&20736&&et!==(et="MobileContainer "+(m[8]&&!m[12]?"InvalidField":"")+(((Ir=m[14])==null?void 0:Ir.indexOf("mobile"))>=0?"Hidden":"")+" svelte-q95mw8")&&f(we,"class",et),m[0]==="true"?le?le.p(m,_):(le=vn(m),le.c(),le.m(b,xt)):le&&(le.d(1),le=null),_[0]&16&&f(je,"data-sitekey",m[4]),_[1]&2&&tt!==(tt=m[32]("registerOpenAccount")+"")&&D(At,tt),_[1]&1&&d!==(d=!m[31])&&(Oe.disabled=d),m[15]?ue?ue.p(m,_):(ue=Cn(m),ue.c(),ue.m(n,null)):ue&&(ue.d(1),ue=null)},i:Ce,o:Ce,d(m){m&&(M(r),M(n)),ne&&ne.d(m),M(t),se&&se.d(),ie&&ie.d(),oe&&oe.d(),lr(Q,m),lr(J,m),lr(Y,m),ae&&ae.d(),le&&le.d(),ue&&ue.d(),e[69](null),V=!1,gt(Nr)}}}function wo(e,t,r){let n;is(e,mo,d=>r(32,n=d));let{userconsentsexist:s="false"}=t,{termsconditions:i="false"}=t,{smsoffers:o="false"}=t,{emailmarketing:h="false"}=t,{endpoint:c=""}=t,{captchakey:a=""}=t,{lang:u=""}=t,{disabledfields:g=""}=t,{defaultoptions:p=""}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationurl:b=""}=t,A,H,G,U,me=!1,ee=!1,de=!1,Te=!1,k,Ue,Me=!1,yt="",L="",z="",X="",Ne=[],ge="",Se=[],ve="",P="",Fe=[],W="",pe=!1,N=!1,j=!1,te=!1,De=!1,xe;po({withLocale:"en",translations:{}});const Ve=()=>{fetch(b).then(I=>I.json()).then(I=>{Object.keys(I).forEach(V=>{rn(V,I[V])})}).catch(I=>{console.log(I)})};Object.keys(nn).forEach(d=>{rn(d,nn[d])});let Nt=n("registerTermsConditions");const re=()=>{fetch(`${c}/v1/player/countries`).then(d=>d.json()).then(d=>{fetch(`${c}/v1/player/operatorSupportedCountries`).then(I=>I.status>=300?new Error("Error while fetching the supported countries"):I.json()).then(I=>{r(20,Ne=d.countries.filter(V=>I.countries.indexOf(V.Alpha2Code)>=0)),ge||r(21,ge=Ne[0].Alpha2Code),r(22,Se=d.countries),ve||r(23,ve=Se.filter(V=>I.countries.indexOf(V.Alpha2Code)>=0)[0].Alpha2Code)})})},It=()=>{fetch(`${c}/v1/player/phonecodes`).then(d=>d.json()).then(d=>{r(25,Fe=d.phoneCodes),W||r(26,W=Fe[0].Prefix)})},_e=()=>{r(31,De=!(A||H||U||G||Me||s==="true"&&i==="true"&&!te)),(L.length<=0||z.length<=0||X.length<=0||P.length<=0)&&r(31,De=!1)},kt=()=>!!(L&&L.length<=100),qe=()=>{r(6,A=!kt()),_e()},He=()=>!!(z&&z.length<=20),Xe=()=>{r(7,H=!He()),_e()},_t=()=>!!(X&&X.length<=50),Lt=()=>{r(9,U=!_t()),_e()},We=()=>!!(P&&P.length>=5&&P.length<=12),Rt=()=>{r(8,G=!We()),_e()},$=d=>{switch(d){case"GeneralOffers":pe===!1?(r(27,pe=!0),r(28,N=!0),r(29,j=!0)):(r(27,pe=!1),r(28,N=!1),r(29,j=!1));break;case"SmsOffers":N===!1?(r(28,N=!0),r(27,pe=!0)):r(28,N=!1),Ge();break;case"EmailOffers":j===!1?(r(29,j=!0),r(27,pe=!0)):r(29,j=!1),Ge();break}},Ge=()=>{!N&&!j&&r(27,pe=!1)},Et=()=>{te===!1?r(30,te=!0):r(30,te=!1),_e()},Be=()=>new Promise((d,I)=>{grecaptcha.ready(()=>{grecaptcha.execute(a,{action:"submit"}).then(V=>{d(V)})})}),Ae=d=>{d.preventDefault();let I={};Be().then(V=>{I={address:L,postalCode:z,city:X,countrySelected:ge,nationalitySelected:ve,mobilePrefixSelected:W,mobile:P,consentOffersSms:N,consentOffersEmail:j,consentTerms:te,consentOffers:pe,token:V},window.postMessage({type:"RegisterStepThree",registerStepThreeData:I},window.location.href)})},$e=()=>{let d={address:L,postalCode:z,city:X,countrySelected:ge,nationalitySelected:ve,mobilePrefixSelected:W,mobile:P,consentOffersSms:N,consentOffersEmail:j,consentTerms:te,consentOffers:pe};window.postMessage({type:"GoBackStepThree",registerStepThreeData:d},window.location.href)},Ze=d=>{if(d.data)switch(d.data.type){case"StepThreeDataBackup":r(17,L=d.data.userData.address1),r(18,z=d.data.userData.postalCode),r(19,X=d.data.userData.city),r(21,ge=d.data.userData.country),r(23,ve=d.data.userData.nationality),r(26,W=d.data.userData.mobile.prefix),r(24,P=d.data.userData.mobile.number),r(28,N=d.data.userData.userConsents.sms),r(29,j=d.data.userData.userConsents.emailmarketing),r(30,te=d.data.userData.userConsents.termsandconditions),_e();break;case"ShowRegistrationError":r(15,Me=d.data.showError),r(16,yt=d.data.error)}},Ut=()=>{r(14,k=g.split(",")),k.indexOf("address")>=0&&(r(6,A=!1),r(17,L="dummy address")),k.indexOf("postalCode")>=0&&(r(7,H=!1),r(18,z="000000")),k.indexOf("mobile")>=0&&(r(8,G=!1),r(24,P="1234123412"),r(26,W="000")),k.indexOf("city")>=0&&(r(9,U=!1),r(19,X="dummy city")),k.indexOf("country")>=0&&r(21,ge="dummy country"),k.indexOf("nationality")>=0&&r(23,ve="dummy nationality")},Qe=()=>{Ue=p.split(","),Ue.indexOf("consentsTerms")>=0&&r(30,te=!0),Ue.indexOf("consentsOffers")>=0&&(r(27,pe=!0),r(28,N=!0),r(29,j=!0)),Ue.forEach(d=>{d.includes("phonePrefix")&&r(26,W=d.split(":")[1].toString())})},Ft=()=>{go(u)},be=()=>{let d=document.createElement("style");d.innerHTML=y,xe.appendChild(d)},Je=()=>{let d=new URL(w),I=document.createElement("style");fetch(d.href).then(V=>V.text()).then(V=>{I.innerHTML=V,setTimeout(()=>{xe.appendChild(I)},1),setTimeout(()=>{},500)})};ms(()=>(window.addEventListener("message",Ze,!1),()=>{window.removeEventListener("message",Ze)}));function Dt(){L=this.value,r(17,L)}const we=()=>r(10,me=!0),Pe=()=>r(10,me=!1);function Ye(){z=this.value,r(18,z)}const Ct=()=>r(11,ee=!0),Gt=()=>r(11,ee=!1);function Ke(){X=this.value,r(19,X)}const jt=()=>r(13,Te=!0),Ie=()=>r(13,Te=!1);function Ee(){ge=ur(this),r(21,ge),r(20,Ne)}function zt(){ve=ur(this),r(23,ve),r(22,Se)}function Z(){W=ur(this),r(26,W),r(25,Fe)}function Vt(){P=this.value,r(24,P)}const et=()=>r(12,de=!0),Xt=()=>r(12,de=!1),xt=()=>$("GeneralOffers"),je=()=>$("SmsOffers"),Wt=()=>$("EmailOffers"),Oe=()=>Et(),tt=d=>Ae(d);function At(d){vr[d?"unshift":"push"](()=>{xe=d,r(5,xe)})}return e.$$set=d=>{"userconsentsexist"in d&&r(0,s=d.userconsentsexist),"termsconditions"in d&&r(1,i=d.termsconditions),"smsoffers"in d&&r(2,o=d.smsoffers),"emailmarketing"in d&&r(3,h=d.emailmarketing),"endpoint"in d&&r(42,c=d.endpoint),"captchakey"in d&&r(4,a=d.captchakey),"lang"in d&&r(43,u=d.lang),"disabledfields"in d&&r(44,g=d.disabledfields),"defaultoptions"in d&&r(45,p=d.defaultoptions),"clientstyling"in d&&r(46,y=d.clientstyling),"clientstylingurl"in d&&r(47,w=d.clientstylingurl),"translationurl"in d&&r(48,b=d.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&2048&&c&&re(),e.$$.dirty[1]&2048&&c&&It(),e.$$.dirty[1]&4096&&u&&Ft(),e.$$.dirty[1]&8192&&g&&Ut(),e.$$.dirty[1]&16384&&p&&Qe(),e.$$.dirty[0]&32|e.$$.dirty[1]&32768&&y&&xe&&be(),e.$$.dirty[0]&32|e.$$.dirty[1]&65536&&w&&xe&&Je(),e.$$.dirty[1]&131072&&b&&Ve()},[s,i,o,h,a,xe,A,H,G,U,me,ee,de,Te,k,Me,yt,L,z,X,Ne,ge,Se,ve,P,Fe,W,pe,N,j,te,De,n,Nt,qe,Xe,Lt,Rt,$,Et,Ae,$e,c,u,g,p,y,w,b,Dt,we,Pe,Ye,Ct,Gt,Ke,jt,Ie,Ee,zt,Z,Vt,et,Xt,xt,je,Wt,Oe,tt,At]}class Yn extends As{constructor(t){super(),Cs(this,t,wo,bo,An,{userconsentsexist:0,termsconditions:1,smsoffers:2,emailmarketing:3,endpoint:42,captchakey:4,lang:43,disabledfields:44,defaultoptions:45,clientstyling:46,clientstylingurl:47,translationurl:48},vo,[-1,-1,-1,-1])}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(t){this.$$set({userconsentsexist:t}),ce()}get termsconditions(){return this.$$.ctx[1]}set termsconditions(t){this.$$set({termsconditions:t}),ce()}get smsoffers(){return this.$$.ctx[2]}set smsoffers(t){this.$$set({smsoffers:t}),ce()}get emailmarketing(){return this.$$.ctx[3]}set emailmarketing(t){this.$$set({emailmarketing:t}),ce()}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),ce()}get captchakey(){return this.$$.ctx[4]}set captchakey(t){this.$$set({captchakey:t}),ce()}get lang(){return this.$$.ctx[43]}set lang(t){this.$$set({lang:t}),ce()}get disabledfields(){return this.$$.ctx[44]}set disabledfields(t){this.$$set({disabledfields:t}),ce()}get defaultoptions(){return this.$$.ctx[45]}set defaultoptions(t){this.$$set({defaultoptions:t}),ce()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),ce()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ce()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),ce()}}xs(Yn,{userconsentsexist:{},termsconditions:{},smsoffers:{},emailmarketing:{},endpoint:{},captchakey:{},lang:{},disabledfields:{},defaultoptions:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Yn;