@everymatrix/casino-promotions 0.0.363 → 0.0.367

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/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # @everymatrix/casino-promotions
2
- ---------
3
-
4
- ## First step
5
- ---------
6
- ```
7
- lerna bootstrap
8
- ```
9
-
10
- ## Run Widget
11
- ---------
12
- - starts server at port 5050
13
- - has livereload
14
-
15
- ```
16
- yarn run dev
17
- ```
18
-
19
- ## Build Widget
20
- ---------
21
- ```
22
- yarn run build
23
- ```
24
-
25
- ## Publishing widget
26
- ---------
27
- - Note add your user to the npm
28
- ```
29
- lerna publish
30
- ```
1
+ # @everymatrix/casino-promotions
2
+ ---------
3
+
4
+ ## First step
5
+ ---------
6
+ ```
7
+ lerna bootstrap
8
+ ```
9
+
10
+ ## Run Widget
11
+ ---------
12
+ - starts server at port 5050
13
+ - has livereload
14
+
15
+ ```
16
+ yarn run dev
17
+ ```
18
+
19
+ ## Build Widget
20
+ ---------
21
+ ```
22
+ yarn run build
23
+ ```
24
+
25
+ ## Publishing widget
26
+ ---------
27
+ - Note add your user to the npm
28
+ ```
29
+ lerna publish
30
+ ```
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function b(){}function P(t){return t()}function N(){return Object.create(null)}function F(t){t.forEach(P)}function A(t){return"function"==typeof t}function I(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let f,Z,C;function W(t,e){return(f=f||document.createElement("a")).href=e,t===f.href}function O(t,...e){if(null==t)return b;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function $(t,e){t.appendChild(e)}function j(t,e,r){t.insertBefore(e,r||null)}function V(t){t.parentNode.removeChild(t)}function q(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function X(t){return document.createElement(t)}function e(t){return document.createTextNode(t)}function z(){return e(" ")}function K(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function Y(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function Q(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function J(t,e,r,o){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,o?"important":"")}function _(t){C=t}const E=[],x=[],M=[],R=[],U=Promise.resolve();let G=!1;function D(){G||(G=!0,U.then(y))}function tt(t){M.push(t)}const k=new Set;let et=0;function y(){const t=C;do{for(;et<E.length;){const t=E[et];et++,_(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),F(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(tt))}for(_(null),E.length=0,et=0;x.length;)x.pop()();for(let t=0;t<M.length;t+=1){const o=M[t];k.has(o)||(k.add(o),o())}}while(M.length=0,E.length);for(;R.length;)R.pop()();G=!1,k.clear(),_(t)}const rt=new Set;let ot;"function"==typeof HTMLElement&&(ot=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(P).filter(A);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){F(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(F(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=b}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const r=[];function nt(o,n=b){let i;const s=new Set;function a(t){if(I(o,t)&&(o=t,i)){const t=!r.length;for(const t of s)t[1](),r.push(t,o);if(t){for(let t=0;t<r.length;t+=2)r[t][0](r[t+1]);r.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=b){const r=[t,e];return s.add(r),1===s.size&&(i=n(a)||b),t(o),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function t(t,a,e){const l=!Array.isArray(t),h=l?[t]:t,c=a.length<2;return{subscribe:nt(e,e=>{let r=!1;const o=[];let n=0,i=b;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),c?e(t):i=A(t)?t:b)},t=h.map((t,e)=>O(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){F(t),i()}}).subscribe}}function it(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var e}var st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l(Array.isArray(t)?[]:{},t,e):t}function at(t,e,r){return t.concat(e).map(function(t){return a(t,r)})}function lt(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ht(t,e){try{return e in t}catch(t){return!1}}function ct(o,n,i){var s={};return i.isMergeableObject(o)&&lt(o).forEach(function(t){s[t]=a(o[t],i)}),lt(n).forEach(function(e){var t,r;(!ht(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ht(o,e)&&i.isMergeableObject(n[e])?s[e]=function(t){if(!t.customMerge)return l;t=t.customMerge(e);return"function"==typeof t?t:l}(i)(o[e],n[e],i):s[e]=a(n[e],i))}),s}function l(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||at,r.isMergeableObject=r.isMergeableObject||it,r.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):ct(t,e,r):a(e,r)}l.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return l(t,e,r)},{});throw new Error("first argument should be an array")};var ut=l,pt=function(t,e){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}pt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var d,v,g,T=function(){return(T=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function ft(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function dt(t){return t.type===v.literal}function gt(t){return t.type===v.number}function bt(t){return t.type===v.date}function _t(t){return t.type===v.time}function Et(t){return t.type===v.select}function yt(t){return t.type===v.plural}function vt(t){return t.type===v.tag}function Tt(t){return t&&"object"==typeof t&&t.type===g.number}function Ht(t){return t&&"object"==typeof t&&t.type===g.dateTime}(o=d=d||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=v=v||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=g=g||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var At=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?[rs]?$/g,St=/(\*)(0+)|(#+)(0+)|(0+)/g,Pt=/^(0+)$/;function Nt(t){var o={};return"r"===t[t.length-1]?o.roundingPriority="morePrecision":"s"===t[t.length-1]&&(o.roundingPriority="lessPrecision"),t.replace(Lt,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function It(t){switch(t){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 Ct(t){return It(t)||{}}function Ot(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=T(T(T({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return T(T({},t),Ct(e))},{}));continue;case"engineering":s=T(T(T({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return T(T({},t),Ct(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(St,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pt.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(wt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(wt,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var i=n.options[0];"w"===i?s=T(T({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=T(T({},s),Nt(i)))}else Lt.test(n.stem)?s=T(T({},s),Nt(n.stem)):((i=It(n.stem))&&(s=T(T({},s),i)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Pt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=T(T({},s),o)))}return s}var xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Mt=new RegExp("^".concat(o.source,"*")),Rt=new RegExp("".concat(o.source,"*$"));function H(t,e){return{start:t,end:e}}var o=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,Gt=!!Object.fromEntries,Dt=!!String.prototype.codePointAt,kt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,$t=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},jt=!0;try{jt="a"===(null==(i=Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:i[0])}catch(b){jt=!1}var Vt,Xt,zt=o?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Kt=Ut?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Yt=Gt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},Zt=Dt?function(t,e){return t.codePointAt(e)}:function(t,e){var r,o=t.length;if(!(e<0||o<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===o||(o=t.charCodeAt(e+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},Wt=kt?function(t){return t.trimStart()}:function(t){return t.replace(Mt,"")},qt=Ft?function(t){return t.trimEnd()}:function(t){return t.replace(Rt,"")};function Qt(t,e){return new RegExp(t,e)}Xt=jt?(Vt=Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Vt.lastIndex=e,null!=(e=Vt.exec(t)[1])?e:""}):function(t,e){for(var r,o=[];;){var n=Zt(t,e);if(void 0===n||ee(n)||(33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;o.push(n),e+=65536<=n?2:1}return Kt.apply(void 0,o)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(d.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&te(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:v.pound,location:H(i,this.clonePosition())})}}}return{val:o,err:null}},n.prototype.parseTag=function(t,e){var r=this.clonePosition(),o=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(o,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(d.INVALID_TAG,H(t,this.clonePosition()));var n=this.clonePosition();return o!==this.parseTagName()?this.error(d.UNMATCHED_CLOSING_TAG,H(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:o,children:e,location:H(r,this.clonePosition())},err:null}:this.error(d.INVALID_TAG,H(t,this.clonePosition())))}return this.error(d.UNCLOSED_TAG,H(r,this.clonePosition()))}return this.error(d.INVALID_TAG,H(r,this.clonePosition()))},n.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=H(r,this.clonePosition());return{val:{type:v.literal,value:o,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},n.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Kt.apply(void 0,e)},n.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Kt(r))},n.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(d.EMPTY_ARGUMENT,H(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(d.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:o,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(d.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:H(t,this.clonePosition())}},n.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(d.EXPECT_ARGUMENT_TYPE,H(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=qt(f.val)).length)return this.error(d.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:H(h,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var c=H(o,this.clonePosition());if(l&&zt(null==l?void 0:l.style,"::",0)){var u=Wt(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:v.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(d.EXPECT_DATE_TIME_SKELETON,c);var p=u,m=(this.locale&&(p=function(t,e){for(var r="",o=0;o<t.length;o++){var n=t.charAt(o);if("j"===n){for(var i=0;o+1<t.length&&t.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=t.language)&&(e=t.maximize().region),(xt[e||""]||xt[r||""]||xt["".concat(r,"-001")]||xt["001"])[0]}(e);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale)),{type:g.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(Bt,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}});return{val:{type:"date"===s?v.date:v.time,value:r,location:c,style:m},err:null}}return{val:{type:"number"===s?v.number:"date"===s?v.date:v.time,value:r,location:c,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS,H(p,T({},p)));this.bumpSpace();var f,m=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=f.val}l=this.tryParsePluralOrSelectOptions(t,s,e,m);if(l.err)return l;if((h=this.tryParseArgumentClose(o)).err)return h;u=H(o,this.clonePosition());return"select"===s?{val:{type:v.select,value:r,options:Yt(l.val),location:u},err:null}:{val:{type:v.plural,value:r,options:Yt(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(d.INVALID_ARGUMENT_TYPE,H(i,a))}},n.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(At).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(d.INVALID_NUMBER_SKELETON,e)}return{val:{type:g.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ot(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR,d.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=H(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===e?d.DUPLICATE_SELECT_ARGUMENT_SELECTOR:d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));h=this.parseMessage(t+1,e,r);if(h.err)return h;var u=this.tryParseArgumentClose(c);if(u.err)return u;i.push([a,{value:h.val,location:H(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===e?d.EXPECT_SELECT_ARGUMENT_SELECTOR:d.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(d.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:i,err:null}},n.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=H(o,this.clonePosition());return n?$t(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Zt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},n.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},n.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},n.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},n.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 e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&ee(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var Jt=n;function n(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function te(t){return 97<=t&&t<=122||65<=t&&t<=90}function ee(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function re(t,e){e=T({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new Jt(t,e).parse();if(t.err)throw(r=SyntaxError(d[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,Et(t)||yt(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else gt(t)&&Tt(t.style)||(bt(t)||_t(t))&&Ht(t.style)?delete t.style.location:vt(t)&&r(t.children)})}(t.val),t.val}function oe(t,e){var r=e&&e.cache?e.cache:he,o=e&&e.serializer?e.serializer:ae;return(e&&e.strategy?e.strategy:function(t,e){return se(t,this,1===t.length?ne:ie,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ne(t,e,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=e.get(r);return void 0===n&&(n=t.call(this,o),e.set(r,n)),n}function ie(t,e,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),n=e.get(r);return void 0===n&&(n=t.apply(this,o),e.set(r,n)),n}function se(t,e,r,o,n){return r.bind(e,t,o,n)}var ae=function(){return JSON.stringify(arguments)};function le(){this.cache=Object.create(null)}le.prototype.get=function(t){return this.cache[t]},le.prototype.set=function(t,e){this.cache[t]=e};var B,i,he={create:function(){return new le}},ce={variadic:function(t,e){return se(t,this,ie,e.cache.create(),e.serializer)},monadic:function(t,e){return se(t,this,ne,e.cache.create(),e.serializer)}};(i=B=B||{}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API";mt(Te,fe=Error),Te.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,ue,pe,me,fe,de=Te,ge=(mt(ve,me=de),ve),be=(mt(ye,pe=de),ye),_e=(mt(Ee,ue=de),Ee);function Ee(t,e){return ue.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),B.MISSING_VALUE,e)||this}function ye(t,e,r){return pe.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),B.INVALID_VALUE,r)||this}function ve(t,e,r,o){return me.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),B.INVALID_VALUE,o)||this}function Te(t,e,r){t=fe.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function He(t,e,r,o,n,i,s){if(1===t.length&&dt(t[0]))return[{type:w.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var c=h[l];if(dt(c))a.push({type:w.literal,value:c.value});else if(c.type===v.pound)"number"==typeof i&&a.push({type:w.literal,value:r.getNumberFormat(e).format(i)});else{var u=c.value;if(!(n&&u in n))throw new _e(u,s);u=n[u];if(c.type===v.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?w.literal:w.object,value:u});else if(bt(c)){var p="string"==typeof c.style?o.date[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(e,p).format(u)})}else if(_t(c))p="string"==typeof c.style?o.time[c.style]:Ht(c.style)?c.style.parsedOptions:o.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(e,p).format(u)});else if(gt(c))(p="string"==typeof c.style?o.number[c.style]:Tt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:w.literal,value:r.getNumberFormat(e,p).format(u)});else{if(vt(c)){var m=c.children,f=c.value,d=n[f];if("function"!=typeof d)throw new be(f,"function",s);f=d(He(m,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(t){return{type:"string"==typeof t?w.literal:w.object,value:t}}))}if(Et(c)){if(!(g=c.options[u]||c.options.other))throw new ge(c.value,u,Object.keys(c.options),s);a.push.apply(a,He(g.value,e,r,o,n))}else if(yt(c)){if(!(g=c.options["=".concat(u)])){if(!Intl.PluralRules)throw new de('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',B.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:c.pluralType}).select(u-(c.offset||0)),g=c.options[d]||c.options.other}if(!g)throw new ge(c.value,u,Object.keys(c.options),s);a.push.apply(a,He(g.value,e,r,o,n,u-(c.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===w.literal&&e.type===w.literal?r.value+=e.value:t.push(e),t},[])}function Be(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(o=w=w||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},h.__parse=re,h.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Ae=h;function h(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=h.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===w.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return He(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=h.resolveLocale(e),"string"==typeof t){if(this.message=t,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,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=(n=h.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?T(T(T({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=T(T({},r[e]),o[e]||{}),t},{})):r),t},T({},n)):n),this.formatters=o&&o.formatters||{getNumberFormat:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ft([void 0],e,!1)))},{cache:Be((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:ce.variadic}),getDateTimeFormat:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ft([void 0],e,!1)))},{cache:Be(e.dateTime),strategy:ce.variadic}),getPluralRules:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ft([void 0],e,!1)))},{cache:Be(e.pluralRules),strategy:ce.variadic})}}const s={},we=(t,e,r)=>r&&(e in s||(s[e]={}),t in s[e]||(s[e][t]=r),r),Le=(e,r)=>{if(null!=r){if(r in s&&e in s[r])return s[r][e];var o=De(r);for(let t=0;t<o.length;t++){var n=function(t,r){if(!Pe(t))return null;t=function(t){return Se[t]||null}(t);{var o=r;if(null==o)return;if(o in t)return t[o];const n=o.split(".");let e=t;for(let t=0;t<n.length;t++)if("object"==typeof e){if(0<t){const o=n.slice(t,n.length).join(".");if(o in e){e=e[o];break}}e=e[n[t]]}else e=void 0;return e}}(o[t],e);if(n)return we(e,r,n)}}};let Se;const L=nt({});function Pe(t){return t in Se}function Ne(e,...r){delete s[e],L.update(t=>(t[e]=ut.all([t[e]||{},...r]),t))}t([L],([t])=>Object.keys(t)),L.subscribe(t=>Se=t);const Ie={};function Ce(t){return Ie[t]}function Oe(t){return null!=t&&De(t).some(t=>{return null==(t=Ce(t))?void 0:t.size})}const c={};function xe(t){if(!Oe(t))return t in c?c[t]:Promise.resolve();const e=De(t).map(t=>{var e=Ce(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return c[t]=Promise.all(e.map(([t,e])=>{{var o=t;t=e;const r=Promise.all(t.map(t=>{var e=o,r=t;return Ie[e].delete(r),0===Ie[e].size&&delete Ie[e],t().then(t=>t.default||t)}));return r.then(t=>Ne(o,...t))}})).then(()=>{if(Oe(t))return xe(t);delete c[t]}),c[t]}function u(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const p={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Me=nt(!1);let Re;const Ue=nt(null);function Ge(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function De(t,e=p.fallbackLocale){t=Ge(t);return e?[...new Set([...t,...Ge(e)])]:t}function m(){return null!=Re?Re:void 0}Ue.subscribe(t=>{Re=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const S=Object.assign(Object.assign({},Ue),{set:e=>{if(e&&function(t){if(null!=t){var e=De(t);for(let t=0;t<e.length;t++){var r=e[t];if(Pe(r))return r}}}(e)&&Oe(e)){var r=p["loadingDelay"];let t;return"undefined"!=typeof window&&null!=m()&&r?t=window.setTimeout(()=>Me.set(!0),r):Me.set(!0),xe(e).then(()=>{Ue.set(e)}).finally(()=>{clearTimeout(t),Me.set(!1)})}return Ue.set(e)}}),ke=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Fe=(t,e)=>{var r=p["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},$e=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Fe("number",r)),new Intl.NumberFormat(e,t)}),je=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Fe("date",r):0===Object.keys(t).length&&(t=Fe("date","short")),new Intl.DateTimeFormat(e,t)}),Ve=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Fe("time",r):0===Object.keys(t).length&&(t=Fe("time","short")),new Intl.DateTimeFormat(e,t)}),Xe=ke((t,e=m())=>new Ae(t,e,p.formats,{ignoreTag:p.ignoreTag})),ze=t([S,L],()=>(t,e={})=>{var r,o;let n=e;"object"==typeof t&&(t=(n=t).id);var{values:i,locale:s=m(),default:a}=n;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Le(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=p).handleMissingMessage)?void 0:r.call(o,{locale:s,id:t,defaultValue:a}))?r:a)?o:t;if(!i)return l;let h=l;try{h=Xe(l,s).format(i)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h}),Ke=(t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return Ve(Object.assign({locale:e},t))})(e).format(t)),t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return je(Object.assign({locale:e},t))})(e).format(t)),t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return $e(Object.assign({locale:e},t))})(e).format(t)),t([S,L],()=>(t,e=m())=>Le(t,e)),{en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment."}},zh:{promotions:{promotionsTitle:"促銷活動",promotionsButton:"更多信息",promotionsNone:"目前沒有促銷活動。"}},fr:{promotions:{promotionsTitle:"Promotions",promotionsButton:"Plus d'informations",promotionsNone:"Il n'y a pas de promotions disponibles pour le moment."}},tr:{promotions:{promotionsTitle:"Promosyonlar",promotionsButton:"Daha fazla bilgi",promotionsNone:"Şu anda herhangi bir promosyon bulunmamaktadır."}},ro:{promotions:{promotionsTitle:"Promotii",promotionsButton:"Detalii",promotionsNone:"Nu avem promotii disponibile momentan."}},es:{promotions:{promotionsTitle:"Promociones",promotionsButton:"Mas informaciones",promotionsNone:"Actualmente no hay promociones disponibles."}},pt:{promotions:{promotionsTitle:"Promoções",promotionsButton:"Mais informações",promotionsNone:"Não há promoções disponíveis no momento."}}});function Ye(t,e,r){const o=t.slice();return o[29]=e[r],o[31]=r,o}function Ze(t,e,r){const o=t.slice();return o[32]=e[r],o}function We(t,e,r){const o=t.slice();return o[35]=e[r],o}function qe(t,e,r){const o=t.slice();return o[32]=e[r],o}function Qe(r){let o,i,n,s,a,l,h,c,u,p,m,f,d,g,b,_,t,E,y,v,T,H,B,A,U,w,L,S,G,P,D,N=r[12]("promotions.promotionsTitle")+"";function k(t){return 0<t[3].length?tr:Je}let I=k(r),C=I(r),O=r[9],x=[];for(let t=0;t<O.length;t+=1)x[t]=or(Ze(r,O,t));let M=r[10],R=[];for(let t=0;t<M.length;t+=1)R[t]=nr(Ye(r,M,t));return{c(){o=X("section"),i=X("div"),n=X("h1"),s=e(N),a=z(),C.c(),l=z(),h=X("div"),c=X("div"),u=z(),p=X("div"),(m=X("div")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',f=z(),d=X("div"),g=X("picture");for(let t=0;t<x.length;t+=1)x[t].c();b=z(),_=X("img"),E=z(),y=X("div"),v=X("div"),T=X("ul");for(let t=0;t<R.length;t+=1)R[t].c();H=z(),B=X("div"),A=X("h3"),U=z(),w=X("div"),Y(n,"class","promotions__title"),Y(n,"part","promotions__title"),Y(c,"class","modal__backdrop"),Y(c,"part","modal__backdrop"),Y(m,"class","modal__close"),Y(m,"part","modal__close"),W(_.src,t=r[8])||Y(_,"src",t),Y(_,"alt",r[6]),Y(g,"class","modal__picture"),Y(g,"part","modal__picture"),Y(d,"class","modal__header"),Y(d,"part","modal__header"),Y(T,"class","modal__tabs"),Y(T,"part","modal__tabs"),Y(A,"class","modal__body_title"),Y(A,"part","modal__body_title"),Y(w,"class","modal__tab_content"),Y(w,"part","modal__tab_content"),Y(B,"class","modal__tabContentWrapper"),Y(B,"part","modal__tabContentWrapper"),Y(v,"class","modal__body_content"),Y(v,"part","modal__body_content"),Y(y,"class","modal__body"),Y(y,"part","modal__body"),Y(p,"class","modal__content"),Y(p,"part","modal__content"),Y(h,"class","promo__modal modal"),Y(h,"part","promo__modal modal"),Y(i,"class",L="promotions "+r[4]),Y(i,"part",S="promotions "+r[4]),J(i,"max-width",r[0]+"px"),tt(()=>r[21].call(i)),Y(o,"class","promotion__section"),Y(o,"part","promotion__section")},m(t,e){j(t,o,e),$(o,i),$(i,n),$(n,s),$(i,a),C.m(i,null),$(i,l),$(i,h),$(h,c),$(h,u),$(h,p),$(p,m),$(p,f),$(p,d),$(d,g);for(let t=0;t<x.length;t+=1)x[t].m(g,null);$(g,b),$(g,_),$(p,E),$(p,y),$(y,v),$(v,T);for(let t=0;t<R.length;t+=1)R[t].m(T,null);$(v,H),$(v,B),$(B,A),A.innerHTML=r[6],$(B,U),$(B,w),w.innerHTML=r[7],r[20](v),G=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=X("iframe"),o=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===Z){Z=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){Z=!0}}return Z}());let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=K(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=K(r.contentWindow,"resize",e)}),$(t,r),()=>{(o||n&&r.contentWindow)&&n(),V(r)}}(i,r[21].bind(i)),r[22](i),P||(D=[K(c,"click",r[14]),K(m,"click",r[14])],P=!0)},p(e,r){if(4096&r[0]&&N!==(N=e[12]("promotions.promotionsTitle")+"")&&Q(s,N),I===(I=k(e))&&C?C.p(e,r):(C.d(1),(C=I(e))&&(C.c(),C.m(i,l))),512&r[0]){let t;for(O=e[9],t=0;t<O.length;t+=1){var o=Ze(e,O,t);x[t]?x[t].p(o,r):(x[t]=or(o),x[t].c(),x[t].m(g,b))}for(;t<x.length;t+=1)x[t].d(1);x.length=O.length}if(256&r[0]&&!W(_.src,t=e[8])&&Y(_,"src",t),64&r[0]&&Y(_,"alt",e[6]),33792&r[0]){let t;for(M=e[10],t=0;t<M.length;t+=1){var n=Ye(e,M,t);R[t]?R[t].p(n,r):(R[t]=nr(n),R[t].c(),R[t].m(T,null))}for(;t<R.length;t+=1)R[t].d(1);R.length=M.length}64&r[0]&&(A.innerHTML=e[6]),128&r[0]&&(w.innerHTML=e[7]),16&r[0]&&L!==(L="promotions "+e[4])&&Y(i,"class",L),16&r[0]&&S!==(S="promotions "+e[4])&&Y(i,"part",S),1&r[0]&&J(i,"max-width",e[0]+"px")},d(t){t&&V(o),C.d(),q(x,t),q(R,t),r[20](null),G(),r[22](null),P=!1,F(D)}}}function Je(t){let r,o,n=t[12]("promotions.promotionsNone")+"";return{c(){r=X("p"),o=e(n),Y(r,"class","promotions__none")},m(t,e){j(t,r,e),$(r,o)},p(t,e){4096&e[0]&&n!==(n=t[12]("promotions.promotionsNone")+"")&&Q(o,n)},d(t){t&&V(r)}}}function tr(e){let n,i=e[3],s=[];for(let t=0;t<i.length;t+=1)s[t]=rr(We(e,i,t));return{c(){n=X("div");for(let t=0;t<s.length;t+=1)s[t].c();Y(n,"class","promotions__grid"),Y(n,"part","promotions__grid")},m(t,e){j(t,n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(e,r){if(12296&r[0]){let t;for(i=e[3],t=0;t<i.length;t+=1){var o=We(e,i,t);s[t]?s[t].p(o,r):(s[t]=rr(o),s[t].c(),s[t].m(n,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){t&&V(n),q(s,t)}}}function er(t){let r,o,n;return{c(){Y(r=X("source"),"srcset",o=t[32].pictureSource),Y(r,"media",n="("+t[32].media+")")},m(t,e){j(t,r,e)},p(t,e){8&e[0]&&o!==(o=t[32].pictureSource)&&Y(r,"srcset",o),8&e[0]&&n!==(n="("+t[32].media+")")&&Y(r,"media",n)},d(t){t&&V(r)}}}function rr(r){let o,n,i,s,a,l,h,c,u,p,m,f,d,g,b,_,E,y=r[35].title+"",v=r[35].content.split("</p>")[0]+"",T=r[12]("promotions.promotionsButton")+"",H=r[35].image.sources,B=[];for(let t=0;t<H.length;t+=1)B[t]=er(qe(r,H,t));return{c(){o=X("div"),n=X("picture");for(let t=0;t<B.length;t+=1)B[t].c();i=z(),s=X("img"),h=z(),c=X("div"),u=X("h2"),p=z(),m=X("div"),f=z(),d=X("button"),g=e(T),b=z(),W(s.src,a=r[35].image.src)||Y(s,"src",a),Y(s,"alt",l=r[35].title),Y(n,"class","promo__picture"),Y(n,"part","promo__picture"),Y(u,"class","promo__title"),Y(u,"part","promo__title"),Y(m,"class","promo__content text--ellipsis"),Y(m,"part","promo__content text--ellipsis"),Y(d,"class","promo__button"),Y(d,"part","promo__button"),Y(c,"class","promo__details"),Y(c,"part","promo__details"),Y(o,"class","promo"),Y(o,"part","promo")},m(t,e){j(t,o,e),$(o,n);for(let t=0;t<B.length;t+=1)B[t].m(n,null);$(n,i),$(n,s),$(o,h),$(o,c),$(c,u),u.innerHTML=y,$(c,p),$(c,m),m.innerHTML=v,$(c,f),$(c,d),$(d,g),$(o,b),_||(E=K(d,"click",function(){A(r[13](r[35]))&&r[13](r[35]).apply(this,arguments)}),_=!0)},p(t,e){if(r=t,8&e[0]){let t;for(H=r[35].image.sources,t=0;t<H.length;t+=1){const s=qe(r,H,t);B[t]?B[t].p(s,e):(B[t]=er(s),B[t].c(),B[t].m(n,i))}for(;t<B.length;t+=1)B[t].d(1);B.length=H.length}8&e[0]&&!W(s.src,a=r[35].image.src)&&Y(s,"src",a),8&e[0]&&l!==(l=r[35].title)&&Y(s,"alt",l),8&e[0]&&y!==(y=r[35].title+"")&&(u.innerHTML=y),8&e[0]&&v!==(v=r[35].content.split("</p>")[0]+"")&&(m.innerHTML=v),4096&e[0]&&T!==(T=r[12]("promotions.promotionsButton")+"")&&Q(g,T)},d(t){t&&V(o),q(B,t),_=!1,E()}}}function or(t){let r,o,n;return{c(){Y(r=X("source"),"srcset",o=t[32].pictureSource),Y(r,"media",n="("+t[32].media+")")},m(t,e){j(t,r,e)},p(t,e){512&e[0]&&o!==(o=t[32].pictureSource)&&Y(r,"srcset",o),512&e[0]&&n!==(n="("+t[32].media+")")&&Y(r,"media",n)},d(t){t&&V(r)}}}function nr(r){let o,n,t,i,s,a=r[29].tabDesc+"";return{c(){o=X("li"),n=e(a),Y(o,"class","modal__tab"),Y(o,"part","modal__tab"),Y(o,"id",t="tab-"+r[31])},m(t,e){j(t,o,e),$(o,n),i||(s=K(o,"click",function(){A(r[15](r[29],r[31]))&&r[15](r[29],r[31]).apply(this,arguments)}),i=!0)},p(t,e){r=t,1024&e[0]&&a!==(a=r[29].tabDesc+"")&&Q(n,a)},d(t){t&&V(o),i=!1,s()}}}function ir(t){let r,o=!0!==t[2]&&Qe(t);return{c(){o&&o.c(),r=e(""),this.c=b},m(t,e){o&&o.m(t,e),j(t,r,e)},p(t,e){!0!==t[2]?o?o.p(t,e):((o=Qe(t)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i:b,o:b,d(t){o&&o.d(t),t&&V(r)}}}function sr(e,t,r){let o;var n,i,s=ze;e.$$.on_destroy.push(O(s,t=>r(12,o=t)));let a,l,h,c,u,p,{endpoint:m=""}=t,{lang:f=""}=t,{env:d=""}=t,{containermaxwidth:g=""}=t,{userroles:b=""}=t,_=!1,E=[],y,v,T,H,B=[];({withLocale:n,translations:i}={withLocale:"en",translations:{}}),S.subscribe(t=>{null==t&&(L.set(i),S.set(n))}),Object.keys(Ke).forEach(t=>{Ne(t,Ke[t])});const A=(t,e)=>{p.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=p.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");p.querySelector("#tab-"+e).classList.add("modal__tab--active")},w={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return e.$$set=t=>{"endpoint"in t&&r(16,m=t.endpoint),"lang"in t&&r(17,f=t.lang),"env"in t&&r(18,d=t.env),"containermaxwidth"in t&&r(0,g=t.containermaxwidth),"userroles"in t&&r(19,b=t.userroles)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(4,l=Object.entries(w).reduce((t,[e,r])=>[...t,a>=r?e:""],[]).join(" ")),131072&e.$$.dirty[0]&&f&&(t=f,S.set(t)),983040&e.$$.dirty[0]&&m&&f&&d&&b){r(2,_=!0);let t=new URL(`${m}/${f}/promotions?env=`+d);t.searchParams.append("userRoles",b),fetch(t.href).then(t=>t.json()).then(t=>{r(2,_=!1),r(3,E=t)}).catch(t=>{r(2,_=!1),console.error(t)})}var t},[g,a,_,E,l,h,"","",{},[],B,p,o,async t=>{r(6,y=t.title),r(7,v=t.content),r(8,T=t.image.src),r(9,H=t.image.sources),r(10,B=[{order:"0",tabContent:v,tabDesc:"Description"},...t.tabs]),c=h.querySelector(".modal"),u=window.document.querySelector("body"),c.classList.add("modal--open"),u.style.overflow="hidden",D(),await U,A(B[0],0)},()=>{c=h.querySelector(".modal"),u=window.document.querySelector("body"),c.classList.remove("modal--open"),u.style.overflow="initial"},A,m,f,d,b,function(t){x[t?"unshift":"push"](()=>{p=t,r(11,p)})},function(){a=this.clientWidth,r(1,a)},function(t){x[t?"unshift":"push"](()=>{h=t,r(5,h)})}]}class ar extends ot{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__section{--bg-color:var(--emfe-w-color-contrast, #07072A);--text-color:var(--emfe-w-color-white, #FFFFFF);--text-color-black:var(--emfe-w-color-black, #000000);--text-color-red:var(--emfe-w-color-secondary, #FD2839);--border-color:var(--emfe-w-color-gray-300, #58586B);--modal-bg-color:var(--emfe-w-color-gray-50, #F9F8F8);--modal-tabs-text-color:var(--emfe-w-color-gray-150, #828282);--modal-tabs-color:var(--emfe-w-color-gray-100, #E6E6E6);--modal-active-tab-color:var(--emfe-w-color-contrast, #07072A);--modal-title-color:var(--emfe-w-color-primary, #D0046C);width:100%;background-color:var(--bg-color)}.promotions{margin:0 auto;padding:24px 0;color:var(--text-color)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--border-color);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--text-color)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background:black;background:linear-gradient(0deg, black 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--text-color);border:1px solid var(--text-color);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--modal-title-color);border:1px solid var(--modal-title-color)}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--bg-color);opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--modal-bg-color);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--text-color)}.modal__close:hover{color:var(--text-color-red)}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--text-color-black);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--modal-title-color)}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:'';position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--modal-tabs-color);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--modal-tabs-text-color);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--modal-active-tab-color);z-index:130}.modal__tab--active:before{content:'';left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--modal-active-tab-color)}.modal__tab:hover{color:var(--bg-color)}</style>";{var n=this,e={target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},r=sr,i=ir,s=I,a={endpoint:16,lang:17,env:18,containermaxwidth:0,userroles:19},l=null,h=[-1,-1],c=C;_(n);const p=n.$$={fragment:null,ctx:null,props:a,update:b,not_equal:s,bound:N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:N(),dirty:h,skip_bound:!1,root:e.target||c.$$.root};l&&l(p.root);let o=!1;if(p.ctx=r?r(n,e.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),o&&(r=t,-1===(t=n).$$.dirty[0]&&(E.push(t),D(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],p.update(),o=!0,F(p.before_update),p.fragment=!!i&&i(p.ctx),e.target){if(e.hydrate){a=e.target;const b=Array.from(a.childNodes);p.fragment&&p.fragment.l(b),b.forEach(V)}else p.fragment&&p.fragment.c();e.intro&&(h=n.$$.fragment)&&h.i&&(rt.delete(h),h.i(void 0));{var u=n;l=e.target;r=e.anchor;i=e.customElement;const{fragment:m,on_mount:f,on_destroy:d,after_update:g}=u.$$;m&&m.m(l,r),i||tt(()=>{var t=f.map(P).filter(A);d?d.push(...t):F(t),u.$$.on_mount=[]}),g.forEach(tt)}y()}_(c)}t&&(t.target&&j(t.target,this,t.anchor),t.props&&(this.$set(t.props),y()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth","userroles"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),y()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),y()}get env(){return this.$$.ctx[18]}set env(t){this.$$set({env:t}),y()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$$set({containermaxwidth:t}),y()}get userroles(){return this.$$.ctx[19]}set userroles(t){this.$$set({userroles:t}),y()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",ar),ar});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function b(){}function P(t){return t()}function N(){return Object.create(null)}function F(t){t.forEach(P)}function A(t){return"function"==typeof t}function I(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let f,Z,C;function W(t,e){return(f=f||document.createElement("a")).href=e,t===f.href}function O(t,...e){if(null==t)return b;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function $(t,e){t.appendChild(e)}function j(t,e,r){t.insertBefore(e,r||null)}function V(t){t.parentNode.removeChild(t)}function q(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function X(t){return document.createElement(t)}function e(t){return document.createTextNode(t)}function z(){return e(" ")}function K(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function Y(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function Q(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function J(t,e,r,o){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,o?"important":"")}function _(t){C=t}const E=[],x=[],M=[],R=[],U=Promise.resolve();let G=!1;function D(){G||(G=!0,U.then(y))}function tt(t){M.push(t)}const k=new Set;let et=0;function y(){const t=C;do{for(;et<E.length;){const t=E[et];et++,_(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),F(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(tt))}for(_(null),E.length=0,et=0;x.length;)x.pop()();for(let t=0;t<M.length;t+=1){const o=M[t];k.has(o)||(k.add(o),o())}}while(M.length=0,E.length);for(;R.length;)R.pop()();G=!1,k.clear(),_(t)}const rt=new Set;let ot;"function"==typeof HTMLElement&&(ot=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(P).filter(A);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){F(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(F(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=b}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const r=[];function nt(o,n=b){let i;const s=new Set;function a(t){if(I(o,t)&&(o=t,i)){const t=!r.length;for(const t of s)t[1](),r.push(t,o);if(t){for(let t=0;t<r.length;t+=2)r[t][0](r[t+1]);r.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=b){const r=[t,e];return s.add(r),1===s.size&&(i=n(a)||b),t(o),()=>{s.delete(r),0===s.size&&(i(),i=null)}}}}function t(t,a,e){const l=!Array.isArray(t),h=l?[t]:t,c=a.length<2;return{subscribe:nt(e,e=>{let r=!1;const o=[];let n=0,i=b;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),c?e(t):i=A(t)?t:b)},t=h.map((t,e)=>O(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){F(t),i()}}).subscribe}}function it(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var e}var st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l(Array.isArray(t)?[]:{},t,e):t}function at(t,e,r){return t.concat(e).map(function(t){return a(t,r)})}function lt(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ht(t,e){try{return e in t}catch(t){return!1}}function ct(o,n,i){var s={};return i.isMergeableObject(o)&&lt(o).forEach(function(t){s[t]=a(o[t],i)}),lt(n).forEach(function(e){var t,r;(!ht(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ht(o,e)&&i.isMergeableObject(n[e])?s[e]=function(t){if(!t.customMerge)return l;t=t.customMerge(e);return"function"==typeof t?t:l}(i)(o[e],n[e],i):s[e]=a(n[e],i))}),s}function l(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||at,r.isMergeableObject=r.isMergeableObject||it,r.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):ct(t,e,r):a(e,r)}l.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return l(t,e,r)},{});throw new Error("first argument should be an array")};var ut=l,pt=function(t,e){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}pt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var d,v,g,T=function(){return(T=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function ft(t,e,r){if(r||2===arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||((o=o||Array.prototype.slice.call(e,0,n))[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function dt(t){return t.type===v.literal}function gt(t){return t.type===v.number}function bt(t){return t.type===v.date}function _t(t){return t.type===v.time}function Et(t){return t.type===v.select}function yt(t){return t.type===v.plural}function vt(t){return t.type===v.tag}function Tt(t){return t&&"object"==typeof t&&t.type===g.number}function Ht(t){return t&&"object"==typeof t&&t.type===g.dateTime}(o=d=d||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=v=v||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=g=g||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var At=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?[rs]?$/g,St=/(\*)(0+)|(#+)(0+)|(0+)/g,Pt=/^(0+)$/;function Nt(t){var o={};return"r"===t[t.length-1]?o.roundingPriority="morePrecision":"s"===t[t.length-1]&&(o.roundingPriority="lessPrecision"),t.replace(Lt,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function It(t){switch(t){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 Ct(t){return It(t)||{}}function Ot(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=T(T(T({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return T(T({},t),Ct(e))},{}));continue;case"engineering":s=T(T(T({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return T(T({},t),Ct(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(St,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pt.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(wt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(wt,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var i=n.options[0];"w"===i?s=T(T({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=T(T({},s),Nt(i)))}else Lt.test(n.stem)?s=T(T({},s),Nt(n.stem)):((i=It(n.stem))&&(s=T(T({},s),i)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Pt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=T(T({},s),o)))}return s}var xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Mt=new RegExp("^".concat(o.source,"*")),Rt=new RegExp("".concat(o.source,"*$"));function H(t,e){return{start:t,end:e}}var o=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,Gt=!!Object.fromEntries,Dt=!!String.prototype.codePointAt,kt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,$t=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},jt=!0;try{jt="a"===(null==(i=Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:i[0])}catch(b){jt=!1}var Vt,Xt,zt=o?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Kt=Ut?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Yt=Gt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},Zt=Dt?function(t,e){return t.codePointAt(e)}:function(t,e){var r,o=t.length;if(!(e<0||o<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===o||(o=t.charCodeAt(e+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},Wt=kt?function(t){return t.trimStart()}:function(t){return t.replace(Mt,"")},qt=Ft?function(t){return t.trimEnd()}:function(t){return t.replace(Rt,"")};function Qt(t,e){return new RegExp(t,e)}Xt=jt?(Vt=Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Vt.lastIndex=e,null!=(e=Vt.exec(t)[1])?e:""}):function(t,e){for(var r,o=[];;){var n=Zt(t,e);if(void 0===n||ee(n)||(33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;o.push(n),e+=65536<=n?2:1}return Kt.apply(void 0,o)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(d.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&te(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:v.pound,location:H(i,this.clonePosition())})}}}return{val:o,err:null}},n.prototype.parseTag=function(t,e){var r=this.clonePosition(),o=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(o,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(d.INVALID_TAG,H(t,this.clonePosition()));var n=this.clonePosition();return o!==this.parseTagName()?this.error(d.UNMATCHED_CLOSING_TAG,H(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:o,children:e,location:H(r,this.clonePosition())},err:null}:this.error(d.INVALID_TAG,H(t,this.clonePosition())))}return this.error(d.UNCLOSED_TAG,H(r,this.clonePosition()))}return this.error(d.INVALID_TAG,H(r,this.clonePosition()))},n.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=H(r,this.clonePosition());return{val:{type:v.literal,value:o,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},n.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Kt.apply(void 0,e)},n.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Kt(r))},n.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(d.EMPTY_ARGUMENT,H(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(d.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:o,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(d.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:H(t,this.clonePosition())}},n.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(d.EXPECT_ARGUMENT_TYPE,H(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=qt(f.val)).length)return this.error(d.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:H(h,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var c=H(o,this.clonePosition());if(l&&zt(null==l?void 0:l.style,"::",0)){var u=Wt(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:v.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(d.EXPECT_DATE_TIME_SKELETON,c);var p=u,m=(this.locale&&(p=function(t,e){for(var r="",o=0;o<t.length;o++){var n=t.charAt(o);if("j"===n){for(var i=0;o+1<t.length&&t.charAt(o+1)===n;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=t.language)&&(e=t.maximize().region),(xt[e||""]||xt[r||""]||xt["".concat(r,"-001")]||xt["001"])[0]}(e);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===n?"H":n}return r}(u,this.locale)),{type:g.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},p.replace(Bt,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n):{}});return{val:{type:"date"===s?v.date:v.time,value:r,location:c,style:m},err:null}}return{val:{type:"number"===s?v.number:"date"===s?v.date:v.time,value:r,location:c,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS,H(p,T({},p)));this.bumpSpace();var f,m=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=f.val}l=this.tryParsePluralOrSelectOptions(t,s,e,m);if(l.err)return l;if((h=this.tryParseArgumentClose(o)).err)return h;u=H(o,this.clonePosition());return"select"===s?{val:{type:v.select,value:r,options:Yt(l.val),location:u},err:null}:{val:{type:v.plural,value:r,options:Yt(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(d.INVALID_ARGUMENT_TYPE,H(i,a))}},n.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(At).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(d.INVALID_NUMBER_SKELETON,e)}return{val:{type:g.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ot(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR,d.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=H(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===e?d.DUPLICATE_SELECT_ARGUMENT_SELECTOR:d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));h=this.parseMessage(t+1,e,r);if(h.err)return h;var u=this.tryParseArgumentClose(c);if(u.err)return u;i.push([a,{value:h.val,location:H(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===e?d.EXPECT_SELECT_ARGUMENT_SELECTOR:d.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(d.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:i,err:null}},n.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=H(o,this.clonePosition());return n?$t(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Zt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},n.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},n.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},n.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},n.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 e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&ee(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var Jt=n;function n(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function te(t){return 97<=t&&t<=122||65<=t&&t<=90}function ee(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function re(t,e){e=T({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new Jt(t,e).parse();if(t.err)throw(r=SyntaxError(d[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,Et(t)||yt(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else gt(t)&&Tt(t.style)||(bt(t)||_t(t))&&Ht(t.style)?delete t.style.location:vt(t)&&r(t.children)})}(t.val),t.val}function oe(t,e){var r=e&&e.cache?e.cache:he,o=e&&e.serializer?e.serializer:ae;return(e&&e.strategy?e.strategy:function(t,e){return se(t,this,1===t.length?ne:ie,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ne(t,e,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=e.get(r);return void 0===n&&(n=t.call(this,o),e.set(r,n)),n}function ie(t,e,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),n=e.get(r);return void 0===n&&(n=t.apply(this,o),e.set(r,n)),n}function se(t,e,r,o,n){return r.bind(e,t,o,n)}var ae=function(){return JSON.stringify(arguments)};function le(){this.cache=Object.create(null)}le.prototype.get=function(t){return this.cache[t]},le.prototype.set=function(t,e){this.cache[t]=e};var B,i,he={create:function(){return new le}},ce={variadic:function(t,e){return se(t,this,ie,e.cache.create(),e.serializer)},monadic:function(t,e){return se(t,this,ne,e.cache.create(),e.serializer)}};(i=B=B||{}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API";mt(Te,fe=Error),Te.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,ue,pe,me,fe,de=Te,ge=(mt(ve,me=de),ve),be=(mt(ye,pe=de),ye),_e=(mt(Ee,ue=de),Ee);function Ee(t,e){return ue.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),B.MISSING_VALUE,e)||this}function ye(t,e,r){return pe.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),B.INVALID_VALUE,r)||this}function ve(t,e,r,o){return me.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),B.INVALID_VALUE,o)||this}function Te(t,e,r){t=fe.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function He(t,e,r,o,n,i,s){if(1===t.length&&dt(t[0]))return[{type:w.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var c=h[l];if(dt(c))a.push({type:w.literal,value:c.value});else if(c.type===v.pound)"number"==typeof i&&a.push({type:w.literal,value:r.getNumberFormat(e).format(i)});else{var u=c.value;if(!(n&&u in n))throw new _e(u,s);u=n[u];if(c.type===v.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?w.literal:w.object,value:u});else if(bt(c)){var p="string"==typeof c.style?o.date[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(e,p).format(u)})}else if(_t(c))p="string"==typeof c.style?o.time[c.style]:Ht(c.style)?c.style.parsedOptions:o.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(e,p).format(u)});else if(gt(c))(p="string"==typeof c.style?o.number[c.style]:Tt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),a.push({type:w.literal,value:r.getNumberFormat(e,p).format(u)});else{if(vt(c)){var m=c.children,f=c.value,d=n[f];if("function"!=typeof d)throw new be(f,"function",s);f=d(He(m,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(t){return{type:"string"==typeof t?w.literal:w.object,value:t}}))}if(Et(c)){if(!(g=c.options[u]||c.options.other))throw new ge(c.value,u,Object.keys(c.options),s);a.push.apply(a,He(g.value,e,r,o,n))}else if(yt(c)){if(!(g=c.options["=".concat(u)])){if(!Intl.PluralRules)throw new de('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',B.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:c.pluralType}).select(u-(c.offset||0)),g=c.options[d]||c.options.other}if(!g)throw new ge(c.value,u,Object.keys(c.options),s);a.push.apply(a,He(g.value,e,r,o,n,u-(c.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===w.literal&&e.type===w.literal?r.value+=e.value:t.push(e),t},[])}function Be(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(o=w=w||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},h.__parse=re,h.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Ae=h;function h(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=h.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===w.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return He(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=h.resolveLocale(e),"string"==typeof t){if(this.message=t,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,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=(n=h.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?T(T(T({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=T(T({},r[e]),o[e]||{}),t},{})):r),t},T({},n)):n),this.formatters=o&&o.formatters||{getNumberFormat:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ft([void 0],e,!1)))},{cache:Be((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:ce.variadic}),getDateTimeFormat:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ft([void 0],e,!1)))},{cache:Be(e.dateTime),strategy:ce.variadic}),getPluralRules:oe(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ft([void 0],e,!1)))},{cache:Be(e.pluralRules),strategy:ce.variadic})}}const s={},we=(t,e,r)=>r&&(e in s||(s[e]={}),t in s[e]||(s[e][t]=r),r),Le=(e,r)=>{if(null!=r){if(r in s&&e in s[r])return s[r][e];var o=De(r);for(let t=0;t<o.length;t++){var n=function(t,r){if(!Pe(t))return null;t=function(t){return Se[t]||null}(t);{var o=r;if(null==o)return;if(o in t)return t[o];const n=o.split(".");let e=t;for(let t=0;t<n.length;t++)if("object"==typeof e){if(0<t){const o=n.slice(t,n.length).join(".");if(o in e){e=e[o];break}}e=e[n[t]]}else e=void 0;return e}}(o[t],e);if(n)return we(e,r,n)}}};let Se;const L=nt({});function Pe(t){return t in Se}function Ne(e,...r){delete s[e],L.update(t=>(t[e]=ut.all([t[e]||{},...r]),t))}t([L],([t])=>Object.keys(t)),L.subscribe(t=>Se=t);const Ie={};function Ce(t){return Ie[t]}function Oe(t){return null!=t&&De(t).some(t=>{return null==(t=Ce(t))?void 0:t.size})}const c={};function xe(t){if(!Oe(t))return t in c?c[t]:Promise.resolve();const e=De(t).map(t=>{var e=Ce(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return c[t]=Promise.all(e.map(([t,e])=>{{var o=t;t=e;const r=Promise.all(t.map(t=>{var e=o,r=t;return Ie[e].delete(r),0===Ie[e].size&&delete Ie[e],t().then(t=>t.default||t)}));return r.then(t=>Ne(o,...t))}})).then(()=>{if(Oe(t))return xe(t);delete c[t]}),c[t]}function u(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const p={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Me=nt(!1);let Re;const Ue=nt(null);function Ge(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function De(t,e=p.fallbackLocale){t=Ge(t);return e?[...new Set([...t,...Ge(e)])]:t}function m(){return null!=Re?Re:void 0}Ue.subscribe(t=>{Re=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const S=Object.assign(Object.assign({},Ue),{set:e=>{if(e&&function(t){if(null!=t){var e=De(t);for(let t=0;t<e.length;t++){var r=e[t];if(Pe(r))return r}}}(e)&&Oe(e)){var r=p["loadingDelay"];let t;return"undefined"!=typeof window&&null!=m()&&r?t=window.setTimeout(()=>Me.set(!0),r):Me.set(!0),xe(e).then(()=>{Ue.set(e)}).finally(()=>{clearTimeout(t),Me.set(!1)})}return Ue.set(e)}}),ke=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Fe=(t,e)=>{var r=p["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},$e=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Fe("number",r)),new Intl.NumberFormat(e,t)}),je=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Fe("date",r):0===Object.keys(t).length&&(t=Fe("date","short")),new Intl.DateTimeFormat(e,t)}),Ve=ke(t=>{var{locale:e,format:r}=t,t=u(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Fe("time",r):0===Object.keys(t).length&&(t=Fe("time","short")),new Intl.DateTimeFormat(e,t)}),Xe=ke((t,e=m())=>new Ae(t,e,p.formats,{ignoreTag:p.ignoreTag})),ze=t([S,L],()=>(t,e={})=>{var r,o;let n=e;"object"==typeof t&&(t=(n=t).id);var{values:i,locale:s=m(),default:a}=n;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Le(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=p).handleMissingMessage)?void 0:r.call(o,{locale:s,id:t,defaultValue:a}))?r:a)?o:t;if(!i)return l;let h=l;try{h=Xe(l,s).format(i)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h}),Ke=(t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return Ve(Object.assign({locale:e},t))})(e).format(t)),t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return je(Object.assign({locale:e},t))})(e).format(t)),t([S],()=>(t,e)=>((t={})=>{var{locale:e=m()}=t,t=u(t,["locale"]);return $e(Object.assign({locale:e},t))})(e).format(t)),t([S,L],()=>(t,e=m())=>Le(t,e)),{en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment."}},zh:{promotions:{promotionsTitle:"促銷活動",promotionsButton:"更多信息",promotionsNone:"目前沒有促銷活動。"}},fr:{promotions:{promotionsTitle:"Promotions",promotionsButton:"Plus d'informations",promotionsNone:"Il n'y a pas de promotions disponibles pour le moment."}},tr:{promotions:{promotionsTitle:"Promosyonlar",promotionsButton:"Daha fazla bilgi",promotionsNone:"Şu anda herhangi bir promosyon bulunmamaktadır."}},ro:{promotions:{promotionsTitle:"Promotii",promotionsButton:"Detalii",promotionsNone:"Nu avem promotii disponibile momentan."}},es:{promotions:{promotionsTitle:"Promociones",promotionsButton:"Mas informaciones",promotionsNone:"Actualmente no hay promociones disponibles."}},pt:{promotions:{promotionsTitle:"Promoções",promotionsButton:"Mais informações",promotionsNone:"Não há promoções disponíveis no momento."}}});function Ye(t,e,r){const o=t.slice();return o[29]=e[r],o[31]=r,o}function Ze(t,e,r){const o=t.slice();return o[32]=e[r],o}function We(t,e,r){const o=t.slice();return o[35]=e[r],o}function qe(t,e,r){const o=t.slice();return o[32]=e[r],o}function Qe(r){let o,i,n,s,a,l,h,c,u,p,m,f,d,g,b,_,t,E,y,v,T,H,B,A,U,w,L,S,G,P,D,N=r[12]("promotions.promotionsTitle")+"";function k(t){return 0<t[3].length?tr:Je}let I=k(r),C=I(r),O=r[9],x=[];for(let t=0;t<O.length;t+=1)x[t]=or(Ze(r,O,t));let M=r[10],R=[];for(let t=0;t<M.length;t+=1)R[t]=nr(Ye(r,M,t));return{c(){o=X("section"),i=X("div"),n=X("h1"),s=e(N),a=z(),C.c(),l=z(),h=X("div"),c=X("div"),u=z(),p=X("div"),(m=X("div")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',f=z(),d=X("div"),g=X("picture");for(let t=0;t<x.length;t+=1)x[t].c();b=z(),_=X("img"),E=z(),y=X("div"),v=X("div"),T=X("ul");for(let t=0;t<R.length;t+=1)R[t].c();H=z(),B=X("div"),A=X("h3"),U=z(),w=X("div"),Y(n,"class","promotions__title"),Y(n,"part","promotions__title"),Y(c,"class","modal__backdrop"),Y(c,"part","modal__backdrop"),Y(m,"class","modal__close"),Y(m,"part","modal__close"),W(_.src,t=r[8])||Y(_,"src",t),Y(_,"alt",r[6]),Y(g,"class","modal__picture"),Y(g,"part","modal__picture"),Y(d,"class","modal__header"),Y(d,"part","modal__header"),Y(T,"class","modal__tabs"),Y(T,"part","modal__tabs"),Y(A,"class","modal__body_title"),Y(A,"part","modal__body_title"),Y(w,"class","modal__tab_content"),Y(w,"part","modal__tab_content"),Y(B,"class","modal__tabContentWrapper"),Y(B,"part","modal__tabContentWrapper"),Y(v,"class","modal__body_content"),Y(v,"part","modal__body_content"),Y(y,"class","modal__body"),Y(y,"part","modal__body"),Y(p,"class","modal__content"),Y(p,"part","modal__content"),Y(h,"class","promo__modal modal"),Y(h,"part","promo__modal modal"),Y(i,"class",L="promotions "+r[4]),Y(i,"part",S="promotions "+r[4]),J(i,"max-width",r[0]+"px"),tt(()=>r[21].call(i)),Y(o,"class","promotion__section"),Y(o,"part","promotion__section")},m(t,e){j(t,o,e),$(o,i),$(i,n),$(n,s),$(i,a),C.m(i,null),$(i,l),$(i,h),$(h,c),$(h,u),$(h,p),$(p,m),$(p,f),$(p,d),$(d,g);for(let t=0;t<x.length;t+=1)x[t].m(g,null);$(g,b),$(g,_),$(p,E),$(p,y),$(y,v),$(v,T);for(let t=0;t<R.length;t+=1)R[t].m(T,null);$(v,H),$(v,B),$(B,A),A.innerHTML=r[6],$(B,U),$(B,w),w.innerHTML=r[7],r[20](v),G=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=X("iframe"),o=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===Z){Z=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){Z=!0}}return Z}());let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=K(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=K(r.contentWindow,"resize",e)}),$(t,r),()=>{(o||n&&r.contentWindow)&&n(),V(r)}}(i,r[21].bind(i)),r[22](i),P||(D=[K(c,"click",r[14]),K(m,"click",r[14])],P=!0)},p(e,r){if(4096&r[0]&&N!==(N=e[12]("promotions.promotionsTitle")+"")&&Q(s,N),I===(I=k(e))&&C?C.p(e,r):(C.d(1),(C=I(e))&&(C.c(),C.m(i,l))),512&r[0]){let t;for(O=e[9],t=0;t<O.length;t+=1){var o=Ze(e,O,t);x[t]?x[t].p(o,r):(x[t]=or(o),x[t].c(),x[t].m(g,b))}for(;t<x.length;t+=1)x[t].d(1);x.length=O.length}if(256&r[0]&&!W(_.src,t=e[8])&&Y(_,"src",t),64&r[0]&&Y(_,"alt",e[6]),33792&r[0]){let t;for(M=e[10],t=0;t<M.length;t+=1){var n=Ye(e,M,t);R[t]?R[t].p(n,r):(R[t]=nr(n),R[t].c(),R[t].m(T,null))}for(;t<R.length;t+=1)R[t].d(1);R.length=M.length}64&r[0]&&(A.innerHTML=e[6]),128&r[0]&&(w.innerHTML=e[7]),16&r[0]&&L!==(L="promotions "+e[4])&&Y(i,"class",L),16&r[0]&&S!==(S="promotions "+e[4])&&Y(i,"part",S),1&r[0]&&J(i,"max-width",e[0]+"px")},d(t){t&&V(o),C.d(),q(x,t),q(R,t),r[20](null),G(),r[22](null),P=!1,F(D)}}}function Je(t){let r,o,n=t[12]("promotions.promotionsNone")+"";return{c(){r=X("p"),o=e(n),Y(r,"class","promotions__none")},m(t,e){j(t,r,e),$(r,o)},p(t,e){4096&e[0]&&n!==(n=t[12]("promotions.promotionsNone")+"")&&Q(o,n)},d(t){t&&V(r)}}}function tr(e){let n,i=e[3],s=[];for(let t=0;t<i.length;t+=1)s[t]=rr(We(e,i,t));return{c(){n=X("div");for(let t=0;t<s.length;t+=1)s[t].c();Y(n,"class","promotions__grid"),Y(n,"part","promotions__grid")},m(t,e){j(t,n,e);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(e,r){if(12296&r[0]){let t;for(i=e[3],t=0;t<i.length;t+=1){var o=We(e,i,t);s[t]?s[t].p(o,r):(s[t]=rr(o),s[t].c(),s[t].m(n,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){t&&V(n),q(s,t)}}}function er(t){let r,o,n;return{c(){Y(r=X("source"),"srcset",o=t[32].pictureSource),Y(r,"media",n="("+t[32].media+")")},m(t,e){j(t,r,e)},p(t,e){8&e[0]&&o!==(o=t[32].pictureSource)&&Y(r,"srcset",o),8&e[0]&&n!==(n="("+t[32].media+")")&&Y(r,"media",n)},d(t){t&&V(r)}}}function rr(r){let o,n,i,s,a,l,h,c,u,p,m,f,d,g,b,_,E,y=r[35].title+"",v=r[35].content.split("</p>")[0]+"",T=r[12]("promotions.promotionsButton")+"",H=r[35].image.sources,B=[];for(let t=0;t<H.length;t+=1)B[t]=er(qe(r,H,t));return{c(){o=X("div"),n=X("picture");for(let t=0;t<B.length;t+=1)B[t].c();i=z(),s=X("img"),h=z(),c=X("div"),u=X("h2"),p=z(),m=X("div"),f=z(),d=X("button"),g=e(T),b=z(),W(s.src,a=r[35].image.src)||Y(s,"src",a),Y(s,"alt",l=r[35].title),Y(n,"class","promo__picture"),Y(n,"part","promo__picture"),Y(u,"class","promo__title"),Y(u,"part","promo__title"),Y(m,"class","promo__content text--ellipsis"),Y(m,"part","promo__content text--ellipsis"),Y(d,"class","promo__button"),Y(d,"part","promo__button"),Y(c,"class","promo__details"),Y(c,"part","promo__details"),Y(o,"class","promo"),Y(o,"part","promo")},m(t,e){j(t,o,e),$(o,n);for(let t=0;t<B.length;t+=1)B[t].m(n,null);$(n,i),$(n,s),$(o,h),$(o,c),$(c,u),u.innerHTML=y,$(c,p),$(c,m),m.innerHTML=v,$(c,f),$(c,d),$(d,g),$(o,b),_||(E=K(d,"click",function(){A(r[13](r[35]))&&r[13](r[35]).apply(this,arguments)}),_=!0)},p(t,e){if(r=t,8&e[0]){let t;for(H=r[35].image.sources,t=0;t<H.length;t+=1){const s=qe(r,H,t);B[t]?B[t].p(s,e):(B[t]=er(s),B[t].c(),B[t].m(n,i))}for(;t<B.length;t+=1)B[t].d(1);B.length=H.length}8&e[0]&&!W(s.src,a=r[35].image.src)&&Y(s,"src",a),8&e[0]&&l!==(l=r[35].title)&&Y(s,"alt",l),8&e[0]&&y!==(y=r[35].title+"")&&(u.innerHTML=y),8&e[0]&&v!==(v=r[35].content.split("</p>")[0]+"")&&(m.innerHTML=v),4096&e[0]&&T!==(T=r[12]("promotions.promotionsButton")+"")&&Q(g,T)},d(t){t&&V(o),q(B,t),_=!1,E()}}}function or(t){let r,o,n;return{c(){Y(r=X("source"),"srcset",o=t[32].pictureSource),Y(r,"media",n="("+t[32].media+")")},m(t,e){j(t,r,e)},p(t,e){512&e[0]&&o!==(o=t[32].pictureSource)&&Y(r,"srcset",o),512&e[0]&&n!==(n="("+t[32].media+")")&&Y(r,"media",n)},d(t){t&&V(r)}}}function nr(r){let o,n,t,i,s,a=r[29].tabDesc+"";return{c(){o=X("li"),n=e(a),Y(o,"class","modal__tab"),Y(o,"part","modal__tab"),Y(o,"id",t="tab-"+r[31])},m(t,e){j(t,o,e),$(o,n),i||(s=K(o,"click",function(){A(r[15](r[29],r[31]))&&r[15](r[29],r[31]).apply(this,arguments)}),i=!0)},p(t,e){r=t,1024&e[0]&&a!==(a=r[29].tabDesc+"")&&Q(n,a)},d(t){t&&V(o),i=!1,s()}}}function ir(t){let r,o=!0!==t[2]&&Qe(t);return{c(){o&&o.c(),r=e(""),this.c=b},m(t,e){o&&o.m(t,e),j(t,r,e)},p(t,e){!0!==t[2]?o?o.p(t,e):((o=Qe(t)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i:b,o:b,d(t){o&&o.d(t),t&&V(r)}}}function sr(e,t,r){let o;var n,i,s=ze;e.$$.on_destroy.push(O(s,t=>r(12,o=t)));let a,l,h,c,u,p,{endpoint:m=""}=t,{lang:f=""}=t,{env:d=""}=t,{containermaxwidth:g=""}=t,{userroles:b=""}=t,_=!1,E=[],y,v,T,H,B=[];({withLocale:n,translations:i}={withLocale:"en",translations:{}}),S.subscribe(t=>{null==t&&(L.set(i),S.set(n))}),Object.keys(Ke).forEach(t=>{Ne(t,Ke[t])});const A=(t,e)=>{p.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=p.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");p.querySelector("#tab-"+e).classList.add("modal__tab--active")},w={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return e.$$set=t=>{"endpoint"in t&&r(16,m=t.endpoint),"lang"in t&&r(17,f=t.lang),"env"in t&&r(18,d=t.env),"containermaxwidth"in t&&r(0,g=t.containermaxwidth),"userroles"in t&&r(19,b=t.userroles)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(4,l=Object.entries(w).reduce((t,[e,r])=>[...t,a>=r?e:""],[]).join(" ")),131072&e.$$.dirty[0]&&f&&(t=f,S.set(t)),983040&e.$$.dirty[0]&&m&&f&&d&&b){r(2,_=!0);let t=new URL(`${m}/${f}/promotions?env=`+d);t.searchParams.append("userRoles",b),fetch(t.href).then(t=>t.json()).then(t=>{r(2,_=!1),r(3,E=t)}).catch(t=>{r(2,_=!1),console.error(t)})}var t},[g,a,_,E,l,h,"","",{},[],B,p,o,async t=>{r(6,y=t.title),r(7,v=t.content),r(8,T=t.image.src),r(9,H=t.image.sources),r(10,B=[{order:"0",tabContent:v,tabDesc:"Description"},...t.tabs]),c=h.querySelector(".modal"),u=window.document.querySelector("body"),c.classList.add("modal--open"),u.style.overflow="hidden",D(),await U,A(B[0],0)},()=>{c=h.querySelector(".modal"),u=window.document.querySelector("body"),c.classList.remove("modal--open"),u.style.overflow="initial"},A,m,f,d,b,function(t){x[t?"unshift":"push"](()=>{p=t,r(11,p)})},function(){a=this.clientWidth,r(1,a)},function(t){x[t?"unshift":"push"](()=>{h=t,r(5,h)})}]}class ar extends ot{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__section{--bg-color:var(--emfe-w-color-contrast, #07072A);--text-color:var(--emfe-w-color-white, #FFFFFF);--text-color-black:var(--emfe-w-color-black, #000000);--text-color-red:var(--emfe-w-color-secondary, #FD2839);--border-color:var(--emfe-w-color-gray-300, #58586B);--modal-bg-color:var(--emfe-w-color-gray-50, #F9F8F8);--modal-tabs-text-color:var(--emfe-w-color-gray-150, #828282);--modal-tabs-color:var(--emfe-w-color-gray-100, #E6E6E6);--modal-active-tab-color:var(--emfe-w-color-contrast, #07072A);--modal-title-color:var(--emfe-w-color-primary, #D0046C);width:100%;background-color:var(--bg-color)}.promotions{margin:0 auto;padding:24px 0;color:var(--text-color)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--border-color);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--text-color)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background:black;background:linear-gradient(0deg, black 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--text-color);border:1px solid var(--text-color);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--modal-title-color);border:1px solid var(--modal-title-color)}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--bg-color);opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--modal-bg-color);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--text-color);background-color:rgba(20, 20, 32, 0.3);border-radius:50%}.modal__close:hover{color:var(--text-color-red)}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--text-color-black);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--modal-title-color)}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:'';position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--modal-tabs-color);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--modal-tabs-text-color);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--modal-active-tab-color);z-index:130}.modal__tab--active:before{content:'';left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--modal-active-tab-color)}.modal__tab:hover{color:var(--bg-color)}</style>";{var n=this,e={target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},r=sr,i=ir,s=I,a={endpoint:16,lang:17,env:18,containermaxwidth:0,userroles:19},l=null,h=[-1,-1],c=C;_(n);const p=n.$$={fragment:null,ctx:null,props:a,update:b,not_equal:s,bound:N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:N(),dirty:h,skip_bound:!1,root:e.target||c.$$.root};l&&l(p.root);let o=!1;if(p.ctx=r?r(n,e.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),o&&(r=t,-1===(t=n).$$.dirty[0]&&(E.push(t),D(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],p.update(),o=!0,F(p.before_update),p.fragment=!!i&&i(p.ctx),e.target){if(e.hydrate){a=e.target;const b=Array.from(a.childNodes);p.fragment&&p.fragment.l(b),b.forEach(V)}else p.fragment&&p.fragment.c();e.intro&&(h=n.$$.fragment)&&h.i&&(rt.delete(h),h.i(void 0));{var u=n;l=e.target;r=e.anchor;i=e.customElement;const{fragment:m,on_mount:f,on_destroy:d,after_update:g}=u.$$;m&&m.m(l,r),i||tt(()=>{var t=f.map(P).filter(A);d?d.push(...t):F(t),u.$$.on_mount=[]}),g.forEach(tt)}y()}_(c)}t&&(t.target&&j(t.target,this,t.anchor),t.props&&(this.$set(t.props),y()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth","userroles"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),y()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),y()}get env(){return this.$$.ctx[18]}set env(t){this.$$set({env:t}),y()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$$set({containermaxwidth:t}),y()}get userroles(){return this.$$.ctx[19]}set userroles(t){this.$$set({userroles:t}),y()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",ar),ar});
2
2
  //# sourceMappingURL=casino-promotions.js.map