@everymatrix/casino-search-nd 1.76.11 → 1.76.13
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.
- package/components/{CasinoGameThumbnailNd-CkVsqvtj.cjs → CasinoGameThumbnailNd-BwtM-S0z.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-BHS-lpKm.js → CasinoGameThumbnailNd-CEFu1pUm.js} +1 -1
- package/components/{CasinoGameThumbnailNd-Ji73E6on.js → CasinoGameThumbnailNd-DjZpzp1K.js} +1 -1
- package/components/{CasinoSearchNd-DKUxh7pK.js → CasinoSearchNd-CNPhlhaj.js} +2 -2
- package/components/{CasinoSearchNd-u3TmRwuh.js → CasinoSearchNd-CyNA64Nk.js} +2 -2
- package/components/{CasinoSearchNd-B2_ouqr9.cjs → CasinoSearchNd-Cy_jB6vG.cjs} +1 -1
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/esnext/casino-search-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-BqeIndhr.js +554 -0
- package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
- package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
- package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +1 -0
- package/stencil/ui-image-2ff23cd5-D0rXudCW.js +86 -0
- package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +86 -0
- package/stencil/ui-image-C0Jfm_O4.js +7 -0
- package/stencil/ui-image-DmRWEjrp.js +25 -0
- package/stencil/ui-image-EfKW3THf.cjs +1 -0
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-B21W_djK.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-CLk629jW.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-VgK3B8gQ.js} +2 -2
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/ui-image-BaHsVAxH.cjs +0 -1
- package/stencil/ui-image-C7s6Uvn5.js +0 -25
- package/stencil/ui-image-CHeV8e9p.js +0 -7
- package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
- package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
- package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
package/components/{CasinoGameThumbnailNd-CkVsqvtj.cjs → CasinoGameThumbnailNd-BwtM-S0z.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Xi=Object.defineProperty,qi=Object.defineProperties;var Zi=Object.getOwnPropertyDescriptors;var Dn=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable;var kt=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kn=(e,t)=>{for(var n in t||(t={}))Qi.call(t,n)&&kt(e,n,t[n]);if(Dn)for(var n of Dn(t))Ji.call(t,n)&&kt(e,n,t[n]);return e},Un=(e,t)=>qi(e,Zi(t));var j=(e,t,n)=>(kt(e,typeof t!="symbol"?t+"":t,n),n);var Ut=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{s(n.next(l))}catch(u){i(u)}},o=l=>{try{s(n.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((n=n.apply(e,t)).next())});require("../stencil/ui-image-BaHsVAxH.cjs");function Y(){}function Br(e){return e()}function Wn(){return Object.create(null)}function Oe(e){e.forEach(Br)}function vn(e){return typeof e=="function"}function yn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let rt;function jn(e,t){return e===t?!0:(rt||(rt=document.createElement("a")),rt.href=t,e===rt.href)}function Ki(e){return Object.keys(e).length===0}function Mr(e,...t){if(e==null){for(const r of t)r(void 0);return Y}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ar(e,t,n){e.$$.on_destroy.push(Mr(t,n))}function y(e,t){e.appendChild(t)}function Nr(e,t,n){const r=ea(e);if(!r.getElementById(t)){const i=S("style");i.id=t,i.textContent=n,ta(r,i)}}function ea(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ta(e,t){return y(e.head||e,t),t.sheet}function M(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function wn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function S(e){return document.createElement(e)}function J(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function U(){return ae(" ")}function Pe(){return ae("")}function gt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function de(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:p(e,t,n)}function na(e){return Array.from(e.childNodes)}function he(e,t){t=""+t,e.data!==t&&(e.data=t)}function ra(e,t){e.value=t==null?"":t}function $n(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function Vn(e,t,n){e.classList.toggle(t,!!n)}class se{constructor(t=!1){j(this,"is_svg",!1);j(this,"e");j(this,"n");j(this,"t");j(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=J(n.nodeName):this.e=S(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)M(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(B)}}function ia(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let je;function We(e){je=e}function aa(){if(!je)throw new Error("Function called outside component initialization");return je}function Hr(e){aa().$$.on_mount.push(e)}const Ee=[],Ce=[];let Ge=[];const zn=[],Rr=Promise.resolve();let Qt=!1;function Dr(){Qt||(Qt=!0,Rr.then(G))}function Re(){return Dr(),Rr}function Jt(e){Ge.push(e)}const Wt=new Set;let we=0;function G(){if(we!==0)return;const e=je;do{try{for(;we<Ee.length;){const t=Ee[we];we++,We(t),oa(t.$$)}}catch(t){throw Ee.length=0,we=0,t}for(We(null),Ee.length=0,we=0;Ce.length;)Ce.pop()();for(let t=0;t<Ge.length;t+=1){const n=Ge[t];Wt.has(n)||(Wt.add(n),n())}Ge.length=0}while(Ee.length);for(;zn.length;)zn.pop()();Qt=!1,Wt.clear(),We(e)}function oa(e){if(e.fragment!==null){e.update(),Oe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Jt)}}function sa(e){const t=[],n=[];Ge.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ge=t}const la=new Set;function ua(e,t){e&&e.i&&(la.delete(e),e.i(t))}function $e(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ca(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Jt(()=>{const a=e.$$.on_mount.map(Br).filter(vn);e.$$.on_destroy?e.$$.on_destroy.push(...a):Oe(a),e.$$.on_mount=[]}),i.forEach(Jt)}function fa(e,t){const n=e.$$;n.fragment!==null&&(sa(n.after_update),Oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ha(e,t){e.$$.dirty[0]===-1&&(Ee.push(e),Dr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function kr(e,t,n,r,i,a,o=null,s=[-1]){const l=je;We(e);const u=e.$$={fragment:null,ctx:[],props:a,update:Y,not_equal:i,bound:Wn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Wn(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=n?n(e,t.props||{},(f,m,...d)=>{const v=d.length?d[0]:m;return u.ctx&&i(u.ctx[f],u.ctx[f]=v)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](v),c&&ha(e,f)),m}):[],u.update(),c=!0,Oe(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const f=na(t.target);u.fragment&&u.fragment.l(f),f.forEach(B)}else u.fragment&&u.fragment.c();t.intro&&ua(e.$$.fragment),ca(e,t.target,t.anchor),G()}We(l)}let Ur;typeof HTMLElement=="function"&&(Ur=class extends HTMLElement{constructor(t,n,r){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ut(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let o;return{c:function(){o=S("slot"),a!=="default"&&p(o,"name",a)},m:function(u,c){M(u,o,c)},d:function(u){u&&B(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=ia(this);for(const a of this.$$s)a in r&&(n[a]=[t(a)]);for(const a of this.attributes){const o=this.$$g_p(a.name);o in this.$$d||(this.$$d[o]=ot(o,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Un(kn({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const o=ot(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const o of this.$$l[a]){const s=this.$$c.$on(a,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ot(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function ot(e,t,n,r){var a;const i=(a=n[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Wr(e,t,n,r,i,a){let o=class extends Ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=ot(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),r.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=o,o}class jr{constructor(){j(this,"$$");j(this,"$$set")}$destroy(){fa(this,1),this.$destroy=Y}$on(t,n){if(!vn(n))return Y;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Ki(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ma="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ma);const _e=[];function da(e,t){return{subscribe:bt(e,t).subscribe}}function bt(e,t=Y){let n;const r=new Set;function i(s){if(yn(e,s)&&(e=s,n)){const l=!_e.length;for(const u of r)u[1](),_e.push(u,e);if(l){for(let u=0;u<_e.length;u+=2)_e[u][0](_e[u+1]);_e.length=0}}}function a(s){i(s(e))}function o(s,l=Y){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,a)||Y),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Fe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return da(n,(o,s)=>{let l=!1;const u=[];let c=0,f=Y;const m=()=>{if(c)return;f();const v=t(r?u[0]:u,o,s);a?o(v):f=vn(v)?v:Y},d=i.map((v,b)=>Mr(v,_=>{u[b]=_,c&=~(1<<b),l&&m()},()=>{c|=1<<b}));return l=!0,m(),function(){Oe(d),f(),l=!1}})}function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ga=function(t){return ba(t)&&!va(t)};function ba(e){return!!e&&typeof e=="object"}function va(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_a(e)}var ya=typeof Symbol=="function"&&Symbol.for,wa=ya?Symbol.for("react.element"):60103;function _a(e){return e.$$typeof===wa}function xa(e){return Array.isArray(e)?[]:{}}function Ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Te(xa(e),e,t):e}function Ea(e,t,n){return e.concat(t).map(function(r){return Ve(r,n)})}function Ca(e,t){if(!t.customMerge)return Te;var n=t.customMerge(e);return typeof n=="function"?n:Te}function Ga(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Yn(e){return Object.keys(e).concat(Ga(e))}function $r(e,t){try{return t in e}catch(n){return!1}}function Ta(e,t){return $r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Sa(e,t,n){var r={};return n.isMergeableObject(e)&&Yn(e).forEach(function(i){r[i]=Ve(e[i],n)}),Yn(t).forEach(function(i){Ta(e,i)||($r(e,i)&&n.isMergeableObject(t[i])?r[i]=Ca(i,n)(e[i],t[i],n):r[i]=Ve(t[i],n))}),r}function Te(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ea,n.isMergeableObject=n.isMergeableObject||ga,n.cloneUnlessOtherwiseSpecified=Ve;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):Sa(e,t,n):Ve(t,n)}Te.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Te(r,i,n)},{})};var La=Te,Ia=La;const Oa=pa(Ia);var Kt=function(e,t){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Kt(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ie.apply(this,arguments)};function Pa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function jt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function $t(e,t){var n=t&&t.cache?t.cache:Ra,r=t&&t.serializer?t.serializer:Na,i=t&&t.strategy?t.strategy:Ma;return i(e,{cache:n,serializer:r})}function Fa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ba(e,t,n,r){var i=Fa(r)?r:n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,r),t.set(i,a)),a}function Vr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(i,a)),a}function zr(e,t,n,r,i){return n.bind(t,e,r,i)}function Ma(e,t){var n=e.length===1?Ba:Vr;return zr(e,this,n,t.cache.create(),t.serializer)}function Aa(e,t){return zr(e,this,Vr,t.cache.create(),t.serializer)}var Na=function(){return JSON.stringify(arguments)},Ha=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ra={create:function(){return new Ha}},Vt={variadic:Aa},ct=function(){return ct=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ct.apply(this,arguments)};var E;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(E||(E={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(A||(A={}));var Se;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Se||(Se={}));function Xn(e){return e.type===A.literal}function Da(e){return e.type===A.argument}function Yr(e){return e.type===A.number}function Xr(e){return e.type===A.date}function qr(e){return e.type===A.time}function Zr(e){return e.type===A.select}function Qr(e){return e.type===A.plural}function ka(e){return e.type===A.pound}function Jr(e){return e.type===A.tag}function Kr(e){return!!(e&&typeof e=="object"&&e.type===Se.number)}function en(e){return!!(e&&typeof e=="object"&&e.type===Se.dateTime)}var ei=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ua=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Wa(e){var t={};return e.replace(Ua,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var H=function(){return H=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};var ja=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $a(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ja).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var f=c[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Va(e){return e.replace(/^(.*?)-/,"")}var qn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ti=/^(@+)?(\+|#+)?[rs]?$/g,za=/(\*)(0+)|(#+)(0+)|(0+)/g,ni=/^(0+)$/;function Zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ti,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function ri(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 Ya(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!ni.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qn(e){var t={},n=ri(e);return n||t}function Xa(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Va(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=H(H(H({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return H(H({},l),Qn(u))},{}));continue;case"engineering":t=H(H(H({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return H(H({},l),Qn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(za,function(l,u,c,f,m,d){if(u)t.minimumIntegerDigits=c.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ni.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(qn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qn,function(l,u,c,f,m,d){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&d?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+d.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=H(H({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=H(H({},t),Zn(a)));continue}if(ti.test(i.stem)){t=H(H({},t),Zn(i.stem));continue}var o=ri(i.stem);o&&(t=H(H({},t),o));var s=Ya(i.stem);s&&(t=H(H({},t),s))}return t}var it={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function qa(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),l="a",u=Za(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Za(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=it[r||""]||it[n||""]||it["".concat(n,"-001")]||it["001"];return i[0]}var zt,Qa=new RegExp("^".concat(ei.source,"*")),Ja=new RegExp("".concat(ei.source,"*$"));function C(e,t){return{start:e,end:t}}var Ka=!!String.prototype.startsWith&&"_a".startsWith("a",1),eo=!!String.fromCodePoint,to=!!Object.fromEntries,no=!!String.prototype.codePointAt,ro=!!String.prototype.trimStart,io=!!String.prototype.trimEnd,ao=!!Number.isSafeInteger,oo=ao?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},tn=!0;try{var so=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tn=((zt=so.exec("a"))===null||zt===void 0?void 0:zt[0])==="a"}catch(e){tn=!1}var Jn=Ka?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},nn=eo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Kn=to?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},ii=no?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},lo=ro?function(t){return t.trimStart()}:function(t){return t.replace(Qa,"")},uo=io?function(t){return t.trimEnd()}:function(t){return t.replace(Ja,"")};function ai(e,t){return new RegExp(e,t)}var rn;if(tn){var er=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rn=function(t,n){var r;er.lastIndex=n;var i=er.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else rn=function(t,n){for(var r=[];;){var i=ii(t,n);if(i===void 0||oi(i)||mo(i))break;r.push(i),n+=i>=65536?2:1}return nn.apply(void 0,r)};var co=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:A.pound,location:C(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(E.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&an(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:A.literal,value:"<".concat(i,"/>"),location:C(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!an(this.char()))return this.error(E.INVALID_TAG,C(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(E.UNMATCHED_CLOSING_TAG,C(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:o,location:C(r,this.clonePosition())},err:null}:this.error(E.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(E.UNCLOSED_TAG,C(r,this.clonePosition()))}else return this.error(E.INVALID_TAG,C(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ho(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=C(r,this.clonePosition());return{val:{type:A.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return nn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),nn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(E.EMPTY_ARGUMENT,C(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(E.MALFORMED_ARGUMENT,C(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:C(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(E.MALFORMED_ARGUMENT,C(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=rn(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=C(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(E.EXPECT_ARGUMENT_TYPE,C(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=uo(f.val);if(m.length===0)return this.error(E.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var d=C(c,this.clonePosition());u={style:m,styleLocation:d}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var b=C(i,this.clonePosition());if(u&&Jn(u==null?void 0:u.style,"::",0)){var _=lo(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(_,u.styleLocation);return f.err?f:{val:{type:A.number,value:r,location:b,style:f.val},err:null}}else{if(_.length===0)return this.error(E.EXPECT_DATE_TIME_SKELETON,b);var V=_;this.locale&&(V=qa(_,this.locale));var m={type:Se.dateTime,pattern:V,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Wa(V):{}},k=s==="date"?A.date:A.time;return{val:{type:k,value:r,location:b,style:m},err:null}}}return{val:{type:s==="number"?A.number:s==="date"?A.date:A.time,value:r,location:b,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS,C(x,ct({},x)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),I=0;if(s!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),I=f.val}var O=this.tryParsePluralOrSelectOptions(t,s,n,L);if(O.err)return O;var v=this.tryParseArgumentClose(i);if(v.err)return v;var K=C(i,this.clonePosition());return s==="select"?{val:{type:A.select,value:r,options:Kn(O.val),location:K},err:null}:{val:{type:A.plural,value:r,options:Kn(O.val),offset:I,pluralType:s==="plural"?"cardinal":"ordinal",location:K},err:null}}default:return this.error(E.INVALID_ARGUMENT_TYPE,C(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=$a(t)}catch(i){return this.error(E.INVALID_NUMBER_SKELETON,n)}return{val:{type:Se.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Xa(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR,E.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=C(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?E.DUPLICATE_SELECT_ARGUMENT_SELECTOR:E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var b=this.tryParseArgumentClose(d);if(b.err)return b;s.push([u,{value:v.val,location:C(d,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return s.length===0?this.error(n==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR:E.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(E.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=C(i,this.clonePosition());return a?(o*=r,oo(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ii(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Jn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function an(e){return e>=97&&e<=122||e>=65&&e<=90}function fo(e){return an(e)||e===47}function ho(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function on(e){e.forEach(function(t){if(delete t.location,Zr(t)||Qr(t))for(var n in t.options)delete t.options[n].location,on(t.options[n].value);else Yr(t)&&Kr(t.style)||(Xr(t)||qr(t))&&en(t.style)?delete t.style.location:Jr(t)&&on(t.children)})}function po(e,t){t===void 0&&(t={}),t=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new co(e,t).parse();if(n.err){var r=SyntaxError(E[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||on(n.val),n.val}var Le;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Le||(Le={}));var yt=function(e){vt(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tr=function(e){vt(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Le.INVALID_VALUE,a)||this}return t}(yt),go=function(e){vt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Le.INVALID_VALUE,i)||this}return t}(yt),bo=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Le.MISSING_VALUE,r)||this}return t}(yt),z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(z||(z={}));function vo(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==z.literal||n.type!==z.literal?t.push(n):r.value+=n.value,t},[])}function yo(e){return typeof e=="function"}function st(e,t,n,r,i,a,o){if(e.length===1&&Xn(e[0]))return[{type:z.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Xn(c)){s.push({type:z.literal,value:c.value});continue}if(ka(c)){typeof a=="number"&&s.push({type:z.literal,value:n.getNumberFormat(t).format(a)});continue}var f=c.value;if(!(i&&f in i))throw new bo(f,o);var m=i[f];if(Da(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?z.literal:z.object,value:m});continue}if(Xr(c)){var d=typeof c.style=="string"?r.date[c.style]:en(c.style)?c.style.parsedOptions:void 0;s.push({type:z.literal,value:n.getDateTimeFormat(t,d).format(m)});continue}if(qr(c)){var d=typeof c.style=="string"?r.time[c.style]:en(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:z.literal,value:n.getDateTimeFormat(t,d).format(m)});continue}if(Yr(c)){var d=typeof c.style=="string"?r.number[c.style]:Kr(c.style)?c.style.parsedOptions:void 0;d&&d.scale&&(m=m*(d.scale||1)),s.push({type:z.literal,value:n.getNumberFormat(t,d).format(m)});continue}if(Jr(c)){var v=c.children,b=c.value,_=i[b];if(!yo(_))throw new go(b,"function",o);var V=st(v,t,n,r,i,a),k=_(V.map(function(I){return I.value}));Array.isArray(k)||(k=[k]),s.push.apply(s,k.map(function(I){return{type:typeof I=="string"?z.literal:z.object,value:I}}))}if(Zr(c)){var x=c.options[m]||c.options.other;if(!x)throw new tr(c.value,m,Object.keys(c.options),o);s.push.apply(s,st(x.value,t,n,r,i));continue}if(Qr(c)){var x=c.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new yt(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var Xi=Object.defineProperty,qi=Object.defineProperties;var Zi=Object.getOwnPropertyDescriptors;var Dn=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable;var kt=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kn=(e,t)=>{for(var n in t||(t={}))Qi.call(t,n)&&kt(e,n,t[n]);if(Dn)for(var n of Dn(t))Ji.call(t,n)&&kt(e,n,t[n]);return e},Un=(e,t)=>qi(e,Zi(t));var j=(e,t,n)=>(kt(e,typeof t!="symbol"?t+"":t,n),n);var Ut=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{s(n.next(l))}catch(u){i(u)}},o=l=>{try{s(n.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((n=n.apply(e,t)).next())});require("../stencil/ui-image-EfKW3THf.cjs");function Y(){}function Br(e){return e()}function Wn(){return Object.create(null)}function Oe(e){e.forEach(Br)}function vn(e){return typeof e=="function"}function yn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let rt;function jn(e,t){return e===t?!0:(rt||(rt=document.createElement("a")),rt.href=t,e===rt.href)}function Ki(e){return Object.keys(e).length===0}function Mr(e,...t){if(e==null){for(const r of t)r(void 0);return Y}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ar(e,t,n){e.$$.on_destroy.push(Mr(t,n))}function y(e,t){e.appendChild(t)}function Nr(e,t,n){const r=ea(e);if(!r.getElementById(t)){const i=S("style");i.id=t,i.textContent=n,ta(r,i)}}function ea(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ta(e,t){return y(e.head||e,t),t.sheet}function M(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function wn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function S(e){return document.createElement(e)}function J(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function U(){return ae(" ")}function Pe(){return ae("")}function gt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function de(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:p(e,t,n)}function na(e){return Array.from(e.childNodes)}function he(e,t){t=""+t,e.data!==t&&(e.data=t)}function ra(e,t){e.value=t==null?"":t}function $n(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function Vn(e,t,n){e.classList.toggle(t,!!n)}class se{constructor(t=!1){j(this,"is_svg",!1);j(this,"e");j(this,"n");j(this,"t");j(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=J(n.nodeName):this.e=S(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)M(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(B)}}function ia(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let je;function We(e){je=e}function aa(){if(!je)throw new Error("Function called outside component initialization");return je}function Hr(e){aa().$$.on_mount.push(e)}const Ee=[],Ce=[];let Ge=[];const zn=[],Rr=Promise.resolve();let Qt=!1;function Dr(){Qt||(Qt=!0,Rr.then(G))}function Re(){return Dr(),Rr}function Jt(e){Ge.push(e)}const Wt=new Set;let we=0;function G(){if(we!==0)return;const e=je;do{try{for(;we<Ee.length;){const t=Ee[we];we++,We(t),oa(t.$$)}}catch(t){throw Ee.length=0,we=0,t}for(We(null),Ee.length=0,we=0;Ce.length;)Ce.pop()();for(let t=0;t<Ge.length;t+=1){const n=Ge[t];Wt.has(n)||(Wt.add(n),n())}Ge.length=0}while(Ee.length);for(;zn.length;)zn.pop()();Qt=!1,Wt.clear(),We(e)}function oa(e){if(e.fragment!==null){e.update(),Oe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Jt)}}function sa(e){const t=[],n=[];Ge.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ge=t}const la=new Set;function ua(e,t){e&&e.i&&(la.delete(e),e.i(t))}function $e(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ca(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Jt(()=>{const a=e.$$.on_mount.map(Br).filter(vn);e.$$.on_destroy?e.$$.on_destroy.push(...a):Oe(a),e.$$.on_mount=[]}),i.forEach(Jt)}function fa(e,t){const n=e.$$;n.fragment!==null&&(sa(n.after_update),Oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ha(e,t){e.$$.dirty[0]===-1&&(Ee.push(e),Dr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function kr(e,t,n,r,i,a,o=null,s=[-1]){const l=je;We(e);const u=e.$$={fragment:null,ctx:[],props:a,update:Y,not_equal:i,bound:Wn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Wn(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=n?n(e,t.props||{},(f,m,...d)=>{const v=d.length?d[0]:m;return u.ctx&&i(u.ctx[f],u.ctx[f]=v)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](v),c&&ha(e,f)),m}):[],u.update(),c=!0,Oe(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const f=na(t.target);u.fragment&&u.fragment.l(f),f.forEach(B)}else u.fragment&&u.fragment.c();t.intro&&ua(e.$$.fragment),ca(e,t.target,t.anchor),G()}We(l)}let Ur;typeof HTMLElement=="function"&&(Ur=class extends HTMLElement{constructor(t,n,r){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ut(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let o;return{c:function(){o=S("slot"),a!=="default"&&p(o,"name",a)},m:function(u,c){M(u,o,c)},d:function(u){u&&B(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=ia(this);for(const a of this.$$s)a in r&&(n[a]=[t(a)]);for(const a of this.attributes){const o=this.$$g_p(a.name);o in this.$$d||(this.$$d[o]=ot(o,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Un(kn({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const o=ot(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const o of this.$$l[a]){const s=this.$$c.$on(a,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ot(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function ot(e,t,n,r){var a;const i=(a=n[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Wr(e,t,n,r,i,a){let o=class extends Ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=ot(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),r.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=o,o}class jr{constructor(){j(this,"$$");j(this,"$$set")}$destroy(){fa(this,1),this.$destroy=Y}$on(t,n){if(!vn(n))return Y;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Ki(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ma="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ma);const _e=[];function da(e,t){return{subscribe:bt(e,t).subscribe}}function bt(e,t=Y){let n;const r=new Set;function i(s){if(yn(e,s)&&(e=s,n)){const l=!_e.length;for(const u of r)u[1](),_e.push(u,e);if(l){for(let u=0;u<_e.length;u+=2)_e[u][0](_e[u+1]);_e.length=0}}}function a(s){i(s(e))}function o(s,l=Y){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,a)||Y),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Fe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return da(n,(o,s)=>{let l=!1;const u=[];let c=0,f=Y;const m=()=>{if(c)return;f();const v=t(r?u[0]:u,o,s);a?o(v):f=vn(v)?v:Y},d=i.map((v,b)=>Mr(v,_=>{u[b]=_,c&=~(1<<b),l&&m()},()=>{c|=1<<b}));return l=!0,m(),function(){Oe(d),f(),l=!1}})}function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ga=function(t){return ba(t)&&!va(t)};function ba(e){return!!e&&typeof e=="object"}function va(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_a(e)}var ya=typeof Symbol=="function"&&Symbol.for,wa=ya?Symbol.for("react.element"):60103;function _a(e){return e.$$typeof===wa}function xa(e){return Array.isArray(e)?[]:{}}function Ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Te(xa(e),e,t):e}function Ea(e,t,n){return e.concat(t).map(function(r){return Ve(r,n)})}function Ca(e,t){if(!t.customMerge)return Te;var n=t.customMerge(e);return typeof n=="function"?n:Te}function Ga(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Yn(e){return Object.keys(e).concat(Ga(e))}function $r(e,t){try{return t in e}catch(n){return!1}}function Ta(e,t){return $r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Sa(e,t,n){var r={};return n.isMergeableObject(e)&&Yn(e).forEach(function(i){r[i]=Ve(e[i],n)}),Yn(t).forEach(function(i){Ta(e,i)||($r(e,i)&&n.isMergeableObject(t[i])?r[i]=Ca(i,n)(e[i],t[i],n):r[i]=Ve(t[i],n))}),r}function Te(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ea,n.isMergeableObject=n.isMergeableObject||ga,n.cloneUnlessOtherwiseSpecified=Ve;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):Sa(e,t,n):Ve(t,n)}Te.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Te(r,i,n)},{})};var La=Te,Ia=La;const Oa=pa(Ia);var Kt=function(e,t){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Kt(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ie.apply(this,arguments)};function Pa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function jt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function $t(e,t){var n=t&&t.cache?t.cache:Ra,r=t&&t.serializer?t.serializer:Na,i=t&&t.strategy?t.strategy:Ma;return i(e,{cache:n,serializer:r})}function Fa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ba(e,t,n,r){var i=Fa(r)?r:n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,r),t.set(i,a)),a}function Vr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(i,a)),a}function zr(e,t,n,r,i){return n.bind(t,e,r,i)}function Ma(e,t){var n=e.length===1?Ba:Vr;return zr(e,this,n,t.cache.create(),t.serializer)}function Aa(e,t){return zr(e,this,Vr,t.cache.create(),t.serializer)}var Na=function(){return JSON.stringify(arguments)},Ha=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ra={create:function(){return new Ha}},Vt={variadic:Aa},ct=function(){return ct=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ct.apply(this,arguments)};var E;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(E||(E={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(A||(A={}));var Se;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Se||(Se={}));function Xn(e){return e.type===A.literal}function Da(e){return e.type===A.argument}function Yr(e){return e.type===A.number}function Xr(e){return e.type===A.date}function qr(e){return e.type===A.time}function Zr(e){return e.type===A.select}function Qr(e){return e.type===A.plural}function ka(e){return e.type===A.pound}function Jr(e){return e.type===A.tag}function Kr(e){return!!(e&&typeof e=="object"&&e.type===Se.number)}function en(e){return!!(e&&typeof e=="object"&&e.type===Se.dateTime)}var ei=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ua=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Wa(e){var t={};return e.replace(Ua,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var H=function(){return H=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};var ja=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $a(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ja).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var f=c[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Va(e){return e.replace(/^(.*?)-/,"")}var qn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ti=/^(@+)?(\+|#+)?[rs]?$/g,za=/(\*)(0+)|(#+)(0+)|(0+)/g,ni=/^(0+)$/;function Zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ti,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function ri(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 Ya(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!ni.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qn(e){var t={},n=ri(e);return n||t}function Xa(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Va(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=H(H(H({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return H(H({},l),Qn(u))},{}));continue;case"engineering":t=H(H(H({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return H(H({},l),Qn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(za,function(l,u,c,f,m,d){if(u)t.minimumIntegerDigits=c.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ni.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(qn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qn,function(l,u,c,f,m,d){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&d?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+d.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=H(H({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=H(H({},t),Zn(a)));continue}if(ti.test(i.stem)){t=H(H({},t),Zn(i.stem));continue}var o=ri(i.stem);o&&(t=H(H({},t),o));var s=Ya(i.stem);s&&(t=H(H({},t),s))}return t}var it={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function qa(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),l="a",u=Za(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Za(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=it[r||""]||it[n||""]||it["".concat(n,"-001")]||it["001"];return i[0]}var zt,Qa=new RegExp("^".concat(ei.source,"*")),Ja=new RegExp("".concat(ei.source,"*$"));function C(e,t){return{start:e,end:t}}var Ka=!!String.prototype.startsWith&&"_a".startsWith("a",1),eo=!!String.fromCodePoint,to=!!Object.fromEntries,no=!!String.prototype.codePointAt,ro=!!String.prototype.trimStart,io=!!String.prototype.trimEnd,ao=!!Number.isSafeInteger,oo=ao?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},tn=!0;try{var so=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tn=((zt=so.exec("a"))===null||zt===void 0?void 0:zt[0])==="a"}catch(e){tn=!1}var Jn=Ka?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},nn=eo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Kn=to?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},ii=no?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},lo=ro?function(t){return t.trimStart()}:function(t){return t.replace(Qa,"")},uo=io?function(t){return t.trimEnd()}:function(t){return t.replace(Ja,"")};function ai(e,t){return new RegExp(e,t)}var rn;if(tn){var er=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rn=function(t,n){var r;er.lastIndex=n;var i=er.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else rn=function(t,n){for(var r=[];;){var i=ii(t,n);if(i===void 0||oi(i)||mo(i))break;r.push(i),n+=i>=65536?2:1}return nn.apply(void 0,r)};var co=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:A.pound,location:C(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(E.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&an(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:A.literal,value:"<".concat(i,"/>"),location:C(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!an(this.char()))return this.error(E.INVALID_TAG,C(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(E.UNMATCHED_CLOSING_TAG,C(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:o,location:C(r,this.clonePosition())},err:null}:this.error(E.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(E.UNCLOSED_TAG,C(r,this.clonePosition()))}else return this.error(E.INVALID_TAG,C(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ho(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=C(r,this.clonePosition());return{val:{type:A.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return nn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),nn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(E.EMPTY_ARGUMENT,C(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(E.MALFORMED_ARGUMENT,C(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:C(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(E.MALFORMED_ARGUMENT,C(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=rn(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=C(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(E.EXPECT_ARGUMENT_TYPE,C(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=uo(f.val);if(m.length===0)return this.error(E.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var d=C(c,this.clonePosition());u={style:m,styleLocation:d}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var b=C(i,this.clonePosition());if(u&&Jn(u==null?void 0:u.style,"::",0)){var _=lo(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(_,u.styleLocation);return f.err?f:{val:{type:A.number,value:r,location:b,style:f.val},err:null}}else{if(_.length===0)return this.error(E.EXPECT_DATE_TIME_SKELETON,b);var V=_;this.locale&&(V=qa(_,this.locale));var m={type:Se.dateTime,pattern:V,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Wa(V):{}},k=s==="date"?A.date:A.time;return{val:{type:k,value:r,location:b,style:m},err:null}}}return{val:{type:s==="number"?A.number:s==="date"?A.date:A.time,value:r,location:b,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS,C(x,ct({},x)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),I=0;if(s!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),I=f.val}var O=this.tryParsePluralOrSelectOptions(t,s,n,L);if(O.err)return O;var v=this.tryParseArgumentClose(i);if(v.err)return v;var K=C(i,this.clonePosition());return s==="select"?{val:{type:A.select,value:r,options:Kn(O.val),location:K},err:null}:{val:{type:A.plural,value:r,options:Kn(O.val),offset:I,pluralType:s==="plural"?"cardinal":"ordinal",location:K},err:null}}default:return this.error(E.INVALID_ARGUMENT_TYPE,C(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE,C(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=$a(t)}catch(i){return this.error(E.INVALID_NUMBER_SKELETON,n)}return{val:{type:Se.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Xa(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR,E.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=C(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?E.DUPLICATE_SELECT_ARGUMENT_SELECTOR:E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var b=this.tryParseArgumentClose(d);if(b.err)return b;s.push([u,{value:v.val,location:C(d,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return s.length===0?this.error(n==="select"?E.EXPECT_SELECT_ARGUMENT_SELECTOR:E.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(E.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=C(i,this.clonePosition());return a?(o*=r,oo(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ii(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Jn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function an(e){return e>=97&&e<=122||e>=65&&e<=90}function fo(e){return an(e)||e===47}function ho(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function on(e){e.forEach(function(t){if(delete t.location,Zr(t)||Qr(t))for(var n in t.options)delete t.options[n].location,on(t.options[n].value);else Yr(t)&&Kr(t.style)||(Xr(t)||qr(t))&&en(t.style)?delete t.style.location:Jr(t)&&on(t.children)})}function po(e,t){t===void 0&&(t={}),t=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new co(e,t).parse();if(n.err){var r=SyntaxError(E[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||on(n.val),n.val}var Le;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Le||(Le={}));var yt=function(e){vt(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tr=function(e){vt(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Le.INVALID_VALUE,a)||this}return t}(yt),go=function(e){vt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Le.INVALID_VALUE,i)||this}return t}(yt),bo=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Le.MISSING_VALUE,r)||this}return t}(yt),z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(z||(z={}));function vo(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==z.literal||n.type!==z.literal?t.push(n):r.value+=n.value,t},[])}function yo(e){return typeof e=="function"}function st(e,t,n,r,i,a,o){if(e.length===1&&Xn(e[0]))return[{type:z.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Xn(c)){s.push({type:z.literal,value:c.value});continue}if(ka(c)){typeof a=="number"&&s.push({type:z.literal,value:n.getNumberFormat(t).format(a)});continue}var f=c.value;if(!(i&&f in i))throw new bo(f,o);var m=i[f];if(Da(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?z.literal:z.object,value:m});continue}if(Xr(c)){var d=typeof c.style=="string"?r.date[c.style]:en(c.style)?c.style.parsedOptions:void 0;s.push({type:z.literal,value:n.getDateTimeFormat(t,d).format(m)});continue}if(qr(c)){var d=typeof c.style=="string"?r.time[c.style]:en(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:z.literal,value:n.getDateTimeFormat(t,d).format(m)});continue}if(Yr(c)){var d=typeof c.style=="string"?r.number[c.style]:Kr(c.style)?c.style.parsedOptions:void 0;d&&d.scale&&(m=m*(d.scale||1)),s.push({type:z.literal,value:n.getNumberFormat(t,d).format(m)});continue}if(Jr(c)){var v=c.children,b=c.value,_=i[b];if(!yo(_))throw new go(b,"function",o);var V=st(v,t,n,r,i,a),k=_(V.map(function(I){return I.value}));Array.isArray(k)||(k=[k]),s.push.apply(s,k.map(function(I){return{type:typeof I=="string"?z.literal:z.object,value:I}}))}if(Zr(c)){var x=c.options[m]||c.options.other;if(!x)throw new tr(c.value,m,Object.keys(c.options),o);s.push.apply(s,st(x.value,t,n,r,i));continue}if(Qr(c)){var x=c.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new yt(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,Le.MISSING_INTL_API,o);var L=n.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0));x=c.options[L]||c.options.other}if(!x)throw new tr(c.value,m,Object.keys(c.options),o);s.push.apply(s,st(x.value,t,n,r,i,m-(c.offset||0)));continue}}return vo(s)}function wo(e,t){return t?ie(ie(ie({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ie(ie({},e[r]),t[r]||{}),n},{})):e}function _o(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=wo(e[r],t[r]),n},ie({},e)):e}function Yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function xo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$t(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:Yt(e.number),strategy:Vt.variadic}),getDateTimeFormat:$t(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:Yt(e.dateTime),strategy:Vt.variadic}),getPluralRules:$t(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,jt([void 0],n,!1)))},{cache:Yt(e.pluralRules),strategy:Vt.variadic})}}var Eo=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=a.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(f,m){return!f.length||m.type!==z.literal||typeof f[f.length-1]!="string"?f.push(m.value):f[f.length-1]+=m.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return st(a.ast,a.locales,a.formatters,a.formats,l,void 0,a.message)},this.resolvedOptions=function(){var l;return{locale:((l=a.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Pa(o,["formatters"]);this.ast=e.__parse(t,ie(ie({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=_o(e.formats,r),this.formatters=i&&i.formatters||xo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=po,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Co(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const a=n.slice(i,n.length).join(".");if(a in r){r=r[a];break}}r=r[n[i]]}else r=void 0;return r}const fe={},Go=(e,t,n)=>n&&(t in fe||(fe[t]={}),e in fe[t]||(fe[t][e]=n),n),si=(e,t)=>{if(t==null)return;if(t in fe&&e in fe[t])return fe[t][e];const n=wt(t);for(let r=0;r<n.length;r++){const i=n[r],a=So(i,e);if(a)return Go(e,t,a)}};let _n;const Ye=bt({});function To(e){return _n[e]||null}function li(e){return e in _n}function So(e,t){if(!li(e))return null;const n=To(e);return Co(n,t)}function Lo(e){if(e==null)return;const t=wt(e);for(let n=0;n<t.length;n++){const r=t[n];if(li(r))return r}}function xn(e,...t){delete fe[e],Ye.update(n=>(n[e]=Oa.all([n[e]||{},...t]),n))}Fe([Ye],([e])=>Object.keys(e));Ye.subscribe(e=>_n=e);const lt={};function Io(e,t){lt[e].delete(t),lt[e].size===0&&delete lt[e]}function ui(e){return lt[e]}function Oo(e){return wt(e).map(t=>{const n=ui(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function sn(e){return e==null?!1:wt(e).some(t=>{var n;return(n=ui(t))==null?void 0:n.size})}function Po(e,t){return Promise.all(t.map(r=>(Io(e,r),r().then(i=>i.default||i)))).then(r=>xn(e,...r))}const De={};function ci(e){if(!sn(e))return e in De?De[e]:Promise.resolve();const t=Oo(e);return De[e]=Promise.all(t.map(([n,r])=>Po(n,r))).then(()=>{if(sn(e))return ci(e);delete De[e]}),De[e]}const Fo={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"}}},Bo={fallbackLocale:null,loadingDelay:200,formats:Fo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Mo=Bo;function Ie(){return Mo}const Xt=bt(!1);var Ao=Object.defineProperty,No=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,Ro=Object.prototype.hasOwnProperty,Do=Object.prototype.propertyIsEnumerable,rr=(e,t,n)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ko=(e,t)=>{for(var n in t||(t={}))Ro.call(t,n)&&rr(e,n,t[n]);if(nr)for(var n of nr(t))Do.call(t,n)&&rr(e,n,t[n]);return e},Uo=(e,t)=>No(e,Ho(t));let ln;const ft=bt(null);function ir(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function wt(e,t=Ie().fallbackLocale){const n=ir(e);return t?[...new Set([...n,...ir(t)])]:n}function be(){return ln!=null?ln:void 0}ft.subscribe(e=>{ln=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Wo=e=>{if(e&&Lo(e)&&sn(e)){const{loadingDelay:t}=Ie();let n;return typeof window!="undefined"&&be()!=null&&t?n=window.setTimeout(()=>Xt.set(!0),t):Xt.set(!0),ci(e).then(()=>{ft.set(e)}).finally(()=>{clearTimeout(n),Xt.set(!1)})}return ft.set(e)},ve=Uo(ko({},ft),{set:Wo}),_t=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var jo=Object.defineProperty,ht=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,ar=(e,t,n)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&ar(e,n,t[n]);if(ht)for(var n of ht(t))hi.call(t,n)&&ar(e,n,t[n]);return e},Be=(e,t)=>{var n={};for(var r in e)fi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ht)for(var r of ht(e))t.indexOf(r)<0&&hi.call(e,r)&&(n[r]=e[r]);return n};const ze=(e,t)=>{const{formats:n}=Ie();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$o=_t(e=>{var t=e,{locale:n,format:r}=t,i=Be(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=ze("number",r)),new Intl.NumberFormat(n,i)}),Vo=_t(e=>{var t=e,{locale:n,format:r}=t,i=Be(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=ze("date",r):Object.keys(i).length===0&&(i=ze("date","short")),new Intl.DateTimeFormat(n,i)}),zo=_t(e=>{var t=e,{locale:n,format:r}=t,i=Be(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=ze("time",r):Object.keys(i).length===0&&(i=ze("time","short")),new Intl.DateTimeFormat(n,i)}),Yo=(e={})=>{var t=e,{locale:n=be()}=t,r=Be(t,["locale"]);return $o(En({locale:n},r))},Xo=(e={})=>{var t=e,{locale:n=be()}=t,r=Be(t,["locale"]);return Vo(En({locale:n},r))},qo=(e={})=>{var t=e,{locale:n=be()}=t,r=Be(t,["locale"]);return zo(En({locale:n},r))},Zo=_t((e,t=be())=>new Eo(e,t,Ie().formats,{ignoreTag:Ie().ignoreTag})),Qo=(e,t={})=>{var n,r,i,a;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:l=be(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=si(e,l);if(!c)c=(a=(i=(r=(n=Ie()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?a:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!s)return c;let f=c;try{f=Zo(c,l).format(s)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return f},Jo=(e,t)=>qo(t).format(e),Ko=(e,t)=>Xo(t).format(e),es=(e,t)=>Yo(t).format(e),ts=(e,t=be())=>si(e,t),mi=Fe([ve,Ye],()=>Qo);Fe([ve],()=>Jo);Fe([ve],()=>Ko);Fe([ve],()=>es);Fe([ve,Ye],()=>ts);function di(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function un(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function pi(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -27,7 +27,7 @@ var kt = (e, t, n) => new Promise((r, i) => {
|
|
|
27
27
|
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, o);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-DmRWEjrp.js";
|
|
31
31
|
function X() {
|
|
32
32
|
}
|
|
33
33
|
function Or(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Be, $ as He, S as qe, i as We, f as L, s as Oe, c as Ue, b as Ve, n as le, d as E, r as Je, e as g, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as H, v as q, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-
|
|
1
|
+
import { a as Be, $ as He, S as qe, i as We, f as L, s as Oe, c as Ue, b as Ve, n as le, d as E, r as Je, e as g, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as H, v as q, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-DjZpzp1K.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
Be(a, e);
|
|
4
4
|
}
|
|
@@ -200,7 +200,7 @@ if (typeof window != "undefined") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-DjZpzp1K.js").then((e) => e.I).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Be, $ as He, c as qe, S as We, i as Oe, s as Ue, f as L, b as Ve, n as le, d as E, r as Je, e as f, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as B, v as H, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-
|
|
1
|
+
import { a as Be, $ as He, c as qe, S as We, i as Oe, s as Ue, f as L, b as Ve, n as le, d as E, r as Je, e as f, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as B, v as H, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-CEFu1pUm.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
Be(a, e);
|
|
4
4
|
}
|
|
@@ -200,7 +200,7 @@ if (typeof window < "u") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-CEFu1pUm.js").then((e) => e.I).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-CkVsqvtj.cjs");function K(n,t){e.addMessages(n,t)}function ye(n){e.$locale.set(n)}const X={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-CkVsqvtj.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Re(n){e.append_styles(n,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Ce(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Te;if(d[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),f=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=ne(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=se(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,f,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var I;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((I=h[53].advancedTags)==null?void 0:I.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&oe();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,f)},p(S,h){S[11]==="true"?m||(m=oe(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function oe(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,I,T,j,N,D,P,w=n[10]==="true"&&$(n);function F(_,R){return _[18]?Fe:Ce}let G=F(n),v=G(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),I=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",j=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,I),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),D||(P=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],D=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=$(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&j!==(j=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",j),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),D=!1,e.run_all(P)}}}let Ie=50;function je(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:I="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:D="false"}=t,P=window.navigator.userAgent,w=[],F=[],G={},v="",_,R=!0,x=!1,L=!1,E,A=!1,B,H,O=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{K(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(X).forEach(o=>{K(o,X[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,H=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),b.push(de(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=J(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}Y(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ce=()=>{N!="true"&&q()},ue=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),de=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(a(18,L=!1),b(G[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(G[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),he=()=>{const o=new URL(`${s}/v1/player/${H}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":B}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),O=b.items.map(k=>k.id)})},me=()=>{a(32,A=!0),a(19,B=l),a(20,H=c)},J=o=>O.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ke=new Date(C.schedules[0].startTime),W=new Date(C.schedules[0].endTime);e.differenceInMilliseconds(new Date(W),new Date(y))<b&&(b=e.differenceInMilliseconds(new Date(W),new Date(y)),k=z),e.isAfter(new Date(y),new Date(ke))&&e.isBefore(new Date(y),new Date(W))&&(p=o[k].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),Y(x)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ye(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const we=()=>Z(),be=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,a(14,E)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,I=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,j=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,D=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(P)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=J(b.id),b)))})}else R||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&me(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&j&&A&&he(),n.$$.dirty[0]&16392&&d&&E&&e.setClientStyling(E,d),n.$$.dirty[0]&16400&&m&&E&&e.setClientStylingURL(E,m),n.$$.dirty[0]&16388&&f&&E&&e.setStreamStyling(E,`${f}.Style`)},[s,u,f,d,m,S,h,g,I,j,N,D,v,R,E,w,_,x,L,B,H,r,P,V,ce,fe,q,Z,i,l,c,T,A,_e,Se,we,be,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,je,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Re,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=le;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-BwtM-S0z.cjs");function K(n,t){e.addMessages(n,t)}function ye(n){e.$locale.set(n)}const X={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-BwtM-S0z.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Re(n){e.append_styles(n,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Ce(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Te;if(d[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),f=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=ne(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=se(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,f,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var I;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((I=h[53].advancedTags)==null?void 0:I.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&oe();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,f)},p(S,h){S[11]==="true"?m||(m=oe(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function oe(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,I,T,j,N,D,P,w=n[10]==="true"&&$(n);function F(_,R){return _[18]?Fe:Ce}let G=F(n),v=G(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),I=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",j=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,I),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),D||(P=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],D=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=$(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&j!==(j=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",j),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),D=!1,e.run_all(P)}}}let Ie=50;function je(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:I="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:D="false"}=t,P=window.navigator.userAgent,w=[],F=[],G={},v="",_,R=!0,x=!1,L=!1,E,A=!1,B,H,O=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{K(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(X).forEach(o=>{K(o,X[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,H=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),b.push(de(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=J(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}Y(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ce=()=>{N!="true"&&q()},ue=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),de=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(a(18,L=!1),b(G[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(G[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),he=()=>{const o=new URL(`${s}/v1/player/${H}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":B}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),O=b.items.map(k=>k.id)})},me=()=>{a(32,A=!0),a(19,B=l),a(20,H=c)},J=o=>O.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ke=new Date(C.schedules[0].startTime),W=new Date(C.schedules[0].endTime);e.differenceInMilliseconds(new Date(W),new Date(y))<b&&(b=e.differenceInMilliseconds(new Date(W),new Date(y)),k=z),e.isAfter(new Date(y),new Date(ke))&&e.isBefore(new Date(y),new Date(W))&&(p=o[k].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),Y(x)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ye(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const we=()=>Z(),be=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,a(14,E)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,I=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,j=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,D=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(P)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=J(b.id),b)))})}else R||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&me(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&j&&A&&he(),n.$$.dirty[0]&16392&&d&&E&&e.setClientStyling(E,d),n.$$.dirty[0]&16400&&m&&E&&e.setClientStylingURL(E,m),n.$$.dirty[0]&16388&&f&&E&&e.setStreamStyling(E,`${f}.Style`)},[s,u,f,d,m,S,h,g,I,j,N,D,v,R,E,w,_,x,L,B,H,r,P,V,ce,fe,q,Z,i,l,c,T,A,_e,Se,we,be,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,je,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Re,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=le;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-Cy_jB6vG.cjs")).then(({default:t})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-CNPhlhaj.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-search-nd") && customElements.define("casino-search-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|