@everymatrix/casino-hamburger-menu 0.0.206 → 0.0.211
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 m(){}const y=e=>e;function c(e){return e()}function h(){return Object.create(null)}function g(e){e.forEach(c)}function b(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}var e="undefined"!=typeof window;let E=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):m;const _=new Set;function w(t){_.forEach(e=>{e.c(t)||(_.delete(e),e.f())}),0!==_.size&&v(w)}function T(e,t){e.appendChild(t)}function A(e,t,r){e.insertBefore(t,r||null)}function S(e){e.parentNode.removeChild(e)}function P(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function O(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function M(){return t(" ")}function L(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function C(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function I(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}const N=new Set;let R,x=0;function U(e,t,r,n,o,i,s,a=0){var u=16.666/n;let l="{\n";for(let e=0;e<=1;e+=u){const n=t+(r-t)*i(e);l+=100*e+`%{${s(n,1-n)}}\n`}const c=l+`100% {${s(r,1-r)}}\n}`,h=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(c)}_${a}`,f=e.ownerDocument;N.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(O("style")).sheet),d=f.__svelte_rules||(f.__svelte_rules={});d[h]||(d[h]=!0,p.insertRule(`@keyframes ${h} ${c}`,p.cssRules.length));a=e.style.animation||"";return e.style.animation=`${a?`${a}, `:""}${h} ${n}ms linear ${o}ms 1 both`,x+=1,h}function f(e){R=e}const p=[],D=[],n=[],o=[],d=Promise.resolve();let k=!1;function G(e){n.push(e)}let i=!1;const s=new Set;function F(){if(!i){i=!0;do{for(let e=0;e<p.length;e+=1){var t=p[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),g(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G))}}(t.$$)}for(f(null),p.length=0;D.length;)D.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,p.length);for(;o.length;)o.pop()();k=!1,i=!1,s.clear()}}let j;function $(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${r}`))}const a=new Set;let H;function B(e,t){e&&e.i&&(a.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(a.has(e)||(a.add(e),H.c.push(()=>{a.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const V={duration:0};function X(a,e,t,r){let u=e(a,t),l=r?0:1,c=null,h=null,f=null;function p(){f&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),x-=o,x||v(()=>{x||(N.forEach(e=>{const t=e.__svelte_stylesheet;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.__svelte_rules={}}),N.clear())}))}(a,f)}function d(e,t){var r=e.b-l;return t*=Math.abs(r),{a:l,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=y,tick:o=m,css:i}=u||V,s={start:E()+t,b:e};e||(s.group=H,H.r+=1),c||h?h=s:(i&&(p(),f=U(a,l,e,r,t,n,i)),e&&o(0,1),c=d(s,r),G(()=>$(a,e,"start")),function(t){let r;0===_.size&&v(w),new Promise(e=>{_.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(c=d(h,r),h=null,$(a,c.b,"start"),i&&(p(),f=U(a,l,c.b,c.duration,0,n,u.css))),c&&(e>=c.end?(o(l=c.b,1-l),$(a,c.b,"end"),h||(c.b?p():--c.group.r||g(c.group.c)),c=null):e>=c.start&&(e=e-c.start,l=c.a+c.d*n(e/c.duration),o(l,1-l))),!(!c&&!h)}))}return{run(e){b(u)?(j||(j=Promise.resolve(),j.then(()=>{j=null})),j.then(()=>{u=u(),n(e)})):n(e)},end(){p(),c=h=null}}}function l(n,e,t,r,o,i,s=[-1]){var a=R;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&(r=e,-1===(e=n).$$.dirty[0]&&(p.push(e),k||(k=!0,d.then(F)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),l=!0,g(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const m=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(m),m.forEach(S)}else u.fragment&&u.fragment.c();e.intro&&B(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||G(()=>{var e=i.map(c).filter(b);s?s.push(...e):g(e),t.$$.on_mount=[]}),a.forEach(G)}(n,e.target,e.anchor,e.customElement),F()}f(a)}let W;function z(e,{delay:t=0,duration:r=400,easing:n=y}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(b);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){g(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(g(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=m}$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 q,Y,K="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==K&&K,Z="URLSearchParams"in K,Q="Symbol"in K&&"iterator"in Symbol,J="FileReader"in K&&"Blob"in K&&function(){try{return new Blob,!0}catch(e){return!1}}(),ee="FormData"in K,te="ArrayBuffer"in K;function re(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 ne(e){return e="string"!=typeof e?String(e):e}function oe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Q&&(e[Symbol.iterator]=function(){return e}),e}function ie(t){this.map={},t instanceof ie?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 se(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ae(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function ue(e){var t=new FileReader,r=ae(t);return t.readAsArrayBuffer(e),r}function le(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ce(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:J&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ee&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Z&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():te&&J&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=le(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):te&&(ArrayBuffer.prototype.isPrototypeOf(e)||Y(e))?this._bodyArrayBuffer=le(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):Z&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},J&&(this.blob=function(){var e=se(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?se(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(ue)}),this.text=function(){var e,t,r=se(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=ae(t),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)},ee&&(this.formData=function(){return this.text().then(pe)}),this.json=function(){return this.text().then(JSON.parse)},this}te&&(q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&-1<q.indexOf(Object.prototype.toString.call(e))}),ie.prototype.append=function(e,t){e=re(e),t=ne(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ie.prototype.delete=function(e){delete this.map[re(e)]},ie.prototype.get=function(e){return e=re(e),this.has(e)?this.map[e]:null},ie.prototype.has=function(e){return this.map.hasOwnProperty(re(e))},ie.prototype.set=function(e,t){this.map[re(e)]=ne(t)},ie.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ie.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),oe(r)},ie.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),oe(t)},ie.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),oe(r)},Q&&(ie.prototype[Symbol.iterator]=ie.prototype.entries);var he=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function fe(e,t){if(!(this instanceof fe))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 fe){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ie(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 ie(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<he.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 pe(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 de(e,t){if(!(this instanceof de))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 ie(t.headers),this.url=t.url||"",this._initBody(e)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})},ce.call(fe.prototype),ce.call(de.prototype),de.prototype.clone=function(){return new de(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ie(this.headers),url:this.url})},de.error=function(){var e=new de(null,{status:0,statusText:""});return e.type="error",e};var me=[301,302,303,307,308];de.redirect=function(e,t){if(-1===me.indexOf(t))throw new RangeError("Invalid status code");return new de(null,{status:t,headers:{location:e}})};var ye=K.DOMException;try{new ye}catch(m){(ye=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ye.prototype.constructor=ye}function ge(n,s){return new Promise(function(o,e){var t=new fe(n,s);if(t.signal&&t.signal.aborted)return e(new ye("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new ie,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 i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new de(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new ye("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&K.location.href?K.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(J?i.responseType="blob":te&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof ie?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,ne(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}ge.polyfill=!0,K.fetch||(K.fetch=ge,K.Headers=ie,K.Request=fe,K.Response=de),self.fetch.bind(self);var be=function(e,t){return(be=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 Ee(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}be(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ve(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 _e(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function we(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Te(e){return"function"==typeof e}function Ae(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 Se=Ae(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 Pe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Oe=(Le.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ve(i),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 i.remove(this);i=this.initialTeardown;if(Te(i))try{i()}catch(e){o=e instanceof Se?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=ve(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Ie(c)}catch(e){o=null!=o?o:[],e instanceof Se?o=we(we([],_e(o)),_e(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Se(o)}},Le.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ie(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)&&Pe(t,e)},Le.prototype.remove=function(e){var t=this._teardowns;t&&Pe(t,e),e instanceof Le&&e._removeParent(this)},Le.EMPTY=((Qt=new Le).closed=!0,Qt),Le),Me=Oe.EMPTY;function Le(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function Ce(e){return e instanceof Oe||e&&"closed"in e&&Te(e.remove)&&Te(e.add)&&Te(e.unsubscribe)}function Ie(e){Te(e)?e():e.unsubscribe()}var Ne=void 0,Re=!1,xe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,we([],_e(e)))};function Ue(){}function De(e){e()}var ke,Ge,Fe=(Ee(He,Ge=Oe),He.create=function(e,t,r){return new je(e,t,r)},He.prototype.next=function(e){this.isStopped||this._next(e)},He.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},He.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},He.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ge.prototype.unsubscribe.call(this),this.destination=null)},He.prototype._next=function(e){this.destination.next(e)},He.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},He.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},He),je=(Ee($e,ke=Fe),$e);function $e(e,t,r){var n,o,i=ke.call(this)||this;return Te(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&Re?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Be(o):Ue,error:Be(null!=t?t:Ve),complete:r?Be(r):Ue},i}function He(e){var t=Ge.call(this)||this;return t.isStopped=!1,e?Ce(t.destination=e)&&e.add(t):t.destination=Xe,t}function Be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,we([],_e(e)))}catch(e){t=e,xe(function(){throw t})}}}function Ve(e){throw e}var Xe={closed:!0,next:Ue,error:Ve,complete:Ue},We="function"==typeof Symbol&&Symbol.observable||"@@observable";function ze(e){return e}var qe=(Ye.prototype.lift=function(e){var t=new Ye;return t.source=this,t.operator=e,t},Ye.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Fe||n&&Te(n.next)&&Te(n.error)&&Te(n.complete)&&Ce(n)?e:new je(e,t,r);return De(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Ye.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ye.prototype.forEach=function(n,e){var o=this;return new(e=Ke(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ye.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ye.prototype[We]=function(){return this},Ye.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?ze:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ye.prototype.toPromise=function(e){var n=this;return new(e=Ke(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ye.create=function(e){return new Ye(e)},Ye);function Ye(e){e&&(this._subscribe=e)}function Ke(e){return null!==(e=null!=e?e:Ne)&&void 0!==e?e:Promise}var Ze,Qe,Je,et=Ae(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tt=(Ee(at,Je=qe),at.prototype.lift=function(e){var t=new rt(this,this);return t.operator=e,t},at.prototype._throwIfClosed=function(){if(this.closed)throw new et},at.prototype.next=function(i){var s=this;De(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=ve(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},at.prototype.error=function(t){var r=this;De(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)}})},at.prototype.complete=function(){var t=this;De(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},at.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(at.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),at.prototype._trySubscribe=function(e){return this._throwIfClosed(),Je.prototype._trySubscribe.call(this,e)},at.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},at.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?Me:(n.push(e),new Oe(function(){return Pe(n,e)}))},at.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},at.prototype.asObservable=function(){var e=new qe;return e.source=this,e},at.create=function(e,t){return new rt(e,t)},at),rt=(Ee(st,Qe=tt),st.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)},st.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)},st.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)},st.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:Me},st),nt={now:function(){return(nt.delegate||Date).now()},delegate:void 0},ot=(Ee(it,Ze=tt),it.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Ze.prototype.next.call(this,e)},it.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},it.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},it);function it(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=nt);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 st(e,t){var r=Qe.call(this)||this;return r.destination=e,r.source=t,r}function at(){var e=Je.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let ut=[],lt={};const ct=[];function ht(n,o=m){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!ct.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ct.push(t,n)}if(e){for(let e=0;e<ct.length;e+=2)ct[e][0](ct[e+1]);ct.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=m){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||m),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function ft(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return ht(t,t=>{let n=!1;const o=[];let i=0,r=m;const s=()=>{var e;i||(r(),e=a(u?o[0]:o,t),c?t(e):r=b(e)?e:m)},e=l.map((r,t)=>function(e){if(null==r)return m;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{o[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}]));return n=!0,s(),function(){g(e),r()}}).subscribe,1}var pt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===dt));var t},dt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function mt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?vt(Array.isArray(e)?[]:{},e,t):e}function yt(e,t,r){return e.concat(t).map(function(e){return mt(e,r)})}function gt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function bt(e,t){try{return t in e}catch(e){return!1}}function Et(n,o,i){var s={};return i.isMergeableObject(n)&>(n).forEach(function(e){s[e]=mt(n[e],i)}),gt(o).forEach(function(t){var e,r;(!bt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(bt(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return vt;var e=i.customMerge(t);return"function"==typeof e?e:vt}()(n[t],o[t],i):s[t]=mt(o[t],i))}),s}function vt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||yt,r.isMergeableObject=r.isMergeableObject||pt,r.cloneUnlessOtherwiseSpecified=mt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Et(e,t,r):mt(t,r)}vt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return vt(e,t,r)},{})};var _t=vt,wt=function(e,t){return(wt=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 Tt(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}wt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var At,St,Pt,Ot=function(){return(Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Mt(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Lt(e){return e.type===St.literal}function Ct(e){return e.type===St.number}function It(e){return e.type===St.date}function Nt(e){return e.type===St.time}function Rt(e){return e.type===St.select}function xt(e){return e.type===St.plural}function Ut(e){return e.type===St.tag}function Dt(e){return e&&"object"==typeof e&&e.type===Pt.number}function kt(e){return e&&"object"==typeof e&&e.type===Pt.dateTime}(Jt=At=At||{})[Jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Jt[Jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Jt[Jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Jt[Jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Jt[Jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Jt[Jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Jt[Jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Jt[Jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Jt[Jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Jt[Jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Jt[Jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Jt[Jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Jt[Jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Jt[Jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Jt[Jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Jt[Jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Jt[Jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Jt[Jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Jt[Jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Jt[Jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Jt[Jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Jt[Jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Jt[Jt.INVALID_TAG=23]="INVALID_TAG",Jt[Jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Jt[Jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Jt[Jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(er=St=St||{})[er.literal=0]="literal",er[er.argument=1]="argument",er[er.number=2]="number",er[er.date=3]="date",er[er.time=4]="time",er[er.select=5]="select",er[er.plural=6]="plural",er[er.pound=7]="pound",er[er.tag=8]="tag",(tr=Pt=Pt||{})[tr.number=0]="number",tr[tr.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 Ft,jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,$t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ht=/^(@+)?(\+|#+)?$/g,Bt=/(\*)(0+)|(#+)(0+)|(0+)/g,Vt=/^(0+)$/;function Xt(e){var n={};return e.replace(Ht,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 Wt(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 zt(e){return Wt(e)||{}}function qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=Ot(Ot(Ot({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return Ot(Ot({},e),zt(t))},{}));continue;case"engineering":s=Ot(Ot(Ot({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return Ot(Ot({},e),zt(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(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Bt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if($t.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace($t,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=Ot(Ot({},s),Xt(o.options[0])))}else Ht.test(o.stem)?s=Ot(Ot({},s),Xt(o.stem)):((n=Wt(o.stem))&&(s=Ot(Ot({},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)),!Vt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=Ot(Ot({},s),n)))}return s}var Yt=new RegExp("^"+e.source+"*"),Kt=new RegExp(e.source+"*$");function Zt(e,t){return{start:e,end:t}}var Qt=!!String.prototype.startsWith,We=!!String.fromCodePoint,tt=!!Object.fromEntries,Jt=!!String.prototype.codePointAt,er=!!String.prototype.trimStart,tr=!!String.prototype.trimEnd,rr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(Ft=hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ft?void 0:Ft[0])}catch(m){e=!1}var nr,or,ir=Qt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},sr=We?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))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},ar=tt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},ur=Jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},lr=er?function(e){return e.trimStart()}:function(e){return e.replace(Yt,"")},cr=tr?function(e){return e.trimEnd()}:function(e){return e.replace(Kt,"")};function hr(e,t){return new RegExp(e,t)}or=e?(nr=hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return nr.lastIndex=t,null!==(e=nr.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=ur(e,t);if(void 0===o||mr(o)||(33<=(r=o)&&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(o),t+=65536<=o?2:1}return sr.apply(void 0,n)};var fr=(pr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},pr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(At.UNMATCHED_CLOSING_TAG,Zt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&dr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:St.pound,location:Zt(i,this.clonePosition())})}}}return{val:n,err:null}},pr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:St.literal,value:"<"+n+"/>",location:Zt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dr(this.char()))return this.error(At.INVALID_TAG,Zt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(At.UNMATCHED_CLOSING_TAG,Zt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:St.tag,value:n,children:e,location:Zt(r,this.clonePosition())},err:null}:this.error(At.INVALID_TAG,Zt(t,this.clonePosition())))}return this.error(At.UNCLOSED_TAG,Zt(r,this.clonePosition()))}return this.error(At.INVALID_TAG,Zt(r,this.clonePosition()))},pr.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())},pr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Zt(r,this.clonePosition());return{val:{type:St.literal,value:n,location:r},err:null}},pr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(dr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},pr.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 sr.apply(void 0,t)},pr.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(),sr(r))},pr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(At.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(At.EMPTY_ARGUMENT,Zt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(At.MALFORMED_ARGUMENT,Zt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(At.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:St.argument,value:n,location:Zt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(At.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(At.MALFORMED_ARGUMENT,Zt(r,this.clonePosition()))}},pr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=or(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Zt(e,this.clonePosition())}},pr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(At.EXPECT_ARGUMENT_TYPE,Zt(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=cr(f.val)).length)return this.error(At.EXPECT_ARGUMENT_STYLE,Zt(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Zt(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Zt(n,this.clonePosition());if(u&&ir(null==u?void 0:u.style,"::",0)){l=lr(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:St.number,value:r,location:c,style:f.val},err:null};if(0===l.length)return this.error(At.EXPECT_DATE_TIME_SKELETON,c);var h={type:Pt.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},l.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?St.date:St.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?St.number:"date"===s?St.date:St.time,value:r,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(At.EXPECT_SELECT_ARGUMENT_OPTIONS,Zt(u,Ot({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(At.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Zt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(At.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,At.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Zt(n,this.clonePosition());return"select"===s?{val:{type:St.select,value:r,options:ar(c.val),location:p},err:null}:{val:{type:St.plural,value:r,options:ar(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(At.INVALID_ARGUMENT_TYPE,Zt(i,a))}},pr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(At.EXPECT_ARGUMENT_CLOSING_BRACE,Zt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},pr.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(At.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Zt(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}},pr.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(jt).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(At.INVALID_NUMBER_SKELETON,t)}return{val:{type:Pt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?qt(r):{}},err:null}},pr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(At.EXPECT_PLURAL_ARGUMENT_SELECTOR,At.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Zt(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?At.DUPLICATE_SELECT_ARGUMENT_SELECTOR:At.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?At.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:At.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Zt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;i.push([a,{value:c.val,location:Zt(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?At.EXPECT_SELECT_ARGUMENT_SELECTOR:At.EXPECT_PLURAL_ARGUMENT_SELECTOR,Zt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(At.MISSING_OTHER_CLAUSE,Zt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},pr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Zt(n,this.clonePosition());return o?rr(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},pr.prototype.offset=function(){return this.position.offset},pr.prototype.isEOF=function(){return this.offset()===this.message.length},pr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},pr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ur(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},pr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},pr.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))},pr.prototype.bumpIf=function(e){if(ir(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},pr.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)},pr.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}},pr.prototype.bumpSpace=function(){for(;!this.isEOF()&&mr(this.char());)this.bump()},pr.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},pr);function pr(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 dr(e){return 97<=e&&e<=122||65<=e&&e<=90}function mr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function yr(e,t){t=Ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new fr(e,t).parse();if(r.err){e=SyntaxError(At[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,Rt(e)||xt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ct(e)&&Dt(e.style)||(It(e)||Nt(e))&&kt(e.style)?delete e.style.location:Ut(e)&&r(e.children)})}(r.val),r.val}function gr(e,t){var r=t&&t.cache?t.cache:Ar,n=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:function(e,t){return vr(e,this,1===e.length?br:Er,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function br(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function Er(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function vr(e,t,r,n,o){return r.bind(t,e,n,o)}var _r=function(){return JSON.stringify(arguments)};function wr(){this.cache=Object.create(null)}wr.prototype.has=function(e){return e in this.cache},wr.prototype.get=function(e){return this.cache[e]},wr.prototype.set=function(e,t){this.cache[e]=t};var Tr,Ar={create:function(){return new wr}},Sr={variadic:function(e,t){return vr(e,this,Er,t.cache.create(),t.serializer)},monadic:function(e,t){return vr(e,this,br,t.cache.create(),t.serializer)}};(e=Tr=Tr||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Pr,Or,Mr,Lr,Cr,Ir=(Tt(Gr,Cr=Error),Gr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Gr),Nr=(Tt(kr,Lr=Ir),kr),Rr=(Tt(Dr,Mr=Ir),Dr),xr=(Tt(Ur,Or=Ir),Ur);function Ur(e,t){return Or.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Tr.MISSING_VALUE,t)||this}function Dr(e,t,r){return Mr.call(this,'Value for "'+e+'" must be of type '+t,Tr.INVALID_VALUE,r)||this}function kr(e,t,r,n){return Lr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Tr.INVALID_VALUE,n)||this}function Gr(e,t,r){e=Cr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Fr(e,t,r,n,o,i,s){if(1===e.length&&Lt(e[0]))return[{type:Pr.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Lt(c))a.push({type:Pr.literal,value:c.value});else if(c.type===St.pound)"number"==typeof i&&a.push({type:Pr.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new xr(h,s);var f=o[h];if(c.type===St.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Pr.literal:Pr.object,value:f});else if(It(c)){var p="string"==typeof c.style?n.date[c.style]:kt(c.style)?c.style.parsedOptions:void 0;a.push({type:Pr.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Nt(c))p="string"==typeof c.style?n.time[c.style]:kt(c.style)?c.style.parsedOptions:void 0,a.push({type:Pr.literal,value:r.getDateTimeFormat(t,p).format(f)});else if(Ct(c))(p="string"==typeof c.style?n.number[c.style]:Dt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Pr.literal,value:r.getNumberFormat(t,p).format(f)});else{if(Ut(c)){var d=c.children,m=c.value,h=o[m];if("function"!=typeof h)throw new Rr(m,"function",s);d=h(Fr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?Pr.literal:Pr.object,value:e}}))}if(Rt(c)){if(!(y=c.options[f]||c.options.other))throw new Nr(c.value,f,Object.keys(c.options),s);a.push.apply(a,Fr(y.value,t,r,n,o))}else if(xt(c)){if(!(y=c.options["="+f])){if(!Intl.PluralRules)throw new Ir('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tr.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),y=c.options[d]||c.options.other}if(!y)throw new Nr(c.value,f,Object.keys(c.options),s);a.push.apply(a,Fr(y.value,t,r,n,o,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Pr.literal&&t.type===Pr.literal?r.value+=t.value:e.push(t),e},[])}function jr(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}}}}}(e=Pr=Pr||{})[e.literal=0]="literal",e[e.object=1]="object";var $r=(Object.defineProperty(Hr,"defaultLocale",{get:function(){return Hr.memoizedDefaultLocale||(Hr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Hr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Hr.memoizedDefaultLocale=null,Hr.__parse=yr,Hr.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"}}},Hr);function Hr(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Hr.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===Pr.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 Fr(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,!Hr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Hr.__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=(o=Hr.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?Ot(Ot(Ot({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Ot(Ot({},r[t]),n[t]||{}),e},{})):r),e},Ot({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Mt([void 0],t)))},{cache:jr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Sr.variadic}),getDateTimeFormat:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Mt([void 0],t)))},{cache:jr(n.dateTime),strategy:Sr.variadic}),getPluralRules:gr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Mt([void 0],t)))},{cache:jr(n.pluralRules),strategy:Sr.variadic})}}const Br={},Vr=(t,r)=>{if(null!=r){if(r in Br&&t in Br[r])return Br[r][t];var n,o,i=sn(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,zr(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 Xr[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in Br||(Br[o]={}),n in Br[o]||(Br[o][n]=s),s)}}};let Xr;const Wr=ht({});function zr(e){return e in Xr}ft([Wr],([e])=>Object.keys(e)),Wr.subscribe(e=>Xr=e);const qr={};function Yr(e){return qr[e]}function Kr(e){return sn(e).some(e=>{return null===(e=Yr(e))||void 0===e?void 0:e.size})}function Zr(t,e){return Promise.all(e.map(e=>(function(e,t){qr[e].delete(t),0===qr[e].size&&delete qr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Br[t],Wr.update(e=>(e[t]=_t.all([e[t]||{},...r]),e))}(t,...e))}const Qr={};function Jr(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const en={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 tn=ht(!1);let rn;const nn=ht(null);function on(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function sn(e,t=en.fallbackLocale){e=on(e);return t?[...new Set([...e,...on(t)])]:e}nn.subscribe(e=>{rn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const an=nn.set;nn.set=t=>{if(function(e){if(null!=e){var t=sn(e);for(let e=0;e<t.length;e++){var r=t[e];if(zr(r))return r}}}(t)&&Kr(t)){var{loadingDelay:r}=en;let e;return"undefined"!=typeof window&&null!=rn&&r?e=window.setTimeout(()=>tn.set(!0),r):tn.set(!0),function e(t){if(!Kr(t))return t in Qr?Qr[t]:void 0;const r=sn(t).map(e=>{var t=Yr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Qr[t]=Promise.all(r.map(([e,t])=>Zr(e,t))).then(()=>Kr(t)?e(t):void delete Qr[t]),Qr[t]}(t).then(()=>{an(t)}).finally(()=>{clearTimeout(e),tn.set(!1)})}return an(t)},nn.update=e=>an(e(rn));const un=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},ln=(e,t)=>{var{formats:r}=en;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cn=un(e=>{var{locale:t,format:r}=e,e=Jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=ln("number",r)),new Intl.NumberFormat(t,e)}),hn=un(e=>{var{locale:t,format:r}=e,e=Jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=ln("date",r):0===Object.keys(e).length&&(e=ln("date","short")),new Intl.DateTimeFormat(t,e)}),fn=un(e=>{var{locale:t,format:r}=e,e=Jr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=ln("time",r):0===Object.keys(e).length&&(e=ln("time","short")),new Intl.DateTimeFormat(t,e)}),pn=un((e,t=rn)=>new $r(e,t,en.formats,{ignoreTag:en.ignoreTag}));function dn(e,t,r){const n=e.slice();return n[17]=t[r],n}function mn(e,t,r){const n=e.slice();return n[20]=t[r],n}function yn(r){let n,o,i,s,a,u,l,c,h,f,p,d,t,m,y,g,b=r[1],E=[];for(let e=0;e<b.length;e+=1)E[e]=gn(mn(r,b,e));let v=r[3],_=[];for(let e=0;e<v.length;e+=1)_[e]=bn(dn(r,v,e));return{c(){n=O("div"),o=O("span"),i=O("slot"),i.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',a=M(),u=O("div"),l=O("ul");for(let e=0;e<E.length;e+=1)E[e].c();h=M(),f=O("ul");for(let e=0;e<_.length;e+=1)_[e].c();C(i,"name","close"),C(o,"class",s=r[4]?"ModalCloseBtn":""),C(o,"role","button"),C(l,"class",c="HamburgerPrimaryMenu "+(r[5]?"HamburgerPrimaryMenuFixed":"")),C(f,"class",p="HamburgerSecondaryMenu "+(r[5]?"HamburgerSecondaryMenuFixed":"")),C(u,"class",d="HamburgerModalContainer "+(r[4]?"ActiveHamburgerMenu":"")),C(n,"class","HamburgerModalWindow")},m(e,t){A(e,n,t),T(n,o),T(o,i),T(n,a),T(n,u),T(u,l);for(let e=0;e<E.length;e+=1)E[e].m(l,null);T(u,h),T(u,f);for(let e=0;e<_.length;e+=1)_[e].m(f,null);r[12](n),m=!0,y||(g=L(o,"click",r[7]),y=!0)},p(e,t){if(r=e,(!m||16&t&&s!==(s=r[4]?"ModalCloseBtn":""))&&C(o,"class",s),262&t){let e;for(b=r[1],e=0;e<b.length;e+=1){const o=mn(r,b,e);E[e]?E[e].p(o,t):(E[e]=gn(o),E[e].c(),E[e].m(l,null))}for(;e<E.length;e+=1)E[e].d(1);E.length=b.length}if((!m||32&t&&c!==(c="HamburgerPrimaryMenu "+(r[5]?"HamburgerPrimaryMenuFixed":"")))&&C(l,"class",c),8&t){let e;for(v=r[3],e=0;e<v.length;e+=1){const o=dn(r,v,e);_[e]?_[e].p(o,t):(_[e]=bn(o),_[e].c(),_[e].m(f,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=v.length}(!m||32&t&&p!==(p="HamburgerSecondaryMenu "+(r[5]?"HamburgerSecondaryMenuFixed":"")))&&C(f,"class",p),(!m||16&t&&d!==(d="HamburgerModalContainer "+(r[4]?"ActiveHamburgerMenu":"")))&&C(u,"class",d)},i(e){m||(G(()=>{t=t||X(n,z,{transitionDuration:vn},!0),t.run(1)}),m=!0)},o(e){t=t||X(n,z,{transitionDuration:vn},!1),t.run(0),m=!1},d(e){e&&S(n),P(E,e),P(_,e),r[12](null),e&&t&&t.end(),y=!1,g()}}}function gn(r){let n,o,i,s,a,u,l,c,h,f,p=r[20].label+"";function d(){return r[11](r[20])}return{c(){n=O("li"),o=O("div"),i=O("img"),a=M(),u=t(p),l=M(),i.src!==(s=r[20].img)&&C(i,"src",s),C(i,"alt","menu icon"),C(o,"class","HamburgerItemContainer"),C(n,"class",c=r[2]===r[20].id?"ActiveItem":"")},m(e,t){A(e,n,t),T(n,o),T(o,i),T(o,a),T(o,u),T(n,l),h||(f=L(n,"click",d),h=!0)},p(e,t){r=e,2&t&&i.src!==(s=r[20].img)&&C(i,"src",s),2&t&&p!==(p=r[20].label+"")&&I(u,p),6&t&&c!==(c=r[2]===r[20].id?"ActiveItem":"")&&C(n,"class",c)},d(e){e&&S(n),h=!1,f()}}}function bn(e){let r,n,o,i,s,a,u,l,c=e[17].label+"";return{c(){r=O("li"),n=O("a"),o=O("img"),s=M(),a=t(c),l=M(),o.src!==(i=e[17].img)&&C(o,"src",i),C(o,"alt","menu icon"),C(n,"href",u=e[17].path)},m(e,t){A(e,r,t),T(r,n),T(n,o),T(n,s),T(n,a),T(r,l)},p(e,t){8&t&&o.src!==(i=e[17].img)&&C(o,"src",i),8&t&&c!==(c=e[17].label+"")&&I(a,c),8&t&&u!==(u=e[17].path)&&C(n,"href",u)},d(e){e&&S(r)}}}function En(e){let r,n,o=!0===e[6]&&yn(e);return{c(){o&&o.c(),r=t(""),this.c=m},m(e,t){o&&o.m(e,t),A(e,r,t),n=!0},p(e,[t]){!0===e[6]?o?(o.p(e,t),64&t&&B(o,1)):(o=yn(e),o.c(),B(o,1),o.m(r.parentNode,r)):o&&(H={r:0,c:[],p:H},u(o,1,1,()=>{o=null}),H.r||g(H.c),H=H.p)},i(e){n||(B(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&S(r)}}}ft([nn,Wr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=rn,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Vr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else en.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${sn(n).join('", "')}".${Kr(rn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=pn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),ft([nn],()=>(e,t)=>((e={})=>{var{locale:t=rn}=e,e=Jr(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),ft([nn],()=>(e,t)=>((e={})=>{var{locale:t=rn}=e,e=Jr(e,["locale"]);return hn(Object.assign({locale:t},e))})(t).format(e)),ft([nn],()=>(e,t)=>((e={})=>{var{locale:t=rn}=e,e=Jr(e,["locale"]);return cn(Object.assign({locale:t},e))})(t).format(e)),ft([nn,Wr],()=>(e,t=rn)=>Vr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==ut.indexOf(e)&&(t=new ot(t),lt[e]=t,ut.push(e)),lt[e]}};let vn=350;function _n(e,t,n){let r,{language:o=""}=t,{menuitemsurl:i=""}=t,s=window.navigator.userAgent,a=[],u="",l=[],c=!1,h=!1,f=!1;const p=e=>{"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(6,f=!0),setTimeout(()=>{n(4,c=!0)},500),setTimeout(()=>{n(5,h=!0)},1500),m(i))},d=(e,t)=>{n(2,u=e),n(3,l=t||[])},m=e=>new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{n(1,a=e),a.length&&d(a[0].id,a[0].children),t(e)},e=>{console.error(e),r(e)})});return t=()=>(window.addEventListener("message",p,!1),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(s),()=>{window.removeEventListener("message",p)}),function(){if(!R)throw new Error("Function called outside component initialization");return R}().$$.on_mount.push(t),e.$$set=e=>{"language"in e&&n(9,o=e.language),"menuitemsurl"in e&&n(10,i=e.menuitemsurl)},[void 0,a,u,l,c,h,f,()=>{n(6,f=!1),n(4,c=!1),n(5,h=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},d,o,i,e=>d(e.id,e.children),function(e){D[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}class wn extends W{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'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:10;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:#000;width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .6s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:0;right:0;margin:10px;border-radius:50%;color:#fff;background:rgba(255, 255, 255, 0.1);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:24px;height:24px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:#fff}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:#07072A;white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid #D0046C;width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:#D0046C}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:#fff}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid #707070}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:#D0046C}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},_n,En,r,{language:9,menuitemsurl:10}),e&&(e.target&&A(e.target,this,e.anchor),e.props&&(this.$set(e.props),F()))}static get observedAttributes(){return["language","menuitemsurl"]}get language(){return this.$$.ctx[9]}set language(e){this.$set({language:e}),F()}get menuitemsurl(){return this.$$.ctx[10]}set menuitemsurl(e){this.$set({menuitemsurl:e}),F()}}return customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",wn),wn});
|
|
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 m(){}const y=e=>e;function c(e){return e()}function h(){return Object.create(null)}function M(e){e.forEach(c)}function g(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}var e="undefined"!=typeof window;let b=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):m;const E=new Set;function _(t){E.forEach(e=>{e.c(t)||(E.delete(e),e.f())}),0!==E.size&&v(_)}function C(e,t){e.appendChild(t)}function I(e,t,r){e.insertBefore(t,r||null)}function N(e){e.parentNode.removeChild(e)}function R(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function x(e){return document.createElement(e)}function w(e){return document.createTextNode(e)}function U(){return w(" ")}function D(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function k(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function T(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function G(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}}const A=new Set;let S,P=0;function L(e,t,r,n,o,i,s,a=0){var u=16.666/n;let l="{\n";for(let e=0;e<=1;e+=u){const n=t+(r-t)*i(e);l+=100*e+`%{${s(n,1-n)}}\n`}const c=l+`100% {${s(r,1-r)}}\n}`,h=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(c)}_${a}`,f=e.ownerDocument;A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild(x("style")).sheet),d=f.__svelte_rules||(f.__svelte_rules={});d[h]||(d[h]=!0,p.insertRule(`@keyframes ${h} ${c}`,p.cssRules.length));a=e.style.animation||"";return e.style.animation=`${a?`${a}, `:""}${h} ${n}ms linear ${o}ms 1 both`,P+=1,h}function f(e){S=e}const p=[],O=[],n=[],o=[],d=Promise.resolve();let F=!1;function j(e){n.push(e)}let i=!1;const s=new Set;function $(){if(!i){i=!0;do{for(let e=0;e<p.length;e+=1){var t=p[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),M(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(j))}}(t.$$)}for(f(null),p.length=0;O.length;)O.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,p.length);for(;o.length;)o.pop()();F=!1,i=!1,s.clear()}}let H;function B(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${r}`))}const a=new Set;let V;function X(e,t){e&&e.i&&(a.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(a.has(e)||(a.add(e),V.c.push(()=>{a.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const W={duration:0};function z(a,e,t,r){let u=e(a,t),l=r?0:1,c=null,h=null,f=null;function p(){f&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),P-=o,P||v(()=>{P||(A.forEach(e=>{const t=e.__svelte_stylesheet;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.__svelte_rules={}}),A.clear())}))}(a,f)}function d(e,t){var r=e.b-l;return t*=Math.abs(r),{a:l,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=y,tick:o=m,css:i}=u||W,s={start:b()+t,b:e};e||(s.group=V,V.r+=1),c||h?h=s:(i&&(p(),f=L(a,l,e,r,t,n,i)),e&&o(0,1),c=d(s,r),j(()=>B(a,e,"start")),function(t){let r;0===E.size&&v(_),new Promise(e=>{E.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(c=d(h,r),h=null,B(a,c.b,"start"),i&&(p(),f=L(a,l,c.b,c.duration,0,n,u.css))),c&&(e>=c.end?(o(l=c.b,1-l),B(a,c.b,"end"),h||(c.b?p():--c.group.r||M(c.group.c)),c=null):e>=c.start&&(e=e-c.start,l=c.a+c.d*n(e/c.duration),o(l,1-l))),!(!c&&!h)}))}return{run(e){g(u)?(H||(H=Promise.resolve(),H.then(()=>{H=null})),H.then(()=>{u=u(),n(e)})):n(e)},end(){p(),c=h=null}}}function t(n,e,t,r,o,i,s=[-1]){var a=S;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&(r=e,-1===(e=n).$$.dirty[0]&&(p.push(e),F||(F=!0,d.then($)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),l=!0,M(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const m=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(m),m.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&X(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||j(()=>{var e=i.map(c).filter(g);s?s.push(...e):M(e),t.$$.on_mount=[]}),a.forEach(j)}(n,e.target,e.anchor,e.customElement),$()}f(a)}let l;function q(e,{delay:t=0,duration:r=400,easing:n=y}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(g);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){M(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(M(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=m}$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 Y,K,Z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Z&&Z,Q="URLSearchParams"in Z,J="Symbol"in Z&&"iterator"in Symbol,ee="FileReader"in Z&&"Blob"in Z&&function(){try{return new Blob,!0}catch(e){return!1}}(),te="FormData"in Z,re="ArrayBuffer"in Z;function ne(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 oe(e){return e="string"!=typeof e?String(e):e}function ie(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return J&&(e[Symbol.iterator]=function(){return e}),e}function se(t){this.map={},t instanceof se?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 ae(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ue(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function le(e){var t=new FileReader,r=ue(t);return t.readAsArrayBuffer(e),r}function ce(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function he(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ee&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:te&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():re&&ee&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ce(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):re&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=ce(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):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ee&&(this.blob=function(){var e=ae(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?ae(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(le)}),this.text=function(){var e,t,r=ae(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=ue(t),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)},te&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}re&&(Y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<Y.indexOf(Object.prototype.toString.call(e))}),se.prototype.append=function(e,t){e=ne(e),t=oe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},se.prototype.delete=function(e){delete this.map[ne(e)]},se.prototype.get=function(e){return e=ne(e),this.has(e)?this.map[e]:null},se.prototype.has=function(e){return this.map.hasOwnProperty(ne(e))},se.prototype.set=function(e,t){this.map[ne(e)]=oe(t)},se.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},se.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ie(r)},se.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ie(t)},se.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ie(r)},J&&(se.prototype[Symbol.iterator]=se.prototype.entries);var fe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function pe(e,t){if(!(this instanceof pe))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 pe){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new se(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 se(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<fe.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 de(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 me(e,t){if(!(this instanceof me))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 se(t.headers),this.url=t.url||"",this._initBody(e)}pe.prototype.clone=function(){return new pe(this,{body:this._bodyInit})},he.call(pe.prototype),he.call(me.prototype),me.prototype.clone=function(){return new me(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new se(this.headers),url:this.url})},me.error=function(){var e=new me(null,{status:0,statusText:""});return e.type="error",e};var ye=[301,302,303,307,308];me.redirect=function(e,t){if(-1===ye.indexOf(t))throw new RangeError("Invalid status code");return new me(null,{status:t,headers:{location:e}})};var ge=Z.DOMException;try{new ge}catch(m){(ge=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ge.prototype.constructor=ge}function be(n,s){return new Promise(function(o,e){var t=new pe(n,s);if(t.signal&&t.signal.aborted)return e(new ge("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new se,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 i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new me(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new ge("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&Z.location.href?Z.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(ee?i.responseType="blob":re&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof se?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,oe(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}be.polyfill=!0,Z.fetch||(Z.fetch=be,Z.Headers=se,Z.Request=pe,Z.Response=me),self.fetch.bind(self);var ve=function(e,t){return(ve=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 Ee(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}ve(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function _e(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 we(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Te(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Ae(e){return"function"==typeof e}function Se(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 Pe=Se(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 Le(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Oe=(Ce.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=_e(i),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 i.remove(this);i=this.initialTeardown;if(Ae(i))try{i()}catch(e){o=e instanceof Pe?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=_e(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Ne(c)}catch(e){o=null!=o?o:[],e instanceof Pe?o=Te(Te([],we(o)),we(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Pe(o)}},Ce.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(e);else{if(e instanceof Ce){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ce.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ce.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ce.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},Ce.prototype.remove=function(e){var t=this._teardowns;t&&Le(t,e),e instanceof Ce&&e._removeParent(this)},Ce.EMPTY=((Jt=new Ce).closed=!0,Jt),Ce),Me=Oe.EMPTY;function Ce(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function Ie(e){return e instanceof Oe||e&&"closed"in e&&Ae(e.remove)&&Ae(e.add)&&Ae(e.unsubscribe)}function Ne(e){Ae(e)?e():e.unsubscribe()}var Re=void 0,xe=!1,Ue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Te([],we(e)))};function De(){}function ke(e){e()}var Ge,Fe,je=(Ee(Be,Fe=Oe),Be.create=function(e,t,r){return new $e(e,t,r)},Be.prototype.next=function(e){this.isStopped||this._next(e)},Be.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Be.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Be.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Fe.prototype.unsubscribe.call(this),this.destination=null)},Be.prototype._next=function(e){this.destination.next(e)},Be.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Be.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Be),$e=(Ee(He,Ge=je),He);function He(e,t,r){var n,o,i=Ge.call(this)||this;return Ae(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&xe?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ve(o):De,error:Ve(null!=t?t:Xe),complete:r?Ve(r):De},i}function Be(e){var t=Fe.call(this)||this;return t.isStopped=!1,e?Ie(t.destination=e)&&e.add(t):t.destination=We,t}function Ve(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Te([],we(e)))}catch(e){t=e,Ue(function(){throw t})}}}function Xe(e){throw e}var We={closed:!0,next:De,error:Xe,complete:De},ze="function"==typeof Symbol&&Symbol.observable||"@@observable";function qe(e){return e}var Ye=(Ke.prototype.lift=function(e){var t=new Ke;return t.source=this,t.operator=e,t},Ke.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof je||n&&Ae(n.next)&&Ae(n.error)&&Ae(n.complete)&&Ie(n)?e:new $e(e,t,r);return ke(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Ke.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ke.prototype.forEach=function(n,e){var o=this;return new(e=Ze(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ke.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ke.prototype[ze]=function(){return this},Ke.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?qe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ke.prototype.toPromise=function(e){var n=this;return new(e=Ze(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ke.create=function(e){return new Ke(e)},Ke);function Ke(e){e&&(this._subscribe=e)}function Ze(e){return null!==(e=null!=e?e:Re)&&void 0!==e?e:Promise}var Qe,Je,et,tt=Se(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),rt=(Ee(ut,et=Ye),ut.prototype.lift=function(e){var t=new nt(this,this);return t.operator=e,t},ut.prototype._throwIfClosed=function(){if(this.closed)throw new tt},ut.prototype.next=function(i){var s=this;ke(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=_e(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},ut.prototype.error=function(t){var r=this;ke(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)}})},ut.prototype.complete=function(){var t=this;ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},ut.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ut.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),ut.prototype._trySubscribe=function(e){return this._throwIfClosed(),et.prototype._trySubscribe.call(this,e)},ut.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},ut.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?Me:(n.push(e),new Oe(function(){return Le(n,e)}))},ut.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},ut.prototype.asObservable=function(){var e=new Ye;return e.source=this,e},ut.create=function(e,t){return new nt(e,t)},ut),nt=(Ee(at,Je=rt),at.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)},at.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)},at.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)},at.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:Me},at),ot={now:function(){return(ot.delegate||Date).now()},delegate:void 0},it=(Ee(st,Qe=rt),st.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Qe.prototype.next.call(this,e)},st.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},st.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},st);function st(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ot);var n=Qe.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 at(e,t){var r=Je.call(this)||this;return r.destination=e,r.source=t,r}function ut(){var e=et.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let lt=[],ct={};const ht=[];function ft(n,o=m){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!ht.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ht.push(t,n)}if(e){for(let e=0;e<ht.length;e+=2)ht[e][0](ht[e+1]);ht.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=m){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||m),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function pt(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return ft(t,t=>{let n=!1;const o=[];let i=0,r=m;const s=()=>{var e;i||(r(),e=a(u?o[0]:o,t),c?t(e):r=g(e)?e:m)},e=l.map((r,t)=>function(e){if(null==r)return m;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{o[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}]));return n=!0,s(),function(){M(e),r()}}).subscribe,1}var dt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===mt));var t},mt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?_t(Array.isArray(e)?[]:{},e,t):e}function gt(e,t,r){return e.concat(t).map(function(e){return yt(e,r)})}function bt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function vt(e,t){try{return t in e}catch(e){return!1}}function Et(n,o,i){var s={};return i.isMergeableObject(n)&&bt(n).forEach(function(e){s[e]=yt(n[e],i)}),bt(o).forEach(function(t){var e,r;(!vt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(vt(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return _t;var e=i.customMerge(t);return"function"==typeof e?e:_t}()(n[t],o[t],i):s[t]=yt(o[t],i))}),s}function _t(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||gt,r.isMergeableObject=r.isMergeableObject||dt,r.cloneUnlessOtherwiseSpecified=yt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Et(e,t,r):yt(t,r)}_t.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return _t(e,t,r)},{})};var wt=_t,Tt=function(e,t){return(Tt=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 At(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}Tt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var St,Pt,Lt,Ot=function(){return(Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Mt(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Ct(e){return e.type===Pt.literal}function It(e){return e.type===Pt.number}function Nt(e){return e.type===Pt.date}function Rt(e){return e.type===Pt.time}function xt(e){return e.type===Pt.select}function Ut(e){return e.type===Pt.plural}function Dt(e){return e.type===Pt.tag}function kt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Gt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(er=St=St||{})[er.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",er[er.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",er[er.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",er[er.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",er[er.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",er[er.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",er[er.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",er[er.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",er[er.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",er[er.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",er[er.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",er[er.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",er[er.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",er[er.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",er[er.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",er[er.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",er[er.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",er[er.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",er[er.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",er[er.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",er[er.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",er[er.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",er[er.INVALID_TAG=23]="INVALID_TAG",er[er.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",er[er.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",er[er.UNCLOSED_TAG=27]="UNCLOSED_TAG",(tr=Pt=Pt||{})[tr.literal=0]="literal",tr[tr.argument=1]="argument",tr[tr.number=2]="number",tr[tr.date=3]="date",tr[tr.time=4]="time",tr[tr.select=5]="select",tr[tr.plural=6]="plural",tr[tr.pound=7]="pound",tr[tr.tag=8]="tag",(rr=Lt=Lt||{})[rr.number=0]="number",rr[rr.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ft=/(?:[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 jt,$t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ht=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?$/g,Vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Wt(e){var n={};return e.replace(Bt,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 zt(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 qt(e){return zt(e)||{}}function Yt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=Ot(Ot(Ot({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return Ot(Ot({},e),qt(t))},{}));continue;case"engineering":s=Ot(Ot(Ot({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return Ot(Ot({},e),qt(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(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Vt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ht.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ht,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=Ot(Ot({},s),Wt(o.options[0])))}else Bt.test(o.stem)?s=Ot(Ot({},s),Wt(o.stem)):((n=zt(o.stem))&&(s=Ot(Ot({},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)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=Ot(Ot({},s),n)))}return s}var Kt=new RegExp("^"+e.source+"*"),Zt=new RegExp(e.source+"*$");function Qt(e,t){return{start:e,end:t}}var Jt=!!String.prototype.startsWith,ze=!!String.fromCodePoint,rt=!!Object.fromEntries,er=!!String.prototype.codePointAt,tr=!!String.prototype.trimStart,rr=!!String.prototype.trimEnd,nr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(jt=fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch(m){e=!1}var or,ir,sr=Jt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ar=ze?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))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},ur=rt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},lr=er?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},cr=tr?function(e){return e.trimStart()}:function(e){return e.replace(Kt,"")},hr=rr?function(e){return e.trimEnd()}:function(e){return e.replace(Zt,"")};function fr(e,t){return new RegExp(e,t)}ir=e?(or=fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return or.lastIndex=t,null!==(e=or.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=lr(e,t);if(void 0===o||yr(o)||(33<=(r=o)&&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(o),t+=65536<=o?2:1}return ar.apply(void 0,n)};var pr=(dr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},dr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(St.UNMATCHED_CLOSING_TAG,Qt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&mr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:Pt.pound,location:Qt(i,this.clonePosition())})}}}return{val:n,err:null}},dr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Pt.literal,value:"<"+n+"/>",location:Qt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mr(this.char()))return this.error(St.INVALID_TAG,Qt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(St.UNMATCHED_CLOSING_TAG,Qt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Pt.tag,value:n,children:e,location:Qt(r,this.clonePosition())},err:null}:this.error(St.INVALID_TAG,Qt(t,this.clonePosition())))}return this.error(St.UNCLOSED_TAG,Qt(r,this.clonePosition()))}return this.error(St.INVALID_TAG,Qt(r,this.clonePosition()))},dr.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())},dr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Qt(r,this.clonePosition());return{val:{type:Pt.literal,value:n,location:r},err:null}},dr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(mr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},dr.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 ar.apply(void 0,t)},dr.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(),ar(r))},dr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,Qt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(St.EMPTY_ARGUMENT,Qt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(St.MALFORMED_ARGUMENT,Qt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,Qt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Pt.argument,value:n,location:Qt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,Qt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(St.MALFORMED_ARGUMENT,Qt(r,this.clonePosition()))}},dr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ir(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Qt(e,this.clonePosition())}},dr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(St.EXPECT_ARGUMENT_TYPE,Qt(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=hr(f.val)).length)return this.error(St.EXPECT_ARGUMENT_STYLE,Qt(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Qt(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Qt(n,this.clonePosition());if(u&&sr(null==u?void 0:u.style,"::",0)){l=cr(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:Pt.number,value:r,location:c,style:f.val},err:null};if(0===l.length)return this.error(St.EXPECT_DATE_TIME_SKELETON,c);var h={type:Lt.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},l.replace(Ft,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?Pt.date:Pt.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?Pt.number:"date"===s?Pt.date:Pt.time,value:r,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(St.EXPECT_SELECT_ARGUMENT_OPTIONS,Qt(u,Ot({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Qt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,St.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Qt(n,this.clonePosition());return"select"===s?{val:{type:Pt.select,value:r,options:ur(c.val),location:p},err:null}:{val:{type:Pt.plural,value:r,options:ur(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(St.INVALID_ARGUMENT_TYPE,Qt(i,a))}},dr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,Qt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},dr.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(St.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Qt(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}},dr.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($t).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(St.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Yt(r):{}},err:null}},dr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(St.EXPECT_PLURAL_ARGUMENT_SELECTOR,St.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Qt(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?St.DUPLICATE_SELECT_ARGUMENT_SELECTOR:St.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?St.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:St.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Qt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;i.push([a,{value:c.val,location:Qt(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?St.EXPECT_SELECT_ARGUMENT_SELECTOR:St.EXPECT_PLURAL_ARGUMENT_SELECTOR,Qt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(St.MISSING_OTHER_CLAUSE,Qt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},dr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Qt(n,this.clonePosition());return o?nr(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},dr.prototype.offset=function(){return this.position.offset},dr.prototype.isEOF=function(){return this.offset()===this.message.length},dr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},dr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=lr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},dr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},dr.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))},dr.prototype.bumpIf=function(e){if(sr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},dr.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)},dr.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}},dr.prototype.bumpSpace=function(){for(;!this.isEOF()&&yr(this.char());)this.bump()},dr.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},dr);function dr(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 mr(e){return 97<=e&&e<=122||65<=e&&e<=90}function yr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function gr(e,t){t=Ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new pr(e,t).parse();if(r.err){e=SyntaxError(St[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,xt(e)||Ut(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else It(e)&&kt(e.style)||(Nt(e)||Rt(e))&&Gt(e.style)?delete e.style.location:Dt(e)&&r(e.children)})}(r.val),r.val}function br(e,t){var r=t&&t.cache?t.cache:Sr,n=t&&t.serializer?t.serializer:wr;return(t&&t.strategy?t.strategy:function(e,t){return _r(e,this,1===e.length?vr:Er,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function vr(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function Er(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function _r(e,t,r,n,o){return r.bind(t,e,n,o)}var wr=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.has=function(e){return e in this.cache},Tr.prototype.get=function(e){return this.cache[e]},Tr.prototype.set=function(e,t){this.cache[e]=t};var Ar,Sr={create:function(){return new Tr}},Pr={variadic:function(e,t){return _r(e,this,Er,t.cache.create(),t.serializer)},monadic:function(e,t){return _r(e,this,vr,t.cache.create(),t.serializer)}};(e=Ar=Ar||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Lr,Or,Mr,Cr,Ir,Nr=(At(Fr,Ir=Error),Fr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Fr),Rr=(At(Gr,Cr=Nr),Gr),xr=(At(kr,Mr=Nr),kr),Ur=(At(Dr,Or=Nr),Dr);function Dr(e,t){return Or.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Ar.MISSING_VALUE,t)||this}function kr(e,t,r){return Mr.call(this,'Value for "'+e+'" must be of type '+t,Ar.INVALID_VALUE,r)||this}function Gr(e,t,r,n){return Cr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Ar.INVALID_VALUE,n)||this}function Fr(e,t,r){e=Ir.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function jr(e,t,r,n,o,i,s){if(1===e.length&&Ct(e[0]))return[{type:Lr.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Ct(c))a.push({type:Lr.literal,value:c.value});else if(c.type===Pt.pound)"number"==typeof i&&a.push({type:Lr.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Ur(h,s);var f=o[h];if(c.type===Pt.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Lr.literal:Lr.object,value:f});else if(Nt(c)){var p="string"==typeof c.style?n.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Rt(c))p="string"==typeof c.style?n.time[c.style]:Gt(c.style)?c.style.parsedOptions:void 0,a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)});else if(It(c))(p="string"==typeof c.style?n.number[c.style]:kt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Lr.literal,value:r.getNumberFormat(t,p).format(f)});else{if(Dt(c)){var d=c.children,m=c.value,h=o[m];if("function"!=typeof h)throw new xr(m,"function",s);d=h(jr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?Lr.literal:Lr.object,value:e}}))}if(xt(c)){if(!(y=c.options[f]||c.options.other))throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(y.value,t,r,n,o))}else if(Ut(c)){if(!(y=c.options["="+f])){if(!Intl.PluralRules)throw new Nr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ar.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),y=c.options[d]||c.options.other}if(!y)throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(y.value,t,r,n,o,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Lr.literal&&t.type===Lr.literal?r.value+=t.value:e.push(t),e},[])}function $r(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}}}}}(e=Lr=Lr||{})[e.literal=0]="literal",e[e.object=1]="object";var Hr=(Object.defineProperty(Br,"defaultLocale",{get:function(){return Br.memoizedDefaultLocale||(Br.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Br.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Br.memoizedDefaultLocale=null,Br.__parse=gr,Br.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"}}},Br);function Br(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Br.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===Lr.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 jr(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,!Br.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Br.__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=(o=Br.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?Ot(Ot(Ot({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Ot(Ot({},r[t]),n[t]||{}),e},{})):r),e},Ot({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:br(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Mt([void 0],t)))},{cache:$r((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Pr.variadic}),getDateTimeFormat:br(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Mt([void 0],t)))},{cache:$r(n.dateTime),strategy:Pr.variadic}),getPluralRules:br(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Mt([void 0],t)))},{cache:$r(n.pluralRules),strategy:Pr.variadic})}}const Vr={},Xr=(t,r)=>{if(null!=r){if(r in Vr&&t in Vr[r])return Vr[r][t];var n,o,i=an(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,qr(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 Wr[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in Vr||(Vr[o]={}),n in Vr[o]||(Vr[o][n]=s),s)}}};let Wr;const zr=ft({});function qr(e){return e in Wr}pt([zr],([e])=>Object.keys(e)),zr.subscribe(e=>Wr=e);const Yr={};function Kr(e){return Yr[e]}function Zr(e){return an(e).some(e=>{return null===(e=Kr(e))||void 0===e?void 0:e.size})}function Qr(t,e){return Promise.all(e.map(e=>(function(e,t){Yr[e].delete(t),0===Yr[e].size&&delete Yr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete Vr[t],zr.update(e=>(e[t]=wt.all([e[t]||{},...r]),e))}(t,...e))}const Jr={};function en(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const tn={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 rn=ft(!1);let nn;const on=ft(null);function sn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function an(e,t=tn.fallbackLocale){e=sn(e);return t?[...new Set([...e,...sn(t)])]:e}on.subscribe(e=>{nn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const un=on.set;on.set=t=>{if(function(e){if(null!=e){var t=an(e);for(let e=0;e<t.length;e++){var r=t[e];if(qr(r))return r}}}(t)&&Zr(t)){var{loadingDelay:r}=tn;let e;return"undefined"!=typeof window&&null!=nn&&r?e=window.setTimeout(()=>rn.set(!0),r):rn.set(!0),function e(t){if(!Zr(t))return t in Jr?Jr[t]:void 0;const r=an(t).map(e=>{var t=Kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Jr[t]=Promise.all(r.map(([e,t])=>Qr(e,t))).then(()=>Zr(t)?e(t):void delete Jr[t]),Jr[t]}(t).then(()=>{un(t)}).finally(()=>{clearTimeout(e),rn.set(!1)})}return un(t)},on.update=e=>un(e(nn));const ln=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},cn=(e,t)=>{var{formats:r}=tn;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hn=ln(e=>{var{locale:t,format:r}=e,e=en(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=cn("number",r)),new Intl.NumberFormat(t,e)}),fn=ln(e=>{var{locale:t,format:r}=e,e=en(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=cn("date",r):0===Object.keys(e).length&&(e=cn("date","short")),new Intl.DateTimeFormat(t,e)}),pn=ln(e=>{var{locale:t,format:r}=e,e=en(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=cn("time",r):0===Object.keys(e).length&&(e=cn("time","short")),new Intl.DateTimeFormat(t,e)}),dn=ln((e,t=nn)=>new Hr(e,t,tn.formats,{ignoreTag:tn.ignoreTag}));function mn(e,t,r){const n=e.slice();return n[22]=t[r],n}function yn(e,t,r){const n=e.slice();return n[25]=t[r],n}function gn(e,t,r){const n=e.slice();return n[28]=t[r],n}function bn(r){let n,o,i,s,a,u,l,c,h,f,p,d,m,y,g,b,v,t,E,_,w,T=r[1],A=[];for(let e=0;e<T.length;e+=1)A[e]=vn(gn(r,T,e));let S=r[3],P=[];for(let e=0;e<S.length;e+=1)P[e]=En(yn(r,S,e));let L=r[8],O=[];for(let e=0;e<L.length;e+=1)O[e]=_n(mn(r,L,e));return{c(){n=x("div"),o=x("span"),i=x("slot"),i.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',a=U(),u=x("div"),l=x("ul");for(let e=0;e<A.length;e+=1)A[e].c();h=U(),f=x("ul");for(let e=0;e<P.length;e+=1)P[e].c();d=U(),m=x("div"),y=x("span"),y.textContent="Select Language",g=U(),b=x("select");for(let e=0;e<O.length;e+=1)O[e].c();k(i,"name","close"),k(o,"class",s=r[4]?"ModalCloseBtn":""),k(o,"role","button"),k(l,"class",c="HamburgerPrimaryMenu "+(r[5]?"HamburgerPrimaryMenuFixed":"")),k(f,"class",p="HamburgerSecondaryMenu "+(r[5]?"HamburgerSecondaryMenuFixed":"")),k(b,"class","Item ItemLanguage"),void 0===r[7]&&j(()=>r[15].call(b)),k(m,"class","LanguageSelectorTitle"),k(u,"class",v="HamburgerModalContainer "+(r[4]?"ActiveHamburgerMenu":"")),k(n,"class","HamburgerModalWindow")},m(e,t){I(e,n,t),C(n,o),C(o,i),C(n,a),C(n,u),C(u,l);for(let e=0;e<A.length;e+=1)A[e].m(l,null);C(u,h),C(u,f);for(let e=0;e<P.length;e+=1)P[e].m(f,null);C(u,d),C(u,m),C(m,y),C(m,g),C(m,b);for(let e=0;e<O.length;e+=1)O[e].m(b,null);G(b,r[7]),r[17](n),E=!0,_||(w=[D(o,"click",r[9]),D(b,"change",r[15]),D(b,"change",r[16])],_=!0)},p(e,t){if(r=e,(!E||16&t&&s!==(s=r[4]?"ModalCloseBtn":""))&&k(o,"class",s),1030&t){let e;for(T=r[1],e=0;e<T.length;e+=1){const o=gn(r,T,e);A[e]?A[e].p(o,t):(A[e]=vn(o),A[e].c(),A[e].m(l,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=T.length}if((!E||32&t&&c!==(c="HamburgerPrimaryMenu "+(r[5]?"HamburgerPrimaryMenuFixed":"")))&&k(l,"class",c),8&t){let e;for(S=r[3],e=0;e<S.length;e+=1){const o=yn(r,S,e);P[e]?P[e].p(o,t):(P[e]=En(o),P[e].c(),P[e].m(f,null))}for(;e<P.length;e+=1)P[e].d(1);P.length=S.length}if((!E||32&t&&p!==(p="HamburgerSecondaryMenu "+(r[5]?"HamburgerSecondaryMenuFixed":"")))&&k(f,"class",p),256&t){let e;for(L=r[8],e=0;e<L.length;e+=1){const o=mn(r,L,e);O[e]?O[e].p(o,t):(O[e]=_n(o),O[e].c(),O[e].m(b,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=L.length}384&t&&G(b,r[7]),(!E||16&t&&v!==(v="HamburgerModalContainer "+(r[4]?"ActiveHamburgerMenu":"")))&&k(u,"class",v)},i(e){E||(j(()=>{t=t||z(n,q,{transitionDuration:Tn},!0),t.run(1)}),E=!0)},o(e){t=t||z(n,q,{transitionDuration:Tn},!1),t.run(0),E=!1},d(e){e&&N(n),R(A,e),R(P,e),R(O,e),r[17](null),e&&t&&t.end(),_=!1,M(w)}}}function vn(r){let n,o,i,s,a,u,l,c,h,f,p=r[28].label+"";function d(){return r[14](r[28])}return{c(){n=x("li"),o=x("div"),i=x("img"),a=U(),u=w(p),l=U(),i.src!==(s=r[28].img)&&k(i,"src",s),k(i,"alt","menu icon"),k(o,"class","HamburgerItemContainer"),k(n,"class",c=r[2]===r[28].id?"ActiveItem":"")},m(e,t){I(e,n,t),C(n,o),C(o,i),C(o,a),C(o,u),C(n,l),h||(f=D(n,"click",d),h=!0)},p(e,t){r=e,2&t&&i.src!==(s=r[28].img)&&k(i,"src",s),2&t&&p!==(p=r[28].label+"")&&T(u,p),6&t&&c!==(c=r[2]===r[28].id?"ActiveItem":"")&&k(n,"class",c)},d(e){e&&N(n),h=!1,f()}}}function En(e){let r,n,o,i,s,a,u,l,c=e[25].label+"";return{c(){r=x("li"),n=x("a"),o=x("img"),s=U(),a=w(c),l=U(),o.src!==(i=e[25].img)&&k(o,"src",i),k(o,"alt","menu icon"),k(n,"href",u=e[25].path)},m(e,t){I(e,r,t),C(r,n),C(n,o),C(n,s),C(n,a),C(r,l)},p(e,t){8&t&&o.src!==(i=e[25].img)&&k(o,"src",i),8&t&&c!==(c=e[25].label+"")&&T(a,c),8&t&&u!==(u=e[25].path)&&k(n,"href",u)},d(e){e&&N(r)}}}function _n(e){let r,n,t=e[22].code+"";return{c(){r=x("option"),n=w(t),r.__value=e[22].code,r.value=r.__value},m(e,t){I(e,r,t),C(r,n)},p:m,d(e){e&&N(r)}}}function wn(e){let r,n,o=!0===e[6]&&bn(e);return{c(){o&&o.c(),r=w(""),this.c=m},m(e,t){o&&o.m(e,t),I(e,r,t),n=!0},p(e,[t]){!0===e[6]?o?(o.p(e,t),64&t&&X(o,1)):(o=bn(e),o.c(),X(o,1),o.m(r.parentNode,r)):o&&(V={r:0,c:[],p:V},u(o,1,1,()=>{o=null}),V.r||M(V.c),V=V.p)},i(e){n||(X(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&N(r)}}}pt([on,zr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=nn,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Xr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else tn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${an(n).join('", "')}".${Zr(nn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=dn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),pt([on],()=>(e,t)=>((e={})=>{var{locale:t=nn}=e,e=en(e,["locale"]);return pn(Object.assign({locale:t},e))})(t).format(e)),pt([on],()=>(e,t)=>((e={})=>{var{locale:t=nn}=e,e=en(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),pt([on],()=>(e,t)=>((e={})=>{var{locale:t=nn}=e,e=en(e,["locale"]);return hn(Object.assign({locale:t},e))})(t).format(e)),pt([on,zr],()=>(e,t=nn)=>Xr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==lt.indexOf(e)&&(t=new it(t),ct[e]=t,lt.push(e)),ct[e]}};let Tn=350;function An(e,t,n){let r,{language:o=""}=t,{menuitemsurl:i=""}=t,s=window.navigator.userAgent,a=[],u="",l=[],c=!1,h=!1,f=!1,p=[{code:"EN"},{code:"TR"},{code:"RO"}],d="";const m=e=>{"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(6,f=!0),setTimeout(()=>{n(4,c=!0)},500),setTimeout(()=>{n(5,h=!0)},1500),g(i))},y=(e,t)=>{n(2,u=e),n(3,l=t||[])},g=e=>new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{n(1,a=e),a.length&&y(a[0].id,a[0].children),t(e)},e=>{console.error(e),r(e)})}),b=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:d},window.location.href)};return t=()=>(window.addEventListener("message",m,!1),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(s),()=>{window.removeEventListener("message",m)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t),e.$$set=e=>{"language"in e&&n(12,o=e.language),"menuitemsurl"in e&&n(13,i=e.menuitemsurl)},[void 0,a,u,l,c,h,f,d,p,()=>{n(6,f=!1),n(4,c=!1),n(5,h=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},y,b,o,i,e=>y(e.id,e.children),function(){d=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),n(7,d),n(8,p)},()=>b(),function(e){O[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}class Sn extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:#A5A5A5;margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:#fff;border:none}.ItemLanguage option{color:#0a0c19}:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:10;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:#000;width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .6s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:0;right:0;margin:10px;border-radius:50%;color:#fff;background:rgba(255, 255, 255, 0.1);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:24px;height:24px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:#fff}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:#07072A;white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid #D0046C;width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:#D0046C}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:#fff;font-size:14x}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid #707070}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:#D0046C}</style>",t(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},An,wn,r,{language:12,menuitemsurl:13}),e&&(e.target&&I(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["language","menuitemsurl"]}get language(){return this.$$.ctx[12]}set language(e){this.$set({language:e}),$()}get menuitemsurl(){return this.$$.ctx[13]}set menuitemsurl(e){this.$set({menuitemsurl:e}),$()}}return customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",Sn),Sn});
|
|
2
2
|
//# sourceMappingURL=casino-hamburger-menu.js.map
|