@everymatrix/general-player-register-form-step2-nd 1.87.25 → 1.87.27

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,4 +1,4 @@
1
- "use strict";var Ba=Object.defineProperty,Oa=Object.defineProperties;var Ma=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var Da=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable;var kt=(e,t,r)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))Da.call(t,r)&&kt(e,r,t[r]);if(vr)for(var r of vr(t))Na.call(t,r)&&kt(e,r,t[r]);return e},yr=(e,t)=>Oa(e,Ma(t));var Pe=(e,t,r)=>(kt(e,typeof t!="symbol"?t+"":t,r),r);var wr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(l){n(l)}},o=u=>{try{s(r.throw(u))}catch(l){n(l)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function xe(){}function mn(e){return e()}function _r(){return Object.create(null)}function Ce(e){e.forEach(mn)}function or(e){return typeof e=="function"}function gn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Sa(e){return Object.keys(e).length===0}function pn(e,...t){if(e==null){for(const a of t)a(void 0);return xe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ia(e,t,r){e.$$.on_destroy.push(pn(t,r))}function g(e,t){e.appendChild(t)}function Ha(e,t,r){const a=La(e);if(!a.getElementById(t)){const n=T("style");n.id=t,n.textContent=r,Ua(a,n)}}function La(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ua(e,t){return g(e.head||e,t),t.sheet}function pe(e,t,r){e.insertBefore(t,r||null)}function ce(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function T(e){return document.createElement(e)}function _t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function I(e){return document.createTextNode(e)}function ne(){return I(" ")}function vn(){return I("")}function K(e,t,r,a){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r,a)}function E(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Aa(e){return Array.from(e.childNodes)}function ae(e,t){t=""+t,e.data!==t&&(e.data=t)}function be(e,t){e.value=t==null?"":t}function Me(e,t,r){for(let a=0;a<e.options.length;a+=1){const n=e.options[a];if(n.__value===t){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ct(e){const t=e.querySelector(":checked");return t&&t.__value}function ka(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let gt;function mt(e){gt=e}function Fa(){if(!gt)throw new Error("Function called outside component initialization");return gt}function Ra(e){Fa().$$.on_mount.push(e)}const ze=[],Xt=[];let Qe=[];const Tr=[],Ga=Promise.resolve();let Vt=!1;function $a(){Vt||(Vt=!0,Ga.then(Oe))}function Ge(e){Qe.push(e)}const Ft=new Set;let qe=0;function Oe(){if(qe!==0)return;const e=gt;do{try{for(;qe<ze.length;){const t=ze[qe];qe++,mt(t),Ya(t.$$)}}catch(t){throw ze.length=0,qe=0,t}for(mt(null),ze.length=0,qe=0;Xt.length;)Xt.pop()();for(let t=0;t<Qe.length;t+=1){const r=Qe[t];Ft.has(r)||(Ft.add(r),r())}Qe.length=0}while(ze.length);for(;Tr.length;)Tr.pop()();Vt=!1,Ft.clear(),mt(e)}function Ya(e){if(e.fragment!==null){e.update(),Ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ge)}}function ja(e){const t=[],r=[];Qe.forEach(a=>e.indexOf(a)===-1?t.push(a):r.push(a)),r.forEach(a=>a()),Qe=t}const Wa=new Set;function qa(e,t){e&&e.i&&(Wa.delete(e),e.i(t))}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Xa(e,t,r){const{fragment:a,after_update:n}=e.$$;a&&a.m(t,r),Ge(()=>{const i=e.$$.on_mount.map(mn).filter(or);e.$$.on_destroy?e.$$.on_destroy.push(...i):Ce(i),e.$$.on_mount=[]}),n.forEach(Ge)}function Va(e,t){const r=e.$$;r.fragment!==null&&(ja(r.after_update),Ce(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function za(e,t){e.$$.dirty[0]===-1&&(ze.push(e),$a(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Qa(e,t,r,a,n,i,o=null,s=[-1]){const u=gt;mt(e);const l=e.$$={fragment:null,ctx:[],props:i,update:xe,not_equal:n,bound:_r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:_r(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let h=!1;if(l.ctx=r?r(e,t.props||{},(d,m,...c)=>{const f=c.length?c[0]:m;return l.ctx&&n(l.ctx[d],l.ctx[d]=f)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](f),h&&za(e,d)),m}):[],l.update(),h=!0,Ce(l.before_update),l.fragment=a?a(l.ctx):!1,t.target){if(t.hydrate){const d=Aa(t.target);l.fragment&&l.fragment.l(d),d.forEach(ce)}else l.fragment&&l.fragment.c();t.intro&&qa(e.$$.fragment),Xa(e,t.target,t.anchor),Oe()}mt(u)}let bn;typeof HTMLElement=="function"&&(bn=class extends HTMLElement{constructor(t,r,a){super();Pe(this,"$$ctor");Pe(this,"$$s");Pe(this,"$$c");Pe(this,"$$cn",!1);Pe(this,"$$d",{});Pe(this,"$$r",!1);Pe(this,"$$p_d",{});Pe(this,"$$l",{});Pe(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,a&&this.attachShadow({mode:"open"})}addEventListener(t,r,a){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,a)}removeEventListener(t,r,a){if(super.removeEventListener(t,r,a),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return wr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=T("slot"),i!=="default"&&E(o,"name",i)},m:function(l,h){pe(l,o,h)},d:function(l){l&&ce(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},a=ka(this);for(const i of this.$$s)i in a&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=Et(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yr(br({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=Et(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,r,a){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Et(t,a,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Et(e,t,r,a){var i;const n=(i=r[e])==null?void 0:i.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!a||!r[e])return t;if(a==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Za(e,t,r,a,n,i){let o=class extends bn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(u){var l;u=Et(s,u,t),this.$$d[s]=u,(l=this.$$c)==null||l.$set({[s]:u})}})}),a.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var u;return(u=this.$$c)==null?void 0:u[s]}})}),e.element=o,o}class Ja{constructor(){Pe(this,"$$");Pe(this,"$$set")}$destroy(){Va(this,1),this.$destroy=xe}$on(t,r){if(!or(r))return xe;const a=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return a.push(r),()=>{const n=a.indexOf(r);n!==-1&&a.splice(n,1)}}$set(t){this.$$set&&!Sa(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ka="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ka);function He(e){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(e)}function _e(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function te(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function oe(e){te(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||He(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ei(e,t){te(2,arguments);var r=oe(e),a=_e(t);if(isNaN(a))return new Date(NaN);if(!a)return r;var n=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+a+1,0);var o=i.getDate();return n>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function ti(e,t){te(2,arguments);var r=oe(e).getTime(),a=_e(t);return new Date(r+a)}var ri={};function rt(){return ri}function yn(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ni(e,t){te(2,arguments);var r=_e(t);return ei(e,r*12)}function Er(e,t){te(2,arguments);var r=oe(e),a=oe(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}var ai=6e4,ii=36e5,oi=1e3;function si(e){return te(1,arguments),e instanceof Date||He(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ui(e){if(te(1,arguments),!si(e)&&typeof e!="number")return!1;var t=oe(e);return!isNaN(Number(t))}function li(e,t){te(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()-a.getFullYear()}function ci(e,t){te(2,arguments);var r=oe(e),a=oe(t),n=Er(r,a),i=Math.abs(li(r,a));r.setFullYear(1584),a.setFullYear(1584);var o=Er(r,a)===-n,s=n*(i-Number(o));return s===0?0:s}function wn(e,t){te(2,arguments);var r=_e(t);return ti(e,-r)}var hi=864e5;function fi(e){te(1,arguments);var t=oe(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),n=r-a;return Math.floor(n/hi)+1}function Ze(e){te(1,arguments);var t=1,r=oe(e),a=r.getUTCDay(),n=(a<t?7:0)+a-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function _n(e){te(1,arguments);var t=oe(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=Ze(a),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Ze(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function di(e){te(1,arguments);var t=_n(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Ze(r);return a}var mi=6048e5;function Tn(e){te(1,arguments);var t=oe(e),r=Ze(t).getTime()-di(t).getTime();return Math.round(r/mi)+1}function je(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=rt(),d=_e((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=oe(e),c=m.getUTCDay(),f=(c<d?7:0)+c-d;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function sr(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=oe(e),d=h.getUTCFullYear(),m=rt(),c=_e((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(u=m.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,c),f.setUTCHours(0,0,0,0);var p=je(f,t),x=new Date(0);x.setUTCFullYear(d,0,c),x.setUTCHours(0,0,0,0);var B=je(x,t);return h.getTime()>=p.getTime()?d+1:h.getTime()>=B.getTime()?d:d-1}function gi(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=rt(),d=_e((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),m=sr(e,t),c=new Date(0);c.setUTCFullYear(m,0,d),c.setUTCHours(0,0,0,0);var f=je(c,t);return f}var pi=6048e5;function En(e,t){te(1,arguments);var r=oe(e),a=je(r,t).getTime()-gi(r,t).getTime();return Math.round(a/pi)+1}function V(e,t){for(var r=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return r+a}var ke={y:function(t,r){var a=t.getUTCFullYear(),n=a>0?a:1-a;return V(r==="yy"?n%100:n,r.length)},M:function(t,r){var a=t.getUTCMonth();return r==="M"?String(a+1):V(a+1,2)},d:function(t,r){return V(t.getUTCDate(),r.length)},a:function(t,r){var a=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,r){return V(t.getUTCHours()%12||12,r.length)},H:function(t,r){return V(t.getUTCHours(),r.length)},m:function(t,r){return V(t.getUTCMinutes(),r.length)},s:function(t,r){return V(t.getUTCSeconds(),r.length)},S:function(t,r){var a=r.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return V(i,r.length)}},Xe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vi={G:function(t,r,a){var n=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return ke.y(t,r)},Y:function(t,r,a,n){var i=sr(t,n),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return V(s,2)}return r==="Yo"?a.ordinalNumber(o,{unit:"year"}):V(o,r.length)},R:function(t,r){var a=_n(t);return V(a,r.length)},u:function(t,r){var a=t.getUTCFullYear();return V(a,r.length)},Q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return V(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return V(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){var n=t.getUTCMonth();switch(r){case"M":case"MM":return ke.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){var n=t.getUTCMonth();switch(r){case"L":return String(n+1);case"LL":return V(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){var i=En(t,n);return r==="wo"?a.ordinalNumber(i,{unit:"week"}):V(i,r.length)},I:function(t,r,a){var n=Tn(t);return r==="Io"?a.ordinalNumber(n,{unit:"week"}):V(n,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):ke.d(t,r)},D:function(t,r,a){var n=fi(t);return r==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):V(n,r.length)},E:function(t,r,a){var n=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return V(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return V(o,r.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,a){var n=t.getUTCDay(),i=n===0?7:n;switch(r){case"i":return String(i);case"ii":return V(i,r.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,a){var n=t.getUTCHours(),i;switch(n===12?i=Xe.noon:n===0?i=Xe.midnight:i=n/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,a){var n=t.getUTCHours(),i;switch(n>=17?i=Xe.evening:n>=12?i=Xe.afternoon:n>=4?i=Xe.morning:i=Xe.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return ke.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ke.H(t,r)},K:function(t,r,a){var n=t.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(n,{unit:"hour"}):V(n,r.length)},k:function(t,r,a){var n=t.getUTCHours();return n===0&&(n=24),r==="ko"?a.ordinalNumber(n,{unit:"hour"}):V(n,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ke.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ke.s(t,r)},S:function(t,r){return ke.S(t,r)},X:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Pr(o);case"XXXX":case"XX":return Ye(o);case"XXXXX":case"XXX":default:return Ye(o,":")}},x:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Pr(o);case"xxxx":case"xx":return Ye(o);case"xxxxx":case"xxx":default:return Ye(o,":")}},O:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+xr(o,":");case"OOOO":default:return"GMT"+Ye(o,":")}},z:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+xr(o,":");case"zzzz":default:return"GMT"+Ye(o,":")}},t:function(t,r,a,n){var i=n._originalDate||t,o=Math.floor(i.getTime()/1e3);return V(o,r.length)},T:function(t,r,a,n){var i=n._originalDate||t,o=i.getTime();return V(o,r.length)}};function xr(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),i=a%60;if(i===0)return r+String(n);var o=t;return r+String(n)+o+V(i,2)}function Pr(e,t){if(e%60===0){var r=e>0?"-":"+";return r+V(Math.abs(e)/60,2)}return Ye(e,t)}function Ye(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e),i=V(Math.floor(n/60),2),o=V(n%60,2);return a+i+r+o}var Cr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},xn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},bi=function(t,r){var a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return Cr(t,r);var o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Cr(n,r)).replace("{{time}}",xn(i,r))},zt={p:xn,P:bi},yi=["D","DD"],wi=["YY","YYYY"];function Pn(e){return yi.indexOf(e)!==-1}function Cn(e){return wi.indexOf(e)!==-1}function Bt(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var _i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ti=function(t,r,a){var n,i=_i[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function Rt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,a=e.formats[r]||e.formats[e.defaultWidth];return a}}var Ei={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ci={date:Rt({formats:Ei,defaultWidth:"full"}),time:Rt({formats:xi,defaultWidth:"full"}),dateTime:Rt({formats:Pi,defaultWidth:"full"})},Bi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oi=function(t,r,a,n){return Bi[t]};function ht(e){return function(t,r){var a=r!=null&&r.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return n[l]}}var Mi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Di={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ni={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Si={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ii={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Li=function(t,r){var a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ui={ordinalNumber:Li,era:ht({values:Mi,defaultWidth:"wide"}),quarter:ht({values:Di,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ht({values:Ni,defaultWidth:"wide"}),day:ht({values:Si,defaultWidth:"wide"}),dayPeriod:ht({values:Ii,defaultWidth:"wide",formattingValues:Hi,defaultFormattingWidth:"wide"})};function ft(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var o=i[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ki(s,function(d){return d.test(o)}):Ai(s,function(d){return d.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var h=t.slice(o.length);return{value:l,rest:h}}}function Ai(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ki(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Fi(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var n=a[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var Ri=/^(\d+)(th|st|nd|rd)?/i,Gi=/\d+/i,$i={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yi={any:[/^b/i,/^(a|c)/i]},ji={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wi={any:[/1/i,/2/i,/3/i,/4/i]},qi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Xi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ji={ordinalNumber:Fi({matchPattern:Ri,parsePattern:Gi,valueCallback:function(t){return parseInt(t,10)}}),era:ft({matchPatterns:$i,defaultMatchWidth:"wide",parsePatterns:Yi,defaultParseWidth:"any"}),quarter:ft({matchPatterns:ji,defaultMatchWidth:"wide",parsePatterns:Wi,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ft({matchPatterns:qi,defaultMatchWidth:"wide",parsePatterns:Xi,defaultParseWidth:"any"}),day:ft({matchPatterns:Vi,defaultMatchWidth:"wide",parsePatterns:zi,defaultParseWidth:"any"}),dayPeriod:ft({matchPatterns:Qi,defaultMatchWidth:"any",parsePatterns:Zi,defaultParseWidth:"any"})},Bn={code:"en-US",formatDistance:Ti,formatLong:Ci,formatRelative:Oi,localize:Ui,match:Ji,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,to=/^'([^]*?)'?$/,ro=/''/g,no=/[a-zA-Z]/;function Br(e,t,r){var a,n,i,o,s,u,l,h,d,m,c,f,p,x;te(2,arguments);var B=String(t),O=rt(),P=(a=(n=void 0)!==null&&n!==void 0?n:O.locale)!==null&&a!==void 0?a:Bn,D=_e((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(l=O.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=_e((d=(m=(c=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&c!==void 0?c:O.weekStartsOn)!==null&&m!==void 0?m:(p=O.locale)===null||p===void 0||(x=p.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var z=oe(e);if(!ui(z))throw new RangeError("Invalid time value");var q=yn(z),X=wn(z,q),ye={firstWeekContainsDate:D,weekStartsOn:k,locale:P,_originalDate:z},he=B.match(eo).map(function(M){var N=M[0];if(N==="p"||N==="P"){var $=zt[N];return $(M,P.formatLong)}return M}).join("").match(Ki).map(function(M){if(M==="''")return"'";var N=M[0];if(N==="'")return ao(M);var $=vi[N];if($)return Cn(M)&&Bt(M,t,String(e)),Pn(M)&&Bt(M,t,String(e)),$(X,M,P.localize,ye);if(N.match(no))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return M}).join("");return he}function ao(e){var t=e.match(to);return t?t[1].replace(ro,"'"):e}function io(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function oo(e,t){if(e){if(typeof e=="string")return Or(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(e,t):void 0}}function Mr(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oo(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw i}}}}function b(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qt(e,t){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Qt(e,t)}function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qt(e,t)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(e)}function On(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(On=function(){return!!e})()}function so(e,t){if(t&&(He(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function R(e){var t=On();return function(){var r,a=Ot(e);if(t){var n=Ot(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return so(this,r)}}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(e,t){if(He(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(He(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mn(e){var t=uo(e,"string");return He(t)=="symbol"?t:t+""}function lo(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Mn(a.key),a)}}function U(e,t,r){return t&&lo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,r){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var co=10,Dn=function(){function e(){L(this,e),v(this,"priority",void 0),v(this,"subPriority",0)}return U(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),ho=function(e){F(r,e);var t=R(r);function r(a,n,i,o,s){var u;return L(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return U(r,[{key:"validate",value:function(n,i){return this.validateValue(n,this.value,i)}},{key:"set",value:function(n,i,o){return this.setValue(n,i,this.value,o)}}]),r}(Dn),fo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",co),v(b(a),"subPriority",-1),a}return U(r,[{key:"set",value:function(n,i){if(i.timestampIsSet)return n;var o=new Date(0);return o.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),o.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),o}}]),r}(Dn),W=function(){function e(){L(this,e),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return U(e,[{key:"run",value:function(r,a,n,i){var o=this.parse(r,a,n,i);return o?{setter:new ho(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),mo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",140),v(b(a),"incompatibleTokens",["R","u","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}},{key:"set",value:function(n,i,o){return i.era=o,n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),me={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},De={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ge(e,t){return e&&{value:t(e.value),rest:e.rest}}function ie(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ne(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:a*(n*ii+i*ai+o*oi),rest:t.slice(r[0].length)}}function Nn(e){return ie(me.anyDigitsSigned,e)}function le(e,t){switch(e){case 1:return ie(me.singleDigit,t);case 2:return ie(me.twoDigits,t);case 3:return ie(me.threeDigits,t);case 4:return ie(me.fourDigits,t);default:return ie(new RegExp("^\\d{1,"+e+"}"),t)}}function Mt(e,t){switch(e){case 1:return ie(me.singleDigitSigned,t);case 2:return ie(me.twoDigitsSigned,t);case 3:return ie(me.threeDigitsSigned,t);case 4:return ie(me.fourDigitsSigned,t);default:return ie(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ur(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Sn(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var i=a+50,o=Math.floor(i/100)*100,s=e>=i%100;n=e+o-(s?100:0)}return r?n:1-n}function In(e){return e%400===0||e%4===0&&e%100!==0}var go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return ge(le(4,n),s);case"yo":return ge(o.ordinalNumber(n,{unit:"year"}),s);default:return ge(le(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o){var s=n.getUTCFullYear();if(o.isTwoDigitYear){var u=Sn(o.year,s);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var l=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(l,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),po=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return ge(le(4,n),s);case"Yo":return ge(o.ordinalNumber(n,{unit:"year"}),s);default:return ge(le(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o,s){var u=sr(n,s);if(o.isTwoDigitYear){var l=Sn(o.year,u);return n.setUTCFullYear(l,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),je(n,s)}var h=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(h,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),je(n,s)}}]),r}(W),vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i){return Mt(i==="R"?4:i.length,n)}},{key:"set",value:function(n,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Ze(s)}}]),r}(W),bo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i){return Mt(i==="u"?4:i.length,n)}},{key:"set",value:function(n,i,o){return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",120),v(b(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"Q":case"QQ":return le(i.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",120),v(b(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"q":case"qq":return le(i.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),_o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(b(a),"priority",110),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l-1};switch(i){case"M":return ge(ie(me.month,n),s);case"MM":return ge(le(2,n),s);case"Mo":return ge(o.ordinalNumber(n,{unit:"month"}),s);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(W),To=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",110),v(b(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l-1};switch(i){case"L":return ge(ie(me.month,n),s);case"LL":return ge(le(2,n),s);case"Lo":return ge(o.ordinalNumber(n,{unit:"month"}),s);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(W);function Eo(e,t,r){te(2,arguments);var a=oe(e),n=_e(t),i=En(a,r)-n;return a.setUTCDate(a.getUTCDate()-i*7),a}var xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",100),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"w":return ie(me.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o,s){return je(Eo(n,o,s),s)}}]),r}(W);function Po(e,t){te(2,arguments);var r=oe(e),a=_e(t),n=Tn(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var Co=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",100),v(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"I":return ie(me.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o){return Ze(Po(n,o))}}]),r}(W),Bo=[31,28,31,30,31,30,31,31,30,31,30,31],Oo=[31,29,31,30,31,30,31,31,30,31,30,31],Mo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"subPriority",1),v(b(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"d":return ie(me.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=In(o),u=n.getUTCMonth();return s?i>=1&&i<=Oo[u]:i>=1&&i<=Bo[u]}},{key:"set",value:function(n,i,o){return n.setUTCDate(o),n.setUTCHours(0,0,0,0),n}}]),r}(W),Do=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"subpriority",1),v(b(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"D":case"DD":return ie(me.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=In(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(n,i,o){return n.setUTCMonth(0,o),n.setUTCHours(0,0,0,0),n}}]),r}(W);function lr(e,t,r){var a,n,i,o,s,u,l,h;te(2,arguments);var d=rt(),m=_e((a=(n=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&a!==void 0?a:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=oe(e),f=_e(t),p=c.getUTCDay(),x=f%7,B=(x+7)%7,O=(B<m?7:0)+f-p;return c.setUTCDate(c.getUTCDate()+O),c}var No=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=lr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(W),So=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return ge(le(i.length,n),u);case"eo":return ge(o.ordinalNumber(n,{unit:"day"}),u);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=lr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(W),Io=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return ge(le(i.length,n),u);case"co":return ge(o.ordinalNumber(n,{unit:"day"}),u);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=lr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(W);function Ho(e,t){te(2,arguments);var r=_e(t);r%7===0&&(r=r-7);var a=1,n=oe(e),i=n.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<a?7:0)+r-i;return n.setUTCDate(n.getUTCDate()+u),n}var Lo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return le(i.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return ge(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return ge(o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ge(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ge(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(n,i){return i>=1&&i<=7}},{key:"set",value:function(n,i,o){return n=Ho(n,o),n.setUTCHours(0,0,0,0),n}}]),r}(W),Uo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(ur(o),0,0,0),n}}]),r}(W),Ao=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(ur(o),0,0,0),n}}]),r}(W),ko=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["a","b","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(ur(o),0,0,0),n}}]),r}(W),Fo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["H","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"h":return ie(me.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=12}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):!s&&o===12?n.setUTCHours(0,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(W),Ro=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"H":return ie(me.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=23}},{key:"set",value:function(n,i,o){return n.setUTCHours(o,0,0,0),n}}]),r}(W),Go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["h","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"K":return ie(me.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(W),$o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"k":return ie(me.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=24}},{key:"set",value:function(n,i,o){var s=o<=24?o%24:o;return n.setUTCHours(s,0,0,0),n}}]),r}(W),Yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",60),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"m":return ie(me.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCMinutes(o,0,0),n}}]),r}(W),jo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",50),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"s":return ie(me.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return le(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCSeconds(o,0),n}}]),r}(W),Wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",30),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return ge(le(i.length,n),o)}},{key:"set",value:function(n,i,o){return n.setUTCMilliseconds(o),n}}]),r}(W),qo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",10),v(b(a),"incompatibleTokens",["t","T","x"]),a}return U(r,[{key:"parse",value:function(n,i){switch(i){case"X":return Ne(De.basicOptionalMinutes,n);case"XX":return Ne(De.basic,n);case"XXXX":return Ne(De.basicOptionalSeconds,n);case"XXXXX":return Ne(De.extendedOptionalSeconds,n);case"XXX":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(W),Xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",10),v(b(a),"incompatibleTokens",["t","T","X"]),a}return U(r,[{key:"parse",value:function(n,i){switch(i){case"x":return Ne(De.basicOptionalMinutes,n);case"xx":return Ne(De.basic,n);case"xxxx":return Ne(De.basicOptionalSeconds,n);case"xxxxx":return Ne(De.extendedOptionalSeconds,n);case"xxx":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(W),Vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",40),v(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Nn(n)}},{key:"set",value:function(n,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(W),zo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",20),v(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Nn(n)}},{key:"set",value:function(n,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(W),Qo={G:new mo,y:new go,Y:new po,R:new vo,u:new bo,Q:new yo,q:new wo,M:new _o,L:new To,w:new xo,I:new Co,d:new Mo,D:new Do,E:new No,e:new So,c:new Io,i:new Lo,a:new Uo,b:new Ao,B:new ko,h:new Fo,H:new Ro,K:new Go,k:new $o,m:new Yo,s:new jo,S:new Wo,X:new qo,x:new Xo,t:new Vo,T:new zo},Zo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ko=/^'([^]*?)'?$/,es=/''/g,ts=/\S/,rs=/[a-zA-Z]/;function ns(e,t,r,a){var n,i,o,s,u,l,h,d,m,c,f,p,x,B;te(3,arguments);var O=String(e),P=String(t),D=rt(),k=(n=(i=void 0)!==null&&i!==void 0?i:D.locale)!==null&&n!==void 0?n:Bn;if(!k.match)throw new RangeError("locale must contain match property");var z=_e((o=(s=(u=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&u!==void 0?u:D.firstWeekContainsDate)!==null&&s!==void 0?s:(h=D.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=_e((m=(c=(f=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&f!==void 0?f:D.weekStartsOn)!==null&&c!==void 0?c:(x=D.locale)===null||x===void 0||(B=x.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&m!==void 0?m:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return O===""?oe(r):new Date(NaN);var X={firstWeekContainsDate:z,weekStartsOn:q,locale:k},ye=[new fo],he=P.match(Jo).map(function(S){var C=S[0];if(C in zt){var J=zt[C];return J(S,k.formatLong)}return S}).join("").match(Zo),M=[],N=Mr(he),$;try{var Q=function(){var C=$.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&Cn(C)&&Bt(C,P,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Pn(C)&&Bt(C,P,e);var J=C[0],Be=Qo[J];if(Be){var Le=Be.incompatibleTokens;if(Array.isArray(Le)){var Te=M.find(function($e){return Le.includes($e.token)||$e.token===J});if(Te)throw new RangeError("The format string mustn't contain `".concat(Te.fullToken,"` and `").concat(C,"` at the same time"))}else if(Be.incompatibleTokens==="*"&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));M.push({token:J,fullToken:C});var Ue=Be.run(O,C,k.match,X);if(!Ue)return{v:new Date(NaN)};ye.push(Ue.setter),O=Ue.rest}else{if(J.match(rs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(C==="''"?C="'":J==="'"&&(C=as(C)),O.indexOf(C)===0)O=O.slice(C.length);else return{v:new Date(NaN)}}};for(N.s();!($=N.n()).done;){var ee=Q();if(He(ee)==="object")return ee.v}}catch(S){N.e(S)}finally{N.f()}if(O.length>0&&ts.test(O))return new Date(NaN);var w=ye.map(function(S){return S.priority}).sort(function(S,C){return C-S}).filter(function(S,C,J){return J.indexOf(S)===C}).map(function(S){return ye.filter(function(C){return C.priority===S}).sort(function(C,J){return J.subPriority-C.subPriority})}).map(function(S){return S[0]}),Y=oe(r);if(isNaN(Y.getTime()))return new Date(NaN);var y=wn(Y,yn(Y)),G={},Z=Mr(w),fe;try{for(Z.s();!(fe=Z.n()).done;){var ve=fe.value;if(!ve.validate(y,X))return new Date(NaN);var se=ve.set(y,G,X);Array.isArray(se)?(y=se[0],io(G,se[1])):y=se}}catch(S){Z.e(S)}finally{Z.f()}return y}function as(e){return e.match(Ko)[1].replace(es,"'")}function Dr(e,t){te(2,arguments);var r=_e(t);return ni(e,-r)}const Ve=[];function is(e,t){return{subscribe:It(e,t).subscribe}}function It(e,t=xe){let r;const a=new Set;function n(s){if(gn(e,s)&&(e=s,r)){const u=!Ve.length;for(const l of a)l[1](),Ve.push(l,e);if(u){for(let l=0;l<Ve.length;l+=2)Ve[l][0](Ve[l+1]);Ve.length=0}}}function i(s){n(s(e))}function o(s,u=xe){const l=[s,u];return a.add(l),a.size===1&&(r=t(n,i)||xe),s(e),()=>{a.delete(l),a.size===0&&r&&(r(),r=null)}}return{set:n,update:i,subscribe:o}}function nt(e,t,r){const a=!Array.isArray(e),n=a?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return is(r,(o,s)=>{let u=!1;const l=[];let h=0,d=xe;const m=()=>{if(h)return;d();const f=t(a?l[0]:l,o,s);i?o(f):d=or(f)?f:xe},c=n.map((f,p)=>pn(f,x=>{l[p]=x,h&=~(1<<p),u&&m()},()=>{h|=1<<p}));return u=!0,m(),function(){Ce(c),d(),u=!1}})}function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ss=function(t){return us(t)&&!ls(t)};function us(e){return!!e&&typeof e=="object"}function ls(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fs(e)}var cs=typeof Symbol=="function"&&Symbol.for,hs=cs?Symbol.for("react.element"):60103;function fs(e){return e.$$typeof===hs}function ds(e){return Array.isArray(e)?[]:{}}function pt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Je(ds(e),e,t):e}function ms(e,t,r){return e.concat(t).map(function(a){return pt(a,r)})}function gs(e,t){if(!t.customMerge)return Je;var r=t.customMerge(e);return typeof r=="function"?r:Je}function ps(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Nr(e){return Object.keys(e).concat(ps(e))}function Hn(e,t){try{return t in e}catch(r){return!1}}function vs(e,t){return Hn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function bs(e,t,r){var a={};return r.isMergeableObject(e)&&Nr(e).forEach(function(n){a[n]=pt(e[n],r)}),Nr(t).forEach(function(n){vs(e,n)||(Hn(e,n)&&r.isMergeableObject(t[n])?a[n]=gs(n,r)(e[n],t[n],r):a[n]=pt(t[n],r))}),a}function Je(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ms,r.isMergeableObject=r.isMergeableObject||ss,r.cloneUnlessOtherwiseSpecified=pt;var a=Array.isArray(t),n=Array.isArray(e),i=a===n;return i?a?r.arrayMerge(e,t,r):bs(e,t,r):pt(t,r)}Je.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,n){return Je(a,n,r)},{})};var ys=Je,ws=ys;const _s=os(ws);var Zt=function(e,t){return Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Zt(e,t)};function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Se.apply(this,arguments)};function Ts(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function Gt(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a<n;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function $t(e,t){var r=t&&t.cache?t.cache:Ms,a=t&&t.serializer?t.serializer:Bs,n=t&&t.strategy?t.strategy:Ps;return n(e,{cache:r,serializer:a})}function Es(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xs(e,t,r,a){var n=Es(a)?a:r(a),i=t.get(n);return typeof i=="undefined"&&(i=e.call(this,a),t.set(n,i)),i}function Ln(e,t,r){var a=Array.prototype.slice.call(arguments,3),n=r(a),i=t.get(n);return typeof i=="undefined"&&(i=e.apply(this,a),t.set(n,i)),i}function Un(e,t,r,a,n){return r.bind(t,e,a,n)}function Ps(e,t){var r=e.length===1?xs:Ln;return Un(e,this,r,t.cache.create(),t.serializer)}function Cs(e,t){return Un(e,this,Ln,t.cache.create(),t.serializer)}var Bs=function(){return JSON.stringify(arguments)},Os=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Ms={create:function(){return new Os}},Yt={variadic:Cs},Dt=function(){return Dt=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Dt.apply(this,arguments)};var H;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(H||(H={}));var re;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(re||(re={}));var Ke;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ke||(Ke={}));function Sr(e){return e.type===re.literal}function Ds(e){return e.type===re.argument}function An(e){return e.type===re.number}function kn(e){return e.type===re.date}function Fn(e){return e.type===re.time}function Rn(e){return e.type===re.select}function Gn(e){return e.type===re.plural}function Ns(e){return e.type===re.pound}function $n(e){return e.type===re.tag}function Yn(e){return!!(e&&typeof e=="object"&&e.type===Ke.number)}function Jt(e){return!!(e&&typeof e=="object"&&e.type===Ke.dateTime)}var jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ss=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Is(e){var t={};return e.replace(Ss,function(r){var a=r.length;switch(r[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ue=function(){return ue=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ue.apply(this,arguments)};var Hs=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ls(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Hs).filter(function(m){return m.length>0}),r=[],a=0,n=t;a<n.length;a++){var i=n[a],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,h=u;l<h.length;l++){var d=h[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function Us(e){return e.replace(/^(.*?)-/,"")}var Ir=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wn=/^(@+)?(\+|#+)?[rs]?$/g,As=/(\*)(0+)|(#+)(0+)|(0+)/g,qn=/^(0+)$/;function Hr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Wn,function(r,a,n){return typeof n!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):n==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof n=="string"?n.length:0)),""}),t}function Xn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ks(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Lr(e){var t={},r=Xn(e);return r||t}function Fs(e){for(var t={},r=0,a=e;r<a.length;r++){var n=a[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Us(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ue(ue(ue({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return ue(ue({},u),Lr(l))},{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return ue(ue({},u),Lr(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(As,function(u,l,h,d,m,c){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qn.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ir.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ir,function(u,l,h,d,m,c){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&c?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+c.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=n.options[0];i==="w"?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ue(ue({},t),Hr(i)));continue}if(Wn.test(n.stem)){t=ue(ue({},t),Hr(n.stem));continue}var o=Xn(n.stem);o&&(t=ue(ue({},t),o));var s=ks(n.stem);s&&(t=ue(ue({},t),s))}return t}var Tt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Rs(e,t){for(var r="",a=0;a<e.length;a++){var n=e.charAt(a);if(n==="j"){for(var i=0;a+1<e.length&&e.charAt(a+1)===n;)i++,a++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=Gs(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function Gs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,a;r!=="root"&&(a=e.maximize().region);var n=Tt[a||""]||Tt[r||""]||Tt["".concat(r,"-001")]||Tt["001"];return n[0]}var jt,$s=new RegExp("^".concat(jn.source,"*")),Ys=new RegExp("".concat(jn.source,"*$"));function A(e,t){return{start:e,end:t}}var js=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ws=!!String.fromCodePoint,qs=!!Object.fromEntries,Xs=!!String.prototype.codePointAt,Vs=!!String.prototype.trimStart,zs=!!String.prototype.trimEnd,Qs=!!Number.isSafeInteger,Zs=Qs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Kt=!0;try{var Js=zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kt=((jt=Js.exec("a"))===null||jt===void 0?void 0:jt[0])==="a"}catch(e){Kt=!1}var Ur=js?function(t,r,a){return t.startsWith(r,a)}:function(t,r,a){return t.slice(a,a+r.length)===r},er=Ws?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var a="",n=t.length,i=0,o;n>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");a+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return a},Ar=qs?Object.fromEntries:function(t){for(var r={},a=0,n=t;a<n.length;a++){var i=n[a],o=i[0],s=i[1];r[o]=s}return r},Vn=Xs?function(t,r){return t.codePointAt(r)}:function(t,r){var a=t.length;if(!(r<0||r>=a)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===a||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},Ks=Vs?function(t){return t.trimStart()}:function(t){return t.replace($s,"")},eu=zs?function(t){return t.trimEnd()}:function(t){return t.replace(Ys,"")};function zn(e,t){return new RegExp(e,t)}var tr;if(Kt){var kr=zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tr=function(t,r){var a;kr.lastIndex=r;var n=kr.exec(t);return(a=n[1])!==null&&a!==void 0?a:""}}else tr=function(t,r){for(var a=[];;){var n=Vn(t,r);if(n===void 0||Qn(n)||au(n))break;a.push(n),r+=n>=65536?2:1}return er.apply(void 0,a)};var tu=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,a){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,a);if(o.err)return o;n.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:re.pound,location:A(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(H.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&rr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var a=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:re.literal,value:"<".concat(n,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rr(this.char()))return this.error(H.INVALID_TAG,A(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(H.UNMATCHED_CLOSING_TAG,A(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:re.tag,value:n,children:o,location:A(a,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(H.INVALID_TAG,A(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&nu(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var a=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var u=A(a,this.clonePosition());return{val:{type:re.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ru(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(a);this.bump()}return er.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(r==="plural"||r==="selectordinal")||a===125&&t>0?null:(this.bump(),er(a))},e.prototype.parseArgument=function(t,r){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,A(a,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:re.argument,value:n,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(t,r,n,a);default:return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),a=tr(this.message,r),n=r+a.length;this.bumpTo(n);var i=this.clonePosition(),o=A(t,i);return{value:a,location:o}},e.prototype.parseArgumentOptions=function(t,r,a,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,A(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=eu(d.val);if(m.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var c=A(h,this.clonePosition());l={style:m,styleLocation:c}}var f=this.tryParseArgumentClose(n);if(f.err)return f;var p=A(n,this.clonePosition());if(l&&Ur(l==null?void 0:l.style,"::",0)){var x=Ks(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(x,l.styleLocation);return d.err?d:{val:{type:re.number,value:a,location:p,style:d.val},err:null}}else{if(x.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,p);var B=x;this.locale&&(B=Rs(x,this.locale));var m={type:Ke.dateTime,pattern:B,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Is(B):{}},O=s==="date"?re.date:re.time;return{val:{type:O,value:a,location:p,style:m},err:null}}}return{val:{type:s==="number"?re.number:s==="date"?re.date:re.time,value:a,location:p,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,A(P,Dt({},P)));this.bumpSpace();var D=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&D.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),D=this.parseIdentifierIfPossible(),k=d.val}var z=this.tryParsePluralOrSelectOptions(t,s,r,D);if(z.err)return z;var f=this.tryParseArgumentClose(n);if(f.err)return f;var q=A(n,this.clonePosition());return s==="select"?{val:{type:re.select,value:a,options:Ar(z.val),location:q},err:null}:{val:{type:re.plural,value:a,options:Ar(z.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:q},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,A(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var a=[];try{a=Ls(t)}catch(n){return this.error(H.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ke.number,tokens:a,location:r,parsedOptions:this.shouldParseSkeletons?Fs(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,a,n){for(var i,o=!1,s=[],u=new Set,l=n.value,h=n.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(o=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,a);if(f.err)return f;var p=this.tryParseArgumentClose(c);if(p.err)return p;s.push([l,{value:f.val,location:A(c,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(H.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var a=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=A(n,this.clonePosition());return i?(o*=a,Zs(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Vn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ur(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),a=this.message.indexOf(t,r);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),a=this.message.charCodeAt(r+(t>=65536?2:1));return a!=null?a:null},e}();function rr(e){return e>=97&&e<=122||e>=65&&e<=90}function ru(e){return rr(e)||e===47}function nu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Qn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function au(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function nr(e){e.forEach(function(t){if(delete t.location,Rn(t)||Gn(t))for(var r in t.options)delete t.options[r].location,nr(t.options[r].value);else An(t)&&Yn(t.style)||(kn(t)||Fn(t))&&Jt(t.style)?delete t.style.location:$n(t)&&nr(t.children)})}function iu(e,t){t===void 0&&(t={}),t=Dt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new tu(e,t).parse();if(r.err){var a=SyntaxError(H[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return t!=null&&t.captureLocation||nr(r.val),r.val}var et;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(et||(et={}));var Lt=function(e){Ht(t,e);function t(r,a,n){var i=e.call(this,r)||this;return i.code=a,i.originalMessage=n,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Fr=function(e){Ht(t,e);function t(r,a,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(a,'". Options are "').concat(Object.keys(n).join('", "'),'"'),et.INVALID_VALUE,i)||this}return t}(Lt),ou=function(e){Ht(t,e);function t(r,a,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(a),et.INVALID_VALUE,n)||this}return t}(Lt),su=function(e){Ht(t,e);function t(r,a){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(a,'"'),et.MISSING_VALUE,a)||this}return t}(Lt),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function uu(e){return e.length<2?e:e.reduce(function(t,r){var a=t[t.length-1];return!a||a.type!==Ee.literal||r.type!==Ee.literal?t.push(r):a.value+=r.value,t},[])}function lu(e){return typeof e=="function"}function xt(e,t,r,a,n,i,o){if(e.length===1&&Sr(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Sr(h)){s.push({type:Ee.literal,value:h.value});continue}if(Ns(h)){typeof i=="number"&&s.push({type:Ee.literal,value:r.getNumberFormat(t).format(i)});continue}var d=h.value;if(!(n&&d in n))throw new su(d,o);var m=n[d];if(Ds(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?Ee.literal:Ee.object,value:m});continue}if(kn(h)){var c=typeof h.style=="string"?a.date[h.style]:Jt(h.style)?h.style.parsedOptions:void 0;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(Fn(h)){var c=typeof h.style=="string"?a.time[h.style]:Jt(h.style)?h.style.parsedOptions:a.time.medium;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(An(h)){var c=typeof h.style=="string"?a.number[h.style]:Yn(h.style)?h.style.parsedOptions:void 0;c&&c.scale&&(m=m*(c.scale||1)),s.push({type:Ee.literal,value:r.getNumberFormat(t,c).format(m)});continue}if($n(h)){var f=h.children,p=h.value,x=n[p];if(!lu(x))throw new ou(p,"function",o);var B=xt(f,t,r,a,n,i),O=x(B.map(function(k){return k.value}));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map(function(k){return{type:typeof k=="string"?Ee.literal:Ee.object,value:k}}))}if(Rn(h)){var P=h.options[m]||h.options.other;if(!P)throw new Fr(h.value,m,Object.keys(h.options),o);s.push.apply(s,xt(P.value,t,r,a,n));continue}if(Gn(h)){var P=h.options["=".concat(m)];if(!P){if(!Intl.PluralRules)throw new Lt(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var Ma=Object.defineProperty,Da=Object.defineProperties;var Na=Object.getOwnPropertyDescriptors;var br=Object.getOwnPropertySymbols;var Sa=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable;var Ft=(e,t,r)=>t in e?Ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yr=(e,t)=>{for(var r in t||(t={}))Sa.call(t,r)&&Ft(e,r,t[r]);if(br)for(var r of br(t))Ia.call(t,r)&&Ft(e,r,t[r]);return e},wr=(e,t)=>Da(e,Na(t));var Pe=(e,t,r)=>(Ft(e,typeof t!="symbol"?t+"":t,r),r);var _r=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(l){n(l)}},o=u=>{try{s(r.throw(u))}catch(l){n(l)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function xe(){}function gn(e){return e()}function Tr(){return Object.create(null)}function Ce(e){e.forEach(gn)}function sr(e){return typeof e=="function"}function pn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Ha(e){return Object.keys(e).length===0}function vn(e,...t){if(e==null){for(const a of t)a(void 0);return xe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function La(e,t,r){e.$$.on_destroy.push(vn(t,r))}function g(e,t){e.appendChild(t)}function Ua(e,t,r){const a=Aa(e);if(!a.getElementById(t)){const n=T("style");n.id=t,n.textContent=r,ka(a,n)}}function Aa(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ka(e,t){return g(e.head||e,t),t.sheet}function pe(e,t,r){e.insertBefore(t,r||null)}function he(e){e.parentNode&&e.parentNode.removeChild(e)}function Bt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function T(e){return document.createElement(e)}function Tt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function I(e){return document.createTextNode(e)}function ne(){return I(" ")}function bn(){return I("")}function K(e,t,r,a){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r,a)}function E(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Fa(e){return Array.from(e.childNodes)}function ae(e,t){t=""+t,e.data!==t&&(e.data=t)}function be(e,t){e.value=t==null?"":t}function Me(e,t,r){for(let a=0;a<e.options.length;a+=1){const n=e.options[a];if(n.__value===t){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ht(e){const t=e.querySelector(":checked");return t&&t.__value}function Ra(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let pt;function gt(e){pt=e}function Ga(){if(!pt)throw new Error("Function called outside component initialization");return pt}function $a(e){Ga().$$.on_mount.push(e)}const ze=[],Vt=[];let Ze=[];const Er=[],Ya=Promise.resolve();let zt=!1;function ja(){zt||(zt=!0,Ya.then(Oe))}function Ge(e){Ze.push(e)}const Rt=new Set;let qe=0;function Oe(){if(qe!==0)return;const e=pt;do{try{for(;qe<ze.length;){const t=ze[qe];qe++,gt(t),Wa(t.$$)}}catch(t){throw ze.length=0,qe=0,t}for(gt(null),ze.length=0,qe=0;Vt.length;)Vt.pop()();for(let t=0;t<Ze.length;t+=1){const r=Ze[t];Rt.has(r)||(Rt.add(r),r())}Ze.length=0}while(ze.length);for(;Er.length;)Er.pop()();zt=!1,Rt.clear(),gt(e)}function Wa(e){if(e.fragment!==null){e.update(),Ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ge)}}function qa(e){const t=[],r=[];Ze.forEach(a=>e.indexOf(a)===-1?t.push(a):r.push(a)),r.forEach(a=>a()),Ze=t}const Xa=new Set;function Va(e,t){e&&e.i&&(Xa.delete(e),e.i(t))}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function za(e,t,r){const{fragment:a,after_update:n}=e.$$;a&&a.m(t,r),Ge(()=>{const i=e.$$.on_mount.map(gn).filter(sr);e.$$.on_destroy?e.$$.on_destroy.push(...i):Ce(i),e.$$.on_mount=[]}),n.forEach(Ge)}function Qa(e,t){const r=e.$$;r.fragment!==null&&(qa(r.after_update),Ce(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Za(e,t){e.$$.dirty[0]===-1&&(ze.push(e),ja(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ja(e,t,r,a,n,i,o=null,s=[-1]){const u=pt;gt(e);const l=e.$$={fragment:null,ctx:[],props:i,update:xe,not_equal:n,bound:Tr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Tr(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let h=!1;if(l.ctx=r?r(e,t.props||{},(d,m,...c)=>{const f=c.length?c[0]:m;return l.ctx&&n(l.ctx[d],l.ctx[d]=f)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](f),h&&Za(e,d)),m}):[],l.update(),h=!0,Ce(l.before_update),l.fragment=a?a(l.ctx):!1,t.target){if(t.hydrate){const d=Fa(t.target);l.fragment&&l.fragment.l(d),d.forEach(he)}else l.fragment&&l.fragment.c();t.intro&&Va(e.$$.fragment),za(e,t.target,t.anchor),Oe()}gt(u)}let yn;typeof HTMLElement=="function"&&(yn=class extends HTMLElement{constructor(t,r,a){super();Pe(this,"$$ctor");Pe(this,"$$s");Pe(this,"$$c");Pe(this,"$$cn",!1);Pe(this,"$$d",{});Pe(this,"$$r",!1);Pe(this,"$$p_d",{});Pe(this,"$$l",{});Pe(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,a&&this.attachShadow({mode:"open"})}addEventListener(t,r,a){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,a)}removeEventListener(t,r,a){if(super.removeEventListener(t,r,a),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return _r(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=T("slot"),i!=="default"&&E(o,"name",i)},m:function(l,h){pe(l,o,h)},d:function(l){l&&he(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},a=Ra(this);for(const i of this.$$s)i in a&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=xt(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:wr(yr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const o=xt(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,r,a){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(t,a,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function xt(e,t,r,a){var i;const n=(i=r[e])==null?void 0:i.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!a||!r[e])return t;if(a==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ka(e,t,r,a,n,i){let o=class extends yn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(u){var l;u=xt(s,u,t),this.$$d[s]=u,(l=this.$$c)==null||l.$set({[s]:u})}})}),a.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var u;return(u=this.$$c)==null?void 0:u[s]}})}),e.element=o,o}class ei{constructor(){Pe(this,"$$");Pe(this,"$$set")}$destroy(){Qa(this,1),this.$destroy=xe}$on(t,r){if(!sr(r))return xe;const a=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return a.push(r),()=>{const n=a.indexOf(r);n!==-1&&a.splice(n,1)}}$set(t){this.$$set&&!Ha(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ti="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ti);function He(e){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(e)}function _e(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function te(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function oe(e){te(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||He(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ri(e,t){te(2,arguments);var r=oe(e),a=_e(t);if(isNaN(a))return new Date(NaN);if(!a)return r;var n=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+a+1,0);var o=i.getDate();return n>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function ni(e,t){te(2,arguments);var r=oe(e).getTime(),a=_e(t);return new Date(r+a)}var ai={};function nt(){return ai}function wn(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ii(e,t){te(2,arguments);var r=_e(t);return ri(e,r*12)}function xr(e,t){te(2,arguments);var r=oe(e),a=oe(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}var oi=6e4,si=36e5,ui=1e3;function li(e){return te(1,arguments),e instanceof Date||He(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ci(e){if(te(1,arguments),!li(e)&&typeof e!="number")return!1;var t=oe(e);return!isNaN(Number(t))}function hi(e,t){te(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()-a.getFullYear()}function fi(e,t){te(2,arguments);var r=oe(e),a=oe(t),n=xr(r,a),i=Math.abs(hi(r,a));r.setFullYear(1584),a.setFullYear(1584);var o=xr(r,a)===-n,s=n*(i-Number(o));return s===0?0:s}function _n(e,t){te(2,arguments);var r=_e(t);return ni(e,-r)}var di=864e5;function mi(e){te(1,arguments);var t=oe(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),n=r-a;return Math.floor(n/di)+1}function Je(e){te(1,arguments);var t=1,r=oe(e),a=r.getUTCDay(),n=(a<t?7:0)+a-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function Tn(e){te(1,arguments);var t=oe(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=Je(a),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Je(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function gi(e){te(1,arguments);var t=Tn(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Je(r);return a}var pi=6048e5;function En(e){te(1,arguments);var t=oe(e),r=Je(t).getTime()-gi(t).getTime();return Math.round(r/pi)+1}function je(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=nt(),d=_e((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=oe(e),c=m.getUTCDay(),f=(c<d?7:0)+c-d;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function ur(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=oe(e),d=h.getUTCFullYear(),m=nt(),c=_e((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(u=m.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,c),f.setUTCHours(0,0,0,0);var p=je(f,t),x=new Date(0);x.setUTCFullYear(d,0,c),x.setUTCHours(0,0,0,0);var B=je(x,t);return h.getTime()>=p.getTime()?d+1:h.getTime()>=B.getTime()?d:d-1}function vi(e,t){var r,a,n,i,o,s,u,l;te(1,arguments);var h=nt(),d=_e((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),m=ur(e,t),c=new Date(0);c.setUTCFullYear(m,0,d),c.setUTCHours(0,0,0,0);var f=je(c,t);return f}var bi=6048e5;function xn(e,t){te(1,arguments);var r=oe(e),a=je(r,t).getTime()-vi(r,t).getTime();return Math.round(a/bi)+1}function V(e,t){for(var r=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return r+a}var ke={y:function(t,r){var a=t.getUTCFullYear(),n=a>0?a:1-a;return V(r==="yy"?n%100:n,r.length)},M:function(t,r){var a=t.getUTCMonth();return r==="M"?String(a+1):V(a+1,2)},d:function(t,r){return V(t.getUTCDate(),r.length)},a:function(t,r){var a=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,r){return V(t.getUTCHours()%12||12,r.length)},H:function(t,r){return V(t.getUTCHours(),r.length)},m:function(t,r){return V(t.getUTCMinutes(),r.length)},s:function(t,r){return V(t.getUTCSeconds(),r.length)},S:function(t,r){var a=r.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return V(i,r.length)}},Xe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yi={G:function(t,r,a){var n=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return ke.y(t,r)},Y:function(t,r,a,n){var i=ur(t,n),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return V(s,2)}return r==="Yo"?a.ordinalNumber(o,{unit:"year"}):V(o,r.length)},R:function(t,r){var a=Tn(t);return V(a,r.length)},u:function(t,r){var a=t.getUTCFullYear();return V(a,r.length)},Q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return V(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return V(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){var n=t.getUTCMonth();switch(r){case"M":case"MM":return ke.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){var n=t.getUTCMonth();switch(r){case"L":return String(n+1);case"LL":return V(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){var i=xn(t,n);return r==="wo"?a.ordinalNumber(i,{unit:"week"}):V(i,r.length)},I:function(t,r,a){var n=En(t);return r==="Io"?a.ordinalNumber(n,{unit:"week"}):V(n,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):ke.d(t,r)},D:function(t,r,a){var n=mi(t);return r==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):V(n,r.length)},E:function(t,r,a){var n=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return V(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return V(o,r.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,a){var n=t.getUTCDay(),i=n===0?7:n;switch(r){case"i":return String(i);case"ii":return V(i,r.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,a){var n=t.getUTCHours(),i;switch(n===12?i=Xe.noon:n===0?i=Xe.midnight:i=n/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,a){var n=t.getUTCHours(),i;switch(n>=17?i=Xe.evening:n>=12?i=Xe.afternoon:n>=4?i=Xe.morning:i=Xe.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return ke.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ke.H(t,r)},K:function(t,r,a){var n=t.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(n,{unit:"hour"}):V(n,r.length)},k:function(t,r,a){var n=t.getUTCHours();return n===0&&(n=24),r==="ko"?a.ordinalNumber(n,{unit:"hour"}):V(n,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ke.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ke.s(t,r)},S:function(t,r){return ke.S(t,r)},X:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Cr(o);case"XXXX":case"XX":return Ye(o);case"XXXXX":case"XXX":default:return Ye(o,":")}},x:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Cr(o);case"xxxx":case"xx":return Ye(o);case"xxxxx":case"xxx":default:return Ye(o,":")}},O:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Pr(o,":");case"OOOO":default:return"GMT"+Ye(o,":")}},z:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Pr(o,":");case"zzzz":default:return"GMT"+Ye(o,":")}},t:function(t,r,a,n){var i=n._originalDate||t,o=Math.floor(i.getTime()/1e3);return V(o,r.length)},T:function(t,r,a,n){var i=n._originalDate||t,o=i.getTime();return V(o,r.length)}};function Pr(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),i=a%60;if(i===0)return r+String(n);var o=t;return r+String(n)+o+V(i,2)}function Cr(e,t){if(e%60===0){var r=e>0?"-":"+";return r+V(Math.abs(e)/60,2)}return Ye(e,t)}function Ye(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e),i=V(Math.floor(n/60),2),o=V(n%60,2);return a+i+r+o}var Br=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Pn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},wi=function(t,r){var a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return Br(t,r);var o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Br(n,r)).replace("{{time}}",Pn(i,r))},Qt={p:Pn,P:wi},_i=["D","DD"],Ti=["YY","YYYY"];function Cn(e){return _i.indexOf(e)!==-1}function Bn(e){return Ti.indexOf(e)!==-1}function Ot(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ei={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xi=function(t,r,a){var n,i=Ei[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function Gt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,a=e.formats[r]||e.formats[e.defaultWidth];return a}}var Pi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ci={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oi={date:Gt({formats:Pi,defaultWidth:"full"}),time:Gt({formats:Ci,defaultWidth:"full"}),dateTime:Gt({formats:Bi,defaultWidth:"full"})},Mi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Di=function(t,r,a,n){return Mi[t]};function ft(e){return function(t,r){var a=r!=null&&r.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return n[l]}}var Ni={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Si={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ii={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Li={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ui={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ai=function(t,r){var a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},ki={ordinalNumber:Ai,era:ft({values:Ni,defaultWidth:"wide"}),quarter:ft({values:Si,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ft({values:Ii,defaultWidth:"wide"}),day:ft({values:Hi,defaultWidth:"wide"}),dayPeriod:ft({values:Li,defaultWidth:"wide",formattingValues:Ui,defaultFormattingWidth:"wide"})};function dt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var o=i[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Ri(s,function(d){return d.test(o)}):Fi(s,function(d){return d.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var h=t.slice(o.length);return{value:l,rest:h}}}function Fi(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Ri(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Gi(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var n=a[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var $i=/^(\d+)(th|st|nd|rd)?/i,Yi=/\d+/i,ji={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wi={any:[/^b/i,/^(a|c)/i]},qi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xi={any:[/1/i,/2/i,/3/i,/4/i]},Vi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ji={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ki={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eo={ordinalNumber:Gi({matchPattern:$i,parsePattern:Yi,valueCallback:function(t){return parseInt(t,10)}}),era:dt({matchPatterns:ji,defaultMatchWidth:"wide",parsePatterns:Wi,defaultParseWidth:"any"}),quarter:dt({matchPatterns:qi,defaultMatchWidth:"wide",parsePatterns:Xi,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:dt({matchPatterns:Vi,defaultMatchWidth:"wide",parsePatterns:zi,defaultParseWidth:"any"}),day:dt({matchPatterns:Qi,defaultMatchWidth:"wide",parsePatterns:Zi,defaultParseWidth:"any"}),dayPeriod:dt({matchPatterns:Ji,defaultMatchWidth:"any",parsePatterns:Ki,defaultParseWidth:"any"})},On={code:"en-US",formatDistance:xi,formatLong:Oi,formatRelative:Di,localize:ki,match:eo,options:{weekStartsOn:0,firstWeekContainsDate:1}},to=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ro=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,no=/^'([^]*?)'?$/,ao=/''/g,io=/[a-zA-Z]/;function Or(e,t,r){var a,n,i,o,s,u,l,h,d,m,c,f,p,x;te(2,arguments);var B=String(t),O=nt(),P=(a=(n=void 0)!==null&&n!==void 0?n:O.locale)!==null&&a!==void 0?a:On,D=_e((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(l=O.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=_e((d=(m=(c=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&c!==void 0?c:O.weekStartsOn)!==null&&m!==void 0?m:(p=O.locale)===null||p===void 0||(x=p.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var z=oe(e);if(!ci(z))throw new RangeError("Invalid time value");var q=wn(z),X=_n(z,q),ye={firstWeekContainsDate:D,weekStartsOn:k,locale:P,_originalDate:z},fe=B.match(ro).map(function(M){var N=M[0];if(N==="p"||N==="P"){var $=Qt[N];return $(M,P.formatLong)}return M}).join("").match(to).map(function(M){if(M==="''")return"'";var N=M[0];if(N==="'")return oo(M);var $=yi[N];if($)return Bn(M)&&Ot(M,t,String(e)),Cn(M)&&Ot(M,t,String(e)),$(X,M,P.localize,ye);if(N.match(io))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return M}).join("");return fe}function oo(e){var t=e.match(no);return t?t[1].replace(ao,"'"):e}function so(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Mr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function uo(e,t){if(e){if(typeof e=="string")return Mr(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(e,t):void 0}}function Dr(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=uo(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw i}}}}function b(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e,t){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zt(e,t)}function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zt(e,t)}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mt(e)}function Mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Mn=function(){return!!e})()}function lo(e,t){if(t&&(He(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function R(e){var t=Mn();return function(){var r,a=Mt(e);if(t){var n=Mt(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return lo(this,r)}}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function co(e,t){if(He(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(He(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dn(e){var t=co(e,"string");return He(t)=="symbol"?t:t+""}function ho(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Dn(a.key),a)}}function U(e,t,r){return t&&ho(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,r){return(t=Dn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fo=10,Nn=function(){function e(){L(this,e),v(this,"priority",void 0),v(this,"subPriority",0)}return U(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),mo=function(e){F(r,e);var t=R(r);function r(a,n,i,o,s){var u;return L(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return U(r,[{key:"validate",value:function(n,i){return this.validateValue(n,this.value,i)}},{key:"set",value:function(n,i,o){return this.setValue(n,i,this.value,o)}}]),r}(Nn),go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",fo),v(b(a),"subPriority",-1),a}return U(r,[{key:"set",value:function(n,i){if(i.timestampIsSet)return n;var o=new Date(0);return o.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),o.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),o}}]),r}(Nn),j=function(){function e(){L(this,e),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return U(e,[{key:"run",value:function(r,a,n,i){var o=this.parse(r,a,n,i);return o?{setter:new mo(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),po=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",140),v(b(a),"incompatibleTokens",["R","u","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}},{key:"set",value:function(n,i,o){return i.era=o,n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),me={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},De={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ge(e,t){return e&&{value:t(e.value),rest:e.rest}}function ie(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ne(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:a*(n*si+i*oi+o*ui),rest:t.slice(r[0].length)}}function Sn(e){return ie(me.anyDigitsSigned,e)}function ce(e,t){switch(e){case 1:return ie(me.singleDigit,t);case 2:return ie(me.twoDigits,t);case 3:return ie(me.threeDigits,t);case 4:return ie(me.fourDigits,t);default:return ie(new RegExp("^\\d{1,"+e+"}"),t)}}function Dt(e,t){switch(e){case 1:return ie(me.singleDigitSigned,t);case 2:return ie(me.twoDigitsSigned,t);case 3:return ie(me.threeDigitsSigned,t);case 4:return ie(me.fourDigitsSigned,t);default:return ie(new RegExp("^-?\\d{1,"+e+"}"),t)}}function lr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function In(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var i=a+50,o=Math.floor(i/100)*100,s=e>=i%100;n=e+o-(s?100:0)}return r?n:1-n}function Hn(e){return e%400===0||e%4===0&&e%100!==0}var vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return ge(ce(4,n),s);case"yo":return ge(o.ordinalNumber(n,{unit:"year"}),s);default:return ge(ce(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o){var s=n.getUTCFullYear();if(o.isTwoDigitYear){var u=In(o.year,s);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var l=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(l,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),bo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return ge(ce(4,n),s);case"Yo":return ge(o.ordinalNumber(n,{unit:"year"}),s);default:return ge(ce(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o,s){var u=ur(n,s);if(o.isTwoDigitYear){var l=In(o.year,u);return n.setUTCFullYear(l,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),je(n,s)}var h=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(h,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),je(n,s)}}]),r}(j),yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i){return Dt(i==="R"?4:i.length,n)}},{key:"set",value:function(n,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Je(s)}}]),r}(j),wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",130),v(b(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i){return Dt(i==="u"?4:i.length,n)}},{key:"set",value:function(n,i,o){return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),_o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",120),v(b(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"Q":case"QQ":return ce(i.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),To=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",120),v(b(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"q":case"qq":return ce(i.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),Eo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(b(a),"priority",110),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l-1};switch(i){case"M":return ge(ie(me.month,n),s);case"MM":return ge(ce(2,n),s);case"Mo":return ge(o.ordinalNumber(n,{unit:"month"}),s);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(j),xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",110),v(b(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l-1};switch(i){case"L":return ge(ie(me.month,n),s);case"LL":return ge(ce(2,n),s);case"Lo":return ge(o.ordinalNumber(n,{unit:"month"}),s);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(j);function Po(e,t,r){te(2,arguments);var a=oe(e),n=_e(t),i=xn(a,r)-n;return a.setUTCDate(a.getUTCDate()-i*7),a}var Co=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",100),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"w":return ie(me.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o,s){return je(Po(n,o,s),s)}}]),r}(j);function Bo(e,t){te(2,arguments);var r=oe(e),a=_e(t),n=En(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var Oo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",100),v(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"I":return ie(me.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o){return Je(Bo(n,o))}}]),r}(j),Mo=[31,28,31,30,31,30,31,31,30,31,30,31],Do=[31,29,31,30,31,30,31,31,30,31,30,31],No=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"subPriority",1),v(b(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"d":return ie(me.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=Hn(o),u=n.getUTCMonth();return s?i>=1&&i<=Do[u]:i>=1&&i<=Mo[u]}},{key:"set",value:function(n,i,o){return n.setUTCDate(o),n.setUTCHours(0,0,0,0),n}}]),r}(j),So=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"subpriority",1),v(b(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"D":case"DD":return ie(me.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=Hn(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(n,i,o){return n.setUTCMonth(0,o),n.setUTCHours(0,0,0,0),n}}]),r}(j);function cr(e,t,r){var a,n,i,o,s,u,l,h;te(2,arguments);var d=nt(),m=_e((a=(n=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&a!==void 0?a:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=oe(e),f=_e(t),p=c.getUTCDay(),x=f%7,B=(x+7)%7,O=(B<m?7:0)+f-p;return c.setUTCDate(c.getUTCDate()+O),c}var Io=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=cr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(j),Ho=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return ge(ce(i.length,n),u);case"eo":return ge(o.ordinalNumber(n,{unit:"day"}),u);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=cr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(j),Lo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return ge(ce(i.length,n),u);case"co":return ge(o.ordinalNumber(n,{unit:"day"}),u);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=cr(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(j);function Uo(e,t){te(2,arguments);var r=_e(t);r%7===0&&(r=r-7);var a=1,n=oe(e),i=n.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<a?7:0)+r-i;return n.setUTCDate(n.getUTCDate()+u),n}var Ao=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",90),v(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return ce(i.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return ge(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return ge(o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ge(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ge(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(n,i){return i>=1&&i<=7}},{key:"set",value:function(n,i,o){return n=Uo(n,o),n.setUTCHours(0,0,0,0),n}}]),r}(j),ko=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(lr(o),0,0,0),n}}]),r}(j),Fo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(lr(o),0,0,0),n}}]),r}(j),Ro=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",80),v(b(a),"incompatibleTokens",["a","b","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(lr(o),0,0,0),n}}]),r}(j),Go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["H","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"h":return ie(me.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=12}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):!s&&o===12?n.setUTCHours(0,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(j),$o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"H":return ie(me.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=23}},{key:"set",value:function(n,i,o){return n.setUTCHours(o,0,0,0),n}}]),r}(j),Yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["h","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"K":return ie(me.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(j),jo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",70),v(b(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"k":return ie(me.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=24}},{key:"set",value:function(n,i,o){var s=o<=24?o%24:o;return n.setUTCHours(s,0,0,0),n}}]),r}(j),Wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",60),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"m":return ie(me.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCMinutes(o,0,0),n}}]),r}(j),qo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",50),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i,o){switch(i){case"s":return ie(me.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return ce(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCSeconds(o,0),n}}]),r}(j),Xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",30),v(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return ge(ce(i.length,n),o)}},{key:"set",value:function(n,i,o){return n.setUTCMilliseconds(o),n}}]),r}(j),Vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",10),v(b(a),"incompatibleTokens",["t","T","x"]),a}return U(r,[{key:"parse",value:function(n,i){switch(i){case"X":return Ne(De.basicOptionalMinutes,n);case"XX":return Ne(De.basic,n);case"XXXX":return Ne(De.basicOptionalSeconds,n);case"XXXXX":return Ne(De.extendedOptionalSeconds,n);case"XXX":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(j),zo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",10),v(b(a),"incompatibleTokens",["t","T","X"]),a}return U(r,[{key:"parse",value:function(n,i){switch(i){case"x":return Ne(De.basicOptionalMinutes,n);case"xx":return Ne(De.basic,n);case"xxxx":return Ne(De.basicOptionalSeconds,n);case"xxxxx":return Ne(De.extendedOptionalSeconds,n);case"xxx":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(j),Qo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",40),v(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Sn(n)}},{key:"set",value:function(n,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(j),Zo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),v(b(a),"priority",20),v(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Sn(n)}},{key:"set",value:function(n,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(j),Jo={G:new po,y:new vo,Y:new bo,R:new yo,u:new wo,Q:new _o,q:new To,M:new Eo,L:new xo,w:new Co,I:new Oo,d:new No,D:new So,E:new Io,e:new Ho,c:new Lo,i:new Ao,a:new ko,b:new Fo,B:new Ro,h:new Go,H:new $o,K:new Yo,k:new jo,m:new Wo,s:new qo,S:new Xo,X:new Vo,x:new zo,t:new Qo,T:new Zo},Ko=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,es=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ts=/^'([^]*?)'?$/,rs=/''/g,ns=/\S/,as=/[a-zA-Z]/;function is(e,t,r,a){var n,i,o,s,u,l,h,d,m,c,f,p,x,B;te(3,arguments);var O=String(e),P=String(t),D=nt(),k=(n=(i=void 0)!==null&&i!==void 0?i:D.locale)!==null&&n!==void 0?n:On;if(!k.match)throw new RangeError("locale must contain match property");var z=_e((o=(s=(u=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&u!==void 0?u:D.firstWeekContainsDate)!==null&&s!==void 0?s:(h=D.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=_e((m=(c=(f=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&f!==void 0?f:D.weekStartsOn)!==null&&c!==void 0?c:(x=D.locale)===null||x===void 0||(B=x.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&m!==void 0?m:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return O===""?oe(r):new Date(NaN);var X={firstWeekContainsDate:z,weekStartsOn:q,locale:k},ye=[new go],fe=P.match(es).map(function(S){var C=S[0];if(C in Qt){var J=Qt[C];return J(S,k.formatLong)}return S}).join("").match(Ko),M=[],N=Dr(fe),$;try{var Q=function(){var C=$.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&Bn(C)&&Ot(C,P,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Cn(C)&&Ot(C,P,e);var J=C[0],Be=Jo[J];if(Be){var Le=Be.incompatibleTokens;if(Array.isArray(Le)){var Te=M.find(function($e){return Le.includes($e.token)||$e.token===J});if(Te)throw new RangeError("The format string mustn't contain `".concat(Te.fullToken,"` and `").concat(C,"` at the same time"))}else if(Be.incompatibleTokens==="*"&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));M.push({token:J,fullToken:C});var Ue=Be.run(O,C,k.match,X);if(!Ue)return{v:new Date(NaN)};ye.push(Ue.setter),O=Ue.rest}else{if(J.match(as))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(C==="''"?C="'":J==="'"&&(C=os(C)),O.indexOf(C)===0)O=O.slice(C.length);else return{v:new Date(NaN)}}};for(N.s();!($=N.n()).done;){var ee=Q();if(He(ee)==="object")return ee.v}}catch(S){N.e(S)}finally{N.f()}if(O.length>0&&ns.test(O))return new Date(NaN);var w=ye.map(function(S){return S.priority}).sort(function(S,C){return C-S}).filter(function(S,C,J){return J.indexOf(S)===C}).map(function(S){return ye.filter(function(C){return C.priority===S}).sort(function(C,J){return J.subPriority-C.subPriority})}).map(function(S){return S[0]}),Y=oe(r);if(isNaN(Y.getTime()))return new Date(NaN);var y=_n(Y,wn(Y)),G={},Z=Dr(w),de;try{for(Z.s();!(de=Z.n()).done;){var ve=de.value;if(!ve.validate(y,X))return new Date(NaN);var se=ve.set(y,G,X);Array.isArray(se)?(y=se[0],so(G,se[1])):y=se}}catch(S){Z.e(S)}finally{Z.f()}return y}function os(e){return e.match(ts)[1].replace(rs,"'")}function Nr(e,t){te(2,arguments);var r=_e(t);return ii(e,-r)}const Ve=[];function ss(e,t){return{subscribe:Ht(e,t).subscribe}}function Ht(e,t=xe){let r;const a=new Set;function n(s){if(pn(e,s)&&(e=s,r)){const u=!Ve.length;for(const l of a)l[1](),Ve.push(l,e);if(u){for(let l=0;l<Ve.length;l+=2)Ve[l][0](Ve[l+1]);Ve.length=0}}}function i(s){n(s(e))}function o(s,u=xe){const l=[s,u];return a.add(l),a.size===1&&(r=t(n,i)||xe),s(e),()=>{a.delete(l),a.size===0&&r&&(r(),r=null)}}return{set:n,update:i,subscribe:o}}function at(e,t,r){const a=!Array.isArray(e),n=a?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return ss(r,(o,s)=>{let u=!1;const l=[];let h=0,d=xe;const m=()=>{if(h)return;d();const f=t(a?l[0]:l,o,s);i?o(f):d=sr(f)?f:xe},c=n.map((f,p)=>vn(f,x=>{l[p]=x,h&=~(1<<p),u&&m()},()=>{h|=1<<p}));return u=!0,m(),function(){Ce(c),d(),u=!1}})}function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls=function(t){return cs(t)&&!hs(t)};function cs(e){return!!e&&typeof e=="object"}function hs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ms(e)}var fs=typeof Symbol=="function"&&Symbol.for,ds=fs?Symbol.for("react.element"):60103;function ms(e){return e.$$typeof===ds}function gs(e){return Array.isArray(e)?[]:{}}function vt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ke(gs(e),e,t):e}function ps(e,t,r){return e.concat(t).map(function(a){return vt(a,r)})}function vs(e,t){if(!t.customMerge)return Ke;var r=t.customMerge(e);return typeof r=="function"?r:Ke}function bs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Sr(e){return Object.keys(e).concat(bs(e))}function Ln(e,t){try{return t in e}catch(r){return!1}}function ys(e,t){return Ln(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ws(e,t,r){var a={};return r.isMergeableObject(e)&&Sr(e).forEach(function(n){a[n]=vt(e[n],r)}),Sr(t).forEach(function(n){ys(e,n)||(Ln(e,n)&&r.isMergeableObject(t[n])?a[n]=vs(n,r)(e[n],t[n],r):a[n]=vt(t[n],r))}),a}function Ke(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ps,r.isMergeableObject=r.isMergeableObject||ls,r.cloneUnlessOtherwiseSpecified=vt;var a=Array.isArray(t),n=Array.isArray(e),i=a===n;return i?a?r.arrayMerge(e,t,r):ws(e,t,r):vt(t,r)}Ke.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,n){return Ke(a,n,r)},{})};var _s=Ke,Ts=_s;const Es=us(Ts);var Jt=function(e,t){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Jt(e,t)};function Lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Se.apply(this,arguments)};function xs(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function $t(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a<n;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function Yt(e,t){var r=t&&t.cache?t.cache:Ns,a=t&&t.serializer?t.serializer:Ms,n=t&&t.strategy?t.strategy:Bs;return n(e,{cache:r,serializer:a})}function Ps(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Cs(e,t,r,a){var n=Ps(a)?a:r(a),i=t.get(n);return typeof i=="undefined"&&(i=e.call(this,a),t.set(n,i)),i}function Un(e,t,r){var a=Array.prototype.slice.call(arguments,3),n=r(a),i=t.get(n);return typeof i=="undefined"&&(i=e.apply(this,a),t.set(n,i)),i}function An(e,t,r,a,n){return r.bind(t,e,a,n)}function Bs(e,t){var r=e.length===1?Cs:Un;return An(e,this,r,t.cache.create(),t.serializer)}function Os(e,t){return An(e,this,Un,t.cache.create(),t.serializer)}var Ms=function(){return JSON.stringify(arguments)},Ds=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Ns={create:function(){return new Ds}},jt={variadic:Os},Nt=function(){return Nt=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Nt.apply(this,arguments)};var H;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(H||(H={}));var re;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(re||(re={}));var et;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(et||(et={}));function Ir(e){return e.type===re.literal}function Ss(e){return e.type===re.argument}function kn(e){return e.type===re.number}function Fn(e){return e.type===re.date}function Rn(e){return e.type===re.time}function Gn(e){return e.type===re.select}function $n(e){return e.type===re.plural}function Is(e){return e.type===re.pound}function Yn(e){return e.type===re.tag}function jn(e){return!!(e&&typeof e=="object"&&e.type===et.number)}function Kt(e){return!!(e&&typeof e=="object"&&e.type===et.dateTime)}var Wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hs=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ls(e){var t={};return e.replace(Hs,function(r){var a=r.length;switch(r[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var le=function(){return le=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},le.apply(this,arguments)};var Us=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function As(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Us).filter(function(m){return m.length>0}),r=[],a=0,n=t;a<n.length;a++){var i=n[a],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,h=u;l<h.length;l++){var d=h[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function ks(e){return e.replace(/^(.*?)-/,"")}var Hr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qn=/^(@+)?(\+|#+)?[rs]?$/g,Fs=/(\*)(0+)|(#+)(0+)|(0+)/g,Xn=/^(0+)$/;function Lr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(qn,function(r,a,n){return typeof n!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):n==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof n=="string"?n.length:0)),""}),t}function Vn(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 Rs(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ur(e){var t={},r=Vn(e);return r||t}function Gs(e){for(var t={},r=0,a=e;r<a.length;r++){var n=a[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ks(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=le(le(le({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return le(le({},u),Ur(l))},{}));continue;case"engineering":t=le(le(le({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return le(le({},u),Ur(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Fs,function(u,l,h,d,m,c){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xn.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Hr.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Hr,function(u,l,h,d,m,c){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&c?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+c.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=n.options[0];i==="w"?t=le(le({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=le(le({},t),Lr(i)));continue}if(qn.test(n.stem)){t=le(le({},t),Lr(n.stem));continue}var o=Vn(n.stem);o&&(t=le(le({},t),o));var s=Rs(n.stem);s&&(t=le(le({},t),s))}return t}var Et={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $s(e,t){for(var r="",a=0;a<e.length;a++){var n=e.charAt(a);if(n==="j"){for(var i=0;a+1<e.length&&e.charAt(a+1)===n;)i++,a++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=Ys(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function Ys(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,a;r!=="root"&&(a=e.maximize().region);var n=Et[a||""]||Et[r||""]||Et["".concat(r,"-001")]||Et["001"];return n[0]}var Wt,js=new RegExp("^".concat(Wn.source,"*")),Ws=new RegExp("".concat(Wn.source,"*$"));function A(e,t){return{start:e,end:t}}var qs=!!String.prototype.startsWith&&"_a".startsWith("a",1),Xs=!!String.fromCodePoint,Vs=!!Object.fromEntries,zs=!!String.prototype.codePointAt,Qs=!!String.prototype.trimStart,Zs=!!String.prototype.trimEnd,Js=!!Number.isSafeInteger,Ks=Js?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},er=!0;try{var eu=Qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");er=((Wt=eu.exec("a"))===null||Wt===void 0?void 0:Wt[0])==="a"}catch(e){er=!1}var Ar=qs?function(t,r,a){return t.startsWith(r,a)}:function(t,r,a){return t.slice(a,a+r.length)===r},tr=Xs?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var a="",n=t.length,i=0,o;n>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");a+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return a},kr=Vs?Object.fromEntries:function(t){for(var r={},a=0,n=t;a<n.length;a++){var i=n[a],o=i[0],s=i[1];r[o]=s}return r},zn=zs?function(t,r){return t.codePointAt(r)}:function(t,r){var a=t.length;if(!(r<0||r>=a)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===a||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},tu=Qs?function(t){return t.trimStart()}:function(t){return t.replace(js,"")},ru=Zs?function(t){return t.trimEnd()}:function(t){return t.replace(Ws,"")};function Qn(e,t){return new RegExp(e,t)}var rr;if(er){var Fr=Qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rr=function(t,r){var a;Fr.lastIndex=r;var n=Fr.exec(t);return(a=n[1])!==null&&a!==void 0?a:""}}else rr=function(t,r){for(var a=[];;){var n=zn(t,r);if(n===void 0||Zn(n)||ou(n))break;a.push(n),r+=n>=65536?2:1}return tr.apply(void 0,a)};var nu=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,a){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,a);if(o.err)return o;n.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:re.pound,location:A(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(H.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&nr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var a=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:re.literal,value:"<".concat(n,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nr(this.char()))return this.error(H.INVALID_TAG,A(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(H.UNMATCHED_CLOSING_TAG,A(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:re.tag,value:n,children:o,location:A(a,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(H.INVALID_TAG,A(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&iu(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var a=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var u=A(a,this.clonePosition());return{val:{type:re.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!au(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(a);this.bump()}return tr.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(r==="plural"||r==="selectordinal")||a===125&&t>0?null:(this.bump(),tr(a))},e.prototype.parseArgument=function(t,r){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,A(a,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:re.argument,value:n,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(t,r,n,a);default:return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),a=rr(this.message,r),n=r+a.length;this.bumpTo(n);var i=this.clonePosition(),o=A(t,i);return{value:a,location:o}},e.prototype.parseArgumentOptions=function(t,r,a,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,A(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=ru(d.val);if(m.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var c=A(h,this.clonePosition());l={style:m,styleLocation:c}}var f=this.tryParseArgumentClose(n);if(f.err)return f;var p=A(n,this.clonePosition());if(l&&Ar(l==null?void 0:l.style,"::",0)){var x=tu(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(x,l.styleLocation);return d.err?d:{val:{type:re.number,value:a,location:p,style:d.val},err:null}}else{if(x.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,p);var B=x;this.locale&&(B=$s(x,this.locale));var m={type:et.dateTime,pattern:B,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ls(B):{}},O=s==="date"?re.date:re.time;return{val:{type:O,value:a,location:p,style:m},err:null}}}return{val:{type:s==="number"?re.number:s==="date"?re.date:re.time,value:a,location:p,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,A(P,Nt({},P)));this.bumpSpace();var D=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&D.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),D=this.parseIdentifierIfPossible(),k=d.val}var z=this.tryParsePluralOrSelectOptions(t,s,r,D);if(z.err)return z;var f=this.tryParseArgumentClose(n);if(f.err)return f;var q=A(n,this.clonePosition());return s==="select"?{val:{type:re.select,value:a,options:kr(z.val),location:q},err:null}:{val:{type:re.plural,value:a,options:kr(z.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:q},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,A(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var a=[];try{a=As(t)}catch(n){return this.error(H.INVALID_NUMBER_SKELETON,r)}return{val:{type:et.number,tokens:a,location:r,parsedOptions:this.shouldParseSkeletons?Gs(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,a,n){for(var i,o=!1,s=[],u=new Set,l=n.value,h=n.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(o=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,a);if(f.err)return f;var p=this.tryParseArgumentClose(c);if(p.err)return p;s.push([l,{value:f.val,location:A(c,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(H.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var a=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=A(n,this.clonePosition());return i?(o*=a,Ks(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=zn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ar(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),a=this.message.indexOf(t,r);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Zn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),a=this.message.charCodeAt(r+(t>=65536?2:1));return a!=null?a:null},e}();function nr(e){return e>=97&&e<=122||e>=65&&e<=90}function au(e){return nr(e)||e===47}function iu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Zn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ou(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ar(e){e.forEach(function(t){if(delete t.location,Gn(t)||$n(t))for(var r in t.options)delete t.options[r].location,ar(t.options[r].value);else kn(t)&&jn(t.style)||(Fn(t)||Rn(t))&&Kt(t.style)?delete t.style.location:Yn(t)&&ar(t.children)})}function su(e,t){t===void 0&&(t={}),t=Nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new nu(e,t).parse();if(r.err){var a=SyntaxError(H[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return t!=null&&t.captureLocation||ar(r.val),r.val}var tt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(tt||(tt={}));var Ut=function(e){Lt(t,e);function t(r,a,n){var i=e.call(this,r)||this;return i.code=a,i.originalMessage=n,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rr=function(e){Lt(t,e);function t(r,a,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(a,'". Options are "').concat(Object.keys(n).join('", "'),'"'),tt.INVALID_VALUE,i)||this}return t}(Ut),uu=function(e){Lt(t,e);function t(r,a,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(a),tt.INVALID_VALUE,n)||this}return t}(Ut),lu=function(e){Lt(t,e);function t(r,a){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(a,'"'),tt.MISSING_VALUE,a)||this}return t}(Ut),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function cu(e){return e.length<2?e:e.reduce(function(t,r){var a=t[t.length-1];return!a||a.type!==Ee.literal||r.type!==Ee.literal?t.push(r):a.value+=r.value,t},[])}function hu(e){return typeof e=="function"}function Pt(e,t,r,a,n,i,o){if(e.length===1&&Ir(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Ir(h)){s.push({type:Ee.literal,value:h.value});continue}if(Is(h)){typeof i=="number"&&s.push({type:Ee.literal,value:r.getNumberFormat(t).format(i)});continue}var d=h.value;if(!(n&&d in n))throw new lu(d,o);var m=n[d];if(Ss(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?Ee.literal:Ee.object,value:m});continue}if(Fn(h)){var c=typeof h.style=="string"?a.date[h.style]:Kt(h.style)?h.style.parsedOptions:void 0;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(Rn(h)){var c=typeof h.style=="string"?a.time[h.style]:Kt(h.style)?h.style.parsedOptions:a.time.medium;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(kn(h)){var c=typeof h.style=="string"?a.number[h.style]:jn(h.style)?h.style.parsedOptions:void 0;c&&c.scale&&(m=m*(c.scale||1)),s.push({type:Ee.literal,value:r.getNumberFormat(t,c).format(m)});continue}if(Yn(h)){var f=h.children,p=h.value,x=n[p];if(!hu(x))throw new uu(p,"function",o);var B=Pt(f,t,r,a,n,i),O=x(B.map(function(k){return k.value}));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map(function(k){return{type:typeof k=="string"?Ee.literal:Ee.object,value:k}}))}if(Gn(h)){var P=h.options[m]||h.options.other;if(!P)throw new Rr(h.value,m,Object.keys(h.options),o);s.push.apply(s,Pt(P.value,t,r,a,n));continue}if($n(h)){var P=h.options["=".concat(m)];if(!P){if(!Intl.PluralRules)throw new Ut(`Intl.PluralRules is not available in this environment.
3
3
  Try polyfilling it using "@formatjs/intl-pluralrules"
4
- `,et.MISSING_INTL_API,o);var D=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));P=h.options[D]||h.options.other}if(!P)throw new Fr(h.value,m,Object.keys(h.options),o);s.push.apply(s,xt(P.value,t,r,a,n,m-(h.offset||0)));continue}}return uu(s)}function cu(e,t){return t?Se(Se(Se({},e||{}),t||{}),Object.keys(e).reduce(function(r,a){return r[a]=Se(Se({},e[a]),t[a]||{}),r},{})):e}function hu(e,t){return t?Object.keys(e).reduce(function(r,a){return r[a]=cu(e[a],t[a]),r},Se({},e)):e}function Wt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function fu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$t(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,Gt([void 0],r,!1)))},{cache:Wt(e.number),strategy:Yt.variadic}),getDateTimeFormat:$t(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,Gt([void 0],r,!1)))},{cache:Wt(e.dateTime),strategy:Yt.variadic}),getPluralRules:$t(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,Gt([void 0],r,!1)))},{cache:Wt(e.pluralRules),strategy:Yt.variadic})}}var du=function(){function e(t,r,a,n){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(d,m){return!d.length||m.type!==Ee.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return xt(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var s=Ts(o,["formatters"]);this.ast=e.__parse(t,Se(Se({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hu(e.formats,a),this.formatters=n&&n.formatters||fu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=iu,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function mu(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let a=e;for(let n=0;n<r.length;n++)if(typeof a=="object"){if(n>0){const i=r.slice(n,r.length).join(".");if(i in a){a=a[i];break}}a=a[r[n]]}else a=void 0;return a}const Re={},gu=(e,t,r)=>r&&(t in Re||(Re[t]={}),e in Re[t]||(Re[t][e]=r),r),Zn=(e,t)=>{if(t==null)return;if(t in Re&&e in Re[t])return Re[t][e];const r=Ut(t);for(let a=0;a<r.length;a++){const n=r[a],i=vu(n,e);if(i)return gu(e,t,i)}};let cr;const bt=It({});function pu(e){return cr[e]||null}function Jn(e){return e in cr}function vu(e,t){if(!Jn(e))return null;const r=pu(e);return mu(r,t)}function bu(e){if(e==null)return;const t=Ut(e);for(let r=0;r<t.length;r++){const a=t[r];if(Jn(a))return a}}function Kn(e,...t){delete Re[e],bt.update(r=>(r[e]=_s.all([r[e]||{},...t]),r))}nt([bt],([e])=>Object.keys(e));bt.subscribe(e=>cr=e);const Pt={};function yu(e,t){Pt[e].delete(t),Pt[e].size===0&&delete Pt[e]}function ea(e){return Pt[e]}function wu(e){return Ut(e).map(t=>{const r=ea(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ar(e){return e==null?!1:Ut(e).some(t=>{var r;return(r=ea(t))==null?void 0:r.size})}function _u(e,t){return Promise.all(t.map(a=>(yu(e,a),a().then(n=>n.default||n)))).then(a=>Kn(e,...a))}const dt={};function ta(e){if(!ar(e))return e in dt?dt[e]:Promise.resolve();const t=wu(e);return dt[e]=Promise.all(t.map(([r,a])=>_u(r,a))).then(()=>{if(ar(e))return ta(e);delete dt[e]}),dt[e]}const Tu={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"}}},Eu={fallbackLocale:null,loadingDelay:200,formats:Tu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},xu=Eu;function tt(){return xu}const qt=It(!1);var Pu=Object.defineProperty,Cu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Gr=(e,t,r)=>t in e?Pu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Du=(e,t)=>{for(var r in t||(t={}))Ou.call(t,r)&&Gr(e,r,t[r]);if(Rr)for(var r of Rr(t))Mu.call(t,r)&&Gr(e,r,t[r]);return e},Nu=(e,t)=>Cu(e,Bu(t));let ir;const Nt=It(null);function $r(e){return e.split("-").map((t,r,a)=>a.slice(0,r+1).join("-")).reverse()}function Ut(e,t=tt().fallbackLocale){const r=$r(e);return t?[...new Set([...r,...$r(t)])]:r}function We(){return ir!=null?ir:void 0}Nt.subscribe(e=>{ir=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Su=e=>{if(e&&bu(e)&&ar(e)){const{loadingDelay:t}=tt();let r;return typeof window!="undefined"&&We()!=null&&t?r=window.setTimeout(()=>qt.set(!0),t):qt.set(!0),ta(e).then(()=>{Nt.set(e)}).finally(()=>{clearTimeout(r),qt.set(!1)})}return Nt.set(e)},at=Nu(Du({},Nt),{set:Su}),At=e=>{const t=Object.create(null);return a=>{const n=JSON.stringify(a);return n in t?t[n]:t[n]=e(a)}};var Iu=Object.defineProperty,St=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Yr=(e,t,r)=>t in e?Iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hr=(e,t)=>{for(var r in t||(t={}))ra.call(t,r)&&Yr(e,r,t[r]);if(St)for(var r of St(t))na.call(t,r)&&Yr(e,r,t[r]);return e},it=(e,t)=>{var r={};for(var a in e)ra.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&St)for(var a of St(e))t.indexOf(a)<0&&na.call(e,a)&&(r[a]=e[a]);return r};const vt=(e,t)=>{const{formats:r}=tt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Hu=At(e=>{var t=e,{locale:r,format:a}=t,n=it(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return a&&(n=vt("number",a)),new Intl.NumberFormat(r,n)}),Lu=At(e=>{var t=e,{locale:r,format:a}=t,n=it(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return a?n=vt("date",a):Object.keys(n).length===0&&(n=vt("date","short")),new Intl.DateTimeFormat(r,n)}),Uu=At(e=>{var t=e,{locale:r,format:a}=t,n=it(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return a?n=vt("time",a):Object.keys(n).length===0&&(n=vt("time","short")),new Intl.DateTimeFormat(r,n)}),Au=(e={})=>{var t=e,{locale:r=We()}=t,a=it(t,["locale"]);return Hu(hr({locale:r},a))},ku=(e={})=>{var t=e,{locale:r=We()}=t,a=it(t,["locale"]);return Lu(hr({locale:r},a))},Fu=(e={})=>{var t=e,{locale:r=We()}=t,a=it(t,["locale"]);return Uu(hr({locale:r},a))},Ru=At((e,t=We())=>new du(e,t,tt().formats,{ignoreTag:tt().ignoreTag})),Gu=(e,t={})=>{var r,a,n,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=We(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Zn(e,u);if(!h)h=(i=(n=(a=(r=tt()).handleMissingMessage)==null?void 0:a.call(r,{locale:u,id:e,defaultValue:l}))!=null?n:l)!=null?i:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!s)return h;let d=h;try{d=Ru(h,u).format(s)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},$u=(e,t)=>Fu(t).format(e),Yu=(e,t)=>ku(t).format(e),ju=(e,t)=>Au(t).format(e),Wu=(e,t=We())=>Zn(e,t),qu=nt([at,bt],()=>Gu);nt([at],()=>$u);nt([at],()=>Yu);nt([at],()=>ju);nt([at,bt],()=>Wu);function jr(e,t){Kn(e,t)}function Xu(e){at.set(e)}const Wr={en:{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},"zh-hk":{registerBackButton:"後退",registerUserTitle:"標題",registerUserTitleSelect:"选择标题",registerUserTitleSelectMr:"先生.",registerUserTitleSelectMrs:"太太.",registerUserTitleSelectMs:"小姐.",registerFirstName:"名",registerFirstNameError:"名字的長度必須至少為 2 個字符,並且不包含特殊字符。",registerLastName:"姓",registerLastNameError:"姓氏必須至少有 2 個字符長並且不包含特殊字符。",registerDateOfBirth:"出生日期",registerBirthDay:"天",registerBirthMonth:"月",registerBirthYear:"年",registerBirthDateError:"最低注册年龄为 {licenseyears} 年。",registerBirthPlace:"出生地",registerBirthPlaceError:"出生地必須至少有 1 個字符長。",registerCurrency:"貨幣",registerNext:"下一個",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},fr:{registerBackButton:"Retour",registerUserTitle:"Titre",registerUserTitleSelect:"Sélectionnez le titre",registerUserTitleSelectMr:"Monsieur",registerUserTitleSelectMrs:"Madame",registerUserTitleSelectMs:"Mademoiselle",registerFirstName:"Prénom",registerFirstNameError:"Le prénom doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerLastName:"Nom de famille",registerLastNameError:"Le nom de famille doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerDateOfBirth:"Date de naissance",registerBirthDay:"Jour",registerBirthMonth:"Mois",registerBirthYear:"An",registerBirthDateError:"L'âge minimum d'enregistrement est de {licenseyears} ans.",registerBirthPlace:"Lieu de naissance",registerBirthPlaceError:"Le lieu de naissance doit comporter au moins un caractère.",registerCurrency:"Monnaie",registerNext:"Suivant",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},tr:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerUserTitleSelect:"Başlık Seçin",registerUserTitleSelectMr:"Bay.",registerUserTitleSelectMrs:"Bayan.",registerUserTitleSelectMs:"Hanım.",registerFirstName:"İlk adı",registerFirstNameError:"Ad 2-50 karakter uzunluğunda olmalıdır.",registerLastName:"Soy isim",registerLastNameError:"Soyadı 2-50 karakter arasında olmalıdır.",registerDateOfBirth:"Doğum tarihi",registerBirthDay:"Gün",registerBirthMonth:"Ay",registerBirthYear:"Yıl",registerBirthDateError:"Minimum kayıt yaşı {licenseyears} yıldır.",registerBirthPlace:"Doğum Yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki",registerPersonalId:"Kişisel kimlik",registerPersonalIdCharacters:"Sadece sayılar",registerPersonalIdLength:"Yanlış Uzunluk"},ro:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerUserTitleSelect:"Selecteaza Titlu",registerUserTitleSelectMr:"Dl.",registerUserTitleSelectMrs:"Dna.",registerUserTitleSelectMs:"Dra.",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de 2-50 litere lungime.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de 2-50 litere lungime.",registerDateOfBirth:"Data Nasterii",registerBirthDay:"Zi",registerBirthMonth:"Luna",registerBirthYear:"An",registerBirthDateError:"Varsta minima pentru inregistrare este de {licenseyears} ani.",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul",registerPersonalId:"Cod Numeric Personal",registerPersonalIdCharacters:"Pot fi introduse doar cifre",registerPersonalIdLength:"Codul numeric personal trebuie sa contina 13 cifre."},es:{registerBackButton:"Anterior",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar Título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srta.",registerFirstName:"Nombre",registerFirstNameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerLastName:"Apellido",registerLastNameError:"Apellido debe tener entre 2 a 50 caracteres.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima para registrarse es {licenseyears} años",registerBirthPlace:"Lugar de Nacimiento",registerBirthPlaceError:"Lugar de Nacimiento debe tener al menos 1 carácter.",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},pt:{registerBackButton:"Voltar",registerUserTitle:"Título",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"Primeiro nome",registerFirstNameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerLastName:"Último nome",registerLastNameError:"O sobrenome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Local de Nascimento",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},hr:{registerBackButton:"Prethodno",registerUserTitle:"Titula",registerUserTitleSelect:"Odaberite titulu",registerUserTitleSelectMr:"Gosp.",registerUserTitleSelectMrs:"Gđa",registerUserTitleSelectMs:"Gđica",registerFirstName:"Ime",registerFirstNameError:"Ime mora imati 2-50 znakova.",registerLastName:"Prezime",registerLastNameError:"Prezime mora imati 2-50 znakova.",registerDateOfBirth:"Datum rođenja",registerBirthDay:"Dan",registerBirthMonth:"Mjesec",registerBirthYear:"Godina",registerBirthDateError:"Za registraciju morate imati najmanje 18 godina.",registerBirthPlace:"Mjesto rođenja",registerBirthPlaceError:"Mjesto rođenja mora imati najmanje 1 znak.",registerCurrency:"Valuta",registerNext:"Slijedeće",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Samo brojevi",registerPersonalIdLength:"Pogrešna duljina"},"pt-br":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Selecionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nome",registerFirstNameError:"O nome deve ser de 2 a 20 caracteres de comprimento.",registerLastName:"Sobrenome",registerLastNameError:"O sobrenome deve ter de 2 a 50 caracteres.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Ano",registerBirthDateError:"A idade mínimo de registro é {licenseyears} anos.",registerBirthPlace:"Lugar de nascimento",registerBirthPlaceError:"O lugar de nascimento deve ter pelo menos 1 caractere",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Somente números",registerPersonalIdLength:"Formato de número de identificação incorreto"},"es-mx":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nombre",registerFirstNameError:"Nombre debe ser de 2 a 20 caracteres de largo.",registerLastName:"Apellido",registerLastNameError:"Apellido debe ser de 2 a 50 caracteres de largo.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima de registro es {licenseyears} años.",registerBirthPlace:"Lugar de nacimiento",registerBirthPlaceError:"Lugar de nacimiento debe tener al menos 1 caracter",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Sólo números",registerPersonalIdLength:"Formato de número de identificación Incorrecto"},"en-us":{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"}};function Vu(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function zu(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(a=>a.text()).then(a=>{const n=document.createElement("style");n.innerHTML=a,e&&e.appendChild(n)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function Qu(e,t,r){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,n=>{a.innerHTML=n,e&&e.appendChild(a)})}}function Zu(e){Ha(e,"svelte-13nchcb",`input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.PersonalIdContainer,.CurrencyContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.PersonalIdContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer input,.UserTitleContainer select,.FirstNameContainer input,.FirstNameContainer select,.LastNameContainer input,.LastNameContainer select,.BirthDateContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.BirthPlaceContainer select,.PersonalIdContainer input,.PersonalIdContainer select,.CurrencyContainer input,.CurrencyContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserTitleContainer input:focus,.UserTitleContainer select:focus,.FirstNameContainer input:focus,.FirstNameContainer select:focus,.LastNameContainer input:focus,.LastNameContainer select:focus,.BirthDateContainer input:focus,.BirthDateContainer select:focus,.BirthPlaceContainer input:focus,.BirthPlaceContainer select:focus,.PersonalIdContainer input:focus,.PersonalIdContainer select:focus,.CurrencyContainer input:focus,.CurrencyContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserTitleContainer.InvalidField input,.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthDateContainer.InvalidField input,.BirthPlaceContainer.InvalidField input,.PersonalIdContainer.InvalidField input,.CurrencyContainer.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.UserTitleContainer.Hidden,.FirstNameContainer.Hidden,.LastNameContainer.Hidden,.BirthDateContainer.Hidden,.BirthPlaceContainer.Hidden,.PersonalIdContainer.Hidden,.CurrencyContainer.Hidden{display:none}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.FormRequired{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749))}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}`)}function qr(e,t,r){const a=e.slice();return a[82]=t[r],a}function Xr(e,t,r){const a=e.slice();return a[85]=t[r],a}function Vr(e,t,r){const a=e.slice();return a[88]=t[r],a}function zr(e,t,r){const a=e.slice();return a[91]=t[r],a}function Qr(e){let t,r,a=e[24]("registerUserTitle")+"",n,i,o,s,u,l,h=e[24]("registerUserTitleSelect")+"",d,m,c=e[24]("registerUserTitleSelectMr")+"",f,p,x=e[24]("registerUserTitleSelectMrs")+"",B,O,P=e[24]("registerUserTitleSelectMs")+"",D,k,z;return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("select"),l=T("option"),d=I(h),m=T("option"),f=I(c),p=T("option"),B=I(x),O=T("option"),D=I(P),E(o,"class","FormRequired"),E(r,"for","Title"),l.__value="",be(l,l.__value),l.disabled=!0,l.selected=!0,m.__value="Mr.",be(m,m.__value),p.__value="Mrs.",be(p,p.__value),O.__value="Ms.",be(O,O.__value),E(u,"id","Title"),e[12]===void 0&&Ge(()=>e[44].call(u)),E(t,"class","UserTitleContainer")},m(q,X){pe(q,t,X),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),g(u,l),g(l,d),g(u,m),g(m,f),g(u,p),g(p,B),g(u,O),g(O,D),Me(u,e[12],!0),k||(z=[K(u,"change",e[44]),K(u,"change",e[29])],k=!0)},p(q,X){X[0]&16777216&&a!==(a=q[24]("registerUserTitle")+"")&&ae(n,a),X[0]&16777216&&h!==(h=q[24]("registerUserTitleSelect")+"")&&ae(d,h),X[0]&16777216&&c!==(c=q[24]("registerUserTitleSelectMr")+"")&&ae(f,c),X[0]&16777216&&x!==(x=q[24]("registerUserTitleSelectMrs")+"")&&ae(B,x),X[0]&16777216&&P!==(P=q[24]("registerUserTitleSelectMs")+"")&&ae(D,P),X[0]&4096&&Me(u,q[12])},d(q){q&&ce(t),k=!1,Ce(z)}}}function Zr(e){let t,r,a=e[24]("registerFirstName")+"",n,i,o,s,u,l,h,d,m,c=e[2]&&Jr(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","FirstName"),E(u,"type","text"),E(u,"id","FirstName"),E(t,"class",h="FirstNameContainer "+(e[2]&&!e[7]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[13]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[45]),K(u,"keyup",e[30]),K(u,"focus",e[46]),K(u,"keyup",e[47])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerFirstName")+"")&&ae(n,a),p[0]&8192&&u.value!==f[13]&&be(u,f[13]),f[2]?c?c.p(f,p):(c=Jr(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&132&&h!==(h="FirstNameContainer "+(f[2]&&!f[7]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function Jr(e){let t,r=e[24]("registerFirstNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerFirstNameError")+"")&&ae(a,r)},d(n){n&&ce(t)}}}function Kr(e){let t,r,a=e[24]("registerLastName")+"",n,i,o,s,u,l,h,d,m,c=e[3]&&en(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","LastName"),E(u,"type","text"),E(u,"id","LastName"),E(t,"class",h="LastNameContainer "+(e[3]&&!e[8]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[14]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[48]),K(u,"keyup",e[31]),K(u,"focus",e[49]),K(u,"blur",e[50])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerLastName")+"")&&ae(n,a),p[0]&16384&&u.value!==f[14]&&be(u,f[14]),f[3]?c?c.p(f,p):(c=en(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&264&&h!==(h="LastNameContainer "+(f[3]&&!f[8]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function en(e){let t,r=e[24]("registerLastNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerLastNameError")+"")&&ae(a,r)},d(n){n&&ce(t)}}}function tn(e){let t,r,a=e[24]("registerDateOfBirth")+"",n,i,o,s,u,l,h,d=e[24]("registerBirthDay")+"",m,c,f,p,x=e[24]("registerBirthMonth")+"",B,O,P,D,k=e[24]("registerBirthYear")+"",z,q,X,ye,he=Fe(e[25]),M=[];for(let w=0;w<he.length;w+=1)M[w]=rn(zr(e,he,w));let N=Fe(e[26]),$=[];for(let w=0;w<N.length;w+=1)$[w]=nn(Vr(e,N,w));let Q=!e[23]&&an(e),ee=e[4]&&sn(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("div"),l=T("select"),h=T("option"),m=I(d);for(let w=0;w<M.length;w+=1)M[w].c();c=ne(),f=T("select"),p=T("option"),B=I(x);for(let w=0;w<$.length;w+=1)$[w].c();O=ne(),P=T("select"),D=T("option"),z=I(k),Q&&Q.c(),q=ne(),ee&&ee.c(),E(o,"class","FormRequired"),h.__value="",be(h,h.__value),h.disabled=!0,h.selected=!0,E(l,"class","BirthDaySelected"),e[15]===void 0&&Ge(()=>e[51].call(l)),p.__value="",be(p,p.__value),p.disabled=!0,p.selected=!0,E(f,"class","BirthMonthSelected"),e[16]===void 0&&Ge(()=>e[52].call(f)),D.__value="",be(D,D.__value),D.disabled=!0,D.selected=!0,E(P,"class","BirthYearSelected"),e[17]===void 0&&Ge(()=>e[53].call(P)),E(u,"class","BirthDateOptions"),E(t,"class","BirthDateContainer")},m(w,Y){pe(w,t,Y),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),g(u,l),g(l,h),g(h,m);for(let y=0;y<M.length;y+=1)M[y]&&M[y].m(l,null);Me(l,e[15],!0),g(u,c),g(u,f),g(f,p),g(p,B);for(let y=0;y<$.length;y+=1)$[y]&&$[y].m(f,null);Me(f,e[16],!0),g(u,O),g(u,P),g(P,D),g(D,z),Q&&Q.m(P,null),Me(P,e[17],!0),g(u,q),ee&&ee.m(u,null),X||(ye=[K(l,"change",e[51]),K(l,"change",e[28]),K(f,"change",e[52]),K(f,"change",e[28]),K(P,"change",e[53]),K(P,"change",e[28])],X=!0)},p(w,Y){if(Y[0]&16777216&&a!==(a=w[24]("registerDateOfBirth")+"")&&ae(n,a),Y[0]&16777216&&d!==(d=w[24]("registerBirthDay")+"")&&ae(m,d),Y[0]&33554432){he=Fe(w[25]);let y;for(y=0;y<he.length;y+=1){const G=zr(w,he,y);M[y]?M[y].p(G,Y):(M[y]=rn(G),M[y].c(),M[y].m(l,null))}for(;y<M.length;y+=1)M[y].d(1);M.length=he.length}if(Y[0]&33587200&&Me(l,w[15]),Y[0]&16777216&&x!==(x=w[24]("registerBirthMonth")+"")&&ae(B,x),Y[0]&67108864){N=Fe(w[26]);let y;for(y=0;y<N.length;y+=1){const G=Vr(w,N,y);$[y]?$[y].p(G,Y):($[y]=nn(G),$[y].c(),$[y].m(f,null))}for(;y<$.length;y+=1)$[y].d(1);$.length=N.length}Y[0]&67174400&&Me(f,w[16]),Y[0]&16777216&&k!==(k=w[24]("registerBirthYear")+"")&&ae(z,k),w[23]?Q&&(Q.d(1),Q=null):Q?Q.p(w,Y):(Q=an(w),Q.c(),Q.m(P,null)),Y[0]&134348800&&Me(P,w[17]),w[4]?ee?ee.p(w,Y):(ee=sn(w),ee.c(),ee.m(u,null)):ee&&(ee.d(1),ee=null)},d(w){w&&ce(t),Ct(M,w),Ct($,w),Q&&Q.d(),ee&&ee.d(),X=!1,Ce(ye)}}}function rn(e){let t,r=e[91]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[91],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&ce(t)}}}function nn(e){let t,r=e[88]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[88],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&ce(t)}}}function an(e){let t,r=Fe(e[27]),a=[];for(let n=0;n<r.length;n+=1)a[n]=on(Xr(e,r,n));return{c(){for(let n=0;n<a.length;n+=1)a[n].c();t=vn()},m(n,i){for(let o=0;o<a.length;o+=1)a[o]&&a[o].m(n,i);pe(n,t,i)},p(n,i){if(i[0]&134217728){r=Fe(n[27]);let o;for(o=0;o<r.length;o+=1){const s=Xr(n,r,o);a[o]?a[o].p(s,i):(a[o]=on(s),a[o].c(),a[o].m(t.parentNode,t))}for(;o<a.length;o+=1)a[o].d(1);a.length=r.length}},d(n){n&&ce(t),Ct(a,n)}}}function on(e){let t,r=e[85]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[85],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&ce(t)}}}function sn(e){let t,r=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777217&&r!==(r=n[24]("registerBirthDateError",{values:{licenseyears:n[0]}})+"")&&ae(a,r)},d(n){n&&ce(t)}}}function un(e){let t,r,a=e[24]("registerBirthPlace")+"",n,i,o,s,u,l,h,d,m,c=e[5]&&ln(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","BirthPlace"),E(u,"type","text"),E(u,"id","BirthPlace"),E(t,"class",h="BirthPlaceContainer "+(e[5]&&!e[9]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[18]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[54]),K(u,"keyup",e[32]),K(u,"focus",e[55]),K(u,"blur",e[56])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerBirthPlace")+"")&&ae(n,a),p[0]&262144&&u.value!==f[18]&&be(u,f[18]),f[5]?c?c.p(f,p):(c=ln(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&544&&h!==(h="BirthPlaceContainer "+(f[5]&&!f[9]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function ln(e){let t,r=e[24]("registerBirthPlaceError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerBirthPlaceError")+"")&&ae(a,r)},d(n){n&&ce(t)}}}function cn(e){let t,r,a=e[24]("registerPersonalId")+"",n,i,o,s,u,l,h,d,m,c=e[6]&&hn(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","PersonalId"),E(u,"type","text"),E(u,"id","PersonalId"),E(t,"class",h="PersonalIdContainer "+(e[6]&&!e[10]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[21]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[57]),K(u,"keyup",e[33]),K(u,"focus",e[58]),K(u,"blur",e[59])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerPersonalId")+"")&&ae(n,a),p[0]&2097152&&u.value!==f[21]&&be(u,f[21]),f[6]?c?c.p(f,p):(c=hn(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&1088&&h!==(h="PersonalIdContainer "+(f[6]&&!f[10]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function hn(e){let t,r;function a(o,s){return s[0]&2097152&&(t=null),t==null&&(t=!/^\d+$/.test(o[21])),t?Ku:Ju}let n=a(e,[-1,-1,-1,-1]),i=n(e);return{c(){i.c(),r=vn()},m(o,s){i.m(o,s),pe(o,r,s)},p(o,s){n===(n=a(o,s))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&ce(r),i.d(o)}}}function Ju(e){let t,r=e[24]("registerPersonalIdLength")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerPersonalIdLength")+"")&&ae(a,r)},d(n){n&&ce(t)}}}function Ku(e){let t,r=e[24]("registerPersonalIdCharacters")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerPersonalIdCharacters")+"")&&ae(a,r)},d(n){n&&ce(t)}}}function fn(e){let t,r,a=e[24]("registerCurrency")+"",n,i,o,s,u,l,h,d,m=Fe(e[19]),c=[];for(let f=0;f<m.length;f+=1)c[f]=dn(qr(e,m,f));return{c(){var f;t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("select");for(let p=0;p<c.length;p+=1)c[p].c();E(o,"class","FormRequired"),E(r,"for","Currency"),E(u,"id","Currency"),e[20]===void 0&&Ge(()=>e[60].call(u)),E(t,"class",l="CurrencyContainer "+(((f=e[11])==null?void 0:f.indexOf("currency"))>=0?"Hidden":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u);for(let x=0;x<c.length;x+=1)c[x]&&c[x].m(u,null);Me(u,e[20],!0),h||(d=K(u,"change",e[60]),h=!0)},p(f,p){var x;if(p[0]&16777216&&a!==(a=f[24]("registerCurrency")+"")&&ae(n,a),p[0]&524288){m=Fe(f[19]);let B;for(B=0;B<m.length;B+=1){const O=qr(f,m,B);c[B]?c[B].p(O,p):(c[B]=dn(O),c[B].c(),c[B].m(u,null))}for(;B<c.length;B+=1)c[B].d(1);c.length=m.length}p[0]&1572864&&Me(u,f[20]),p[0]&2048&&l!==(l="CurrencyContainer "+(((x=f[11])==null?void 0:x.indexOf("currency"))>=0?"Hidden":""))&&E(t,"class",l)},d(f){f&&ce(t),Ct(c,f),h=!1,d()}}}function dn(e){let t,r=e[82]+"",a,n;return{c(){t=T("option"),a=I(r),t.__value=n=e[82],be(t,t.__value)},m(i,o){pe(i,t,o),g(t,a)},p(i,o){o[0]&524288&&r!==(r=i[82]+"")&&ae(a,r),o[0]&524288&&n!==(n=i[82])&&(t.__value=n,be(t,t.__value))},d(i){i&&ce(t)}}}function el(e){var C,J,Be,Le,Te,Ue,$e;let t,r,a,n,i,o,s,u,l,h=e[24]("registerBackButton")+"",d,m,c,f=!(((C=e[11])==null?void 0:C.indexOf("title"))>=0),p,x=!(((J=e[11])==null?void 0:J.indexOf("firstName"))>=0),B,O=!(((Be=e[11])==null?void 0:Be.indexOf("lastName"))>=0),P,D=!(((Le=e[11])==null?void 0:Le.indexOf("birthDate"))>=0),k,z=!(((Te=e[11])==null?void 0:Te.indexOf("birthPlace"))>=0),q,X=!(((Ue=e[11])==null?void 0:Ue.indexOf("personalId"))>=0),ye,he=!((($e=e[11])==null?void 0:$e.indexOf("currency"))>=0),M,N,$=e[24]("registerNext")+"",Q,ee,w,Y,y=f&&Qr(e),G=x&&Zr(e),Z=O&&Kr(e),fe=D&&tn(e),ve=z&&un(e),se=X&&cn(e),S=he&&fn(e);return{c(){t=T("div"),r=T("div"),a=T("button"),n=_t("svg"),i=_t("defs"),o=_t("style"),s=I(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),u=_t("path"),l=ne(),d=I(h),m=ne(),c=T("form"),y&&y.c(),p=ne(),G&&G.c(),B=ne(),Z&&Z.c(),P=ne(),fe&&fe.c(),k=ne(),ve&&ve.c(),q=ne(),se&&se.c(),ye=ne(),S&&S.c(),M=ne(),N=T("button"),Q=I($),E(u,"class","a"),E(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),E(u,"transform","translate(24 24) rotate(180)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"viewBox","0 0 24 24"),E(a,"class","BackButton"),E(r,"class","RegisterFormHeader"),E(N,"class","RegisterStepNext"),N.disabled=ee=!e[22],E(c,"class","RegisterFormContent")},m(j,de){pe(j,t,de),g(t,r),g(r,a),g(a,n),g(n,i),g(i,o),g(o,s),g(n,u),g(a,l),g(a,d),g(t,m),g(t,c),y&&y.m(c,null),g(c,p),G&&G.m(c,null),g(c,B),Z&&Z.m(c,null),g(c,P),fe&&fe.m(c,null),g(c,k),ve&&ve.m(c,null),g(c,q),se&&se.m(c,null),g(c,ye),S&&S.m(c,null),g(c,M),g(c,N),g(N,Q),e[62](t),w||(Y=[K(a,"click",e[35]),K(N,"click",e[61])],w=!0)},p(j,de){var yt,Ie,ot,st,ut,lt,wt;de[0]&16777216&&h!==(h=j[24]("registerBackButton")+"")&&ae(d,h),de[0]&2048&&(f=!(((yt=j[11])==null?void 0:yt.indexOf("title"))>=0)),f?y?y.p(j,de):(y=Qr(j),y.c(),y.m(c,p)):y&&(y.d(1),y=null),de[0]&2048&&(x=!(((Ie=j[11])==null?void 0:Ie.indexOf("firstName"))>=0)),x?G?G.p(j,de):(G=Zr(j),G.c(),G.m(c,B)):G&&(G.d(1),G=null),de[0]&2048&&(O=!(((ot=j[11])==null?void 0:ot.indexOf("lastName"))>=0)),O?Z?Z.p(j,de):(Z=Kr(j),Z.c(),Z.m(c,P)):Z&&(Z.d(1),Z=null),de[0]&2048&&(D=!(((st=j[11])==null?void 0:st.indexOf("birthDate"))>=0)),D?fe?fe.p(j,de):(fe=tn(j),fe.c(),fe.m(c,k)):fe&&(fe.d(1),fe=null),de[0]&2048&&(z=!(((ut=j[11])==null?void 0:ut.indexOf("birthPlace"))>=0)),z?ve?ve.p(j,de):(ve=un(j),ve.c(),ve.m(c,q)):ve&&(ve.d(1),ve=null),de[0]&2048&&(X=!(((lt=j[11])==null?void 0:lt.indexOf("personalId"))>=0)),X?se?se.p(j,de):(se=cn(j),se.c(),se.m(c,ye)):se&&(se.d(1),se=null),de[0]&2048&&(he=!(((wt=j[11])==null?void 0:wt.indexOf("currency"))>=0)),he?S?S.p(j,de):(S=fn(j),S.c(),S.m(c,M)):S&&(S.d(1),S=null),de[0]&16777216&&$!==($=j[24]("registerNext")+"")&&ae(Q,$),de[0]&4194304&&ee!==(ee=!j[22])&&(N.disabled=ee)},i:xe,o:xe,d(j){j&&ce(t),y&&y.d(),G&&G.d(),Z&&Z.d(),fe&&fe.d(),ve&&ve.d(),se&&se.d(),S&&S.d(),e[62](null),w=!1,Ce(Y)}}}function tl(e,t,r){let a;Ia(e,qu,_=>r(24,a=_));let{endpoint:n=""}=t,{lang:i=""}=t,{licenseyears:o=""}=t,{disabledfields:s=""}=t,{personalidlength:u=""}=t,{mbsource:l}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,c=!1,f=!1,p=!1,x=!1,B=!1,O=!1,P=!1,D=!1,k=!1,z=!1,q,X="",ye="",he="",M=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],N,$=[1,2,3,4,5,6,7,8,9,10,11,12],Q,ee=[],w,Y="",y=[],G="",Z="",fe=new Date,ve,se,S,C={},J={title:!1,firstname:!1,lastname:!1,birthPlace:!1,birthDate:!1,currency:!1,personalId:!1},Be=!1,Le=!0,Te;const Ue=()=>{fetch(m).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Ae=>{jr(Ae,we[Ae])})}).catch(we=>{console.log(we)})};Object.keys(Wr).forEach(_=>{jr(_,Wr[_])});const $e=()=>{se=parseInt(Br(Dr(new Date(fe),parseInt(o,10)),"yyyy"),10),ve=parseInt(Br(Dr(new Date(fe),100+parseInt(o,10)),"yyyy"),10);for(let _=se;_>=ve;_--)ee.push(_);r(23,Le=!1)},j=()=>{C.birth={},C.birth.day=N,C.birth.month=Q,C.birth.year=w,w&&Q&&N?(S=ci(new Date(fe),ns(`${w}-${Q}-${N}`,"yyyy-MM-dd",new Date)).toString(),r(4,p=S<o)):r(4,p=!0),J.birthDate=!p,Ie()},de=()=>{fetch(`${n}/v1/player/operatorSupportedCurrencies`).then(_=>_.json()).then(_=>{r(19,y=_.currencies),G||(r(20,G=y[0]),J.currency=!0)})},yt=(_,we)=>{if(_==="birth"&&(_="birthDate"),!(s.indexOf(_)>=0))switch(_){case"title":r(12,X=we),st();break;case"firstname":r(13,ye=we),ut();break;case"lastname":r(14,he=we),lt();break;case"birthPlace":r(18,Y=we),fr();break;case"birthDate":r(15,N=we.day),r(16,Q=we.month),r(17,w=we.year),j();break;case"personalId":r(21,Z=we),mr();break;case"currency":r(20,G=we),J.currency=!0;break}},Ie=()=>{r(22,Be=Object.keys(J).every(_=>s.includes(_)?!0:J[_]!==!1))},ot=_=>!!(_&&_.length>=2&&_.length<=50),st=()=>{C.title=X,O=!X,J.title=!O,Ie()},ut=()=>{C.firstname=ye,r(2,c=!ot(ye)),J.firstname=!c,Ie()},lt=()=>{C.lastname=he,r(3,f=!ot(he)),J.lastname=!f,Ie()},wt=()=>(C.birthPlace=Y,!!(Y&&Y.length<=120)),fr=()=>{C.birthPlace=Y,r(5,x=!wt()),J.birthPlace=!x,Ie()},dr=()=>!!(Z&&Z.length===Number(u)&&/^\d+$/.test(Z)),mr=()=>{C.personalId=Z,r(6,B=!dr()),J.personalId=dr(),Ie()},gr=_=>{C.currency=G,_.preventDefault(),window.postMessage({type:"RegisterStepTwo",registerStepTwoData:C},window.location.href)},ia=()=>{C.currency=G,window.postMessage({type:"GoBackStepTwo",registerStepTwoData:C},window.location.href)},pr=_=>{if(_.data)switch(_.data.type){case"StepTwoDataBackup":const we=_.data.userData;for(const Ae in we)yt(Ae,we[Ae]);r(22,Be=Object.keys(J).every(Ae=>s.includes(Ae)?!0:J[Ae]!==!1));break}},oa=()=>{r(11,q=s.split(","))},sa=()=>{Xu(i)};Ra(()=>(window.addEventListener("message",pr,!1),()=>{window.removeEventListener("message",pr)}));function ua(){X=ct(this),r(12,X)}function la(){ye=this.value,r(13,ye)}const ca=()=>r(7,P=!0),ha=()=>r(7,P=!1);function fa(){he=this.value,r(14,he)}const da=()=>r(8,D=!0),ma=()=>r(8,D=!1);function ga(){N=ct(this),r(15,N),r(25,M)}function pa(){Q=ct(this),r(16,Q),r(26,$)}function va(){w=ct(this),r(17,w),r(27,ee)}function ba(){Y=this.value,r(18,Y)}const ya=()=>r(9,k=!0),wa=()=>r(9,k=!1);function _a(){Z=this.value,r(21,Z)}const Ta=()=>r(10,z=!0),Ea=()=>r(10,z=!1);function xa(){G=ct(this),r(20,G),r(19,y)}const Pa=_=>gr(_);function Ca(_){Xt[_?"unshift":"push"](()=>{Te=_,r(1,Te)})}return e.$$set=_=>{"endpoint"in _&&r(36,n=_.endpoint),"lang"in _&&r(37,i=_.lang),"licenseyears"in _&&r(0,o=_.licenseyears),"disabledfields"in _&&r(38,s=_.disabledfields),"personalidlength"in _&&r(39,u=_.personalidlength),"mbsource"in _&&r(40,l=_.mbsource),"clientstyling"in _&&r(41,h=_.clientstyling),"clientstylingurl"in _&&r(42,d=_.clientstylingurl),"translationurl"in _&&r(43,m=_.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&160&&n&&s.indexOf("currency")===-1&&de(),e.$$.dirty[1]&64&&i&&sa(),e.$$.dirty[0]&1&&o&&$e(),e.$$.dirty[1]&128&&s&&oa(),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&h&&Te&&Vu(Te,h),e.$$.dirty[0]&2|e.$$.dirty[1]&2048&&d&&Te&&zu(Te,d),e.$$.dirty[0]&2|e.$$.dirty[1]&512&&l&&Te&&Qu(Te,`${l}.Style`),e.$$.dirty[1]&4096&&m&&Ue()},[o,Te,c,f,p,x,B,P,D,k,z,q,X,ye,he,N,Q,w,Y,y,G,Z,Be,Le,a,M,$,ee,j,st,ut,lt,fr,mr,gr,ia,n,i,s,u,l,h,d,m,ua,la,ca,ha,fa,da,ma,ga,pa,va,ba,ya,wa,_a,Ta,Ea,xa,Pa,Ca]}class aa extends Ja{constructor(t){super(),Qa(this,t,tl,el,gn,{endpoint:36,lang:37,licenseyears:0,disabledfields:38,personalidlength:39,mbsource:40,clientstyling:41,clientstylingurl:42,translationurl:43},Zu,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[36]}set endpoint(t){this.$$set({endpoint:t}),Oe()}get lang(){return this.$$.ctx[37]}set lang(t){this.$$set({lang:t}),Oe()}get licenseyears(){return this.$$.ctx[0]}set licenseyears(t){this.$$set({licenseyears:t}),Oe()}get disabledfields(){return this.$$.ctx[38]}set disabledfields(t){this.$$set({disabledfields:t}),Oe()}get personalidlength(){return this.$$.ctx[39]}set personalidlength(t){this.$$set({personalidlength:t}),Oe()}get mbsource(){return this.$$.ctx[40]}set mbsource(t){this.$$set({mbsource:t}),Oe()}get clientstyling(){return this.$$.ctx[41]}set clientstyling(t){this.$$set({clientstyling:t}),Oe()}get clientstylingurl(){return this.$$.ctx[42]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Oe()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),Oe()}}Za(aa,{endpoint:{},lang:{},licenseyears:{},disabledfields:{},personalidlength:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=aa;
4
+ `,tt.MISSING_INTL_API,o);var D=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));P=h.options[D]||h.options.other}if(!P)throw new Rr(h.value,m,Object.keys(h.options),o);s.push.apply(s,Pt(P.value,t,r,a,n,m-(h.offset||0)));continue}}return cu(s)}function fu(e,t){return t?Se(Se(Se({},e||{}),t||{}),Object.keys(e).reduce(function(r,a){return r[a]=Se(Se({},e[a]),t[a]||{}),r},{})):e}function du(e,t){return t?Object.keys(e).reduce(function(r,a){return r[a]=fu(e[a],t[a]),r},Se({},e)):e}function qt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Yt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,$t([void 0],r,!1)))},{cache:qt(e.number),strategy:jt.variadic}),getDateTimeFormat:Yt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,$t([void 0],r,!1)))},{cache:qt(e.dateTime),strategy:jt.variadic}),getPluralRules:Yt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,$t([void 0],r,!1)))},{cache:qt(e.pluralRules),strategy:jt.variadic})}}var gu=function(){function e(t,r,a,n){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(d,m){return!d.length||m.type!==Ee.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Pt(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var s=xs(o,["formatters"]);this.ast=e.__parse(t,Se(Se({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=du(e.formats,a),this.formatters=n&&n.formatters||mu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=su,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function pu(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let a=e;for(let n=0;n<r.length;n++)if(typeof a=="object"){if(n>0){const i=r.slice(n,r.length).join(".");if(i in a){a=a[i];break}}a=a[r[n]]}else a=void 0;return a}const Re={},vu=(e,t,r)=>r&&(t in Re||(Re[t]={}),e in Re[t]||(Re[t][e]=r),r),Jn=(e,t)=>{if(t==null)return;if(t in Re&&e in Re[t])return Re[t][e];const r=At(t);for(let a=0;a<r.length;a++){const n=r[a],i=yu(n,e);if(i)return vu(e,t,i)}};let hr;const yt=Ht({});function bu(e){return hr[e]||null}function Kn(e){return e in hr}function yu(e,t){if(!Kn(e))return null;const r=bu(e);return pu(r,t)}function wu(e){if(e==null)return;const t=At(e);for(let r=0;r<t.length;r++){const a=t[r];if(Kn(a))return a}}function ea(e,...t){delete Re[e],yt.update(r=>(r[e]=Es.all([r[e]||{},...t]),r))}at([yt],([e])=>Object.keys(e));yt.subscribe(e=>hr=e);const Ct={};function _u(e,t){Ct[e].delete(t),Ct[e].size===0&&delete Ct[e]}function ta(e){return Ct[e]}function Tu(e){return At(e).map(t=>{const r=ta(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ir(e){return e==null?!1:At(e).some(t=>{var r;return(r=ta(t))==null?void 0:r.size})}function Eu(e,t){return Promise.all(t.map(a=>(_u(e,a),a().then(n=>n.default||n)))).then(a=>ea(e,...a))}const mt={};function ra(e){if(!ir(e))return e in mt?mt[e]:Promise.resolve();const t=Tu(e);return mt[e]=Promise.all(t.map(([r,a])=>Eu(r,a))).then(()=>{if(ir(e))return ra(e);delete mt[e]}),mt[e]}const xu={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"}}},Pu={fallbackLocale:null,loadingDelay:200,formats:xu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Cu=Pu;function rt(){return Cu}const Xt=Ht(!1);var Bu=Object.defineProperty,Ou=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,Gr=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,$r=(e,t,r)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Su=(e,t)=>{for(var r in t||(t={}))Du.call(t,r)&&$r(e,r,t[r]);if(Gr)for(var r of Gr(t))Nu.call(t,r)&&$r(e,r,t[r]);return e},Iu=(e,t)=>Ou(e,Mu(t));let or;const St=Ht(null);function Yr(e){return e.split("-").map((t,r,a)=>a.slice(0,r+1).join("-")).reverse()}function At(e,t=rt().fallbackLocale){const r=Yr(e);return t?[...new Set([...r,...Yr(t)])]:r}function We(){return or!=null?or:void 0}St.subscribe(e=>{or=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Hu=e=>{if(e&&wu(e)&&ir(e)){const{loadingDelay:t}=rt();let r;return typeof window!="undefined"&&We()!=null&&t?r=window.setTimeout(()=>Xt.set(!0),t):Xt.set(!0),ra(e).then(()=>{St.set(e)}).finally(()=>{clearTimeout(r),Xt.set(!1)})}return St.set(e)},it=Iu(Su({},St),{set:Hu}),kt=e=>{const t=Object.create(null);return a=>{const n=JSON.stringify(a);return n in t?t[n]:t[n]=e(a)}};var Lu=Object.defineProperty,It=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable,jr=(e,t,r)=>t in e?Lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fr=(e,t)=>{for(var r in t||(t={}))na.call(t,r)&&jr(e,r,t[r]);if(It)for(var r of It(t))aa.call(t,r)&&jr(e,r,t[r]);return e},ot=(e,t)=>{var r={};for(var a in e)na.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&It)for(var a of It(e))t.indexOf(a)<0&&aa.call(e,a)&&(r[a]=e[a]);return r};const bt=(e,t)=>{const{formats:r}=rt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Uu=kt(e=>{var t=e,{locale:r,format:a}=t,n=ot(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return a&&(n=bt("number",a)),new Intl.NumberFormat(r,n)}),Au=kt(e=>{var t=e,{locale:r,format:a}=t,n=ot(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return a?n=bt("date",a):Object.keys(n).length===0&&(n=bt("date","short")),new Intl.DateTimeFormat(r,n)}),ku=kt(e=>{var t=e,{locale:r,format:a}=t,n=ot(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return a?n=bt("time",a):Object.keys(n).length===0&&(n=bt("time","short")),new Intl.DateTimeFormat(r,n)}),Fu=(e={})=>{var t=e,{locale:r=We()}=t,a=ot(t,["locale"]);return Uu(fr({locale:r},a))},Ru=(e={})=>{var t=e,{locale:r=We()}=t,a=ot(t,["locale"]);return Au(fr({locale:r},a))},Gu=(e={})=>{var t=e,{locale:r=We()}=t,a=ot(t,["locale"]);return ku(fr({locale:r},a))},$u=kt((e,t=We())=>new gu(e,t,rt().formats,{ignoreTag:rt().ignoreTag})),Yu=(e,t={})=>{var r,a,n,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=We(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Jn(e,u);if(!h)h=(i=(n=(a=(r=rt()).handleMissingMessage)==null?void 0:a.call(r,{locale:u,id:e,defaultValue:l}))!=null?n:l)!=null?i:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!s)return h;let d=h;try{d=$u(h,u).format(s)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},ju=(e,t)=>Gu(t).format(e),Wu=(e,t)=>Ru(t).format(e),qu=(e,t)=>Fu(t).format(e),Xu=(e,t=We())=>Jn(e,t),Vu=at([it,yt],()=>Yu);at([it],()=>ju);at([it],()=>Wu);at([it],()=>qu);at([it,yt],()=>Xu);function Wr(e,t){ea(e,t)}function zu(e){it.set(e)}const qr={en:{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},"zh-hk":{registerBackButton:"後退",registerUserTitle:"標題",registerUserTitleSelect:"选择标题",registerUserTitleSelectMr:"先生.",registerUserTitleSelectMrs:"太太.",registerUserTitleSelectMs:"小姐.",registerFirstName:"名",registerFirstNameError:"名字的長度必須至少為 2 個字符,並且不包含特殊字符。",registerLastName:"姓",registerLastNameError:"姓氏必須至少有 2 個字符長並且不包含特殊字符。",registerDateOfBirth:"出生日期",registerBirthDay:"天",registerBirthMonth:"月",registerBirthYear:"年",registerBirthDateError:"最低注册年龄为 {licenseyears} 年。",registerBirthPlace:"出生地",registerBirthPlaceError:"出生地必須至少有 1 個字符長。",registerCurrency:"貨幣",registerNext:"下一個",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},fr:{registerBackButton:"Retour",registerUserTitle:"Titre",registerUserTitleSelect:"Sélectionnez le titre",registerUserTitleSelectMr:"Monsieur",registerUserTitleSelectMrs:"Madame",registerUserTitleSelectMs:"Mademoiselle",registerFirstName:"Prénom",registerFirstNameError:"Le prénom doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerLastName:"Nom de famille",registerLastNameError:"Le nom de famille doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerDateOfBirth:"Date de naissance",registerBirthDay:"Jour",registerBirthMonth:"Mois",registerBirthYear:"An",registerBirthDateError:"L'âge minimum d'enregistrement est de {licenseyears} ans.",registerBirthPlace:"Lieu de naissance",registerBirthPlaceError:"Le lieu de naissance doit comporter au moins un caractère.",registerCurrency:"Monnaie",registerNext:"Suivant",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},tr:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerUserTitleSelect:"Başlık Seçin",registerUserTitleSelectMr:"Bay.",registerUserTitleSelectMrs:"Bayan.",registerUserTitleSelectMs:"Hanım.",registerFirstName:"İlk adı",registerFirstNameError:"Ad 2-50 karakter uzunluğunda olmalıdır.",registerLastName:"Soy isim",registerLastNameError:"Soyadı 2-50 karakter arasında olmalıdır.",registerDateOfBirth:"Doğum tarihi",registerBirthDay:"Gün",registerBirthMonth:"Ay",registerBirthYear:"Yıl",registerBirthDateError:"Minimum kayıt yaşı {licenseyears} yıldır.",registerBirthPlace:"Doğum Yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki",registerPersonalId:"Kişisel kimlik",registerPersonalIdCharacters:"Sadece sayılar",registerPersonalIdLength:"Yanlış Uzunluk"},ro:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerUserTitleSelect:"Selecteaza Titlu",registerUserTitleSelectMr:"Dl.",registerUserTitleSelectMrs:"Dna.",registerUserTitleSelectMs:"Dra.",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de 2-50 litere lungime.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de 2-50 litere lungime.",registerDateOfBirth:"Data Nasterii",registerBirthDay:"Zi",registerBirthMonth:"Luna",registerBirthYear:"An",registerBirthDateError:"Varsta minima pentru inregistrare este de {licenseyears} ani.",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul",registerPersonalId:"Cod Numeric Personal",registerPersonalIdCharacters:"Pot fi introduse doar cifre",registerPersonalIdLength:"Codul numeric personal trebuie sa contina 13 cifre."},es:{registerBackButton:"Anterior",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar Título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srta.",registerFirstName:"Nombre",registerFirstNameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerLastName:"Apellido",registerLastNameError:"Apellido debe tener entre 2 a 50 caracteres.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima para registrarse es {licenseyears} años",registerBirthPlace:"Lugar de Nacimiento",registerBirthPlaceError:"Lugar de Nacimiento debe tener al menos 1 carácter.",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},pt:{registerBackButton:"Voltar",registerUserTitle:"Título",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"Primeiro nome",registerFirstNameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerLastName:"Último nome",registerLastNameError:"O sobrenome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Local de Nascimento",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},hr:{registerBackButton:"Prethodno",registerUserTitle:"Titula",registerUserTitleSelect:"Odaberite titulu",registerUserTitleSelectMr:"Gosp.",registerUserTitleSelectMrs:"Gđa",registerUserTitleSelectMs:"Gđica",registerFirstName:"Ime",registerFirstNameError:"Ime mora imati 2-50 znakova.",registerLastName:"Prezime",registerLastNameError:"Prezime mora imati 2-50 znakova.",registerDateOfBirth:"Datum rođenja",registerBirthDay:"Dan",registerBirthMonth:"Mjesec",registerBirthYear:"Godina",registerBirthDateError:"Za registraciju morate imati najmanje 18 godina.",registerBirthPlace:"Mjesto rođenja",registerBirthPlaceError:"Mjesto rođenja mora imati najmanje 1 znak.",registerCurrency:"Valuta",registerNext:"Slijedeće",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Samo brojevi",registerPersonalIdLength:"Pogrešna duljina"},"pt-br":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Selecionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nome",registerFirstNameError:"O nome deve ser de 2 a 20 caracteres de comprimento.",registerLastName:"Sobrenome",registerLastNameError:"O sobrenome deve ter de 2 a 50 caracteres.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Ano",registerBirthDateError:"A idade mínimo de registro é {licenseyears} anos.",registerBirthPlace:"Lugar de nascimento",registerBirthPlaceError:"O lugar de nascimento deve ter pelo menos 1 caractere",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Somente números",registerPersonalIdLength:"Formato de número de identificação incorreto"},"es-mx":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nombre",registerFirstNameError:"Nombre debe ser de 2 a 20 caracteres de largo.",registerLastName:"Apellido",registerLastNameError:"Apellido debe ser de 2 a 50 caracteres de largo.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima de registro es {licenseyears} años.",registerBirthPlace:"Lugar de nacimiento",registerBirthPlaceError:"Lugar de nacimiento debe tener al menos 1 caracter",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Sólo números",registerPersonalIdLength:"Formato de número de identificación Incorrecto"},"en-us":{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"}},Qe="__WIDGET_GLOBAL_STYLE_CACHE__";function Qu(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Zu(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(a=>a.text()).then(a=>{const n=document.createElement("style");n.innerHTML=a,e&&e.appendChild(n)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function Ju(e,t,r,a=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!a)return r=Ku(e,t),r;window[Qe]||(window[Qe]={}),r=el(e,t);const i=r.unsubscribe.bind(r),o=()=>{if(window[Qe][t]){const s=window[Qe][t];s.refCount>1?s.refCount=s.refCount-1:delete window[Qe][t]}i()};return r.unsubscribe=o,r}function Ku(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,a=>{e&&(r.innerHTML=a,e.appendChild(r))})}function el(e,t){return window.emMessageBus.subscribe(t,r=>{var s;if(!e)return;const a=e.getRootNode(),n=window[Qe];let i=(s=n[t])==null?void 0:s.sheet;i?n[t].refCount=n[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(r),n[t]={sheet:i,refCount:1});const o=a.adoptedStyleSheets||[];o.includes(i)||(a.adoptedStyleSheets=[...o,i])})}function tl(e){Ua(e,"svelte-13nchcb",`input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer select :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.PersonalIdContainer,.CurrencyContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.PersonalIdContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer input,.UserTitleContainer select,.FirstNameContainer input,.FirstNameContainer select,.LastNameContainer input,.LastNameContainer select,.BirthDateContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.BirthPlaceContainer select,.PersonalIdContainer input,.PersonalIdContainer select,.CurrencyContainer input,.CurrencyContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserTitleContainer input:focus,.UserTitleContainer select:focus,.FirstNameContainer input:focus,.FirstNameContainer select:focus,.LastNameContainer input:focus,.LastNameContainer select:focus,.BirthDateContainer input:focus,.BirthDateContainer select:focus,.BirthPlaceContainer input:focus,.BirthPlaceContainer select:focus,.PersonalIdContainer input:focus,.PersonalIdContainer select:focus,.CurrencyContainer input:focus,.CurrencyContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserTitleContainer.InvalidField input,.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthDateContainer.InvalidField input,.BirthPlaceContainer.InvalidField input,.PersonalIdContainer.InvalidField input,.CurrencyContainer.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.UserTitleContainer.Hidden,.FirstNameContainer.Hidden,.LastNameContainer.Hidden,.BirthDateContainer.Hidden,.BirthPlaceContainer.Hidden,.PersonalIdContainer.Hidden,.CurrencyContainer.Hidden{display:none}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthMonthSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.BirthDateOptions .BirthYearSelected{width:40%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.FormRequired{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749))}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}`)}function Xr(e,t,r){const a=e.slice();return a[82]=t[r],a}function Vr(e,t,r){const a=e.slice();return a[85]=t[r],a}function zr(e,t,r){const a=e.slice();return a[88]=t[r],a}function Qr(e,t,r){const a=e.slice();return a[91]=t[r],a}function Zr(e){let t,r,a=e[24]("registerUserTitle")+"",n,i,o,s,u,l,h=e[24]("registerUserTitleSelect")+"",d,m,c=e[24]("registerUserTitleSelectMr")+"",f,p,x=e[24]("registerUserTitleSelectMrs")+"",B,O,P=e[24]("registerUserTitleSelectMs")+"",D,k,z;return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("select"),l=T("option"),d=I(h),m=T("option"),f=I(c),p=T("option"),B=I(x),O=T("option"),D=I(P),E(o,"class","FormRequired"),E(r,"for","Title"),l.__value="",be(l,l.__value),l.disabled=!0,l.selected=!0,m.__value="Mr.",be(m,m.__value),p.__value="Mrs.",be(p,p.__value),O.__value="Ms.",be(O,O.__value),E(u,"id","Title"),e[12]===void 0&&Ge(()=>e[44].call(u)),E(t,"class","UserTitleContainer")},m(q,X){pe(q,t,X),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),g(u,l),g(l,d),g(u,m),g(m,f),g(u,p),g(p,B),g(u,O),g(O,D),Me(u,e[12],!0),k||(z=[K(u,"change",e[44]),K(u,"change",e[29])],k=!0)},p(q,X){X[0]&16777216&&a!==(a=q[24]("registerUserTitle")+"")&&ae(n,a),X[0]&16777216&&h!==(h=q[24]("registerUserTitleSelect")+"")&&ae(d,h),X[0]&16777216&&c!==(c=q[24]("registerUserTitleSelectMr")+"")&&ae(f,c),X[0]&16777216&&x!==(x=q[24]("registerUserTitleSelectMrs")+"")&&ae(B,x),X[0]&16777216&&P!==(P=q[24]("registerUserTitleSelectMs")+"")&&ae(D,P),X[0]&4096&&Me(u,q[12])},d(q){q&&he(t),k=!1,Ce(z)}}}function Jr(e){let t,r,a=e[24]("registerFirstName")+"",n,i,o,s,u,l,h,d,m,c=e[2]&&Kr(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","FirstName"),E(u,"type","text"),E(u,"id","FirstName"),E(t,"class",h="FirstNameContainer "+(e[2]&&!e[7]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[13]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[45]),K(u,"keyup",e[30]),K(u,"focus",e[46]),K(u,"keyup",e[47])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerFirstName")+"")&&ae(n,a),p[0]&8192&&u.value!==f[13]&&be(u,f[13]),f[2]?c?c.p(f,p):(c=Kr(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&132&&h!==(h="FirstNameContainer "+(f[2]&&!f[7]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&he(t),c&&c.d(),d=!1,Ce(m)}}}function Kr(e){let t,r=e[24]("registerFirstNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerFirstNameError")+"")&&ae(a,r)},d(n){n&&he(t)}}}function en(e){let t,r,a=e[24]("registerLastName")+"",n,i,o,s,u,l,h,d,m,c=e[3]&&tn(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","LastName"),E(u,"type","text"),E(u,"id","LastName"),E(t,"class",h="LastNameContainer "+(e[3]&&!e[8]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[14]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[48]),K(u,"keyup",e[31]),K(u,"focus",e[49]),K(u,"blur",e[50])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerLastName")+"")&&ae(n,a),p[0]&16384&&u.value!==f[14]&&be(u,f[14]),f[3]?c?c.p(f,p):(c=tn(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&264&&h!==(h="LastNameContainer "+(f[3]&&!f[8]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&he(t),c&&c.d(),d=!1,Ce(m)}}}function tn(e){let t,r=e[24]("registerLastNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerLastNameError")+"")&&ae(a,r)},d(n){n&&he(t)}}}function rn(e){let t,r,a=e[24]("registerDateOfBirth")+"",n,i,o,s,u,l,h,d=e[24]("registerBirthDay")+"",m,c,f,p,x=e[24]("registerBirthMonth")+"",B,O,P,D,k=e[24]("registerBirthYear")+"",z,q,X,ye,fe=Fe(e[25]),M=[];for(let w=0;w<fe.length;w+=1)M[w]=nn(Qr(e,fe,w));let N=Fe(e[26]),$=[];for(let w=0;w<N.length;w+=1)$[w]=an(zr(e,N,w));let Q=!e[23]&&on(e),ee=e[4]&&un(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("div"),l=T("select"),h=T("option"),m=I(d);for(let w=0;w<M.length;w+=1)M[w].c();c=ne(),f=T("select"),p=T("option"),B=I(x);for(let w=0;w<$.length;w+=1)$[w].c();O=ne(),P=T("select"),D=T("option"),z=I(k),Q&&Q.c(),q=ne(),ee&&ee.c(),E(o,"class","FormRequired"),h.__value="",be(h,h.__value),h.disabled=!0,h.selected=!0,E(l,"class","BirthDaySelected"),e[15]===void 0&&Ge(()=>e[51].call(l)),p.__value="",be(p,p.__value),p.disabled=!0,p.selected=!0,E(f,"class","BirthMonthSelected"),e[16]===void 0&&Ge(()=>e[52].call(f)),D.__value="",be(D,D.__value),D.disabled=!0,D.selected=!0,E(P,"class","BirthYearSelected"),e[17]===void 0&&Ge(()=>e[53].call(P)),E(u,"class","BirthDateOptions"),E(t,"class","BirthDateContainer")},m(w,Y){pe(w,t,Y),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),g(u,l),g(l,h),g(h,m);for(let y=0;y<M.length;y+=1)M[y]&&M[y].m(l,null);Me(l,e[15],!0),g(u,c),g(u,f),g(f,p),g(p,B);for(let y=0;y<$.length;y+=1)$[y]&&$[y].m(f,null);Me(f,e[16],!0),g(u,O),g(u,P),g(P,D),g(D,z),Q&&Q.m(P,null),Me(P,e[17],!0),g(u,q),ee&&ee.m(u,null),X||(ye=[K(l,"change",e[51]),K(l,"change",e[28]),K(f,"change",e[52]),K(f,"change",e[28]),K(P,"change",e[53]),K(P,"change",e[28])],X=!0)},p(w,Y){if(Y[0]&16777216&&a!==(a=w[24]("registerDateOfBirth")+"")&&ae(n,a),Y[0]&16777216&&d!==(d=w[24]("registerBirthDay")+"")&&ae(m,d),Y[0]&33554432){fe=Fe(w[25]);let y;for(y=0;y<fe.length;y+=1){const G=Qr(w,fe,y);M[y]?M[y].p(G,Y):(M[y]=nn(G),M[y].c(),M[y].m(l,null))}for(;y<M.length;y+=1)M[y].d(1);M.length=fe.length}if(Y[0]&33587200&&Me(l,w[15]),Y[0]&16777216&&x!==(x=w[24]("registerBirthMonth")+"")&&ae(B,x),Y[0]&67108864){N=Fe(w[26]);let y;for(y=0;y<N.length;y+=1){const G=zr(w,N,y);$[y]?$[y].p(G,Y):($[y]=an(G),$[y].c(),$[y].m(f,null))}for(;y<$.length;y+=1)$[y].d(1);$.length=N.length}Y[0]&67174400&&Me(f,w[16]),Y[0]&16777216&&k!==(k=w[24]("registerBirthYear")+"")&&ae(z,k),w[23]?Q&&(Q.d(1),Q=null):Q?Q.p(w,Y):(Q=on(w),Q.c(),Q.m(P,null)),Y[0]&134348800&&Me(P,w[17]),w[4]?ee?ee.p(w,Y):(ee=un(w),ee.c(),ee.m(u,null)):ee&&(ee.d(1),ee=null)},d(w){w&&he(t),Bt(M,w),Bt($,w),Q&&Q.d(),ee&&ee.d(),X=!1,Ce(ye)}}}function nn(e){let t,r=e[91]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[91],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&he(t)}}}function an(e){let t,r=e[88]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[88],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&he(t)}}}function on(e){let t,r=Fe(e[27]),a=[];for(let n=0;n<r.length;n+=1)a[n]=sn(Vr(e,r,n));return{c(){for(let n=0;n<a.length;n+=1)a[n].c();t=bn()},m(n,i){for(let o=0;o<a.length;o+=1)a[o]&&a[o].m(n,i);pe(n,t,i)},p(n,i){if(i[0]&134217728){r=Fe(n[27]);let o;for(o=0;o<r.length;o+=1){const s=Vr(n,r,o);a[o]?a[o].p(s,i):(a[o]=sn(s),a[o].c(),a[o].m(t.parentNode,t))}for(;o<a.length;o+=1)a[o].d(1);a.length=r.length}},d(n){n&&he(t),Bt(a,n)}}}function sn(e){let t,r=e[85]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[85],be(t,t.__value)},m(n,i){pe(n,t,i),g(t,a)},p:xe,d(n){n&&he(t)}}}function un(e){let t,r=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777217&&r!==(r=n[24]("registerBirthDateError",{values:{licenseyears:n[0]}})+"")&&ae(a,r)},d(n){n&&he(t)}}}function ln(e){let t,r,a=e[24]("registerBirthPlace")+"",n,i,o,s,u,l,h,d,m,c=e[5]&&cn(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","BirthPlace"),E(u,"type","text"),E(u,"id","BirthPlace"),E(t,"class",h="BirthPlaceContainer "+(e[5]&&!e[9]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[18]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[54]),K(u,"keyup",e[32]),K(u,"focus",e[55]),K(u,"blur",e[56])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerBirthPlace")+"")&&ae(n,a),p[0]&262144&&u.value!==f[18]&&be(u,f[18]),f[5]?c?c.p(f,p):(c=cn(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&544&&h!==(h="BirthPlaceContainer "+(f[5]&&!f[9]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&he(t),c&&c.d(),d=!1,Ce(m)}}}function cn(e){let t,r=e[24]("registerBirthPlaceError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerBirthPlaceError")+"")&&ae(a,r)},d(n){n&&he(t)}}}function hn(e){let t,r,a=e[24]("registerPersonalId")+"",n,i,o,s,u,l,h,d,m,c=e[6]&&fn(e);return{c(){t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("input"),l=ne(),c&&c.c(),E(o,"class","FormRequired"),E(r,"for","PersonalId"),E(u,"type","text"),E(u,"id","PersonalId"),E(t,"class",h="PersonalIdContainer "+(e[6]&&!e[10]?"InvalidField":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u),be(u,e[21]),g(t,l),c&&c.m(t,null),d||(m=[K(u,"input",e[57]),K(u,"keyup",e[33]),K(u,"focus",e[58]),K(u,"blur",e[59])],d=!0)},p(f,p){p[0]&16777216&&a!==(a=f[24]("registerPersonalId")+"")&&ae(n,a),p[0]&2097152&&u.value!==f[21]&&be(u,f[21]),f[6]?c?c.p(f,p):(c=fn(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&1088&&h!==(h="PersonalIdContainer "+(f[6]&&!f[10]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&he(t),c&&c.d(),d=!1,Ce(m)}}}function fn(e){let t,r;function a(o,s){return s[0]&2097152&&(t=null),t==null&&(t=!/^\d+$/.test(o[21])),t?nl:rl}let n=a(e,[-1,-1,-1,-1]),i=n(e);return{c(){i.c(),r=bn()},m(o,s){i.m(o,s),pe(o,r,s)},p(o,s){n===(n=a(o,s))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&he(r),i.d(o)}}}function rl(e){let t,r=e[24]("registerPersonalIdLength")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerPersonalIdLength")+"")&&ae(a,r)},d(n){n&&he(t)}}}function nl(e){let t,r=e[24]("registerPersonalIdCharacters")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,i){pe(n,t,i),g(t,a)},p(n,i){i[0]&16777216&&r!==(r=n[24]("registerPersonalIdCharacters")+"")&&ae(a,r)},d(n){n&&he(t)}}}function dn(e){let t,r,a=e[24]("registerCurrency")+"",n,i,o,s,u,l,h,d,m=Fe(e[19]),c=[];for(let f=0;f<m.length;f+=1)c[f]=mn(Xr(e,m,f));return{c(){var f;t=T("div"),r=T("label"),n=I(a),i=I(":"),o=T("span"),o.textContent="*",s=ne(),u=T("select");for(let p=0;p<c.length;p+=1)c[p].c();E(o,"class","FormRequired"),E(r,"for","Currency"),E(u,"id","Currency"),e[20]===void 0&&Ge(()=>e[60].call(u)),E(t,"class",l="CurrencyContainer "+(((f=e[11])==null?void 0:f.indexOf("currency"))>=0?"Hidden":""))},m(f,p){pe(f,t,p),g(t,r),g(r,n),g(r,i),g(r,o),g(t,s),g(t,u);for(let x=0;x<c.length;x+=1)c[x]&&c[x].m(u,null);Me(u,e[20],!0),h||(d=K(u,"change",e[60]),h=!0)},p(f,p){var x;if(p[0]&16777216&&a!==(a=f[24]("registerCurrency")+"")&&ae(n,a),p[0]&524288){m=Fe(f[19]);let B;for(B=0;B<m.length;B+=1){const O=Xr(f,m,B);c[B]?c[B].p(O,p):(c[B]=mn(O),c[B].c(),c[B].m(u,null))}for(;B<c.length;B+=1)c[B].d(1);c.length=m.length}p[0]&1572864&&Me(u,f[20]),p[0]&2048&&l!==(l="CurrencyContainer "+(((x=f[11])==null?void 0:x.indexOf("currency"))>=0?"Hidden":""))&&E(t,"class",l)},d(f){f&&he(t),Bt(c,f),h=!1,d()}}}function mn(e){let t,r=e[82]+"",a,n;return{c(){t=T("option"),a=I(r),t.__value=n=e[82],be(t,t.__value)},m(i,o){pe(i,t,o),g(t,a)},p(i,o){o[0]&524288&&r!==(r=i[82]+"")&&ae(a,r),o[0]&524288&&n!==(n=i[82])&&(t.__value=n,be(t,t.__value))},d(i){i&&he(t)}}}function al(e){var C,J,Be,Le,Te,Ue,$e;let t,r,a,n,i,o,s,u,l,h=e[24]("registerBackButton")+"",d,m,c,f=!(((C=e[11])==null?void 0:C.indexOf("title"))>=0),p,x=!(((J=e[11])==null?void 0:J.indexOf("firstName"))>=0),B,O=!(((Be=e[11])==null?void 0:Be.indexOf("lastName"))>=0),P,D=!(((Le=e[11])==null?void 0:Le.indexOf("birthDate"))>=0),k,z=!(((Te=e[11])==null?void 0:Te.indexOf("birthPlace"))>=0),q,X=!(((Ue=e[11])==null?void 0:Ue.indexOf("personalId"))>=0),ye,fe=!((($e=e[11])==null?void 0:$e.indexOf("currency"))>=0),M,N,$=e[24]("registerNext")+"",Q,ee,w,Y,y=f&&Zr(e),G=x&&Jr(e),Z=O&&en(e),de=D&&rn(e),ve=z&&ln(e),se=X&&hn(e),S=fe&&dn(e);return{c(){t=T("div"),r=T("div"),a=T("button"),n=Tt("svg"),i=Tt("defs"),o=Tt("style"),s=I(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),u=Tt("path"),l=ne(),d=I(h),m=ne(),c=T("form"),y&&y.c(),p=ne(),G&&G.c(),B=ne(),Z&&Z.c(),P=ne(),de&&de.c(),k=ne(),ve&&ve.c(),q=ne(),se&&se.c(),ye=ne(),S&&S.c(),M=ne(),N=T("button"),Q=I($),E(u,"class","a"),E(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),E(u,"transform","translate(24 24) rotate(180)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"viewBox","0 0 24 24"),E(a,"class","BackButton"),E(r,"class","RegisterFormHeader"),E(N,"class","RegisterStepNext"),N.disabled=ee=!e[22],E(c,"class","RegisterFormContent")},m(W,ue){pe(W,t,ue),g(t,r),g(r,a),g(a,n),g(n,i),g(i,o),g(o,s),g(n,u),g(a,l),g(a,d),g(t,m),g(t,c),y&&y.m(c,null),g(c,p),G&&G.m(c,null),g(c,B),Z&&Z.m(c,null),g(c,P),de&&de.m(c,null),g(c,k),ve&&ve.m(c,null),g(c,q),se&&se.m(c,null),g(c,ye),S&&S.m(c,null),g(c,M),g(c,N),g(N,Q),e[62](t),w||(Y=[K(a,"click",e[35]),K(N,"click",e[61])],w=!0)},p(W,ue){var wt,_t,Ie,st,ut,lt,ct;ue[0]&16777216&&h!==(h=W[24]("registerBackButton")+"")&&ae(d,h),ue[0]&2048&&(f=!(((wt=W[11])==null?void 0:wt.indexOf("title"))>=0)),f?y?y.p(W,ue):(y=Zr(W),y.c(),y.m(c,p)):y&&(y.d(1),y=null),ue[0]&2048&&(x=!(((_t=W[11])==null?void 0:_t.indexOf("firstName"))>=0)),x?G?G.p(W,ue):(G=Jr(W),G.c(),G.m(c,B)):G&&(G.d(1),G=null),ue[0]&2048&&(O=!(((Ie=W[11])==null?void 0:Ie.indexOf("lastName"))>=0)),O?Z?Z.p(W,ue):(Z=en(W),Z.c(),Z.m(c,P)):Z&&(Z.d(1),Z=null),ue[0]&2048&&(D=!(((st=W[11])==null?void 0:st.indexOf("birthDate"))>=0)),D?de?de.p(W,ue):(de=rn(W),de.c(),de.m(c,k)):de&&(de.d(1),de=null),ue[0]&2048&&(z=!(((ut=W[11])==null?void 0:ut.indexOf("birthPlace"))>=0)),z?ve?ve.p(W,ue):(ve=ln(W),ve.c(),ve.m(c,q)):ve&&(ve.d(1),ve=null),ue[0]&2048&&(X=!(((lt=W[11])==null?void 0:lt.indexOf("personalId"))>=0)),X?se?se.p(W,ue):(se=hn(W),se.c(),se.m(c,ye)):se&&(se.d(1),se=null),ue[0]&2048&&(fe=!(((ct=W[11])==null?void 0:ct.indexOf("currency"))>=0)),fe?S?S.p(W,ue):(S=dn(W),S.c(),S.m(c,M)):S&&(S.d(1),S=null),ue[0]&16777216&&$!==($=W[24]("registerNext")+"")&&ae(Q,$),ue[0]&4194304&&ee!==(ee=!W[22])&&(N.disabled=ee)},i:xe,o:xe,d(W){W&&he(t),y&&y.d(),G&&G.d(),Z&&Z.d(),de&&de.d(),ve&&ve.d(),se&&se.d(),S&&S.d(),e[62](null),w=!1,Ce(Y)}}}function il(e,t,r){let a;La(e,Vu,_=>r(24,a=_));let{endpoint:n=""}=t,{lang:i=""}=t,{licenseyears:o=""}=t,{disabledfields:s=""}=t,{personalidlength:u=""}=t,{mbsource:l}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,c=!1,f=!1,p=!1,x=!1,B=!1,O=!1,P=!1,D=!1,k=!1,z=!1,q,X="",ye="",fe="",M=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],N,$=[1,2,3,4,5,6,7,8,9,10,11,12],Q,ee=[],w,Y="",y=[],G="",Z="",de=new Date,ve,se,S,C={},J={title:!1,firstname:!1,lastname:!1,birthPlace:!1,birthDate:!1,currency:!1,personalId:!1},Be=!1,Le=!0,Te,Ue;const $e=()=>{fetch(m).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Ae=>{Wr(Ae,we[Ae])})}).catch(we=>{console.log(we)})};Object.keys(qr).forEach(_=>{Wr(_,qr[_])});const W=()=>{se=parseInt(Or(Nr(new Date(de),parseInt(o,10)),"yyyy"),10),ve=parseInt(Or(Nr(new Date(de),100+parseInt(o,10)),"yyyy"),10);for(let _=se;_>=ve;_--)ee.push(_);r(23,Le=!1)},ue=()=>{C.birth={},C.birth.day=N,C.birth.month=Q,C.birth.year=w,w&&Q&&N?(S=fi(new Date(de),is(`${w}-${Q}-${N}`,"yyyy-MM-dd",new Date)).toString(),r(4,p=S<o)):r(4,p=!0),J.birthDate=!p,Ie()},wt=()=>{fetch(`${n}/v1/player/operatorSupportedCurrencies`).then(_=>_.json()).then(_=>{r(19,y=_.currencies),G||(r(20,G=y[0]),J.currency=!0)})},_t=(_,we)=>{if(_==="birth"&&(_="birthDate"),!(s.indexOf(_)>=0))switch(_){case"title":r(12,X=we),ut();break;case"firstname":r(13,ye=we),lt();break;case"lastname":r(14,fe=we),ct();break;case"birthPlace":r(18,Y=we),dr();break;case"birthDate":r(15,N=we.day),r(16,Q=we.month),r(17,w=we.year),ue();break;case"personalId":r(21,Z=we),gr();break;case"currency":r(20,G=we),J.currency=!0;break}},Ie=()=>{r(22,Be=Object.keys(J).every(_=>s.includes(_)?!0:J[_]!==!1))},st=_=>!!(_&&_.length>=2&&_.length<=50),ut=()=>{C.title=X,O=!X,J.title=!O,Ie()},lt=()=>{C.firstname=ye,r(2,c=!st(ye)),J.firstname=!c,Ie()},ct=()=>{C.lastname=fe,r(3,f=!st(fe)),J.lastname=!f,Ie()},oa=()=>(C.birthPlace=Y,!!(Y&&Y.length<=120)),dr=()=>{C.birthPlace=Y,r(5,x=!oa()),J.birthPlace=!x,Ie()},mr=()=>!!(Z&&Z.length===Number(u)&&/^\d+$/.test(Z)),gr=()=>{C.personalId=Z,r(6,B=!mr()),J.personalId=mr(),Ie()},pr=_=>{C.currency=G,_.preventDefault(),window.postMessage({type:"RegisterStepTwo",registerStepTwoData:C},window.location.href)},sa=()=>{C.currency=G,window.postMessage({type:"GoBackStepTwo",registerStepTwoData:C},window.location.href)},vr=_=>{if(_.data)switch(_.data.type){case"StepTwoDataBackup":const we=_.data.userData;for(const Ae in we)_t(Ae,we[Ae]);r(22,Be=Object.keys(J).every(Ae=>s.includes(Ae)?!0:J[Ae]!==!1));break}},ua=()=>{r(11,q=s.split(","))},la=()=>{zu(i)};$a(()=>(window.addEventListener("message",vr,!1),()=>{window.removeEventListener("message",vr)}));function ca(){X=ht(this),r(12,X)}function ha(){ye=this.value,r(13,ye)}const fa=()=>r(7,P=!0),da=()=>r(7,P=!1);function ma(){fe=this.value,r(14,fe)}const ga=()=>r(8,D=!0),pa=()=>r(8,D=!1);function va(){N=ht(this),r(15,N),r(25,M)}function ba(){Q=ht(this),r(16,Q),r(26,$)}function ya(){w=ht(this),r(17,w),r(27,ee)}function wa(){Y=this.value,r(18,Y)}const _a=()=>r(9,k=!0),Ta=()=>r(9,k=!1);function Ea(){Z=this.value,r(21,Z)}const xa=()=>r(10,z=!0),Pa=()=>r(10,z=!1);function Ca(){G=ht(this),r(20,G),r(19,y)}const Ba=_=>pr(_);function Oa(_){Vt[_?"unshift":"push"](()=>{Te=_,r(1,Te)})}return e.$$set=_=>{"endpoint"in _&&r(36,n=_.endpoint),"lang"in _&&r(37,i=_.lang),"licenseyears"in _&&r(0,o=_.licenseyears),"disabledfields"in _&&r(38,s=_.disabledfields),"personalidlength"in _&&r(39,u=_.personalidlength),"mbsource"in _&&r(40,l=_.mbsource),"clientstyling"in _&&r(41,h=_.clientstyling),"clientstylingurl"in _&&r(42,d=_.clientstylingurl),"translationurl"in _&&r(43,m=_.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&160&&n&&s.indexOf("currency")===-1&&wt(),e.$$.dirty[1]&64&&i&&la(),e.$$.dirty[0]&1&&o&&W(),e.$$.dirty[1]&128&&s&&ua(),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&h&&Te&&Qu(Te,h),e.$$.dirty[0]&2|e.$$.dirty[1]&2048&&d&&Te&&Zu(Te,d),e.$$.dirty[0]&2|e.$$.dirty[1]&512&&l&&Te&&Ju(Te,`${l}.Style`,Ue),e.$$.dirty[1]&4096&&m&&$e()},[o,Te,c,f,p,x,B,P,D,k,z,q,X,ye,fe,N,Q,w,Y,y,G,Z,Be,Le,a,M,$,ee,ue,ut,lt,ct,dr,gr,pr,sa,n,i,s,u,l,h,d,m,ca,ha,fa,da,ma,ga,pa,va,ba,ya,wa,_a,Ta,Ea,xa,Pa,Ca,Ba,Oa]}class ia extends ei{constructor(t){super(),Ja(this,t,il,al,pn,{endpoint:36,lang:37,licenseyears:0,disabledfields:38,personalidlength:39,mbsource:40,clientstyling:41,clientstylingurl:42,translationurl:43},tl,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[36]}set endpoint(t){this.$$set({endpoint:t}),Oe()}get lang(){return this.$$.ctx[37]}set lang(t){this.$$set({lang:t}),Oe()}get licenseyears(){return this.$$.ctx[0]}set licenseyears(t){this.$$set({licenseyears:t}),Oe()}get disabledfields(){return this.$$.ctx[38]}set disabledfields(t){this.$$set({disabledfields:t}),Oe()}get personalidlength(){return this.$$.ctx[39]}set personalidlength(t){this.$$set({personalidlength:t}),Oe()}get mbsource(){return this.$$.ctx[40]}set mbsource(t){this.$$set({mbsource:t}),Oe()}get clientstyling(){return this.$$.ctx[41]}set clientstyling(t){this.$$set({clientstyling:t}),Oe()}get clientstylingurl(){return this.$$.ctx[42]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Oe()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),Oe()}}Ka(ia,{endpoint:{},lang:{},licenseyears:{},disabledfields:{},personalidlength:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=ia;