@everymatrix/general-player-register-form 0.0.199 → 0.0.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function ve(){}function p(e){return e()}function d(){return Object.create(null)}function we(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Ee(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function xe(e){e.parentNode.removeChild(e)}function t(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function _e(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Te(e){return document.createTextNode(e)}function Se(){return Te(" ")}function U(){return Te("")}function Ae(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Pe(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function i(e,t,r){t in e?e[t]=r:Pe(e,t,r)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Re(e,t){e.value=null==t?"":t}function m(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function De(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}function O(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let f;function g(e){f=e}function L(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const y=[],D=[],o=[],s=[],b=Promise.resolve();let v=!1;function Ie(e){o.push(e)}let a=!1;const l=new Set;function w(){if(!a){a=!0;do{for(let e=0;e<y.length;e+=1){var t=y[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),we(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ie))}}(t.$$)}for(g(null),y.length=0;D.length;)D.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];l.has(r)||(l.add(r),r())}}while(o.length=0,y.length);for(;s.length;)s.pop()();v=!1,a=!1,l.clear()}}const E=new Set;function c(n,e,t,r,i,o,s=[-1]){var a,l=f;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:ve,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:d(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(y.push(e),v||(v=!0,b.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,we(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const ve=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(ve),ve.forEach(xe)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(E.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||Ie(()=>{var e=o.map(p).filter(h);s?s.push(...e):we(e),t.$$.on_mount=[]}),a.forEach(Ie)}(n,e.target,e.anchor,e.customElement),w()}g(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){we(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(we(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=ve}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var x,_,T="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==T&&T,S="URLSearchParams"in T,A="Symbol"in T&&"iterator"in Symbol,P="FileReader"in T&&"Blob"in T&&function(){try{return new Blob,!0}catch(e){return!1}}(),R="FormData"in T,I="ArrayBuffer"in T;function k(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function M(e){return e="string"!=typeof e?String(e):e}function N(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function B(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function $(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function G(e){var t=new FileReader,r=$(t);return t.readAsArrayBuffer(e),r}function j(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:P&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:R&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:S&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():I&&P&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=j(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):I&&(ArrayBuffer.prototype.isPrototypeOf(e)||_(e))?this._bodyArrayBuffer=j(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P&&(this.blob=function(){var e=B(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?B(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(G)}),this.text=function(){var e,t,r=B(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=$(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}I&&(x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=ArrayBuffer.isView||function(e){return e&&-1<x.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=k(e),t=M(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},F.prototype.delete=function(e){delete this.map[k(e)]},F.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},F.prototype.set=function(e,t){this.map[k(e)]=M(t)},F.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},F.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),N(r)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),N(t)},F.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),N(r)},A&&(F.prototype[Symbol.iterator]=F.prototype.entries);var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function V(e,t){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof V){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new F(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<H.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function q(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function X(e,t){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})},z.call(V.prototype),z.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},X.error=function(){var e=new X(null,{status:0,statusText:""});return e.type="error",e};var Z=[301,302,303,307,308];X.redirect=function(e,t){if(-1===Z.indexOf(t))throw new RangeError("Invalid status code");return new X(null,{status:t,headers:{location:e}})};var Y=T.DOMException;try{new Y}catch(ve){(Y=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Y.prototype.constructor=Y}function W(n,s){return new Promise(function(i,e){var t=new V(n,s);if(t.signal&&t.signal.aborted)return e(new Y("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new F,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new X(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Y("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&T.location.href?T.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(P?o.responseType="blob":I&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof F?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,M(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}W.polyfill=!0,T.fetch||(T.fetch=W,T.Headers=F,T.Request=V,T.Response=X),self.fetch.bind(self);var Q=function(e,t){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function J(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function te(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function re(e){return"function"==typeof e}function ne(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ie=ne(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function oe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var se=(le.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=J(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(re(o))try{o()}catch(e){i=e instanceof ie?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=J(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{ue(u)}catch(e){i=null!=i?i:[],e instanceof ie?i=te(te([],ee(i)),ee(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new ie(i)}},le.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ue(e);else{if(e instanceof le){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},le.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},le.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},le.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&oe(t,e)},le.prototype.remove=function(e){var t=this._teardowns;t&&oe(t,e),e instanceof le&&e._removeParent(this)},le.EMPTY=((Vt=new le).closed=!0,Vt),le),ae=se.EMPTY;function le(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ce(e){return e instanceof se||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function ue(e){re(e)?e():e.unsubscribe()}var pe=void 0,de=!1,he=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,te([],ee(e)))};function fe(){}function me(e){e()}var ge,ye,be=(K(ke,ye=se),ke.create=function(e,t,r){return new Oe(e,t,r)},ke.prototype.next=function(e){this.isStopped||this._next(e)},ke.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ke.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ke.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ye.prototype.unsubscribe.call(this),this.destination=null)},ke.prototype._next=function(e){this.destination.next(e)},ke.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ke.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ke),Oe=(K(Le,ge=be),Le);function Le(e,t,r){var n,i,o=ge.call(this)||this;return re(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&de?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Me(i):fe,error:Me(null!=t?t:Ne),complete:r?Me(r):fe},o}function ke(e){var t=ye.call(this)||this;return t.isStopped=!1,e?ce(t.destination=e)&&e.add(t):t.destination=Fe,t}function Me(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,te([],ee(e)))}catch(e){t=e,he(function(){throw t})}}}function Ne(e){throw e}var Fe={closed:!0,next:fe,error:Ne,complete:fe},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function Be(e){return e}var $e=(Ge.prototype.lift=function(e){var t=new Ge;return t.source=this,t.operator=e,t},Ge.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof be||n&&re(n.next)&&re(n.error)&&re(n.complete)&&ce(n)?e:new Oe(e,t,r);return me(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ge.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ge.prototype.forEach=function(n,e){var i=this;return new(e=je(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ge.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ge.prototype[Ue]=function(){return this},Ge.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Be:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ge.prototype.toPromise=function(e){var n=this;return new(e=je(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ge.create=function(e){return new Ge(e)},Ge);function Ge(e){e&&(this._subscribe=e)}function je(e){return null!==(e=null!=e?e:pe)&&void 0!==e?e:Promise}var ze,He,Ve,qe=ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=(K(Je,Ve=$e),Je.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new qe},Je.prototype.next=function(o){var s=this;me(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=J(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var r=this;me(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Je.prototype.complete=function(){var t=this;me(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ae:(n.push(e),new se(function(){return oe(n,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Je.prototype.asObservable=function(){var e=new $e;return e.source=this,e},Je.create=function(e,t){return new Ze(e,t)},Je),Ze=(K(Ke,He=Xe),Ke.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Ke.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Ke.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Ke.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ae},Ke),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},We=(K(Qe,ze=Xe),Qe.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Qe.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Qe.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},Qe);function Qe(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ye);var n=ze.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ke(e,t){var r=He.call(this)||this;return r.destination=e,r.source=t,r}function Je(){var e=Ve.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let et=[],tt={};const rt=[];function nt(n,i=ve){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!rt.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),rt.push(t,n)}if(e){for(let e=0;e<rt.length;e+=2)rt[e][0](rt[e+1]);rt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=ve){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||ve),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function it(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return nt(t,t=>{let n=!1;const i=[];let o=0,r=ve;const s=()=>{var e;o||(r(),e=a(l?i[0]:i,t),u?t(e):r=h(e)?e:ve)},e=c.map((r,t)=>function(e){if(null==r)return ve;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{i[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}]));return n=!0,s(),function(){we(e),r()}}).subscribe,1}var ot=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function at(e,t){return!1!==t.clone&&t.isMergeableObject(e)?dt(Array.isArray(e)?[]:{},e,t):e}function lt(e,t,r){return e.concat(t).map(function(e){return at(e,r)})}function ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ut(e,t){try{return t in e}catch(e){return!1}}function pt(n,i,o){var s={};return o.isMergeableObject(n)&&ct(n).forEach(function(e){s[e]=at(n[e],o)}),ct(i).forEach(function(t){var e,r;(!ut(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ut(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return dt;var e=o.customMerge(t);return"function"==typeof e?e:dt}()(n[t],i[t],o):s[t]=at(i[t],o))}),s}function dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||lt,r.isMergeableObject=r.isMergeableObject||ot,r.cloneUnlessOtherwiseSpecified=at;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):pt(e,t,r):at(t,r)}dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return dt(e,t,r)},{})};var ht=dt,ft=function(e,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var gt,yt,bt,vt=function(){return(vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function wt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function Et(e){return e.type===yt.literal}function Ct(e){return e.type===yt.number}function xt(e){return e.type===yt.date}function _t(e){return e.type===yt.time}function Tt(e){return e.type===yt.select}function St(e){return e.type===yt.plural}function At(e){return e.type===yt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Rt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(qt=gt=gt||{})[qt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",qt[qt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",qt[qt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",qt[qt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",qt[qt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",qt[qt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",qt[qt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",qt[qt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",qt[qt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",qt[qt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",qt[qt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",qt[qt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",qt[qt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",qt[qt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",qt[qt.INVALID_TAG=23]="INVALID_TAG",qt[qt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",qt[qt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",qt[qt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xt=yt=yt||{})[Xt.literal=0]="literal",Xt[Xt.argument=1]="argument",Xt[Xt.number=2]="number",Xt[Xt.date=3]="date",Xt[Xt.time=4]="time",Xt[Xt.select=5]="select",Xt[Xt.plural=6]="plural",Xt[Xt.pound=7]="pound",Xt[Xt.tag=8]="tag",(Zt=bt=bt||{})[Zt.number=0]="number",Zt[Zt.dateTime=1]="dateTime";var Dt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,It=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Ot,Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?$/g,Nt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ft=/^(0+)$/;function Ut(e){var n={};return e.replace(Mt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Bt(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 $t(e){return Bt(e)||{}}function Gt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=vt(vt(vt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return vt(vt({},e),$t(t))},{}));continue;case"engineering":s=vt(vt(vt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return vt(vt({},e),$t(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Nt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ft.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=vt(vt({},s),Ut(i.options[0])))}else Mt.test(i.stem)?s=vt(vt({},s),Ut(i.stem)):((n=Bt(i.stem))&&(s=vt(vt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ft.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=vt(vt({},s),n)))}return s}var jt=new RegExp("^"+Dt.source+"*"),zt=new RegExp(Dt.source+"*$");function Ht(e,t){return{start:e,end:t}}var Vt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Xe=!!Object.fromEntries,qt=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,Zt=!!String.prototype.trimEnd,Yt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Dt=!0;try{Dt="a"===(null===(Ot=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(ve){Dt=!1}var Wt,Qt,Kt=Vt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Jt=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},er=Xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},tr=qt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},rr=Xt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},nr=Zt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Qt=Dt?(Wt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Wt.lastIndex=t,null!==(e=Wt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=tr(e,t);if(void 0===i||lr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Jt.apply(void 0,n)};var or=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(gt.UNMATCHED_CLOSING_TAG,Ht(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:yt.pound,location:Ht(o,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:yt.literal,value:"<"+n+"/>",location:Ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(gt.INVALID_TAG,Ht(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(gt.UNMATCHED_CLOSING_TAG,Ht(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:yt.tag,value:n,children:e,location:Ht(r,this.clonePosition())},err:null}:this.error(gt.INVALID_TAG,Ht(t,this.clonePosition())))}return this.error(gt.UNCLOSED_TAG,Ht(r,this.clonePosition()))}return this.error(gt.INVALID_TAG,Ht(r,this.clonePosition()))},sr.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},sr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ht(r,this.clonePosition());return{val:{type:yt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ar(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Jt.apply(void 0,t)},sr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Jt(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(gt.EMPTY_ARGUMENT,Ht(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:yt.argument,value:n,location:Ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(gt.MALFORMED_ARGUMENT,Ht(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Qt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ht(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(gt.EXPECT_ARGUMENT_TYPE,Ht(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=nr(d.val)).length)return this.error(gt.EXPECT_ARGUMENT_STYLE,Ht(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Ht(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var u=Ht(n,this.clonePosition());if(l&&Kt(null==l?void 0:l.style,"::",0)){c=rr(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?d:{val:{type:yt.number,value:r,location:u,style:d.val},err:null};if(0===c.length)return this.error(gt.EXPECT_DATE_TIME_SKELETON,u);var p={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(It,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?yt.date:yt.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?yt.number:"date"===s?yt.date:yt.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(gt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ht(l,vt({},l)));this.bumpSpace();var d,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ht(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=d.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((h=this.tryParseArgumentClose(n)).err)return h;var h=Ht(n,this.clonePosition());return"select"===s?{val:{type:yt.select,value:r,options:er(u.val),location:h},err:null}:{val:{type:yt.plural,value:r,options:er(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(gt.INVALID_ARGUMENT_TYPE,Ht(o,a))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Ht(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ht(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},sr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Lt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(gt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Gt(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ht(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ht(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;o.push([a,{value:u.val,location:Ht(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(gt.MISSING_OTHER_CLAUSE,Ht(this.clonePosition(),this.clonePosition())):{val:o,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Ht(n,this.clonePosition());return i?Yt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},sr.prototype.bumpIf=function(e){if(Kt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},sr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ar(e){return 97<=e&&e<=122||65<=e&&e<=90}function lr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function cr(e,t){t=vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new or(e,t).parse();if(r.err){e=SyntaxError(gt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Tt(e)||St(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&Pt(e.style)||(xt(e)||_t(e))&&Rt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:yr,n=t&&t.serializer?t.serializer:fr;return(t&&t.strategy?t.strategy:function(e,t){return hr(e,this,1===e.length?pr:dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function pr(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function hr(e,t,r,n,i){return r.bind(t,e,n,i)}var fr=function(){return JSON.stringify(arguments)};function mr(){this.cache=Object.create(null)}mr.prototype.has=function(e){return e in this.cache},mr.prototype.get=function(e){return this.cache[e]},mr.prototype.set=function(e,t){this.cache[e]=t};var gr,yr={create:function(){return new mr}},br={variadic:function(e,t){return hr(e,this,dr,t.cache.create(),t.serializer)},monadic:function(e,t){return hr(e,this,pr,t.cache.create(),t.serializer)}};(Dt=gr=gr||{}).MISSING_VALUE="MISSING_VALUE",Dt.INVALID_VALUE="INVALID_VALUE",Dt.MISSING_INTL_API="MISSING_INTL_API";var vr,wr,Er,Cr,xr,_r=(mt(Ir,xr=Error),Ir.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ir),Tr=(mt(Dr,Cr=_r),Dr),Sr=(mt(Rr,Er=_r),Rr),Ar=(mt(Pr,wr=_r),Pr);function Pr(e,t){return wr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',gr.MISSING_VALUE,t)||this}function Rr(e,t,r){return Er.call(this,'Value for "'+e+'" must be of type '+t,gr.INVALID_VALUE,r)||this}function Dr(e,t,r,n){return Cr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',gr.INVALID_VALUE,n)||this}function Ir(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Or(e,t,r,n,i,o,s){if(1===e.length&&Et(e[0]))return[{type:vr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Et(u))a.push({type:vr.literal,value:u.value});else if(u.type===yt.pound)"number"==typeof o&&a.push({type:vr.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new Ar(p,s);var d=i[p];if(u.type===yt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?vr.literal:vr.object,value:d});else if(xt(u)){var h="string"==typeof u.style?n.date[u.style]:Rt(u.style)?u.style.parsedOptions:void 0;a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(_t(u))h="string"==typeof u.style?n.time[u.style]:Rt(u.style)?u.style.parsedOptions:void 0,a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Ct(u))(h="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:vr.literal,value:r.getNumberFormat(t,h).format(d)});else{if(At(u)){var f=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Sr(m,"function",s);f=p(Or(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?vr.literal:vr.object,value:e}}))}if(Tt(u)){if(!(g=u.options[d]||u.options.other))throw new Tr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i))}else if(St(u)){if(!(g=u.options["="+d])){if(!Intl.PluralRules)throw new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Tr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i,d-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===vr.literal&&t.type===vr.literal?r.value+=t.value:e.push(t),e},[])}function Lr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Dt=vr=vr||{})[Dt.literal=0]="literal",Dt[Dt.object=1]="object";var kr=(Object.defineProperty(Mr,"defaultLocale",{get:function(){return Mr.memoizedDefaultLocale||(Mr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Mr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Mr.memoizedDefaultLocale=null,Mr.__parse=cr,Mr.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"}}},Mr);function Mr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Mr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===vr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Or(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Mr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Mr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Mr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?vt(vt(vt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=vt(vt({},r[t]),n[t]||{}),e},{})):r),e},vt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,wt([void 0],t)))},{cache:Lr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,wt([void 0],t)))},{cache:Lr(n.dateTime),strategy:br.variadic}),getPluralRules:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,wt([void 0],t)))},{cache:Lr(n.pluralRules),strategy:br.variadic})}}const Nr={},Fr=(t,r)=>{if(null!=r){if(r in Nr&&t in Nr[r])return Nr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,$r(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Nr||(Nr[i]={}),n in Nr[i]||(Nr[i][n]=s),s)}}};let Ur;const Br=nt({});function $r(e){return e in Ur}it([Br],([e])=>Object.keys(e)),Br.subscribe(e=>Ur=e);const Gr={};function jr(e){return Gr[e]}function zr(e){return Kr(e).some(e=>{return null===(e=jr(e))||void 0===e?void 0:e.size})}function Hr(t,e){return Promise.all(e.map(e=>(function(e,t){Gr[e].delete(t),0===Gr[e].size&&delete Gr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Nr[t],Br.update(e=>(e[t]=ht.all([e[t]||{},...r]),e))}(t,...e))}const Vr={};function qr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=nt(!1);let Yr;const Wr=nt(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Xr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Wr.subscribe(e=>{Yr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Jr=Wr.set;Wr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if($r(r))return r}}}(t)&&zr(t)){var{loadingDelay:r}=Xr;let e;return"undefined"!=typeof window&&null!=Yr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),function e(t){if(!zr(t))return t in Vr?Vr[t]:void 0;const r=Kr(t).map(e=>{var t=jr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vr[t]=Promise.all(r.map(([e,t])=>Hr(e,t))).then(()=>zr(t)?e(t):void delete Vr[t]),Vr[t]}(t).then(()=>{Jr(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return Jr(t)},Wr.update=e=>Jr(e(Yr));const en=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},tn=(e,t)=>{var{formats:r}=Xr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=tn("number",r)),new Intl.NumberFormat(t,e)}),nn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=tn("date",r):0===Object.keys(e).length&&(e=tn("date","short")),new Intl.DateTimeFormat(t,e)}),on=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=tn("time",r):0===Object.keys(e).length&&(e=tn("time","short")),new Intl.DateTimeFormat(t,e)}),sn=en((e,t=Yr)=>new kr(e,t,Xr.formats,{ignoreTag:Xr.ignoreTag}));function an(){let r;return{c(){r=_e("p"),r.textContent="Email should contain '@' and a 2-3 letter long domain.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function ln(){let r;return{c(){r=_e("p"),r.textContent="Name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function cn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=Te(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[35]),u=!0)},p:ve,d(e){e&&xe(n),u=!1,p()}}}function un(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=Te(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","TogglePasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[34]),g=!0)},p:ve,d(e){e&&xe(n),g=!1,y()}}}function pn(){let r;return{c(){r=_e("p"),r.textContent="Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function dn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=Te(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Pe(l,"class","a"),Pe(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Pe(l,"transform","translate(0)"),Pe(c,"class","a"),Pe(c,"cx","2.779"),Pe(c,"cy","2.779"),Pe(c,"r","2.779"),Pe(c,"transform","translate(20.827 30.303)"),Pe(a,"transform","translate(-14.185 -27.832)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.843"),Pe(n,"height","10.5"),Pe(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),u||(p=Ae(n,"click",r[39]),u=!0)},p:ve,d(e){e&&xe(n),u=!1,p()}}}function hn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=Te(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Pe(l,"class","a"),Pe(l,"cx","0.05"),Pe(l,"cy","0.05"),Pe(l,"r","0.05"),Pe(l,"transform","translate(121.017 31.148)"),Pe(u,"class","a"),Pe(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Pe(u,"transform","translate(-142.164 -39.123)"),Pe(p,"class","a"),Pe(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Pe(p,"transform","translate(-136.413 -42.068)"),Pe(c,"transform","translate(117.499 27.37)"),Pe(h,"class","a"),Pe(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Pe(h,"transform","translate(-110.856 -33.157)"),Pe(f,"class","a"),Pe(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Pe(f,"transform","translate(-130.743 -29.617)"),Pe(d,"transform","translate(110.856 24.899)"),Pe(m,"class","a"),Pe(m,"width","0.972"),Pe(m,"height","15.861"),Pe(m,"rx","0.486"),Pe(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Pe(a,"transform","translate(-110.856 -23.242)"),Pe(n,"class","ToggleConfirmPasswordVisibility"),Pe(n,"xmlns","http://www.w3.org/2000/svg"),Pe(n,"width","18.844"),Pe(n,"height","12.887"),Pe(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(n,a),Ee(a,l),Ee(a,c),Ee(c,u),Ee(c,p),Ee(a,d),Ee(d,h),Ee(d,f),Ee(a,m),g||(y=Ae(n,"click",r[38]),g=!0)},p:ve,d(e){e&&xe(n),g=!1,y()}}}function fn(){let r;return{c(){r=_e("p"),r.textContent="Do not match with password.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function mn(){let r;return{c(){r=_e("p"),r.textContent="Security question must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function gn(){let r;return{c(){r=_e("p"),r.textContent="Security answer must be at least 1 character long and maximum 120 characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function yn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se=r[0]&&an(),ae=r[1]&&ln();function le(e){return e[12]?un:cn}let ce=le(r),ue=ce(r),pe=r[2]&&pn();function de(e){return e[13]?hn:dn}let he=de(r),fe=he(r),me=r[3]&&fn(),ge=r[4]&&mn(),ye=r[5]&&gn();return{c(){n=_e("div"),i=_e("h2"),i.textContent="Create your account",o=Se(),s=_e("p"),a=Te("Already have an account? "),l=_e("span"),l.textContent="Login",c=Se(),u=_e("div"),p=_e("div"),d=_e("label"),d.innerHTML='Email:<span class="FormRequired">*</span>',h=Se(),f=_e("input"),m=Se(),se&&se.c(),y=Se(),b=_e("div"),v=_e("label"),v.innerHTML='Username:<span class="FormRequired">*</span>',w=Se(),E=_e("input"),C=Se(),ae&&ae.c(),_=Se(),T=_e("div"),S=_e("label"),S.innerHTML='Password:<span class="FormRequired">*</span>',A=Se(),P=_e("input"),R=Se(),ue.c(),D=Se(),pe&&pe.c(),O=Se(),L=_e("div"),k=_e("label"),k.innerHTML='Confirm Password:<span class="FormRequired">*</span>',M=Se(),N=_e("input"),F=Se(),fe.c(),U=Se(),me&&me.c(),$=Se(),G=_e("div"),j=_e("label"),j.innerHTML='Security Question:<span class="FormRequired">*</span>',z=Se(),H=_e("input"),V=Se(),ge&&ge.c(),X=Se(),Z=_e("div"),Y=_e("label"),Y.innerHTML='Security Answer:<span class="FormRequired">*</span>',W=Se(),Q=_e("input"),K=Se(),ye&&ye.c(),ee=Se(),te=_e("button"),re=Te("Next"),this.c=ve,Pe(i,"class","RegisterFormTitle"),Pe(l,"class","FormLoginCallToAction"),Pe(s,"class","RegisterFormSubtitle"),Pe(n,"class","RegisterFormHeader"),Pe(d,"for","Email"),Pe(f,"type","text"),Pe(f,"id","Email"),Pe(p,"class",g="EmailContainer "+(r[0]?"InvalidField":"")),Pe(v,"for","UserName"),Pe(E,"type","text"),Pe(E,"id","UserName"),Pe(b,"class",x="UserContainer "+(r[1]?"InvalidField":"")),Pe(S,"for","Password"),Pe(P,"type","password"),Pe(P,"id","Password"),Pe(T,"class",I="PasswordContainer "+(r[2]?"InvalidField":"")),Pe(k,"for","ConfirmPassword"),Pe(N,"type","password"),Pe(N,"id","ConfirmPassword"),Pe(L,"class",B="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),Pe(j,"for","SecurityQuestion"),Pe(H,"type","text"),Pe(H,"id","SecurityQuestion"),Pe(G,"class",q="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),Pe(Y,"for","SecurityAnswer"),Pe(Q,"type","text"),Pe(Q,"id","SecurityAnswer"),Pe(Z,"class",J="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(te,"class","RegisterStepNext"),te.disabled=ne=!r[16]},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,o),Ee(n,s),Ee(s,a),Ee(s,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(p,h),Ee(p,f),Re(f,r[7]),Ee(p,m),se&&se.m(p,null),Ee(u,y),Ee(u,b),Ee(b,v),Ee(b,w),Ee(b,E),Re(E,r[6]),Ee(b,C),ae&&ae.m(b,null),Ee(u,_),Ee(u,T),Ee(T,S),Ee(T,A),Ee(T,P),Re(P,r[8]),r[33](P),Ee(T,R),ue.m(T,null),Ee(T,D),pe&&pe.m(T,null),Ee(u,O),Ee(u,L),Ee(L,k),Ee(L,M),Ee(L,N),Re(N,r[9]),r[37](N),Ee(L,F),fe.m(L,null),Ee(L,U),me&&me.m(L,null),Ee(u,$),Ee(u,G),Ee(G,j),Ee(G,z),Ee(G,H),Re(H,r[10]),Ee(G,V),ge&&ge.m(G,null),Ee(u,X),Ee(u,Z),Ee(Z,Y),Ee(Z,W),Ee(Z,Q),Re(Q,r[11]),Ee(Z,K),ye&&ye.m(Z,null),Ce(e,ee,t),Ce(e,te,t),Ee(te,re),ie||(oe=[Ae(l,"click",r[29]),Ae(f,"input",r[30]),Ae(f,"blur",r[18]),Ae(E,"input",r[31]),Ae(E,"blur",r[19]),Ae(P,"input",r[32]),Ae(P,"blur",r[24]),Ae(N,"input",r[36]),Ae(N,"blur",r[25]),Ae(H,"input",r[40]),Ae(H,"blur",r[26]),Ae(Q,"input",r[41]),Ae(Q,"keyup",r[27]),Ae(te,"click",r[28])],ie=!0)},p(e,t){128&t[0]&&f.value!==e[7]&&Re(f,e[7]),e[0]?se||(se=an(),se.c(),se.m(p,null)):se&&(se.d(1),se=null),1&t[0]&&g!==(g="EmailContainer "+(e[0]?"InvalidField":""))&&Pe(p,"class",g),64&t[0]&&E.value!==e[6]&&Re(E,e[6]),e[1]?ae||(ae=ln(),ae.c(),ae.m(b,null)):ae&&(ae.d(1),ae=null),2&t[0]&&x!==(x="UserContainer "+(e[1]?"InvalidField":""))&&Pe(b,"class",x),256&t[0]&&P.value!==e[8]&&Re(P,e[8]),ce===(ce=le(e))&&ue?ue.p(e,t):(ue.d(1),ue=ce(e),ue&&(ue.c(),ue.m(T,D))),e[2]?pe||(pe=pn(),pe.c(),pe.m(T,null)):pe&&(pe.d(1),pe=null),4&t[0]&&I!==(I="PasswordContainer "+(e[2]?"InvalidField":""))&&Pe(T,"class",I),512&t[0]&&N.value!==e[9]&&Re(N,e[9]),he===(he=de(e))&&fe?fe.p(e,t):(fe.d(1),fe=he(e),fe&&(fe.c(),fe.m(L,U))),e[3]?me||(me=fn(),me.c(),me.m(L,null)):me&&(me.d(1),me=null),8&t[0]&&B!==(B="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&Pe(L,"class",B),1024&t[0]&&H.value!==e[10]&&Re(H,e[10]),e[4]?ge||(ge=mn(),ge.c(),ge.m(G,null)):ge&&(ge.d(1),ge=null),16&t[0]&&q!==(q="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&Pe(G,"class",q),2048&t[0]&&Q.value!==e[11]&&Re(Q,e[11]),e[5]?ye||(ye=gn(),ye.c(),ye.m(Z,null)):ye&&(ye.d(1),ye=null),32&t[0]&&J!==(J="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&Pe(Z,"class",J),65536&t[0]&&ne!==(ne=!e[16])&&(te.disabled=ne)},i:ve,o:ve,d(e){e&&xe(n),e&&xe(c),e&&xe(u),se&&se.d(),ae&&ae.d(),r[33](null),ue.d(),pe&&pe.d(),r[37](null),fe.d(),me&&me.d(),ge&&ge.d(),ye&&ye.d(),e&&xe(ee),e&&xe(te),ie=!1,we(oe)}}}function bn(e,t,r){let n,i,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p="",d="",h="",f="",m="",g="",y=!1,b=!1,v=!1;const w=()=>{r(16,v=!(o||s||a||l||c||u)),(p.length<=0||d.length<=0||h.length<=0||f.length<=0||m.length<=0||g.length<=0)&&r(16,v=!1)},E=()=>{window.postMessage({type:"ToLogin"},window.location.href)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},x=()=>{r(12,y=!0),A()},_=()=>{r(13,b=!0),P()},T=()=>{r(12,y=!1),A()},S=()=>{r(13,b=!1),P()},A=()=>{r(14,n.type=y?"text":"password",n)},P=()=>{r(15,i.type=b?"text":"password",i)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,d=e.data.userData.email),r(6,p=e.data.userData.username),r(8,h=e.data.userData.password),r(9,f=e.data.userData.password),r(10,m=e.data.userData.securityQuestion),r(11,g=e.data.userData.securityAnswer),w())};return L(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)})),[o,s,a,l,c,u,p,d,h,f,m,g,y,b,n,i,v,E,()=>{var e;r(0,(e=d,o=!C.email.test(e))),w()},()=>{var e;r(1,(e=p,s=!C.user.test(e))),w()},x,_,T,S,()=>{var e;r(2,(e=h,a=!C.password.test(e))),h!==f&&0<f.length&&r(3,l=!0),w()},()=>{r(3,l=!(h===f)),w()},()=>{r(4,c=!(m&&m.length<=120)),w()},()=>{r(5,u=!(g&&g.length<=120)),w()},()=>{var e={userEmail:d,userValue:p,userPassword:h,confirmUserPassword:f,securityQuestion:m,securityAnswer:g};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},()=>E(),function(){d=this.value,r(7,d)},function(){p=this.value,r(6,p)},function(){h=this.value,r(8,h)},function(e){D[e?"unshift":"push"](()=>{n=e,r(14,n)})},()=>T(),()=>x(),function(){f=this.value,r(9,f)},function(e){D[e?"unshift":"push"](()=>{i=e,r(15,i)})},()=>S(),()=>_(),function(){m=this.value,r(10,m)},function(){g=this.value,r(11,g)}]}function vn(e,t,r){const n=e.slice();return n[37]=t[r],n}function wn(e,t,r){const n=e.slice();return n[40]=t[r],n}function En(e,t,r){const n=e.slice();return n[43]=t[r],n}function Cn(e,t,r){const n=e.slice();return n[46]=t[r],n}function xn(e,t,r){const n=e.slice();return n[49]=t[r],n}function _n(e){let r,n,t=e[49]+"";return{c(){r=_e("option"),n=Te(t),r.__value=e[49],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&xe(r)}}}function Tn(){let r;return{c(){r=_e("p"),r.textContent="First name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Sn(){let r;return{c(){r=_e("p"),r.textContent="Last name must be at least 2 characters long and contain no special characters.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function An(e){let r,n,t=e[46]+"";return{c(){r=_e("option"),n=Te(t),r.__value=e[46],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&xe(r)}}}function Pn(e){let r,n,t=e[43]+"";return{c(){r=_e("option"),n=Te(t),r.__value=e[43],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&xe(r)}}}function Rn(e){let r,n,t=e[40]+"";return{c(){r=_e("option"),n=Te(t),r.__value=e[40],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p:ve,d(e){e&&xe(r)}}}function Dn(){let r;return{c(){r=_e("p"),r.textContent="Birth place must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function In(e){let r,n,i,o=e[37]+"";return{c(){r=_e("option"),n=Te(o),r.__value=i=e[37],r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){1024&t[0]&&o!==(o=e[37]+"")&&C(n,o),1024&t[0]&&i!==(i=e[37])&&(r.__value=i,r.value=r.__value)},d(e){e&&xe(r)}}}function On(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,e,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,H,V,q,X,Z,Y,W,Q,K,J=r[13],ee=[];for(let e=0;e<J.length;e+=1)ee[e]=_n(xn(r,J,e));let te=r[0]&&Tn(),re=r[1]&&Sn(),ne=r[14],ie=[];for(let e=0;e<ne.length;e+=1)ie[e]=An(Cn(r,ne,e));let oe=r[15],se=[];for(let e=0;e<oe.length;e+=1)se[e]=Pn(En(r,oe,e));let ae=r[16],le=[];for(let e=0;e<ae.length;e+=1)le[e]=Rn(wn(r,ae,e));let ce=r[2]&&Dn(),ue=r[10],pe=[];for(let e=0;e<ue.length;e+=1)pe[e]=In(vn(r,ue,e));return{c(){n=_e("div"),i=_e("button"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back',o=Se(),s=_e("div"),a=_e("div"),l=_e("label"),l.innerHTML='Title:<span class="FormRequired">*</span>',c=Se(),u=_e("select");for(let e=0;e<ee.length;e+=1)ee[e].c();p=Te("}"),d=Se(),h=_e("div"),f=_e("label"),f.innerHTML='First Name:<span class="FormRequired">*</span>',m=Se(),g=_e("input"),y=Se(),te&&te.c(),b=Se(),v=_e("div"),w=_e("label"),w.innerHTML='Last Name:<span class="FormRequired">*</span>',E=Se(),C=_e("input"),x=Se(),re&&re.c(),T=Se(),S=_e("div"),A=_e("label"),A.innerHTML='Date of Birth:<span class="FormRequired">*</span>',P=Se(),R=_e("div"),D=_e("select");for(let e=0;e<ie.length;e+=1)ie[e].c();I=Se(),O=_e("select");for(let e=0;e<se.length;e+=1)se[e].c();L=Se(),k=_e("select");for(let e=0;e<le.length;e+=1)le[e].c();M=Se(),N=_e("div"),F=_e("label"),F.innerHTML='Birth Place:<span class="FormRequired">*</span>',U=Se(),B=_e("input"),$=Se(),ce&&ce.c(),j=Se(),z=_e("div"),H=_e("label"),H.innerHTML='Currency:<span class="FormRequired">*</span>',V=Se(),q=_e("select");for(let e=0;e<pe.length;e+=1)pe[e].c();X=Se(),Z=_e("button"),Y=Te("Next"),this.c=ve,Pe(i,"class","BackButton"),Pe(n,"class","RegisterFormHeader"),Pe(l,"for","Title"),Pe(u,"id","Title"),void 0===r[3]&&Ie(()=>r[23].call(u)),Pe(a,"class","UserTitleContainer"),Pe(f,"for","FirstName"),Pe(g,"type","text"),Pe(g,"id","FirstName"),Pe(h,"class",e="FirstNameContainer "+(r[0]?"InvalidField":"")),Pe(w,"for","LastName"),Pe(C,"type","text"),Pe(C,"id","LastName"),Pe(v,"class",_="LastNameContainer "+(r[1]?"InvalidField":"")),Pe(A,"for","BirthDate"),Pe(D,"class","BirthDaySelected"),void 0===r[6]&&Ie(()=>r[26].call(D)),Pe(O,"class","BirthMonthSelected"),void 0===r[7]&&Ie(()=>r[27].call(O)),Pe(k,"class","BirthYearSelected"),void 0===r[8]&&Ie(()=>r[28].call(k)),Pe(R,"class","BirthDateOptions"),Pe(S,"class","BirthDateContainer"),Pe(F,"for","BirthPlace"),Pe(B,"type","text"),Pe(B,"id","BirthPlace"),Pe(N,"class",G="BirthPlaceContainer "+(r[2]?"InvalidField":"")),Pe(H,"for","Currency"),Pe(q,"id","Currency"),void 0===r[11]&&Ie(()=>r[30].call(q)),Pe(z,"class","CurrencyContainer"),Pe(s,"class","RegisterFormContent"),Pe(Z,"class","RegisterStepNext"),Z.disabled=W=!r[12]},m(e,t){Ce(e,n,t),Ee(n,i),Ce(e,o,t),Ce(e,s,t),Ee(s,a),Ee(a,l),Ee(a,c),Ee(a,u);for(let e=0;e<ee.length;e+=1)ee[e].m(u,null);Ee(u,p),De(u,r[3]),Ee(s,d),Ee(s,h),Ee(h,f),Ee(h,m),Ee(h,g),Re(g,r[4]),Ee(h,y),te&&te.m(h,null),Ee(s,b),Ee(s,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[5]),Ee(v,x),re&&re.m(v,null),Ee(s,T),Ee(s,S),Ee(S,A),Ee(S,P),Ee(S,R),Ee(R,D);for(let e=0;e<ie.length;e+=1)ie[e].m(D,null);De(D,r[6]),Ee(R,I),Ee(R,O);for(let e=0;e<se.length;e+=1)se[e].m(O,null);De(O,r[7]),Ee(R,L),Ee(R,k);for(let e=0;e<le.length;e+=1)le[e].m(k,null);De(k,r[8]),Ee(s,M),Ee(s,N),Ee(N,F),Ee(N,U),Ee(N,B),Re(B,r[9]),Ee(N,$),ce&&ce.m(N,null),Ee(s,j),Ee(s,z),Ee(z,H),Ee(z,V),Ee(z,q);for(let e=0;e<pe.length;e+=1)pe[e].m(q,null);De(q,r[11]),Ce(e,X,t),Ce(e,Z,t),Ee(Z,Y),Q||(K=[Ae(i,"click",r[21]),Ae(u,"change",r[23]),Ae(g,"input",r[24]),Ae(g,"blur",r[17]),Ae(C,"input",r[25]),Ae(C,"blur",r[18]),Ae(D,"change",r[26]),Ae(O,"change",r[27]),Ae(k,"change",r[28]),Ae(B,"input",r[29]),Ae(B,"keyup",r[19]),Ae(q,"change",r[30]),Ae(Z,"click",r[20])],Q=!0)},p(t,r){if(8192&r[0]){let e;for(J=t[13],e=0;e<J.length;e+=1){var n=xn(t,J,e);ee[e]?ee[e].p(n,r):(ee[e]=_n(n),ee[e].c(),ee[e].m(u,p))}for(;e<ee.length;e+=1)ee[e].d(1);ee.length=J.length}if(8200&r[0]&&De(u,t[3]),16&r[0]&&g.value!==t[4]&&Re(g,t[4]),t[0]?te||(te=Tn(),te.c(),te.m(h,null)):te&&(te.d(1),te=null),1&r[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&Pe(h,"class",e),32&r[0]&&C.value!==t[5]&&Re(C,t[5]),t[1]?re||(re=Sn(),re.c(),re.m(v,null)):re&&(re.d(1),re=null),2&r[0]&&_!==(_="LastNameContainer "+(t[1]?"InvalidField":""))&&Pe(v,"class",_),16384&r[0]){let e;for(ne=t[14],e=0;e<ne.length;e+=1){var i=Cn(t,ne,e);ie[e]?ie[e].p(i,r):(ie[e]=An(i),ie[e].c(),ie[e].m(D,null))}for(;e<ie.length;e+=1)ie[e].d(1);ie.length=ne.length}if(16448&r[0]&&De(D,t[6]),32768&r[0]){let e;for(oe=t[15],e=0;e<oe.length;e+=1){var o=En(t,oe,e);se[e]?se[e].p(o,r):(se[e]=Pn(o),se[e].c(),se[e].m(O,null))}for(;e<se.length;e+=1)se[e].d(1);se.length=oe.length}if(32896&r[0]&&De(O,t[7]),65536&r[0]){let e;for(ae=t[16],e=0;e<ae.length;e+=1){var s=wn(t,ae,e);le[e]?le[e].p(s,r):(le[e]=Rn(s),le[e].c(),le[e].m(k,null))}for(;e<le.length;e+=1)le[e].d(1);le.length=ae.length}if(65792&r[0]&&De(k,t[8]),512&r[0]&&B.value!==t[9]&&Re(B,t[9]),t[2]?ce||(ce=Dn(),ce.c(),ce.m(N,null)):ce&&(ce.d(1),ce=null),4&r[0]&&G!==(G="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&Pe(N,"class",G),1024&r[0]){let e;for(ue=t[10],e=0;e<ue.length;e+=1){var a=vn(t,ue,e);pe[e]?pe[e].p(a,r):(pe[e]=In(a),pe[e].c(),pe[e].m(q,null))}for(;e<pe.length;e+=1)pe[e].d(1);pe.length=ue.length}3072&r[0]&&De(q,t[11]),4096&r[0]&&W!==(W=!t[12])&&(Z.disabled=W)},i:ve,o:ve,d(e){e&&xe(n),e&&xe(o),e&&xe(s),t(ee,e),te&&te.d(),re&&re.d(),t(ie,e),t(se,e),t(le,e),ce&&ce.d(),t(pe,e),e&&xe(X),e&&xe(Z),Q=!1,we(K)}}}function Ln(e,t,r){let{endpoint:n=""}=t,i=!1,o=!1,s=!1,a=["Mr.","Mrs.","Ms."],l=a[0],c="",u="",p=[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],d=p[0],h=[1,2,3,4,5,6,7,8,9,10,11,12],f=h[0],m=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],g=m[0],y="",b=[],v="",w=!1;const E=()=>{r(12,w=!(i||o||s)),(c.length<=0||u.length<=0||y.length<=0)&&r(12,w=!1)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},x=e=>!!C.user.test(e),_=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(3,l=e.data.userData.title),r(4,c=e.data.userData.firstname),r(5,u=e.data.userData.lastname),r(6,d=e.data.userData.birth.day),r(7,f=e.data.userData.birth.month),r(8,g=e.data.userData.birth.year),r(9,y=e.data.userData.birthPlace),r(11,v=e.data.userData.currency),E())};return L(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),e.$$set=e=>{"endpoint"in e&&r(22,n=e.endpoint)},e.$$.update=()=>{4194304&e.$$.dirty[0]&&n&&fetch(`${n}/player/operatorSupportedCurrencies`).then(e=>e.json()).then(e=>{r(10,b=e.currencies),r(11,v=b[0])})},[i,o,s,l,c,u,d,f,g,y,b,v,w,a,p,h,m,()=>{r(0,i=!x(c)),E()},()=>{r(1,o=!x(u)),E()},()=>{r(2,s=!y),E()},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},n,function(){l=O(this),r(3,l),r(13,a)},function(){c=this.value,r(4,c)},function(){u=this.value,r(5,u)},function(){d=O(this),r(6,d),r(14,p)},function(){f=O(this),r(7,f),r(15,h)},function(){g=O(this),r(8,g),r(16,m)},function(){y=this.value,r(9,y)},function(){v=O(this),r(11,v),r(10,b)}]}function kn(e,t,r){const n=e.slice();return n[55]=t[r],n}function Mn(e,t,r){const n=e.slice();return n[58]=t[r],n}function Nn(){let r;return{c(){r=_e("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Fn(){let r;return{c(){r=_e("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Un(){let r;return{c(){r=_e("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Bn(e){let r,n,i,o=e[58].Name+"";return{c(){r=_e("option"),n=Te(o),r.__value=i=e[58].Alpha2Code,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){2048&t[0]&&o!==(o=e[58].Name+"")&&C(n,o),2048&t[0]&&i!==(i=e[58].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&xe(r)}}}function $n(){let r;return{c(){r=_e("p"),r.textContent="Nationality must be at least 1 character long.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Gn(e){let r,n,i,o=e[55].Prefix+"";return{c(){r=_e("option"),n=Te(o),r.__value=i=e[55].Prefix,r.value=r.__value},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){32768&t[0]&&o!==(o=e[55].Prefix+"")&&C(n,o),32768&t[0]&&i!==(i=e[55].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&xe(r)}}}function jn(){let r;return{c(){r=_e("p"),r.textContent="Mobile must be at least 5 character long and 20 characters maximum.",Pe(r,"class","InvalidInput")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function zn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F=!r[20]&&Hn();return{c(){n=_e("div"),i=_e("label"),o=Te("I want to receive exclusive offers and bonuses."),s=_e("br"),a=Te("I am aware that I can unsubscribe whenever I want to.\n "),l=_e("input"),c=Se(),u=_e("span"),p=Se(),d=_e("div"),h=_e("label"),f=Te("SMS\n "),m=_e("input"),y=Se(),b=_e("span"),v=Se(),w=_e("label"),E=Te("Emails\n "),C=_e("input"),_=Se(),T=_e("span"),S=Se(),A=_e("div"),P=_e("label"),R=Te("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n "),D=_e("input"),I=Se(),O=_e("span"),L=Se(),F&&F.c(),k=U(),Pe(l,"type","Checkbox"),l.checked=r[17],Pe(u,"class","Checkmark"),Pe(i,"class","Offers"),Pe(m,"type","Checkbox"),m.disabled=g=!r[17],m.checked=r[18],Pe(b,"class","Checkmark"),Pe(h,"class","OffersMethod"),Pe(C,"type","Checkbox"),C.disabled=x=!r[17],C.checked=r[19],Pe(T,"class","Checkmark"),Pe(w,"class","OffersMethod"),Pe(d,"class","OffersMethodsWrapper"),Pe(n,"class","OffersContainer"),Pe(D,"type","Checkbox"),D.checked=r[20],Pe(O,"class","Checkmark"),Pe(P,"class","AgeConsent"),Pe(A,"class","AgeContainer")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(i,s),Ee(i,a),Ee(i,l),Ee(i,c),Ee(i,u),Ee(n,p),Ee(n,d),Ee(d,h),Ee(h,f),Ee(h,m),Ee(h,y),Ee(h,b),Ee(d,v),Ee(d,w),Ee(w,E),Ee(w,C),Ee(w,_),Ee(w,T),Ce(e,S,t),Ce(e,A,t),Ee(A,P),Ee(P,R),Ee(P,D),Ee(P,I),Ee(P,O),Ce(e,L,t),F&&F.m(e,t),Ce(e,k,t),M||(N=[Ae(l,"click",r[41]),Ae(m,"click",r[42]),Ae(C,"click",r[43]),Ae(D,"click",r[44])],M=!0)},p(e,t){131072&t[0]&&(l.checked=e[17]),131072&t[0]&&g!==(g=!e[17])&&(m.disabled=g),262144&t[0]&&(m.checked=e[18]),131072&t[0]&&x!==(x=!e[17])&&(C.disabled=x),524288&t[0]&&(C.checked=e[19]),1048576&t[0]&&(D.checked=e[20]),e[20]?F&&(F.d(1),F=null):F||(F=Hn(),F.c(),F.m(k.parentNode,k))},d(e){e&&xe(n),e&&xe(S),e&&xe(A),e&&xe(L),F&&F.d(e),e&&xe(k),M=!1,we(N)}}}function Hn(){let r;return{c(){r=_e("div"),r.innerHTML="<p>Please accept the Terms and Conditions before proceeding.</p>",Pe(r,"class","NotificationContainer")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Vn(e){let r,n,i;return{c(){r=_e("div"),n=_e("p"),i=Te(e[7]),Pe(n,"class","RegisterError")},m(e,t){Ce(e,r,t),Ee(r,n),Ee(n,i)},p(e,t){128&t[0]&&C(i,e[7])},d(e){e&&xe(r)}}}function qn(r){let n,e,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,H,V,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se,ae,le=r[1]&&Nn(),ce=r[2]&&Fn(),ue=r[4]&&Un(),pe=r[11],de=[];for(let e=0;e<pe.length;e+=1)de[e]=Bn(Mn(r,pe,e));let he=r[5]&&$n(),fe=r[15],me=[];for(let e=0;e<fe.length;e+=1)me[e]=Gn(kn(r,fe,e));let ge=r[3]&&jn(),ye=r[0]&&zn(r),be=r[6]&&Vn(r);return{c(){n=_e("script"),i=Se(),o=_e("div"),s=Se(),a=_e("div"),l=_e("button"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back',c=Se(),u=_e("div"),p=_e("div"),d=_e("div"),h=_e("label"),h.innerHTML='Address:<span class="FormRequired">*</span>',f=Se(),m=_e("input"),g=Se(),le&&le.c(),b=Se(),v=_e("div"),w=_e("label"),w.innerHTML='Postal Code:<span class="FormRequired">*</span>',E=Se(),C=_e("input"),x=Se(),ce&&ce.c(),T=Se(),S=_e("div"),A=_e("label"),A.innerHTML='City:<span class="FormRequired">*</span>',P=Se(),R=_e("input"),D=Se(),ue&&ue.c(),O=Se(),L=_e("div"),k=_e("label"),k.innerHTML='Country:<span class="FormRequired">*</span>',M=Se(),N=_e("select");for(let e=0;e<de.length;e+=1)de[e].c();F=Se(),U=_e("div"),B=_e("label"),B.innerHTML='Nationality:<span class="FormRequired">*</span>',$=Se(),G=_e("input"),j=Se(),he&&he.c(),H=Se(),V=_e("div"),q=_e("label"),q.innerHTML='Mobile:<span class="FormRequired">*</span>',X=Se(),Z=_e("div"),Y=_e("select");for(let e=0;e<me.length;e+=1)me[e].c();W=Se(),Q=_e("input"),K=Se(),ge&&ge.c(),ee=Se(),ye&&ye.c(),te=Se(),be&&be.c(),re=Se(),ne=_e("button"),ie=Te("Open Account"),this.c=ve,n.src!==(e="//www.google.com/recaptcha/api.js?render="+Xn)&&Pe(n,"src","//www.google.com/recaptcha/api.js?render=6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn"),n.async=!0,n.defer=!0,Pe(o,"class","g-recaptcha"),Pe(o,"data-sitekey",Xn),Pe(l,"class","BackButton"),Pe(a,"class","RegisterFormHeader"),Pe(h,"for","Address"),Pe(m,"type","text"),Pe(m,"id","Address"),Pe(d,"class",y="AddressContainer "+(r[1]?"InvalidField":"")),Pe(w,"for","PostalCode"),Pe(C,"type","text"),Pe(C,"id","PostalCode"),Pe(v,"class",_="PostalCodeContainer "+(r[2]?"InvalidField":"")),Pe(p,"class","AddressPostalCodeContainer"),Pe(A,"for","City"),Pe(R,"type","text"),Pe(R,"id","City"),Pe(S,"class",I="CityContainer "+(r[4]?"InvalidField":"")),Pe(k,"for","Country"),Pe(N,"id","Country"),void 0===r[12]&&Ie(()=>r[37].call(N)),Pe(L,"class","CountryContainer"),Pe(B,"for","Nationality"),Pe(G,"type","text"),Pe(G,"id","Nationality"),Pe(U,"class",z="NationalityContainer "+(r[5]?"InvalidField":"")),Pe(q,"for","Mobile"),Pe(Y,"class","MobilePrefixSelected"),void 0===r[16]&&Ie(()=>r[39].call(Y)),Pe(Q,"type","text"),Pe(Q,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Pe(Q,"id","Mobile"),Pe(Q,"class","MobileInput"),Pe(Z,"class","MobileWrapper"),Pe(V,"class",J="MobileContainer "+(r[3]?"InvalidField":"")),Pe(u,"class","RegisterFormContent"),Pe(ne,"class","RegisterStepNext"),ne.disabled=oe=!r[21]},m(e,t){Ee(document.head,n),Ce(e,i,t),Ce(e,o,t),Ce(e,s,t),Ce(e,a,t),Ee(a,l),Ce(e,c,t),Ce(e,u,t),Ee(u,p),Ee(p,d),Ee(d,h),Ee(d,f),Ee(d,m),Re(m,r[8]),Ee(d,g),le&&le.m(d,null),Ee(p,b),Ee(p,v),Ee(v,w),Ee(v,E),Ee(v,C),Re(C,r[9]),Ee(v,x),ce&&ce.m(v,null),Ee(u,T),Ee(u,S),Ee(S,A),Ee(S,P),Ee(S,R),Re(R,r[10]),Ee(S,D),ue&&ue.m(S,null),Ee(u,O),Ee(u,L),Ee(L,k),Ee(L,M),Ee(L,N);for(let e=0;e<de.length;e+=1)de[e].m(N,null);De(N,r[12]),Ee(u,F),Ee(u,U),Ee(U,B),Ee(U,$),Ee(U,G),Re(G,r[13]),Ee(U,j),he&&he.m(U,null),Ee(u,H),Ee(u,V),Ee(V,q),Ee(V,X),Ee(V,Z),Ee(Z,Y);for(let e=0;e<me.length;e+=1)me[e].m(Y,null);De(Y,r[16]),Ee(Z,W),Ee(Z,Q),Re(Q,r[14]),Ee(Z,K),ge&&ge.m(Z,null),Ee(u,ee),ye&&ye.m(u,null),Ce(e,te,t),be&&be.m(e,t),Ce(e,re,t),Ce(e,ne,t),Ee(ne,ie),se||(ae=[Ae(l,"click",r[32]),Ae(m,"input",r[34]),Ae(m,"blur",r[22]),Ae(C,"input",r[35]),Ae(C,"blur",r[23]),Ae(R,"input",r[36]),Ae(R,"blur",r[24]),Ae(N,"change",r[37]),Ae(G,"input",r[38]),Ae(G,"blur",r[25]),Ae(Y,"change",r[39]),Ae(Q,"input",r[40]),Ae(Q,"keyup",r[26]),Ae(ne,"click",r[31])],se=!0)},p(t,r){if(256&r[0]&&m.value!==t[8]&&Re(m,t[8]),t[1]?le||(le=Nn(),le.c(),le.m(d,null)):le&&(le.d(1),le=null),2&r[0]&&y!==(y="AddressContainer "+(t[1]?"InvalidField":""))&&Pe(d,"class",y),512&r[0]&&C.value!==t[9]&&Re(C,t[9]),t[2]?ce||(ce=Fn(),ce.c(),ce.m(v,null)):ce&&(ce.d(1),ce=null),4&r[0]&&_!==(_="PostalCodeContainer "+(t[2]?"InvalidField":""))&&Pe(v,"class",_),1024&r[0]&&R.value!==t[10]&&Re(R,t[10]),t[4]?ue||(ue=Un(),ue.c(),ue.m(S,null)):ue&&(ue.d(1),ue=null),16&r[0]&&I!==(I="CityContainer "+(t[4]?"InvalidField":""))&&Pe(S,"class",I),2048&r[0]){let e;for(pe=t[11],e=0;e<pe.length;e+=1){var n=Mn(t,pe,e);de[e]?de[e].p(n,r):(de[e]=Bn(n),de[e].c(),de[e].m(N,null))}for(;e<de.length;e+=1)de[e].d(1);de.length=pe.length}if(6144&r[0]&&De(N,t[12]),8192&r[0]&&G.value!==t[13]&&Re(G,t[13]),t[5]?he||(he=$n(),he.c(),he.m(U,null)):he&&(he.d(1),he=null),32&r[0]&&z!==(z="NationalityContainer "+(t[5]?"InvalidField":""))&&Pe(U,"class",z),32768&r[0]){let e;for(fe=t[15],e=0;e<fe.length;e+=1){var i=kn(t,fe,e);me[e]?me[e].p(i,r):(me[e]=Gn(i),me[e].c(),me[e].m(Y,null))}for(;e<me.length;e+=1)me[e].d(1);me.length=fe.length}98304&r[0]&&De(Y,t[16]),16384&r[0]&&Q.value!==t[14]&&Re(Q,t[14]),t[3]?ge||(ge=jn(),ge.c(),ge.m(Z,null)):ge&&(ge.d(1),ge=null),8&r[0]&&J!==(J="MobileContainer "+(t[3]?"InvalidField":""))&&Pe(V,"class",J),t[0]?ye?ye.p(t,r):(ye=zn(t),ye.c(),ye.m(u,null)):ye&&(ye.d(1),ye=null),t[6]?be?be.p(t,r):(be=Vn(t),be.c(),be.m(re.parentNode,re)):be&&(be.d(1),be=null),2097152&r[0]&&oe!==(oe=!t[21])&&(ne.disabled=oe)},i:ve,o:ve,d(e){xe(n),e&&xe(i),e&&xe(o),e&&xe(s),e&&xe(a),e&&xe(c),e&&xe(u),le&&le.d(),ce&&ce.d(),ue&&ue.d(),t(de,e),he&&he.d(),t(me,e),ge&&ge.d(),ye&&ye.d(),e&&xe(te),be&&be.d(e),e&&xe(re),e&&xe(ne),se=!1,we(ae)}}}it([Wr,Br],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Yr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Fr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Xr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${zr(Yr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=sn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return nn(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),it([Wr,Br],()=>(e,t=Yr)=>Fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==et.indexOf(e)&&(t=new We(t),tt[e]=t,et.push(e)),tt[e]}},customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bn,yn,r,{},[-1,-1]),e&&e.target&&Ce(e.target,this,e.anchor)}}),customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.UserTitleContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;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 #D0046C;box-shadow:0 0 0 1pt #D0046C}.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ln,On,r,{endpoint:22},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$set({endpoint:e}),w()}});const Xn="6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn";function Zn(e,t,r){let{userconsentexists:n=!1}=t,{endpoint:i=""}=t,o="",s="",a="",l="",c="",u=!1,p="",d="",h="",f="",m=[],g="",y="",b="",v=[],w="",E=!1,C=!1,x=!1,_=!1,T=!1;const S=()=>{r(21,T=!(o||s||l||c||a||u||n&&_)),(d.length<=0||h.length<=0||f.length<=0||y.length<=0||b.length<=0)&&r(21,T=!1)},A=()=>{!1===E?r(17,E=!0):(r(17,E=!1),r(18,C=!1),r(19,x=!1))},P=()=>{r(18,C=!1===C)},R=()=>{r(19,x=!1===x)},D=()=>{r(20,_=!1===_),S()},I=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(8,d=e.data.userData.address1),r(9,h=e.data.userData.postalCode),r(10,f=e.data.userData.city),r(12,g=e.data.userData.country),r(13,y=e.data.userData.nationality),r(16,w=e.data.userData.mobile.prefix),r(14,b=e.data.userData.mobile.number),r(18,C=e.data.userData.userConsents.additionalProp1),r(19,x=e.data.userData.userConsents.additionalProp2),r(20,_=e.data.userData.userConsents.additionalProp3),S();break;case"ShowRegistrationError":r(6,u=e.data.showError),r(7,p=e.data.error)}};return L(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),e.$$set=e=>{"userconsentexists"in e&&r(0,n=e.userconsentexists),"endpoint"in e&&r(33,i=e.endpoint)},e.$$.update=()=>{4&e.$$.dirty[1]&&i&&fetch(`${i}/player/countries`).then(e=>e.json()).then(e=>{r(11,m=e.countries),r(12,g=m[0].Alpha2Code)}),4&e.$$.dirty[1]&&i&&fetch(`${i}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,v=e.phoneCodes),r(16,w=v[0].Prefix)})},[n,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,()=>{r(1,o=!(d&&d.length<=100)),S()},()=>{r(2,s=!(h&&h.length<=20)),S()},()=>{r(4,l=!(f&&f.length<=50)),S()},()=>{r(5,c=!y),S()},()=>{r(3,a=!(b&&5<=b.length&&b.length<=30)),S()},A,P,R,D,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(Xn,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:x,consentTerms:_,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:d,postalCode:h,city:f,countrySelected:g,nationality:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:x,consentTerms:_};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},i,function(){d=this.value,r(8,d)},function(){h=this.value,r(9,h)},function(){f=this.value,r(10,f)},function(){g=O(this),r(12,g),r(11,m)},function(){y=this.value,r(13,y)},function(){w=O(this),r(16,w),r(15,v)},function(){b=this.value,r(14,b)},()=>A(),()=>P(),()=>R(),()=>D()]}function Yn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=_e("div"),i=_e("div"),s=Se(),a=_e("div"),c=Se(),u=_e("div"),Pe(i,"class",o="RegisterFirstStepDash "+(r[2]||!r[2]&&r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(a,"class",l="RegisterSecondStepDash "+(r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Pe(u,"class",p="RegisterThirdStepDash "+(r[4]?"RegisterStepDashColor":"")),Pe(n,"class","RegisterSteps")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(n,s),Ee(n,a),Ee(n,c),Ee(n,u),r[17](n)},p(e,t){28&t[0]&&o!==(o="RegisterFirstStepDash "+(e[2]||!e[2]&&e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(i,"class",o),28&t[0]&&l!==(l="RegisterSecondStepDash "+(e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Pe(a,"class",l),16&t[0]&&p!==(p="RegisterThirdStepDash "+(e[4]?"RegisterStepDashColor":""))&&Pe(u,"class",p)},d(e){e&&xe(n),r[17](null)}}}function Wn(){let r;return{c(){r=_e("div"),r.innerHTML="<general-player-register-form-step1></general-player-register-form-step1>",Pe(r,"class","RegisterFormStep1")},m(e,t){Ce(e,r,t)},d(e){e&&xe(r)}}}function Qn(e){let r,n;return{c(){r=_e("div"),n=_e("general-player-register-form-step2"),i(n,"endpoint",e[0]),Pe(r,"class","RegisterFormStep2")},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&xe(r)}}}function Kn(e){let r,n;return{c(){r=_e("div"),n=_e("general-player-register-form-step3"),i(n,"userconsentsexist",e[9]),i(n,"endpoint",e[0]),Pe(r,"class","RegisterFormStep3")},m(e,t){Ce(e,r,t),Ee(r,n)},p(e,t){512&t[0]&&i(n,"userconsentsexist",e[9]),1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&xe(r)}}}function Jn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E;return{c(){n=_e("div"),i=e("svg"),o=e("defs"),s=e("style"),a=Te(".a{fill:#16ce16;}"),l=e("path"),c=Se(),u=_e("h2"),p=Te(r[6]),d=Se(),h=_e("p"),f=Te(r[7]),m=Se(),g=_e("p"),y=Te(r[8]),b=Se(),v=_e("button"),v.textContent="Go To Login",Pe(l,"class","a"),Pe(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),Pe(i,"xmlns","http://www.w3.org/2000/svg"),Pe(i,"viewBox","0 0 73.95 51"),Pe(u,"class","RegisterConfirmationTitle"),Pe(h,"class","RegisterConfirmationSubtitle"),Pe(g,"class","RegisterConfirmationNote"),Pe(v,"class","RegisterConfirmationGoToLogin"),Pe(n,"class","RegisterConfirmation")},m(e,t){Ce(e,n,t),Ee(n,i),Ee(i,o),Ee(o,s),Ee(s,a),Ee(i,l),Ee(n,c),Ee(n,u),Ee(u,p),Ee(n,d),Ee(n,h),Ee(h,f),Ee(n,m),Ee(n,g),Ee(g,y),Ee(n,b),Ee(n,v),w||(E=Ae(v,"click",r[12]),w=!0)},p(e,t){64&t[0]&&C(p,e[6]),128&t[0]&&C(f,e[7]),256&t[0]&&C(y,e[8])},d(e){e&&xe(n),w=!1,E()}}}function ei(e){let r,n=function(e){let r,n,i,o,s,a,l,c=!e[11]&&function(e){let r;return{c(){r=_e("div"),Pe(r,"class","RegisterFormImage"),m(r,"background-image","url('"+e[1]+"')")},m(e,t){Ce(e,r,t)},p(e,t){2&t[0]&&m(r,"background-image","url('"+e[1]+"')")},d(e){e&&xe(r)}}}(e),u=(e[2]||e[3]||e[4])&&Yn(e),p=e[2]&&Wn(),d=e[3]&&Qn(e),h=e[4]&&Kn(e),f=e[5]&&Jn(e);return{c(){r=_e("div"),c&&c.c(),n=Se(),i=_e("div"),u&&u.c(),o=Se(),p&&p.c(),s=Se(),d&&d.c(),a=Se(),h&&h.c(),l=Se(),f&&f.c(),Pe(i,"class","RegisterFormContainer "+(e[11]?"RegisterFormContainerMobile":"")),Pe(r,"class","RegisterFormWrapper")},m(e,t){Ce(e,r,t),c&&c.m(r,null),Ee(r,n),Ee(r,i),u&&u.m(i,null),Ee(i,o),p&&p.m(i,null),Ee(i,s),d&&d.m(i,null),Ee(i,a),h&&h.m(i,null),Ee(i,l),f&&f.m(i,null)},p(e,t){e[11]||c.p(e,t),e[2]||e[3]||e[4]?u?u.p(e,t):(u=Yn(e),u.c(),u.m(i,o)):u&&(u.d(1),u=null),e[2]?p||(p=Wn(),p.c(),p.m(i,s)):p&&(p.d(1),p=null),e[3]?d?d.p(e,t):(d=Qn(e),d.c(),d.m(i,a)):d&&(d.d(1),d=null),e[4]?h?h.p(e,t):(h=Kn(e),h.c(),h.m(i,l)):h&&(h.d(1),h=null),e[5]?f?f.p(e,t):(f=Jn(e),f.c(),f.m(i,null)):f&&(f.d(1),f=null)},d(e){e&&xe(r),c&&c.d(),u&&u.d(),p&&p.d(),d&&d.d(),h&&h.d(),f&&f.d()}}}(e);return{c(){n.c(),r=U(),this.c=ve},m(e,t){n.m(e,t),Ce(e,r,t)},p(e,t){n.p(e,t)},i:ve,o:ve,d(e){n.d(e),e&&xe(r)}}}function ti(e,t,i){var r=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((l=l.apply(e,s||[])).next())})};let n,o,{endpoint:s=""}=t,{cmsendpoint:a=""}=t,{imagedesktop:l=""}=t,{playerid:c=""}=t,{session:u=""}=t,{trackedanalyticsdata:p=""}=t,d=!0,h=!1,f=!1,m=!1,g,y="",b="",v="",w="PC"!=((t=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),E={},C=!1,x=!1,_=!1,T;const S=()=>{o.scrollIntoView()},A=(e,t)=>{"RegisterStepOne"===e&&(E.email=t.userEmail,E.username=t.userValue,E.password=t.userPassword,E.securityQuestion=t.securityQuestion,E.securityAnswer=t.securityAnswer),"RegisterStepTwo"===e&&(E.title=t.userTitleSelected,E.firstname=t.userFirstName,E.lastname=t.userLastName,E.birth={},E.birth.day=t.birthDaySelected,E.birth.month=t.birthMonthSelected,E.birth.year=t.birthYearSelected,E.birthPlace=t.birthPlace,E.currency=t.currencySelected),"RegisterStepThree"===e&&(E.address1=t.address,E.postalCode=t.postalCode,E.city=t.city,E.country=t.countrySelected,E.nationality=t.nationality,E.mobile={},E.mobile.prefix=t.mobilePrefixSelected,E.mobile.number=t.mobile,E.userConsents={},E.affiliateMarker=p,_&&(E.userConsents.additionalProp1=t.consentOffersSms,E.userConsents.additionalProp2=t.consentOffersEmail,E.userConsents.additionalProp3=t.consentTerms),E.token=t.token)},P=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":A("RegisterStepOne",e.data.registerStepOneData),S(),i(2,d=!1),i(3,h=!0),0==C?C=!0:window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href);break;case"RegisterStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(3,h=!1),i(4,f=!0),0==x?x=!0:window.postMessage({type:"StepThreeDataBackup",userData:E},window.location.href);break;case"RegisterStepThree":A("RegisterStepThree",e.data.registerStepThreeData),R(E);break;case"GoBackStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(2,d=!0),i(3,h=!1),window.postMessage({type:"StepOneDataBackup",userData:E},window.location.href);break;case"GoBackStepThree":A("RegisterStepThree",e.data.registerStepThreeData),S(),i(3,h=!0),i(4,f=!1),window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href)}},R=n=>r(void 0,void 0,void 0,function*(){let e={method:"PUT",headers:{"g-recaptcha-response":n.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},t=yield fetch(`${s}/player/register`,e),r=yield t.json();t.ok?(i(4,f=!1),i(5,m=!0)):(T=r.error.substring(r.error.indexOf("errorMessage")+13,r.error.length),g=!0,window.postMessage({type:"ShowRegistrationError",showError:!0,error:T},window.location.href))});return L(()=>(fetch(`${s}/player/consentRequirements`).then(e=>e.json()).then(e=>{0<e.items.length?i(9,_=!0):i(9,_=!1)}),fetch(a).then(e=>e.json()).then(e=>{n=e.REGULAR_REGISTRATION[0],i(6,y=n.congrats),i(7,b=n.accCreated),i(8,v=n.accCreatedMsg)}).catch(e=>{console.error(e)}),window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)})),e.$$set=e=>{"endpoint"in e&&i(0,s=e.endpoint),"cmsendpoint"in e&&i(13,a=e.cmsendpoint),"imagedesktop"in e&&i(1,l=e.imagedesktop),"playerid"in e&&i(14,c=e.playerid),"session"in e&&i(15,u=e.session),"trackedanalyticsdata"in e&&i(16,p=e.trackedanalyticsdata)},e.$$.update=()=>{e.$$.dirty[0]},[s,l,d,h,f,m,y,b,v,_,o,w,()=>{window.postMessage({type:"ToLogin"},window.location.href)},a,c,u,p,function(e){D[e?"unshift":"push"](()=>{o=e,i(10,o)})}]}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer input,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.NationalityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterError{color:#FD2839;font-size:16px;line-height:19.2px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Zn,qn,r,{userconsentexists:0,endpoint:33},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["userconsentexists","endpoint"]}get userconsentexists(){return this.$$.ctx[0]}set userconsentexists(e){this.$set({userconsentexists:e}),w()}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$set({endpoint:e}),w()}});class ri extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormWrapper{background:#F9F8F8;display:inline-flex;width:100%}.RegisterFormImage{background-position:center;background-size:cover;background-repeat:no-repeat;flex:1 1 100%}.RegisterFormContainer{flex:1 1 100%;padding:25.008px;height:404px;overflow-y:auto;scrollbar-color:#cfcfcf #f1f1f1;scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:10px;height:auto;overflow-y:initial}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:#f1f1f1}.RegisterFormContainer::-webkit-scrollbar-thumb{background:#cfcfcf}.RegisterSteps{display:flex;gap:10px;padding:10px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:4px;background-color:#D1D1D1}.RegisterStepDashColor{background-color:#D0046C}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:#16CE16;font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:#58586B;font-size:16px;line-height:19.2px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:#000000;font-size:17.6px;line-height:22.4px}.RegisterConfirmationGoToLogin{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ti,ei,r,{endpoint:0,cmsendpoint:13,imagedesktop:1,playerid:14,session:15,trackedanalyticsdata:16},[-1,-1]),e&&(e.target&&Ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","cmsendpoint","imagedesktop","playerid","session","trackedanalyticsdata"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),w()}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(e){this.$set({cmsendpoint:e}),w()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$set({imagedesktop:e}),w()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$set({playerid:e}),w()}get session(){return this.$$.ctx[15]}set session(e){this.$set({session:e}),w()}get trackedanalyticsdata(){return this.$$.ctx[16]}set trackedanalyticsdata(e){this.$set({trackedanalyticsdata:e}),w()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",ri),ri});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function be(){}function p(e){return e()}function d(){return Object.create(null)}function ve(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function we(e,t){e.appendChild(t)}function Ee(e,t,r){e.insertBefore(t,r||null)}function Ce(e){e.parentNode.removeChild(e)}function t(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function xe(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function _e(e){return document.createTextNode(e)}function Te(){return _e(" ")}function U(){return _e("")}function Se(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Ae(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function i(e,t,r){t in e?e[t]=r:Ae(e,t,r)}function C(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Pe(e,t){e.value=null==t?"":t}function m(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function Re(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}function O(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let f;function g(e){f=e}function L(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const y=[],D=[],o=[],s=[],b=Promise.resolve();let v=!1;function De(e){o.push(e)}let a=!1;const l=new Set;function w(){if(!a){a=!0;do{for(let e=0;e<y.length;e+=1){var t=y[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),ve(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(De))}}(t.$$)}for(g(null),y.length=0;D.length;)D.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];l.has(r)||(l.add(r),r())}}while(o.length=0,y.length);for(;s.length;)s.pop()();v=!1,a=!1,l.clear()}}const E=new Set;function c(n,e,t,r,i,o,s=[-1]){var a,l=f;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:be,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:d(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(y.push(e),v||(v=!0,b.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,ve(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const be=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(be),be.forEach(Ce)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(E.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||De(()=>{var e=o.map(p).filter(h);s?s.push(...e):ve(e),t.$$.on_mount=[]}),a.forEach(De)}(n,e.target,e.anchor,e.customElement),w()}g(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){ve(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(ve(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=be}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var x,_,T="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==T&&T,S="URLSearchParams"in T,A="Symbol"in T&&"iterator"in Symbol,P="FileReader"in T&&"Blob"in T&&function(){try{return new Blob,!0}catch(e){return!1}}(),R="FormData"in T,I="ArrayBuffer"in T;function k(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function M(e){return e="string"!=typeof e?String(e):e}function N(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function B(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function $(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function G(e){var t=new FileReader,r=$(t);return t.readAsArrayBuffer(e),r}function j(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:P&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:R&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:S&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():I&&P&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=j(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):I&&(ArrayBuffer.prototype.isPrototypeOf(e)||_(e))?this._bodyArrayBuffer=j(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P&&(this.blob=function(){var e=B(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?B(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(G)}),this.text=function(){var e,t,r=B(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=$(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}I&&(x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=ArrayBuffer.isView||function(e){return e&&-1<x.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=k(e),t=M(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},F.prototype.delete=function(e){delete this.map[k(e)]},F.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},F.prototype.set=function(e,t){this.map[k(e)]=M(t)},F.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},F.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),N(r)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),N(t)},F.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),N(r)},A&&(F.prototype[Symbol.iterator]=F.prototype.entries);var V=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function H(e,t){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof H){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new F(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<V.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function q(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function X(e,t){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})},z.call(H.prototype),z.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},X.error=function(){var e=new X(null,{status:0,statusText:""});return e.type="error",e};var Z=[301,302,303,307,308];X.redirect=function(e,t){if(-1===Z.indexOf(t))throw new RangeError("Invalid status code");return new X(null,{status:t,headers:{location:e}})};var Y=T.DOMException;try{new Y}catch(be){(Y=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Y.prototype.constructor=Y}function W(n,s){return new Promise(function(i,e){var t=new H(n,s);if(t.signal&&t.signal.aborted)return e(new Y("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new F,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new X(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Y("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&T.location.href?T.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(P?o.responseType="blob":I&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof F?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,M(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}W.polyfill=!0,T.fetch||(T.fetch=W,T.Headers=F,T.Request=H,T.Response=X),self.fetch.bind(self);var Q=function(e,t){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function J(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function te(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function re(e){return"function"==typeof e}function ne(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var ie=ne(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function oe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var se=(le.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=J(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(re(o))try{o()}catch(e){i=e instanceof ie?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=J(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{ue(u)}catch(e){i=null!=i?i:[],e instanceof ie?i=te(te([],ee(i)),ee(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new ie(i)}},le.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ue(e);else{if(e instanceof le){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},le.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},le.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},le.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&oe(t,e)},le.prototype.remove=function(e){var t=this._teardowns;t&&oe(t,e),e instanceof le&&e._removeParent(this)},le.EMPTY=((Ht=new le).closed=!0,Ht),le),ae=se.EMPTY;function le(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ce(e){return e instanceof se||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function ue(e){re(e)?e():e.unsubscribe()}var pe=void 0,de=!1,he=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,te([],ee(e)))};function fe(){}function me(e){e()}var ge,ye,Ie=(K(ke,ye=se),ke.create=function(e,t,r){return new Oe(e,t,r)},ke.prototype.next=function(e){this.isStopped||this._next(e)},ke.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ke.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ke.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ye.prototype.unsubscribe.call(this),this.destination=null)},ke.prototype._next=function(e){this.destination.next(e)},ke.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ke.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ke),Oe=(K(Le,ge=Ie),Le);function Le(e,t,r){var n,i,o=ge.call(this)||this;return re(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&de?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Me(i):fe,error:Me(null!=t?t:Ne),complete:r?Me(r):fe},o}function ke(e){var t=ye.call(this)||this;return t.isStopped=!1,e?ce(t.destination=e)&&e.add(t):t.destination=Fe,t}function Me(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,te([],ee(e)))}catch(e){t=e,he(function(){throw t})}}}function Ne(e){throw e}var Fe={closed:!0,next:fe,error:Ne,complete:fe},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function Be(e){return e}var $e=(Ge.prototype.lift=function(e){var t=new Ge;return t.source=this,t.operator=e,t},Ge.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ie||n&&re(n.next)&&re(n.error)&&re(n.complete)&&ce(n)?e:new Oe(e,t,r);return me(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ge.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ge.prototype.forEach=function(n,e){var i=this;return new(e=je(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ge.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ge.prototype[Ue]=function(){return this},Ge.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Be:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ge.prototype.toPromise=function(e){var n=this;return new(e=je(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ge.create=function(e){return new Ge(e)},Ge);function Ge(e){e&&(this._subscribe=e)}function je(e){return null!==(e=null!=e?e:pe)&&void 0!==e?e:Promise}var ze,Ve,He,qe=ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=(K(Je,He=$e),Je.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new qe},Je.prototype.next=function(o){var s=this;me(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=J(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var r=this;me(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Je.prototype.complete=function(){var t=this;me(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),He.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ae:(n.push(e),new se(function(){return oe(n,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Je.prototype.asObservable=function(){var e=new $e;return e.source=this,e},Je.create=function(e,t){return new Ze(e,t)},Je),Ze=(K(Ke,Ve=Xe),Ke.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Ke.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Ke.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Ke.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ae},Ke),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},We=(K(Qe,ze=Xe),Qe.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Qe.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Qe.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},Qe);function Qe(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ye);var n=ze.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ke(e,t){var r=Ve.call(this)||this;return r.destination=e,r.source=t,r}function Je(){var e=He.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let et=[],tt={};const rt=[];function nt(n,i=be){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!rt.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),rt.push(t,n)}if(e){for(let e=0;e<rt.length;e+=2)rt[e][0](rt[e+1]);rt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=be){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||be),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function it(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return nt(t,t=>{let n=!1;const i=[];let o=0,r=be;const s=()=>{var e;o||(r(),e=a(l?i[0]:i,t),u?t(e):r=h(e)?e:be)},e=c.map((r,t)=>function(e){if(null==r)return be;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{i[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}]));return n=!0,s(),function(){ve(e),r()}}).subscribe,1}var ot=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function at(e,t){return!1!==t.clone&&t.isMergeableObject(e)?dt(Array.isArray(e)?[]:{},e,t):e}function lt(e,t,r){return e.concat(t).map(function(e){return at(e,r)})}function ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ut(e,t){try{return t in e}catch(e){return!1}}function pt(n,i,o){var s={};return o.isMergeableObject(n)&&ct(n).forEach(function(e){s[e]=at(n[e],o)}),ct(i).forEach(function(t){var e,r;(!ut(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ut(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return dt;var e=o.customMerge(t);return"function"==typeof e?e:dt}()(n[t],i[t],o):s[t]=at(i[t],o))}),s}function dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||lt,r.isMergeableObject=r.isMergeableObject||ot,r.cloneUnlessOtherwiseSpecified=at;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):pt(e,t,r):at(t,r)}dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return dt(e,t,r)},{})};var ht=dt,ft=function(e,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var gt,yt,bt,vt=function(){return(vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function wt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function Et(e){return e.type===yt.literal}function Ct(e){return e.type===yt.number}function xt(e){return e.type===yt.date}function _t(e){return e.type===yt.time}function Tt(e){return e.type===yt.select}function St(e){return e.type===yt.plural}function At(e){return e.type===yt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Rt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(qt=gt=gt||{})[qt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",qt[qt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",qt[qt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",qt[qt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",qt[qt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",qt[qt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",qt[qt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",qt[qt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",qt[qt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",qt[qt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",qt[qt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",qt[qt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",qt[qt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",qt[qt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",qt[qt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",qt[qt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",qt[qt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",qt[qt.INVALID_TAG=23]="INVALID_TAG",qt[qt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",qt[qt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",qt[qt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Xt=yt=yt||{})[Xt.literal=0]="literal",Xt[Xt.argument=1]="argument",Xt[Xt.number=2]="number",Xt[Xt.date=3]="date",Xt[Xt.time=4]="time",Xt[Xt.select=5]="select",Xt[Xt.plural=6]="plural",Xt[Xt.pound=7]="pound",Xt[Xt.tag=8]="tag",(Zt=bt=bt||{})[Zt.number=0]="number",Zt[Zt.dateTime=1]="dateTime";var Dt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,It=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Ot,Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?$/g,Nt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ft=/^(0+)$/;function Ut(e){var n={};return e.replace(Mt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Bt(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 $t(e){return Bt(e)||{}}function Gt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=vt(vt(vt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return vt(vt({},e),$t(t))},{}));continue;case"engineering":s=vt(vt(vt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return vt(vt({},e),$t(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Nt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ft.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=vt(vt({},s),Ut(i.options[0])))}else Mt.test(i.stem)?s=vt(vt({},s),Ut(i.stem)):((n=Bt(i.stem))&&(s=vt(vt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ft.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=vt(vt({},s),n)))}return s}var jt=new RegExp("^"+Dt.source+"*"),zt=new RegExp(Dt.source+"*$");function Vt(e,t){return{start:e,end:t}}var Ht=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Xe=!!Object.fromEntries,qt=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,Zt=!!String.prototype.trimEnd,Yt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Dt=!0;try{Dt="a"===(null===(Ot=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(be){Dt=!1}var Wt,Qt,Kt=Ht?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Jt=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},er=Xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},tr=qt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},rr=Xt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},nr=Zt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Qt=Dt?(Wt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Wt.lastIndex=t,null!==(e=Wt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=tr(e,t);if(void 0===i||lr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Jt.apply(void 0,n)};var or=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(gt.UNMATCHED_CLOSING_TAG,Vt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ar(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:yt.pound,location:Vt(o,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:yt.literal,value:"<"+n+"/>",location:Vt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ar(this.char()))return this.error(gt.INVALID_TAG,Vt(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(gt.UNMATCHED_CLOSING_TAG,Vt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:yt.tag,value:n,children:e,location:Vt(r,this.clonePosition())},err:null}:this.error(gt.INVALID_TAG,Vt(t,this.clonePosition())))}return this.error(gt.UNCLOSED_TAG,Vt(r,this.clonePosition()))}return this.error(gt.INVALID_TAG,Vt(r,this.clonePosition()))},sr.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},sr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Vt(r,this.clonePosition());return{val:{type:yt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ar(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Jt.apply(void 0,t)},sr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Jt(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(gt.EMPTY_ARGUMENT,Vt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(gt.MALFORMED_ARGUMENT,Vt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:yt.argument,value:n,location:Vt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(gt.MALFORMED_ARGUMENT,Vt(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Qt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Vt(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(gt.EXPECT_ARGUMENT_TYPE,Vt(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=nr(d.val)).length)return this.error(gt.EXPECT_ARGUMENT_STYLE,Vt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Vt(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var u=Vt(n,this.clonePosition());if(l&&Kt(null==l?void 0:l.style,"::",0)){c=rr(l.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?d:{val:{type:yt.number,value:r,location:u,style:d.val},err:null};if(0===c.length)return this.error(gt.EXPECT_DATE_TIME_SKELETON,u);var p={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(It,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?yt.date:yt.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?yt.number:"date"===s?yt.date:yt.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(gt.EXPECT_SELECT_ARGUMENT_OPTIONS,Vt(l,vt({},l)));this.bumpSpace();var d,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=d.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((h=this.tryParseArgumentClose(n)).err)return h;var h=Vt(n,this.clonePosition());return"select"===s?{val:{type:yt.select,value:r,options:er(u.val),location:h},err:null}:{val:{type:yt.plural,value:r,options:er(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(gt.INVALID_ARGUMENT_TYPE,Vt(o,a))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},sr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Lt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(gt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Gt(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Vt(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vt(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;o.push([a,{value:u.val,location:Vt(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===o.length?this.error("select"===t?gt.EXPECT_SELECT_ARGUMENT_SELECTOR:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(gt.MISSING_OTHER_CLAUSE,Vt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Vt(n,this.clonePosition());return i?Yt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},sr.prototype.bumpIf=function(e){if(Kt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&lr(this.char());)this.bump()},sr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ar(e){return 97<=e&&e<=122||65<=e&&e<=90}function lr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function cr(e,t){t=vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new or(e,t).parse();if(r.err){e=SyntaxError(gt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Tt(e)||St(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&Pt(e.style)||(xt(e)||_t(e))&&Rt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:yr,n=t&&t.serializer?t.serializer:fr;return(t&&t.strategy?t.strategy:function(e,t){return hr(e,this,1===e.length?pr:dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function pr(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function hr(e,t,r,n,i){return r.bind(t,e,n,i)}var fr=function(){return JSON.stringify(arguments)};function mr(){this.cache=Object.create(null)}mr.prototype.has=function(e){return e in this.cache},mr.prototype.get=function(e){return this.cache[e]},mr.prototype.set=function(e,t){this.cache[e]=t};var gr,yr={create:function(){return new mr}},br={variadic:function(e,t){return hr(e,this,dr,t.cache.create(),t.serializer)},monadic:function(e,t){return hr(e,this,pr,t.cache.create(),t.serializer)}};(Dt=gr=gr||{}).MISSING_VALUE="MISSING_VALUE",Dt.INVALID_VALUE="INVALID_VALUE",Dt.MISSING_INTL_API="MISSING_INTL_API";var vr,wr,Er,Cr,xr,_r=(mt(Ir,xr=Error),Ir.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ir),Tr=(mt(Dr,Cr=_r),Dr),Sr=(mt(Rr,Er=_r),Rr),Ar=(mt(Pr,wr=_r),Pr);function Pr(e,t){return wr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',gr.MISSING_VALUE,t)||this}function Rr(e,t,r){return Er.call(this,'Value for "'+e+'" must be of type '+t,gr.INVALID_VALUE,r)||this}function Dr(e,t,r,n){return Cr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',gr.INVALID_VALUE,n)||this}function Ir(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Or(e,t,r,n,i,o,s){if(1===e.length&&Et(e[0]))return[{type:vr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Et(u))a.push({type:vr.literal,value:u.value});else if(u.type===yt.pound)"number"==typeof o&&a.push({type:vr.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!(i&&p in i))throw new Ar(p,s);var d=i[p];if(u.type===yt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?vr.literal:vr.object,value:d});else if(xt(u)){var h="string"==typeof u.style?n.date[u.style]:Rt(u.style)?u.style.parsedOptions:void 0;a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(_t(u))h="string"==typeof u.style?n.time[u.style]:Rt(u.style)?u.style.parsedOptions:void 0,a.push({type:vr.literal,value:r.getDateTimeFormat(t,h).format(d)});else if(Ct(u))(h="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),a.push({type:vr.literal,value:r.getNumberFormat(t,h).format(d)});else{if(At(u)){var f=u.children,m=u.value,p=i[m];if("function"!=typeof p)throw new Sr(m,"function",s);f=p(Or(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?vr.literal:vr.object,value:e}}))}if(Tt(u)){if(!(g=u.options[d]||u.options.other))throw new Tr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i))}else if(St(u)){if(!(g=u.options["="+d])){if(!Intl.PluralRules)throw new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Tr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Or(g.value,t,r,n,i,d-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===vr.literal&&t.type===vr.literal?r.value+=t.value:e.push(t),e},[])}function Lr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Dt=vr=vr||{})[Dt.literal=0]="literal",Dt[Dt.object=1]="object";var kr=(Object.defineProperty(Mr,"defaultLocale",{get:function(){return Mr.memoizedDefaultLocale||(Mr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Mr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Mr.memoizedDefaultLocale=null,Mr.__parse=cr,Mr.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"}}},Mr);function Mr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Mr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===vr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Or(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Mr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Mr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Mr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?vt(vt(vt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=vt(vt({},r[t]),n[t]||{}),e},{})):r),e},vt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,wt([void 0],t)))},{cache:Lr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,wt([void 0],t)))},{cache:Lr(n.dateTime),strategy:br.variadic}),getPluralRules:ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,wt([void 0],t)))},{cache:Lr(n.pluralRules),strategy:br.variadic})}}const Nr={},Fr=(t,r)=>{if(null!=r){if(r in Nr&&t in Nr[r])return Nr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,$r(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Nr||(Nr[i]={}),n in Nr[i]||(Nr[i][n]=s),s)}}};let Ur;const Br=nt({});function $r(e){return e in Ur}it([Br],([e])=>Object.keys(e)),Br.subscribe(e=>Ur=e);const Gr={};function jr(e){return Gr[e]}function zr(e){return Kr(e).some(e=>{return null===(e=jr(e))||void 0===e?void 0:e.size})}function Vr(t,e){return Promise.all(e.map(e=>(function(e,t){Gr[e].delete(t),0===Gr[e].size&&delete Gr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Nr[t],Br.update(e=>(e[t]=ht.all([e[t]||{},...r]),e))}(t,...e))}const Hr={};function qr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=nt(!1);let Yr;const Wr=nt(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Xr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Wr.subscribe(e=>{Yr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Jr=Wr.set;Wr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if($r(r))return r}}}(t)&&zr(t)){var{loadingDelay:r}=Xr;let e;return"undefined"!=typeof window&&null!=Yr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),function e(t){if(!zr(t))return t in Hr?Hr[t]:void 0;const r=Kr(t).map(e=>{var t=jr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Hr[t]=Promise.all(r.map(([e,t])=>Vr(e,t))).then(()=>zr(t)?e(t):void delete Hr[t]),Hr[t]}(t).then(()=>{Jr(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return Jr(t)},Wr.update=e=>Jr(e(Yr));const en=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},tn=(e,t)=>{var{formats:r}=Xr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=tn("number",r)),new Intl.NumberFormat(t,e)}),nn=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=tn("date",r):0===Object.keys(e).length&&(e=tn("date","short")),new Intl.DateTimeFormat(t,e)}),on=en(e=>{var{locale:t,format:r}=e,e=qr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=tn("time",r):0===Object.keys(e).length&&(e=tn("time","short")),new Intl.DateTimeFormat(t,e)}),sn=en((e,t=Yr)=>new kr(e,t,Xr.formats,{ignoreTag:Xr.ignoreTag}));function an(){let r;return{c(){r=xe("p"),r.textContent="Email should contain '@' and a 2-3 letter long domain.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function ln(){let r;return{c(){r=xe("p"),r.textContent="Name must be at least 2 characters long and contain no special characters.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function cn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=_e(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Ae(l,"class","a"),Ae(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Ae(l,"transform","translate(0)"),Ae(c,"class","a"),Ae(c,"cx","2.779"),Ae(c,"cy","2.779"),Ae(c,"r","2.779"),Ae(c,"transform","translate(20.827 30.303)"),Ae(a,"transform","translate(-14.185 -27.832)"),Ae(n,"class","TogglePasswordVisibility"),Ae(n,"xmlns","http://www.w3.org/2000/svg"),Ae(n,"width","18.843"),Ae(n,"height","10.5"),Ae(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(o,s),we(n,a),we(a,l),we(a,c),u||(p=Se(n,"click",r[35]),u=!0)},p:be,d(e){e&&Ce(n),u=!1,p()}}}function un(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=_e(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Ae(l,"class","a"),Ae(l,"cx","0.05"),Ae(l,"cy","0.05"),Ae(l,"r","0.05"),Ae(l,"transform","translate(121.017 31.148)"),Ae(u,"class","a"),Ae(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Ae(u,"transform","translate(-142.164 -39.123)"),Ae(p,"class","a"),Ae(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Ae(p,"transform","translate(-136.413 -42.068)"),Ae(c,"transform","translate(117.499 27.37)"),Ae(h,"class","a"),Ae(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Ae(h,"transform","translate(-110.856 -33.157)"),Ae(f,"class","a"),Ae(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Ae(f,"transform","translate(-130.743 -29.617)"),Ae(d,"transform","translate(110.856 24.899)"),Ae(m,"class","a"),Ae(m,"width","0.972"),Ae(m,"height","15.861"),Ae(m,"rx","0.486"),Ae(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Ae(a,"transform","translate(-110.856 -23.242)"),Ae(n,"class","TogglePasswordVisibility"),Ae(n,"xmlns","http://www.w3.org/2000/svg"),Ae(n,"width","18.844"),Ae(n,"height","12.887"),Ae(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(o,s),we(n,a),we(a,l),we(a,c),we(c,u),we(c,p),we(a,d),we(d,h),we(d,f),we(a,m),g||(y=Se(n,"click",r[34]),g=!0)},p:be,d(e){e&&Ce(n),g=!1,y()}}}function pn(){let r;return{c(){r=xe("p"),r.textContent="Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function dn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=_e(".a{fill:#07072a;}"),a=e("g"),l=e("path"),c=e("circle"),Ae(l,"class","a"),Ae(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),Ae(l,"transform","translate(0)"),Ae(c,"class","a"),Ae(c,"cx","2.779"),Ae(c,"cy","2.779"),Ae(c,"r","2.779"),Ae(c,"transform","translate(20.827 30.303)"),Ae(a,"transform","translate(-14.185 -27.832)"),Ae(n,"class","ToggleConfirmPasswordVisibility"),Ae(n,"xmlns","http://www.w3.org/2000/svg"),Ae(n,"width","18.843"),Ae(n,"height","10.5"),Ae(n,"viewBox","0 0 18.843 10.5")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(o,s),we(n,a),we(a,l),we(a,c),u||(p=Se(n,"click",r[39]),u=!0)},p:be,d(e){e&&Ce(n),u=!1,p()}}}function hn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=_e(".a{fill:#07072a;}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),p=e("path"),d=e("g"),h=e("path"),f=e("path"),m=e("rect"),Ae(l,"class","a"),Ae(l,"cx","0.05"),Ae(l,"cy","0.05"),Ae(l,"r","0.05"),Ae(l,"transform","translate(121.017 31.148)"),Ae(u,"class","a"),Ae(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),Ae(u,"transform","translate(-142.164 -39.123)"),Ae(p,"class","a"),Ae(p,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),Ae(p,"transform","translate(-136.413 -42.068)"),Ae(c,"transform","translate(117.499 27.37)"),Ae(h,"class","a"),Ae(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),Ae(h,"transform","translate(-110.856 -33.157)"),Ae(f,"class","a"),Ae(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),Ae(f,"transform","translate(-130.743 -29.617)"),Ae(d,"transform","translate(110.856 24.899)"),Ae(m,"class","a"),Ae(m,"width","0.972"),Ae(m,"height","15.861"),Ae(m,"rx","0.486"),Ae(m,"transform","translate(114.827 23.858) rotate(-39.315)"),Ae(a,"transform","translate(-110.856 -23.242)"),Ae(n,"class","ToggleConfirmPasswordVisibility"),Ae(n,"xmlns","http://www.w3.org/2000/svg"),Ae(n,"width","18.844"),Ae(n,"height","12.887"),Ae(n,"viewBox","0 0 18.844 12.887")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(o,s),we(n,a),we(a,l),we(a,c),we(c,u),we(c,p),we(a,d),we(d,h),we(d,f),we(a,m),g||(y=Se(n,"click",r[38]),g=!0)},p:be,d(e){e&&Ce(n),g=!1,y()}}}function fn(){let r;return{c(){r=xe("p"),r.textContent="Do not match with password.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function mn(){let r;return{c(){r=xe("p"),r.textContent="Security question must be at least 1 character long and maximum 120 characters.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function gn(){let r;return{c(){r=xe("p"),r.textContent="Security answer must be at least 1 character long and maximum 120 characters.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function yn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,V,H,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se=r[0]&&an(),ae=r[1]&&ln();function le(e){return e[12]?un:cn}let ce=le(r),ue=ce(r),pe=r[2]&&pn();function de(e){return e[13]?hn:dn}let he=de(r),fe=he(r),me=r[3]&&fn(),ge=r[4]&&mn(),ye=r[5]&&gn();return{c(){n=xe("div"),i=xe("h2"),i.textContent="Create your account",o=Te(),s=xe("p"),a=_e("Already have an account? "),l=xe("span"),l.textContent="Login",c=Te(),u=xe("div"),p=xe("div"),d=xe("label"),d.innerHTML='Email:<span class="FormRequired">*</span>',h=Te(),f=xe("input"),m=Te(),se&&se.c(),y=Te(),b=xe("div"),v=xe("label"),v.innerHTML='Username:<span class="FormRequired">*</span>',w=Te(),E=xe("input"),C=Te(),ae&&ae.c(),_=Te(),T=xe("div"),S=xe("label"),S.innerHTML='Password:<span class="FormRequired">*</span>',A=Te(),P=xe("input"),R=Te(),ue.c(),D=Te(),pe&&pe.c(),O=Te(),L=xe("div"),k=xe("label"),k.innerHTML='Confirm Password:<span class="FormRequired">*</span>',M=Te(),N=xe("input"),F=Te(),fe.c(),U=Te(),me&&me.c(),$=Te(),G=xe("div"),j=xe("label"),j.innerHTML='Security Question:<span class="FormRequired">*</span>',z=Te(),V=xe("input"),H=Te(),ge&&ge.c(),X=Te(),Z=xe("div"),Y=xe("label"),Y.innerHTML='Security Answer:<span class="FormRequired">*</span>',W=Te(),Q=xe("input"),K=Te(),ye&&ye.c(),ee=Te(),te=xe("button"),re=_e("Next"),this.c=be,Ae(i,"class","RegisterFormTitle"),Ae(l,"class","FormLoginCallToAction"),Ae(s,"class","RegisterFormSubtitle"),Ae(n,"class","RegisterFormHeader"),Ae(d,"for","Email"),Ae(f,"type","text"),Ae(f,"id","Email"),Ae(p,"class",g="EmailContainer "+(r[0]?"InvalidField":"")),Ae(v,"for","UserName"),Ae(E,"type","text"),Ae(E,"id","UserName"),Ae(b,"class",x="UserContainer "+(r[1]?"InvalidField":"")),Ae(S,"for","Password"),Ae(P,"type","password"),Ae(P,"id","Password"),Ae(T,"class",I="PasswordContainer "+(r[2]?"InvalidField":"")),Ae(k,"for","ConfirmPassword"),Ae(N,"type","password"),Ae(N,"id","ConfirmPassword"),Ae(L,"class",B="ConfirmPasswordContainer "+(r[3]?"InvalidField":"")),Ae(j,"for","SecurityQuestion"),Ae(V,"type","text"),Ae(V,"id","SecurityQuestion"),Ae(G,"class",q="SecurityQuestionContainer "+(r[4]?"InvalidField":"")),Ae(Y,"for","SecurityAnswer"),Ae(Q,"type","text"),Ae(Q,"id","SecurityAnswer"),Ae(Z,"class",J="SecurityAnswerContainer "+(r[5]?"InvalidField":"")),Ae(u,"class","RegisterFormContent"),Ae(te,"class","RegisterStepNext"),te.disabled=ne=!r[16]},m(e,t){Ee(e,n,t),we(n,i),we(n,o),we(n,s),we(s,a),we(s,l),Ee(e,c,t),Ee(e,u,t),we(u,p),we(p,d),we(p,h),we(p,f),Pe(f,r[7]),we(p,m),se&&se.m(p,null),we(u,y),we(u,b),we(b,v),we(b,w),we(b,E),Pe(E,r[6]),we(b,C),ae&&ae.m(b,null),we(u,_),we(u,T),we(T,S),we(T,A),we(T,P),Pe(P,r[8]),r[33](P),we(T,R),ue.m(T,null),we(T,D),pe&&pe.m(T,null),we(u,O),we(u,L),we(L,k),we(L,M),we(L,N),Pe(N,r[9]),r[37](N),we(L,F),fe.m(L,null),we(L,U),me&&me.m(L,null),we(u,$),we(u,G),we(G,j),we(G,z),we(G,V),Pe(V,r[10]),we(G,H),ge&&ge.m(G,null),we(u,X),we(u,Z),we(Z,Y),we(Z,W),we(Z,Q),Pe(Q,r[11]),we(Z,K),ye&&ye.m(Z,null),Ee(e,ee,t),Ee(e,te,t),we(te,re),ie||(oe=[Se(l,"click",r[29]),Se(f,"input",r[30]),Se(f,"blur",r[18]),Se(E,"input",r[31]),Se(E,"blur",r[19]),Se(P,"input",r[32]),Se(P,"blur",r[24]),Se(N,"input",r[36]),Se(N,"blur",r[25]),Se(V,"input",r[40]),Se(V,"blur",r[26]),Se(Q,"input",r[41]),Se(Q,"keyup",r[27]),Se(te,"click",r[28])],ie=!0)},p(e,t){128&t[0]&&f.value!==e[7]&&Pe(f,e[7]),e[0]?se||(se=an(),se.c(),se.m(p,null)):se&&(se.d(1),se=null),1&t[0]&&g!==(g="EmailContainer "+(e[0]?"InvalidField":""))&&Ae(p,"class",g),64&t[0]&&E.value!==e[6]&&Pe(E,e[6]),e[1]?ae||(ae=ln(),ae.c(),ae.m(b,null)):ae&&(ae.d(1),ae=null),2&t[0]&&x!==(x="UserContainer "+(e[1]?"InvalidField":""))&&Ae(b,"class",x),256&t[0]&&P.value!==e[8]&&Pe(P,e[8]),ce===(ce=le(e))&&ue?ue.p(e,t):(ue.d(1),ue=ce(e),ue&&(ue.c(),ue.m(T,D))),e[2]?pe||(pe=pn(),pe.c(),pe.m(T,null)):pe&&(pe.d(1),pe=null),4&t[0]&&I!==(I="PasswordContainer "+(e[2]?"InvalidField":""))&&Ae(T,"class",I),512&t[0]&&N.value!==e[9]&&Pe(N,e[9]),he===(he=de(e))&&fe?fe.p(e,t):(fe.d(1),fe=he(e),fe&&(fe.c(),fe.m(L,U))),e[3]?me||(me=fn(),me.c(),me.m(L,null)):me&&(me.d(1),me=null),8&t[0]&&B!==(B="ConfirmPasswordContainer "+(e[3]?"InvalidField":""))&&Ae(L,"class",B),1024&t[0]&&V.value!==e[10]&&Pe(V,e[10]),e[4]?ge||(ge=mn(),ge.c(),ge.m(G,null)):ge&&(ge.d(1),ge=null),16&t[0]&&q!==(q="SecurityQuestionContainer "+(e[4]?"InvalidField":""))&&Ae(G,"class",q),2048&t[0]&&Q.value!==e[11]&&Pe(Q,e[11]),e[5]?ye||(ye=gn(),ye.c(),ye.m(Z,null)):ye&&(ye.d(1),ye=null),32&t[0]&&J!==(J="SecurityAnswerContainer "+(e[5]?"InvalidField":""))&&Ae(Z,"class",J),65536&t[0]&&ne!==(ne=!e[16])&&(te.disabled=ne)},i:be,o:be,d(e){e&&Ce(n),e&&Ce(c),e&&Ce(u),se&&se.d(),ae&&ae.d(),r[33](null),ue.d(),pe&&pe.d(),r[37](null),fe.d(),me&&me.d(),ge&&ge.d(),ye&&ye.d(),e&&Ce(ee),e&&Ce(te),ie=!1,ve(oe)}}}function bn(e,t,r){let n,i,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p="",d="",h="",f="",m="",g="",y=!1,b=!1,v=!1;const w=()=>{r(16,v=!(o||s||a||l||c||u)),(p.length<=0||d.length<=0||h.length<=0||f.length<=0||m.length<=0||g.length<=0)&&r(16,v=!1)},E=()=>{window.postMessage({type:"ToLogin"},window.location.href)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},x=()=>{r(12,y=!0),A()},_=()=>{r(13,b=!0),P()},T=()=>{r(12,y=!1),A()},S=()=>{r(13,b=!1),P()},A=()=>{r(14,n.type=y?"text":"password",n)},P=()=>{r(15,i.type=b?"text":"password",i)},R=e=>{e.data&&"StepOneDataBackup"===e.data.type&&(r(7,d=e.data.userData.email),r(6,p=e.data.userData.username),r(8,h=e.data.userData.password),r(9,f=e.data.userData.password),r(10,m=e.data.userData.securityQuestion),r(11,g=e.data.userData.securityAnswer),w())};return L(()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R)})),[o,s,a,l,c,u,p,d,h,f,m,g,y,b,n,i,v,E,()=>{var e;r(0,(e=d,o=!C.email.test(e))),w()},()=>{var e;r(1,(e=p,s=!C.user.test(e))),w()},x,_,T,S,()=>{var e;r(2,(e=h,a=!C.password.test(e))),h!==f&&0<f.length?r(3,l=!0):r(3,l=!1),w()},()=>{r(3,l=!(h===f)),w()},()=>{r(4,c=!(m&&m.length<=120)),w()},()=>{r(5,u=!(g&&g.length<=120)),w()},()=>{var e={userEmail:d,userValue:p,userPassword:h,confirmUserPassword:f,securityQuestion:m,securityAnswer:g};window.postMessage({type:"RegisterStepOne",registerStepOneData:e},window.location.href)},()=>E(),function(){d=this.value,r(7,d)},function(){p=this.value,r(6,p)},function(){h=this.value,r(8,h)},function(e){D[e?"unshift":"push"](()=>{n=e,r(14,n)})},()=>T(),()=>x(),function(){f=this.value,r(9,f)},function(e){D[e?"unshift":"push"](()=>{i=e,r(15,i)})},()=>S(),()=>_(),function(){m=this.value,r(10,m)},function(){g=this.value,r(11,g)}]}function vn(e,t,r){const n=e.slice();return n[37]=t[r],n}function wn(e,t,r){const n=e.slice();return n[40]=t[r],n}function En(e,t,r){const n=e.slice();return n[43]=t[r],n}function Cn(e,t,r){const n=e.slice();return n[46]=t[r],n}function xn(e,t,r){const n=e.slice();return n[49]=t[r],n}function _n(e){let r,n,t=e[49]+"";return{c(){r=xe("option"),n=_e(t),r.__value=e[49],r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p:be,d(e){e&&Ce(r)}}}function Tn(){let r;return{c(){r=xe("p"),r.textContent="First name must be at least 2 characters long and contain no special characters.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function Sn(){let r;return{c(){r=xe("p"),r.textContent="Last name must be at least 2 characters long and contain no special characters.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function An(e){let r,n,t=e[46]+"";return{c(){r=xe("option"),n=_e(t),r.__value=e[46],r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p:be,d(e){e&&Ce(r)}}}function Pn(e){let r,n,t=e[43]+"";return{c(){r=xe("option"),n=_e(t),r.__value=e[43],r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p:be,d(e){e&&Ce(r)}}}function Rn(e){let r,n,t=e[40]+"";return{c(){r=xe("option"),n=_e(t),r.__value=e[40],r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p:be,d(e){e&&Ce(r)}}}function Dn(){let r;return{c(){r=xe("p"),r.textContent="Birth place must be at least 1 character long.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function In(e){let r,n,i,o=e[37]+"";return{c(){r=xe("option"),n=_e(o),r.__value=i=e[37],r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){1024&t[0]&&o!==(o=e[37]+"")&&C(n,o),1024&t[0]&&i!==(i=e[37])&&(r.__value=i,r.value=r.__value)},d(e){e&&Ce(r)}}}function On(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,e,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,V,H,q,X,Z,Y,W,Q,K,J=r[13],ee=[];for(let e=0;e<J.length;e+=1)ee[e]=_n(xn(r,J,e));let te=r[0]&&Tn(),re=r[1]&&Sn(),ne=r[14],ie=[];for(let e=0;e<ne.length;e+=1)ie[e]=An(Cn(r,ne,e));let oe=r[15],se=[];for(let e=0;e<oe.length;e+=1)se[e]=Pn(En(r,oe,e));let ae=r[16],le=[];for(let e=0;e<ae.length;e+=1)le[e]=Rn(wn(r,ae,e));let ce=r[2]&&Dn(),ue=r[10],pe=[];for(let e=0;e<ue.length;e+=1)pe[e]=In(vn(r,ue,e));return{c(){n=xe("div"),i=xe("button"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back',o=Te(),s=xe("div"),a=xe("div"),l=xe("label"),l.innerHTML='Title:<span class="FormRequired">*</span>',c=Te(),u=xe("select");for(let e=0;e<ee.length;e+=1)ee[e].c();p=_e("}"),d=Te(),h=xe("div"),f=xe("label"),f.innerHTML='First Name:<span class="FormRequired">*</span>',m=Te(),g=xe("input"),y=Te(),te&&te.c(),b=Te(),v=xe("div"),w=xe("label"),w.innerHTML='Last Name:<span class="FormRequired">*</span>',E=Te(),C=xe("input"),x=Te(),re&&re.c(),T=Te(),S=xe("div"),A=xe("label"),A.innerHTML='Date of Birth:<span class="FormRequired">*</span>',P=Te(),R=xe("div"),D=xe("select");for(let e=0;e<ie.length;e+=1)ie[e].c();I=Te(),O=xe("select");for(let e=0;e<se.length;e+=1)se[e].c();L=Te(),k=xe("select");for(let e=0;e<le.length;e+=1)le[e].c();M=Te(),N=xe("div"),F=xe("label"),F.innerHTML='Birth Place:<span class="FormRequired">*</span>',U=Te(),B=xe("input"),$=Te(),ce&&ce.c(),j=Te(),z=xe("div"),V=xe("label"),V.innerHTML='Currency:<span class="FormRequired">*</span>',H=Te(),q=xe("select");for(let e=0;e<pe.length;e+=1)pe[e].c();X=Te(),Z=xe("button"),Y=_e("Next"),this.c=be,Ae(i,"class","BackButton"),Ae(n,"class","RegisterFormHeader"),Ae(l,"for","Title"),Ae(u,"id","Title"),void 0===r[3]&&De(()=>r[23].call(u)),Ae(a,"class","UserTitleContainer"),Ae(f,"for","FirstName"),Ae(g,"type","text"),Ae(g,"id","FirstName"),Ae(h,"class",e="FirstNameContainer "+(r[0]?"InvalidField":"")),Ae(w,"for","LastName"),Ae(C,"type","text"),Ae(C,"id","LastName"),Ae(v,"class",_="LastNameContainer "+(r[1]?"InvalidField":"")),Ae(A,"for","BirthDate"),Ae(D,"class","BirthDaySelected"),void 0===r[6]&&De(()=>r[26].call(D)),Ae(O,"class","BirthMonthSelected"),void 0===r[7]&&De(()=>r[27].call(O)),Ae(k,"class","BirthYearSelected"),void 0===r[8]&&De(()=>r[28].call(k)),Ae(R,"class","BirthDateOptions"),Ae(S,"class","BirthDateContainer"),Ae(F,"for","BirthPlace"),Ae(B,"type","text"),Ae(B,"id","BirthPlace"),Ae(N,"class",G="BirthPlaceContainer "+(r[2]?"InvalidField":"")),Ae(V,"for","Currency"),Ae(q,"id","Currency"),void 0===r[11]&&De(()=>r[30].call(q)),Ae(z,"class","CurrencyContainer"),Ae(s,"class","RegisterFormContent"),Ae(Z,"class","RegisterStepNext"),Z.disabled=W=!r[12]},m(e,t){Ee(e,n,t),we(n,i),Ee(e,o,t),Ee(e,s,t),we(s,a),we(a,l),we(a,c),we(a,u);for(let e=0;e<ee.length;e+=1)ee[e].m(u,null);we(u,p),Re(u,r[3]),we(s,d),we(s,h),we(h,f),we(h,m),we(h,g),Pe(g,r[4]),we(h,y),te&&te.m(h,null),we(s,b),we(s,v),we(v,w),we(v,E),we(v,C),Pe(C,r[5]),we(v,x),re&&re.m(v,null),we(s,T),we(s,S),we(S,A),we(S,P),we(S,R),we(R,D);for(let e=0;e<ie.length;e+=1)ie[e].m(D,null);Re(D,r[6]),we(R,I),we(R,O);for(let e=0;e<se.length;e+=1)se[e].m(O,null);Re(O,r[7]),we(R,L),we(R,k);for(let e=0;e<le.length;e+=1)le[e].m(k,null);Re(k,r[8]),we(s,M),we(s,N),we(N,F),we(N,U),we(N,B),Pe(B,r[9]),we(N,$),ce&&ce.m(N,null),we(s,j),we(s,z),we(z,V),we(z,H),we(z,q);for(let e=0;e<pe.length;e+=1)pe[e].m(q,null);Re(q,r[11]),Ee(e,X,t),Ee(e,Z,t),we(Z,Y),Q||(K=[Se(i,"click",r[21]),Se(u,"change",r[23]),Se(g,"input",r[24]),Se(g,"blur",r[17]),Se(C,"input",r[25]),Se(C,"blur",r[18]),Se(D,"change",r[26]),Se(O,"change",r[27]),Se(k,"change",r[28]),Se(B,"input",r[29]),Se(B,"keyup",r[19]),Se(q,"change",r[30]),Se(Z,"click",r[20])],Q=!0)},p(t,r){if(8192&r[0]){let e;for(J=t[13],e=0;e<J.length;e+=1){var n=xn(t,J,e);ee[e]?ee[e].p(n,r):(ee[e]=_n(n),ee[e].c(),ee[e].m(u,p))}for(;e<ee.length;e+=1)ee[e].d(1);ee.length=J.length}if(8200&r[0]&&Re(u,t[3]),16&r[0]&&g.value!==t[4]&&Pe(g,t[4]),t[0]?te||(te=Tn(),te.c(),te.m(h,null)):te&&(te.d(1),te=null),1&r[0]&&e!==(e="FirstNameContainer "+(t[0]?"InvalidField":""))&&Ae(h,"class",e),32&r[0]&&C.value!==t[5]&&Pe(C,t[5]),t[1]?re||(re=Sn(),re.c(),re.m(v,null)):re&&(re.d(1),re=null),2&r[0]&&_!==(_="LastNameContainer "+(t[1]?"InvalidField":""))&&Ae(v,"class",_),16384&r[0]){let e;for(ne=t[14],e=0;e<ne.length;e+=1){var i=Cn(t,ne,e);ie[e]?ie[e].p(i,r):(ie[e]=An(i),ie[e].c(),ie[e].m(D,null))}for(;e<ie.length;e+=1)ie[e].d(1);ie.length=ne.length}if(16448&r[0]&&Re(D,t[6]),32768&r[0]){let e;for(oe=t[15],e=0;e<oe.length;e+=1){var o=En(t,oe,e);se[e]?se[e].p(o,r):(se[e]=Pn(o),se[e].c(),se[e].m(O,null))}for(;e<se.length;e+=1)se[e].d(1);se.length=oe.length}if(32896&r[0]&&Re(O,t[7]),65536&r[0]){let e;for(ae=t[16],e=0;e<ae.length;e+=1){var s=wn(t,ae,e);le[e]?le[e].p(s,r):(le[e]=Rn(s),le[e].c(),le[e].m(k,null))}for(;e<le.length;e+=1)le[e].d(1);le.length=ae.length}if(65792&r[0]&&Re(k,t[8]),512&r[0]&&B.value!==t[9]&&Pe(B,t[9]),t[2]?ce||(ce=Dn(),ce.c(),ce.m(N,null)):ce&&(ce.d(1),ce=null),4&r[0]&&G!==(G="BirthPlaceContainer "+(t[2]?"InvalidField":""))&&Ae(N,"class",G),1024&r[0]){let e;for(ue=t[10],e=0;e<ue.length;e+=1){var a=vn(t,ue,e);pe[e]?pe[e].p(a,r):(pe[e]=In(a),pe[e].c(),pe[e].m(q,null))}for(;e<pe.length;e+=1)pe[e].d(1);pe.length=ue.length}3072&r[0]&&Re(q,t[11]),4096&r[0]&&W!==(W=!t[12])&&(Z.disabled=W)},i:be,o:be,d(e){e&&Ce(n),e&&Ce(o),e&&Ce(s),t(ee,e),te&&te.d(),re&&re.d(),t(ie,e),t(se,e),t(le,e),ce&&ce.d(),t(pe,e),e&&Ce(X),e&&Ce(Z),Q=!1,ve(K)}}}function Ln(e,t,r){let{endpoint:n=""}=t,i=!1,o=!1,s=!1,a=["Mr.","Mrs.","Ms."],l=a[0],c="",u="",p=[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],d=p[0],h=[1,2,3,4,5,6,7,8,9,10,11,12],f=h[0],m=[1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979],g=m[0],y="",b=[],v="",w=!1;const E=()=>{r(12,w=!(i||o||s)),(c.length<=0||u.length<=0||y.length<=0)&&r(12,w=!1)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/},x=e=>!!C.user.test(e),_=e=>{e.data&&"StepTwoDataBackup"===e.data.type&&(r(3,l=e.data.userData.title),r(4,c=e.data.userData.firstname),r(5,u=e.data.userData.lastname),r(6,d=e.data.userData.birth.day),r(7,f=e.data.userData.birth.month),r(8,g=e.data.userData.birth.year),r(9,y=e.data.userData.birthPlace),r(11,v=e.data.userData.currency),E())};return L(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),e.$$set=e=>{"endpoint"in e&&r(22,n=e.endpoint)},e.$$.update=()=>{4194304&e.$$.dirty[0]&&n&&fetch(`${n}/player/operatorSupportedCurrencies`).then(e=>e.json()).then(e=>{r(10,b=e.currencies),v||r(11,v=b[0])})},[i,o,s,l,c,u,d,f,g,y,b,v,w,a,p,h,m,()=>{r(0,i=!x(c)),E()},()=>{r(1,o=!x(u)),E()},()=>{r(2,s=!y),E()},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"RegisterStepTwo",registerStepTwoData:e},window.location.href)},()=>{var e={userTitleSelected:l,userFirstName:c,userLastName:u,birthDaySelected:d,birthMonthSelected:f,birthYearSelected:g,birthPlace:y,currencySelected:v};window.postMessage({type:"GoBackStepTwo",registerStepTwoData:e},window.location.href)},n,function(){l=O(this),r(3,l),r(13,a)},function(){c=this.value,r(4,c)},function(){u=this.value,r(5,u)},function(){d=O(this),r(6,d),r(14,p)},function(){f=O(this),r(7,f),r(15,h)},function(){g=O(this),r(8,g),r(16,m)},function(){y=this.value,r(9,y)},function(){v=O(this),r(11,v),r(10,b)}]}function kn(e,t,r){const n=e.slice();return n[53]=t[r],n}function Mn(e,t,r){const n=e.slice();return n[56]=t[r],n}function Nn(e,t,r){const n=e.slice();return n[59]=t[r],n}function Fn(){let r;return{c(){r=xe("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function Un(){let r;return{c(){r=xe("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function Bn(){let r;return{c(){r=xe("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function $n(e){let r,n,i,o=e[59].Name+"";return{c(){r=xe("option"),n=_e(o),r.__value=i=e[59].Alpha2Code,r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){1024&t[0]&&o!==(o=e[59].Name+"")&&C(n,o),1024&t[0]&&i!==(i=e[59].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&Ce(r)}}}function Gn(e){let r,n,i,o=e[56].Name+"";return{c(){r=xe("option"),n=_e(o),r.__value=i=e[56].Alpha2Code,r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){4096&t[0]&&o!==(o=e[56].Name+"")&&C(n,o),4096&t[0]&&i!==(i=e[56].Alpha2Code)&&(r.__value=i,r.value=r.__value)},d(e){e&&Ce(r)}}}function jn(e){let r,n,i,o=e[53].Prefix+"";return{c(){r=xe("option"),n=_e(o),r.__value=i=e[53].Prefix,r.value=r.__value},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){32768&t[0]&&o!==(o=e[53].Prefix+"")&&C(n,o),32768&t[0]&&i!==(i=e[53].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&Ce(r)}}}function zn(){let r;return{c(){r=xe("p"),r.textContent="Mobile must be at least 5 character long and 20 characters maximum.",Ae(r,"class","InvalidInput")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function Vn(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F=!r[20]&&Hn();return{c(){n=xe("div"),i=xe("label"),o=_e("I want to receive exclusive offers and bonuses."),s=xe("br"),a=_e("I am aware that I can unsubscribe whenever I want to.\n "),l=xe("input"),c=Te(),u=xe("span"),p=Te(),d=xe("div"),h=xe("label"),f=_e("SMS\n "),m=xe("input"),y=Te(),b=xe("span"),v=Te(),w=xe("label"),E=_e("Emails\n "),C=xe("input"),_=Te(),T=xe("span"),S=Te(),A=xe("div"),P=xe("label"),R=_e("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n "),D=xe("input"),I=Te(),O=xe("span"),L=Te(),F&&F.c(),k=U(),Ae(l,"type","Checkbox"),l.checked=r[17],Ae(u,"class","Checkmark"),Ae(i,"class","Offers"),Ae(m,"type","Checkbox"),m.disabled=g=!r[17],m.checked=r[18],Ae(b,"class","Checkmark"),Ae(h,"class","OffersMethod"),Ae(C,"type","Checkbox"),C.disabled=x=!r[17],C.checked=r[19],Ae(T,"class","Checkmark"),Ae(w,"class","OffersMethod"),Ae(d,"class","OffersMethodsWrapper"),Ae(n,"class","OffersContainer"),Ae(D,"type","Checkbox"),D.checked=r[20],Ae(O,"class","Checkmark"),Ae(P,"class","AgeConsent"),Ae(A,"class","AgeContainer")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(i,s),we(i,a),we(i,l),we(i,c),we(i,u),we(n,p),we(n,d),we(d,h),we(h,f),we(h,m),we(h,y),we(h,b),we(d,v),we(d,w),we(w,E),we(w,C),we(w,_),we(w,T),Ee(e,S,t),Ee(e,A,t),we(A,P),we(P,R),we(P,D),we(P,I),we(P,O),Ee(e,L,t),F&&F.m(e,t),Ee(e,k,t),M||(N=[Se(l,"click",r[40]),Se(m,"click",r[41]),Se(C,"click",r[42]),Se(D,"click",r[43])],M=!0)},p(e,t){131072&t[0]&&(l.checked=e[17]),131072&t[0]&&g!==(g=!e[17])&&(m.disabled=g),262144&t[0]&&(m.checked=e[18]),131072&t[0]&&x!==(x=!e[17])&&(C.disabled=x),524288&t[0]&&(C.checked=e[19]),1048576&t[0]&&(D.checked=e[20]),e[20]?F&&(F.d(1),F=null):F||(F=Hn(),F.c(),F.m(k.parentNode,k))},d(e){e&&Ce(n),e&&Ce(S),e&&Ce(A),e&&Ce(L),F&&F.d(e),e&&Ce(k),M=!1,ve(N)}}}function Hn(){let r;return{c(){r=xe("div"),r.innerHTML="<p>Please accept the Terms and Conditions before proceeding.</p>",Ae(r,"class","NotificationContainer")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function qn(e){let r,n,i;return{c(){r=xe("div"),n=xe("p"),i=_e(e[6]),Ae(n,"class","RegisterError")},m(e,t){Ee(e,r,t),we(r,n),we(n,i)},p(e,t){64&t[0]&&C(i,e[6])},d(e){e&&Ce(r)}}}function Xn(r){let n,e,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,S,A,P,R,D,I,O,L,k,M,N,F,U,B,$,G,j,z,V,H,q,X,Z,Y,W,Q,K,J,ee,te,re,ne,ie,oe,se=r[1]&&Fn(),ae=r[2]&&Un(),le=r[4]&&Bn(),ce=r[10],ue=[];for(let e=0;e<ce.length;e+=1)ue[e]=$n(Nn(r,ce,e));let pe=r[12],de=[];for(let e=0;e<pe.length;e+=1)de[e]=Gn(Mn(r,pe,e));let he=r[15],fe=[];for(let e=0;e<he.length;e+=1)fe[e]=jn(kn(r,he,e));let me=r[3]&&zn(),ge=r[0]&&Vn(r),ye=r[5]&&qn(r);return{c(){n=xe("script"),i=Te(),o=xe("div"),s=Te(),a=xe("div"),l=xe("button"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:#d0046c;}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>\n Back',c=Te(),u=xe("div"),p=xe("div"),d=xe("div"),h=xe("label"),h.innerHTML='Address:<span class="FormRequired">*</span>',f=Te(),m=xe("input"),g=Te(),se&&se.c(),b=Te(),v=xe("div"),w=xe("label"),w.innerHTML='Postal Code:<span class="FormRequired">*</span>',E=Te(),C=xe("input"),x=Te(),ae&&ae.c(),T=Te(),S=xe("div"),A=xe("label"),A.innerHTML='City:<span class="FormRequired">*</span>',P=Te(),R=xe("input"),D=Te(),le&&le.c(),O=Te(),L=xe("div"),k=xe("label"),k.innerHTML='Country:<span class="FormRequired">*</span>',M=Te(),N=xe("select");for(let e=0;e<ue.length;e+=1)ue[e].c();F=Te(),U=xe("div"),B=xe("label"),B.innerHTML='Nationality:<span class="FormRequired">*</span>',$=Te(),G=xe("select");for(let e=0;e<de.length;e+=1)de[e].c();j=Te(),z=xe("div"),V=xe("label"),V.innerHTML='Mobile:<span class="FormRequired">*</span>',H=Te(),q=xe("div"),X=xe("select");for(let e=0;e<fe.length;e+=1)fe[e].c();Z=Te(),Y=xe("input"),W=Te(),me&&me.c(),K=Te(),ge&&ge.c(),J=Te(),ye&&ye.c(),ee=Te(),te=xe("button"),re=_e("Open Account"),this.c=be,n.src!==(e="//www.google.com/recaptcha/api.js?render="+Zn)&&Ae(n,"src","//www.google.com/recaptcha/api.js?render=6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn"),n.async=!0,n.defer=!0,Ae(o,"class","g-recaptcha"),Ae(o,"data-sitekey",Zn),Ae(l,"class","BackButton"),Ae(a,"class","RegisterFormHeader"),Ae(h,"for","Address"),Ae(m,"type","text"),Ae(m,"id","Address"),Ae(d,"class",y="AddressContainer "+(r[1]?"InvalidField":"")),Ae(w,"for","PostalCode"),Ae(C,"type","text"),Ae(C,"id","PostalCode"),Ae(v,"class",_="PostalCodeContainer "+(r[2]?"InvalidField":"")),Ae(p,"class","AddressPostalCodeContainer"),Ae(A,"for","City"),Ae(R,"type","text"),Ae(R,"id","City"),Ae(S,"class",I="CityContainer "+(r[4]?"InvalidField":"")),Ae(k,"for","Country"),Ae(N,"id","Country"),void 0===r[11]&&De(()=>r[36].call(N)),Ae(L,"class","CountryContainer"),Ae(B,"for","Nationality"),Ae(G,"id","Nationality"),void 0===r[13]&&De(()=>r[37].call(G)),Ae(U,"class","NationalityContainer"),Ae(V,"for","Mobile"),Ae(X,"class","MobilePrefixSelected"),void 0===r[16]&&De(()=>r[38].call(X)),Ae(Y,"type","text"),Ae(Y,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Ae(Y,"id","Mobile"),Ae(Y,"class","MobileInput"),Ae(q,"class","MobileWrapper"),Ae(z,"class",Q="MobileContainer "+(r[3]?"InvalidField":"")),Ae(u,"class","RegisterFormContent"),Ae(te,"class","RegisterStepNext"),te.disabled=ne=!r[21]},m(e,t){we(document.head,n),Ee(e,i,t),Ee(e,o,t),Ee(e,s,t),Ee(e,a,t),we(a,l),Ee(e,c,t),Ee(e,u,t),we(u,p),we(p,d),we(d,h),we(d,f),we(d,m),Pe(m,r[7]),we(d,g),se&&se.m(d,null),we(p,b),we(p,v),we(v,w),we(v,E),we(v,C),Pe(C,r[8]),we(v,x),ae&&ae.m(v,null),we(u,T),we(u,S),we(S,A),we(S,P),we(S,R),Pe(R,r[9]),we(S,D),le&&le.m(S,null),we(u,O),we(u,L),we(L,k),we(L,M),we(L,N);for(let e=0;e<ue.length;e+=1)ue[e].m(N,null);Re(N,r[11]),we(u,F),we(u,U),we(U,B),we(U,$),we(U,G);for(let e=0;e<de.length;e+=1)de[e].m(G,null);Re(G,r[13]),we(u,j),we(u,z),we(z,V),we(z,H),we(z,q),we(q,X);for(let e=0;e<fe.length;e+=1)fe[e].m(X,null);Re(X,r[16]),we(q,Z),we(q,Y),Pe(Y,r[14]),we(q,W),me&&me.m(q,null),we(u,K),ge&&ge.m(u,null),Ee(e,J,t),ye&&ye.m(e,t),Ee(e,ee,t),Ee(e,te,t),we(te,re),ie||(oe=[Se(l,"click",r[31]),Se(m,"input",r[33]),Se(m,"blur",r[22]),Se(C,"input",r[34]),Se(C,"blur",r[23]),Se(R,"input",r[35]),Se(R,"blur",r[24]),Se(N,"change",r[36]),Se(G,"change",r[37]),Se(X,"change",r[38]),Se(Y,"input",r[39]),Se(Y,"keyup",r[25]),Se(te,"click",r[30])],ie=!0)},p(t,r){if(128&r[0]&&m.value!==t[7]&&Pe(m,t[7]),t[1]?se||(se=Fn(),se.c(),se.m(d,null)):se&&(se.d(1),se=null),2&r[0]&&y!==(y="AddressContainer "+(t[1]?"InvalidField":""))&&Ae(d,"class",y),256&r[0]&&C.value!==t[8]&&Pe(C,t[8]),t[2]?ae||(ae=Un(),ae.c(),ae.m(v,null)):ae&&(ae.d(1),ae=null),4&r[0]&&_!==(_="PostalCodeContainer "+(t[2]?"InvalidField":""))&&Ae(v,"class",_),512&r[0]&&R.value!==t[9]&&Pe(R,t[9]),t[4]?le||(le=Bn(),le.c(),le.m(S,null)):le&&(le.d(1),le=null),16&r[0]&&I!==(I="CityContainer "+(t[4]?"InvalidField":""))&&Ae(S,"class",I),1024&r[0]){let e;for(ce=t[10],e=0;e<ce.length;e+=1){var n=Nn(t,ce,e);ue[e]?ue[e].p(n,r):(ue[e]=$n(n),ue[e].c(),ue[e].m(N,null))}for(;e<ue.length;e+=1)ue[e].d(1);ue.length=ce.length}if(3072&r[0]&&Re(N,t[11]),4096&r[0]){let e;for(pe=t[12],e=0;e<pe.length;e+=1){var i=Mn(t,pe,e);de[e]?de[e].p(i,r):(de[e]=Gn(i),de[e].c(),de[e].m(G,null))}for(;e<de.length;e+=1)de[e].d(1);de.length=pe.length}if(12288&r[0]&&Re(G,t[13]),32768&r[0]){let e;for(he=t[15],e=0;e<he.length;e+=1){var o=kn(t,he,e);fe[e]?fe[e].p(o,r):(fe[e]=jn(o),fe[e].c(),fe[e].m(X,null))}for(;e<fe.length;e+=1)fe[e].d(1);fe.length=he.length}98304&r[0]&&Re(X,t[16]),16384&r[0]&&Y.value!==t[14]&&Pe(Y,t[14]),t[3]?me||(me=zn(),me.c(),me.m(q,null)):me&&(me.d(1),me=null),8&r[0]&&Q!==(Q="MobileContainer "+(t[3]?"InvalidField":""))&&Ae(z,"class",Q),t[0]?ge?ge.p(t,r):(ge=Vn(t),ge.c(),ge.m(u,null)):ge&&(ge.d(1),ge=null),t[5]?ye?ye.p(t,r):(ye=qn(t),ye.c(),ye.m(ee.parentNode,ee)):ye&&(ye.d(1),ye=null),2097152&r[0]&&ne!==(ne=!t[21])&&(te.disabled=ne)},i:be,o:be,d(e){Ce(n),e&&Ce(i),e&&Ce(o),e&&Ce(s),e&&Ce(a),e&&Ce(c),e&&Ce(u),se&&se.d(),ae&&ae.d(),le&&le.d(),t(ue,e),t(de,e),t(fe,e),me&&me.d(),ge&&ge.d(),e&&Ce(J),ye&&ye.d(e),e&&Ce(ee),e&&Ce(te),ie=!1,ve(oe)}}}it([Wr,Br],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Yr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Fr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Xr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${zr(Yr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=sn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return nn(Object.assign({locale:t},e))})(t).format(e)),it([Wr],()=>(e,t)=>((e={})=>{var{locale:t=Yr}=e,e=qr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),it([Wr,Br],()=>(e,t=Yr)=>Fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==et.indexOf(e)&&(t=new We(t),tt[e]=t,et.push(e)),tt[e]}},customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect,.ToggleConfirmPasswordVisibility path,.ToggleConfirmPasswordVisibility circle,.ToggleConfirmPasswordVisibility rect{fill:#58586B}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}input::-ms-reveal,input::-ms-clear{display:none}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bn,yn,r,{},[-1,-1]),e&&e.target&&Ee(e.target,this,e.anchor)}}),customElements.get("general-player-register-form-step2")||customElements.define("general-player-register-form-step2",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.UserTitleContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;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 #D0046C;box-shadow:0 0 0 1pt #D0046C}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.CurrencyContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.CurrencyContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserTitleContainer select,.FirstNameContainer input,.LastNameContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.CurrencyContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthPlaceContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.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 #FFF;background-position:calc(100% - 0.75rem) center}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ln,On,r,{endpoint:22},[-1,-1]),e&&(e.target&&Ee(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$set({endpoint:e}),w()}});const Zn="6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn";function Yn(e,t,r){let{userconsentexists:n=!1}=t,{endpoint:i=""}=t,o="",s="",a="",l="",c=!1,u="",p="",d="",h="",f=[],m="",g=[],y="",b="",v=[],w="",E=!1,C=!1,x=!1,_=!1,T=!1;const S=()=>{r(21,T=!(o||s||l||a||c||n&&_)),(p.length<=0||d.length<=0||h.length<=0||b.length<=0)&&r(21,T=!1)},A=()=>{!1===E?r(17,E=!0):(r(17,E=!1),r(18,C=!1),r(19,x=!1))},P=()=>{r(18,C=!1===C)},R=()=>{r(19,x=!1===x)},D=()=>{r(20,_=!1===_),S()},I=e=>{if(e.data)switch(e.data.type){case"StepThreeDataBackup":r(7,p=e.data.userData.address1),r(8,d=e.data.userData.postalCode),r(9,h=e.data.userData.city),r(11,m=e.data.userData.country),r(13,y=e.data.userData.nationality),r(16,w=e.data.userData.mobile.prefix),r(14,b=e.data.userData.mobile.number),r(18,C=e.data.userData.userConsents.additionalProp1),r(19,x=e.data.userData.userConsents.additionalProp2),r(20,_=e.data.userData.userConsents.additionalProp3),S();break;case"ShowRegistrationError":r(5,c=e.data.showError),r(6,u=e.data.error)}};return L(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),e.$$set=e=>{"userconsentexists"in e&&r(0,n=e.userconsentexists),"endpoint"in e&&r(32,i=e.endpoint)},e.$$.update=()=>{2&e.$$.dirty[1]&&i&&fetch(`${i}/player/countries`).then(e=>e.json()).then(e=>{r(10,f=e.countries),m||r(11,m=f[0].Alpha2Code),r(12,g=e.countries),y||r(13,y=g[0].Alpha2Code)}),2&e.$$.dirty[1]&&i&&fetch(`${i}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,v=e.phoneCodes),w||r(16,w=v[0].Prefix)})},[n,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E,C,x,_,T,()=>{r(1,o=!(p&&p.length<=100)),S()},()=>{r(2,s=!(d&&d.length<=20)),S()},()=>{r(4,l=!(h&&h.length<=50)),S()},()=>{r(3,a=!(b&&5<=b.length&&b.length<=30)),S()},A,P,R,D,()=>{let t;new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(Zn,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{t={address:p,postalCode:d,city:h,countrySelected:m,nationalitySelected:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:x,consentTerms:_,token:e},window.postMessage({type:"RegisterStepThree",registerStepThreeData:t},window.location.href)})},()=>{var e={address:p,postalCode:d,city:h,countrySelected:m,nationalitySelected:y,mobilePrefixSelected:w,mobile:b,consentOffersSms:C,consentOffersEmail:x,consentTerms:_};window.postMessage({type:"GoBackStepThree",registerStepThreeData:e},window.location.href)},i,function(){p=this.value,r(7,p)},function(){d=this.value,r(8,d)},function(){h=this.value,r(9,h)},function(){m=O(this),r(11,m),r(10,f)},function(){y=O(this),r(13,y),r(12,g)},function(){w=O(this),r(16,w),r(15,v)},function(){b=this.value,r(14,b)},()=>A(),()=>P(),()=>R(),()=>D()]}function Wn(r){let n,i,o,s,a,l,c,u,p;return{c(){n=xe("div"),i=xe("div"),s=Te(),a=xe("div"),c=Te(),u=xe("div"),Ae(i,"class",o="RegisterFirstStepDash "+(r[2]||!r[2]&&r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Ae(a,"class",l="RegisterSecondStepDash "+(r[3]||!r[2]&&!r[3]&&r[4]?"RegisterStepDashColor":"")),Ae(u,"class",p="RegisterThirdStepDash "+(r[4]?"RegisterStepDashColor":"")),Ae(n,"class","RegisterSteps")},m(e,t){Ee(e,n,t),we(n,i),we(n,s),we(n,a),we(n,c),we(n,u),r[17](n)},p(e,t){28&t[0]&&o!==(o="RegisterFirstStepDash "+(e[2]||!e[2]&&e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Ae(i,"class",o),28&t[0]&&l!==(l="RegisterSecondStepDash "+(e[3]||!e[2]&&!e[3]&&e[4]?"RegisterStepDashColor":""))&&Ae(a,"class",l),16&t[0]&&p!==(p="RegisterThirdStepDash "+(e[4]?"RegisterStepDashColor":""))&&Ae(u,"class",p)},d(e){e&&Ce(n),r[17](null)}}}function Qn(){let r;return{c(){r=xe("div"),r.innerHTML="<general-player-register-form-step1></general-player-register-form-step1>",Ae(r,"class","RegisterFormStep1")},m(e,t){Ee(e,r,t)},d(e){e&&Ce(r)}}}function Kn(e){let r,n;return{c(){r=xe("div"),n=xe("general-player-register-form-step2"),i(n,"endpoint",e[0]),Ae(r,"class","RegisterFormStep2")},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&Ce(r)}}}function Jn(e){let r,n;return{c(){r=xe("div"),n=xe("general-player-register-form-step3"),i(n,"userconsentsexist",e[9]),i(n,"endpoint",e[0]),Ae(r,"class","RegisterFormStep3")},m(e,t){Ee(e,r,t),we(r,n)},p(e,t){512&t[0]&&i(n,"userconsentsexist",e[9]),1&t[0]&&i(n,"endpoint",e[0])},d(e){e&&Ce(r)}}}function ei(r){let n,i,o,s,a,l,c,u,p,d,h,f,m,g,y,b,v,w,E;return{c(){n=xe("div"),i=e("svg"),o=e("defs"),s=e("style"),a=_e(".a{fill:#16ce16;}"),l=e("path"),c=Te(),u=xe("h2"),p=_e(r[6]),d=Te(),h=xe("p"),f=_e(r[7]),m=Te(),g=xe("p"),y=_e(r[8]),b=Te(),v=xe("button"),v.textContent="Go To Login",Ae(l,"class","a"),Ae(l,"d","M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"),Ae(i,"xmlns","http://www.w3.org/2000/svg"),Ae(i,"viewBox","0 0 73.95 51"),Ae(u,"class","RegisterConfirmationTitle"),Ae(h,"class","RegisterConfirmationSubtitle"),Ae(g,"class","RegisterConfirmationNote"),Ae(v,"class","RegisterConfirmationGoToLogin"),Ae(n,"class","RegisterConfirmation")},m(e,t){Ee(e,n,t),we(n,i),we(i,o),we(o,s),we(s,a),we(i,l),we(n,c),we(n,u),we(u,p),we(n,d),we(n,h),we(h,f),we(n,m),we(n,g),we(g,y),we(n,b),we(n,v),w||(E=Se(v,"click",r[12]),w=!0)},p(e,t){64&t[0]&&C(p,e[6]),128&t[0]&&C(f,e[7]),256&t[0]&&C(y,e[8])},d(e){e&&Ce(n),w=!1,E()}}}function ti(e){let r,n=function(e){let r,n,i,o,s,a,l,c=!e[11]&&function(e){let r;return{c(){r=xe("div"),Ae(r,"class","RegisterFormImage"),m(r,"background-image","url('"+e[1]+"')")},m(e,t){Ee(e,r,t)},p(e,t){2&t[0]&&m(r,"background-image","url('"+e[1]+"')")},d(e){e&&Ce(r)}}}(e),u=(e[2]||e[3]||e[4])&&Wn(e),p=e[2]&&Qn(),d=e[3]&&Kn(e),h=e[4]&&Jn(e),f=e[5]&&ei(e);return{c(){r=xe("div"),c&&c.c(),n=Te(),i=xe("div"),u&&u.c(),o=Te(),p&&p.c(),s=Te(),d&&d.c(),a=Te(),h&&h.c(),l=Te(),f&&f.c(),Ae(i,"class","RegisterFormContainer "+(e[11]?"RegisterFormContainerMobile":"")),Ae(r,"class","RegisterFormWrapper")},m(e,t){Ee(e,r,t),c&&c.m(r,null),we(r,n),we(r,i),u&&u.m(i,null),we(i,o),p&&p.m(i,null),we(i,s),d&&d.m(i,null),we(i,a),h&&h.m(i,null),we(i,l),f&&f.m(i,null)},p(e,t){e[11]||c.p(e,t),e[2]||e[3]||e[4]?u?u.p(e,t):(u=Wn(e),u.c(),u.m(i,o)):u&&(u.d(1),u=null),e[2]?p||(p=Qn(),p.c(),p.m(i,s)):p&&(p.d(1),p=null),e[3]?d?d.p(e,t):(d=Kn(e),d.c(),d.m(i,a)):d&&(d.d(1),d=null),e[4]?h?h.p(e,t):(h=Jn(e),h.c(),h.m(i,l)):h&&(h.d(1),h=null),e[5]?f?f.p(e,t):(f=ei(e),f.c(),f.m(i,null)):f&&(f.d(1),f=null)},d(e){e&&Ce(r),c&&c.d(),u&&u.d(),p&&p.d(),d&&d.d(),h&&h.d(),f&&f.d()}}}(e);return{c(){n.c(),r=U(),this.c=be},m(e,t){n.m(e,t),Ee(e,r,t)},p(e,t){n.p(e,t)},i:be,o:be,d(e){n.d(e),e&&Ce(r)}}}function ri(e,t,i){var r=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((l=l.apply(e,s||[])).next())})};let n,o,{endpoint:s=""}=t,{cmsendpoint:a=""}=t,{imagedesktop:l=""}=t,{playerid:c=""}=t,{session:u=""}=t,{trackedanalyticsdata:p=""}=t,d=!0,h=!1,f=!1,m=!1,g,y="",b="",v="",w="PC"!=((t=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),E={},C=!1,x=!1,_=!1,T;const S=()=>{o.scrollIntoView()},A=(e,t)=>{"RegisterStepOne"===e&&(E.email=t.userEmail,E.username=t.userValue,E.password=t.userPassword,E.securityQuestion=t.securityQuestion,E.securityAnswer=t.securityAnswer),"RegisterStepTwo"===e&&(E.title=t.userTitleSelected,E.firstname=t.userFirstName,E.lastname=t.userLastName,E.birth={},E.birth.day=t.birthDaySelected,E.birth.month=t.birthMonthSelected,E.birth.year=t.birthYearSelected,E.birthPlace=t.birthPlace,E.currency=t.currencySelected),"RegisterStepThree"===e&&(E.address1=t.address,E.postalCode=t.postalCode,E.city=t.city,E.country=t.countrySelected,E.nationality=t.nationalitySelected,E.mobile={},E.mobile.prefix=t.mobilePrefixSelected,E.mobile.number=t.mobile,E.userConsents={},E.affiliateMarker=p,_&&(E.userConsents.additionalProp1=t.consentOffersSms,E.userConsents.additionalProp2=t.consentOffersEmail,E.userConsents.additionalProp3=t.consentTerms),E.token=t.token)},P=e=>{if(e.data)switch(e.data.type){case"RegisterStepOne":A("RegisterStepOne",e.data.registerStepOneData),S(),i(2,d=!1),i(3,h=!0),0==C?C=!0:window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href);break;case"RegisterStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(3,h=!1),i(4,f=!0),0==x?x=!0:window.postMessage({type:"StepThreeDataBackup",userData:E},window.location.href);break;case"RegisterStepThree":A("RegisterStepThree",e.data.registerStepThreeData),R(E);break;case"GoBackStepTwo":A("RegisterStepTwo",e.data.registerStepTwoData),S(),i(2,d=!0),i(3,h=!1),window.postMessage({type:"StepOneDataBackup",userData:E},window.location.href);break;case"GoBackStepThree":A("RegisterStepThree",e.data.registerStepThreeData),S(),i(3,h=!0),i(4,f=!1),window.postMessage({type:"StepTwoDataBackup",userData:E},window.location.href)}},R=n=>r(void 0,void 0,void 0,function*(){let e={method:"PUT",headers:{"g-recaptcha-response":n.token,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},t=yield fetch(`${s}/player/register`,e),r=yield t.json();t.ok?(i(4,f=!1),i(5,m=!0)):(T=r.error.substring(r.error.indexOf("errorMessage")+13,r.error.length),g=!0,window.postMessage({type:"ShowRegistrationError",showError:!0,error:T},window.location.href))});return L(()=>(fetch(`${s}/player/consentRequirements`).then(e=>e.json()).then(e=>{0<e.items.length?i(9,_=!0):i(9,_=!1)}),fetch(a).then(e=>e.json()).then(e=>{n=e.REGULAR_REGISTRATION[0],i(6,y=n.congrats),i(7,b=n.accCreated),i(8,v=n.accCreatedMsg)}).catch(e=>{console.error(e)}),window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P)})),e.$$set=e=>{"endpoint"in e&&i(0,s=e.endpoint),"cmsendpoint"in e&&i(13,a=e.cmsendpoint),"imagedesktop"in e&&i(1,l=e.imagedesktop),"playerid"in e&&i(14,c=e.playerid),"session"in e&&i(15,u=e.session),"trackedanalyticsdata"in e&&i(16,p=e.trackedanalyticsdata)},e.$$.update=()=>{e.$$.dirty[0]},[s,l,d,h,f,m,y,b,v,_,o,w,()=>{window.postMessage({type:"ToLogin"},window.location.href)},a,c,u,p,function(e){D[e?"unshift":"push"](()=>{o=e,i(10,o)})}]}customElements.get("general-player-register-form-step3")||customElements.define("general-player-register-form-step3",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.CountryContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.CountryContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.CountryContainer select:focus,.CountryContainer select :focus-within,.CountryContainer select :focus-visible,.CountryContainer select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.MobileWrapper .MobilePrefixSelected:focus,.MobileWrapper .MobilePrefixSelected :focus-within,.MobileWrapper .MobilePrefixSelected :focus-visible,.MobileWrapper .MobilePrefixSelected :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:\"\";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterError{color:#FD2839;font-size:16px;line-height:19.2px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Yn,Xn,r,{userconsentexists:0,endpoint:32},[-1,-1]),e&&(e.target&&Ee(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["userconsentexists","endpoint"]}get userconsentexists(){return this.$$.ctx[0]}set userconsentexists(e){this.$set({userconsentexists:e}),w()}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$set({endpoint:e}),w()}});class ni extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormWrapper{background:#F9F8F8;display:inline-flex;width:100%}.RegisterFormImage{background-position:center;background-size:cover;background-repeat:no-repeat;flex:1 1 100%}.RegisterFormContainer{flex:1 1 100%;padding:25.008px;height:404px;overflow-y:auto;scrollbar-color:#cfcfcf #f1f1f1;scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:10px;height:auto;overflow-y:initial}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:#f1f1f1}.RegisterFormContainer::-webkit-scrollbar-thumb{background:#cfcfcf}.RegisterSteps{display:flex;gap:10px;padding:10px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:4px;background-color:#D1D1D1}.RegisterStepDashColor{background-color:#D0046C}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:#16CE16;font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:#58586B;font-size:16px;line-height:19.2px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:#000000;font-size:17.6px;line-height:22.4px}.RegisterConfirmationGoToLogin{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}</style>",c(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ri,ti,r,{endpoint:0,cmsendpoint:13,imagedesktop:1,playerid:14,session:15,trackedanalyticsdata:16},[-1,-1]),e&&(e.target&&Ee(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["endpoint","cmsendpoint","imagedesktop","playerid","session","trackedanalyticsdata"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),w()}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(e){this.$set({cmsendpoint:e}),w()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$set({imagedesktop:e}),w()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$set({playerid:e}),w()}get session(){return this.$$.ctx[15]}set session(e){this.$set({session:e}),w()}get trackedanalyticsdata(){return this.$$.ctx[16]}set trackedanalyticsdata(e){this.$set({trackedanalyticsdata:e}),w()}}return customElements.get("general-player-register-form")||customElements.define("general-player-register-form",ni),ni});
|
|
2
2
|
//# sourceMappingURL=general-player-register-form.js.map
|