@everymatrix/casino-promotions 0.0.284 → 0.0.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(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 p(){}function h(t){return t()}function m(){return Object.create(null)}function j(t){t.forEach(h)}function L(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function S(t,...e){if(null==t)return p;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function V(t,e){t.appendChild(e)}function X(t,e,r){t.insertBefore(e,r||null)}function z(t){t.parentNode.removeChild(t)}function B(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function H(t){return document.createElement(t)}function e(t){return document.createTextNode(t)}function q(){return e(" ")}function Y(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function K(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function W(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function Z(t,e,r,o){t.style.setProperty(e,r,o?"important":"")}let Q,f;function d(t){f=t}const g=[],x=[],o=[],t=[],N=Promise.resolve();let n=!1;function O(){n||(n=!0,N.then(_))}function J(t){o.push(t)}let i=!1;const s=new Set;function _(){if(!i){i=!0;do{for(let t=0;t<g.length;t+=1){var e=g[t];d(e),function(t){{var e;null!==t.fragment&&(t.update(),j(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(J))}}(e.$$)}for(d(null),g.length=0;x.length;)x.pop()();for(let t=0;t<o.length;t+=1){const r=o[t];s.has(r)||(s.add(r),r())}}while(o.length=0,g.length);for(;t.length;)t.pop()();n=!1,i=!1,s.clear()}}const y=new Set;function a(o,t,e,r,n,i,s=[-1]){var a,l=f;d(o);const c=o.$$={fragment:null,ctx:null,props:i,update:p,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:m(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=e?e(o,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&n(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=o).$$.dirty[0]&&(g.push(t),O(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,j(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const p=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(p),p.forEach(z)}else c.fragment&&c.fragment.c();t.intro&&(a=o.$$.fragment)&&a.i&&(y.delete(a),a.i(void 0)),function(e,t,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=e.$$;n&&n.m(t,r),o||J(()=>{var t=i.map(h).filter(L);s?s.push(...t):j(t),e.$$.on_mount=[]}),a.forEach(J)}(o,t.target,t.anchor,t.customElement),_()}d(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(L);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){j(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(j(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=p}$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 c=[];function b(o,n=p){let i;const s=[];function a(t){if(r(o,t)&&(o=t,i)){const t=!c.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),c.push(e,o)}if(t){for(let t=0;t<c.length;t+=2)c[t][0](c[t+1]);c.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=p){const r=[t,e];return s.push(r),1===s.length&&(i=n(a)||p),t(o),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function u(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:b(e,e=>{let r=!1;const o=[];let n=0,i=p;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),u?e(t):i=L(t)?t:p)},t=c.map((t,e)=>S(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){j(t),i()}}).subscribe}}var E=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===v));var e},v="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(t,e){return!1!==e.clone&&e.isMergeableObject(t)?R(Array.isArray(t)?[]:{},t,e):t}function w(t,e,r){return t.concat(e).map(function(t){return T(t,r)})}function A(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function P(t,e){try{return e in t}catch(t){return!1}}function I(o,n,i){var s={};return i.isMergeableObject(o)&&A(o).forEach(function(t){s[t]=T(o[t],i)}),A(n).forEach(function(e){var t,r;(!P(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(P(o,e)&&i.isMergeableObject(n[e])?s[e]=function(){if(!i.customMerge)return R;var t=i.customMerge(e);return"function"==typeof t?t:R}()(o[e],n[e],i):s[e]=T(n[e],i))}),s}function R(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||w,r.isMergeableObject=r.isMergeableObject||E,r.cloneUnlessOtherwiseSpecified=T;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):I(t,e,r):T(e,r)}R.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return R(t,e,r)},{})};var C=R,M=function(t,e){return(M=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 U(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}M(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var k,D,G,$=function(){return($=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 F(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function tt(t){return t.type===D.literal}function et(t){return t.type===D.number}function rt(t){return t.type===D.date}function ot(t){return t.type===D.time}function nt(t){return t.type===D.select}function it(t){return t.type===D.plural}function st(t){return t.type===D.tag}function at(t){return t&&"object"==typeof t&&t.type===G.number}function lt(t){return t&&"object"==typeof t&&t.type===G.dateTime}(St=k=k||{})[St.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",St[St.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",St[St.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",St[St.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",St[St.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",St[St.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",St[St.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",St[St.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",St[St.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",St[St.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",St[St.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",St[St.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",St[St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",St[St.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",St[St.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",St[St.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",St[St.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",St[St.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",St[St.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",St[St.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",St[St.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",St[St.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",St[St.INVALID_TAG=23]="INVALID_TAG",St[St.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",St[St.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",St[St.UNCLOSED_TAG=27]="UNCLOSED_TAG",(xt=D=D||{})[xt.literal=0]="literal",xt[xt.argument=1]="argument",xt[xt.number=2]="number",xt[xt.date=3]="date",xt[xt.time=4]="time",xt[xt.select=5]="select",xt[xt.plural=6]="plural",xt[xt.pound=7]="pound",xt[xt.tag=8]="tag",(Nt=G=G||{})[Nt.number=0]="number",Nt[Nt.dateTime=1]="dateTime";var ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ut=/(?:[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 pt,ht=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ft=/^(@+)?(\+|#+)?$/g,dt=/(\*)(0+)|(#+)(0+)|(0+)/g,gt=/^(0+)$/;function _t(t){var o={};return t.replace(ft,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 yt(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 bt(t){return yt(t)||{}}function Et(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=$($($({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return $($({},t),bt(e))},{}));continue;case"engineering":s=$($($({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return $($({},t),bt(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(dt,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(gt.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(mt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(mt,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),""}),n.options.length&&(s=$($({},s),_t(n.options[0])))}else ft.test(n.stem)?s=$($({},s),_t(n.stem)):((o=yt(n.stem))&&(s=$($({},s),o)),(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)),!gt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=$($({},s),o)))}return s}var vt=new RegExp("^"+ct.source+"*"),Tt=new RegExp(ct.source+"*$");function wt(t,e){return{start:t,end:e}}var At=!!String.prototype.startsWith,Lt=!!String.fromCodePoint,Pt=!!Object.fromEntries,St=!!String.prototype.codePointAt,xt=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,Ot=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ct=!0;try{ct="a"===(null===(pt=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pt?void 0:pt[0])}catch(p){ct=!1}var It,Rt,Ct=At?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Mt=Lt?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},Ut=Pt?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},kt=St?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var o,n=t.charCodeAt(e);return n<55296||56319<n||e+1===r||(o=t.charCodeAt(e+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Dt=xt?function(t){return t.trimStart()}:function(t){return t.replace(vt,"")},Gt=Nt?function(t){return t.trimEnd()}:function(t){return t.replace(Tt,"")};function $t(t,e){return new RegExp(t,e)}Rt=ct?(It=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return It.lastIndex=e,null!==(t=It.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=kt(t,e);if(void 0===n||Xt(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 Mt.apply(void 0,o)};var Ft=(jt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},jt.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(k.UNMATCHED_CLOSING_TAG,wt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Vt(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:D.pound,location:wt(i,this.clonePosition())})}}}return{val:o,err:null}},jt.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:D.literal,value:"<"+o+"/>",location:wt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;t=n.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Vt(this.char()))return this.error(k.INVALID_TAG,wt(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(k.UNMATCHED_CLOSING_TAG,wt(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:D.tag,value:o,children:t,location:wt(r,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,wt(e,this.clonePosition())))}return this.error(k.UNCLOSED_TAG,wt(r,this.clonePosition()))}return this.error(k.INVALID_TAG,wt(r,this.clonePosition()))},jt.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())},jt.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=wt(r,this.clonePosition());return{val:{type:D.literal,value:o,location:r},err:null}},jt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Vt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},jt.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 Mt.apply(void 0,e)},jt.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(),Mt(r))},jt.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(k.EMPTY_ARGUMENT,wt(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(k.MALFORMED_ARGUMENT,wt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:D.argument,value:o,location:wt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(k.MALFORMED_ARGUMENT,wt(r,this.clonePosition()))}},jt.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Rt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:wt(t,this.clonePosition())}},jt.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(k.EXPECT_ARGUMENT_TYPE,wt(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Gt(h.val)).length)return this.error(k.EXPECT_ARGUMENT_STYLE,wt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:wt(c,this.clonePosition())}}if((m=this.tryParseArgumentClose(o)).err)return m;var u=wt(o,this.clonePosition());if(l&&Ct(null==l?void 0:l.style,"::",0)){c=Dt(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:D.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(k.EXPECT_DATE_TIME_SKELETON,u);var p={type:G.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(ut,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?D.date:D.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?D.number:"date"===s?D.date:D.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,wt(l,$({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,wt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(t,s,e,u);if(u.err)return u;if((m=this.tryParseArgumentClose(o)).err)return m;var m=wt(o,this.clonePosition());return"select"===s?{val:{type:D.select,value:r,options:Ut(u.val),location:m},err:null}:{val:{type:D.plural,value:r,options:Ut(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null};default:return this.error(k.INVALID_ARGUMENT_TYPE,wt(i,a))}},jt.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},jt.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(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,wt(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}},jt.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(ht).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(k.INVALID_NUMBER_SKELETON,e)}return{val:{type:G.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Et(r):{}},err:null}},jt.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 c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=wt(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,wt(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;i.push([a,{value:u.val,location:wt(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===i.length?this.error("select"===e?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,wt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(k.MISSING_OTHER_CLAUSE,wt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},jt.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=wt(o,this.clonePosition());return n?Ot(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},jt.prototype.offset=function(){return this.position.offset},jt.prototype.isEOF=function(){return this.offset()===this.message.length},jt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},jt.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=kt(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},jt.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},jt.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))},jt.prototype.bumpIf=function(t){if(Ct(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},jt.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},jt.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},jt.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xt(this.char());)this.bump()},jt.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},jt);function jt(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function Vt(t){return 97<=t&&t<=122||65<=t&&t<=90}function Xt(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function zt(t,e){e=$({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Ft(t,e).parse();if(r.err){t=SyntaxError(k[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,nt(t)||it(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else et(t)&&at(t.style)||(rt(t)||ot(t))&&lt(t.style)?delete t.style.location:st(t)&&r(t.children)})}(r.val),r.val}function Bt(t,e){var r=e&&e.cache?e.cache:Qt,o=e&&e.serializer?e.serializer:Kt;return(e&&e.strategy?e.strategy:function(t,e){return Yt(t,this,1===t.length?Ht:qt,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function Ht(t,e,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=e.get(n);return void 0===r&&(r=t.call(this,o),e.set(n,r)),r}function qt(t,e,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=e.get(n);return void 0===r&&(r=t.apply(this,o),e.set(n,r)),r}function Yt(t,e,r,o,n){return r.bind(e,t,o,n)}var Kt=function(){return JSON.stringify(arguments)};function Wt(){this.cache=Object.create(null)}Wt.prototype.has=function(t){return t in this.cache},Wt.prototype.get=function(t){return this.cache[t]},Wt.prototype.set=function(t,e){this.cache[t]=e};var Zt,Qt={create:function(){return new Wt}},Jt={variadic:function(t,e){return Yt(t,this,qt,e.cache.create(),e.serializer)},monadic:function(t,e){return Yt(t,this,Ht,e.cache.create(),e.serializer)}};(ct=Zt=Zt||{}).MISSING_VALUE="MISSING_VALUE",ct.INVALID_VALUE="INVALID_VALUE",ct.MISSING_INTL_API="MISSING_INTL_API";var te,ee,re,oe,ne,ie=(U(he,ne=Error),he.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},he),se=(U(pe,oe=ie),pe),ae=(U(ue,re=ie),ue),le=(U(ce,ee=ie),ce);function ce(t,e){return ee.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',Zt.MISSING_VALUE,e)||this}function ue(t,e,r){return re.call(this,'Value for "'+t+'" must be of type '+e,Zt.INVALID_VALUE,r)||this}function pe(t,e,r,o){return oe.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',Zt.INVALID_VALUE,o)||this}function he(t,e,r){t=ne.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function me(t,e,r,o,n,i,s){if(1===t.length&&tt(t[0]))return[{type:te.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(tt(u))a.push({type:te.literal,value:u.value});else if(u.type===D.pound)"number"==typeof i&&a.push({type:te.literal,value:r.getNumberFormat(e).format(i)});else{var p=u.value;if(!(n&&p in n))throw new le(p,s);var h=n[p];if(u.type===D.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?te.literal:te.object,value:h});else if(rt(u)){var m="string"==typeof u.style?o.date[u.style]:lt(u.style)?u.style.parsedOptions:void 0;a.push({type:te.literal,value:r.getDateTimeFormat(e,m).format(h)})}else if(ot(u))m="string"==typeof u.style?o.time[u.style]:lt(u.style)?u.style.parsedOptions:void 0,a.push({type:te.literal,value:r.getDateTimeFormat(e,m).format(h)});else if(et(u))(m="string"==typeof u.style?o.number[u.style]:at(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),a.push({type:te.literal,value:r.getNumberFormat(e,m).format(h)});else{if(st(u)){var f=u.children,d=u.value,p=n[d];if("function"!=typeof p)throw new ae(d,"function",s);f=p(me(f,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?te.literal:te.object,value:t}}))}if(nt(u)){if(!(g=u.options[h]||u.options.other))throw new se(u.value,h,Object.keys(u.options),s);a.push.apply(a,me(g.value,e,r,o,n))}else if(it(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new ie('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zt.MISSING_INTL_API,s);var f=r.getPluralRules(e,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new se(u.value,h,Object.keys(u.options),s);a.push.apply(a,me(g.value,e,r,o,n,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===te.literal&&e.type===te.literal?r.value+=e.value:t.push(e),t},[])}function fe(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(ct=te=te||{})[ct.literal=0]="literal",ct[ct.object=1]="object";var de=(Object.defineProperty(ge,"defaultLocale",{get:function(){return ge.memoizedDefaultLocale||(ge.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ge.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ge.memoizedDefaultLocale=null,ge.__parse=zt,ge.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"}}},ge);function ge(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=ge.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===te.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 me(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!ge.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ge.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}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=ge.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?$($($({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=$($({},r[e]),o[e]||{}),t},{})):r),t},$({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,F([void 0],e)))},{cache:fe((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:Jt.variadic}),getDateTimeFormat:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,F([void 0],e)))},{cache:fe(o.dateTime),strategy:Jt.variadic}),getPluralRules:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,F([void 0],e)))},{cache:fe(o.pluralRules),strategy:Jt.variadic})}}const _e={},ye=(e,r)=>{if(null!=r){if(r in _e&&e in _e[r])return _e[r][e];var o,n,i=Me(r);for(let t=0;t<i.length;t++){var s=(o=i[t],n=e,ve(o)?function(t,e){if(e in t)return t[e];const r=e.split(".");let o=t;for(let t=0;t<r.length;t++)if("object"==typeof o){if(0<t){const e=r.slice(t,r.length).join(".");if(e in o){o=o[e];break}}o=o[r[t]]}else o=void 0;return o}(function(t){return be[t]||null}(o),n):null);if(s)return o=e,n=r,(s=s)&&(n in _e||(_e[n]={}),o in _e[n]||(_e[n][o]=s),s)}}};let be;const Ee=b({});function ve(t){return t in be}function Te(e,...r){delete _e[e],Ee.update(t=>(t[e]=C.all([t[e]||{},...r]),t))}u([Ee],([t])=>Object.keys(t)),Ee.subscribe(t=>be=t);const we={};function Ae(t){return we[t]}function Le(t){return Me(t).some(t=>{return null===(t=Ae(t))||void 0===t?void 0:t.size})}const Pe={};function Se(t){if(!Le(t))return t in Pe?Pe[t]:void 0;const e=Me(t).map(t=>{var e=Ae(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Pe[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){we[t].delete(e),0===we[t].size&&delete we[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Te(e,...t))}(t))).then(()=>Le(t)?Se(t):void delete Pe[t]),Pe[t]}function xe(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 Ne={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Oe=b(!1);let Ie;const Re=b(null);function Ce(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Me(t,e=Ne.fallbackLocale){t=Ce(t);return e?[...new Set([...t,...Ce(e)])]:t}Re.subscribe(t=>{Ie=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Ue=Re.set;Re.set=e=>{if(function(t){if(null!=t){var e=Me(t);for(let t=0;t<e.length;t++){var r=e[t];if(ve(r))return r}}}(e)&&Le(e)){var{loadingDelay:r}=Ne;let t;return"undefined"!=typeof window&&null!=Ie&&r?t=window.setTimeout(()=>Oe.set(!0),r):Oe.set(!0),Se(e).then(()=>{Ue(e)}).finally(()=>{clearTimeout(t),Oe.set(!1)})}return Ue(e)},Re.update=t=>Ue(t(Ie));const ke=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},De=(t,e)=>{var{formats:r}=Ne;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Ge=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=De("number",r)),new Intl.NumberFormat(e,t)}),$e=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=De("date",r):0===Object.keys(t).length&&(t=De("date","short")),new Intl.DateTimeFormat(e,t)}),Fe=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=De("time",r):0===Object.keys(t).length&&(t=De("time","short")),new Intl.DateTimeFormat(e,t)}),je=ke((t,e=Ie)=>new de(t,e,Ne.formats,{ignoreTag:Ne.ignoreTag})),Ve=u([Re,Ee],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=Ie,default:n}=e;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=ye(t,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Ne.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Me(o).join('", "')}".${Le(Ie)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||t;if(!r)return i;let s=i;try{s=je(i,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return Fe(Object.assign({locale:e},t))})(e).format(t)),u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return $e(Object.assign({locale:e},t))})(e).format(t)),u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return Ge(Object.assign({locale:e},t))})(e).format(t)),u([Re,Ee],()=>(t,e=Ie)=>ye(t,e));const Xe={en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the 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 ze(t,e,r){const o=t.slice();return o[29]=e[r],o[31]=r,o}function Be(t,e,r){const o=t.slice();return o[32]=e[r],o}function He(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 Ye(r){let o,i,n,s,a,l,c,u,p,h,m,f,d,g,_,y,t,b,E,v,T,w,A,L,P,S,x,N,O,I,R,C=r[12]("promotions.promotionsTitle")+"";function M(t){return 0<t[3].length?We:Ke}let U=M(r),k=U(r),D=r[9],G=[];for(let t=0;t<D.length;t+=1)G[t]=Je(Be(r,D,t));let $=r[10],F=[];for(let t=0;t<$.length;t+=1)F[t]=tr(ze(r,$,t));return{c(){o=H("section"),i=H("div"),n=H("h1"),s=e(C),a=q(),k.c(),l=q(),c=H("div"),u=H("div"),p=q(),h=H("div"),m=H("div"),m.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=q(),d=H("div"),g=H("picture");for(let t=0;t<G.length;t+=1)G[t].c();_=q(),y=H("img"),b=q(),E=H("div"),v=H("div"),T=H("ul");for(let t=0;t<F.length;t+=1)F[t].c();w=q(),A=H("div"),L=H("h3"),P=q(),S=H("div"),K(n,"class","promotions__title"),K(n,"part","promotions__title"),K(u,"class","modal__backdrop"),K(u,"part","modal__backdrop"),K(m,"class","modal__close"),K(m,"part","modal__close"),y.src!==(t=r[8])&&K(y,"src",t),K(y,"alt",r[6]),K(g,"class","modal__picture"),K(g,"part","modal__picture"),K(d,"class","modal__header"),K(d,"part","modal__header"),K(T,"class","modal__tabs"),K(T,"part","modal__tabs"),K(L,"class","modal__body_title"),K(L,"part","modal__body_title"),K(S,"class","modal__tab_content"),K(S,"part","modal__tab_content"),K(A,"class","modal__tabContentWrapper"),K(A,"part","modal__tabContentWrapper"),K(v,"class","modal__body_content"),K(v,"part","modal__body_content"),K(E,"class","modal__body"),K(E,"part","modal__body"),K(h,"class","modal__content"),K(h,"part","modal__content"),K(c,"class","promo__modal modal"),K(c,"part","promo__modal modal"),K(i,"class",x="promotions "+r[4]),K(i,"part",N="promotions "+r[4]),Z(i,"max-width",r[0]+"px"),J(()=>r[20].call(i)),K(o,"class","promotion__section"),K(o,"part","promotion__section")},m(t,e){X(t,o,e),V(o,i),V(i,n),V(n,s),V(i,a),k.m(i,null),V(i,l),V(i,c),V(c,u),V(c,p),V(c,h),V(h,m),V(h,f),V(h,d),V(d,g);for(let t=0;t<G.length;t+=1)G[t].m(g,null);V(g,_),V(g,y),V(h,b),V(h,E),V(E,v),V(v,T);for(let t=0;t<F.length;t+=1)F[t].m(T,null);V(v,w),V(v,A),V(A,L),L.innerHTML=r[6],V(A,P),V(A,S),S.innerHTML=r[7],r[19](v),O=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=H("iframe");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;const o=function(){if(void 0===Q){Q=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){Q=!0}}return Q}();let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=Y(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=Y(r.contentWindow,"resize",e)}),V(t,r),()=>{(o||n&&r.contentWindow)&&n(),z(r)}}(i,r[20].bind(i)),r[21](i),I||(R=[Y(u,"click",r[14]),Y(m,"click",r[14])],I=!0)},p(e,r){if(4096&r[0]&&C!==(C=e[12]("promotions.promotionsTitle")+"")&&W(s,C),U===(U=M(e))&&k?k.p(e,r):(k.d(1),k=U(e),k&&(k.c(),k.m(i,l))),512&r[0]){let t;for(D=e[9],t=0;t<D.length;t+=1){var o=Be(e,D,t);G[t]?G[t].p(o,r):(G[t]=Je(o),G[t].c(),G[t].m(g,_))}for(;t<G.length;t+=1)G[t].d(1);G.length=D.length}if(256&r[0]&&y.src!==(t=e[8])&&K(y,"src",t),64&r[0]&&K(y,"alt",e[6]),33792&r[0]){let t;for($=e[10],t=0;t<$.length;t+=1){var n=ze(e,$,t);F[t]?F[t].p(n,r):(F[t]=tr(n),F[t].c(),F[t].m(T,null))}for(;t<F.length;t+=1)F[t].d(1);F.length=$.length}64&r[0]&&(L.innerHTML=e[6]),128&r[0]&&(S.innerHTML=e[7]),16&r[0]&&x!==(x="promotions "+e[4])&&K(i,"class",x),16&r[0]&&N!==(N="promotions "+e[4])&&K(i,"part",N),1&r[0]&&Z(i,"max-width",e[0]+"px")},d(t){t&&z(o),k.d(),B(G,t),B(F,t),r[19](null),O(),r[21](null),I=!1,j(R)}}}function Ke(t){let r,o,n=t[12]("promotions.promotionsNone")+"";return{c(){r=H("p"),o=e(n),K(r,"class","promotions__none")},m(t,e){X(t,r,e),V(r,o)},p(t,e){4096&e[0]&&n!==(n=t[12]("promotions.promotionsNone")+"")&&W(o,n)},d(t){t&&z(r)}}}function We(e){let n,i=e[3],s=[];for(let t=0;t<i.length;t+=1)s[t]=Qe(He(e,i,t));return{c(){n=H("div");for(let t=0;t<s.length;t+=1)s[t].c();K(n,"class","promotions__grid"),K(n,"part","promotions__grid")},m(t,e){X(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=He(e,i,t);s[t]?s[t].p(o,r):(s[t]=Qe(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&&z(n),B(s,t)}}}function Ze(t){let r,o,n;return{c(){r=H("source"),K(r,"srcset",o=t[32].pictureSource),K(r,"media",n="("+t[32].media+")")},m(t,e){X(t,r,e)},p(t,e){8&e[0]&&o!==(o=t[32].pictureSource)&&K(r,"srcset",o),8&e[0]&&n!==(n="("+t[32].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function Qe(r){let o,n,i,s,a,l,c,u,p,h,m,f,d,g,_,y,b,E=r[35].title+"",v=r[35].content.split("</p>")[0]+"",T=r[12]("promotions.promotionsButton")+"",w=r[35].image.sources,A=[];for(let t=0;t<w.length;t+=1)A[t]=Ze(qe(r,w,t));return{c(){o=H("div"),n=H("picture");for(let t=0;t<A.length;t+=1)A[t].c();i=q(),s=H("img"),c=q(),u=H("div"),p=H("h2"),h=q(),m=H("div"),f=q(),d=H("button"),g=e(T),_=q(),s.src!==(a=r[35].image.src)&&K(s,"src",a),K(s,"alt",l=r[35].title),K(n,"class","promo__picture"),K(n,"part","promo__picture"),K(p,"class","promo__title"),K(p,"part","promo__title"),K(m,"class","promo__content text--ellipsis"),K(m,"part","promo__content text--ellipsis"),K(d,"class","promo__button"),K(d,"part","promo__button"),K(u,"class","promo__details"),K(u,"part","promo__details"),K(o,"class","promo"),K(o,"part","promo")},m(t,e){X(t,o,e),V(o,n);for(let t=0;t<A.length;t+=1)A[t].m(n,null);V(n,i),V(n,s),V(o,c),V(o,u),V(u,p),p.innerHTML=E,V(u,h),V(u,m),m.innerHTML=v,V(u,f),V(u,d),V(d,g),V(o,_),y||(b=Y(d,"click",function(){L(r[13](r[35]))&&r[13](r[35]).apply(this,arguments)}),y=!0)},p(t,e){if(r=t,8&e[0]){let t;for(w=r[35].image.sources,t=0;t<w.length;t+=1){const s=qe(r,w,t);A[t]?A[t].p(s,e):(A[t]=Ze(s),A[t].c(),A[t].m(n,i))}for(;t<A.length;t+=1)A[t].d(1);A.length=w.length}8&e[0]&&s.src!==(a=r[35].image.src)&&K(s,"src",a),8&e[0]&&l!==(l=r[35].title)&&K(s,"alt",l),8&e[0]&&E!==(E=r[35].title+"")&&(p.innerHTML=E),8&e[0]&&v!==(v=r[35].content.split("</p>")[0]+"")&&(m.innerHTML=v),4096&e[0]&&T!==(T=r[12]("promotions.promotionsButton")+"")&&W(g,T)},d(t){t&&z(o),B(A,t),y=!1,b()}}}function Je(t){let r,o,n;return{c(){r=H("source"),K(r,"srcset",o=t[32].pictureSource),K(r,"media",n="("+t[32].media+")")},m(t,e){X(t,r,e)},p(t,e){512&e[0]&&o!==(o=t[32].pictureSource)&&K(r,"srcset",o),512&e[0]&&n!==(n="("+t[32].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function tr(r){let o,n,i,s,a=r[29].tabDesc+"";return{c(){o=H("li"),n=e(a),K(o,"class","modal__tab"),K(o,"part","modal__tab"),K(o,"id",`tab-${r[31]}`)},m(t,e){X(t,o,e),V(o,n),i||(s=Y(o,"click",function(){L(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+"")&&W(n,a)},d(t){t&&z(o),i=!1,s()}}}function er(t){let r,o=!0!==t[2]&&Ye(t);return{c(){o&&o.c(),r=e(""),this.c=p},m(t,e){o&&o.m(t,e),X(t,r,e)},p(t,e){!0!==t[2]?o?o.p(t,e):(o=Ye(t),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i:p,o:p,d(t){o&&o.d(t),t&&z(r)}}}function rr(e,t,r){let o;var n=Ve;e.$$.on_destroy.push(S(n,t=>r(12,o=t)));var i,s,a=this&&this.__awaiter||function(t,s,a,l){return new(a=a||Promise)(function(r,e){function o(t){try{i(l.next(t))}catch(t){e(t)}}function n(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,n)}i((l=l.apply(t,s||[])).next())})};let l,c,u,p,h,m,{endpoint:f=""}=t,{lang:d=""}=t,{env:g=""}=t,{containermaxwidth:_=""}=t,y=!1,b=[],E,v,T,w,A=[];[{withLocale:i,translations:s}]=[{withLocale:"en",translations:{}}],Re.subscribe(t=>{null==t&&(Ee.set(s),Re.set(i))}),Object.keys(Xe).forEach(t=>{Te(t,Xe[t])});const L=(t,e)=>{m.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=m.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");m.querySelector(`#tab-${e}`).classList.add("modal__tab--active")},P={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return e.$$set=t=>{"endpoint"in t&&r(16,f=t.endpoint),"lang"in t&&r(17,d=t.lang),"env"in t&&r(18,g=t.env),"containermaxwidth"in t&&r(0,_=t.containermaxwidth)},e.$$.update=()=>{var t;2&e.$$.dirty[0]&&r(4,c=Object.entries(P).reduce((t,[e,r])=>[...t,l>=r?e:""],[]).join(" ")),131072&e.$$.dirty[0]&&d&&(t=d,Re.set(t)),458752&e.$$.dirty[0]&&f&&d&&g&&(()=>{r(2,y=!0);var t=new URL(`${f}/${d}/promotions?env=${g}`);fetch(t.href).then(t=>t.json()).then(t=>{r(2,y=!1),r(3,b=t)}).catch(t=>{r(2,y=!1),console.error(t)})})()},[_,l,y,b,c,u,"","",{},[],A,m,o,t=>a(void 0,void 0,void 0,function*(){r(6,E=t.title),r(7,v=t.content),r(8,T=t.image.src),r(9,w=t.image.sources),r(10,A=[{order:"0",tabContent:v,tabDesc:"Description"},...t.tabs]),p=u.querySelector(".modal"),h=window.document.querySelector("body"),p.classList.add("modal--open"),h.style.overflow="hidden",O(),yield N,L(A[0],0)}),()=>{p=u.querySelector(".modal"),h=window.document.querySelector("body"),p.classList.remove("modal--open"),h.style.overflow="initial"},L,f,d,g,function(t){x[t?"unshift":"push"](()=>{m=t,r(11,m)})},function(){l=this.clientWidth,r(1,l)},function(t){x[t?"unshift":"push"](()=>{u=t,r(5,u)})}]}class or extends l{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>",a(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},rr,er,r,{endpoint:16,lang:17,env:18,containermaxwidth:0},[-1,-1]),t&&(t.target&&X(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$set({endpoint:t}),_()}get lang(){return this.$$.ctx[17]}set lang(t){this.$set({lang:t}),_()}get env(){return this.$$.ctx[18]}set env(t){this.$set({env:t}),_()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$set({containermaxwidth:t}),_()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",or),or});
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 p(){}function h(t){return t()}function m(){return Object.create(null)}function j(t){t.forEach(h)}function L(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function S(t,...e){if(null==t)return p;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function V(t,e){t.appendChild(e)}function X(t,e,r){t.insertBefore(e,r||null)}function z(t){t.parentNode.removeChild(t)}function B(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function H(t){return document.createElement(t)}function e(t){return document.createTextNode(t)}function q(){return e(" ")}function Y(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function K(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function W(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function Z(t,e,r,o){t.style.setProperty(e,r,o?"important":"")}let Q,f;function d(t){f=t}const g=[],x=[],o=[],t=[],N=Promise.resolve();let n=!1;function O(){n||(n=!0,N.then(_))}function J(t){o.push(t)}let i=!1;const s=new Set;function _(){if(!i){i=!0;do{for(let t=0;t<g.length;t+=1){var e=g[t];d(e),function(t){{var e;null!==t.fragment&&(t.update(),j(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(J))}}(e.$$)}for(d(null),g.length=0;x.length;)x.pop()();for(let t=0;t<o.length;t+=1){const r=o[t];s.has(r)||(s.add(r),r())}}while(o.length=0,g.length);for(;t.length;)t.pop()();n=!1,i=!1,s.clear()}}const y=new Set;function a(o,t,e,r,n,i,s=[-1]){var a,l=f;d(o);const c=o.$$={fragment:null,ctx:null,props:i,update:p,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:m(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=e?e(o,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&n(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=o).$$.dirty[0]&&(g.push(t),O(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,j(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const p=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(p),p.forEach(z)}else c.fragment&&c.fragment.c();t.intro&&(a=o.$$.fragment)&&a.i&&(y.delete(a),a.i(void 0)),function(e,t,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=e.$$;n&&n.m(t,r),o||J(()=>{var t=i.map(h).filter(L);s?s.push(...t):j(t),e.$$.on_mount=[]}),a.forEach(J)}(o,t.target,t.anchor,t.customElement),_()}d(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(L);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){j(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(j(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=p}$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 c=[];function b(o,n=p){let i;const s=[];function a(t){if(r(o,t)&&(o=t,i)){const t=!c.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),c.push(e,o)}if(t){for(let t=0;t<c.length;t+=2)c[t][0](c[t+1]);c.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=p){const r=[t,e];return s.push(r),1===s.length&&(i=n(a)||p),t(o),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function u(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:b(e,e=>{let r=!1;const o=[];let n=0,i=p;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),u?e(t):i=L(t)?t:p)},t=c.map((t,e)=>S(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){j(t),i()}}).subscribe}}var E=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===v));var e},v="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(t,e){return!1!==e.clone&&e.isMergeableObject(t)?R(Array.isArray(t)?[]:{},t,e):t}function w(t,e,r){return t.concat(e).map(function(t){return T(t,r)})}function A(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function P(t,e){try{return e in t}catch(t){return!1}}function I(o,n,i){var s={};return i.isMergeableObject(o)&&A(o).forEach(function(t){s[t]=T(o[t],i)}),A(n).forEach(function(e){var t,r;(!P(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(P(o,e)&&i.isMergeableObject(n[e])?s[e]=function(){if(!i.customMerge)return R;var t=i.customMerge(e);return"function"==typeof t?t:R}()(o[e],n[e],i):s[e]=T(n[e],i))}),s}function R(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||w,r.isMergeableObject=r.isMergeableObject||E,r.cloneUnlessOtherwiseSpecified=T;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):I(t,e,r):T(e,r)}R.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return R(t,e,r)},{})};var C=R,M=function(t,e){return(M=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 U(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}M(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var k,D,G,$=function(){return($=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 F(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function tt(t){return t.type===D.literal}function et(t){return t.type===D.number}function rt(t){return t.type===D.date}function ot(t){return t.type===D.time}function nt(t){return t.type===D.select}function it(t){return t.type===D.plural}function st(t){return t.type===D.tag}function at(t){return t&&"object"==typeof t&&t.type===G.number}function lt(t){return t&&"object"==typeof t&&t.type===G.dateTime}(St=k=k||{})[St.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",St[St.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",St[St.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",St[St.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",St[St.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",St[St.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",St[St.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",St[St.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",St[St.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",St[St.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",St[St.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",St[St.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",St[St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",St[St.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",St[St.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",St[St.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",St[St.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",St[St.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",St[St.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",St[St.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",St[St.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",St[St.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",St[St.INVALID_TAG=23]="INVALID_TAG",St[St.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",St[St.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",St[St.UNCLOSED_TAG=27]="UNCLOSED_TAG",(xt=D=D||{})[xt.literal=0]="literal",xt[xt.argument=1]="argument",xt[xt.number=2]="number",xt[xt.date=3]="date",xt[xt.time=4]="time",xt[xt.select=5]="select",xt[xt.plural=6]="plural",xt[xt.pound=7]="pound",xt[xt.tag=8]="tag",(Nt=G=G||{})[Nt.number=0]="number",Nt[Nt.dateTime=1]="dateTime";var ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ut=/(?:[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 pt,ht=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ft=/^(@+)?(\+|#+)?$/g,dt=/(\*)(0+)|(#+)(0+)|(0+)/g,gt=/^(0+)$/;function _t(t){var o={};return t.replace(ft,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 yt(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 bt(t){return yt(t)||{}}function Et(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=$($($({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return $($({},t),bt(e))},{}));continue;case"engineering":s=$($($({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return $($({},t),bt(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(dt,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(gt.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(mt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(mt,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),""}),n.options.length&&(s=$($({},s),_t(n.options[0])))}else ft.test(n.stem)?s=$($({},s),_t(n.stem)):((o=yt(n.stem))&&(s=$($({},s),o)),(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)),!gt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=$($({},s),o)))}return s}var vt=new RegExp("^"+ct.source+"*"),Tt=new RegExp(ct.source+"*$");function wt(t,e){return{start:t,end:e}}var At=!!String.prototype.startsWith,Lt=!!String.fromCodePoint,Pt=!!Object.fromEntries,St=!!String.prototype.codePointAt,xt=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,Ot=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ct=!0;try{ct="a"===(null===(pt=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pt?void 0:pt[0])}catch(p){ct=!1}var It,Rt,Ct=At?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Mt=Lt?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},Ut=Pt?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},kt=St?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var o,n=t.charCodeAt(e);return n<55296||56319<n||e+1===r||(o=t.charCodeAt(e+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Dt=xt?function(t){return t.trimStart()}:function(t){return t.replace(vt,"")},Gt=Nt?function(t){return t.trimEnd()}:function(t){return t.replace(Tt,"")};function $t(t,e){return new RegExp(t,e)}Rt=ct?(It=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return It.lastIndex=e,null!==(t=It.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=kt(t,e);if(void 0===n||Xt(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 Mt.apply(void 0,o)};var Ft=(jt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},jt.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(k.UNMATCHED_CLOSING_TAG,wt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Vt(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:D.pound,location:wt(i,this.clonePosition())})}}}return{val:o,err:null}},jt.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:D.literal,value:"<"+o+"/>",location:wt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;t=n.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Vt(this.char()))return this.error(k.INVALID_TAG,wt(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(k.UNMATCHED_CLOSING_TAG,wt(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:D.tag,value:o,children:t,location:wt(r,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,wt(e,this.clonePosition())))}return this.error(k.UNCLOSED_TAG,wt(r,this.clonePosition()))}return this.error(k.INVALID_TAG,wt(r,this.clonePosition()))},jt.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())},jt.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=wt(r,this.clonePosition());return{val:{type:D.literal,value:o,location:r},err:null}},jt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Vt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},jt.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 Mt.apply(void 0,e)},jt.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(),Mt(r))},jt.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(k.EMPTY_ARGUMENT,wt(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(k.MALFORMED_ARGUMENT,wt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:D.argument,value:o,location:wt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(k.MALFORMED_ARGUMENT,wt(r,this.clonePosition()))}},jt.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Rt(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:wt(t,this.clonePosition())}},jt.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(k.EXPECT_ARGUMENT_TYPE,wt(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Gt(h.val)).length)return this.error(k.EXPECT_ARGUMENT_STYLE,wt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:wt(c,this.clonePosition())}}if((m=this.tryParseArgumentClose(o)).err)return m;var u=wt(o,this.clonePosition());if(l&&Ct(null==l?void 0:l.style,"::",0)){c=Dt(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:D.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(k.EXPECT_DATE_TIME_SKELETON,u);var p={type:G.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(ut,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?D.date:D.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===s?D.number:"date"===s?D.date:D.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,wt(l,$({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,wt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(t,s,e,u);if(u.err)return u;if((m=this.tryParseArgumentClose(o)).err)return m;var m=wt(o,this.clonePosition());return"select"===s?{val:{type:D.select,value:r,options:Ut(u.val),location:m},err:null}:{val:{type:D.plural,value:r,options:Ut(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null};default:return this.error(k.INVALID_ARGUMENT_TYPE,wt(i,a))}},jt.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,wt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},jt.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(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,wt(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}},jt.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(ht).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(k.INVALID_NUMBER_SKELETON,e)}return{val:{type:G.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Et(r):{}},err:null}},jt.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 c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=wt(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,wt(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;i.push([a,{value:u.val,location:wt(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===i.length?this.error("select"===e?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,wt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(k.MISSING_OTHER_CLAUSE,wt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},jt.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=wt(o,this.clonePosition());return n?Ot(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},jt.prototype.offset=function(){return this.position.offset},jt.prototype.isEOF=function(){return this.offset()===this.message.length},jt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},jt.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=kt(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},jt.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},jt.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))},jt.prototype.bumpIf=function(t){if(Ct(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},jt.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},jt.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},jt.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xt(this.char());)this.bump()},jt.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},jt);function jt(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function Vt(t){return 97<=t&&t<=122||65<=t&&t<=90}function Xt(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function zt(t,e){e=$({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Ft(t,e).parse();if(r.err){t=SyntaxError(k[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,nt(t)||it(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else et(t)&&at(t.style)||(rt(t)||ot(t))&&lt(t.style)?delete t.style.location:st(t)&&r(t.children)})}(r.val),r.val}function Bt(t,e){var r=e&&e.cache?e.cache:Qt,o=e&&e.serializer?e.serializer:Kt;return(e&&e.strategy?e.strategy:function(t,e){return Yt(t,this,1===t.length?Ht:qt,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function Ht(t,e,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=e.get(n);return void 0===r&&(r=t.call(this,o),e.set(n,r)),r}function qt(t,e,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=e.get(n);return void 0===r&&(r=t.apply(this,o),e.set(n,r)),r}function Yt(t,e,r,o,n){return r.bind(e,t,o,n)}var Kt=function(){return JSON.stringify(arguments)};function Wt(){this.cache=Object.create(null)}Wt.prototype.has=function(t){return t in this.cache},Wt.prototype.get=function(t){return this.cache[t]},Wt.prototype.set=function(t,e){this.cache[t]=e};var Zt,Qt={create:function(){return new Wt}},Jt={variadic:function(t,e){return Yt(t,this,qt,e.cache.create(),e.serializer)},monadic:function(t,e){return Yt(t,this,Ht,e.cache.create(),e.serializer)}};(ct=Zt=Zt||{}).MISSING_VALUE="MISSING_VALUE",ct.INVALID_VALUE="INVALID_VALUE",ct.MISSING_INTL_API="MISSING_INTL_API";var te,ee,re,oe,ne,ie=(U(he,ne=Error),he.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},he),se=(U(pe,oe=ie),pe),ae=(U(ue,re=ie),ue),le=(U(ce,ee=ie),ce);function ce(t,e){return ee.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',Zt.MISSING_VALUE,e)||this}function ue(t,e,r){return re.call(this,'Value for "'+t+'" must be of type '+e,Zt.INVALID_VALUE,r)||this}function pe(t,e,r,o){return oe.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',Zt.INVALID_VALUE,o)||this}function he(t,e,r){t=ne.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function me(t,e,r,o,n,i,s){if(1===t.length&&tt(t[0]))return[{type:te.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(tt(u))a.push({type:te.literal,value:u.value});else if(u.type===D.pound)"number"==typeof i&&a.push({type:te.literal,value:r.getNumberFormat(e).format(i)});else{var p=u.value;if(!(n&&p in n))throw new le(p,s);var h=n[p];if(u.type===D.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?te.literal:te.object,value:h});else if(rt(u)){var m="string"==typeof u.style?o.date[u.style]:lt(u.style)?u.style.parsedOptions:void 0;a.push({type:te.literal,value:r.getDateTimeFormat(e,m).format(h)})}else if(ot(u))m="string"==typeof u.style?o.time[u.style]:lt(u.style)?u.style.parsedOptions:void 0,a.push({type:te.literal,value:r.getDateTimeFormat(e,m).format(h)});else if(et(u))(m="string"==typeof u.style?o.number[u.style]:at(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(h*=m.scale||1),a.push({type:te.literal,value:r.getNumberFormat(e,m).format(h)});else{if(st(u)){var f=u.children,d=u.value,p=n[d];if("function"!=typeof p)throw new ae(d,"function",s);f=p(me(f,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?te.literal:te.object,value:t}}))}if(nt(u)){if(!(g=u.options[h]||u.options.other))throw new se(u.value,h,Object.keys(u.options),s);a.push.apply(a,me(g.value,e,r,o,n))}else if(it(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new ie('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zt.MISSING_INTL_API,s);var f=r.getPluralRules(e,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new se(u.value,h,Object.keys(u.options),s);a.push.apply(a,me(g.value,e,r,o,n,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===te.literal&&e.type===te.literal?r.value+=e.value:t.push(e),t},[])}function fe(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(ct=te=te||{})[ct.literal=0]="literal",ct[ct.object=1]="object";var de=(Object.defineProperty(ge,"defaultLocale",{get:function(){return ge.memoizedDefaultLocale||(ge.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ge.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ge.memoizedDefaultLocale=null,ge.__parse=zt,ge.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"}}},ge);function ge(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=ge.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===te.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 me(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!ge.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ge.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}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=ge.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?$($($({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=$($({},r[e]),o[e]||{}),t},{})):r),t},$({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,F([void 0],e)))},{cache:fe((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:Jt.variadic}),getDateTimeFormat:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,F([void 0],e)))},{cache:fe(o.dateTime),strategy:Jt.variadic}),getPluralRules:Bt(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,F([void 0],e)))},{cache:fe(o.pluralRules),strategy:Jt.variadic})}}const _e={},ye=(e,r)=>{if(null!=r){if(r in _e&&e in _e[r])return _e[r][e];var o,n,i=Me(r);for(let t=0;t<i.length;t++){var s=(o=i[t],n=e,ve(o)?function(t,e){if(e in t)return t[e];const r=e.split(".");let o=t;for(let t=0;t<r.length;t++)if("object"==typeof o){if(0<t){const e=r.slice(t,r.length).join(".");if(e in o){o=o[e];break}}o=o[r[t]]}else o=void 0;return o}(function(t){return be[t]||null}(o),n):null);if(s)return o=e,n=r,(s=s)&&(n in _e||(_e[n]={}),o in _e[n]||(_e[n][o]=s),s)}}};let be;const Ee=b({});function ve(t){return t in be}function Te(e,...r){delete _e[e],Ee.update(t=>(t[e]=C.all([t[e]||{},...r]),t))}u([Ee],([t])=>Object.keys(t)),Ee.subscribe(t=>be=t);const we={};function Ae(t){return we[t]}function Le(t){return Me(t).some(t=>{return null===(t=Ae(t))||void 0===t?void 0:t.size})}const Pe={};function Se(t){if(!Le(t))return t in Pe?Pe[t]:void 0;const e=Me(t).map(t=>{var e=Ae(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Pe[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){we[t].delete(e),0===we[t].size&&delete we[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Te(e,...t))}(t))).then(()=>Le(t)?Se(t):void delete Pe[t]),Pe[t]}function xe(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 Ne={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Oe=b(!1);let Ie;const Re=b(null);function Ce(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Me(t,e=Ne.fallbackLocale){t=Ce(t);return e?[...new Set([...t,...Ce(e)])]:t}Re.subscribe(t=>{Ie=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Ue=Re.set;Re.set=e=>{if(function(t){if(null!=t){var e=Me(t);for(let t=0;t<e.length;t++){var r=e[t];if(ve(r))return r}}}(e)&&Le(e)){var{loadingDelay:r}=Ne;let t;return"undefined"!=typeof window&&null!=Ie&&r?t=window.setTimeout(()=>Oe.set(!0),r):Oe.set(!0),Se(e).then(()=>{Ue(e)}).finally(()=>{clearTimeout(t),Oe.set(!1)})}return Ue(e)},Re.update=t=>Ue(t(Ie));const ke=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},De=(t,e)=>{var{formats:r}=Ne;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Ge=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=De("number",r)),new Intl.NumberFormat(e,t)}),$e=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=De("date",r):0===Object.keys(t).length&&(t=De("date","short")),new Intl.DateTimeFormat(e,t)}),Fe=ke(t=>{var{locale:e,format:r}=t,t=xe(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=De("time",r):0===Object.keys(t).length&&(t=De("time","short")),new Intl.DateTimeFormat(e,t)}),je=ke((t,e=Ie)=>new de(t,e,Ne.formats,{ignoreTag:Ne.ignoreTag})),Ve=u([Re,Ee],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=Ie,default:n}=e;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=ye(t,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Ne.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Me(o).join('", "')}".${Le(Ie)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||t;if(!r)return i;let s=i;try{s=je(i,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return Fe(Object.assign({locale:e},t))})(e).format(t)),u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return $e(Object.assign({locale:e},t))})(e).format(t)),u([Re],()=>(t,e)=>((t={})=>{var{locale:e=Ie}=t,t=xe(t,["locale"]);return Ge(Object.assign({locale:e},t))})(e).format(t)),u([Re,Ee],()=>(t,e=Ie)=>ye(t,e));const Xe={en:{promotions:{promotionsTitle:"Promotions",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment."}},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 ze(t,e,r){const o=t.slice();return o[29]=e[r],o[31]=r,o}function Be(t,e,r){const o=t.slice();return o[32]=e[r],o}function He(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 Ye(r){let o,i,n,s,a,l,c,u,p,h,m,f,d,g,_,y,t,b,E,v,T,w,A,L,P,S,x,N,O,I,R,C=r[12]("promotions.promotionsTitle")+"";function M(t){return 0<t[3].length?We:Ke}let U=M(r),k=U(r),D=r[9],G=[];for(let t=0;t<D.length;t+=1)G[t]=Je(Be(r,D,t));let $=r[10],F=[];for(let t=0;t<$.length;t+=1)F[t]=tr(ze(r,$,t));return{c(){o=H("section"),i=H("div"),n=H("h1"),s=e(C),a=q(),k.c(),l=q(),c=H("div"),u=H("div"),p=q(),h=H("div"),m=H("div"),m.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=q(),d=H("div"),g=H("picture");for(let t=0;t<G.length;t+=1)G[t].c();_=q(),y=H("img"),b=q(),E=H("div"),v=H("div"),T=H("ul");for(let t=0;t<F.length;t+=1)F[t].c();w=q(),A=H("div"),L=H("h3"),P=q(),S=H("div"),K(n,"class","promotions__title"),K(n,"part","promotions__title"),K(u,"class","modal__backdrop"),K(u,"part","modal__backdrop"),K(m,"class","modal__close"),K(m,"part","modal__close"),y.src!==(t=r[8])&&K(y,"src",t),K(y,"alt",r[6]),K(g,"class","modal__picture"),K(g,"part","modal__picture"),K(d,"class","modal__header"),K(d,"part","modal__header"),K(T,"class","modal__tabs"),K(T,"part","modal__tabs"),K(L,"class","modal__body_title"),K(L,"part","modal__body_title"),K(S,"class","modal__tab_content"),K(S,"part","modal__tab_content"),K(A,"class","modal__tabContentWrapper"),K(A,"part","modal__tabContentWrapper"),K(v,"class","modal__body_content"),K(v,"part","modal__body_content"),K(E,"class","modal__body"),K(E,"part","modal__body"),K(h,"class","modal__content"),K(h,"part","modal__content"),K(c,"class","promo__modal modal"),K(c,"part","promo__modal modal"),K(i,"class",x="promotions "+r[4]),K(i,"part",N="promotions "+r[4]),Z(i,"max-width",r[0]+"px"),J(()=>r[20].call(i)),K(o,"class","promotion__section"),K(o,"part","promotion__section")},m(t,e){X(t,o,e),V(o,i),V(i,n),V(n,s),V(i,a),k.m(i,null),V(i,l),V(i,c),V(c,u),V(c,p),V(c,h),V(h,m),V(h,f),V(h,d),V(d,g);for(let t=0;t<G.length;t+=1)G[t].m(g,null);V(g,_),V(g,y),V(h,b),V(h,E),V(E,v),V(v,T);for(let t=0;t<F.length;t+=1)F[t].m(T,null);V(v,w),V(v,A),V(A,L),L.innerHTML=r[6],V(A,P),V(A,S),S.innerHTML=r[7],r[19](v),O=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=H("iframe");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;const o=function(){if(void 0===Q){Q=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){Q=!0}}return Q}();let n;return o?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",n=Y(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{n=Y(r.contentWindow,"resize",e)}),V(t,r),()=>{(o||n&&r.contentWindow)&&n(),z(r)}}(i,r[20].bind(i)),r[21](i),I||(R=[Y(u,"click",r[14]),Y(m,"click",r[14])],I=!0)},p(e,r){if(4096&r[0]&&C!==(C=e[12]("promotions.promotionsTitle")+"")&&W(s,C),U===(U=M(e))&&k?k.p(e,r):(k.d(1),k=U(e),k&&(k.c(),k.m(i,l))),512&r[0]){let t;for(D=e[9],t=0;t<D.length;t+=1){var o=Be(e,D,t);G[t]?G[t].p(o,r):(G[t]=Je(o),G[t].c(),G[t].m(g,_))}for(;t<G.length;t+=1)G[t].d(1);G.length=D.length}if(256&r[0]&&y.src!==(t=e[8])&&K(y,"src",t),64&r[0]&&K(y,"alt",e[6]),33792&r[0]){let t;for($=e[10],t=0;t<$.length;t+=1){var n=ze(e,$,t);F[t]?F[t].p(n,r):(F[t]=tr(n),F[t].c(),F[t].m(T,null))}for(;t<F.length;t+=1)F[t].d(1);F.length=$.length}64&r[0]&&(L.innerHTML=e[6]),128&r[0]&&(S.innerHTML=e[7]),16&r[0]&&x!==(x="promotions "+e[4])&&K(i,"class",x),16&r[0]&&N!==(N="promotions "+e[4])&&K(i,"part",N),1&r[0]&&Z(i,"max-width",e[0]+"px")},d(t){t&&z(o),k.d(),B(G,t),B(F,t),r[19](null),O(),r[21](null),I=!1,j(R)}}}function Ke(t){let r,o,n=t[12]("promotions.promotionsNone")+"";return{c(){r=H("p"),o=e(n),K(r,"class","promotions__none")},m(t,e){X(t,r,e),V(r,o)},p(t,e){4096&e[0]&&n!==(n=t[12]("promotions.promotionsNone")+"")&&W(o,n)},d(t){t&&z(r)}}}function We(e){let n,i=e[3],s=[];for(let t=0;t<i.length;t+=1)s[t]=Qe(He(e,i,t));return{c(){n=H("div");for(let t=0;t<s.length;t+=1)s[t].c();K(n,"class","promotions__grid"),K(n,"part","promotions__grid")},m(t,e){X(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=He(e,i,t);s[t]?s[t].p(o,r):(s[t]=Qe(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&&z(n),B(s,t)}}}function Ze(t){let r,o,n;return{c(){r=H("source"),K(r,"srcset",o=t[32].pictureSource),K(r,"media",n="("+t[32].media+")")},m(t,e){X(t,r,e)},p(t,e){8&e[0]&&o!==(o=t[32].pictureSource)&&K(r,"srcset",o),8&e[0]&&n!==(n="("+t[32].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function Qe(r){let o,n,i,s,a,l,c,u,p,h,m,f,d,g,_,y,b,E=r[35].title+"",v=r[35].content.split("</p>")[0]+"",T=r[12]("promotions.promotionsButton")+"",w=r[35].image.sources,A=[];for(let t=0;t<w.length;t+=1)A[t]=Ze(qe(r,w,t));return{c(){o=H("div"),n=H("picture");for(let t=0;t<A.length;t+=1)A[t].c();i=q(),s=H("img"),c=q(),u=H("div"),p=H("h2"),h=q(),m=H("div"),f=q(),d=H("button"),g=e(T),_=q(),s.src!==(a=r[35].image.src)&&K(s,"src",a),K(s,"alt",l=r[35].title),K(n,"class","promo__picture"),K(n,"part","promo__picture"),K(p,"class","promo__title"),K(p,"part","promo__title"),K(m,"class","promo__content text--ellipsis"),K(m,"part","promo__content text--ellipsis"),K(d,"class","promo__button"),K(d,"part","promo__button"),K(u,"class","promo__details"),K(u,"part","promo__details"),K(o,"class","promo"),K(o,"part","promo")},m(t,e){X(t,o,e),V(o,n);for(let t=0;t<A.length;t+=1)A[t].m(n,null);V(n,i),V(n,s),V(o,c),V(o,u),V(u,p),p.innerHTML=E,V(u,h),V(u,m),m.innerHTML=v,V(u,f),V(u,d),V(d,g),V(o,_),y||(b=Y(d,"click",function(){L(r[13](r[35]))&&r[13](r[35]).apply(this,arguments)}),y=!0)},p(t,e){if(r=t,8&e[0]){let t;for(w=r[35].image.sources,t=0;t<w.length;t+=1){const s=qe(r,w,t);A[t]?A[t].p(s,e):(A[t]=Ze(s),A[t].c(),A[t].m(n,i))}for(;t<A.length;t+=1)A[t].d(1);A.length=w.length}8&e[0]&&s.src!==(a=r[35].image.src)&&K(s,"src",a),8&e[0]&&l!==(l=r[35].title)&&K(s,"alt",l),8&e[0]&&E!==(E=r[35].title+"")&&(p.innerHTML=E),8&e[0]&&v!==(v=r[35].content.split("</p>")[0]+"")&&(m.innerHTML=v),4096&e[0]&&T!==(T=r[12]("promotions.promotionsButton")+"")&&W(g,T)},d(t){t&&z(o),B(A,t),y=!1,b()}}}function Je(t){let r,o,n;return{c(){r=H("source"),K(r,"srcset",o=t[32].pictureSource),K(r,"media",n="("+t[32].media+")")},m(t,e){X(t,r,e)},p(t,e){512&e[0]&&o!==(o=t[32].pictureSource)&&K(r,"srcset",o),512&e[0]&&n!==(n="("+t[32].media+")")&&K(r,"media",n)},d(t){t&&z(r)}}}function tr(r){let o,n,i,s,a=r[29].tabDesc+"";return{c(){o=H("li"),n=e(a),K(o,"class","modal__tab"),K(o,"part","modal__tab"),K(o,"id",`tab-${r[31]}`)},m(t,e){X(t,o,e),V(o,n),i||(s=Y(o,"click",function(){L(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+"")&&W(n,a)},d(t){t&&z(o),i=!1,s()}}}function er(t){let r,o=!0!==t[2]&&Ye(t);return{c(){o&&o.c(),r=e(""),this.c=p},m(t,e){o&&o.m(t,e),X(t,r,e)},p(t,e){!0!==t[2]?o?o.p(t,e):(o=Ye(t),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i:p,o:p,d(t){o&&o.d(t),t&&z(r)}}}function rr(e,t,r){let o;var n=Ve;e.$$.on_destroy.push(S(n,t=>r(12,o=t)));var i,s,a=this&&this.__awaiter||function(t,s,a,l){return new(a=a||Promise)(function(r,e){function o(t){try{i(l.next(t))}catch(t){e(t)}}function n(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,n)}i((l=l.apply(t,s||[])).next())})};let l,c,u,p,h,m,{endpoint:f=""}=t,{lang:d=""}=t,{env:g=""}=t,{containermaxwidth:_=""}=t,y=!1,b=[],E,v,T,w,A=[];[{withLocale:i,translations:s}]=[{withLocale:"en",translations:{}}],Re.subscribe(t=>{null==t&&(Ee.set(s),Re.set(i))}),Object.keys(Xe).forEach(t=>{Te(t,Xe[t])});const L=(t,e)=>{m.querySelector(".modal__tab_content").innerHTML=t.tabContent;let r=m.querySelectorAll(".modal__tab");for(let t=0;t<r.length;t++)r[t].classList.remove("modal__tab--active");m.querySelector(`#tab-${e}`).classList.add("modal__tab--active")},P={sm:640,md:768,lg:1024,xl:1280,xxl:1536};return e.$$set=t=>{"endpoint"in t&&r(16,f=t.endpoint),"lang"in t&&r(17,d=t.lang),"env"in t&&r(18,g=t.env),"containermaxwidth"in t&&r(0,_=t.containermaxwidth)},e.$$.update=()=>{var t;2&e.$$.dirty[0]&&r(4,c=Object.entries(P).reduce((t,[e,r])=>[...t,l>=r?e:""],[]).join(" ")),131072&e.$$.dirty[0]&&d&&(t=d,Re.set(t)),458752&e.$$.dirty[0]&&f&&d&&g&&(()=>{r(2,y=!0);var t=new URL(`${f}/${d}/promotions?env=${g}`);fetch(t.href).then(t=>t.json()).then(t=>{r(2,y=!1),r(3,b=t)}).catch(t=>{r(2,y=!1),console.error(t)})})()},[_,l,y,b,c,u,"","",{},[],A,m,o,t=>a(void 0,void 0,void 0,function*(){r(6,E=t.title),r(7,v=t.content),r(8,T=t.image.src),r(9,w=t.image.sources),r(10,A=[{order:"0",tabContent:v,tabDesc:"Description"},...t.tabs]),p=u.querySelector(".modal"),h=window.document.querySelector("body"),p.classList.add("modal--open"),h.style.overflow="hidden",O(),yield N,L(A[0],0)}),()=>{p=u.querySelector(".modal"),h=window.document.querySelector("body"),p.classList.remove("modal--open"),h.style.overflow="initial"},L,f,d,g,function(t){x[t?"unshift":"push"](()=>{m=t,r(11,m)})},function(){l=this.clientWidth,r(1,l)},function(t){x[t?"unshift":"push"](()=>{u=t,r(5,u)})}]}class or extends l{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>",a(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},rr,er,r,{endpoint:16,lang:17,env:18,containermaxwidth:0},[-1,-1]),t&&(t.target&&X(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["endpoint","lang","env","containermaxwidth"]}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$set({endpoint:t}),_()}get lang(){return this.$$.ctx[17]}set lang(t){this.$set({lang:t}),_()}get env(){return this.$$.ctx[18]}set env(t){this.$set({env:t}),_()}get containermaxwidth(){return this.$$.ctx[0]}set containermaxwidth(t){this.$set({containermaxwidth:t}),_()}}return customElements.get("casino-promotions")||customElements.define("casino-promotions",or),or});
2
2
  //# sourceMappingURL=casino-promotions.js.map