@everymatrix/general-player-register-form-step3 0.0.293 → 0.0.296

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function tt(){}function S(e){return e()}function _(){return Object.create(null)}function rt(e){e.forEach(S)}function B(e){return"function"==typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let p,R;function d(e,t){return(p=p||document.createElement("a")).href=t,e===p.href}function D(e,...t){if(null==e)return tt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function nt(e,t){e.appendChild(t)}function it(e,t,r){e.insertBefore(t,r||null)}function ot(e){e.parentNode.removeChild(e)}function ft(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function t(e){return document.createElement(e)}function mt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function at(){return st(" ")}function gt(){return st("")}function lt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ct(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ht(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function ut(e,t){e.value=null==t?"":t}function pt(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0}t.selectedIndex=-1}function G(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function g(e){R=e}const H=[],f=[],P=[],w=[],M=Promise.resolve();let I=!1;function dt(e){P.push(e)}const N=new Set;let O=0;function b(){const e=R;do{for(;O<H.length;){const e=H[O];O++,g(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),rt(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(dt))}for(g(null),H.length=0,O=0;f.length;)f.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];N.has(n)||(N.add(n),n())}}while(P.length=0,H.length);for(;w.length;)w.pop()();I=!1,N.clear(),g(e)}const k=new Set;function L(n,e,t,r,i,o,s,a=[-1]){var l=R;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:tt,not_equal:i,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:_(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let h=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),h&&(r=e,-1===(e=n).$$.dirty[0]&&(H.push(e),I||(I=!0,M.then(b)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),h=!0,rt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){o=e.target;const tt=Array.from(o.childNodes);c.fragment&&c.fragment.l(tt),tt.forEach(ot)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(k.delete(a),a.i(void 0));{var u=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:f,after_update:m}=u.$$;p&&p.m(s,t),r||dt(()=>{var e=d.map(S).filter(B);f?f.push(...e):rt(e),u.$$.on_mount=[]}),m.forEach(dt)}b()}g(l)}let x;"function"==typeof HTMLElement&&(x=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(B);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){rt(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(rt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=tt}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const r=[];function $(n,i=tt){let o;const s=new Set;function a(e){if(c(n,e)&&(n=e,o)){const e=!r.length;for(const e of s)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=tt){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||tt),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function e(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,h=a.length<2;return{subscribe:$(t,t=>{let r=!1;const n=[];let i=0,o=tt;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),h?t(e):o=B(e)?e:tt)},e=c.map((e,t)=>D(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){rt(e),o()}}).subscribe}}function j(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===V));var t}var V="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function X(e,t,r){return e.concat(t).map(function(e){return z(e,r)})}function K(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function q(e,t){try{return t in e}catch(e){return!1}}function W(n,i,o){var s={};return o.isMergeableObject(n)&&K(n).forEach(function(e){s[e]=z(n[e],o)}),K(i).forEach(function(t){var e,r;(!q(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(q(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return a;e=e.customMerge(t);return"function"==typeof e?e:a}(o)(n[t],i[t],o):s[t]=z(i[t],o))}),s}function a(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject||j,r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):W(e,t,r):z(t,r)}a.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return a(e,t,r)},{});throw new Error("first argument should be an array")};var Y=a,Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,y,E,v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function J(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function ee(e){return e.type===y.literal}function te(e){return e.type===y.number}function re(e){return e.type===y.date}function ne(e){return e.type===y.time}function ie(e){return e.type===y.select}function oe(e){return e.type===y.plural}function se(e){return e.type===y.tag}function ae(e){return e&&"object"==typeof e&&e.type===E.number}function le(e){return e&&"object"==typeof e&&e.type===E.dateTime}(n=m=m||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=y=y||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=E=E||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ce=/(?:[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;var he=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ue=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pe=/^(@+)?(\+|#+)?[rs]?$/g,de=/(\*)(0+)|(#+)(0+)|(0+)/g,fe=/^(0+)$/;function me(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(pe,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function ge(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 be(e){return ge(e)||{}}function ye(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=v(v(v({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return v(v({},e),be(t))},{}));continue;case"engineering":s=v(v(v({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return v(v({},e),be(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(de,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fe.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ue.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ue,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=v(v({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=v(v({},s),me(o)))}else pe.test(i.stem)?s=v(v({},s),me(i.stem)):((o=ge(i.stem))&&(s=v(v({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!fe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=v(v({},s),n)))}return s}var Ee={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","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"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var ve=new RegExp("^".concat(n.source,"*")),Ce=new RegExp("".concat(n.source,"*$"));function C(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,Ae=!!String.fromCodePoint,Te=!!Object.fromEntries,Se=!!String.prototype.codePointAt,_e=!!String.prototype.trimStart,Be=!!String.prototype.trimEnd,He=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pe=!0;try{Pe="a"===(null==(qe=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:qe[0])}catch(tt){Pe=!1}var we,Me,Ie=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ne=Ae?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Oe=Te?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},ke=Se?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},Le=_e?function(e){return e.trimStart()}:function(e){return e.replace(ve,"")},xe=Be?function(e){return e.trimEnd()}:function(e){return e.replace(Ce,"")};function Re(e,t){return new RegExp(e,t)}Me=Pe?(we=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return we.lastIndex=t,null!=(t=we.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=ke(e,t);if(void 0===i||De(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Ne.apply(void 0,n)};i.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ue(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:C(o,this.clonePosition())})}}}return{val:n,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:C(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ue(this.char()))return this.error(m.INVALID_TAG,C(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,C(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:C(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,C(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,C(r,this.clonePosition()))}return this.error(m.INVALID_TAG,C(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=C(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},i.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ne.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ne(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,C(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,C(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:C(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,C(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Me(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:C(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,C(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(d=xe(f.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:C(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(n)).err)return c;var h=C(n,this.clonePosition());if(l&&Ie(null==l?void 0:l.style,"::",0)){var u=Le(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:y.number,value:r,location:h,style:f.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ee[t||""]||Ee[r||""]||Ee["".concat(r,"-001")]||Ee["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(u,this.locale)),{type:E.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(ce,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}});return{val:{type:"date"===s?y.date:y.time,value:r,location:h,style:d},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,C(p,v({},p)));this.bumpSpace();var f,d=this.parseIdentifierIfPossible(),h=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),d=this.parseIdentifierIfPossible(),h=f.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((c=this.tryParseArgumentClose(n)).err)return c;u=C(n,this.clonePosition());return"select"===s?{val:{type:y.select,value:r,options:Oe(l.val),location:u},err:null}:{val:{type:y.plural,value:r,options:Oe(l.val),offset:h,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,C(o,a))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,C(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(he).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:E.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ye(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=C(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;o.push([a,{value:c.val,location:C(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:o,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=C(n,this.clonePosition());return i?He(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ke(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},i.prototype.bumpIf=function(e){if(Ie(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&De(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Fe=i;function i(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ue(e){return 97<=e&&e<=122||65<=e&&e<=90}function De(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ge(e,t){t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Fe(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,ie(e)||oe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else te(e)&&ae(e.style)||(re(e)||ne(e))&&le(e.style)?delete e.style.location:se(e)&&r(e.children)})}(e.val),e.val}function $e(e,t){var r=t&&t.cache?t.cache:We,n=t&&t.serializer?t.serializer:Xe;return(t&&t.strategy?t.strategy:function(e,t){return ze(e,this,1===e.length?je:Ve,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function je(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Ve(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function ze(e,t,r,n,i){return r.bind(t,e,n,i)}var Xe=function(){return JSON.stringify(arguments)};function Ke(){this.cache=Object.create(null)}Ke.prototype.get=function(e){return this.cache[e]},Ke.prototype.set=function(e,t){this.cache[e]=t};var A,qe,We={create:function(){return new Ke}},Ye={variadic:function(e,t){return ze(e,this,Ve,t.cache.create(),t.serializer)},monadic:function(e,t){return ze(e,this,je,t.cache.create(),t.serializer)}};(qe=A=A||{}).MISSING_VALUE="MISSING_VALUE",qe.INVALID_VALUE="INVALID_VALUE",qe.MISSING_INTL_API="MISSING_INTL_API";Q(St,et=Error),St.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ze,Qe,Je,et,bt=St,yt=(Q(Tt,Je=bt),Tt),Et=(Q(At,Qe=bt),At),vt=(Q(Ct,Ze=bt),Ct);function Ct(e,t){return Ze.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),A.MISSING_VALUE,t)||this}function At(e,t,r){return Qe.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),A.INVALID_VALUE,r)||this}function Tt(e,t,r,n){return Je.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),A.INVALID_VALUE,n)||this}function St(e,t,r){e=et.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function _t(e,t,r,n,i,o,s){if(1===e.length&&ee(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var h=c[l];if(ee(h))a.push({type:T.literal,value:h.value});else if(h.type===y.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(t).format(o)});else{var u=h.value;if(!(i&&u in i))throw new vt(u,s);u=i[u];if(h.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(re(h)){var p="string"==typeof h.style?n.date[h.style]:le(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(u)})}else if(ne(h))p="string"==typeof h.style?n.time[h.style]:le(h.style)?h.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(u)});else if(te(h))(p="string"==typeof h.style?n.number[h.style]:ae(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(u)});else{if(se(h)){var d=h.children,f=h.value,m=i[f];if("function"!=typeof m)throw new Et(f,"function",s);f=m(_t(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(ie(h)){if(!(g=h.options[u]||h.options.other))throw new yt(h.value,u,Object.keys(h.options),s);a.push.apply(a,_t(g.value,t,r,n,i))}else if(oe(h)){if(!(g=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new bt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',A.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),g=h.options[m]||h.options.other}if(!g)throw new yt(h.value,u,Object.keys(h.options),s);a.push.apply(a,_t(g.value,t,r,n,i,u-(h.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Bt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},l.__parse=Ge,l.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"}}};var Ht=l;function l(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return _t(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=l.resolveLocale(t),"string"==typeof e){if(this.message=e,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=l.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?v(v(v({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=v(v({},r[t]),n[t]||{}),e},{})):r),e},v({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,J([void 0],t,!1)))},{cache:Bt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ye.variadic}),getDateTimeFormat:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,J([void 0],t,!1)))},{cache:Bt(t.dateTime),strategy:Ye.variadic}),getPluralRules:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,J([void 0],t,!1)))},{cache:Bt(t.pluralRules),strategy:Ye.variadic})}}const o={},Pt=(e,t,r)=>r&&(t in o||(o[t]={}),e in o[t]||(o[t][e]=r),r),wt=(t,r)=>{if(null!=r){if(r in o&&t in o[r])return o[r][t];var n=$t(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!It(e))return null;e=function(e){return Mt[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Pt(t,r,i)}}};let Mt;const F=$({});function It(e){return e in Mt}function Nt(t,...r){delete o[t],F.update(e=>(e[t]=Y.all([e[t]||{},...r]),e))}e([F],([e])=>Object.keys(e)),F.subscribe(e=>Mt=e);const Ot={};function kt(e){return Ot[e]}function Lt(e){return null!=e&&$t(e).some(e=>{return null==(e=kt(e))?void 0:e.size})}const xt={};function Rt(e){if(!Lt(e))return e in xt?xt[e]:Promise.resolve();const t=$t(e).map(e=>{var t=kt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return xt[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Ot[t].delete(r),0===Ot[t].size&&delete Ot[t],e().then(e=>e.default||e)}));return r.then(e=>Nt(n,...e))}})).then(()=>{if(Lt(e))return Rt(e);delete xt[e]}),xt[e]}function s(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const h={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Ft=$(!1);let Ut;const Dt=$(null);function Gt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $t(e,t=h.fallbackLocale){e=Gt(e);return t?[...new Set([...e,...Gt(t)])]:e}function u(){return null!=Ut?Ut:void 0}Dt.subscribe(e=>{Ut=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const U=Object.assign(Object.assign({},Dt),{set:t=>{if(t&&function(e){if(null!=e){var t=$t(e);for(let e=0;e<t.length;e++){var r=t[e];if(It(r))return r}}}(t)&&Lt(t)){var r=h["loadingDelay"];let e;return"undefined"!=typeof window&&null!=u()&&r?e=window.setTimeout(()=>Ft.set(!0),r):Ft.set(!0),Rt(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Ft.set(!1)})}return Dt.set(t)}}),jt=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Vt=(e,t)=>{var r=h["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Vt("number",r)),new Intl.NumberFormat(t,e)}),Xt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Vt("date",r):0===Object.keys(e).length&&(e=Vt("date","short")),new Intl.DateTimeFormat(t,e)}),Kt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Vt("time",r):0===Object.keys(e).length&&(e=Vt("time","short")),new Intl.DateTimeFormat(t,e)}),qt=jt((e,t=u())=>new Ht(e,t,h.formats,{ignoreTag:h.ignoreTag})),Wt=e([U,F],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=u(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=wt(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=h).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let c=l;try{c=qt(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Yt=(e([U],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return Kt(Object.assign({locale:t},e))})(t).format(e)),e([U],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return Xt(Object.assign({locale:t},e))})(t).format(e)),e([U],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return zt(Object.assign({locale:t},e))})(t).format(e)),e([U,F],()=>(e,t=u())=>wt(e,t)),{en:{registerFormStep3:{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 20 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 Terms of Conditions.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"}},fr:{registerFormStep3:{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 20 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:{registerFormStep3:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",registerPostalCode:"Posta kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin farkındayım.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve Koşullar'ı okudum ve kabul ediyorum.",registerTermsConditionsError:"Lütfen devam etmeden önce Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"}},ro:{registerFormStep3:{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 20 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:{registerFormStep3:{registerBackButton:"Regresar",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:"Móvil:",registerMobileError:"El móvil debe tener mínimo 5 caracteres y máximo 20 caracteres.",registerUserConsents:"Quiero recibir ofertas y bonos exclusivos. Entiendo que puedo darme de baja en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Soy mayor de 18 años y he leído y acepto los Términos de Condiciones.",registerTermsConditionsError:"Por favor, acepte los Términos y Condiciones antes de continuar.",registerOpenAccount:"Abrir cuenta"}},pt:{registerFormStep3:{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 20 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"}}});function Zt(e,t,r){const n=e.slice();return n[57]=t[r],n}function Qt(e,t,r){const n=e.slice();return n[60]=t[r],n}function Jt(e,t,r){const n=e.slice();return n[63]=t[r],n}function er(e){let r,n;return{c(){d((r=t("script")).src,n="//www.google.com/recaptcha/api.js?render="+e[1])||ct(r,"src",n),r.async=!0,r.defer=!0},m(e,t){it(e,r,t)},p(e,t){2&t[0]&&!d(r.src,n="//www.google.com/recaptcha/api.js?render="+e[1])&&ct(r,"src",n)},d(e){e&&ot(r)}}}function tr(e){let r,n,i=e[23]("registerFormStep3.registerAddressError")+"";return{c(){r=t("p"),n=st(i),ct(r,"class","InvalidInput"),ct(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerAddressError")+"")&&ht(n,i)},d(e){e&&ot(r)}}}function rr(e){let r,n,i=e[23]("registerFormStep3.registerPostalCodeError")+"";return{c(){r=t("p"),n=st(i),ct(r,"class","InvalidInput"),ct(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerPostalCodeError")+"")&&ht(n,i)},d(e){e&&ot(r)}}}function nr(e){let r,n,i=e[23]("registerFormStep3.registerCityError")+"";return{c(){r=t("p"),n=st(i),ct(r,"class","InvalidInput"),ct(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerCityError")+"")&&ht(n,i)},d(e){e&&ot(r)}}}function ir(e){let r,n,i,o=e[63].Name+"";return{c(){r=t("option"),n=st(o),r.__value=i=e[63].Alpha2Code,r.value=r.__value},m(e,t){it(e,r,t),nt(r,n)},p(e,t){2048&t[0]&&o!==(o=e[63].Name+"")&&ht(n,o),2048&t[0]&&i!==(i=e[63].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&ot(r)}}}function or(e){let r,n,i,o=e[60].Name+"";return{c(){r=t("option"),n=st(o),r.__value=i=e[60].Alpha2Code,r.value=r.__value},m(e,t){it(e,r,t),nt(r,n)},p(e,t){8192&t[0]&&o!==(o=e[60].Name+"")&&ht(n,o),8192&t[0]&&i!==(i=e[60].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&ot(r)}}}function sr(e){let r,n,i,o=e[57].Prefix+"";return{c(){r=t("option"),n=st(o),r.__value=i=e[57].Prefix,r.value=r.__value},m(e,t){it(e,r,t),nt(r,n)},p(e,t){65536&t[0]&&o!==(o=e[57].Prefix+"")&&ht(n,o),65536&t[0]&&i!==(i=e[57].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&ot(r)}}}function ar(e){let r,n,i=e[23]("registerFormStep3.registerMobileError")+"";return{c(){r=t("p"),n=st(i),ct(r,"class","InvalidInput"),ct(r,"part","InvalidInput")},m(e,t){it(e,r,t),nt(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("registerFormStep3.registerMobileError")+"")&&ht(n,i)},d(e){e&&ot(r)}}}function lr(r){let n,i,o,s,a,l,c,h,u,p,d,f,m,g,b,y,E,v,C,A,F,T,S,_,B,H,U,P,D,w,M,I,N,G,O=r[23]("registerFormStep3.registerUserConsents")+"",k=r[23]("registerFormStep3.registerUserConsentsSMS")+"",L=r[23]("registerFormStep3.registerUserConsentsEmail")+"",x=r[23]("registerFormStep3.registerTermsConditions")+"",R=!r[21]&&cr(r);return{c(){n=t("div"),i=t("label"),o=st(O),s=at(),a=t("input"),l=at(),c=t("span"),h=at(),u=t("div"),p=t("label"),d=st(k),f=at(),m=t("input"),g=at(),b=t("span"),y=at(),E=t("label"),v=st(L),C=at(),A=t("input"),F=at(),T=t("span"),S=at(),_=t("div"),B=t("label"),H=st(x),U=at(),P=t("input"),D=at(),w=t("span"),M=at(),R&&R.c(),I=gt(),ct(a,"type","Checkbox"),a.checked=r[18],ct(c,"class","Checkmark"),ct(c,"part","Checkmark"),ct(i,"class","Offers"),ct(i,"part","Offers"),ct(m,"type","Checkbox"),m.checked=r[19],ct(b,"class","Checkmark"),ct(b,"part","Checkmark"),ct(p,"class","OffersMethod"),ct(A,"type","Checkbox"),A.checked=r[20],ct(T,"class","Checkmark"),ct(T,"part","Checkmark"),ct(E,"class","OffersMethod"),ct(E,"part","OffersMethod"),ct(u,"class","OffersMethodsWrapper"),ct(u,"part","OffersMethodsWrapper"),ct(n,"class","OffersContainer"),ct(n,"part","OffersContainer"),ct(P,"type","Checkbox"),P.checked=r[21],ct(w,"class","Checkmark"),ct(w,"part","Checkmark"),ct(B,"class","AgeConsent"),ct(B,"part","AgeConsent"),ct(_,"class","AgeContainer"),ct(_,"part","AgeContainer")},m(e,t){it(e,n,t),nt(n,i),nt(i,o),nt(i,s),nt(i,a),nt(i,l),nt(i,c),nt(n,h),nt(n,u),nt(u,p),nt(p,d),nt(p,f),nt(p,m),nt(p,g),nt(p,b),nt(u,y),nt(u,E),nt(E,v),nt(E,C),nt(E,A),nt(E,F),nt(E,T),it(e,S,t),it(e,_,t),nt(_,B),nt(B,H),nt(B,U),nt(B,P),nt(B,D),nt(B,w),it(e,M,t),R&&R.m(e,t),it(e,I,t),N||(G=[lt(a,"click",r[41]),lt(m,"click",r[42]),lt(A,"click",r[43]),lt(P,"click",r[44])],N=!0)},p(e,t){8388608&t[0]&&O!==(O=e[23]("registerFormStep3.registerUserConsents")+"")&&ht(o,O),262144&t[0]&&(a.checked=e[18]),8388608&t[0]&&k!==(k=e[23]("registerFormStep3.registerUserConsentsSMS")+"")&&ht(d,k),524288&t[0]&&(m.checked=e[19]),8388608&t[0]&&L!==(L=e[23]("registerFormStep3.registerUserConsentsEmail")+"")&&ht(v,L),1048576&t[0]&&(A.checked=e[20]),8388608&t[0]&&x!==(x=e[23]("registerFormStep3.registerTermsConditions")+"")&&ht(H,x),2097152&t[0]&&(P.checked=e[21]),e[21]?R&&(R.d(1),R=null):R?R.p(e,t):((R=cr(e)).c(),R.m(I.parentNode,I))},d(e){e&&ot(n),e&&ot(S),e&&ot(_),e&&ot(M),R&&R.d(e),e&&ot(I),N=!1,rt(G)}}}function cr(e){let r,n,i,o=e[23]("registerFormStep3.registerTermsConditionsError")+"";return{c(){r=t("div"),n=t("p"),i=st(o),ct(r,"class","NotificationContainer"),ct(r,"part","NotificationContainer")},m(e,t){it(e,r,t),nt(r,n),nt(n,i)},p(e,t){8388608&t[0]&&o!==(o=e[23]("registerFormStep3.registerTermsConditionsError")+"")&&ht(i,o)},d(e){e&&ot(r)}}}function hr(e){let r,n,i;return{c(){r=t("div"),n=t("p"),i=st(e[7]),ct(n,"class","RegisterError"),ct(n,"part","RegisterError")},m(e,t){it(e,r,t),nt(r,n),nt(n,i)},p(e,t){128&t[0]&&ht(i,e[7])},d(e){e&&ot(r)}}}function ur(r){let F,U,s,D,n,i,o,G,$,j,V,z,X,K,a,l,c,h,q,W,Y,Z,u,Q,e,J,ee,p,d,te,re,ne,ie,f,oe,se,ae,le,m,g,ce,he,ue,pe,b,de,fe,me,ge,y,E,be,ye,Ee,ve,v,Ce,C,Ae,Te,Se,_e,Be,A,He,T,Pe,we,Me,Ie,Ne,S,_,Oe,B,ke,Le,xe,Re,Fe,Ue,H,De,Ge,$e,je,Ve=r[23]("registerFormStep3.registerBackButton")+"",ze=r[23]("registerFormStep3.registerAddress")+"",Xe=r[23]("registerFormStep3.registerPostalCode")+"",Ke=r[23]("registerFormStep3.registerCity")+"",qe=r[23]("registerFormStep3.registerCountry")+"",We=r[23]("registerFormStep3.registerNationality")+"",Ye=r[23]("registerFormStep3.registerMobile")+"",Ze=r[23]("registerFormStep3.registerOpenAccount")+"",P=r[1]&&er(r),w=r[2]&&tr(r),M=r[3]&&rr(r),I=r[5]&&nr(r),Qe=r[11],N=[];for(let e=0;e<Qe.length;e+=1)N[e]=ir(Jt(r,Qe,e));let Je=r[13],O=[];for(let e=0;e<Je.length;e+=1)O[e]=or(Qt(r,Je,e));let et=r[16],k=[];for(let e=0;e<et.length;e+=1)k[e]=sr(Zt(r,et,e));let L=r[4]&&ar(r),x=r[0]&&lr(r),R=r[6]&&hr(r);return{c(){P&&P.c(),F=gt(),U=at(),s=t("div"),D=at(),n=t("div"),i=t("button"),o=mt("svg"),G=mt("defs"),$=mt("style"),j=st(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),V=mt("path"),z=at(),X=st(Ve),K=at(),a=t("div"),l=t("div"),c=t("div"),h=t("label"),q=st(ze),W=st(":"),(Y=t("span")).textContent="*",Z=at(),u=t("input"),Q=at(),w&&w.c(),ee=at(),p=t("div"),d=t("label"),te=st(Xe),re=st(":"),(ne=t("span")).textContent="*",ie=at(),f=t("input"),oe=at(),M&&M.c(),le=at(),m=t("div"),g=t("label"),ce=st(Ke),he=st(":"),(ue=t("span")).textContent="*",pe=at(),b=t("input"),de=at(),I&&I.c(),ge=at(),y=t("div"),E=t("label"),be=st(qe),ye=st(":"),(Ee=t("span")).textContent="*",ve=at(),v=t("select");for(let e=0;e<N.length;e+=1)N[e].c();Ce=at(),C=t("div"),Ae=t("label"),Te=st(We),Se=st(":"),(_e=t("span")).textContent="*",Be=at(),A=t("select");for(let e=0;e<O.length;e+=1)O[e].c();He=at(),T=t("div"),Pe=t("label"),we=st(Ye),Me=st(":"),(Ie=t("span")).textContent="*",Ne=at(),S=t("div"),_=t("select");for(let e=0;e<k.length;e+=1)k[e].c();Oe=at(),B=t("input"),ke=at(),L&&L.c(),Re=at(),x&&x.c(),Fe=at(),R&&R.c(),Ue=at(),H=t("button"),De=st(Ze),this.c=tt,ct(s,"class","g-recaptcha"),ct(s,"data-sitekey",r[1]),ct(V,"class","a"),ct(V,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),ct(V,"transform","translate(24 24) rotate(180)"),ct(o,"xmlns","http://www.w3.org/2000/svg"),ct(o,"viewBox","0 0 24 24"),ct(i,"class","BackButton"),ct(i,"part","BackButton"),ct(n,"class","RegisterFormHeader"),ct(n,"part","RegisterFormHeader"),ct(Y,"class","FormRequired"),ct(Y,"part","FormRequired"),ct(h,"for","Address"),ct(u,"type","text"),ct(u,"id","Address"),ct(c,"class",e="AddressContainer "+(r[2]?"InvalidField":"")),ct(c,"part",J="AddressContainer "+(r[2]?"InvalidField":"")),ct(ne,"class","FormRequired"),ct(ne,"part","FormRequired"),ct(d,"for","PostalCode"),ct(f,"type","text"),ct(f,"id","PostalCode"),ct(p,"class",se="PostalCodeContainer "+(r[3]?"InvalidField":"")),ct(p,"part",ae="PostalCodeContainer "+(r[3]?"InvalidField":"")),ct(l,"class","AddressPostalCodeContainer"),ct(l,"part","AddressPostalCodeContainer"),ct(ue,"class","FormRequired"),ct(ue,"part","FormRequired"),ct(g,"for","City"),ct(b,"type","text"),ct(b,"id","City"),ct(m,"class",fe="CityContainer "+(r[5]?"InvalidField":"")),ct(m,"part",me="CityContainer "+(r[5]?"InvalidField":"")),ct(Ee,"class","FormRequired"),ct(Ee,"part","FormRequired"),ct(E,"for","Country"),ct(v,"id","Country"),void 0===r[12]&&dt(()=>r[37].call(v)),ct(y,"class","CountryContainer"),ct(y,"part","CountryContainer"),ct(_e,"class","FormRequired"),ct(_e,"part","FormRequired"),ct(Ae,"for","Nationality"),ct(A,"id","Nationality"),void 0===r[14]&&dt(()=>r[38].call(A)),ct(C,"class","NationalityContainer"),ct(C,"part","NationalityContainer"),ct(Ie,"class","FormRequired"),ct(Ie,"part","FormRequired"),ct(Pe,"for","Mobile"),ct(_,"class","MobilePrefixSelected"),ct(_,"part","MobilePrefixSelected"),void 0===r[17]&&dt(()=>r[39].call(_)),ct(B,"type","text"),ct(B,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),ct(B,"id","Mobile"),ct(B,"class","MobileInput"),ct(B,"part","MobileInput"),ct(S,"class","MobileWrapper"),ct(S,"part","MobileWrapper"),ct(T,"class",Le="MobileContainer "+(r[4]?"InvalidField":"")),ct(T,"part",xe="MobileContainer "+(r[4]?"InvalidField":"")),ct(a,"class","RegisterFormContent"),ct(a,"part","RegisterFormContent"),ct(H,"class","RegisterStepNext"),ct(H,"part","RegisterStepNext"),H.disabled=Ge=!r[22]},m(e,t){P&&P.m(document.head,null),nt(document.head,F),it(e,U,t),it(e,s,t),it(e,D,t),it(e,n,t),nt(n,i),nt(i,o),nt(o,G),nt(G,$),nt($,j),nt(o,V),nt(i,z),nt(i,X),it(e,K,t),it(e,a,t),nt(a,l),nt(l,c),nt(c,h),nt(h,q),nt(h,W),nt(h,Y),nt(c,Z),nt(c,u),ut(u,r[8]),nt(c,Q),w&&w.m(c,null),nt(l,ee),nt(l,p),nt(p,d),nt(d,te),nt(d,re),nt(d,ne),nt(p,ie),nt(p,f),ut(f,r[9]),nt(p,oe),M&&M.m(p,null),nt(a,le),nt(a,m),nt(m,g),nt(g,ce),nt(g,he),nt(g,ue),nt(m,pe),nt(m,b),ut(b,r[10]),nt(m,de),I&&I.m(m,null),nt(a,ge),nt(a,y),nt(y,E),nt(E,be),nt(E,ye),nt(E,Ee),nt(y,ve),nt(y,v);for(let e=0;e<N.length;e+=1)N[e].m(v,null);pt(v,r[12]),nt(a,Ce),nt(a,C),nt(C,Ae),nt(Ae,Te),nt(Ae,Se),nt(Ae,_e),nt(C,Be),nt(C,A);for(let e=0;e<O.length;e+=1)O[e].m(A,null);pt(A,r[14]),nt(a,He),nt(a,T),nt(T,Pe),nt(Pe,we),nt(Pe,Me),nt(Pe,Ie),nt(T,Ne),nt(T,S),nt(S,_);for(let e=0;e<k.length;e+=1)k[e].m(_,null);pt(_,r[17]),nt(S,Oe),nt(S,B),ut(B,r[15]),nt(T,ke),L&&L.m(T,null),nt(a,Re),x&&x.m(a,null),it(e,Fe,t),R&&R.m(e,t),it(e,Ue,t),it(e,H,t),nt(H,De),$e||(je=[lt(i,"click",r[31]),lt(u,"input",r[34]),lt(u,"blur",r[24]),lt(f,"input",r[35]),lt(f,"blur",r[25]),lt(b,"input",r[36]),lt(b,"blur",r[26]),lt(v,"change",r[37]),lt(A,"change",r[38]),lt(_,"change",r[39]),lt(B,"input",r[40]),lt(B,"keyup",r[27]),lt(H,"click",r[30])],$e=!0)},p(t,r){if(t[1]?P?P.p(t,r):((P=er(t)).c(),P.m(F.parentNode,F)):P&&(P.d(1),P=null),2&r[0]&&ct(s,"data-sitekey",t[1]),8388608&r[0]&&Ve!==(Ve=t[23]("registerFormStep3.registerBackButton")+"")&&ht(X,Ve),8388608&r[0]&&ze!==(ze=t[23]("registerFormStep3.registerAddress")+"")&&ht(q,ze),256&r[0]&&u.value!==t[8]&&ut(u,t[8]),t[2]?w?w.p(t,r):((w=tr(t)).c(),w.m(c,null)):w&&(w.d(1),w=null),4&r[0]&&e!==(e="AddressContainer "+(t[2]?"InvalidField":""))&&ct(c,"class",e),4&r[0]&&J!==(J="AddressContainer "+(t[2]?"InvalidField":""))&&ct(c,"part",J),8388608&r[0]&&Xe!==(Xe=t[23]("registerFormStep3.registerPostalCode")+"")&&ht(te,Xe),512&r[0]&&f.value!==t[9]&&ut(f,t[9]),t[3]?M?M.p(t,r):((M=rr(t)).c(),M.m(p,null)):M&&(M.d(1),M=null),8&r[0]&&se!==(se="PostalCodeContainer "+(t[3]?"InvalidField":""))&&ct(p,"class",se),8&r[0]&&ae!==(ae="PostalCodeContainer "+(t[3]?"InvalidField":""))&&ct(p,"part",ae),8388608&r[0]&&Ke!==(Ke=t[23]("registerFormStep3.registerCity")+"")&&ht(ce,Ke),1024&r[0]&&b.value!==t[10]&&ut(b,t[10]),t[5]?I?I.p(t,r):((I=nr(t)).c(),I.m(m,null)):I&&(I.d(1),I=null),32&r[0]&&fe!==(fe="CityContainer "+(t[5]?"InvalidField":""))&&ct(m,"class",fe),32&r[0]&&me!==(me="CityContainer "+(t[5]?"InvalidField":""))&&ct(m,"part",me),8388608&r[0]&&qe!==(qe=t[23]("registerFormStep3.registerCountry")+"")&&ht(be,qe),2048&r[0]){let e;for(Qe=t[11],e=0;e<Qe.length;e+=1){var n=Jt(t,Qe,e);N[e]?N[e].p(n,r):(N[e]=ir(n),N[e].c(),N[e].m(v,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=Qe.length}if(6144&r[0]&&pt(v,t[12]),8388608&r[0]&&We!==(We=t[23]("registerFormStep3.registerNationality")+"")&&ht(Te,We),8192&r[0]){let e;for(Je=t[13],e=0;e<Je.length;e+=1){var i=Qt(t,Je,e);O[e]?O[e].p(i,r):(O[e]=or(i),O[e].c(),O[e].m(A,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=Je.length}if(24576&r[0]&&pt(A,t[14]),8388608&r[0]&&Ye!==(Ye=t[23]("registerFormStep3.registerMobile")+"")&&ht(we,Ye),65536&r[0]){let e;for(et=t[16],e=0;e<et.length;e+=1){var o=Zt(t,et,e);k[e]?k[e].p(o,r):(k[e]=sr(o),k[e].c(),k[e].m(_,null))}for(;e<k.length;e+=1)k[e].d(1);k.length=et.length}196608&r[0]&&pt(_,t[17]),32768&r[0]&&B.value!==t[15]&&ut(B,t[15]),t[4]?L?L.p(t,r):((L=ar(t)).c(),L.m(T,null)):L&&(L.d(1),L=null),16&r[0]&&Le!==(Le="MobileContainer "+(t[4]?"InvalidField":""))&&ct(T,"class",Le),16&r[0]&&xe!==(xe="MobileContainer "+(t[4]?"InvalidField":""))&&ct(T,"part",xe),t[0]?x?x.p(t,r):((x=lr(t)).c(),x.m(a,null)):x&&(x.d(1),x=null),t[6]?R?R.p(t,r):((R=hr(t)).c(),R.m(Ue.parentNode,Ue)):R&&(R.d(1),R=null),8388608&r[0]&&Ze!==(Ze=t[23]("registerFormStep3.registerOpenAccount")+"")&&ht(De,Ze),4194304&r[0]&&Ge!==(Ge=!t[22])&&(H.disabled=Ge)},i:tt,o:tt,d(e){P&&P.d(e),ot(F),e&&ot(U),e&&ot(s),e&&ot(D),e&&ot(n),e&&ot(K),e&&ot(a),w&&w.d(),M&&M.d(),I&&I.d(),ft(N,e),ft(O,e),ft(k,e),L&&L.d(),x&&x.d(),e&&ot(Fe),R&&R.d(e),e&&ot(Ue),e&&ot(H),$e=!1,rt(je)}}}function pr(t,e,r){let n;var i,o,s=Wt;t.$$.on_destroy.push(D(s,e=>r(23,n=e)));let a,l,c,h,{userconsentsexist:u=!1}=e,{endpoint:p=""}=e,{captchakey:d=""}=e,{lang:f=""}=e,m=!1,g="",b="",y="",E="",v=[],C="",A=[],T="",S="",_=[],B="",H=!1,P=!1,w=!1,M=!1,I=!1;({withLocale:i,translations:o}={withLocale:"en",translations:{}}),U.subscribe(e=>{null==e&&(F.set(o),U.set(i))}),Object.keys(Yt).forEach(e=>{Nt(e,Yt[e])});const N=()=>{r(22,I=!(a||l||h||c||m||u&&!M)),(b.length<=0||y.length<=0||E.length<=0||S.length<=0)&&r(22,I=!1)},O=e=>{switch(e){case"GeneralOffers":!1===H?(r(18,H=!0),r(19,P=!0),r(20,w=!0)):(r(18,H=!1),r(19,P=!1),r(20,w=!1));break;case"SmsOffers":!1===P?(r(19,P=!0),r(18,H=!0)):r(19,P=!1),k();break;case"EmailOffers":!1===w?(r(20,w=!0),r(18,H=!0)):r(20,w=!1),k()}},k=()=>{P||w||r(18,H=!1)},L=()=>{r(21,M=!1===M),N()},x=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,b=e.data.userData.address1),r(9,y=e.data.userData.postalCode),r(10,E=e.data.userData.city),r(12,C=e.data.userData.country),r(14,T=e.data.userData.nationality),r(17,B=e.data.userData.mobile.prefix),r(15,S=e.data.userData.mobile.number),r(19,P=e.data.userData.userConsents.additionalProp1),r(20,w=e.data.userData.userConsents.additionalProp2),r(21,M=e.data.userData.userConsents.additionalProp3),N();break;case"ShowRegistrationError":r(6,m=e.data.showError),r(7,g=e.data.error)}};return s=()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}),function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(s),t.$$set=e=>{"userconsentsexist"in e&&r(0,u=e.userconsentsexist),"endpoint"in e&&r(32,p=e.endpoint),"captchakey"in e&&r(1,d=e.captchakey),"lang"in e&&r(33,f=e.lang)},t.$$.update=()=>{var e;2&t.$$.dirty[1]&&p&&fetch(p+"/player/countries").then(e=>e.json()).then(e=>{r(11,v=e.countries),C||r(12,C=v[0].Alpha2Code),r(13,A=e.countries),T||r(14,T=A[0].Alpha2Code)}),2&t.$$.dirty[1]&&p&&fetch(p+"/player/phonecodes").then(e=>e.json()).then(e=>{r(16,_=e.phoneCodes),B||r(17,B=_[0].Prefix)}),4&t.$$.dirty[1]&&f&&(e=f,U.set(e))},[u,d,a,l,c,h,m,g,b,y,E,v,C,A,T,S,_,B,H,P,w,M,I,n,()=>{r(2,a=!(b&&b.length<=100)),N()},()=>{r(3,l=!(y&&y.length<=20)),N()},()=>{r(5,h=!(E&&E.length<=50)),N()},()=>{r(4,c=!(S&&5<=S.length&&S.length<=30)),N()},O,L,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(d,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:b,postalCode:y,city:E,countrySelected:C,nationalitySelected:T,mobilePrefixSelected:B,mobile:S,consentOffersSms:P,consentOffersEmail:w,consentTerms:M,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:b,postalCode:y,city:E,countrySelected:C,nationalitySelected:T,mobilePrefixSelected:B,mobile:S,consentOffersSms:P,consentOffersEmail:w,consentTerms:M};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},p,f,function(){b=this.value,r(8,b)},function(){y=this.value,r(9,y)},function(){E=this.value,r(10,E)},function(){C=G(this),r(12,C),r(11,v)},function(){T=G(this),r(14,T),r(13,A)},function(){B=G(this),r(17,B),r(16,_)},function(){S=this.value,r(15,S)},()=>O("GeneralOffers"),()=>O("SmsOffers"),()=>O("EmailOffers"),()=>L()]}class dr extends x{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size: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(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{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(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark: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 input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:var(--emfe-w-color-secondary, #FD2839);font-size:14px}.RegisterError{color:var(--emfe-w-color-secondary, #FD2839);font-size:16px;line-height:18px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}</style>",L(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},pr,ur,c,{userconsentsexist:0,endpoint:32,captchakey:1,lang:33},null,[-1,-1,-1]),e&&(e.target&&it(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["userconsentsexist","endpoint","captchakey","lang"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$$set({userconsentsexist:e}),b()}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$$set({endpoint:e}),b()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),b()}get lang(){return this.$$.ctx[33]}set lang(e){this.$$set({lang:e}),b()}}return customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",dr),dr});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function nt(){}function S(e){return e()}function H(){return Object.create(null)}function it(e){e.forEach(S)}function _(e){return"function"==typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let p,U;function d(e,t){return(p=p||document.createElement("a")).href=t,e===p.href}function $(e,...t){if(null==e)return nt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ot(e,t){e.appendChild(t)}function st(e,t,r){e.insertBefore(t,r||null)}function at(e){e.parentNode.removeChild(e)}function gt(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function t(e){return document.createElement(e)}function bt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function lt(e){return document.createTextNode(e)}function ct(){return lt(" ")}function yt(){return lt("")}function ht(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ut(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function pt(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function dt(e,t){e.value=null==t?"":t}function ft(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0}t.selectedIndex=-1}function j(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function g(e){U=e}const B=[],f=[],P=[],w=[],M=Promise.resolve();let O=!1;function mt(e){P.push(e)}const I=new Set;let N=0;function b(){const e=U;do{for(;N<B.length;){const e=B[N];N++,g(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),it(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(mt))}for(g(null),B.length=0,N=0;f.length;)f.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];I.has(n)||(I.add(n),n())}}while(P.length=0,B.length);for(;w.length;)w.pop()();O=!1,I.clear(),g(e)}const x=new Set;function k(n,e,t,r,i,o,s,a=[-1]){var l=U;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:nt,not_equal:i,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:H(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let h=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),h&&(r=e,-1===(e=n).$$.dirty[0]&&(B.push(e),O||(O=!0,M.then(b)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),h=!0,it(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){o=e.target;const nt=Array.from(o.childNodes);c.fragment&&c.fragment.l(nt),nt.forEach(at)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(x.delete(a),a.i(void 0));{var u=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:f,after_update:m}=u.$$;p&&p.m(s,t),r||mt(()=>{var e=d.map(S).filter(_);f?f.push(...e):it(e),u.$$.on_mount=[]}),m.forEach(mt)}b()}g(l)}let L;"function"==typeof HTMLElement&&(L=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(_);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){it(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(it(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=nt}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const r=[];function R(n,i=nt){let o;const s=new Set;function a(e){if(c(n,e)&&(n=e,o)){const e=!r.length;for(const e of s)e[1](),r.push(e,n);if(e){for(let e=0;e<r.length;e+=2)r[e][0](r[e+1]);r.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=nt){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||nt),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function e(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,h=a.length<2;return{subscribe:R(t,t=>{let r=!1;const n=[];let i=0,o=nt;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),h?t(e):o=_(e)?e:nt)},e=c.map((e,t)=>$(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){it(e),o()}}).subscribe}}function F(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===V));var t}var V="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function X(e,t,r){return e.concat(t).map(function(e){return z(e,r)})}function K(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function q(e,t){try{return t in e}catch(e){return!1}}function W(n,i,o){var s={};return o.isMergeableObject(n)&&K(n).forEach(function(e){s[e]=z(n[e],o)}),K(i).forEach(function(t){var e,r;(!q(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(q(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return a;e=e.customMerge(t);return"function"==typeof e?e:a}(o)(n[t],i[t],o):s[t]=z(i[t],o))}),s}function a(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject||F,r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):W(e,t,r):z(t,r)}a.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return a(e,t,r)},{});throw new Error("first argument should be an array")};var Y=a,Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,y,E,C=function(){return(C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function J(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function ee(e){return e.type===y.literal}function te(e){return e.type===y.number}function re(e){return e.type===y.date}function ne(e){return e.type===y.time}function ie(e){return e.type===y.select}function oe(e){return e.type===y.plural}function se(e){return e.type===y.tag}function ae(e){return e&&"object"==typeof e&&e.type===E.number}function le(e){return e&&"object"==typeof e&&e.type===E.dateTime}(n=m=m||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=y=y||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=E=E||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ce=/(?:[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;var he=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ue=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pe=/^(@+)?(\+|#+)?[rs]?$/g,de=/(\*)(0+)|(#+)(0+)|(0+)/g,fe=/^(0+)$/;function me(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(pe,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function ge(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 be(e){return ge(e)||{}}function ye(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=C(C(C({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return C(C({},e),be(t))},{}));continue;case"engineering":s=C(C(C({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return C(C({},e),be(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(de,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fe.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(ue.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ue,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=C(C({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=C(C({},s),me(o)))}else pe.test(i.stem)?s=C(C({},s),me(i.stem)):((o=ge(i.stem))&&(s=C(C({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!fe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=C(C({},s),n)))}return s}var Ee={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","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"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Ce=new RegExp("^".concat(n.source,"*")),ve=new RegExp("".concat(n.source,"*$"));function v(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,Ae=!!String.fromCodePoint,Te=!!Object.fromEntries,Se=!!String.prototype.codePointAt,He=!!String.prototype.trimStart,_e=!!String.prototype.trimEnd,Be=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pe=!0;try{Pe="a"===(null==(qe=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:qe[0])}catch(nt){Pe=!1}var we,Me,Oe=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ie=Ae?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ne=Te?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},xe=Se?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},ke=He?function(e){return e.trimStart()}:function(e){return e.replace(Ce,"")},Le=_e?function(e){return e.trimEnd()}:function(e){return e.replace(ve,"")};function Re(e,t){return new RegExp(e,t)}Me=Pe?(we=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return we.lastIndex=t,null!=(t=we.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=xe(e,t);if(void 0===i||De(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Ie.apply(void 0,n)};i.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ue(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ue(this.char()))return this.error(m.INVALID_TAG,v(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,v(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,v(r,this.clonePosition()))}return this.error(m.INVALID_TAG,v(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},i.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ie.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ie(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Me(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(d=Le(f.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:v(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(n)).err)return c;var h=v(n,this.clonePosition());if(l&&Oe(null==l?void 0:l.style,"::",0)){var u=ke(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:y.number,value:r,location:h,style:f.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ee[t||""]||Ee[r||""]||Ee["".concat(r,"-001")]||Ee["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(u,this.locale)),{type:E.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(ce,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}});return{val:{type:"date"===s?y.date:y.time,value:r,location:h,style:d},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,v(p,C({},p)));this.bumpSpace();var f,d=this.parseIdentifierIfPossible(),h=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),d=this.parseIdentifierIfPossible(),h=f.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((c=this.tryParseArgumentClose(n)).err)return c;u=v(n,this.clonePosition());return"select"===s?{val:{type:y.select,value:r,options:Ne(l.val),location:u},err:null}:{val:{type:y.plural,value:r,options:Ne(l.val),offset:h,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,v(o,a))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(he).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:E.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ye(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=v(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;o.push([a,{value:c.val,location:v(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=v(n,this.clonePosition());return i?Be(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=xe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},i.prototype.bumpIf=function(e){if(Oe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&De(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Fe=i;function i(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ue(e){return 97<=e&&e<=122||65<=e&&e<=90}function De(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ge(e,t){t=C({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Fe(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,ie(e)||oe(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else te(e)&&ae(e.style)||(re(e)||ne(e))&&le(e.style)?delete e.style.location:se(e)&&r(e.children)})}(e.val),e.val}function $e(e,t){var r=t&&t.cache?t.cache:We,n=t&&t.serializer?t.serializer:Xe;return(t&&t.strategy?t.strategy:function(e,t){return ze(e,this,1===e.length?je:Ve,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function je(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Ve(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function ze(e,t,r,n,i){return r.bind(t,e,n,i)}var Xe=function(){return JSON.stringify(arguments)};function Ke(){this.cache=Object.create(null)}Ke.prototype.get=function(e){return this.cache[e]},Ke.prototype.set=function(e,t){this.cache[e]=t};var A,qe,We={create:function(){return new Ke}},Ye={variadic:function(e,t){return ze(e,this,Ve,t.cache.create(),t.serializer)},monadic:function(e,t){return ze(e,this,je,t.cache.create(),t.serializer)}};(qe=A=A||{}).MISSING_VALUE="MISSING_VALUE",qe.INVALID_VALUE="INVALID_VALUE",qe.MISSING_INTL_API="MISSING_INTL_API";Q(St,et=Error),St.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ze,Qe,Je,et,tt=St,rt=(Q(Tt,Je=tt),Tt),Et=(Q(At,Qe=tt),At),Ct=(Q(vt,Ze=tt),vt);function vt(e,t){return Ze.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),A.MISSING_VALUE,t)||this}function At(e,t,r){return Qe.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),A.INVALID_VALUE,r)||this}function Tt(e,t,r,n){return Je.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),A.INVALID_VALUE,n)||this}function St(e,t,r){e=et.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ht(e,t,r,n,i,o,s){if(1===e.length&&ee(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var h=c[l];if(ee(h))a.push({type:T.literal,value:h.value});else if(h.type===y.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(t).format(o)});else{var u=h.value;if(!(i&&u in i))throw new Ct(u,s);u=i[u];if(h.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(re(h)){var p="string"==typeof h.style?n.date[h.style]:le(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(u)})}else if(ne(h))p="string"==typeof h.style?n.time[h.style]:le(h.style)?h.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(u)});else if(te(h))(p="string"==typeof h.style?n.number[h.style]:ae(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(u)});else{if(se(h)){var d=h.children,f=h.value,m=i[f];if("function"!=typeof m)throw new Et(f,"function",s);f=m(Ht(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(ie(h)){if(!(g=h.options[u]||h.options.other))throw new rt(h.value,u,Object.keys(h.options),s);a.push.apply(a,Ht(g.value,t,r,n,i))}else if(oe(h)){if(!(g=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new tt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',A.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),g=h.options[m]||h.options.other}if(!g)throw new rt(h.value,u,Object.keys(h.options),s);a.push.apply(a,Ht(g.value,t,r,n,i,u-(h.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function _t(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(l,"defaultLocale",{get:function(){return l.memoizedDefaultLocale||(l.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),l.memoizedDefaultLocale},enumerable:!1,configurable:!0}),l.memoizedDefaultLocale=null,l.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},l.__parse=Ge,l.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"}}};var Bt=l;function l(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Ht(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=l.resolveLocale(t),"string"==typeof e){if(this.message=e,!l.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=l.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=l.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?C(C(C({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=C(C({},r[t]),n[t]||{}),e},{})):r),e},C({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,J([void 0],t,!1)))},{cache:_t((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ye.variadic}),getDateTimeFormat:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,J([void 0],t,!1)))},{cache:_t(t.dateTime),strategy:Ye.variadic}),getPluralRules:$e(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,J([void 0],t,!1)))},{cache:_t(t.pluralRules),strategy:Ye.variadic})}}const o={},Pt=(e,t,r)=>r&&(t in o||(o[t]={}),e in o[t]||(o[t][e]=r),r),wt=(t,r)=>{if(null!=r){if(r in o&&t in o[r])return o[r][t];var n=$t(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Ot(e))return null;e=function(e){return Mt[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Pt(t,r,i)}}};let Mt;const D=R({});function Ot(e){return e in Mt}function It(t,...r){delete o[t],D.update(e=>(e[t]=Y.all([e[t]||{},...r]),e))}e([D],([e])=>Object.keys(e)),D.subscribe(e=>Mt=e);const Nt={};function xt(e){return Nt[e]}function kt(e){return null!=e&&$t(e).some(e=>{return null==(e=xt(e))?void 0:e.size})}const Lt={};function Rt(e){if(!kt(e))return e in Lt?Lt[e]:Promise.resolve();const t=$t(e).map(e=>{var t=xt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Lt[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Nt[t].delete(r),0===Nt[t].size&&delete Nt[t],e().then(e=>e.default||e)}));return r.then(e=>It(n,...e))}})).then(()=>{if(kt(e))return Rt(e);delete Lt[e]}),Lt[e]}function s(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const h={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Ft=R(!1);let Ut;const Dt=R(null);function Gt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $t(e,t=h.fallbackLocale){e=Gt(e);return t?[...new Set([...e,...Gt(t)])]:e}function u(){return null!=Ut?Ut:void 0}Dt.subscribe(e=>{Ut=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const G=Object.assign(Object.assign({},Dt),{set:t=>{if(t&&function(e){if(null!=e){var t=$t(e);for(let e=0;e<t.length;e++){var r=t[e];if(Ot(r))return r}}}(t)&&kt(t)){var r=h["loadingDelay"];let e;return"undefined"!=typeof window&&null!=u()&&r?e=window.setTimeout(()=>Ft.set(!0),r):Ft.set(!0),Rt(t).then(()=>{Dt.set(t)}).finally(()=>{clearTimeout(e),Ft.set(!1)})}return Dt.set(t)}}),jt=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Vt=(e,t)=>{var r=h["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Vt("number",r)),new Intl.NumberFormat(t,e)}),Xt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Vt("date",r):0===Object.keys(e).length&&(e=Vt("date","short")),new Intl.DateTimeFormat(t,e)}),Kt=jt(e=>{var{locale:t,format:r}=e,e=s(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Vt("time",r):0===Object.keys(e).length&&(e=Vt("time","short")),new Intl.DateTimeFormat(t,e)}),qt=jt((e,t=u())=>new Bt(e,t,h.formats,{ignoreTag:h.ignoreTag})),Wt=e([G,D],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=u(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=wt(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=h).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let c=l;try{c=qt(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Yt=(e([G],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return Kt(Object.assign({locale:t},e))})(t).format(e)),e([G],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return Xt(Object.assign({locale:t},e))})(t).format(e)),e([G],()=>(e,t)=>((e={})=>{var{locale:t=u()}=e,e=s(e,["locale"]);return zt(Object.assign({locale:t},e))})(t).format(e)),e([G,D],()=>(e,t=u())=>wt(e,t)),{en:{registerFormStep3:{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 20 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 Terms of Conditions.",registerTermsConditionsError:"Please accept the Terms and Conditions before proceeding.",registerOpenAccount:"Open Account"}},fr:{registerFormStep3:{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 20 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:{registerFormStep3:{registerBackButton:"Geri",registerAddress:"Adres",registerAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",registerPostalCode:"Posta kodu",registerPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerCity:"Şehir",registerCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",registerCountry:"Ülke",registerNationality:"Milliyet",registerMobile:"Mobil",registerMobileError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",registerUserConsents:"Özel teklifler ve bonuslar almak istiyorum. İstediğim zaman abonelikten çıkabileceğimin farkındayım.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-posta",registerTermsConditions:"En az 18 yaşındayım ve Koşullar'ı okudum ve kabul ediyorum.",registerTermsConditionsError:"Lütfen devam etmeden önce Şartlar ve Koşulları kabul edin.",registerOpenAccount:"Hesap Aç"}},ro:{registerFormStep3:{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 20 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:{registerFormStep3:{registerBackButton:"Regresar",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:"Móvil:",registerMobileError:"El móvil debe tener mínimo 5 caracteres y máximo 20 caracteres.",registerUserConsents:"Quiero recibir ofertas y bonos exclusivos. Entiendo que puedo darme de baja en cualquier momento.",registerUserConsentsSMS:"SMS",registerUserConsentsEmail:"E-mail",registerTermsConditions:"Soy mayor de 18 años y he leído y acepto los Términos de Condiciones.",registerTermsConditionsError:"Por favor, acepte los Términos y Condiciones antes de continuar.",registerOpenAccount:"Abrir cuenta"}},pt:{registerFormStep3:{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 20 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"}}});function Zt(e,t,r){const n=e.slice();return n[60]=t[r],n}function Qt(e,t,r){const n=e.slice();return n[63]=t[r],n}function Jt(e,t,r){const n=e.slice();return n[66]=t[r],n}function er(e){let r,n;return{c(){d((r=t("script")).src,n="//www.google.com/recaptcha/api.js?render="+e[1])||ut(r,"src",n),r.async=!0,r.defer=!0},m(e,t){st(e,r,t)},p(e,t){2&t[0]&&!d(r.src,n="//www.google.com/recaptcha/api.js?render="+e[1])&&ut(r,"src",n)},d(e){e&&at(r)}}}function tr(e){let r,n,i=e[24]("registerFormStep3.registerAddressError")+"";return{c(){r=t("p"),n=lt(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){st(e,r,t),ot(r,n)},p(e,t){16777216&t[0]&&i!==(i=e[24]("registerFormStep3.registerAddressError")+"")&&pt(n,i)},d(e){e&&at(r)}}}function rr(e){let r,n,i=e[24]("registerFormStep3.registerPostalCodeError")+"";return{c(){r=t("p"),n=lt(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){st(e,r,t),ot(r,n)},p(e,t){16777216&t[0]&&i!==(i=e[24]("registerFormStep3.registerPostalCodeError")+"")&&pt(n,i)},d(e){e&&at(r)}}}function nr(e){let r,n,i=e[24]("registerFormStep3.registerCityError")+"";return{c(){r=t("p"),n=lt(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){st(e,r,t),ot(r,n)},p(e,t){16777216&t[0]&&i!==(i=e[24]("registerFormStep3.registerCityError")+"")&&pt(n,i)},d(e){e&&at(r)}}}function ir(e){let r,n,i,o=e[66].Name+"";return{c(){r=t("option"),n=lt(o),r.__value=i=e[66].Alpha2Code,r.value=r.__value},m(e,t){st(e,r,t),ot(r,n)},p(e,t){4096&t[0]&&o!==(o=e[66].Name+"")&&pt(n,o),4096&t[0]&&i!==(i=e[66].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&at(r)}}}function or(e){let r,n,i,o=e[63].Name+"";return{c(){r=t("option"),n=lt(o),r.__value=i=e[63].Alpha2Code,r.value=r.__value},m(e,t){st(e,r,t),ot(r,n)},p(e,t){16384&t[0]&&o!==(o=e[63].Name+"")&&pt(n,o),16384&t[0]&&i!==(i=e[63].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&at(r)}}}function sr(e){let r,n,i,o=e[60].Prefix+"";return{c(){r=t("option"),n=lt(o),r.__value=i=e[60].Prefix,r.value=r.__value},m(e,t){st(e,r,t),ot(r,n)},p(e,t){131072&t[0]&&o!==(o=e[60].Prefix+"")&&pt(n,o),131072&t[0]&&i!==(i=e[60].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&at(r)}}}function ar(e){let r,n,i=e[24]("registerFormStep3.registerMobileError")+"";return{c(){r=t("p"),n=lt(i),ut(r,"class","InvalidInput"),ut(r,"part","InvalidInput")},m(e,t){st(e,r,t),ot(r,n)},p(e,t){16777216&t[0]&&i!==(i=e[24]("registerFormStep3.registerMobileError")+"")&&pt(n,i)},d(e){e&&at(r)}}}function lr(r){let n,i,o,s,a,l,c,h,u,p,d,f,m,g,b,y,E,C,v,A,F,T,S,H,_,B,U,P,D,w,M,O,I,G,N=r[24]("registerFormStep3.registerUserConsents")+"",x=r[24]("registerFormStep3.registerUserConsentsSMS")+"",k=r[24]("registerFormStep3.registerUserConsentsEmail")+"",L=r[24]("registerFormStep3.registerTermsConditions")+"",R=!r[22]&&cr(r);return{c(){n=t("div"),i=t("label"),o=lt(N),s=ct(),a=t("input"),l=ct(),c=t("span"),h=ct(),u=t("div"),p=t("label"),d=lt(x),f=ct(),m=t("input"),g=ct(),b=t("span"),y=ct(),E=t("label"),C=lt(k),v=ct(),A=t("input"),F=ct(),T=t("span"),S=ct(),H=t("div"),_=t("label"),B=lt(L),U=ct(),P=t("input"),D=ct(),w=t("span"),M=ct(),R&&R.c(),O=yt(),ut(a,"type","Checkbox"),a.checked=r[19],ut(c,"class","Checkmark"),ut(c,"part","Checkmark"),ut(i,"class","Offers"),ut(i,"part","Offers"),ut(m,"type","Checkbox"),m.checked=r[20],ut(b,"class","Checkmark"),ut(b,"part","Checkmark"),ut(p,"class","OffersMethod"),ut(A,"type","Checkbox"),A.checked=r[21],ut(T,"class","Checkmark"),ut(T,"part","Checkmark"),ut(E,"class","OffersMethod"),ut(E,"part","OffersMethod"),ut(u,"class","OffersMethodsWrapper"),ut(u,"part","OffersMethodsWrapper"),ut(n,"class","OffersContainer"),ut(n,"part","OffersContainer"),ut(P,"type","Checkbox"),P.checked=r[22],ut(w,"class","Checkmark"),ut(w,"part","Checkmark"),ut(_,"class","AgeConsent"),ut(_,"part","AgeConsent"),ut(H,"class","AgeContainer"),ut(H,"part","AgeContainer")},m(e,t){st(e,n,t),ot(n,i),ot(i,o),ot(i,s),ot(i,a),ot(i,l),ot(i,c),ot(n,h),ot(n,u),ot(u,p),ot(p,d),ot(p,f),ot(p,m),ot(p,g),ot(p,b),ot(u,y),ot(u,E),ot(E,C),ot(E,v),ot(E,A),ot(E,F),ot(E,T),st(e,S,t),st(e,H,t),ot(H,_),ot(_,B),ot(_,U),ot(_,P),ot(_,D),ot(_,w),st(e,M,t),R&&R.m(e,t),st(e,O,t),I||(G=[ht(a,"click",r[43]),ht(m,"click",r[44]),ht(A,"click",r[45]),ht(P,"click",r[46])],I=!0)},p(e,t){16777216&t[0]&&N!==(N=e[24]("registerFormStep3.registerUserConsents")+"")&&pt(o,N),524288&t[0]&&(a.checked=e[19]),16777216&t[0]&&x!==(x=e[24]("registerFormStep3.registerUserConsentsSMS")+"")&&pt(d,x),1048576&t[0]&&(m.checked=e[20]),16777216&t[0]&&k!==(k=e[24]("registerFormStep3.registerUserConsentsEmail")+"")&&pt(C,k),2097152&t[0]&&(A.checked=e[21]),16777216&t[0]&&L!==(L=e[24]("registerFormStep3.registerTermsConditions")+"")&&pt(B,L),4194304&t[0]&&(P.checked=e[22]),e[22]?R&&(R.d(1),R=null):R?R.p(e,t):((R=cr(e)).c(),R.m(O.parentNode,O))},d(e){e&&at(n),e&&at(S),e&&at(H),e&&at(M),R&&R.d(e),e&&at(O),I=!1,it(G)}}}function cr(e){let r,n,i,o=e[24]("registerFormStep3.registerTermsConditionsError")+"";return{c(){r=t("div"),n=t("p"),i=lt(o),ut(r,"class","NotificationContainer"),ut(r,"part","NotificationContainer")},m(e,t){st(e,r,t),ot(r,n),ot(n,i)},p(e,t){16777216&t[0]&&o!==(o=e[24]("registerFormStep3.registerTermsConditionsError")+"")&&pt(i,o)},d(e){e&&at(r)}}}function hr(e){let r,n,i;return{c(){r=t("div"),n=t("p"),i=lt(e[8]),ut(n,"class","RegisterError"),ut(n,"part","RegisterError")},m(e,t){st(e,r,t),ot(r,n),ot(n,i)},p(e,t){256&t[0]&&pt(i,e[8])},d(e){e&&at(r)}}}function ur(r){let F,U,s,D,n,i,o,G,$,j,V,z,X,K,a,l,c,h,q,W,Y,Z,u,Q,e,J,ee,p,d,te,re,ne,ie,f,oe,se,ae,le,m,g,ce,he,ue,pe,b,de,fe,me,ge,y,E,be,ye,Ee,Ce,C,ve,Ae,v,Te,Se,He,_e,Be,A,Pe,we,T,Me,Oe,Ie,Ne,xe,S,H,ke,_,Le,Re,Fe,Ue,De,Ge,B,$e,je,Ve,ze,Xe=r[24]("registerFormStep3.registerBackButton")+"",Ke=r[24]("registerFormStep3.registerAddress")+"",qe=r[24]("registerFormStep3.registerPostalCode")+"",We=r[24]("registerFormStep3.registerCity")+"",Ye=r[24]("registerFormStep3.registerCountry")+"",Ze=r[24]("registerFormStep3.registerNationality")+"",Qe=r[24]("registerFormStep3.registerMobile")+"",Je=r[24]("registerFormStep3.registerOpenAccount")+"",P=r[1]&&er(r),w=r[2]&&tr(r),M=r[3]&&rr(r),O=r[5]&&nr(r),et=r[12],I=[];for(let e=0;e<et.length;e+=1)I[e]=ir(Jt(r,et,e));let tt=r[14],N=[];for(let e=0;e<tt.length;e+=1)N[e]=or(Qt(r,tt,e));let rt=r[17],x=[];for(let e=0;e<rt.length;e+=1)x[e]=sr(Zt(r,rt,e));let k=r[4]&&ar(r),L=r[0]&&lr(r),R=r[7]&&hr(r);return{c(){P&&P.c(),F=yt(),U=ct(),s=t("div"),D=ct(),n=t("div"),i=t("button"),o=bt("svg"),G=bt("defs"),$=bt("style"),j=lt(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),V=bt("path"),z=ct(),X=lt(Xe),K=ct(),a=t("div"),l=t("div"),c=t("div"),h=t("label"),q=lt(Ke),W=lt(":"),(Y=t("span")).textContent="*",Z=ct(),u=t("input"),Q=ct(),w&&w.c(),ee=ct(),p=t("div"),d=t("label"),te=lt(qe),re=lt(":"),(ne=t("span")).textContent="*",ie=ct(),f=t("input"),oe=ct(),M&&M.c(),le=ct(),m=t("div"),g=t("label"),ce=lt(We),he=lt(":"),(ue=t("span")).textContent="*",pe=ct(),b=t("input"),de=ct(),O&&O.c(),ge=ct(),y=t("div"),E=t("label"),be=lt(Ye),ye=lt(":"),(Ee=t("span")).textContent="*",Ce=ct(),C=t("select");for(let e=0;e<I.length;e+=1)I[e].c();Ae=ct(),v=t("div"),Te=t("label"),Se=lt(Ze),He=lt(":"),(_e=t("span")).textContent="*",Be=ct(),A=t("select");for(let e=0;e<N.length;e+=1)N[e].c();we=ct(),T=t("div"),Me=t("label"),Oe=lt(Qe),Ie=lt(":"),(Ne=t("span")).textContent="*",xe=ct(),S=t("div"),H=t("select");for(let e=0;e<x.length;e+=1)x[e].c();ke=ct(),_=t("input"),Le=ct(),k&&k.c(),Ue=ct(),L&&L.c(),De=ct(),R&&R.c(),Ge=ct(),B=t("button"),$e=lt(Je),this.c=nt,ut(s,"class","g-recaptcha"),ut(s,"data-sitekey",r[1]),ut(V,"class","a"),ut(V,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),ut(V,"transform","translate(24 24) rotate(180)"),ut(o,"xmlns","http://www.w3.org/2000/svg"),ut(o,"viewBox","0 0 24 24"),ut(i,"class","BackButton"),ut(i,"part","BackButton"),ut(n,"class","RegisterFormHeader"),ut(n,"part","RegisterFormHeader"),ut(Y,"class","FormRequired"),ut(Y,"part","FormRequired"),ut(h,"for","Address"),ut(u,"type","text"),ut(u,"id","Address"),ut(c,"class",e="AddressContainer "+(r[2]?"InvalidField":"")+(0<=r[6]?.indexOf("address")?"Hidden":"")),ut(c,"part",J="AddressContainer "+(r[2]?"InvalidField":"")),ut(ne,"class","FormRequired"),ut(ne,"part","FormRequired"),ut(d,"for","PostalCode"),ut(f,"type","text"),ut(f,"id","PostalCode"),ut(p,"class",se="PostalCodeContainer "+(r[3]?"InvalidField":"")+(0<=r[6]?.indexOf("postalCode")?"Hidden":"")),ut(p,"part",ae="PostalCodeContainer "+(r[3]?"InvalidField":"")),ut(l,"class","AddressPostalCodeContainer"),ut(l,"part","AddressPostalCodeContainer"),ut(ue,"class","FormRequired"),ut(ue,"part","FormRequired"),ut(g,"for","City"),ut(b,"type","text"),ut(b,"id","City"),ut(m,"class",fe="CityContainer "+(r[5]?"InvalidField":"")+(0<=r[6]?.indexOf("city")?"Hidden":"")),ut(m,"part",me="CityContainer "+(r[5]?"InvalidField":"")),ut(Ee,"class","FormRequired"),ut(Ee,"part","FormRequired"),ut(E,"for","Country"),ut(C,"id","Country"),void 0===r[13]&&mt(()=>r[39].call(C)),ut(y,"class",ve="CountryContainer "+(0<=r[6]?.indexOf("country")?"Hidden":"")),ut(y,"part","CountryContainer"),ut(_e,"class","FormRequired"),ut(_e,"part","FormRequired"),ut(Te,"for","Nationality"),ut(A,"id","Nationality"),void 0===r[15]&&mt(()=>r[40].call(A)),ut(v,"class",Pe="NationalityContainer "+(0<=r[6]?.indexOf("nationality")?"Hidden":"")),ut(v,"part","NationalityContainer"),ut(Ne,"class","FormRequired"),ut(Ne,"part","FormRequired"),ut(Me,"for","Mobile"),ut(H,"class","MobilePrefixSelected"),ut(H,"part","MobilePrefixSelected"),void 0===r[18]&&mt(()=>r[41].call(H)),ut(_,"type","text"),ut(_,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),ut(_,"id","Mobile"),ut(_,"class","MobileInput"),ut(_,"part","MobileInput"),ut(S,"class","MobileWrapper"),ut(S,"part","MobileWrapper"),ut(T,"class",Re="MobileContainer "+(r[4]?"InvalidField":"")+(0<=r[6]?.indexOf("mobile")?"Hidden":"")),ut(T,"part",Fe="MobileContainer "+(r[4]?"InvalidField":"")),ut(a,"class","RegisterFormContent"),ut(a,"part","RegisterFormContent"),ut(B,"class","RegisterStepNext"),ut(B,"part","RegisterStepNext"),B.disabled=je=!r[23]},m(e,t){P&&P.m(document.head,null),ot(document.head,F),st(e,U,t),st(e,s,t),st(e,D,t),st(e,n,t),ot(n,i),ot(i,o),ot(o,G),ot(G,$),ot($,j),ot(o,V),ot(i,z),ot(i,X),st(e,K,t),st(e,a,t),ot(a,l),ot(l,c),ot(c,h),ot(h,q),ot(h,W),ot(h,Y),ot(c,Z),ot(c,u),dt(u,r[9]),ot(c,Q),w&&w.m(c,null),ot(l,ee),ot(l,p),ot(p,d),ot(d,te),ot(d,re),ot(d,ne),ot(p,ie),ot(p,f),dt(f,r[10]),ot(p,oe),M&&M.m(p,null),ot(a,le),ot(a,m),ot(m,g),ot(g,ce),ot(g,he),ot(g,ue),ot(m,pe),ot(m,b),dt(b,r[11]),ot(m,de),O&&O.m(m,null),ot(a,ge),ot(a,y),ot(y,E),ot(E,be),ot(E,ye),ot(E,Ee),ot(y,Ce),ot(y,C);for(let e=0;e<I.length;e+=1)I[e].m(C,null);ft(C,r[13]),ot(a,Ae),ot(a,v),ot(v,Te),ot(Te,Se),ot(Te,He),ot(Te,_e),ot(v,Be),ot(v,A);for(let e=0;e<N.length;e+=1)N[e].m(A,null);ft(A,r[15]),ot(a,we),ot(a,T),ot(T,Me),ot(Me,Oe),ot(Me,Ie),ot(Me,Ne),ot(T,xe),ot(T,S),ot(S,H);for(let e=0;e<x.length;e+=1)x[e].m(H,null);ft(H,r[18]),ot(S,ke),ot(S,_),dt(_,r[16]),ot(T,Le),k&&k.m(T,null),ot(a,Ue),L&&L.m(a,null),st(e,De,t),R&&R.m(e,t),st(e,Ge,t),st(e,B,t),ot(B,$e),Ve||(ze=[ht(i,"click",r[32]),ht(u,"input",r[36]),ht(u,"blur",r[25]),ht(f,"input",r[37]),ht(f,"blur",r[26]),ht(b,"input",r[38]),ht(b,"blur",r[27]),ht(C,"change",r[39]),ht(A,"change",r[40]),ht(H,"change",r[41]),ht(_,"input",r[42]),ht(_,"keyup",r[28]),ht(B,"click",r[31])],Ve=!0)},p(t,r){if(t[1]?P?P.p(t,r):((P=er(t)).c(),P.m(F.parentNode,F)):P&&(P.d(1),P=null),2&r[0]&&ut(s,"data-sitekey",t[1]),16777216&r[0]&&Xe!==(Xe=t[24]("registerFormStep3.registerBackButton")+"")&&pt(X,Xe),16777216&r[0]&&Ke!==(Ke=t[24]("registerFormStep3.registerAddress")+"")&&pt(q,Ke),512&r[0]&&u.value!==t[9]&&dt(u,t[9]),t[2]?w?w.p(t,r):((w=tr(t)).c(),w.m(c,null)):w&&(w.d(1),w=null),68&r[0]&&e!==(e="AddressContainer "+(t[2]?"InvalidField":"")+(0<=t[6]?.indexOf("address")?"Hidden":""))&&ut(c,"class",e),4&r[0]&&J!==(J="AddressContainer "+(t[2]?"InvalidField":""))&&ut(c,"part",J),16777216&r[0]&&qe!==(qe=t[24]("registerFormStep3.registerPostalCode")+"")&&pt(te,qe),1024&r[0]&&f.value!==t[10]&&dt(f,t[10]),t[3]?M?M.p(t,r):((M=rr(t)).c(),M.m(p,null)):M&&(M.d(1),M=null),72&r[0]&&se!==(se="PostalCodeContainer "+(t[3]?"InvalidField":"")+(0<=t[6]?.indexOf("postalCode")?"Hidden":""))&&ut(p,"class",se),8&r[0]&&ae!==(ae="PostalCodeContainer "+(t[3]?"InvalidField":""))&&ut(p,"part",ae),16777216&r[0]&&We!==(We=t[24]("registerFormStep3.registerCity")+"")&&pt(ce,We),2048&r[0]&&b.value!==t[11]&&dt(b,t[11]),t[5]?O?O.p(t,r):((O=nr(t)).c(),O.m(m,null)):O&&(O.d(1),O=null),96&r[0]&&fe!==(fe="CityContainer "+(t[5]?"InvalidField":"")+(0<=t[6]?.indexOf("city")?"Hidden":""))&&ut(m,"class",fe),32&r[0]&&me!==(me="CityContainer "+(t[5]?"InvalidField":""))&&ut(m,"part",me),16777216&r[0]&&Ye!==(Ye=t[24]("registerFormStep3.registerCountry")+"")&&pt(be,Ye),4096&r[0]){let e;for(et=t[12],e=0;e<et.length;e+=1){var n=Jt(t,et,e);I[e]?I[e].p(n,r):(I[e]=ir(n),I[e].c(),I[e].m(C,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=et.length}if(12288&r[0]&&ft(C,t[13]),64&r[0]&&ve!==(ve="CountryContainer "+(0<=t[6]?.indexOf("country")?"Hidden":""))&&ut(y,"class",ve),16777216&r[0]&&Ze!==(Ze=t[24]("registerFormStep3.registerNationality")+"")&&pt(Se,Ze),16384&r[0]){let e;for(tt=t[14],e=0;e<tt.length;e+=1){var i=Qt(t,tt,e);N[e]?N[e].p(i,r):(N[e]=or(i),N[e].c(),N[e].m(A,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=tt.length}if(49152&r[0]&&ft(A,t[15]),64&r[0]&&Pe!==(Pe="NationalityContainer "+(0<=t[6]?.indexOf("nationality")?"Hidden":""))&&ut(v,"class",Pe),16777216&r[0]&&Qe!==(Qe=t[24]("registerFormStep3.registerMobile")+"")&&pt(Oe,Qe),131072&r[0]){let e;for(rt=t[17],e=0;e<rt.length;e+=1){var o=Zt(t,rt,e);x[e]?x[e].p(o,r):(x[e]=sr(o),x[e].c(),x[e].m(H,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=rt.length}393216&r[0]&&ft(H,t[18]),65536&r[0]&&_.value!==t[16]&&dt(_,t[16]),t[4]?k?k.p(t,r):((k=ar(t)).c(),k.m(T,null)):k&&(k.d(1),k=null),80&r[0]&&Re!==(Re="MobileContainer "+(t[4]?"InvalidField":"")+(0<=t[6]?.indexOf("mobile")?"Hidden":""))&&ut(T,"class",Re),16&r[0]&&Fe!==(Fe="MobileContainer "+(t[4]?"InvalidField":""))&&ut(T,"part",Fe),t[0]?L?L.p(t,r):((L=lr(t)).c(),L.m(a,null)):L&&(L.d(1),L=null),t[7]?R?R.p(t,r):((R=hr(t)).c(),R.m(Ge.parentNode,Ge)):R&&(R.d(1),R=null),16777216&r[0]&&Je!==(Je=t[24]("registerFormStep3.registerOpenAccount")+"")&&pt($e,Je),8388608&r[0]&&je!==(je=!t[23])&&(B.disabled=je)},i:nt,o:nt,d(e){P&&P.d(e),at(F),e&&at(U),e&&at(s),e&&at(D),e&&at(n),e&&at(K),e&&at(a),w&&w.d(),M&&M.d(),O&&O.d(),gt(I,e),gt(N,e),gt(x,e),k&&k.d(),L&&L.d(),e&&at(De),R&&R.d(e),e&&at(Ge),e&&at(B),Ve=!1,it(ze)}}}function pr(t,e,r){let n;var i,o,s=Wt;t.$$.on_destroy.push($(s,e=>r(24,n=e)));let a,l,c,h,u,{userconsentsexist:p=!1}=e,{endpoint:d=""}=e,{captchakey:f=""}=e,{lang:m=""}=e,{disabledfields:g=""}=e,b=!1,y="",E="",C="",v="",A=[],T="",S=[],H="",_="",B=[],P="",w=!1,M=!1,O=!1,I=!1,N=!1;({withLocale:i,translations:o}={withLocale:"en",translations:{}}),G.subscribe(e=>{null==e&&(D.set(o),G.set(i))}),Object.keys(Yt).forEach(e=>{It(e,Yt[e])});const x=()=>{r(23,N=!(a||l||h||c||b||p&&!I)),(E.length<=0||C.length<=0||v.length<=0||_.length<=0)&&r(23,N=!1)},k=e=>{switch(e){case"GeneralOffers":!1===w?(r(19,w=!0),r(20,M=!0),r(21,O=!0)):(r(19,w=!1),r(20,M=!1),r(21,O=!1));break;case"SmsOffers":!1===M?(r(20,M=!0),r(19,w=!0)):r(20,M=!1),L();break;case"EmailOffers":!1===O?(r(21,O=!0),r(19,w=!0)):r(21,O=!1),L()}},L=()=>{M||O||r(19,w=!1)},R=()=>{r(22,I=!1===I),x()},F=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(9,E=e.data.userData.address1),r(10,C=e.data.userData.postalCode),r(11,v=e.data.userData.city),r(13,T=e.data.userData.country),r(15,H=e.data.userData.nationality),r(18,P=e.data.userData.mobile.prefix),r(16,_=e.data.userData.mobile.number),r(20,M=e.data.userData.userConsents.additionalProp1),r(21,O=e.data.userData.userConsents.additionalProp2),r(22,I=e.data.userData.userConsents.additionalProp3),x();break;case"ShowRegistrationError":r(7,b=e.data.showError),r(8,y=e.data.error)}};return s=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(U)return U;throw new Error("Function called outside component initialization")}().$$.on_mount.push(s),t.$$set=e=>{"userconsentsexist"in e&&r(0,p=e.userconsentsexist),"endpoint"in e&&r(33,d=e.endpoint),"captchakey"in e&&r(1,f=e.captchakey),"lang"in e&&r(34,m=e.lang),"disabledfields"in e&&r(35,g=e.disabledfields)},t.$$.update=()=>{var e;4&t.$$.dirty[1]&&d&&fetch(d+"/player/countries").then(e=>e.json()).then(e=>{fetch(d+"/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{r(12,A=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code))),T||r(13,T=A[0].Alpha2Code),r(14,S=e.countries),H||r(15,H=S[0].Alpha2Code)})}),4&t.$$.dirty[1]&&d&&fetch(d+"/player/phonecodes").then(e=>e.json()).then(e=>{r(17,B=e.phoneCodes),P||r(18,P=B[0].Prefix)}),8&t.$$.dirty[1]&&m&&(e=m,G.set(e)),16&t.$$.dirty[1]&&g&&(r(6,u=g.split(",")),0<=u.indexOf("address")&&(r(2,a=!1),r(9,E="dummy address")),0<=u.indexOf("postalCode")&&(r(3,l=!1),r(10,C="000000")),0<=u.indexOf("mobile")&&(r(4,c=!1),r(16,_="1234123412"),r(18,P="000")),0<=u.indexOf("city")&&(r(5,h=!1),r(11,v="dummy city")),0<=u.indexOf("country")&&r(13,T="dummy country"),0<=u.indexOf("nationality")&&r(15,H="dummy nationality"))},[p,f,a,l,c,h,u,b,y,E,C,v,A,T,S,H,_,B,P,w,M,O,I,N,n,()=>{r(2,a=!(E&&E.length<=100)),x()},()=>{r(3,l=!(C&&C.length<=20)),x()},()=>{r(5,h=!(v&&v.length<=50)),x()},()=>{r(4,c=!(_&&5<=_.length&&_.length<=30)),x()},k,R,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(f,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:E,postalCode:C,city:v,countrySelected:T,nationalitySelected:H,mobilePrefixSelected:P,mobile:_,consentOffersSms:M,consentOffersEmail:O,consentTerms:I,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:E,postalCode:C,city:v,countrySelected:T,nationalitySelected:H,mobilePrefixSelected:P,mobile:_,consentOffersSms:M,consentOffersEmail:O,consentTerms:I};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},d,m,g,function(){E=this.value,r(9,E)},function(){C=this.value,r(10,C)},function(){v=this.value,r(11,v)},function(){T=j(this),r(13,T),r(12,A)},function(){H=j(this),r(15,H),r(14,S)},function(){P=j(this),r(18,P),r(17,B)},function(){_=this.value,r(16,_)},()=>k("GeneralOffers"),()=>k("SmsOffers"),()=>k("EmailOffers"),()=>R()]}class dr extends L{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size: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(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.AddressContainer.Hidden,.PostalCodeContainer.Hidden,.CityContainer.Hidden,.CountryContainer.Hidden,.NationalityContainer.Hidden,.MobileContainer.Hidden{display:none}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{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(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5px 0 0 35px;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark: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 input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:var(--emfe-w-color-secondary, #FD2839);font-size:14px}.RegisterError{color:var(--emfe-w-color-secondary, #FD2839);font-size:16px;line-height:18px}.RegisterStepNext{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}</style>",k(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},pr,ur,c,{userconsentsexist:0,endpoint:33,captchakey:1,lang:34,disabledfields:35},null,[-1,-1,-1]),e&&(e.target&&st(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["userconsentsexist","endpoint","captchakey","lang","disabledfields"]}get userconsentsexist(){return this.$$.ctx[0]}set userconsentsexist(e){this.$$set({userconsentsexist:e}),b()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$$set({endpoint:e}),b()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),b()}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),b()}get disabledfields(){return this.$$.ctx[35]}set disabledfields(e){this.$$set({disabledfields:e}),b()}}return customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",dr),dr});
2
2
  //# sourceMappingURL=general-player-register-form-step3.js.map