@everymatrix/general-player-register-form-step1 1.12.1 → 1.12.3

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 at(){}function T(e){return e()}function H(){return Object.create(null)}function lt(e){e.forEach(T)}function A(e){return"function"==typeof e}function S(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function J(e,...t){if(null==e)return at;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ut(e,t){e.appendChild(t)}function ct(e,t,r){e.insertBefore(t,r||null)}function ht(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function pt(e){return document.createTextNode(e)}function ft(){return pt(" ")}function dt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function mt(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function gt(e,t){e.data!==(t=""+t)&&(e.data=t)}function bt(e,t){e.value=null==t?"":t}let Y;function p(e){Y=e}const f=[],q=[];let o=[];const C=[],_=Promise.resolve();let B=!1;function P(e){o.push(e)}const I=new Set;let i=0;function d(){if(0===i){const n=Y;do{try{for(;i<f.length;){const n=f[i];i++,p(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),lt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P))}}catch(n){throw f.length=0,i=0,n}for(p(null),f.length=0,i=0;q.length;)q.pop()();for(let e=0;e<o.length;e+=1){var r=o[e];I.has(r)||(I.add(r),r())}}while(o.length=0,f.length);for(;C.length;)C.pop()();B=!1,I.clear(),p(n)}}const L=new Set;function N(n,e,t,r,i,o,s,a=[-1]){var l=Y;p(n);const u=n.$$={fragment:null,ctx:[],props:o,update:at,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(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c)&&(r=e,-1===(e=n).$$.dirty[0]&&(f.push(e),B||(B=!0,_.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],u.update(),c=!0,lt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){o=e.target;const at=Array.from(o.childNodes);u.fragment&&u.fragment.l(at),at.forEach(ht)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(L.delete(a),a.i(void 0));var h=n,s=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:a}=h.$$;o&&o.m(s,t),r||P(()=>{var e=h.$$.on_mount.map(T).filter(A);h.$$.on_destroy?h.$$.on_destroy.push(...e):lt(e),h.$$.on_mount=[]}),a.forEach(P),d()}p(l)}let O;"function"==typeof HTMLElement&&(O=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(T).filter(A);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lt(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const n=[],i=[];o.forEach(e=>(-1===r.indexOf(e)?n:i).push(e)),i.forEach(e=>e()),o=n}lt(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=at}$on(e,t){if(!A(t))return at;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=at){let o;const s=new Set;function a(e){if(S(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=at){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||at),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function n(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:R(t,t=>{let r=!1;const n=[];let i=0,o=at;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=A(e)?e:at)},e=u.map((e,t)=>J(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){lt(e),o(),r=!1}}).subscribe}}function M(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===F);var t}var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function U(e,t){return!1!==t.clone&&t.isMergeableObject(e)?k(Array.isArray(e)?[]:{},e,t):e}function x(e,t,r){return e.concat(t).map(function(e){return U(e,r)})}function D(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function $(e,t){try{return t in e}catch(e){return!1}}function G(n,i,o){var s={};return o.isMergeableObject(n)&&D(n).forEach(function(e){s[e]=U(n[e],o)}),D(i).forEach(function(e){var t,r;(!$(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&($(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:k)(n[e],i[e],o):s[e]=U(i[e],o))}),s}function k(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||x,r.isMergeableObject=r.isMergeableObject||M,r.cloneUnlessOtherwiseSpecified=U;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):G(e,t,r):U(t,r)}k.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return k(e,t,r)},{});throw new Error("first argument should be an array")};var j=k,V=function(e,t){return(V=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 z(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}V(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,b,g,y=function(){return(y=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 Z(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 X(e){return e.type===b.literal}function K(e){return e.type===b.number}function Q(e){return e.type===b.date}function ee(e){return e.type===b.time}function te(e){return e.type===b.select}function re(e){return e.type===b.plural}function ne(e){return e.type===b.tag}function ie(e){return e&&"object"==typeof e&&e.type===g.number}function oe(e){return e&&"object"==typeof e&&e.type===g.dateTime}(s=m=m||{})[s.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",s[s.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",s[s.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",s[s.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",s[s.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",s[s.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",s[s.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",s[s.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",s[s.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",s[s.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",s[s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",s[s.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",s[s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",s[s.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",s[s.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",s[s.INVALID_TAG=23]="INVALID_TAG",s[s.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",s[s.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",s[s.UNCLOSED_TAG=27]="UNCLOSED_TAG",(s=b=b||{})[s.literal=0]="literal",s[s.argument=1]="argument",s[s.number=2]="number",s[s.date=3]="date",s[s.time=4]="time",s[s.select=5]="select",s[s.plural=6]="plural",s[s.pound=7]="pound",s[s.tag=8]="tag",(s=g=g||{})[s.number=0]="number",s[s.dateTime=1]="dateTime";var s=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,se=/(?:[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 ae=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ue=/^(@+)?(\+|#+)?[rs]?$/g,ce=/(\*)(0+)|(#+)(0+)|(0+)/g,he=/^(0+)$/;function pe(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ue,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 fe(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 de(e){return fe(e)||{}}function me(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=y(y(y({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return y(y({},e),de(t))},{}));continue;case"engineering":s=y(y(y({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return y(y({},e),de(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(ce,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(he.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(le.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(le,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=y(y({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=y(y({},s),pe(o)))}else ue.test(i.stem)?s=y(y({},s),pe(i.stem)):((o=fe(i.stem))&&(s=y(y({},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)),!he.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=y(y({},s),n)))}return s}var ge={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 be=new RegExp("^".concat(s.source,"*")),ye=new RegExp("".concat(s.source,"*$"));function E(e,t){return{start:e,end:t}}var s=!!String.prototype.startsWith,Ee=!!String.fromCodePoint,ve=!!Object.fromEntries,we=!!String.prototype.codePointAt,Te=!!String.prototype.trimStart,He=!!String.prototype.trimEnd,Ae=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Se=!0;try{Se="a"===(null==(ze=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:ze[0])}catch(at){Se=!1}var Ce,_e,Be=s?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Pe=Ee?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},Ie=ve?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},Le=we?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},Ne=Te?function(e){return e.trimStart()}:function(e){return e.replace(be,"")},Oe=He?function(e){return e.trimEnd()}:function(e){return e.replace(ye,"")};function Re(e,t){return new RegExp(e,t)}_e=Se?(Ce=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ce.lastIndex=t,null!=(t=Ce.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=Le(e,t);if(void 0===i||Ue(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 Pe.apply(void 0,n)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.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,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Fe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:n,err:null}},a.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:E(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Fe(this.char())?this.error(m.INVALID_TAG,E(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:E(n,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,E(n,this.clonePosition()))):this.error(m.INVALID_TAG,E(n,this.clonePosition()))},a.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())},a.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=E(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.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 Pe.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Pe(r))},a.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=_e(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},a.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,E(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Oe(h.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:E(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(f=E(n,this.clonePosition()),l&&Be(null==l?void 0:l.style,"::",0)?(d=Ne(l.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?h:{val:{type:b.number,value:r,location:f,style:h.val},err:null}:0===d.length?this.error(m.EXPECT_DATE_TIME_SKELETON,f):(c=d,this.locale&&(c=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),(ge[t||""]||ge[r||""]||ge["".concat(r,"-001")]||ge["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}(d,this.locale)),p={type:g.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(se,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):{}},{val:{type:"date"===s?b.date:b.time,value:r,location:f,style:p},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:f,style:null!=(d=null==l?void 0:l.style)?d:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(c,y({},c)));this.bumpSpace();var h,p=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),p=this.parseIdentifierIfPossible(),f=h.val}var d,l=this.tryParsePluralOrSelectOptions(e,s,t,p);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(d=E(n,this.clonePosition()),"select"===s?{val:{type:b.select,value:r,options:Ie(l.val),location:d},err:null}:{val:{type:b.plural,value:r,options:Ie(l.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:d},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,E(o,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.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,E(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}},a.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(ae).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:g.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?me(r):{}},err:null}},a.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.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();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},a.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=E(n,this.clonePosition());return i?Ae(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Le(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(Be(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.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)},a.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}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ue(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Me=a;function a(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 Fe(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ue(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xe(e,t){t=y({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Me(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,te(e)||re(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else K(e)&&ie(e.style)||(Q(e)||ee(e))&&oe(e.style)?delete e.style.location:ne(e)&&r(e.children)})}(e.val),e.val}function De(e,t){var r=t&&t.cache?t.cache:Ze,n=t&&t.serializer?t.serializer:je;return(t&&t.strategy?t.strategy:function(e,t){return ke(e,this,1===e.length?$e:Ge,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function $e(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 Ge(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 ke(e,t,r,n,i){return r.bind(t,e,n,i)}var je=function(){return JSON.stringify(arguments)};function Ve(){this.cache=Object.create(null)}Ve.prototype.get=function(e){return this.cache[e]},Ve.prototype.set=function(e,t){this.cache[e]=t};var v,ze,Ze={create:function(){return new Ve}},Xe={variadic:function(e,t){return ke(e,this,Ge,t.cache.create(),t.serializer)},monadic:function(e,t){return ke(e,this,$e,t.cache.create(),t.serializer)}};(ze=v=v||{}).MISSING_VALUE="MISSING_VALUE",ze.INVALID_VALUE="INVALID_VALUE",ze.MISSING_INTL_API="MISSING_INTL_API";z(ot,qe=Error),ot.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,Ke,Qe,Ye,qe,We=ot,Je=(z(it,Ye=We),it),et=(z(nt,Qe=We),nt),tt=(z(rt,Ke=We),rt);function rt(e,t){return Ke.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function nt(e,t,r){return Qe.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,r)||this}function it(e,t,r,n){return Ye.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),v.INVALID_VALUE,n)||this}function ot(e,t,r){e=qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function st(e,t,r,n,i,o,s){if(1===e.length&&X(e[0]))return[{type:w.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(X(c))a.push({type:w.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:w.literal,value:r.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new tt(h,s);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?w.literal:w.object,value:h});else if(Q(c)){var p="string"==typeof c.style?n.date[c.style]:oe(c.style)?c.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(ee(c))p="string"==typeof c.style?n.time[c.style]:oe(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(K(c))(p="string"==typeof c.style?n.number[c.style]:ie(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:w.literal,value:r.getNumberFormat(t,p).format(h)});else{if(ne(c)){var f=c.children,d=c.value,m=i[d];if("function"!=typeof m)throw new et(d,"function",s);d=m(st(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(te(c)){if(!(g=c.options[h]||c.options.other))throw new Je(c.value,h,Object.keys(c.options),s);a.push.apply(a,st(g.value,t,r,n,i))}else if(re(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new We('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new Je(c.value,h,Object.keys(c.options),s);a.push.apply(a,st(g.value,t,r,n,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===w.literal&&t.type===w.literal?r.value+=t.value:e.push(t),e},[])}function yt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(s=w=w||{})[s.literal=0]="literal",s[s.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=xe,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 Et=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){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===w.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return st(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])?y(y(y({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=y(y({},r[t]),n[t]||{}),e},{})):r),e},y({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Z([void 0],t,!1)))},{cache:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Xe.variadic}),getDateTimeFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Z([void 0],t,!1)))},{cache:yt(t.dateTime),strategy:Xe.variadic}),getPluralRules:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Z([void 0],t,!1)))},{cache:yt(t.pluralRules),strategy:Xe.variadic})}}const u={},vt=(e,t,r)=>r&&(t in u||(u[t]={}),e in u[t]||(u[t][e]=r),r),wt=(t,r)=>{if(null!=r){if(r in u&&t in u[r])return u[r][t];var n=Mt(r);for(let e=0;e<n.length;e++){var i=function(e,t){if(!At(e))return null;e=function(e){return Tt[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}}(n[e],t);if(i)return vt(t,r,i)}}};let Tt;const Ht=R({});function At(e){return e in Tt}function St(t,...r){delete u[t],Ht.update(e=>(e[t]=j.all([e[t]||{},...r]),e))}n([Ht],([e])=>Object.keys(e)),Ht.subscribe(e=>Tt=e);const Ct={};function _t(e){return Ct[e]}function Bt(e){return null!=e&&Mt(e).some(e=>{return null==(e=_t(e))?void 0:e.size})}const Pt={};function It(e){var t;return Bt(e)?(t=Mt(e).map(e=>{var t=_t(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Pt[e]=Promise.all(t.map(([e,t])=>{return n=e,Promise.all(t.map(e=>{return t=n,r=e,Ct[t].delete(r),0===Ct[t].size&&delete Ct[t],e().then(e=>e.default||e);var t,r})).then(e=>St(n,...e));var n})).then(()=>{if(Bt(e))return It(e);delete Pt[e]}),Pt[e]):e in Pt?Pt[e]:Promise.resolve()}const c={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 Lt=R(!1);let Nt;const Ot=R(null);function Rt(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Mt(e,t=c.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}function h(){return null!=Nt?Nt:void 0}Ot.subscribe(e=>{Nt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W={...Ot,set:t=>{if(t&&function(e){if(null!=e){var t=Mt(e);for(let e=0;e<t.length;e++){var r=t[e];if(At(r))return r}}}(t)&&Bt(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=h()&&r?e=window.setTimeout(()=>Lt.set(!0),r):Lt.set(!0),It(t).then(()=>{Ot.set(t)}).finally(()=>{clearTimeout(e),Lt.set(!1)})}return Ot.set(t)}},Ft=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Ut=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=Ft(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Ut("number",t)),new Intl.NumberFormat(e,r)}),Dt=Ft(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Ut("date",t):0===Object.keys(r).length&&(r=Ut("date","short")),new Intl.DateTimeFormat(e,r)}),$t=Ft(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Ut("time",t):0===Object.keys(r).length&&(r=Ut("time","short")),new Intl.DateTimeFormat(e,r)}),Gt=Ft((e,t=h())=>new Et(e,t,c.formats,{ignoreTag:c.ignoreTag})),kt=n([W,Ht],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=h(),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=c).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let u=l;try{u=Gt(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function jt(e,t){St(e,t)}n([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],$t({locale:t,...r}).format(e);var r}),n([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],Dt({locale:t,...r}).format(e);var r}),n([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],xt({locale:t,...r}).format(e);var r}),n([W,Ht],()=>(e,t=h())=>wt(e,t));const Vt={en:{registerFormStep1:"[object Object]"},"zh-hk":{registerFormStep1:"[object Object]"},fr:{registerFormStep1:"[object Object]"},tr:{registerFormStep1:"[object Object]"},ro:{registerFormStep1:"[object Object]"},es:{registerFormStep1:"[object Object]"},pt:{registerFormStep1:"[object Object]"}};function zt(e){let r,n,i=e[28]("registerEmailError")+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("registerEmailError")+"")&&gt(n,i)},d(e){e&&ht(r)}}}function Zt(e){let r,n,i=e[28]("registerUsernameError")+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("registerUsernameError")+"")&&gt(n,i)},d(e){e&&ht(r)}}}function Xt(r){let n,i,o,s,a,l,u,c,h;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),mt(l,"class","a"),mt(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),mt(l,"transform","translate(0)"),mt(u,"class","a"),mt(u,"cx","2.779"),mt(u,"cy","2.779"),mt(u,"r","2.779"),mt(u,"transform","translate(20.827 30.303)"),mt(a,"transform","translate(-14.185 -27.832)"),mt(n,"class","TogglePasswordVisibility"),mt(n,"part","TogglePasswordVisibility"),mt(n,"xmlns","http://www.w3.org/2000/svg"),mt(n,"width","18.843"),mt(n,"height","10.5"),mt(n,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,n,t),ut(n,i),ut(i,o),ut(o,s),ut(n,a),ut(a,l),ut(a,u),c||(h=dt(n,"click",r[59]),c=!0)},p:at,d(e){e&&ht(n),c=!1,h()}}}function Kt(r){let n,i,o,s,a,l,u,c,h,p,f,d,m,g,b;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),f=e("path"),d=e("path"),m=e("rect"),mt(l,"class","a"),mt(l,"cx","0.05"),mt(l,"cy","0.05"),mt(l,"r","0.05"),mt(l,"transform","translate(121.017 31.148)"),mt(c,"class","a"),mt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),mt(c,"transform","translate(-142.164 -39.123)"),mt(h,"class","a"),mt(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),mt(h,"transform","translate(-136.413 -42.068)"),mt(u,"transform","translate(117.499 27.37)"),mt(f,"class","a"),mt(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),mt(f,"transform","translate(-110.856 -33.157)"),mt(d,"class","a"),mt(d,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),mt(d,"transform","translate(-130.743 -29.617)"),mt(p,"transform","translate(110.856 24.899)"),mt(m,"class","a"),mt(m,"width","0.972"),mt(m,"height","15.861"),mt(m,"rx","0.486"),mt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),mt(a,"transform","translate(-110.856 -23.242)"),mt(n,"class","TogglePasswordVisibility"),mt(n,"part","TogglePasswordVisibility"),mt(n,"xmlns","http://www.w3.org/2000/svg"),mt(n,"width","18.844"),mt(n,"height","12.887"),mt(n,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,n,t),ut(n,i),ut(i,o),ut(o,s),ut(n,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,f),ut(p,d),ut(a,m),g||(b=dt(n,"click",r[58]),g=!0)},p:at,d(e){e&&ht(n),g=!1,b()}}}function Qt(e){let r,n,i=e[28]("registerPasswordError")+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("registerPasswordError")+"")&&gt(n,i)},d(e){e&&ht(r)}}}function Yt(e){let r,n,i=e[28]("registerSimplePasswordError")+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("registerSimplePasswordError")+"")&&gt(n,i)},d(e){e&&ht(r)}}}function qt(r){let n,i,o,s,a,l,u,c,h;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),mt(l,"class","a"),mt(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),mt(l,"transform","translate(0)"),mt(u,"class","a"),mt(u,"cx","2.779"),mt(u,"cy","2.779"),mt(u,"r","2.779"),mt(u,"transform","translate(20.827 30.303)"),mt(a,"transform","translate(-14.185 -27.832)"),mt(n,"class","ToggleConfirmPasswordVisibility"),mt(n,"part","ToggleConfirmPasswordVisibility"),mt(n,"xmlns","http://www.w3.org/2000/svg"),mt(n,"width","18.843"),mt(n,"height","10.5"),mt(n,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,n,t),ut(n,i),ut(i,o),ut(o,s),ut(n,a),ut(a,l),ut(a,u),c||(h=dt(n,"click",r[65]),c=!0)},p:at,d(e){e&&ht(n),c=!1,h()}}}function Wt(r){let n,i,o,s,a,l,u,c,h,p,f,d,m,g,b;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),f=e("path"),d=e("path"),m=e("rect"),mt(l,"class","a"),mt(l,"cx","0.05"),mt(l,"cy","0.05"),mt(l,"r","0.05"),mt(l,"transform","translate(121.017 31.148)"),mt(c,"class","a"),mt(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),mt(c,"transform","translate(-142.164 -39.123)"),mt(h,"class","a"),mt(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),mt(h,"transform","translate(-136.413 -42.068)"),mt(u,"transform","translate(117.499 27.37)"),mt(f,"class","a"),mt(f,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),mt(f,"transform","translate(-110.856 -33.157)"),mt(d,"class","a"),mt(d,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),mt(d,"transform","translate(-130.743 -29.617)"),mt(p,"transform","translate(110.856 24.899)"),mt(m,"class","a"),mt(m,"width","0.972"),mt(m,"height","15.861"),mt(m,"rx","0.486"),mt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),mt(a,"transform","translate(-110.856 -23.242)"),mt(n,"class","ToggleConfirmPasswordVisibility"),mt(n,"part","ToggleConfirmPasswordVisibility"),mt(n,"xmlns","http://www.w3.org/2000/svg"),mt(n,"width","18.844"),mt(n,"height","12.887"),mt(n,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,n,t),ut(n,i),ut(i,o),ut(o,s),ut(n,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,f),ut(p,d),ut(a,m),g||(b=dt(n,"click",r[64]),g=!0)},p:at,d(e){e&&ht(n),g=!1,b()}}}function Jt(e){let r,n,i=e[28]("registerConfirmPasswordError")+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("registerConfirmPasswordError")+"")&&gt(n,i)},d(e){e&&ht(r)}}}function er(e){let r,n,i=("true"==e[2]?e[28]("registerFormStep1.registerSecurityQuestionError2"):e[28]("registerFormStep1.registerSecurityQuestionError"))+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435460&t[0]&&i!==(i=("true"==e[2]?e[28]("registerFormStep1.registerSecurityQuestionError2"):e[28]("registerFormStep1.registerSecurityQuestionError"))+"")&&gt(n,i)},d(e){e&&ht(r)}}}function tr(e){let r,n,i=("true"==e[2]?e[28]("registerFormStep1.registerSecurityAnswerError2"):e[28]("registerFormStep1.registerSecurityAnswerError"))+"";return{c(){r=t("p"),n=pt(i),mt(r,"class","InvalidInput"),mt(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,n)},p(e,t){268435460&t[0]&&i!==(i=("true"==e[2]?e[28]("registerFormStep1.registerSecurityAnswerError2"):e[28]("registerFormStep1.registerSecurityAnswerError"))+"")&&gt(n,i)},d(e){e&&ht(r)}}}function rr(r){let n,i,o,x,D,s,$,G,a,k,j,l,u,c,V,z,h,Z,p,X,K,Q,Y,f,d,q,W,J,ee,m,te,re,ne,ie,oe,g,b,se,ae,le,ue,y,ce,he,pe,fe,de,me,ge,be,E,v,ye,Ee,ve,we,w,Te,He,Ae,Se,Ce,T,H,_e,Be,Pe,Ie,A,Le,Ne,Oe,Re,S,C,Me,Fe,Ue,xe,_,De,$e,Ge,ke,B,je,Ve,ze,Ze,Xe=r[28]("registerTitle")+"",Ke=r[28]("registerSubtitle")+"",Qe=r[28]("registerSubtitleLogin")+"",Ye=r[28]("registerEmail")+"",qe=r[28]("registerUsername")+"",We=r[28]("registerPassword")+"",Je=r[28]("registerConfirmPassword")+"",et=("true"==r[2]?r[28]("registerFormStep1.registerSecurityQuestion2"):r[28]("registerFormStep1.registerSecurityQuestion"))+"",tt=("true"==r[2]?r[28]("registerFormStep1.registerSecurityAnswer2"):r[28]("registerFormStep1.registerSecurityAnswer"))+"",rt=r[28]("registerNext")+"",P=r[4]&&zt(r),I=r[5]&&Zt(r);function nt(e){return e[23]?Kt:Xt}let it=nt(r),L=it(r),N=r[6]&&"true"!==r[0]&&Qt(r),O=r[6]&&"true"===r[0]&&Yt(r);function ot(e){return e[24]?Wt:qt}let st=ot(r),R=st(r),M=r[7]&&Jt(r),F=r[8]&&er(r),U=r[9]&&tr(r);return{c(){n=t("div"),i=t("div"),o=t("h2"),x=pt(Xe),D=ft(),s=t("p"),$=pt(Ke),G=ft(),a=t("span"),k=pt(Qe),j=ft(),l=t("form"),u=t("div"),c=t("label"),V=pt(Ye),z=pt(":"),(h=t("span")).textContent="*",Z=ft(),p=t("input"),X=ft(),P&&P.c(),Y=ft(),f=t("div"),d=t("label"),q=pt(qe),W=pt(":"),(J=t("span")).textContent="*",ee=ft(),m=t("input"),re=ft(),I&&I.c(),oe=ft(),g=t("div"),b=t("label"),se=pt(We),ae=pt(":"),(le=t("span")).textContent="*",ue=ft(),y=t("input"),he=ft(),L.c(),pe=ft(),N&&N.c(),fe=ft(),O&&O.c(),be=ft(),E=t("div"),v=t("label"),ye=pt(Je),Ee=pt(":"),(ve=t("span")).textContent="*",we=ft(),w=t("input"),Te=ft(),R.c(),He=ft(),M&&M.c(),Ce=ft(),T=t("div"),H=t("label"),_e=pt(et),Be=pt(":"),(Pe=t("span")).textContent="*",Ie=ft(),A=t("input"),Le=ft(),F&&F.c(),Re=ft(),S=t("div"),C=t("label"),Me=pt(tt),Fe=pt(":"),(Ue=t("span")).textContent="*",xe=ft(),_=t("input"),De=ft(),U&&U.c(),ke=ft(),B=t("button"),je=pt(rt),this.c=at,mt(o,"class","RegisterFormTitle"),mt(o,"part","RegisterFormTitle"),mt(a,"class","FormLoginCallToAction"),mt(s,"class","RegisterFormSubtitle"),mt(s,"part","RegisterFormSubtitle"),mt(i,"class","RegisterFormHeader"),mt(i,"part","RegisterFormHeader"),mt(h,"class","FormRequired"),mt(h,"part","FormRequired"),mt(c,"for","Email"),mt(p,"type","text"),mt(p,"id","Email"),mt(u,"class",K="EmailContainer "+(r[4]&&!r[10]?"InvalidField":"")+(0<=r[16]?.indexOf("email")?"Hidden":"")),mt(u,"part",Q="EmailContainer "+(r[4]?"InvalidField":"")),mt(J,"class","FormRequired"),mt(J,"part","FormRequired"),mt(d,"for","UserName"),mt(m,"type","text"),mt(m,"id","UserName"),mt(m,"autocomplete",te=r[1]?"username":"off"),mt(f,"class",ne="UserContainer "+(r[5]&&!r[11]?"InvalidField":"")+(0<=r[16]?.indexOf("username")?"Hidden":"")),mt(f,"part",ie="UserContainer "+(r[5]?"InvalidField":"")),mt(le,"class","FormRequired"),mt(le,"part","FormRequired"),mt(b,"for","Password"),mt(y,"name","new-password"),mt(y,"type","password"),mt(y,"id","new-password"),mt(y,"autocomplete",ce=r[1]?"new-password":"off"),mt(y,"aria-describedby","password-constraints"),mt(g,"class",de="PasswordContainer "+(r[6]&&!r[12]?"InvalidField":"")+(0<=r[16]?.indexOf("password")?"Hidden":"")),mt(g,"part",me="PasswordContainer "+(r[6]?"InvalidField":"")),g.hidden=ge=0<=r[16]?.indexOf("password"),mt(ve,"class","FormRequired"),mt(ve,"part","FormRequired"),mt(v,"for","ConfirmPassword"),mt(w,"type","password"),mt(w,"id","ConfirmPassword"),mt(E,"class",Ae="ConfirmPasswordContainer "+(r[7]&&!r[13]?"InvalidField":"")+(0<=r[16]?.indexOf("confirmPassword")?"Hidden":"")),mt(E,"part",Se="ConfirmPasswordContainer "+(r[7]?"InvalidField":"")),mt(Pe,"class","FormRequired"),mt(Pe,"part","FormRequired"),mt(H,"for","SecurityQuestion"),mt(A,"type","text"),mt(A,"id","SecurityQuestion"),mt(T,"class",Ne="SecurityQuestionContainer "+(r[8]&&!r[14]?"InvalidField":"")+(0<=r[16]?.indexOf("securityQuestion")?"Hidden":"")),mt(T,"part",Oe="SecurityQuestionContainer "+(r[8]?"InvalidField":"")),mt(Ue,"class","FormRequired"),mt(Ue,"part","FormRequired"),mt(C,"for","SecurityAnswer"),mt(_,"type","text"),mt(_,"id","SecurityAnswer"),mt(S,"class",$e="SecurityAnswerContainer "+(r[9]&&!r[15]?"InvalidField":"")+(0<=r[16]?.indexOf("securityAnswer")?"Hidden":"")),mt(S,"part",Ge="SecurityAnswerContainer "+(r[9]?"InvalidField":"")),mt(B,"class","RegisterStepNext"),mt(B,"part","RegisterStepNext"),B.disabled=Ve=!r[27],mt(l,"class","RegisterFormContent"),mt(l,"part","RegisterFormContent")},m(e,t){ct(e,n,t),ut(n,i),ut(i,o),ut(o,x),ut(i,D),ut(i,s),ut(s,$),ut(s,G),ut(s,a),ut(a,k),ut(n,j),ut(n,l),ut(l,u),ut(u,c),ut(c,V),ut(c,z),ut(c,h),ut(u,Z),ut(u,p),bt(p,r[18]),ut(u,X),P&&P.m(u,null),ut(l,Y),ut(l,f),ut(f,d),ut(d,q),ut(d,W),ut(d,J),ut(f,ee),ut(f,m),bt(m,r[17]),ut(f,re),I&&I.m(f,null),ut(l,oe),ut(l,g),ut(g,b),ut(b,se),ut(b,ae),ut(b,le),ut(g,ue),ut(g,y),bt(y,r[19]),r[57](y),ut(g,he),L.m(g,null),ut(g,pe),N&&N.m(g,null),ut(g,fe),O&&O.m(g,null),ut(l,be),ut(l,E),ut(E,v),ut(v,ye),ut(v,Ee),ut(v,ve),ut(E,we),ut(E,w),bt(w,r[20]),r[63](w),ut(E,Te),R.m(E,null),ut(E,He),M&&M.m(E,null),ut(l,Ce),ut(l,T),ut(T,H),ut(H,_e),ut(H,Be),ut(H,Pe),ut(T,Ie),ut(T,A),bt(A,r[21]),ut(T,Le),F&&F.m(T,null),ut(l,Re),ut(l,S),ut(S,C),ut(C,Me),ut(C,Fe),ut(C,Ue),ut(S,xe),ut(S,_),bt(_,r[22]),ut(S,De),U&&U.m(S,null),ut(l,ke),ut(l,B),ut(B,je),r[73](n),ze||(Ze=[dt(a,"click",r[47]),dt(p,"input",r[48]),dt(p,"keyup",r[30]),dt(p,"focus",r[49]),dt(p,"blur",r[50]),dt(m,"input",r[51]),dt(m,"keyup",r[31]),dt(m,"focus",r[52]),dt(m,"blur",r[53]),dt(y,"input",r[54]),dt(y,"keyup",r[36]),dt(y,"focus",r[55]),dt(y,"blur",r[56]),dt(w,"input",r[60]),dt(w,"keyup",r[37]),dt(w,"focus",r[61]),dt(w,"blur",r[62]),dt(A,"input",r[66]),dt(A,"keyup",r[38]),dt(A,"focus",r[67]),dt(A,"blur",r[68]),dt(_,"input",r[69]),dt(_,"keyup",r[39]),dt(_,"focus",r[70]),dt(_,"blur",r[71]),dt(B,"click",r[72])],ze=!0)},p(e,t){268435456&t[0]&&Xe!==(Xe=e[28]("registerTitle")+"")&&gt(x,Xe),268435456&t[0]&&Ke!==(Ke=e[28]("registerSubtitle")+"")&&gt($,Ke),268435456&t[0]&&Qe!==(Qe=e[28]("registerSubtitleLogin")+"")&&gt(k,Qe),268435456&t[0]&&Ye!==(Ye=e[28]("registerEmail")+"")&&gt(V,Ye),262144&t[0]&&p.value!==e[18]&&bt(p,e[18]),e[4]?P?P.p(e,t):((P=zt(e)).c(),P.m(u,null)):P&&(P.d(1),P=null),66576&t[0]&&K!==(K="EmailContainer "+(e[4]&&!e[10]?"InvalidField":"")+(0<=e[16]?.indexOf("email")?"Hidden":""))&&mt(u,"class",K),16&t[0]&&Q!==(Q="EmailContainer "+(e[4]?"InvalidField":""))&&mt(u,"part",Q),268435456&t[0]&&qe!==(qe=e[28]("registerUsername")+"")&&gt(q,qe),2&t[0]&&te!==(te=e[1]?"username":"off")&&mt(m,"autocomplete",te),131072&t[0]&&m.value!==e[17]&&bt(m,e[17]),e[5]?I?I.p(e,t):((I=Zt(e)).c(),I.m(f,null)):I&&(I.d(1),I=null),67616&t[0]&&ne!==(ne="UserContainer "+(e[5]&&!e[11]?"InvalidField":"")+(0<=e[16]?.indexOf("username")?"Hidden":""))&&mt(f,"class",ne),32&t[0]&&ie!==(ie="UserContainer "+(e[5]?"InvalidField":""))&&mt(f,"part",ie),268435456&t[0]&&We!==(We=e[28]("registerPassword")+"")&&gt(se,We),2&t[0]&&ce!==(ce=e[1]?"new-password":"off")&&mt(y,"autocomplete",ce),524288&t[0]&&y.value!==e[19]&&bt(y,e[19]),it===(it=nt(e))&&L?L.p(e,t):(L.d(1),(L=it(e))&&(L.c(),L.m(g,pe))),e[6]&&"true"!==e[0]?N?N.p(e,t):((N=Qt(e)).c(),N.m(g,fe)):N&&(N.d(1),N=null),e[6]&&"true"===e[0]?O?O.p(e,t):((O=Yt(e)).c(),O.m(g,null)):O&&(O.d(1),O=null),69696&t[0]&&de!==(de="PasswordContainer "+(e[6]&&!e[12]?"InvalidField":"")+(0<=e[16]?.indexOf("password")?"Hidden":""))&&mt(g,"class",de),64&t[0]&&me!==(me="PasswordContainer "+(e[6]?"InvalidField":""))&&mt(g,"part",me),65536&t[0]&&ge!==(ge=0<=e[16]?.indexOf("password"))&&(g.hidden=ge),268435456&t[0]&&Je!==(Je=e[28]("registerConfirmPassword")+"")&&gt(ye,Je),1048576&t[0]&&w.value!==e[20]&&bt(w,e[20]),st===(st=ot(e))&&R?R.p(e,t):(R.d(1),(R=st(e))&&(R.c(),R.m(E,He))),e[7]?M?M.p(e,t):((M=Jt(e)).c(),M.m(E,null)):M&&(M.d(1),M=null),73856&t[0]&&Ae!==(Ae="ConfirmPasswordContainer "+(e[7]&&!e[13]?"InvalidField":"")+(0<=e[16]?.indexOf("confirmPassword")?"Hidden":""))&&mt(E,"class",Ae),128&t[0]&&Se!==(Se="ConfirmPasswordContainer "+(e[7]?"InvalidField":""))&&mt(E,"part",Se),268435460&t[0]&&et!==(et=("true"==e[2]?e[28]("registerFormStep1.registerSecurityQuestion2"):e[28]("registerFormStep1.registerSecurityQuestion"))+"")&&gt(_e,et),2097152&t[0]&&A.value!==e[21]&&bt(A,e[21]),e[8]?F?F.p(e,t):((F=er(e)).c(),F.m(T,null)):F&&(F.d(1),F=null),82176&t[0]&&Ne!==(Ne="SecurityQuestionContainer "+(e[8]&&!e[14]?"InvalidField":"")+(0<=e[16]?.indexOf("securityQuestion")?"Hidden":""))&&mt(T,"class",Ne),256&t[0]&&Oe!==(Oe="SecurityQuestionContainer "+(e[8]?"InvalidField":""))&&mt(T,"part",Oe),268435460&t[0]&&tt!==(tt=("true"==e[2]?e[28]("registerFormStep1.registerSecurityAnswer2"):e[28]("registerFormStep1.registerSecurityAnswer"))+"")&&gt(Me,tt),4194304&t[0]&&_.value!==e[22]&&bt(_,e[22]),e[9]?U?U.p(e,t):((U=tr(e)).c(),U.m(S,null)):U&&(U.d(1),U=null),98816&t[0]&&$e!==($e="SecurityAnswerContainer "+(e[9]&&!e[15]?"InvalidField":"")+(0<=e[16]?.indexOf("securityAnswer")?"Hidden":""))&&mt(S,"class",$e),512&t[0]&&Ge!==(Ge="SecurityAnswerContainer "+(e[9]?"InvalidField":""))&&mt(S,"part",Ge),268435456&t[0]&&rt!==(rt=e[28]("registerNext")+"")&&gt(je,rt),134217728&t[0]&&Ve!==(Ve=!e[27])&&(B.disabled=Ve)},i:at,o:at,d(e){e&&ht(n),P&&P.d(),I&&I.d(),r[57](null),L.d(),N&&N.d(),O&&O.d(),r[63](null),R.d(),M&&M.d(),F&&F.d(),U&&U.d(),r[73](null),ze=!1,lt(Ze)}}}function nr(t,e,r){let F;var n=kt;t.$$.on_destroy.push(J(n,e=>r(28,F=e)));let i,o,s,a,{lang:l=""}=e,{disabledfields:u=""}=e,{defaultoptions:U=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,{savecredentials:x=""}=e,{tempopcustomization:d="false"}=e,m=!1,g=!1,b=!1,y=!1,E=!1,v=!1,w=!1,T=!1,H=!1,A=!1,S=!1,D=!1,C="",_="",B="",P="",I="",L="",N=!1,O=!1,$=!1,R={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/,document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Vt).forEach(e=>{jt(e,Vt[e])});const M=()=>{r(27,$=!(m||g||b||y||E||v)),(C.length<=0||_.length<=0||B.length<=0||P.length<=0||I.length<=0||L.length<=0)&&r(27,$=!1)},G=()=>{window.postMessage({type:"ToLogin"},window.location.href)},k=()=>{r(23,N=!0),Z()},j=()=>{r(24,O=!0),X()},V=()=>{r(23,N=!1),Z()},z=()=>{r(24,O=!1),X()},Z=()=>{r(25,o.type=N?"text":"password",o)},X=()=>{r(26,s.type=O?"text":"password",s)},K=e=>{e.preventDefault();e={userEmail:_,userValue:C,userPassword:B,confirmUserPassword:P,securityQuestion:I,securityAnswer:L};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},Q=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(18,_=e.data.userData.email),r(17,C=e.data.userData.username),r(19,B=e.data.userData.password),r(20,P=e.data.userData.password),r(21,I=e.data.userData.securityQuestion),r(22,L=e.data.userData.securityAnswer),M())};return n=()=>(window.addEventListener("message",Q,!1),()=>{window.removeEventListener("message",Q)}),function(){if(Y)return Y;throw new Error("Function called outside component initialization")}().$$.on_mount.push(n),t.$$set=e=>{"lang"in e&&r(41,l=e.lang),"disabledfields"in e&&r(42,u=e.disabledfields),"defaultoptions"in e&&r(43,U=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(44,h=e.clientstyling),"clientstylingurl"in e&&r(45,p=e.clientstylingurl),"translationurl"in e&&r(46,f=e.translationurl),"savecredentials"in e&&r(1,x=e.savecredentials),"tempopcustomization"in e&&r(2,d=e.tempopcustomization)},t.$$.update=()=>{if(1024&t.$$.dirty[1]&&l&&(e=l,W.set(e)),2048&t.$$.dirty[1]&&u&&(r(16,i=u.split(",")),0<=i.indexOf("email")&&(r(18,_="dummy@dummy.com"),r(4,m=!1)),0<=i.indexOf("username")&&(r(17,C="dummy username"),r(5,g=!1)),0<=i.indexOf("password")&&(r(19,B="dummy password"),r(6,b=!1)),0<=i.indexOf("confirmPassword")&&(r(20,P="dummy password"),r(7,y=!1)),0<=i.indexOf("securityQuestion")&&(r(21,I="dummy question"),r(8,E=!1)),0<=i.indexOf("securityAnswer"))&&(r(22,L="dummy answer"),r(9,v=!1)),1&t.$$.dirty[0]&&c&&"true"==c&&(R.password=/^(?!.* ).{8,20}$/),8&t.$$.dirty[0]|8192&t.$$.dirty[1]&&h&&a&&((e=document.createElement("style")).innerHTML=h,a.appendChild(e)),8&t.$$.dirty[0]|16384&t.$$.dirty[1]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;32768&t.$$.dirty[1]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jt(e,t[e])})}).catch(e=>{console.log(e)})},[c,x,d,a,m,g,b,y,E,v,w,T,H,A,S,D,i,C,_,B,P,I,L,N,O,o,s,$,F,G,()=>{var e;r(4,(e=_,m=!(R.email.test(e)&&e.length<=100))),M()},()=>{var e;r(5,(e=C,g=!(R.user.test(e)&&e.length<=20))),M()},k,j,V,z,()=>{var e;r(6,(e=B,b=!R.password.test(e))),B!==P&&0<P.length?r(7,y=!0):r(7,y=!1),M()},()=>{r(7,y=!(B===P)),M()},()=>{r(8,E=!(()=>{if(I)switch(d){case"true":if(R.document.test(I)&&I.length<=50)return!0;break;case"false":if(I&&I.length<=120)return!0}return!1})()),M()},()=>{r(9,v=!(()=>{if(L)switch(d){case"true":if(R.document.test(L)&&L.length<=50)return!0;break;case"false":if(L&&L.length<=120)return!0}return!1})()),M()},K,l,u,U,h,p,f,()=>G(),function(){_=this.value,r(18,_)},()=>r(10,w=!0),()=>r(10,w=!1),function(){C=this.value,r(17,C)},()=>r(11,T=!0),()=>r(11,T=!1),function(){B=this.value,r(19,B)},()=>r(12,H=!0),()=>r(12,H=!1),function(e){q[e?"unshift":"push"](()=>{o=e,r(25,o)})},()=>V(),()=>k(),function(){P=this.value,r(20,P)},()=>r(13,A=!0),()=>r(13,A=!1),function(e){q[e?"unshift":"push"](()=>{s=e,r(26,s)})},()=>z(),()=>j(),function(){I=this.value,r(21,I)},()=>r(14,S=!0),()=>r(14,S=!1),function(){L=this.value,r(22,L)},()=>r(15,D=!0),()=>r(15,D=!1),e=>K(e),function(e){q[e?"unshift":"push"](()=>{a=e,r(3,a)})}]}class ir extends O{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:40px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{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}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.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)}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;padding-top:5px;top:55px;line-height:10px}.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-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}',this.shadowRoot.appendChild(t),N(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},nr,rr,S,{lang:41,disabledfields:42,defaultoptions:43,simplepasswordvalidation:0,clientstyling:44,clientstylingurl:45,translationurl:46,savecredentials:1,tempopcustomization:2},null,[-1,-1,-1]),e&&(e.target&&ct(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials","tempopcustomization"]}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),d()}get disabledfields(){return this.$$.ctx[42]}set disabledfields(e){this.$$set({disabledfields:e}),d()}get defaultoptions(){return this.$$.ctx[43]}set defaultoptions(e){this.$$set({defaultoptions:e}),d()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),d()}get clientstyling(){return this.$$.ctx[44]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[45]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[46]}set translationurl(e){this.$$set({translationurl:e}),d()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),d()}get tempopcustomization(){return this.$$.ctx[2]}set tempopcustomization(e){this.$$set({tempopcustomization:e}),d()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",ir),ir});
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 at(){}function S(e){return e()}function A(){return Object.create(null)}function lt(e){e.forEach(S)}function T(e){return"function"==typeof e}function P(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function J(e,...t){if(null==e)return at;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ut(e,t){e.appendChild(t)}function ct(e,t,r){e.insertBefore(t,r||null)}function ht(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function pt(e){return document.createTextNode(e)}function dt(){return pt(" ")}function mt(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ft(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function gt(e,t){e.data!==(t=""+t)&&(e.data=t)}function yt(e,t){e.value=null==t?"":t}let Y;function p(e){Y=e}const d=[],q=[];let s=[];const C=[],H=Promise.resolve();let _=!1;function B(e){s.push(e)}const I=new Set;let n=0;function m(){if(0===n){const i=Y;do{try{for(;n<d.length;){const i=d[n];n++,p(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),lt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(B))}}catch(i){throw d.length=0,n=0,i}for(p(null),d.length=0,n=0;q.length;)q.pop()();for(let e=0;e<s.length;e+=1){var r=s[e];I.has(r)||(I.add(r),r())}}while(s.length=0,d.length);for(;C.length;)C.pop()();_=!1,I.clear(),p(i)}}const L=new Set;function N(i,e,t,r,n,s,o,a=[-1]){var l=Y;p(i);const u=i.$$={fragment:null,ctx:[],props:s,update:at,not_equal:n,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&n(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c)&&(r=e,-1===(e=i).$$.dirty[0]&&(d.push(e),_||(_=!0,H.then(m)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],u.update(),c=!0,lt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){s=e.target;const at=Array.from(s.childNodes);u.fragment&&u.fragment.l(at),at.forEach(ht)}else u.fragment&&u.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(L.delete(a),a.i(void 0));var h=i,o=e.target,t=e.anchor,r=e.customElement,{fragment:s,after_update:a}=h.$$;s&&s.m(o,t),r||B(()=>{var e=h.$$.on_mount.map(S).filter(T);h.$$.on_destroy?h.$$.on_destroy.push(...e):lt(e),h.$$.on_mount=[]}),a.forEach(B),m()}p(l)}let R;"function"==typeof HTMLElement&&(R=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(T);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lt(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const i=[],n=[];s.forEach(e=>(-1===r.indexOf(e)?i:n).push(e)),n.forEach(e=>e()),s=i}lt(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=at}$on(e,t){if(!T(t))return at;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 O(i,n=at){let s;const o=new Set;function a(e){if(P(i,e)&&(i=e,s)){const e=!r.length;for(const e of o)e[1](),r.push(e,i);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(i))},subscribe:function(e,t=at){const r=[e,t];return o.add(r),1===o.size&&(s=n(a)||at),e(i),()=>{o.delete(r),0===o.size&&s&&(s(),s=null)}}}}function i(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:O(t,t=>{let r=!1;const i=[];let n=0,s=at;const o=()=>{var e;n||(s(),e=a(l?i[0]:i,t),c?t(e):s=T(e)?e:at)},e=u.map((e,t)=>J(e,e=>{i[t]=e,n&=~(1<<t),r&&o()},()=>{n|=1<<t}));return r=!0,o(),function(){lt(e),s(),r=!1}}).subscribe}}function M(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===U);var t}var U="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?$(Array.isArray(e)?[]:{},e,t):e}function F(e,t,r){return e.concat(t).map(function(e){return x(e,r)})}function D(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function G(e,t){try{return t in e}catch(e){return!1}}function k(i,n,s){var o={};return s.isMergeableObject(i)&&D(i).forEach(function(e){o[e]=x(i[e],s)}),D(n).forEach(function(e){var t,r;(!G(t=i,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(G(i,e)&&s.isMergeableObject(n[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:$)(i[e],n[e],s):o[e]=x(n[e],s))}),o}function $(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||F,r.isMergeableObject=r.isMergeableObject||M,r.cloneUnlessOtherwiseSpecified=x;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):k(e,t,r):x(t,r)}$.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return $(e,t,r)},{});throw new Error("first argument should be an array")};var V=$,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 j(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 f,y,g,E=function(){return(E=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function Q(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Z(e){return e.type===y.literal}function X(e){return e.type===y.number}function K(e){return e.type===y.date}function ee(e){return e.type===y.time}function te(e){return e.type===y.select}function re(e){return e.type===y.plural}function ie(e){return e.type===y.tag}function ne(e){return e&&"object"==typeof e&&e.type===g.number}function se(e){return e&&"object"==typeof e&&e.type===g.dateTime}(o=f=f||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=y=y||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=g=g||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,oe=/(?:[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 ae=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ue=/^(@+)?(\+|#+)?[rs]?$/g,ce=/(\*)(0+)|(#+)(0+)|(0+)/g,he=/^(0+)$/;function pe(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(ue,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function de(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 me(e){return de(e)||{}}function fe(e){for(var o={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=n.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=E(E(E({},o),{notation:"scientific"}),n.options.reduce(function(e,t){return E(E({},e),me(t))},{}));continue;case"engineering":o=E(E(E({},o),{notation:"engineering"}),n.options.reduce(function(e,t){return E(E({},e),me(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ce,function(e,t,r,i,n,s){if(t)o.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(he.test(n.stem))o.minimumIntegerDigits=n.stem.length;else if(le.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(le,function(e,t,r,i,n,s){return"*"===r?o.minimumFractionDigits=t.length:i&&"#"===i[0]?o.maximumFractionDigits=i.length:n&&s?(o.minimumFractionDigits=n.length,o.maximumFractionDigits=n.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=n.options[0];"w"===s?o=E(E({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=E(E({},o),pe(s)))}else ue.test(n.stem)?o=E(E({},o),pe(n.stem)):((s=de(n.stem))&&(o=E(E({},o),s)),(i=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)),!he.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(o=E(E({},o),i)))}return o}var ge={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 ye=new RegExp("^".concat(o.source,"*")),Ee=new RegExp("".concat(o.source,"*$"));function b(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,be=!!String.fromCodePoint,ve=!!Object.fromEntries,we=!!String.prototype.codePointAt,Se=!!String.prototype.trimStart,Ae=!!String.prototype.trimEnd,Te=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pe=!0;try{Pe="a"===(null==(je=Oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:je[0])}catch(at){Pe=!1}var Ce,He,_e=o?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Be=be?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,s=0;s<n;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},Ie=ve?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],s=n[0],n=n[1];t[s]=n}return t},Le=we?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},Ne=Se?function(e){return e.trimStart()}:function(e){return e.replace(ye,"")},Re=Ae?function(e){return e.trimEnd()}:function(e){return e.replace(Ee,"")};function Oe(e,t){return new RegExp(e,t)}He=Pe?(Ce=Oe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ce.lastIndex=t,null!=(t=Ce.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=Le(e,t);if(void 0===n||xe(n)||33<=(r=n)&&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;i.push(n),t+=65536<=n?2:1}return Be.apply(void 0,i)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,s=this.char();if(123===s){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&Ue(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}else{s=this.clonePosition();this.bump(),i.push({type:y.pound,location:b(s,this.clonePosition())})}}}return{val:i,err:null}},a.prototype.parseTag=function(e,t){var r,i=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:b(i,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ue(this.char())?this.error(f.INVALID_TAG,b(e,this.clonePosition())):(r=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,b(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:b(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,b(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,b(i,this.clonePosition()))):this.error(f.INVALID_TAG,b(i,this.clonePosition()))},a.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())},a.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=b(r,this.clonePosition());return{val:{type:y.literal,value:i,location:r},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.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 Be.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Be(r))},a.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,b(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,b(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,b(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,b(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:b(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,b(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(f.MALFORMED_ARGUMENT,b(r,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=He(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:b(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,b(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Re(h.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:b(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(i)).err?u:(d=b(i,this.clonePosition()),l&&_e(null==l?void 0:l.style,"::",0)?(m=Ne(l.style.slice(2)),"number"===o?(h=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?h:{val:{type:y.number,value:r,location:d,style:h.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,d):(c=m,this.locale&&(c=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>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),(ge[t||""]||ge[r||""]||ge["".concat(r,"-001")]||ge["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===n?"H":n}return r}(m,this.locale)),p={type:g.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(oe,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.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":n.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""}),n):{}},{val:{type:"date"===o?y.date:y.time,value:r,location:d,style:p},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:r,location:d,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,b(c,E({},c)));this.bumpSpace();var h,p=this.parseIdentifierIfPossible(),d=0;if("select"!==o&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=h.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,p);return l.err?l:(u=this.tryParseArgumentClose(i)).err?u:(m=b(i,this.clonePosition()),"select"===o?{val:{type:y.select,value:r,options:Ie(l.val),location:m},err:null}:{val:{type:y.plural,value:r,options:Ie(l.val),offset:d,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,b(s,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,b(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.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(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(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}},a.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,i=e.split(ae).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var s=n[0],n=n.slice(1),o=0,a=n;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:g.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?fe(r):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,s=[],o=new Set,a=i.value,l=i.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=b(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:b(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,b(this.clonePosition(),this.clonePosition())):{val:s,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;n=!0,s=10*s+(o-48),this.bump()}i=b(i,this.clonePosition());return n?Te(s*=r)?{val:s,err:null}:this.error(t,i):this.error(e,i)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Le(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(_e(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.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)},a.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}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&xe(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Me=a;function a(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 xe(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Fe(e,t){t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Me(e,t).parse();if(e.err)throw(r=SyntaxError(f[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,te(e)||re(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else X(e)&&ne(e.style)||(K(e)||ee(e))&&se(e.style)?delete e.style.location:ie(e)&&r(e.children)})}(e.val),e.val}function De(e,t){var r=t&&t.cache?t.cache:Qe,i=t&&t.serializer?t.serializer:Ve;return(t&&t.strategy?t.strategy:function(e,t){return $e(e,this,1===e.length?Ge:ke,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function Ge(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function ke(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function $e(e,t,r,i,n){return r.bind(t,e,i,n)}var Ve=function(){return JSON.stringify(arguments)};function ze(){this.cache=Object.create(null)}ze.prototype.get=function(e){return this.cache[e]},ze.prototype.set=function(e,t){this.cache[e]=t};var v,je,Qe={create:function(){return new ze}},Ze={variadic:function(e,t){return $e(e,this,ke,t.cache.create(),t.serializer)},monadic:function(e,t){return $e(e,this,Ge,t.cache.create(),t.serializer)}};(je=v=v||{}).MISSING_VALUE="MISSING_VALUE",je.INVALID_VALUE="INVALID_VALUE",je.MISSING_INTL_API="MISSING_INTL_API";j(st,qe=Error),st.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,Xe,Ke,Ye,qe,We=st,Je=(j(nt,Ye=We),nt),et=(j(it,Ke=We),it),tt=(j(rt,Xe=We),rt);function rt(e,t){return Xe.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function it(e,t,r){return Ke.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,r)||this}function nt(e,t,r,i){return Ye.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),v.INVALID_VALUE,i)||this}function st(e,t,r){e=qe.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function ot(e,t,r,i,n,s,o){if(1===e.length&&Z(e[0]))return[{type:w.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Z(c))a.push({type:w.literal,value:c.value});else if(c.type===y.pound)"number"==typeof s&&a.push({type:w.literal,value:r.getNumberFormat(t).format(s)});else{var h=c.value;if(!(n&&h in n))throw new tt(h,o);h=n[h];if(c.type===y.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?w.literal:w.object,value:h});else if(K(c)){var p="string"==typeof c.style?i.date[c.style]:se(c.style)?c.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(ee(c))p="string"==typeof c.style?i.time[c.style]:se(c.style)?c.style.parsedOptions:i.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(X(c))(p="string"==typeof c.style?i.number[c.style]:ne(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:w.literal,value:r.getNumberFormat(t,p).format(h)});else{if(ie(c)){var d=c.children,m=c.value,f=n[m];if("function"!=typeof f)throw new et(m,"function",o);m=f(ot(d,t,r,i,n,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(te(c)){if(!(g=c.options[h]||c.options.other))throw new Je(c.value,h,Object.keys(c.options),o);a.push.apply(a,ot(g.value,t,r,i,n))}else if(re(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new We('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,o);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Je(c.value,h,Object.keys(c.options),o);a.push.apply(a,ot(g.value,t,r,i,n,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===w.literal&&t.type===w.literal?r.value+=t.value:e.push(t),e},[])}function Et(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(o=w=w||{})[o.literal=0]="literal",o[o.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=Fe,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,i){var n,s,o=this;if(void 0===t&&(t=l.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===w.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return ot(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.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==i?void 0:i.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=(n=l.formats,(s=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=s[t])?E(E(E({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=E(E({},r[t]),i[t]||{}),e},{})):r),e},E({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Q([void 0],t,!1)))},{cache:Et((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ze.variadic}),getDateTimeFormat:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Q([void 0],t,!1)))},{cache:Et(t.dateTime),strategy:Ze.variadic}),getPluralRules:De(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Q([void 0],t,!1)))},{cache:Et(t.pluralRules),strategy:Ze.variadic})}}const u={},vt=(e,t,r)=>r&&(t in u||(u[t]={}),e in u[t]||(u[t][e]=r),r),wt=(t,r)=>{if(null!=r){if(r in u&&t in u[r])return u[r][t];var i=Mt(r);for(let e=0;e<i.length;e++){var n=function(e,t){if(!Tt(e))return null;e=function(e){return St[e]||null}(e);{var r=t;if(null!=r){if(r in e)return e[r];var i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}}(i[e],t);if(n)return vt(t,r,n)}}};let St;const At=O({});function Tt(e){return e in St}function Pt(t,...r){delete u[t],At.update(e=>(e[t]=V.all([e[t]||{},...r]),e))}i([At],([e])=>Object.keys(e)),At.subscribe(e=>St=e);const Ct={};function Ht(e){return Ct[e]}function _t(e){return null!=e&&Mt(e).some(e=>{return null==(e=Ht(e))?void 0:e.size})}const Bt={};function It(e){var t;return _t(e)?(t=Mt(e).map(e=>{var t=Ht(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Bt[e]=Promise.all(t.map(([e,t])=>{return i=e,Promise.all(t.map(e=>{return t=i,r=e,Ct[t].delete(r),0===Ct[t].size&&delete Ct[t],e().then(e=>e.default||e);var t,r})).then(e=>Pt(i,...e));var i})).then(()=>{if(_t(e))return It(e);delete Bt[e]}),Bt[e]):e in Bt?Bt[e]:Promise.resolve()}const c={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 Lt=O(!1);let Nt;const Rt=O(null);function Ot(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Mt(e,t=c.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}function h(){return null!=Nt?Nt:void 0}Rt.subscribe(e=>{Nt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W={...Rt,set:t=>{if(t&&function(e){if(null!=e){var t=Mt(e);for(let e=0;e<t.length;e++){var r=t[e];if(Tt(r))return r}}}(t)&&_t(t)){var r=c["loadingDelay"];let e;return"undefined"!=typeof window&&null!=h()&&r?e=window.setTimeout(()=>Lt.set(!0),r):Lt.set(!0),It(t).then(()=>{Rt.set(t)}).finally(()=>{clearTimeout(e),Lt.set(!1)})}return Rt.set(t)}},Ut=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}},xt=(e,t)=>{var r=c["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ft=Ut(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=xt("number",t)),new Intl.NumberFormat(e,r)}),Dt=Ut(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=xt("date",t):0===Object.keys(r).length&&(r=xt("date","short")),new Intl.DateTimeFormat(e,r)}),Gt=Ut(({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=xt("time",t):0===Object.keys(r).length&&(r=xt("time","short")),new Intl.DateTimeFormat(e,r)}),kt=Ut((e,t=h())=>new bt(e,t,c.formats,{ignoreTag:c.ignoreTag})),$t=i([W,At],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:s,locale:o=h(),default:a}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=wt(e,o);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!=(i=null!=(r=null==(r=(i=c).handleMissingMessage)?void 0:r.call(i,{locale:o,id:e,defaultValue:a}))?r:a)?i:e;if(!s)return l;let u=l;try{u=kt(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u});function Vt(e,t){Pt(e,t)}i([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],Gt({locale:t,...r}).format(e);var r}),i([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],Dt({locale:t,...r}).format(e);var r}),i([W],()=>(e,t)=>{return[{locale:t=h(),...r}={}]=[t],Ft({locale:t,...r}).format(e);var r}),i([W,At],()=>(e,t=h())=>wt(e,t));const zt={en:{registerTitle:"Create your account",registerSubtitle:"Already have an account?",registerSubtitleLogin:"Login",registerEmail:"Email",registerEmailError:"Email should contain '@' and a 2-3 letter long domain.",registerUsername:"Username",registerUsernameError:"Name must be at least 4-20 characters long and contain no special characters.",registerPassword:"Password",registerPasswordError:"Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",registerSimplePasswordError:"Password must be 8-20 characters long.",registerConfirmPassword:"Confirm Password",registerConfirmPasswordError:"It doesn't match the password.",registerSecurityQuestion:"Security Question",registerSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",registerSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",registerSecurityQuestionError2:"Only letters and numbers are accepted.",registerSecurityAnswer:"Security Answer",registerSecurityAnswer2:"Document Number",registerSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",registerSecurityAnswerError2:"Only letters and numbers are accepted.",registerNext:"Next"},"zh-hk":{registerTitle:"創建您的帳戶",registerSubtitle:"已經有一個帳戶?",registerSubtitleLogin:"登錄",registerEmail:"電子郵件",registerEmailError:"電子郵件應包含“@”和 2-3 個字母長的域。",registerUsername:"用戶名",registerUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。",registerPassword:"密碼",registerPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",registerSimplePasswordError:"密码长度必须为 8-20 个字符。",registerConfirmPassword:"確認密碼",registerConfirmPasswordError:"它與密碼不匹配。",registerSecurityQuestion:"安全問題",registerSecurityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",registerSecurityAnswer:"安全答案",registerSecurityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",registerNext:"下一個"},fr:{registerTitle:"Créez votre compte",registerSubtitle:"Vous avez déjà un compte?",registerSubtitleLogin:"Connexion ",registerEmail:"Email",registerEmailError:"L'adresse mail doit comporter un '@' et un nom de domaine de 2 à 3 lettres.",registerUsername:"Nom d'utilisateur ",registerUsernameError:"Le nom doit être composé d'au moins 2 caractères et ne doitpas contenir de caractères spéciaux.",registerPassword:"Mot de passe",registerPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial.",registerSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",registerConfirmPassword:"Confirmer le mot de passe",registerConfirmPasswordError:"ça ne correspond pas au mot de passe.",registerSecurityQuestion:"Questions de sécurité",registerSecurityQuestionError:"La question de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerSecurityAnswer:"Réponse de sécurité",registerSecurityAnswerError:"La réponse de sécurité doit comporter au moins un caractère et au maximum 120 caractères.",registerNext:"Suivant"},tr:{registerTitle:"Hesabını oluştur",registerSubtitle:"Zaten hesabınız var mı?",registerSubtitleLogin:"Giriş yapmak",registerEmail:"E-posta",registerEmailError:"E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",registerUsername:"Kullanıcı adı",registerUsernameError:"Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.",registerPassword:"Parola",registerPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",registerSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",registerConfirmPassword:"Şifreyi Onayla",registerConfirmPasswordError:"Şifreyle eşleşmiyor.",registerSecurityQuestion:"Güvenlik Sorusu",registerSecurityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",registerSecurityAnswer:"Güvenlik cevabı",registerSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",registerNext:"Sonraki"},ro:{registerTitle:"Creaza cont",registerSubtitle:"Ai deja cont?",registerSubtitleLogin:"Autentifica-te",registerEmail:"Email",registerEmailError:"Email-ul ar trebui sa contina '@' si 2-3 litere.",registerUsername:"Utilizator",registerUsernameError:"Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.",registerPassword:"Parola",registerPasswordError:"Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.",registerSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",registerConfirmPassword:"Confirma Parola",registerConfirmPasswordError:"Confirmarea parolei trebuie sa fie la fel cu parola",registerSecurityQuestion:"Intrebare de Securitate",registerSecurityQuestionError:"Intrebarea de securitate trebuie sa fie cuprinsa intre 1 si 120 de litere.",registerSecurityAnswer:"Raspuns de Securitate",registerSecurityAnswerError:"Raspunsul de securitate trebuie sa fie cuprins intre 1 si 120 de litere",registerNext:"Urmatorul"},es:{registerTitle:"Crea tu cuenta",registerSubtitle:"Ya tiene cuenta?",registerSubtitleLogin:"Iniciar sesión",registerEmail:"Email",registerEmailError:"Email debe contener '@' y un dominio de 2 a 3 letras.",registerUsername:"Usuario",registerUsernameError:"El nombre de Usuario debe tener mínimo 4 y máximo 20 caracteres y no contener caracteres especiales.",registerPassword:"Contraseña",registerPasswordError:"La contraseña debe tener de 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",registerSimplePasswordError:"La contraseña debe tener entre 8 y 20 caracteres.",registerConfirmPassword:"Confirmar Contraseña",registerConfirmPasswordError:"La contraseña no coincide.",registerSecurityQuestion:"Pregunta de seguridad",registerSecurityQuestion2:"Tipo de Documento (DNI, CE o Pasaporte)",registerSecurityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityQuestionError2:"Solo se aceptan letras y números.",registerSecurityAnswer:"Respuesta de seguridad",registerSecurityAnswer2:"Número de Documento",registerSecurityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",registerSecurityAnswerError2:"Solo se aceptan letras y números.",registerNext:"Siguiente"},pt:{registerTitle:"Crie a sua conta",registerSubtitle:"Já tem uma conta?",registerSubtitleLogin:"Entrar",registerEmail:"E-mail",registerEmailError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",registerUsername:"Nome do usuário",registerUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerPassword:"Senha",registerPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",registerSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",registerConfirmPassword:"Confirme a sua senha",registerConfirmPasswordError:"Não corresponde à senha.",registerSecurityQuestion:"Pergunta de segurança",registerSecurityQuestionError:"A pergunta de segurança deve ter no mínimo 1 caractere e no máximo 120 caracteres.",registerSecurityAnswer:"Resposta de segurança",registerSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",registerNext:"Próximo"}};function jt(e){let r,i,n=e[28]("registerEmailError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435456&t[0]&&n!==(n=e[28]("registerEmailError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Qt(e){let r,i,n=e[28]("registerUsernameError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435456&t[0]&&n!==(n=e[28]("registerUsernameError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Zt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=mt(i,"click",r[59]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Xt(r){let i,n,s,o,a,l,u,c,h,p,d,m,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),d=e("path"),m=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(d,"class","a"),ft(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ft(d,"transform","translate(-110.856 -33.157)"),ft(m,"class","a"),ft(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ft(m,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","TogglePasswordVisibility"),ft(i,"part","TogglePasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,d),ut(p,m),ut(a,f),g||(y=mt(i,"click",r[58]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function Kt(e){let r,i,n=e[28]("registerPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435456&t[0]&&n!==(n=e[28]("registerPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function Yt(e){let r,i,n=e[28]("registerSimplePasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435456&t[0]&&n!==(n=e[28]("registerSimplePasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function qt(r){let i,n,s,o,a,l,u,c,h;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),u=e("circle"),ft(l,"class","a"),ft(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),ft(l,"transform","translate(0)"),ft(u,"class","a"),ft(u,"cx","2.779"),ft(u,"cy","2.779"),ft(u,"r","2.779"),ft(u,"transform","translate(20.827 30.303)"),ft(a,"transform","translate(-14.185 -27.832)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.843"),ft(i,"height","10.5"),ft(i,"viewBox","0 0 18.843 10.5")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),c||(h=mt(i,"click",r[65]),c=!0)},p:at,d(e){e&&ht(i),c=!1,h()}}}function Wt(r){let i,n,s,o,a,l,u,c,h,p,d,m,f,g,y;return{c(){i=e("svg"),n=e("defs"),s=e("style"),o=pt(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),d=e("path"),m=e("path"),f=e("rect"),ft(l,"class","a"),ft(l,"cx","0.05"),ft(l,"cy","0.05"),ft(l,"r","0.05"),ft(l,"transform","translate(121.017 31.148)"),ft(c,"class","a"),ft(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ft(c,"transform","translate(-142.164 -39.123)"),ft(h,"class","a"),ft(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ft(h,"transform","translate(-136.413 -42.068)"),ft(u,"transform","translate(117.499 27.37)"),ft(d,"class","a"),ft(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),ft(d,"transform","translate(-110.856 -33.157)"),ft(m,"class","a"),ft(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),ft(m,"transform","translate(-130.743 -29.617)"),ft(p,"transform","translate(110.856 24.899)"),ft(f,"class","a"),ft(f,"width","0.972"),ft(f,"height","15.861"),ft(f,"rx","0.486"),ft(f,"transform","translate(114.827 23.858) rotate(-39.315)"),ft(a,"transform","translate(-110.856 -23.242)"),ft(i,"class","ToggleConfirmPasswordVisibility"),ft(i,"part","ToggleConfirmPasswordVisibility"),ft(i,"xmlns","http://www.w3.org/2000/svg"),ft(i,"width","18.844"),ft(i,"height","12.887"),ft(i,"viewBox","0 0 18.844 12.887")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,o),ut(i,a),ut(a,l),ut(a,u),ut(u,c),ut(u,h),ut(a,p),ut(p,d),ut(p,m),ut(a,f),g||(y=mt(i,"click",r[64]),g=!0)},p:at,d(e){e&&ht(i),g=!1,y()}}}function Jt(e){let r,i,n=e[28]("registerConfirmPasswordError")+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435456&t[0]&&n!==(n=e[28]("registerConfirmPasswordError")+"")&&gt(i,n)},d(e){e&&ht(r)}}}function er(e){let r,i,n=("true"==e[2]?e[28]("registerSecurityQuestionError2"):e[28]("registerSecurityQuestionError"))+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435460&t[0]&&n!==(n=("true"==e[2]?e[28]("registerSecurityQuestionError2"):e[28]("registerSecurityQuestionError"))+"")&&gt(i,n)},d(e){e&&ht(r)}}}function tr(e){let r,i,n=("true"==e[2]?e[28]("registerSecurityAnswerError2"):e[28]("registerSecurityAnswerError"))+"";return{c(){r=t("p"),i=pt(n),ft(r,"class","InvalidInput"),ft(r,"part","InvalidInput")},m(e,t){ct(e,r,t),ut(r,i)},p(e,t){268435460&t[0]&&n!==(n=("true"==e[2]?e[28]("registerSecurityAnswerError2"):e[28]("registerSecurityAnswerError"))+"")&&gt(i,n)},d(e){e&&ht(r)}}}function rr(r){let i,n,s,F,D,o,G,k,a,$,V,l,u,c,z,j,h,Q,p,Z,X,K,Y,d,m,q,W,J,ee,f,te,re,ie,ne,se,g,y,oe,ae,le,ue,E,ce,he,pe,de,me,fe,ge,ye,b,v,Ee,be,ve,we,w,Se,Ae,Te,Pe,Ce,S,A,He,_e,Be,Ie,T,Le,Ne,Re,Oe,P,C,Me,Ue,xe,Fe,H,De,Ge,ke,$e,_,Ve,ze,je,Qe,Ze=r[28]("registerTitle")+"",Xe=r[28]("registerSubtitle")+"",Ke=r[28]("registerSubtitleLogin")+"",Ye=r[28]("registerEmail")+"",qe=r[28]("registerUsername")+"",We=r[28]("registerPassword")+"",Je=r[28]("registerConfirmPassword")+"",et=("true"==r[2]?r[28]("registerSecurityQuestion2"):r[28]("registerSecurityQuestion"))+"",tt=("true"==r[2]?r[28]("registerSecurityAnswer2"):r[28]("registerSecurityAnswer"))+"",rt=r[28]("registerNext")+"",B=r[4]&&jt(r),I=r[5]&&Qt(r);function it(e){return e[23]?Xt:Zt}let nt=it(r),L=nt(r),N=r[6]&&"true"!==r[0]&&Kt(r),R=r[6]&&"true"===r[0]&&Yt(r);function st(e){return e[24]?Wt:qt}let ot=st(r),O=ot(r),M=r[7]&&Jt(r),U=r[8]&&er(r),x=r[9]&&tr(r);return{c(){i=t("div"),n=t("div"),s=t("h2"),F=pt(Ze),D=dt(),o=t("p"),G=pt(Xe),k=dt(),a=t("span"),$=pt(Ke),V=dt(),l=t("form"),u=t("div"),c=t("label"),z=pt(Ye),j=pt(":"),(h=t("span")).textContent="*",Q=dt(),p=t("input"),Z=dt(),B&&B.c(),Y=dt(),d=t("div"),m=t("label"),q=pt(qe),W=pt(":"),(J=t("span")).textContent="*",ee=dt(),f=t("input"),re=dt(),I&&I.c(),se=dt(),g=t("div"),y=t("label"),oe=pt(We),ae=pt(":"),(le=t("span")).textContent="*",ue=dt(),E=t("input"),he=dt(),L.c(),pe=dt(),N&&N.c(),de=dt(),R&&R.c(),ye=dt(),b=t("div"),v=t("label"),Ee=pt(Je),be=pt(":"),(ve=t("span")).textContent="*",we=dt(),w=t("input"),Se=dt(),O.c(),Ae=dt(),M&&M.c(),Ce=dt(),S=t("div"),A=t("label"),He=pt(et),_e=pt(":"),(Be=t("span")).textContent="*",Ie=dt(),T=t("input"),Le=dt(),U&&U.c(),Oe=dt(),P=t("div"),C=t("label"),Me=pt(tt),Ue=pt(":"),(xe=t("span")).textContent="*",Fe=dt(),H=t("input"),De=dt(),x&&x.c(),$e=dt(),_=t("button"),Ve=pt(rt),this.c=at,ft(s,"class","RegisterFormTitle"),ft(s,"part","RegisterFormTitle"),ft(a,"class","FormLoginCallToAction"),ft(o,"class","RegisterFormSubtitle"),ft(o,"part","RegisterFormSubtitle"),ft(n,"class","RegisterFormHeader"),ft(n,"part","RegisterFormHeader"),ft(h,"class","FormRequired"),ft(h,"part","FormRequired"),ft(c,"for","Email"),ft(p,"type","text"),ft(p,"id","Email"),ft(u,"class",X="EmailContainer "+(r[4]&&!r[10]?"InvalidField":"")+(0<=r[16]?.indexOf("email")?"Hidden":"")),ft(u,"part",K="EmailContainer "+(r[4]?"InvalidField":"")),ft(J,"class","FormRequired"),ft(J,"part","FormRequired"),ft(m,"for","UserName"),ft(f,"type","text"),ft(f,"id","UserName"),ft(f,"autocomplete",te=r[1]?"username":"off"),ft(d,"class",ie="UserContainer "+(r[5]&&!r[11]?"InvalidField":"")+(0<=r[16]?.indexOf("username")?"Hidden":"")),ft(d,"part",ne="UserContainer "+(r[5]?"InvalidField":"")),ft(le,"class","FormRequired"),ft(le,"part","FormRequired"),ft(y,"for","Password"),ft(E,"name","new-password"),ft(E,"type","password"),ft(E,"id","new-password"),ft(E,"autocomplete",ce=r[1]?"new-password":"off"),ft(E,"aria-describedby","password-constraints"),ft(g,"class",me="PasswordContainer "+(r[6]&&!r[12]?"InvalidField":"")+(0<=r[16]?.indexOf("password")?"Hidden":"")),ft(g,"part",fe="PasswordContainer "+(r[6]?"InvalidField":"")),g.hidden=ge=0<=r[16]?.indexOf("password"),ft(ve,"class","FormRequired"),ft(ve,"part","FormRequired"),ft(v,"for","ConfirmPassword"),ft(w,"type","password"),ft(w,"id","ConfirmPassword"),ft(b,"class",Te="ConfirmPasswordContainer "+(r[7]&&!r[13]?"InvalidField":"")+(0<=r[16]?.indexOf("confirmPassword")?"Hidden":"")),ft(b,"part",Pe="ConfirmPasswordContainer "+(r[7]?"InvalidField":"")),ft(Be,"class","FormRequired"),ft(Be,"part","FormRequired"),ft(A,"for","SecurityQuestion"),ft(T,"type","text"),ft(T,"id","SecurityQuestion"),ft(S,"class",Ne="SecurityQuestionContainer "+(r[8]&&!r[14]?"InvalidField":"")+(0<=r[16]?.indexOf("securityQuestion")?"Hidden":"")),ft(S,"part",Re="SecurityQuestionContainer "+(r[8]?"InvalidField":"")),ft(xe,"class","FormRequired"),ft(xe,"part","FormRequired"),ft(C,"for","SecurityAnswer"),ft(H,"type","text"),ft(H,"id","SecurityAnswer"),ft(P,"class",Ge="SecurityAnswerContainer "+(r[9]&&!r[15]?"InvalidField":"")+(0<=r[16]?.indexOf("securityAnswer")?"Hidden":"")),ft(P,"part",ke="SecurityAnswerContainer "+(r[9]?"InvalidField":"")),ft(_,"class","RegisterStepNext"),ft(_,"part","RegisterStepNext"),_.disabled=ze=!r[27],ft(l,"class","RegisterFormContent"),ft(l,"part","RegisterFormContent")},m(e,t){ct(e,i,t),ut(i,n),ut(n,s),ut(s,F),ut(n,D),ut(n,o),ut(o,G),ut(o,k),ut(o,a),ut(a,$),ut(i,V),ut(i,l),ut(l,u),ut(u,c),ut(c,z),ut(c,j),ut(c,h),ut(u,Q),ut(u,p),yt(p,r[18]),ut(u,Z),B&&B.m(u,null),ut(l,Y),ut(l,d),ut(d,m),ut(m,q),ut(m,W),ut(m,J),ut(d,ee),ut(d,f),yt(f,r[17]),ut(d,re),I&&I.m(d,null),ut(l,se),ut(l,g),ut(g,y),ut(y,oe),ut(y,ae),ut(y,le),ut(g,ue),ut(g,E),yt(E,r[19]),r[57](E),ut(g,he),L.m(g,null),ut(g,pe),N&&N.m(g,null),ut(g,de),R&&R.m(g,null),ut(l,ye),ut(l,b),ut(b,v),ut(v,Ee),ut(v,be),ut(v,ve),ut(b,we),ut(b,w),yt(w,r[20]),r[63](w),ut(b,Se),O.m(b,null),ut(b,Ae),M&&M.m(b,null),ut(l,Ce),ut(l,S),ut(S,A),ut(A,He),ut(A,_e),ut(A,Be),ut(S,Ie),ut(S,T),yt(T,r[21]),ut(S,Le),U&&U.m(S,null),ut(l,Oe),ut(l,P),ut(P,C),ut(C,Me),ut(C,Ue),ut(C,xe),ut(P,Fe),ut(P,H),yt(H,r[22]),ut(P,De),x&&x.m(P,null),ut(l,$e),ut(l,_),ut(_,Ve),r[73](i),je||(Qe=[mt(a,"click",r[47]),mt(p,"input",r[48]),mt(p,"keyup",r[30]),mt(p,"focus",r[49]),mt(p,"blur",r[50]),mt(f,"input",r[51]),mt(f,"keyup",r[31]),mt(f,"focus",r[52]),mt(f,"blur",r[53]),mt(E,"input",r[54]),mt(E,"keyup",r[36]),mt(E,"focus",r[55]),mt(E,"blur",r[56]),mt(w,"input",r[60]),mt(w,"keyup",r[37]),mt(w,"focus",r[61]),mt(w,"blur",r[62]),mt(T,"input",r[66]),mt(T,"keyup",r[38]),mt(T,"focus",r[67]),mt(T,"blur",r[68]),mt(H,"input",r[69]),mt(H,"keyup",r[39]),mt(H,"focus",r[70]),mt(H,"blur",r[71]),mt(_,"click",r[72])],je=!0)},p(e,t){268435456&t[0]&&Ze!==(Ze=e[28]("registerTitle")+"")&&gt(F,Ze),268435456&t[0]&&Xe!==(Xe=e[28]("registerSubtitle")+"")&&gt(G,Xe),268435456&t[0]&&Ke!==(Ke=e[28]("registerSubtitleLogin")+"")&&gt($,Ke),268435456&t[0]&&Ye!==(Ye=e[28]("registerEmail")+"")&&gt(z,Ye),262144&t[0]&&p.value!==e[18]&&yt(p,e[18]),e[4]?B?B.p(e,t):((B=jt(e)).c(),B.m(u,null)):B&&(B.d(1),B=null),66576&t[0]&&X!==(X="EmailContainer "+(e[4]&&!e[10]?"InvalidField":"")+(0<=e[16]?.indexOf("email")?"Hidden":""))&&ft(u,"class",X),16&t[0]&&K!==(K="EmailContainer "+(e[4]?"InvalidField":""))&&ft(u,"part",K),268435456&t[0]&&qe!==(qe=e[28]("registerUsername")+"")&&gt(q,qe),2&t[0]&&te!==(te=e[1]?"username":"off")&&ft(f,"autocomplete",te),131072&t[0]&&f.value!==e[17]&&yt(f,e[17]),e[5]?I?I.p(e,t):((I=Qt(e)).c(),I.m(d,null)):I&&(I.d(1),I=null),67616&t[0]&&ie!==(ie="UserContainer "+(e[5]&&!e[11]?"InvalidField":"")+(0<=e[16]?.indexOf("username")?"Hidden":""))&&ft(d,"class",ie),32&t[0]&&ne!==(ne="UserContainer "+(e[5]?"InvalidField":""))&&ft(d,"part",ne),268435456&t[0]&&We!==(We=e[28]("registerPassword")+"")&&gt(oe,We),2&t[0]&&ce!==(ce=e[1]?"new-password":"off")&&ft(E,"autocomplete",ce),524288&t[0]&&E.value!==e[19]&&yt(E,e[19]),nt===(nt=it(e))&&L?L.p(e,t):(L.d(1),(L=nt(e))&&(L.c(),L.m(g,pe))),e[6]&&"true"!==e[0]?N?N.p(e,t):((N=Kt(e)).c(),N.m(g,de)):N&&(N.d(1),N=null),e[6]&&"true"===e[0]?R?R.p(e,t):((R=Yt(e)).c(),R.m(g,null)):R&&(R.d(1),R=null),69696&t[0]&&me!==(me="PasswordContainer "+(e[6]&&!e[12]?"InvalidField":"")+(0<=e[16]?.indexOf("password")?"Hidden":""))&&ft(g,"class",me),64&t[0]&&fe!==(fe="PasswordContainer "+(e[6]?"InvalidField":""))&&ft(g,"part",fe),65536&t[0]&&ge!==(ge=0<=e[16]?.indexOf("password"))&&(g.hidden=ge),268435456&t[0]&&Je!==(Je=e[28]("registerConfirmPassword")+"")&&gt(Ee,Je),1048576&t[0]&&w.value!==e[20]&&yt(w,e[20]),ot===(ot=st(e))&&O?O.p(e,t):(O.d(1),(O=ot(e))&&(O.c(),O.m(b,Ae))),e[7]?M?M.p(e,t):((M=Jt(e)).c(),M.m(b,null)):M&&(M.d(1),M=null),73856&t[0]&&Te!==(Te="ConfirmPasswordContainer "+(e[7]&&!e[13]?"InvalidField":"")+(0<=e[16]?.indexOf("confirmPassword")?"Hidden":""))&&ft(b,"class",Te),128&t[0]&&Pe!==(Pe="ConfirmPasswordContainer "+(e[7]?"InvalidField":""))&&ft(b,"part",Pe),268435460&t[0]&&et!==(et=("true"==e[2]?e[28]("registerSecurityQuestion2"):e[28]("registerSecurityQuestion"))+"")&&gt(He,et),2097152&t[0]&&T.value!==e[21]&&yt(T,e[21]),e[8]?U?U.p(e,t):((U=er(e)).c(),U.m(S,null)):U&&(U.d(1),U=null),82176&t[0]&&Ne!==(Ne="SecurityQuestionContainer "+(e[8]&&!e[14]?"InvalidField":"")+(0<=e[16]?.indexOf("securityQuestion")?"Hidden":""))&&ft(S,"class",Ne),256&t[0]&&Re!==(Re="SecurityQuestionContainer "+(e[8]?"InvalidField":""))&&ft(S,"part",Re),268435460&t[0]&&tt!==(tt=("true"==e[2]?e[28]("registerSecurityAnswer2"):e[28]("registerSecurityAnswer"))+"")&&gt(Me,tt),4194304&t[0]&&H.value!==e[22]&&yt(H,e[22]),e[9]?x?x.p(e,t):((x=tr(e)).c(),x.m(P,null)):x&&(x.d(1),x=null),98816&t[0]&&Ge!==(Ge="SecurityAnswerContainer "+(e[9]&&!e[15]?"InvalidField":"")+(0<=e[16]?.indexOf("securityAnswer")?"Hidden":""))&&ft(P,"class",Ge),512&t[0]&&ke!==(ke="SecurityAnswerContainer "+(e[9]?"InvalidField":""))&&ft(P,"part",ke),268435456&t[0]&&rt!==(rt=e[28]("registerNext")+"")&&gt(Ve,rt),134217728&t[0]&&ze!==(ze=!e[27])&&(_.disabled=ze)},i:at,o:at,d(e){e&&ht(i),B&&B.d(),I&&I.d(),r[57](null),L.d(),N&&N.d(),R&&R.d(),r[63](null),O.d(),M&&M.d(),U&&U.d(),x&&x.d(),r[73](null),je=!1,lt(Qe)}}}function ir(t,e,r){let U;var i=$t;t.$$.on_destroy.push(J(i,e=>r(28,U=e)));let n,s,o,a,{lang:l=""}=e,{disabledfields:u=""}=e,{defaultoptions:x=""}=e,{simplepasswordvalidation:c="false"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{savecredentials:F=""}=e,{tempopcustomization:m="false"}=e,f=!1,g=!1,y=!1,E=!1,b=!1,v=!1,w=!1,S=!1,A=!1,T=!1,P=!1,D=!1,C="",H="",_="",B="",I="",L="",N=!1,R=!1,G=!1,O={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/,document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(zt).forEach(e=>{Vt(e,zt[e])});const M=()=>{r(27,G=!(f||g||y||E||b||v)),(C.length<=0||H.length<=0||_.length<=0||B.length<=0||I.length<=0||L.length<=0)&&r(27,G=!1)},k=()=>{window.postMessage({type:"ToLogin"},window.location.href)},$=()=>{r(23,N=!0),Q()},V=()=>{r(24,R=!0),Z()},z=()=>{r(23,N=!1),Q()},j=()=>{r(24,R=!1),Z()},Q=()=>{r(25,s.type=N?"text":"password",s)},Z=()=>{r(26,o.type=R?"text":"password",o)},X=e=>{e.preventDefault();e={userEmail:H,userValue:C,userPassword:_,confirmUserPassword:B,securityQuestion:I,securityAnswer:L};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},K=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(18,H=e.data.userData.email),r(17,C=e.data.userData.username),r(19,_=e.data.userData.password),r(20,B=e.data.userData.password),r(21,I=e.data.userData.securityQuestion),r(22,L=e.data.userData.securityAnswer),M())};return i=()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)}),function(){if(Y)return Y;throw new Error("Function called outside component initialization")}().$$.on_mount.push(i),t.$$set=e=>{"lang"in e&&r(41,l=e.lang),"disabledfields"in e&&r(42,u=e.disabledfields),"defaultoptions"in e&&r(43,x=e.defaultoptions),"simplepasswordvalidation"in e&&r(0,c=e.simplepasswordvalidation),"clientstyling"in e&&r(44,h=e.clientstyling),"clientstylingurl"in e&&r(45,p=e.clientstylingurl),"translationurl"in e&&r(46,d=e.translationurl),"savecredentials"in e&&r(1,F=e.savecredentials),"tempopcustomization"in e&&r(2,m=e.tempopcustomization)},t.$$.update=()=>{if(1024&t.$$.dirty[1]&&l&&(e=l,W.set(e)),2048&t.$$.dirty[1]&&u&&(r(16,n=u.split(",")),0<=n.indexOf("email")&&(r(18,H="dummy@dummy.com"),r(4,f=!1)),0<=n.indexOf("username")&&(r(17,C="dummy username"),r(5,g=!1)),0<=n.indexOf("password")&&(r(19,_="dummy password"),r(6,y=!1)),0<=n.indexOf("confirmPassword")&&(r(20,B="dummy password"),r(7,E=!1)),0<=n.indexOf("securityQuestion")&&(r(21,I="dummy question"),r(8,b=!1)),0<=n.indexOf("securityAnswer"))&&(r(22,L="dummy answer"),r(9,v=!1)),1&t.$$.dirty[0]&&c&&"true"==c&&(O.password=/^(?!.* ).{8,20}$/),8&t.$$.dirty[0]|8192&t.$$.dirty[1]&&h&&a&&((e=document.createElement("style")).innerHTML=h,a.appendChild(e)),8&t.$$.dirty[0]|16384&t.$$.dirty[1]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1),setTimeout(()=>{},500)})}var e;32768&t.$$.dirty[1]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vt(e,t[e])})}).catch(e=>{console.log(e)})},[c,F,m,a,f,g,y,E,b,v,w,S,A,T,P,D,n,C,H,_,B,I,L,N,R,s,o,G,U,k,()=>{var e;r(4,(e=H,f=!(O.email.test(e)&&e.length<=100))),M()},()=>{var e;r(5,(e=C,g=!(O.user.test(e)&&e.length<=20))),M()},$,V,z,j,()=>{var e;r(6,(e=_,y=!O.password.test(e))),_!==B&&0<B.length?r(7,E=!0):r(7,E=!1),M()},()=>{r(7,E=!(_===B)),M()},()=>{r(8,b=!(()=>{if(I)switch(m){case"true":if(O.document.test(I)&&I.length<=50)return!0;break;case"false":if(I&&I.length<=120)return!0}return!1})()),M()},()=>{r(9,v=!(()=>{if(L)switch(m){case"true":if(O.document.test(L)&&L.length<=50)return!0;break;case"false":if(L&&L.length<=120)return!0}return!1})()),M()},X,l,u,x,h,p,d,()=>k(),function(){H=this.value,r(18,H)},()=>r(10,w=!0),()=>r(10,w=!1),function(){C=this.value,r(17,C)},()=>r(11,S=!0),()=>r(11,S=!1),function(){_=this.value,r(19,_)},()=>r(12,A=!0),()=>r(12,A=!1),function(e){q[e?"unshift":"push"](()=>{s=e,r(25,s)})},()=>z(),()=>$(),function(){B=this.value,r(20,B)},()=>r(13,T=!0),()=>r(13,T=!1),function(e){q[e?"unshift":"push"](()=>{o=e,r(26,o)})},()=>j(),()=>V(),function(){I=this.value,r(21,I)},()=>r(14,P=!0),()=>r(14,P=!1),function(){L=this.value,r(22,L)},()=>r(15,D=!0),()=>r(15,D=!1),e=>X(e),function(e){q[e?"unshift":"push"](()=>{a=e,r(3,a)})}]}class nr extends R{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.RegisterFormTitle{font-size:20px;text-transform:uppercase;font-weight:300;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:40px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{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}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.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)}.EmailContainer.Hidden,.UserContainer.Hidden,.PasswordContainer.Hidden,.ConfirmPasswordContainer.Hidden,.SecurityQuestionContainer.Hidden,.SecurityAnswerContainer.Hidden{display:none}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;padding-top:5px;top:55px;line-height:10px}.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-150, #828282);cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}',this.shadowRoot.appendChild(t),N(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},ir,rr,P,{lang:41,disabledfields:42,defaultoptions:43,simplepasswordvalidation:0,clientstyling:44,clientstylingurl:45,translationurl:46,savecredentials:1,tempopcustomization:2},null,[-1,-1,-1]),e&&(e.target&&ct(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["lang","disabledfields","defaultoptions","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials","tempopcustomization"]}get lang(){return this.$$.ctx[41]}set lang(e){this.$$set({lang:e}),m()}get disabledfields(){return this.$$.ctx[42]}set disabledfields(e){this.$$set({disabledfields:e}),m()}get defaultoptions(){return this.$$.ctx[43]}set defaultoptions(e){this.$$set({defaultoptions:e}),m()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),m()}get clientstyling(){return this.$$.ctx[44]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[45]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[46]}set translationurl(e){this.$$set({translationurl:e}),m()}get savecredentials(){return this.$$.ctx[1]}set savecredentials(e){this.$$set({savecredentials:e}),m()}get tempopcustomization(){return this.$$.ctx[2]}set tempopcustomization(e){this.$$set({tempopcustomization:e}),m()}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",nr),nr});
2
2
  //# sourceMappingURL=general-player-register-form-step1.js.map