@everymatrix/player-account-gaming-limits-wrapper-2 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t,i){e.$$.on_destroy.push(s(t,i))}function l(e,t){e.appendChild(t)}function u(e,t,i){e.insertBefore(t,i||null)}function c(e){e.parentNode.removeChild(e)}function m(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function p(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function h(e){return document.createTextNode(e)}function f(){return h(" ")}function g(){return h("")}function y(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function b(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function v(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:b(e,t,i)}function L(e){return""===e?null:+e}function T(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e,t){e.value=null==t?"":t}function E(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function x(e,t){for(let i=0;i<e.options.length;i+=1){const n=e.options[i];if(n.__value===t)return void(n.selected=!0)}e.selectedIndex=-1}function S(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}function A(e,t,i){e.classList[i?"add":"remove"](t)}function $(e){const t={};for(const i of e)t[i.name]=i.value;return t}let P;function _(e){P=e}function I(e){(function(){if(!P)throw new Error("Function called outside component initialization");return P})().$$.on_mount.push(e)}const k=[],D=[],N=[],B=[],O=Promise.resolve();let M=!1;function U(e){N.push(e)}const C=new Set;let H=0;function j(){const e=P;do{for(;H<k.length;){const e=k[H];H++,_(e),R(e.$$)}for(_(null),k.length=0,H=0;D.length;)D.pop()();for(let e=0;e<N.length;e+=1){const t=N[e];C.has(t)||(C.add(t),t())}N.length=0}while(k.length);for(;B.length;)B.pop()();M=!1,C.clear(),_(e)}function R(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}const z=new Set;const G="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function F(e,t){-1===e.$$.dirty[0]&&(k.push(e),M||(M=!0,O.then(j)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function V(o,s,a,l,u,m,p,d=[-1]){const h=P;_(o);const f=o.$$={fragment:null,ctx:null,props:m,update:e,not_equal:u,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:i(),dirty:d,skip_bound:!1,root:s.target||h.$$.root};p&&p(f.root);let g=!1;if(f.ctx=a?a(o,s.props||{},((e,t,...i)=>{const n=i.length?i[0]:t;return f.ctx&&u(f.ctx[e],f.ctx[e]=n)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](n),g&&F(o,e)),t})):[],f.update(),g=!0,n(f.before_update),f.fragment=!!l&&l(f.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);f.fragment&&f.fragment.l(e),e.forEach(c)}else f.fragment&&f.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(z.delete(y),y.i(b))),function(e,i,o,s){const{fragment:a,on_mount:l,on_destroy:u,after_update:c}=e.$$;a&&a.m(i,o),s||U((()=>{const i=l.map(t).filter(r);u?u.push(...i):n(i),e.$$.on_mount=[]})),c.forEach(U)}(o,s.target,s.anchor,s.customElement),j()}var y,b;_(h)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(e,t){const i=e.$$;null!==i.fragment&&(n(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const X={deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",periods:["Daily","Weekly","Monthly"]},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",periods:["Daily","Weekly","Monthly"]},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",periods:["Monthly"]},stake:{title:"Stake Limit",value:"stake",callValue:"stakeLimit",periods:["Monthly"]}},q=[];function Y(t,i=e){let n;const r=new Set;function s(e){if(o(t,e)&&(t=e,n)){const e=!q.length;for(const e of r)e[1](),q.push(e,t);if(e){for(let e=0;e<q.length;e+=2)q[e][0](q[e+1]);q.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return r.add(l),1===r.size&&(n=i(s)||e),o(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function K(t,i,o){const a=!Array.isArray(t),l=a?[t]:t,u=i.length<2;return c=t=>{let o=!1;const c=[];let m=0,p=e;const d=()=>{if(m)return;p();const n=i(a?c[0]:c,t);u?t(n):p=r(n)?n:e},h=l.map(((e,t)=>s(e,(e=>{c[t]=e,m&=~(1<<t),o&&d()}),(()=>{m|=1<<t}))));return o=!0,d(),function(){n(h),p()}},{subscribe:Y(o,c).subscribe};var c}var Z=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===J}(e)}(e)};var J="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Q(e,t){return!1!==t.clone&&t.isMergeableObject(e)?re((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function ee(e,t,i){return e.concat(t).map((function(e){return Q(e,i)}))}function te(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function ie(e,t){try{return t in e}catch(e){return!1}}function ne(e,t,i){var n={};return i.isMergeableObject(e)&&te(e).forEach((function(t){n[t]=Q(e[t],i)})),te(t).forEach((function(r){(function(e,t){return ie(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(ie(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return re;var i=t.customMerge(e);return"function"==typeof i?i:re}(r,i)(e[r],t[r],i):n[r]=Q(t[r],i))})),n}function re(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||ee,i.isMergeableObject=i.isMergeableObject||Z,i.cloneUnlessOtherwiseSpecified=Q;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):ne(e,t,i):Q(t,i)}re.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return re(e,i,t)}),{})};var oe=re,se=function(e,t){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},se(e,t)};function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var le,ue,ce,me=function(){return me=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},me.apply(this,arguments)};function pe(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function de(e){return e.type===ue.literal}function he(e){return e.type===ue.argument}function fe(e){return e.type===ue.number}function ge(e){return e.type===ue.date}function ye(e){return e.type===ue.time}function be(e){return e.type===ue.select}function ve(e){return e.type===ue.plural}function Le(e){return e.type===ue.pound}function Te(e){return e.type===ue.tag}function we(e){return!(!e||"object"!=typeof e||e.type!==ce.number)}function Ee(e){return!(!e||"object"!=typeof e||e.type!==ce.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(le||(le={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ue||(ue={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ce||(ce={}));var xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Se=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ae(e){var t={};return e.replace(Se,(function(e){var i=e.length;switch(e[0]){case"G":t.era=4===i?"long":5===i?"narrow":"short";break;case"y":t.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===i?"short":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var $e=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Pe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_e=/^(@+)?(\+|#+)?[rs]?$/g,Ie=/(\*)(0+)|(#+)(0+)|(0+)/g,ke=/^(0+)$/;function De(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(_e,(function(e,i,n){return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function Ne(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Be(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ke.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Oe(e){var t=Ne(e);return t||{}}function Me(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=me(me(me({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return me(me({},e),Oe(t))}),{}));continue;case"engineering":t=me(me(me({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return me(me({},e),Oe(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Ie,(function(e,i,n,r,o,s){if(i)t.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ke.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(Pe.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Pe,(function(e,i,n,r,o,s){return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var o=r.options[0];"w"===o?t=me(me({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=me(me({},t),De(o)))}else if(_e.test(r.stem))t=me(me({},t),De(r.stem));else{var s=Ne(r.stem);s&&(t=me(me({},t),s));var a=Be(r.stem);a&&(t=me(me({},t),a))}}return t}var Ue,Ce={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function He(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(Ce[i||""]||Ce[n||""]||Ce["".concat(n,"-001")]||Ce["001"])[0]}var je=new RegExp("^".concat(xe.source,"*")),Re=new RegExp("".concat(xe.source,"*$"));function ze(e,t){return{start:e,end:t}}var Ge=!!String.prototype.startsWith,Fe=!!String.fromCodePoint,Ve=!!Object.fromEntries,We=!!String.prototype.codePointAt,Xe=!!String.prototype.trimStart,qe=!!String.prototype.trimEnd,Ye=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ke=!0;try{Ke="a"===(null===(Ue=rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ue?void 0:Ue[0])}catch(e){Ke=!1}var Ze,Je=Ge?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Qe=Fe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;r>o;){if((i=e[o++])>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},et=Ve?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],s=r[1];t[o]=s}return t},tt=We?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var n,r=e.charCodeAt(t);return r<55296||r>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536}},it=Xe?function(e){return e.trimStart()}:function(e){return e.replace(je,"")},nt=qe?function(e){return e.trimEnd()}:function(e){return e.replace(Re,"")};function rt(e,t){return new RegExp(e,t)}if(Ke){var ot=rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ze=function(e,t){var i;return ot.lastIndex=t,null!==(i=ot.exec(e)[1])&&void 0!==i?i:""}}else Ze=function(e,t){for(var i=[];;){var n=tt(e,t);if(void 0===n||ut(n)||ct(n))break;i.push(n),t+=n>=65536?2:1}return Qe.apply(void 0,i)};var st=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r=this.char();if(123===r){if((o=this.parseArgument(e,i)).err)return o;n.push(o.val)}else{if(125===r&&e>0)break;if(35!==r||"plural"!==t&&"selectordinal"!==t){if(60===r&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(le.UNMATCHED_CLOSING_TAG,ze(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&at(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ue.pound,location:ze(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ue.literal,value:"<".concat(n,"/>"),location:ze(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var o=r.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!at(this.char()))return this.error(le.INVALID_TAG,ze(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(le.UNMATCHED_CLOSING_TAG,ze(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ue.tag,value:n,children:o,location:ze(i,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,ze(s,this.clonePosition())))}return this.error(le.UNCLOSED_TAG,ze(i,this.clonePosition()))}return this.error(le.INVALID_TAG,ze(i,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&<(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ze(i,this.clonePosition());return{val:{type:ue.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(at(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Qe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&e>0?null:(this.bump(),Qe(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ze(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(le.EMPTY_ARGUMENT,ze(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(le.MALFORMED_ARGUMENT,ze(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ze(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ue.argument,value:n,location:ze(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ze(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(le.MALFORMED_ARGUMENT,ze(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ze(this.message,t),n=t+i.length;return this.bumpTo(n),{value:i,location:ze(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,n){var r,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(le.EXPECT_ARGUMENT_TYPE,ze(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(d=nt(y.val)).length)return this.error(le.EXPECT_ARGUMENT_STYLE,ze(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:ze(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=ze(n,this.clonePosition());if(l&&Je(null==l?void 0:l.style,"::",0)){var m=it(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?y:{val:{type:ue.number,value:i,location:c,style:y.val},err:null};if(0===m.length)return this.error(le.EXPECT_DATE_TIME_SKELETON,c);var p=m;this.locale&&(p=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=He(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(m,this.locale));var d={type:ce.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ae(p):{}};return{val:{type:"date"===s?ue.date:ue.time,value:i,location:c,style:d},err:null}}return{val:{type:"number"===s?ue.number:"date"===s?ue.date:ue.time,value:i,location:c,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(le.EXPECT_SELECT_ARGUMENT_OPTIONS,ze(h,me({},h)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ze(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,s,t,f);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var L=ze(n,this.clonePosition());return"select"===s?{val:{type:ue.select,value:i,options:et(v.val),location:L},err:null}:{val:{type:ue.plural,value:i,options:et(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:L},err:null};default:return this.error(le.INVALID_ARGUMENT_TYPE,ze(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,ze(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ze(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split($e).filter((function(e){return e.length>0})),i=[],n=0,r=t;n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,u=a;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");i.push({stem:s,options:a})}return i}(e)}catch(e){return this.error(le.INVALID_NUMBER_SKELETON,t)}return{val:{type:ce.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Me(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r,o=!1,s=[],a=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var m=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;u=ze(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(a.has(l))return this.error("select"===t?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ze(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,i);if(d.err)return d;var h=this.tryParseArgumentClose(p);if(h.err)return h;s.push([l,{value:d.val,location:ze(p,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,ze(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(le.MISSING_OTHER_CLAUSE,ze(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;r=!0,o=10*o+(s-48),this.bump()}var a=ze(n,this.clonePosition());return r?Ye(o*=i)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Je(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ut(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();function at(e){return e>=97&&e<=122||e>=65&&e<=90}function lt(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ut(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ct(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function mt(e){e.forEach((function(e){if(delete e.location,be(e)||ve(e))for(var t in e.options)delete e.options[t].location,mt(e.options[t].value);else fe(e)&&we(e.style)||(ge(e)||ye(e))&&Ee(e.style)?delete e.style.location:Te(e)&&mt(e.children)}))}function pt(e,t){void 0===t&&(t={}),t=me({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new st(e,t).parse();if(i.err){var n=SyntaxError(le[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return(null==t?void 0:t.captureLocation)||mt(i.val),i.val}function dt(e,t){var i=t&&t.cache?t.cache:Tt,n=t&&t.serializer?t.serializer:bt;return(t&&t.strategy?t.strategy:yt)(e,{cache:i,serializer:n})}function ht(e,t,i,n){var r,o=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:i(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function ft(e,t,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),o=t.get(r);return void 0===o&&(o=e.apply(this,n),t.set(r,o)),o}function gt(e,t,i,n,r){return i.bind(t,e,n,r)}function yt(e,t){return gt(e,this,1===e.length?ht:ft,t.cache.create(),t.serializer)}var bt=function(){return JSON.stringify(arguments)};function vt(){this.cache=Object.create(null)}vt.prototype.get=function(e){return this.cache[e]},vt.prototype.set=function(e,t){this.cache[e]=t};var Lt,Tt={create:function(){return new vt}},wt={variadic:function(e,t){return gt(e,this,ft,t.cache.create(),t.serializer)},monadic:function(e,t){return gt(e,this,ht,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Lt||(Lt={}));var Et,xt=function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.code=i,r.originalMessage=n,r}return ae(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),St=function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Lt.INVALID_VALUE,r)||this}return ae(t,e),t}(xt),At=function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Lt.INVALID_VALUE,n)||this}return ae(t,e),t}(xt),$t=function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Lt.MISSING_VALUE,i)||this}return ae(t,e),t}(xt);function Pt(e){return"function"==typeof e}function _t(e,t,i,n,r,o,s){if(1===e.length&&de(e[0]))return[{type:Et.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(de(c))a.push({type:Et.literal,value:c.value});else if(Le(c))"number"==typeof o&&a.push({type:Et.literal,value:i.getNumberFormat(t).format(o)});else{var m=c.value;if(!r||!(m in r))throw new $t(m,s);var p=r[m];if(he(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?Et.literal:Et.object,value:p});else if(ge(c)){var d="string"==typeof c.style?n.date[c.style]:Ee(c.style)?c.style.parsedOptions:void 0;a.push({type:Et.literal,value:i.getDateTimeFormat(t,d).format(p)})}else if(ye(c)){d="string"==typeof c.style?n.time[c.style]:Ee(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:Et.literal,value:i.getDateTimeFormat(t,d).format(p)})}else if(fe(c)){(d="string"==typeof c.style?n.number[c.style]:we(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(p*=d.scale||1),a.push({type:Et.literal,value:i.getNumberFormat(t,d).format(p)})}else{if(Te(c)){var h=c.children,f=c.value,g=r[f];if(!Pt(g))throw new At(f,"function",s);var y=g(_t(h,t,i,n,r,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?Et.literal:Et.object,value:e}})))}if(be(c)){if(!(b=c.options[p]||c.options.other))throw new St(c.value,p,Object.keys(c.options),s);a.push.apply(a,_t(b.value,t,i,n,r))}else if(ve(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new xt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Lt.MISSING_INTL_API,s);var v=i.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new St(c.value,p,Object.keys(c.options),s);a.push.apply(a,_t(b.value,t,i,n,r,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===Et.literal&&t.type===Et.literal?i.value+=t.value:e.push(t),e}),[])}(a)}function It(e,t){return t?Object.keys(e).reduce((function(i,n){var r,o;return i[n]=(r=e[n],(o=t[n])?me(me(me({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=me(me({},r[t]),o[t]||{}),e}),{})):r),i}),me({},e)):e}function kt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Et||(Et={}));var Dt=function(){function e(t,i,n,r){var o,s=this;if(void 0===i&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===Et.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return _t(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=It(e.formats,n),this.formatters=r&&r.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dt((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,pe([void 0],t,!1)))}),{cache:kt(o.number),strategy:wt.variadic}),getDateTimeFormat:dt((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,pe([void 0],t,!1)))}),{cache:kt(o.dateTime),strategy:wt.variadic}),getPluralRules:dt((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,pe([void 0],t,!1)))}),{cache:kt(o.pluralRules),strategy:wt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=pt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Nt=Dt;const Bt={},Ot=(e,t,i)=>i?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=i),i):i,Mt=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const i=ei(t);for(let n=0;n<i.length;n++){const r=jt(i[n],e);if(r)return Ot(e,t,r)}};let Ut;const Ct=Y({});function Ht(e){return e in Ut}function jt(e,t){if(!Ht(e))return null;const i=function(e){return Ut[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const i=t.split(".");let n=e;for(let e=0;e<i.length;e++)if("object"==typeof n){if(e>0){const t=i.slice(e,i.length).join(".");if(t in n){n=n[t];break}}n=n[i[e]]}else n=void 0;return n}(i,t)}function Rt(e,...t){delete Bt[e],Ct.update((i=>(i[e]=oe.all([i[e]||{},...t]),i)))}K([Ct],(([e])=>Object.keys(e))),Ct.subscribe((e=>Ut=e));const zt={};function Gt(e){return zt[e]}function Ft(e){return null!=e&&ei(e).some((e=>{var t;return null===(t=Gt(e))||void 0===t?void 0:t.size}))}const Vt={};function Wt(e){if(!Ft(e))return e in Vt?Vt[e]:Promise.resolve();const t=function(e){return ei(e).map((e=>{const t=Gt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Vt[e]=Promise.all(t.map((([e,t])=>function(e,t){const i=Promise.all(t.map((t=>(function(e,t){zt[e].delete(t),0===zt[e].size&&delete zt[e]}(e,t),t().then((e=>e.default||e))))));return i.then((t=>Rt(e,...t)))}(e,t)))).then((()=>{if(Ft(e))return Wt(e);delete Vt[e]})),Vt[e]}function Xt(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}const qt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Yt(){return qt}const Kt=Y(!1);let Zt;const Jt=Y(null);function Qt(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ei(e,t=Yt().fallbackLocale){const i=Qt(e);return t?[...new Set([...i,...Qt(t)])]:i}function ti(){return null!=Zt?Zt:void 0}Jt.subscribe((e=>{Zt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ii=Object.assign(Object.assign({},Jt),{set:e=>{if(e&&function(e){if(null==e)return;const t=ei(e);for(let e=0;e<t.length;e++){const i=t[e];if(Ht(i))return i}}(e)&&Ft(e)){const{loadingDelay:t}=Yt();let i;return"undefined"!=typeof window&&null!=ti()&&t?i=window.setTimeout((()=>Kt.set(!0)),t):Kt.set(!0),Wt(e).then((()=>{Jt.set(e)})).finally((()=>{clearTimeout(i),Kt.set(!1)}))}return Jt.set(e)}}),ni=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}},ri=(e,t)=>{const{formats:i}=Yt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},oi=ni((e=>{var{locale:t,format:i}=e,n=Xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=ri("number",i)),new Intl.NumberFormat(t,n)})),si=ni((e=>{var{locale:t,format:i}=e,n=Xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=ri("date",i):0===Object.keys(n).length&&(n=ri("date","short")),new Intl.DateTimeFormat(t,n)})),ai=ni((e=>{var{locale:t,format:i}=e,n=Xt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=ri("time",i):0===Object.keys(n).length&&(n=ri("time","short")),new Intl.DateTimeFormat(t,n)})),li=ni(((e,t=ti())=>new Nt(e,t,Yt().formats,{ignoreTag:Yt().ignoreTag}))),ui=(e,t={})=>{var i,n,r,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=ti(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Mt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(r=null===(n=(i=Yt()).handleMissingMessage)||void 0===n?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))&&void 0!==r?r:u)&&void 0!==o?o:e;if(!a)return c;let m=c;try{m=li(c,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return m},ci=(e,t)=>((e={})=>{var{locale:t=ti()}=e,i=Xt(e,["locale"]);return ai(Object.assign({locale:t},i))})(t).format(e),mi=(e,t)=>((e={})=>{var{locale:t=ti()}=e,i=Xt(e,["locale"]);return si(Object.assign({locale:t},i))})(t).format(e),pi=(e,t)=>((e={})=>{var{locale:t=ti()}=e,i=Xt(e,["locale"]);return oi(Object.assign({locale:t},i))})(t).format(e),di=(e,t=ti())=>Mt(e,t),hi=K([ii,Ct],(()=>ui));function fi(e,t){Rt(e,t)}K([ii],(()=>ci)),K([ii],(()=>mi)),K([ii],(()=>pi)),K([ii,Ct],(()=>di));const gi={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:" ",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:" minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"There was a problem while setting the limit, please try again.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},de:{gamingLimits:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:" ",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:" minute",new:"Neu",limit:"Limit",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},hr:{gamingLimits:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:" minutes",new:"Novo",limit:"Ograničenje",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},sl:{gamingLimits:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:" minutes",new:"Novo",limit:"Limit",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},pl:{gamingLimits:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:" ",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:" minutes",new:"Nowe",limit:"Limit",setLimit:"USTAW LIMIT",loss:"Limit Strat",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno",noPeriod:"Sin periodo",per:"por",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"ESTABELECE UN LÍMITE",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",sessionLimit:"Límites de tiempo en sesión única",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod} ",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Hubo un problema mientras se establecía el límite",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en ",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"SUBIR DOCUMENTOS / ADJUNTAR DOCUMENTOS",closeButton:"CERRAR"}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}}};var yi="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==yi&&yi,bi="URLSearchParams"in yi,vi="Symbol"in yi&&"iterator"in Symbol,Li="FileReader"in yi&&"Blob"in yi&&function(){try{return new Blob,!0}catch(e){return!1}}(),Ti="FormData"in yi,wi="ArrayBuffer"in yi;if(wi)var Ei=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xi=ArrayBuffer.isView||function(e){return e&&Ei.indexOf(Object.prototype.toString.call(e))>-1};function Si(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ai(e){return"string"!=typeof e&&(e=String(e)),e}function $i(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return vi&&(t[Symbol.iterator]=function(){return t}),t}function Pi(e){this.map={},e instanceof Pi?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function _i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ii(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function ki(e){var t=new FileReader,i=Ii(t);return t.readAsArrayBuffer(e),i}function Di(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ni(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Li&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ti&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:bi&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():wi&&Li&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Di(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):wi&&(ArrayBuffer.prototype.isPrototypeOf(e)||xi(e))?this._bodyArrayBuffer=Di(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):bi&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Li&&(this.blob=function(){var e=_i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=_i(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ki)}),this.text=function(){var e,t,i,n=_i(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=Ii(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ti&&(this.formData=function(){return this.text().then(Mi)}),this.json=function(){return this.text().then(JSON.parse)},this}Pi.prototype.append=function(e,t){e=Si(e),t=Ai(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},Pi.prototype.delete=function(e){delete this.map[Si(e)]},Pi.prototype.get=function(e){return e=Si(e),this.has(e)?this.map[e]:null},Pi.prototype.has=function(e){return this.map.hasOwnProperty(Si(e))},Pi.prototype.set=function(e,t){this.map[Si(e)]=Ai(t)},Pi.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},Pi.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),$i(e)},Pi.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),$i(e)},Pi.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),$i(e)},vi&&(Pi.prototype[Symbol.iterator]=Pi.prototype.entries);var Bi=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Oi(e,t){if(!(this instanceof Oi))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,r=(t=t||{}).body;if(e instanceof Oi){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Pi(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Pi(t.headers)),this.method=(i=t.method||this.method||"GET",n=i.toUpperCase(),Bi.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Mi(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}})),t}function Ui(e,t){if(!(this instanceof Ui))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Pi(t.headers),this.url=t.url||"",this._initBody(e)}Oi.prototype.clone=function(){return new Oi(this,{body:this._bodyInit})},Ni.call(Oi.prototype),Ni.call(Ui.prototype),Ui.prototype.clone=function(){return new Ui(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Pi(this.headers),url:this.url})},Ui.error=function(){var e=new Ui(null,{status:0,statusText:""});return e.type="error",e};var Ci=[301,302,303,307,308];Ui.redirect=function(e,t){if(-1===Ci.indexOf(t))throw new RangeError("Invalid status code");return new Ui(null,{status:t,headers:{location:e}})};var Hi=yi.DOMException;try{new Hi}catch(e){(Hi=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),Hi.prototype.constructor=Hi}function ji(e,t){return new Promise((function(i,n){var r=new Oi(e,t);if(r.signal&&r.signal.aborted)return n(new Hi("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Pi,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();t.append(n,r)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout((function(){i(new Ui(r,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Hi("Aborted","AbortError"))}),0)},o.open(r.method,function(e){try{return""===e&&yi.location.href?yi.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&(Li?o.responseType="blob":wi&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Pi?r.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Ai(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&r.signal.removeEventListener("abort",s)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}ji.polyfill=!0,yi.fetch||(yi.fetch=ji,yi.Headers=Pi,yi.Request=Oi,yi.Response=Ui),self.fetch.bind(self);var Ri=function(e,t){return Ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},Ri(e,t)};function zi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ri(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function Gi(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fi(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function Vi(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function Wi(e){return"function"==typeof e}function Xi(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var qi=Xi((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Yi(e,t){if(e){var i=e.indexOf(t);0<=i&&e.splice(i,1)}}var Ki=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Gi(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Wi(l))try{l()}catch(e){r=e instanceof qi?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Gi(u),m=c.next();!m.done;m=c.next()){var p=m.value;try{Qi(p)}catch(e){r=null!=r?r:[],e instanceof qi?r=Vi(Vi([],Fi(r)),Fi(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}}if(r)throw new qi(r)}},e.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)Qi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Yi(t,e)},e.prototype.remove=function(t){var i=this._finalizers;i&&Yi(i,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Zi=Ki.EMPTY;function Ji(e){return e instanceof Ki||e&&"closed"in e&&Wi(e.remove)&&Wi(e.add)&&Wi(e.unsubscribe)}function Qi(e){Wi(e)?e():e.unsubscribe()}var en={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tn={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=tn.delegate;return(null==r?void 0:r.setTimeout)?r.setTimeout.apply(r,Vi([e,t],Fi(i))):setTimeout.apply(void 0,Vi([e,t],Fi(i)))},clearTimeout:function(e){var t=tn.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function nn(){}var rn=null;function on(e){if(en.useDeprecatedSynchronousErrorHandling){var t=!rn;if(t&&(rn={errorThrown:!1,error:null}),e(),t){var i=rn,n=i.errorThrown,r=i.error;if(rn=null,n)throw r}}else e()}var sn=function(e){function t(t){var i=e.call(this)||this;return i.isStopped=!1,t?(i.destination=t,Ji(t)&&t.add(i)):i.destination=pn,i}return zi(t,e),t.create=function(e,t,i){return new cn(e,t,i)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ki),an=Function.prototype.bind;function ln(e,t){return an.call(e,t)}var un=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){mn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){mn(e)}else mn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){mn(e)}},e}(),cn=function(e){function t(t,i,n){var r,o,s=e.call(this)||this;Wi(t)||!t?r={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=n?n:void 0}:s&&en.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},r={next:t.next&&ln(t.next,o),error:t.error&&ln(t.error,o),complete:t.complete&&ln(t.complete,o)}):r=t;return s.destination=new un(r),s}return zi(t,e),t}(sn);function mn(e){var t;t=e,tn.setTimeout((function(){throw t}))}var pn={closed:!0,next:nn,error:function(e){throw e},complete:nn},dn="function"==typeof Symbol&&Symbol.observable||"@@observable";function hn(e){return e}function fn(e){return 0===e.length?hn:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var gn=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var i=new e;return i.source=this,i.operator=t,i},e.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof sn||function(e){return e&&Wi(e.next)&&Wi(e.error)&&Wi(e.complete)}(n)&&Ji(n)?e:new cn(e,t,i);return on((function(){var e=r,t=e.operator,i=e.source;o.add(t?t.call(o,i):i?r._subscribe(o):r._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var i=this;return new(t=yn(t))((function(t,n){var r=new cn({next:function(t){try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:t});i.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[dn]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fn(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=yn(e))((function(e,i){var n;t.subscribe((function(e){return n=e}),(function(e){return i(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function yn(e){var t;return null!==(t=null!=e?e:en.Promise)&&void 0!==t?t:Promise}var bn=Xi((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),vn=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return zi(t,e),t.prototype.lift=function(e){var t=new Ln(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new bn},t.prototype.next=function(e){var t=this;on((function(){var i,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=Gi(t.currentObservers),o=r.next();!o.done;o=r.next()){o.value.next(e)}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}}))},t.prototype.error=function(e){var t=this;on((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var i=t.observers;i.length;)i.shift().error(e)}}))},t.prototype.complete=function(){var e=this;on((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,i=this,n=i.hasError,r=i.isStopped,o=i.observers;return n||r?Zi:(this.currentObservers=null,o.push(e),new Ki((function(){t.currentObservers=null,Yi(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,i=t.hasError,n=t.thrownError,r=t.isStopped;i?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new gn;return e.source=this,e},t.create=function(e,t){return new Ln(e,t)},t}(gn),Ln=function(e){function t(t,i){var n=e.call(this)||this;return n.destination=t,n.source=i,n}return zi(t,e),t.prototype.next=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)},t.prototype.error=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:Zi},t}(vn),Tn={now:function(){return(Tn.delegate||Date).now()},delegate:void 0},wn=function(e){function t(t,i,n){void 0===t&&(t=1/0),void 0===i&&(i=1/0),void 0===n&&(n=Tn);var r=e.call(this)||this;return r._bufferSize=t,r._windowTime=i,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=i===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,i),r}return zi(t,e),t.prototype.next=function(t){var i=this,n=i.isStopped,r=i._buffer,o=i._infiniteTimeWindow,s=i._timestampProvider,a=i._windowTime;n||(r.push(t),!o&&r.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,i=e._timestampProvider,n=e._buffer,r=e._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var s=i.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(vn);let En=[],xn={};window.emWidgets={topic:(e,t=0)=>{if(-1==En.indexOf(e)){let i=new wn(t);xn[e]=i,En.push(e)}return xn[e]}};const Sn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),{document:An}=G;function $n(e,t,i){const n=e.slice();return n[51]=t[i],n}function Pn(e,t,i){const n=e.slice();return n[54]=t[i],n}function _n(e,t,i){const n=e.slice();return n[54]=t[i],n}function In(e,t,i){const n=e.slice();return n[59]=t[i],n}function kn(e){let t,i,n;function r(e,t){return e[11]?Dn:Nn}let o=r(e),s=o(e);return{c(){t=p("div"),i=p("div"),s.c(),b(i,"class",n="PopupContainer "+(e[14]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){u(e,t,n),l(t,i),s.m(i,null)},p(e,t){o===(o=r(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(i,null)))},d(e){e&&c(t),s.d()}}}function Dn(e){let t,i,r,o,s,a,m,d,g,v,L,w,E,x,S,A=e[13]("gamingLimits.popupTitle")+"",$=!e[9]&&Bn(e);return{c(){t=p("div"),i=p("span"),r=h(A),o=f(),s=p("button"),s.textContent="X",a=f(),m=p("div"),d=p("div"),$&&$.c(),g=f(),v=p("p"),L=h(e[12]),w=f(),E=p("button"),E.textContent="OK",b(i,"class","PopupTitle"),b(s,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(d,"class","ResultIconWrapper"),b(v,"class","DescriptionParagraph"),b(m,"class","DescriptionWrapper"),b(E,"class","ConfirmButton")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s),u(n,a,c),u(n,m,c),l(m,d),$&&$.m(d,null),l(m,g),l(m,v),l(v,L),u(n,w,c),u(n,E,c),x||(S=[y(s,"click",e[20]),y(E,"click",e[20])],x=!0)},p(e,t){8192&t[0]&&A!==(A=e[13]("gamingLimits.popupTitle")+"")&&T(r,A),e[9]?$&&($.d(1),$=null):$?$.p(e,t):($=Bn(e),$.c(),$.m(d,null)),4096&t[0]&&T(L,e[12])},d(e){e&&c(t),e&&c(a),e&&c(m),$&&$.d(),e&&c(w),e&&c(E),x=!1,n(S)}}}function Nn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function Bn(e){let t,i,n,r,o,s,a,m,g,y=e[13]("gamingLimits.popupSuccess")+"";return{c(){t=d("svg"),i=d("defs"),n=d("style"),r=h(".fil0 {fill:black;fill-rule:nonzero}\n "),o=d("g"),s=d("polygon"),a=f(),m=p("p"),g=h(y),b(n,"type","text/css"),b(s,"class","fil0"),b(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"xml:space","preserve"),b(t,"version","1.1"),E(t,"shape-rendering","geometricPrecision"),E(t,"text-rendering","geometricPrecision"),E(t,"image-rendering","optimizeQuality"),b(t,"viewBox","0 0 90 69"),b(t,"x","0px"),b(t,"y","0px"),b(t,"fill-rule","evenodd"),b(t,"clip-rule","evenodd")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(t,o),l(o,s),u(e,a,c),u(e,m,c),l(m,g)},p(e,t){8192&t[0]&&y!==(y=e[13]("gamingLimits.popupSuccess")+"")&&T(g,y)},d(e){e&&c(t),e&&c(a),e&&c(m)}}}function On(e){let t,i,r,o,s,a,d,g,v,E,x,S,A,$,P,_,I,k=e[6]?`${e[13]("gamingLimits.amount")}`:`${e[13]("gamingLimits.new")} ${e[13](`gamingLimits.${e[2]}`)} ${e[13]("gamingLimits.limit")}`,D=e[13]("gamingLimits.setLimit")+"",N=e[15],B=[];for(let t=0;t<N.length;t+=1)B[t]=Fn(_n(e,N,t));let O=e[5]&&Vn(e),M=e[6]&&Xn(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<B.length;e+=1)B[e].c();o=f(),s=p("form"),O&&O.c(),a=f(),M&&M.c(),d=f(),g=p("label"),v=p("span"),E=h(k),x=f(),S=p("input"),A=f(),$=p("button"),P=h(D),b(r,"class","LimitsList "+(e[14]?"Desktop":"")),b(v,"class","LimitInputText"),b(g,"class","LimitAmountInputWrapper"),b(S,"type","number"),b(S,"pattern","[0-9]*"),b($,"class","LimitSubmitButton"),b($,"type","button"),$.disabled=!0,b(s,"class","LimitsInteractionArea "+(e[14]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gmcore")},m(n,c){u(n,t,c),l(t,i),l(i,r);for(let e=0;e<B.length;e+=1)B[e].m(r,null);l(i,o),l(i,s),O&&O.m(s,null),l(s,a),M&&M.m(s,null),l(s,d),l(s,g),l(g,v),l(v,E),l(s,x),l(s,S),w(S,e[3]),l(s,A),l(s,$),l($,P),e[34]($),_||(I=[y(S,"input",e[33]),y(S,"keyup",e[18]),y($,"click",e[17]),y(s,"submit",e[17])],_=!0)},p(e,t){if(581632&t[0]){let i;for(N=e[15],i=0;i<N.length;i+=1){const n=_n(e,N,i);B[i]?B[i].p(n,t):(B[i]=Fn(n),B[i].c(),B[i].m(r,null))}for(;i<B.length;i+=1)B[i].d(1);B.length=N.length}e[5]?O?O.p(e,t):(O=Vn(e),O.c(),O.m(s,a)):O&&(O.d(1),O=null),e[6]?M?M.p(e,t):(M=Xn(e),M.c(),M.m(s,d)):M&&(M.d(1),M=null),8260&t[0]&&k!==(k=e[6]?`${e[13]("gamingLimits.amount")}`:`${e[13]("gamingLimits.new")} ${e[13](`gamingLimits.${e[2]}`)} ${e[13]("gamingLimits.limit")}`)&&T(E,k),8&t[0]&&L(S.value)!==e[3]&&w(S,e[3]),8192&t[0]&&D!==(D=e[13]("gamingLimits.setLimit")+"")&&T(P,D)},d(i){i&&c(t),m(B,i),O&&O.d(),M&&M.d(),e[34](null),_=!1,n(I)}}}function Mn(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function Un(t){return{c:e,m:e,p:e,d:e}}function Cn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function Hn(e){let t,i,n,r,o=e[13]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){8192&t[0]&&o!==(o=e[13]("gamingLimits.noLimitText")+"")&&T(r,o)},d(e){e&&c(t)}}}function jn(e){let t,i=e[54].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=Gn(In(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t].m(e,i);u(e,t,i)},p(e,r){if(565248&r[0]){let o;for(i=e[54].currentLimits,o=0;o<i.length;o+=1){const s=In(e,i,o);n[o]?n[o].p(s,r):(n[o]=Gn(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){m(n,e),e&&c(t)}}}function Rn(e){let t,i,n=`${e[13]("gamingLimits.removedLimitText")} ${e[59].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){8192&t[0]&&n!==(n=`${e[13]("gamingLimits.removedLimitText")} ${e[59].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function zn(e){let t,i,n=`${e[59].updateAmount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)} ${e[13]("gamingLimits.updateText")} ${e[59].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){8192&t[0]&&n!==(n=`${e[59].updateAmount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)} ${e[13]("gamingLimits.updateText")} ${e[59].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Gn(e){let t,i,n,r,o,s,a,m=`${e[59].amount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)}`;let d=function(e,t){return e[59].isModified&&"-1"!=e[59].updateAmount?zn:e[59].isModified?Rn:void 0}(e),g=d&&d(e),v=!e[59].isModified&&function(e){let t,i,n,r,o=e[13]("gamingLimits.removeLimit")+"";function s(){return e[30](e[59])}return{c(){t=p("button"),i=h(o),b(t,"class","RemoveLimitButton")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,8192&n[0]&&o!==(o=e[13]("gamingLimits.removeLimit")+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(m),o=f(),g&&g.c(),s=f(),v&&v.c(),a=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),g&&g.m(i,null),l(t,s),v&&v.m(t,null),l(t,a)},p(e,t){8192&t[0]&&m!==(m=`${e[59].amount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)}`)&&T(r,m),g&&g.p(e,t),e[59].isModified||v.p(e,t)},d(e){e&&c(t),g&&g.d(),v&&v.d()}}}function Fn(e){let t,i,n,r,o,s,a=e[13](`gamingLimits.${e[54].value}`)+"";let m=function(e,t){return e[54].currentLimits.length>0?jn:Hn}(e),d=m(e);return{c(){t=p("div"),i=p("p"),n=h(a),r=f(),d.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class",s="LimitWrapper "+(e[14]?"Desktop":""))},m(e,s){u(e,t,s),l(t,i),l(i,n),l(t,r),d.m(t,null),l(t,o)},p(e,t){8192&t[0]&&a!==(a=e[13](`gamingLimits.${e[54].value}`)+"")&&T(n,a),d.p(e,t)},d(e){e&&c(t),d.d()}}}function Vn(e){let t,i,r,o,s,a,d,g=e[13]("gamingLimits.limitType")+"",v=e[15],L=[];for(let t=0;t<v.length;t+=1)L[t]=Wn(Pn(e,v,t));return{c(){t=p("label"),i=p("span"),r=h(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),void 0===e[1]&&U((()=>e[31].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e].m(s,null);x(s,e[1]),a||(d=[y(s,"change",e[31]),y(s,"change",e[16])],a=!0)},p(e,t){if(8192&t[0]&&g!==(g=e[13]("gamingLimits.limitType")+"")&&T(r,g),32768&t[0]){let i;for(v=e[15],i=0;i<v.length;i+=1){const n=Pn(e,v,i);L[i]?L[i].p(n,t):(L[i]=Wn(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}32770&t[0]&&x(s,e[1])},d(e){e&&c(t),m(L,e),a=!1,n(d)}}}function Wn(t){let i,n,r,o=t[54].title+"";return{c(){i=p("option"),n=h(o),i.__value=r=t[54].value,i.value=i.__value},m(e,t){u(e,i,t),l(i,n)},p:e,d(e){e&&c(i)}}}function Xn(e){let t,i,n,r,o,s,a,d=e[13]("gamingLimits.period")+"",g=X[e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=qn($n(e,g,t));return{c(){t=p("label"),i=p("span"),n=h(d),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(t,"class","LimitPeriodDropdownWrapper"),b(o,"name",""),b(o,"id",""),void 0===e[2]&&U((()=>e[32].call(o)))},m(c,m){u(c,t,m),l(t,i),l(i,n),u(c,r,m),u(c,o,m);for(let e=0;e<v.length;e+=1)v[e].m(o,null);x(o,e[2]),s||(a=y(o,"change",e[32]),s=!0)},p(e,t){if(8192&t[0]&&d!==(d=e[13]("gamingLimits.period")+"")&&T(n,d),8194&t[0]){let i;for(g=X[e[1]].periods,i=0;i<g.length;i+=1){const n=$n(e,g,i);v[i]?v[i].p(n,t):(v[i]=qn(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}6&t[0]&&x(o,e[2])},d(e){e&&c(t),e&&c(r),e&&c(o),m(v,e),s=!1,a()}}}function qn(e){let t,i,n,r=e[13](`gamingLimits.${e[51]}`)+"";return{c(){t=p("option"),i=h(r),t.__value=n=e[51],t.value=t.__value,t.selected=!0},m(e,n){u(e,t,n),l(t,i)},p(e,o){8194&o[0]&&r!==(r=e[13](`gamingLimits.${e[51]}`)+"")&&T(i,r),32770&o[0]&&n!==(n=e[51])&&(t.__value=n,t.value=t.__value)},d(e){e&&c(t)}}}function Yn(t){let i,n,r,o,s=t[10]&&kn(t);function a(e,t){return e[7]&&!e[10]?Cn:e[7]?Un:e[8]?Mn:On}let m=a(t),d=m(t);return{c(){i=p("meta"),n=f(),r=p("div"),s&&s.c(),o=f(),d.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,a){l(An.head,i),u(e,n,a),u(e,r,a),s&&s.m(r,null),l(r,o),d.m(r,null),t[35](r)},p(e,t){e[10]?s?s.p(e,t):(s=kn(e),s.c(),s.m(r,o)):s&&(s.d(1),s=null),m===(m=a(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),s&&s.d(),d.d(),t[35](null)}}}function Kn(e,t,i){let n;a(e,hi,(e=>i(13,n=e)));let r,o,s,l,{lang:u="en"}=t,{currency:c=""}=t,{limits:m=""}=t,{session:p=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{clientstyling:f=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,b=window.navigator.userAgent,v=!Sn(b),T=[],w="",E="",x=!1,A=!1,$=!0,P=!1,_=!1,I=!1,k=!1,N="";const B={EUR:"€",RON:" lei"},O={updatePendingError:["SYS_1037","SYS_1142","SYS_1140"]};Object.keys(gi).forEach((e=>{fi(e,gi[e])}));const M=e=>{const t=e.error.match(/errorCode:(.*)\)/)[1];let i;console.error(`API response error: ${t}`);for(const[e,r]of Object.entries(O))r.includes(t)&&(i=n(`gamingLimits.${e}`));i=null!=i?i:n("gamingLimits.genericError"),j(t,i)},U=()=>{let e=new URL(`v2/player/${d}/limits`,h),t=!_,n={method:"GET",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then((e=>{if(e.status>=300)throw i(7,$=!1),i(8,P=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{l=e,I&&t&&j(),C(l),i(7,$=!1),i(3,o=null)})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},C=e=>{T.forEach((t=>{var i;t.currentLimits=[],null===(i=e[X[t.value].callValue])||void 0===i||i.forEach(((i,n)=>{var r;const o=e[X[t.value].callValue][n];t.currentLimits.push({}),t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=B[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=H(t.currentLimits)}))},H=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},j=(e,t)=>{if(e)i(12,N=t);else if(l){const e=l[X[w].callValue].filter((e=>e.period===E))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${w}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",B[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${E}`).toLowerCase());i(12,N=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}else console.error("Couldn't populate popupContent");i(11,k=!0)},R=e=>{i(10,I=!0),i(7,$=!0);let t=new URL(`v2/player/${d}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[e.limitType]}?periods=${e.period}`,h),n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>{U()})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},z=()=>{var e;e=u,ii.set(e)};return e.$$set=e=>{"lang"in e&&i(21,u=e.lang),"currency"in e&&i(22,c=e.currency),"limits"in e&&i(23,m=e.limits),"session"in e&&i(24,p=e.session),"userid"in e&&i(25,d=e.userid),"endpoint"in e&&i(26,h=e.endpoint),"clientstyling"in e&&i(27,f=e.clientstyling),"clientstylingurl"in e&&i(28,g=e.clientstylingurl),"translationurl"in e&&i(29,y=e.translationurl)},e.$$.update=()=>{8388608&e.$$.dirty[0]&&m&&(m.split(" ").forEach((e=>{X[e]?T.push(X[e]):console.error(`Unknown limit: ${e}`)})),i(1,w=T[0].value),i(2,E=X[w].periods[0]),i(5,x=T.length>1),i(6,A=X[w].periods.length>1)),2097152&e.$$.dirty[0]&&u&&z(),117440512&e.$$.dirty[0]&&d&&p&&h&&U(),268435457&e.$$.dirty[0]&&g&&r&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),134217729&e.$$.dirty[0]&&f&&r&&(()=>{let e=document.createElement("style");e.innerHTML=f,r.appendChild(e)})(),536870912&e.$$.dirty[0]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{fi(t,e[t])}))})).catch((e=>{console.log(e)}))},[r,w,E,o,s,x,A,$,P,_,I,k,N,n,v,T,()=>{i(2,E=X[w].periods[0]),i(6,A=X[w].periods.length>1)},()=>{if(!(o>0))return;i(10,I=!0),i(7,$=!0);let e=new URL(`v2/player/${d}/limits`,h);const t={};t[X[w].callValue]=[{period:E,amount:o,currency:c}];let n={method:"PUT",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>(e.status>=300&&i(9,_=!0),e.json()))).then((e=>{U(),_&&M(e)})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},()=>{const e=999999999999999;o>e&&i(3,o=e);const t=o-Math.floor(o)==0;o>0&&t?s.removeAttribute("disabled"):s.setAttribute("disabled","true")},R,()=>{i(11,k=i(10,I=!1))},u,c,m,p,d,h,f,g,y,e=>R(e),function(){w=S(this),i(1,w),i(15,T)},function(){E=S(this),i(2,E),i(1,w)},function(){o=L(this.value),i(3,o)},function(e){D[e?"unshift":"push"]((()=>{s=e,i(4,s)}))},function(e){D[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;background-color:#fff;border-color:#ced4da}select:hover{cursor:pointer}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background-color:rgba(0, 0, 0, 0.5);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",V(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Kn,Yn,o,{lang:21,currency:22,limits:23,session:24,userid:25,endpoint:26,clientstyling:27,clientstylingurl:28,translationurl:29},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[21]}set lang(e){this.$$set({lang:e}),j()}get currency(){return this.$$.ctx[22]}set currency(e){this.$$set({currency:e}),j()}get limits(){return this.$$.ctx[23]}set limits(e){this.$$set({limits:e}),j()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),j()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),j()}get endpoint(){return this.$$.ctx[26]}set endpoint(e){this.$$set({endpoint:e}),j()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[29]}set translationurl(e){this.$$set({translationurl:e}),j()}});const Zn={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function Jn(e,t){Rt(e,t)}const Qn={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:" ",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:" minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"The value entered must be between {minValue} and {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},de:{gamingLimits:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:" ",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:" minute",new:"Neu",limit:"Limit",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Der eingegebene Wert muss zwischen {minValue} und {maxValue} {currency} liegen.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},hr:{gamingLimits:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:" minutes",new:"Novo",limit:"Ograničenje",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Unešena vrijednost mora biti između {minValue} i {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},sl:{gamingLimits:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:" minutes",new:"Novo",limit:"Limit",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Vnešena vrednost mora biti med {minValue} in {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},pl:{gamingLimits:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:" ",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:" minutes",new:"Nowe",limit:"Limit",setLimit:"USTAW LIMIT",loss:"Limit Strat",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Podana wartość musi znajdować się pomiędzy {minValue} a {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"Fijar límite",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod} ",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimit:"El valor ingresado debe ser un mínimo de {minValue} y un máximo de {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado"}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}}},{document:er}=G;function tr(e,t,i){const n=e.slice();return n[95]=t[i],n}function ir(e,t,i){const n=e.slice();return n[98]=t[i],n[100]=i,n}function nr(e,t,i){const n=e.slice();return n[98]=t[i],n}function rr(e,t,i){const n=e.slice();return n[103]=t[i],n}function or(e){let t,i,n;function r(e,t){return e[17]?sr:ar}let o=r(e),s=o(e);return{c(){t=p("div"),i=p("div"),s.c(),b(i,"class",n="PopupContainer "+(e[23]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){u(e,t,n),l(t,i),s.m(i,null)},p(e,t){o===(o=r(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(i,null)))},d(e){e&&c(t),s.d()}}}function sr(e){let t,i,n,r,o,s,a,m,d,v,L,w,E,x,S,A,$=e[22]("gamingLimits.popupTitle")+"";function P(e,t){return e[15]?cr:e[19]?ur:lr}let _=P(e),I=_(e);function k(e,t){return e[15]?dr:3==e[20]?pr:mr}let D=k(e),N=D(e);function B(e,t){return e[19]?fr:hr}let O=B(e),M=O(e);return{c(){t=p("div"),i=p("span"),n=h($),r=f(),o=p("button"),o.textContent="X",s=f(),a=p("div"),m=p("div"),I.c(),d=f(),N.c(),v=f(),L=p("p"),w=h(e[18]),E=f(),M.c(),x=g(),b(i,"class","PopupTitle"),b(o,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(m,"class","ResultIconWrapper"),b(L,"class","DescriptionParagraph"),b(a,"class","DescriptionWrapper")},m(c,p){u(c,t,p),l(t,i),l(i,n),l(t,r),l(t,o),u(c,s,p),u(c,a,p),l(a,m),I.m(m,null),l(m,d),N.m(m,null),l(a,v),l(a,L),l(L,w),u(c,E,p),M.m(c,p),u(c,x,p),S||(A=y(o,"click",e[31]),S=!0)},p(e,t){4194304&t[0]&&$!==($=e[22]("gamingLimits.popupTitle")+"")&&T(n,$),_!==(_=P(e))&&(I.d(1),I=_(e),I&&(I.c(),I.m(m,d))),D===(D=k(e))&&N?N.p(e,t):(N.d(1),N=D(e),N&&(N.c(),N.m(m,null))),262144&t[0]&&T(w,e[18]),O===(O=B(e))&&M?M.p(e,t):(M.d(1),M=O(e),M&&(M.c(),M.m(x.parentNode,x)))},d(e){e&&c(t),e&&c(s),e&&c(a),I.d(),N.d(),e&&c(E),M.d(e),e&&c(x),S=!1,A()}}}function ar(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function lr(e){let t,i,n,r,o,s;return{c(){t=d("svg"),i=d("defs"),n=d("style"),r=h(".fil0 {fill:black;fill-rule:nonzero}\n "),o=d("g"),s=d("polygon"),b(n,"type","text/css"),b(s,"class","fil0"),b(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"xml:space","preserve"),b(t,"version","1.1"),E(t,"shape-rendering","geometricPrecision"),E(t,"text-rendering","geometricPrecision"),E(t,"image-rendering","optimizeQuality"),b(t,"viewBox","0 0 90 69"),b(t,"x","0px"),b(t,"y","0px"),b(t,"fill-rule","evenodd"),b(t,"clip-rule","evenodd")},m(e,a){u(e,t,a),l(t,i),l(i,n),l(n,r),l(t,o),l(o,s)},d(e){e&&c(t)}}}function ur(e){let t,i,n;return{c(){t=d("svg"),i=d("g"),n=d("path"),b(n,"id","XMLID_6_"),b(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),b(i,"id","XMLID_1_"),b(t,"version","1.1"),b(t,"id","Layer_1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"viewBox","0 0 512 512"),E(t,"enable-background","new 0 0 512 512"),b(t,"xml:space","preserve")},m(e,r){u(e,t,r),l(t,i),l(i,n)},d(e){e&&c(t)}}}function cr(e){let t,i,n,r,o,s,a,m,p,h,f,g,y,v,L,T,w,x,S;return{c(){t=d("svg"),i=d("g"),n=d("path"),r=d("path"),o=d("g"),s=d("g"),a=d("g"),m=d("g"),p=d("g"),h=d("g"),f=d("g"),g=d("g"),y=d("g"),v=d("g"),L=d("g"),T=d("g"),w=d("g"),x=d("g"),S=d("g"),b(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),b(r,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),b(t,"version","1.1"),b(t,"id","Capa_1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"viewBox","0 0 52 52"),E(t,"enable-background","new 0 0 52 52"),b(t,"xml:space","preserve")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(i,r),l(t,o),l(t,s),l(t,a),l(t,m),l(t,p),l(t,h),l(t,f),l(t,g),l(t,y),l(t,v),l(t,L),l(t,T),l(t,w),l(t,x),l(t,S)},d(e){e&&c(t)}}}function mr(e){let t,i,n=e[22]("gamingLimits.popupSuccess")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.popupSuccess")+"")&&T(i,n)},d(e){e&&c(t)}}}function pr(e){let t,i,n=e[22]("gamingLimits.docsRequired")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.docsRequired")+"")&&T(i,n)},d(e){e&&c(t)}}}function dr(e){let t,i,n=e[22]("gamingLimits.popupError")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.popupError")+"")&&T(i,n)},d(e){e&&c(t)}}}function hr(t){let i,n,r;return{c(){i=p("button"),i.textContent="OK",b(i,"class","ConfirmButton")},m(e,o){u(e,i,o),n||(r=y(i,"click",t[31]),n=!0)},p:e,d(e){e&&c(i),n=!1,r()}}}function fr(e){let t,i,r,o,s,a,m,d=e[22]("gamingLimits.uploadDocumentsButton")+"",g=e[22]("gamingLimits.closeButton")+"";return{c(){t=p("button"),i=h(d),r=f(),o=p("button"),s=h(g),b(t,"class","ConfirmButton"),b(o,"class","CloseButton")},m(n,c){u(n,t,c),l(t,i),u(n,r,c),u(n,o,c),l(o,s),a||(m=[y(t,"click",e[32]),y(o,"click",e[31])],a=!0)},p(e,t){4194304&t[0]&&d!==(d=e[22]("gamingLimits.uploadDocumentsButton")+"")&&T(i,d),4194304&t[0]&&g!==(g=e[22]("gamingLimits.closeButton")+"")&&T(s,g)},d(e){e&&c(t),e&&c(r),e&&c(o),a=!1,n(m)}}}function gr(e){let t,i,r,o,s,a,d,g,v,E,x,S,A,$,P,_,I,k,D=e[12]?`${e[22]("gamingLimits.amount")}`:`${e[22]("gamingLimits.new")} ${e[22](`gamingLimits.${e[5]}`)} ${e[22]("gamingLimits.limit")}`,N=e[22]("gamingLimits.setLimit")+"",B=e[3],O=[];for(let t=0;t<B.length;t+=1)O[t]=Pr(nr(e,B,t));let M=e[11]&&_r(e),U=e[12]&&kr(e),C=e[21]&&Nr(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<O.length;e+=1)O[e].c();o=f(),s=p("form"),M&&M.c(),a=f(),U&&U.c(),d=f(),g=p("label"),v=p("span"),E=h(D),x=f(),S=p("input"),A=f(),C&&C.c(),$=f(),P=p("button"),_=h(N),b(r,"class","LimitsList "+(e[23]?"Desktop":"")),b(v,"class","LimitInputText"),b(S,"type","number"),b(S,"pattern","[0-9]*"),b(g,"class","LimitAmountInputWrapper"),b(P,"class","LimitSubmitButton"),b(P,"type","button"),P.disabled=!0,b(s,"class","LimitsInteractionArea "+(e[23]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gm16")},m(n,c){u(n,t,c),l(t,i),l(i,r);for(let e=0;e<O.length;e+=1)O[e].m(r,null);l(i,o),l(i,s),M&&M.m(s,null),l(s,a),U&&U.m(s,null),l(s,d),l(s,g),l(g,v),l(v,E),l(g,x),l(g,S),w(S,e[7]),l(g,A),C&&C.m(g,null),l(s,$),l(s,P),l(P,_),e[50](P),I||(k=[y(S,"input",e[49]),y(S,"keydown",e[33]),y(S,"keyup",e[27]),y(P,"click",e[26]),y(s,"submit",e[26])],I=!0)},p(e,t){if(1623195656&t[0]){let i;for(B=e[3],i=0;i<B.length;i+=1){const n=nr(e,B,i);O[i]?O[i].p(n,t):(O[i]=Pr(n),O[i].c(),O[i].m(r,null))}for(;i<O.length;i+=1)O[i].d(1);O.length=B.length}e[11]?M?M.p(e,t):(M=_r(e),M.c(),M.m(s,a)):M&&(M.d(1),M=null),e[12]?U?U.p(e,t):(U=kr(e),U.c(),U.m(s,d)):U&&(U.d(1),U=null),4198432&t[0]&&D!==(D=e[12]?`${e[22]("gamingLimits.amount")}`:`${e[22]("gamingLimits.new")} ${e[22](`gamingLimits.${e[5]}`)} ${e[22]("gamingLimits.limit")}`)&&T(E,D),128&t[0]&&L(S.value)!==e[7]&&w(S,e[7]),e[21]?C?C.p(e,t):(C=Nr(e),C.c(),C.m(g,null)):C&&(C.d(1),C=null),4194304&t[0]&&N!==(N=e[22]("gamingLimits.setLimit")+"")&&T(_,N)},d(i){i&&c(t),m(O,i),M&&M.d(),U&&U.d(),C&&C.d(),e[50](null),I=!1,n(k)}}}function yr(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function br(t){return{c:e,m:e,p:e,d:e}}function vr(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function Lr(e){let t,i,n,r,o=e[22]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.noLimitText")+"")&&T(r,o)},d(e){e&&c(t)}}}function Tr(e){let t,i,n,r,o=e[22]("gamingLimits.lugasPrivacy")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.lugasPrivacy")+"")&&T(r,o)},d(e){e&&c(t)}}}function wr(e){let t,i=e[98].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=$r(rr(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t].m(e,i);u(e,t,i)},p(e,r){if(541065224&r[0]){let o;for(i=e[98].currentLimits,o=0;o<i.length;o+=1){const s=rr(e,i,o);n[o]?n[o].p(s,r):(n[o]=$r(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){m(n,e),e&&c(t)}}}function Er(e){let t,i,n,r,o=e[22]("gamingLimits.lugasPrivacy")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.lugasPrivacy")+"")&&T(r,o)},d(e){e&&c(t)}}}function xr(e){let t,i,n=`${e[22]("gamingLimits.removedLimitText")} ${e[103].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194312&t[0]&&n!==(n=`${e[22]("gamingLimits.removedLimitText")} ${e[103].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Sr(e){let t,i,n=`${e[103].updateAmount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)} ${e[22]("gamingLimits.updateText")} ${e[103].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194312&t[0]&&n!==(n=`${e[103].updateAmount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)} ${e[22]("gamingLimits.updateText")} ${e[103].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Ar(e){let t,i,n,r,o=e[22]("gamingLimits.removeLimit")+"";function s(){return e[45](e[103])}return{c(){t=p("button"),i=h(o),b(t,"class","RemoveLimitButton")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,4194304&n[0]&&o!==(o=e[22]("gamingLimits.removeLimit")+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}function $r(e){let t,i,n,r,o,s,a,m,d=`${e[103].amount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)}`;function g(e,t){return 8&t[0]&&(s=null),null==s&&(s=!!(e[103].isModified&&+e[103].updateAmount.replaceAll(",","")>0)),s?Sr:e[103].isModified?xr:void 0}let y=g(e,[-1,-1,-1,-1]),v=y&&y(e),L=!e[103].isModified&&Ar(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(d),o=f(),v&&v.c(),a=f(),L&&L.c(),m=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,s){u(e,t,s),l(t,i),l(i,n),l(n,r),l(i,o),v&&v.m(i,null),l(t,a),L&&L.m(t,null),l(t,m)},p(e,n){4194312&n[0]&&d!==(d=`${e[103].amount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)}`)&&T(r,d),y===(y=g(e,n))&&v?v.p(e,n):(v&&v.d(1),v=y&&y(e),v&&(v.c(),v.m(i,null))),e[103].isModified?L&&(L.d(1),L=null):L?L.p(e,n):(L=Ar(e),L.c(),L.m(t,m))},d(e){e&&c(t),v&&v.d(),L&&L.d()}}}function Pr(e){let t,i,n,r,o,s,a=e[30](e[98])+"";function m(e,t){return"lugas"===e[98].value?Er:e[98].currentLimits.length>0?wr:"lugas"===e[98].value?Tr:Lr}let d=m(e),g=d(e);return{c(){t=p("div"),i=p("p"),n=h(a),r=f(),g.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class",s="LimitWrapper "+(e[23]?"Desktop":""))},m(e,s){u(e,t,s),l(t,i),l(i,n),l(t,r),g.m(t,null),l(t,o)},p(e,i){8&i[0]&&a!==(a=e[30](e[98])+"")&&T(n,a),d===(d=m(e))&&g?g.p(e,i):(g.d(1),g=d(e),g&&(g.c(),g.m(t,o)))},d(e){e&&c(t),g.d()}}}function _r(e){let t,i,r,o,s,a,d,g=e[22]("gamingLimits.limitType")+"",v=e[3],L=[];for(let t=0;t<v.length;t+=1)L[t]=Ir(ir(e,v,t));return{c(){t=p("label"),i=p("span"),r=h(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),void 0===e[6]&&U((()=>e[46].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e].m(s,null);x(s,e[6]),a||(d=[y(s,"change",e[46]),y(s,"change",e[47])],a=!0)},p(e,t){if(4194304&t[0]&&g!==(g=e[22]("gamingLimits.limitType")+"")&&T(r,g),1073741832&t[0]){let i;for(v=e[3],i=0;i<v.length;i+=1){const n=ir(e,v,i);L[i]?L[i].p(n,t):(L[i]=Ir(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}64&t[0]&&x(s,e[6])},d(e){e&&c(t),m(L,e),a=!1,n(d)}}}function Ir(e){let t,i,n,r=e[30](e[98])+"";return{c(){t=p("option"),i=h(r),t.__value=n=e[100],t.value=t.__value},m(e,n){u(e,t,n),l(t,i)},p(e,t){8&t[0]&&r!==(r=e[30](e[98])+"")&&T(i,r)},d(e){e&&c(t)}}}function kr(e){let t,i,n,r,o,s,a,d=e[22]("gamingLimits.period")+"",g=e[2][e[4]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=Dr(tr(e,g,t));return{c(){t=p("label"),i=p("span"),n=h(d),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),void 0===e[5]&&U((()=>e[48].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(c,m){u(c,t,m),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e].m(o,null);x(o,e[5]),s||(a=y(o,"change",e[48]),s=!0)},p(e,t){if(4194304&t[0]&&d!==(d=e[22]("gamingLimits.period")+"")&&T(n,d),4194324&t[0]){let i;for(g=e[2][e[4]].periods,i=0;i<g.length;i+=1){const n=tr(e,g,i);v[i]?v[i].p(n,t):(v[i]=Dr(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}52&t[0]&&x(o,e[5])},d(e){e&&c(t),m(v,e),s=!1,a()}}}function Dr(e){let t,i,n,r=e[22](`gamingLimits.${e[95]}`)+"";return{c(){t=p("option"),i=h(r),t.__value=n=e[95],t.value=t.__value,t.selected=!0},m(e,n){u(e,t,n),l(t,i)},p(e,o){4194324&o[0]&&r!==(r=e[22](`gamingLimits.${e[95]}`)+"")&&T(i,r),20&o[0]&&n!==(n=e[95])&&(t.__value=n,t.value=t.__value)},d(e){e&&c(t)}}}function Nr(e){let t,i,n=e[22]("gamingLimits.invalidInputMessageLimit",{values:{minValue:e[9],maxValue:e[10],currency:e[0]}})+"";return{c(){t=p("p"),i=h(n),b(t,"class","InvalidInput"),b(t,"part","InvalidInput")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4195841&t[0]&&n!==(n=e[22]("gamingLimits.invalidInputMessageLimit",{values:{minValue:e[9],maxValue:e[10],currency:e[0]}})+"")&&T(i,n)},d(e){e&&c(t)}}}function Br(t){let i,n,r,o,s=t[16]&&or(t);function a(e,t){return e[13]&&!e[16]?vr:e[13]?br:e[14]?yr:gr}let m=a(t),d=m(t);return{c(){i=p("meta"),n=f(),r=p("div"),s&&s.c(),o=f(),d.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,a){l(er.head,i),u(e,n,a),u(e,r,a),s&&s.m(r,null),l(r,o),d.m(r,null),t[51](r)},p(e,t){e[16]?s?s.p(e,t):(s=or(e),s.c(),s.m(r,o)):s&&(s.d(1),s=null),m===(m=a(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),s&&s.d(),d.d(),t[51](null)}}}function Or(e,t,i){let n;a(e,hi,(e=>i(22,n=e)));let r,o,s,l,u,{lang:c="en"}=t,{currency:m=""}=t,{limits:p=""}=t,{session:d=""}=t,{userid:h=""}=t,{endpoint:f=""}=t,{apiversion:g=""}=t,{amountsconfig:y=""}=t,{periodsconfig:b=""}=t,{clientstyling:v=""}=t,{clientstylingurl:T=""}=t,{translationurl:w=""}=t,E=window.navigator.userAgent,x=!Sn(E),A=[],$="",P="",_="",I=0,k="",N="",B="",O={},M=!1,U=!1,C=!0,H=!1,j=!1,R=!1,z=!1,G="",F=[],V=!1,W=!1,X={};const q={EUR:"€",RON:" lei",USD:"$"},Y={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]};Object.keys(Qn).forEach((e=>{Jn(e,Qn[e])}));const K=()=>{[...y.matchAll(/\(([^)]+)\)/g)].flat().filter((e=>!e.includes("("))).forEach((e=>{Zn[e]?A.push(Object.assign({},Zn[e])):console.error(`Unknown limit: ${e}`)})),(()=>{var e;const t=y.split(",").map((e=>e.split(":"))),n=b.split(",").map((e=>e.split(":")));for(let[e,i]of t.entries())if(i[0]!==n[e][0])throw new Error(`Limit config mismatch: "${i[0]}" does not match "${n[e][0]}"`);const r=t.reduce(((e,t,i)=>{const r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),o={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:n[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:Zn[r].callValue,callValue16:Zn[r].callValue16,title:Zn[r].title};return e.push(o),e}),[]);for(let e=0;e<r.length;e++)i(3,A[e].product=r[e].product,A),i(3,A[e].min=parseInt(r[e].minMax.split("-")[0],10),A),i(3,A[e].max=parseInt(r[e].minMax.split("-")[1],10),A),i(2,Zn[r[e].value].periods=r[e].periods,Zn);B=null===(e=A[0])||void 0===e?void 0:e.value,A.forEach((e=>{O[e.value]={min:e.min,max:e.max},X[e.value]=e.product})),O&&(O[B]?(i(9,k=O[B].min),i(10,N=O[B].max)):(i(9,k=1),i(10,N=9999999)))})(),i(4,$=A[0].value),i(5,P=Zn[$].periods[0]),_=A[0].product,i(11,M=A.length>1),i(12,U=Zn[$].periods.length>1)},Z=()=>{i(4,$=A[I].value),i(5,P=Zn[$].periods[0]),i(12,U=Zn[$].periods.length>1)},J=()=>{_=A[I].product},Q=e=>{if(!(e.status>=300))return i(15,j=!1),e.json();ee(e)},ee=e=>{let t;throw i(14,H=!0),e.json().then((e=>{for(const i in Y)for(const n of Y[i])JSON.stringify(e).includes(n)&&(t=i);console.log("errType",t),!t&&me(e)})).finally((()=>{t&&me(t),i(14,H=!1),i(13,C=!1)})),new Error("An error occured during the fetch request")},te=()=>{switch(g){case"gmcore":ie();break;case"gm16":ne()}},ie=()=>{i(13,C=!0);let e=new URL(`/v2/player/${h}/limits`,f),t={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then((e=>Q(e))).then((e=>{F=e,R&&me(),re(F),oe(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{i(13,C=!1)}))},ne=()=>{i(13,C=!0),F=[];let e=new URL(`v1/player/${h}/limits/monetary`,f),t=new URL(`v1/player/${h}/limits/session`,f),n=!1,r={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((e=>Q(e))).then((e=>{F.push(e),R&&me(),"gmcore"===g&&re(F),"gm16"===g&&se(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{n&&i(13,C=!1),n=!0})),fetch(t.href,r).then((e=>Q(e))).then((e=>{F.push(e),R&&me(),"gm16"===g&&ae(F),"gm16"===g&&le(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{n&&i(13,C=!1),n=!0}))},re=e=>{A.forEach((t=>{t.currentLimits=[];const i=Array.isArray(e[Zn[t.value].callValue])?e[Zn[t.value].callValue]:[e[Zn[t.value].callValue]];0!==i.length&&void 0!==i[0]&&(i.forEach(((i,n)=>{var r;const o=e[Zn[t.value].callValue][n];t.currentLimits.push({}),t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=q[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=ue(t.currentLimits))}))},oe=e=>{const t=n("gamingLimits.minutes");A.filter((e=>"sessionLimit"===e.value||"cumulativeSession"===e.value)).forEach((i=>{var n;i.currentLimits=[],null===(n=e[Zn[i.value].callValue])||void 0===n||n.forEach(((n,r)=>{const o=e[Zn[i.value].callValue][r];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.minutes),currency:t,isModified:o.isModified,period:"cumulativeSession"===i.value?o.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateMinutes),expiryDate:`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})})),i.currentLimits=ue(i.currentLimits)}))},se=e=>{var t;(null===(t=e[0])||void 0===t?void 0:t.limits)&&A.forEach((t=>{var i;t.currentLimits=[];for(const n of e[0].limits)if(n.type===t.callValue16&&n.products.includes(t.product)){const e=n;t.currentLimits.push({limitType:t.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),currency:null!==(i=q[e.currency])&&void 0!==i?i:e.currency,isModified:e.schedules.length>0,period:e.period,product:e.products[0],updateAmount:e.schedules.length>0?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.schedules[0].updateAmount):"",expiryDate:e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:e.id})}t.currentLimits=ue(t.currentLimits)}))},ae=e=>{var t;(null===(t=e[1])||void 0===t?void 0:t.sessionLimit)&&A.filter((e=>"sessionLimit"===e.value)).forEach((t=>{t.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e[1].sessionLimit.minutes),currency:n("gamingLimits.minutes"),isModified:e[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e[1].sessionLimit.updateMinutes),expiryDate:e[1].sessionLimit.expiryDate}),t.currentLimits=ue(t.currentLimits)}))},le=e=>{var t;(null===(t=e[1])||void 0===t?void 0:t.cumulativeSessionLimits)&&A.filter((e=>"cumulativeSession"===e.value)).forEach((t=>{for(const i of e[1].cumulativeSessionLimits)t.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.minutes),currency:n("gamingLimits.minutes"),isModified:i.isModified,period:i.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.updateMinutes),expiryDate:i.expiryDate});t.currentLimits=ue(t.currentLimits)}))},ue=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},ce=()=>{i(21,W=!1),(null==O?void 0:O[$])?(i(9,k=O[$].min),i(10,N=O[$].max)):(i(9,k=1),i(10,N=9999999))},me=e=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),H)return i(15,j=!0),e&&!e.thirdPartyResponse&&i(18,G=n(`gamingLimits.${e}`)),e&&e.thirdPartyResponse&&i(18,G=e.thirdPartyResponse.message),void i(17,z=!0);switch(g){case"gmcore":"sessionLimit"===$||"cumulativeSession"===$?(()=>{if(F){const e=F[Zn[$].callValue].filter((e=>e.period===P||"None"===P))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.minutes);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${$}`)).replace("{updatedAmount}",t).replace("{currency}",n("gamingLimits.minutes")).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(17,z=!0)})():(()=>{if(F){const e=F[Zn[$].callValue].filter((e=>e.period===P))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",fe()).replace("{updatedAmount}",t).replace("{currency}",q[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(17,z=!0)})();break;case"gm16":"lugas"===$?(V?(1==l&&i(18,G=`${n("gamingLimits.kycNeeded1")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(u)} ${m} ${n("gamingLimits.kycNeeded2")}`),3==l&&i(18,G=`${n("gamingLimits.kyc2")}`)):i(18,G=n("gamingLimits.kycNotNeeded")),i(17,z=!0)):"sessionLimit"===$||"cumulativeSession"===$?(i(18,G=n("gamingLimits.sessionLimitUpdated")),i(17,z=!0)):(()=>{var e;const t=(null===(e=F[0])||void 0===e?void 0:e.limits)||F.limits;if(F){const e=t.filter((e=>e.type===Zn[$].callValue16&&(e.period===P||"None"===e.period)))[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),o=e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let s=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",fe()).replace("{updatedAmount}",r).replace("{currency}",q[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.schedules.length>0?`${n("gamingLimits.popupPendingUpdate")} ${o}`:s)}i(17,z=!0)})();break;default:throw new Error(`Invalid apiversion attribute: ${g}`)}},pe=e=>{switch(g){case"gmcore":(e=>{i(4,$=e.limitType),i(5,P=e.period),i(16,R=!0),i(13,C=!0);let t=new URL(`v2/player/${h}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[e.limitType]}`,f);"sessionLimit"!==e.limitType&&t.searchParams.append("periods",e.period);let n={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})(e);break;case"gm16":"sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?de(e):he(e)}},de=e=>{const t=new URL(`/v1/player/${h}/limits/session/session`,f),n=new URL(`/v1/player/${h}/limits/session/cumulativeSession?periods=${e.period}`,f);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=n;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}i(16,R=!0),i(13,C=!0);let o={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,o).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))},he=e=>{const t=new URL(`/v1/player/${h}/limits/monetary/${e.id}`,f);i(16,R=!0),i(13,C=!0);let n={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))},fe=e=>{let t;return t=e?-1===n(`gamingLimits.${e.value}${e.product}`).indexOf(".")?n(`gamingLimits.${e.value}${e.product}`):n(`gamingLimits.${e.value}`):-1===n(`gamingLimits.${$}${_}`).indexOf(".")?n(`gamingLimits.${$}${_}`):n(`gamingLimits.${$}`),t},ge=()=>{i(17,z=i(16,R=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href)},ye=()=>{var e;e=c,ii.set(e)};return e.$$set=e=>{"lang"in e&&i(34,c=e.lang),"currency"in e&&i(0,m=e.currency),"limits"in e&&i(35,p=e.limits),"session"in e&&i(36,d=e.session),"userid"in e&&i(37,h=e.userid),"endpoint"in e&&i(38,f=e.endpoint),"apiversion"in e&&i(39,g=e.apiversion),"amountsconfig"in e&&i(40,y=e.amountsconfig),"periodsconfig"in e&&i(41,b=e.periodsconfig),"clientstyling"in e&&i(42,v=e.clientstyling),"clientstylingurl"in e&&i(43,T=e.clientstylingurl),"translationurl"in e&&i(44,w=e.translationurl)},e.$$.update=()=>{1536&e.$$.dirty[1]&&b&&y&&K(),8&e.$$.dirty[1]&&c&&ye(),488&e.$$.dirty[1]&&h&&d&&f&&g&&c&&te(),2&e.$$.dirty[0]|4096&e.$$.dirty[1]&&T&&r&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})(),2&e.$$.dirty[0]|2048&e.$$.dirty[1]&&v&&r&&(()=>{let e=document.createElement("style");e.innerHTML=v,r.appendChild(e)})(),8192&e.$$.dirty[1]&&w&&fetch(w).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Jn(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,r,Zn,A,$,P,I,o,s,k,N,M,U,C,H,j,R,z,G,V,l,W,n,x,Z,J,()=>{switch(g){case"gmcore":(()=>{if(!(o>0))return;i(16,R=!0),i(13,C=!0);let e=new URL(`v2/player/${h}/limits`,f),t={};"sessionLimit"===$?t={sessionLimit:o,sessionLimitUnit:"minute"}:t[Zn[$].callValue]="cumulativeSession"===$?[{period:P,minutes:o}]:[{period:"None"===Zn[$].periods[0]?null:P,amount:o,currency:m}];let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})();break;case"gm16":"lugas"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,C=!0);const e=new URL(`v1/player/${h}/limit/lugas`,f),t={amount:o};let n={method:"POST",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{i(19,V=e.kycNeeded),i(20,l=e.popup),u=e.operatorDepositLimitAmount,te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():"sessionLimit"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,C=!0);const e=new URL(`v1/player/${h}/limits/session/`,f),t={sessionLimit:o,sessionLimitUnit:"minute"};let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():"cumulativeSession"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,C=!0);const e=new URL(`v1/player/${h}/limits/session/`,f),t={cumulativeSessionLimits:[{period:P,minutes:o}]};let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():(()=>{if(o<=0)return;i(16,R=!0),i(13,C=!0);const e=A[I].currentLimits.filter((e=>e.period===P))[0],t=new URL(`v1/player/${h}/limits/monetary/${e?e.id:""}`,f),n=e?"PUT":"POST",r=e?{amount:o,skipCoolOff:!1}:{amount:o,currency:m,period:"None"===Zn[$].periods[0]?null:P,type:Zn[$].callValue16,products:[null!=_?_:"All"],walletTypes:["All"]};let s={method:n,headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,s).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})();break;default:throw Error(`Invalid apiversion attribute: ${g}`)}},()=>{const e=o-Math.floor(o)==0;o>=k&&o<=N&&e?(i(21,W=!1),s.removeAttribute("disabled")):(i(21,W=!0),s.setAttribute("disabled","true"))},ce,pe,fe,ge,()=>{window.postMessage({type:"uploadDocuments"}),ge()},e=>{13===e.keyCode&&W&&e.preventDefault()},c,p,d,h,f,g,y,b,v,T,w,e=>pe(e),function(){I=S(this),i(6,I)},()=>{J(),Z(),ce()},function(){P=S(this),i(5,P),i(2,Zn),i(4,$)},function(){o=L(this.value),i(7,o)},function(e){D[e?"unshift":"push"]((()=>{s=e,i(8,s)}))},function(e){D[e?"unshift":"push"]((()=>{r=e,i(1,r)}))}]}function Mr(e,t){Rt(e,t)}!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da;background-color:#fff}select:hover{cursor:pointer}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:#fff;color:#999;border:1px solid #999;margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:11}.PopupContainer{background:#fff;font-size:1.3rem;color:#333;width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",V(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Or,Br,o,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,amountsconfig:40,periodsconfig:41,clientstyling:42,clientstylingurl:43,translationurl:44},null,[-1,-1,-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),j()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),j()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),j()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),j()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),j()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),j()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),j()}get amountsconfig(){return this.$$.ctx[40]}set amountsconfig(e){this.$$set({amountsconfig:e}),j()}get periodsconfig(){return this.$$.ctx[41]}set periodsconfig(e){this.$$set({periodsconfig:e}),j()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),j()}});const Ur={en:{history:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed"}},de:{history:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt"}},hr:{history:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno"}},sl:{history:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen"}},pl:{history:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit"}},"zh-hk":{history:{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制"}},fr:{history:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée"}},ro:{history:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata"}},es:{history:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado"}}};function Cr(e,t,i){const n=e.slice();return n[34]=t[i],n[35]=t,n[36]=i,n}function Hr(e){let t,i,n,r,o,s,a,g,v,L,w,E,x=e[9]("history.expandLimits")+"",S=e[7],$=[];for(let t=0;t<S.length;t+=1)$[t]=Fr(Cr(e,S,t));return{c(){t=p("div"),i=p("div"),n=p("button"),r=h(x),o=f(),s=d("svg"),a=d("path"),g=d("path"),v=f(),L=p("div");for(let e=0;e<$.length;e+=1)$[e].c();b(a,"d","M10.5 15l7.5 7.5 7.5-7.5z"),b(g,"d","M0 0h36v36h-36z"),b(g,"fill","none"),b(s,"class","ExpandArrow"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(s,"width","36"),b(s,"height","36"),b(s,"viewBox","0 0 36 36"),b(s,"fill","#999"),A(s,"extended",e[8]),b(n,"class","ExpandButton"),b(L,"class","HistoryDisplayArea"),A(L,"hidden",e[5]),b(i,"class","HistoryWrapper "+(e[10]?"Desktop":"")),b(t,"class","player-account-gaming-limits-history-2")},m(c,m){u(c,t,m),l(t,i),l(i,n),l(n,r),l(n,o),l(n,s),l(s,a),l(s,g),l(i,v),l(i,L);for(let e=0;e<$.length;e+=1)$[e].m(L,null);w||(E=y(n,"click",e[11]),w=!0)},p(e,t){if(512&t[0]&&x!==(x=e[9]("history.expandLimits")+"")&&T(r,x),256&t[0]&&A(s,"extended",e[8]),650&t[0]){let i;for(S=e[7],i=0;i<S.length;i+=1){const n=Cr(e,S,i);$[i]?$[i].p(n,t):($[i]=Fr(n),$[i].c(),$[i].m(L,null))}for(;i<$.length;i+=1)$[i].d(1);$.length=S.length}32&t[0]&&A(L,"hidden",e[5])},d(e){e&&c(t),m($,e),w=!1,E()}}}function jr(t){return{c:e,m:e,p:e,d:e}}function Rr(e){let t,i,n=(e[0]?e[9]("history.error"):"500 Server Error")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("history.error"):"500 Server Error")+"")&&T(i,n)},d(e){e&&c(t)}}}function zr(e){let t,i,n,r,o,s,a,m,d,g,y,v,L=e[34].type+"",w=e[34].amount+"",E=e[34].currency+"",x=e[34].period+"",S=e[34].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=h(L),o=p("span"),s=h(w),a=f(),m=h(E),d=f(),g=h(x),y=p("span"),v=h(S),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(y,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(o,a),l(o,m),l(o,d),l(o,g),l(t,y),l(y,v)},p(e,t){128&t[0]&&L!==(L=e[34].type+"")&&T(r,L),128&t[0]&&w!==(w=e[34].amount+"")&&T(s,w),128&t[0]&&E!==(E=e[34].currency+"")&&T(m,E),128&t[0]&&x!==(x=e[34].period+"")&&T(g,x),128&t[0]&&S!==(S=e[34].date+"")&&T(v,S)},d(e){e&&c(t)}}}function Gr(e){let t,i,n,r,o,s,a,m,d=e[34].type+"",f=e[9]("history.limitRemoved")+"",g=e[34].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=h(d),o=p("span"),s=h(f),a=p("span"),m=h(g),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(a,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(t,a),l(a,m)},p(e,t){128&t[0]&&d!==(d=e[34].type+"")&&T(r,d),512&t[0]&&f!==(f=e[9]("history.limitRemoved")+"")&&T(s,f),128&t[0]&&g!==(g=e[34].date+"")&&T(m,g)},d(e){e&&c(t)}}}function Fr(e){let t,i,n,r=e[36];function o(e,t){return e[34].removed?Gr:zr}let s=o(e),a=s(e);const m=()=>e[19](t,r),d=()=>e[19](null,r);return{c(){t=p("div"),a.c(),i=f(),b(t,"class",n=e[36]>+e[1]?"LimitContainer":"")},m(e,n){u(e,t,n),a.m(t,null),l(t,i),m()},p(l,u){s===(s=o(e=l))&&a?a.p(e,u):(a.d(1),a=s(e),a&&(a.c(),a.m(t,i))),2&u[0]&&n!==(n=e[36]>+e[1]?"LimitContainer":"")&&b(t,"class",n),r!==e[36]&&(d(),r=e[36],m())},d(e){e&&c(t),a.d(),d()}}}function Vr(t){let i;function n(e,t){return e[6]?Rr:e[4]?jr:Hr}let r=n(t),o=r(t);return{c(){i=p("div"),o.c(),this.c=e},m(e,n){u(e,i,n),o.m(i,null),t[20](i)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},i:e,o:e,d(e){e&&c(i),o.d(),t[20](null)}}}function Wr(e,t,i){let n;a(e,hi,(e=>i(9,n=e)));let r,o=window.navigator.userAgent,s=!Sn(o),{lang:l=""}=t,{userid:u=""}=t,{session:c=""}=t,{endpoint:m=""}=t,{apiversion:p=""}=t,{numberofentries:d="10"}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{translationurl:g=""}=t,y=new Array,b=parseInt(d,10),v=!1,L=!0,T=[],w=[],E=!0,x=!1,S={EUR:"€",RON:"lei"};Object.keys(Ur).forEach((e=>{Mr(e,Ur[e])}));const A=e=>{const t=!!Ur[l];return e.map((e=>{let i={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return i.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),i.currency=t?S[e.limitCurrencyCode]:e.limitCurrencyCode,i.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),i.period=n(`history.${e.limitPeriod.toLowerCase()}`),i.type=-1===n(`history.${e.limitType.split(" ")[0].toLowerCase()}${e.limitProductType}`).indexOf(".")?n(`history.${e.limitType.split(" ")[0].toLowerCase()}${e.limitProductType}`):n(`history.${e.limitType.split(" ")[0].toLowerCase()}`),i.removed=-1===e.limitAmount,i}))};let $=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(b+=parseInt(d,10)||10,w.length<T.length&&i(7,w=T.slice(0,b)))}))}));const P=()=>{var e;e=l,ii.set(e)};return I((()=>()=>{$.unobserve(y[y.length-1])})),e.$$set=e=>{"lang"in e&&i(0,l=e.lang),"userid"in e&&i(12,u=e.userid),"session"in e&&i(13,c=e.session),"endpoint"in e&&i(14,m=e.endpoint),"apiversion"in e&&i(15,p=e.apiversion),"numberofentries"in e&&i(1,d=e.numberofentries),"clientstyling"in e&&i(16,h=e.clientstyling),"clientstylingurl"in e&&i(17,f=e.clientstylingurl),"translationurl"in e&&i(18,g=e.translationurl)},e.$$.update=()=>{61440&e.$$.dirty[0]&&m&&u&&c&&p&&(()=>{let e=new URL("gmcore"===p?`v2/player/${u}/transactions/limit`:`v1/player/${u}/limits/monetary/history`,m);e.searchParams.append("startDate",`${new Date("2022").toISOString()}`),e.searchParams.append("endDate",`${new Date("2099").toISOString()}`),e.searchParams.append("limit","10000");let t={method:"GET",headers:{"X-SessionID":c}};fetch(e.href,t).then((e=>{if(e.status>=300)throw i(4,L=!1),i(6,v=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{e.length&&(T=A(e),i(7,w=T.slice(0,b))),i(4,L=!1)}),(e=>{console.error("There was an error",e),i(6,v=!0)}))})(),56&e.$$.dirty[0]&&y[0]&&!L&&!E&&$.observe(y[y.length-1]),1&e.$$.dirty[0]&&l&&P(),131072&e.$$.dirty[0]&&f&&(()=>{let e=new URL(f),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&(setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500))}))})(),65540&e.$$.dirty[0]&&h&&r&&(()=>{let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)})(),262148&e.$$.dirty[0]&&g&&r&&fetch(g).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Mr(t,e[t])}))})).catch((e=>{console.log(e)}))},[l,d,r,y,L,E,v,w,x,n,s,()=>{i(5,E=!E),i(8,x=!x)},u,c,m,p,h,f,g,function(e,t){D[e?"unshift":"push"]((()=>{y[t]=e,i(3,y)}))},function(e){D[e?"unshift":"push"]((()=>{r=e,i(2,r)}))}]}!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:1.3rem}*,*::before,*::after{color:#555;margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:#ccc 1px solid}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}</style>",V(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Wr,Vr,o,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,clientstyling:16,clientstylingurl:17,translationurl:18},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),j()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),j()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),j()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),j()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),j()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),j()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),j()}});const{document:Xr}=G;function qr(e,t,i){const n=e.slice();return n[31]=t[i],n[33]=i,n}function Yr(e,t,i){const n=e.slice();return n[34]=t[i],n[33]=i,n}function Kr(e){let t,i,n,r,o=e[18].length>1&&function(e){let t,i=e[18],n=[];for(let t=0;t<i.length;t+=1)n[t]=Jr(Yr(e,i,t));return{c(){t=p("div");for(let e=0;e<n.length;e+=1)n[e].c();b(t,"class","TabsContainer")},m(i,r){u(i,t,r);for(let e=0;e<n.length;e+=1)n[e].m(t,null);e[24](t)},p(e,r){if(802816&r[0]){let o;for(i=e[18],o=0;o<i.length;o+=1){const s=Yr(e,i,o);n[o]?n[o].p(s,r):(n[o]=Jr(s),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(i){i&&c(t),m(n,i),e[24](null)}}}(e),s=e[18],a=[];for(let t=0;t<s.length;t+=1)a[t]=Qr(qr(e,s,t));let l="true"===e[6]&&eo(e);return{c(){o&&o.c(),t=f(),i=p("div");for(let e=0;e<a.length;e+=1)a[e].c();n=f(),l&&l.c(),r=g(),b(i,"class","player-account-gaming-limits-wrapper-2")},m(s,c){o&&o.m(s,c),u(s,t,c),u(s,i,c);for(let e=0;e<a.length;e+=1)a[e].m(i,null);e[25](i),u(s,n,c),l&&l.m(s,c),u(s,r,c)},p(e,t){if(e[18].length>1&&o.p(e,t),198463&t[0]){let n;for(s=e[18],n=0;n<s.length;n+=1){const r=qr(e,s,n);a[n]?a[n].p(r,t):(a[n]=Qr(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=s.length}"true"===e[6]?l?l.p(e,t):(l=eo(e),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null)},d(s){o&&o.d(s),s&&c(t),s&&c(i),m(a,s),e[25](null),s&&c(n),l&&l.d(s),s&&c(r)}}}function Zr(t){return{c:e,m:e,p:e,d:e}}function Jr(e){let t,i,n,r,o=(e[14][e[33]]??e[34])+"";function s(){return e[23](e[33])}return{c(){t=p("div"),i=h(o),b(t,"class","LimitsTab")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,16384&n[0]&&o!==(o=(e[14][e[33]]??e[34])+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}function Qr(e){let t,i,n;return{c(){t=p("player-account-gaming-limits-page-2-gm16"),v(t,"class","hidden selected"),v(t,"lang",e[0]),v(t,"currency",e[4]),v(t,"amountsconfig",i=e[16][e[33]]),v(t,"periodsconfig",n=e[17][e[33]]),v(t,"userid",e[1]),v(t,"session",e[2]),v(t,"endpoint",e[3]),v(t,"apiversion",e[5]),v(t,"clientstyling",e[8]),v(t,"clientstylingurl",e[9]),v(t,"translationurl",e[10])},m(e,i){u(e,t,i)},p(e,r){1&r[0]&&v(t,"lang",e[0]),16&r[0]&&v(t,"currency",e[4]),65536&r[0]&&i!==(i=e[16][e[33]])&&v(t,"amountsconfig",i),131072&r[0]&&n!==(n=e[17][e[33]])&&v(t,"periodsconfig",n),2&r[0]&&v(t,"userid",e[1]),4&r[0]&&v(t,"session",e[2]),8&r[0]&&v(t,"endpoint",e[3]),32&r[0]&&v(t,"apiversion",e[5]),256&r[0]&&v(t,"clientstyling",e[8]),512&r[0]&&v(t,"clientstylingurl",e[9]),1024&r[0]&&v(t,"translationurl",e[10])},d(e){e&&c(t)}}}function eo(e){let t;return{c(){t=p("player-account-gaming-limits-history-2"),v(t,"lang",e[0]),v(t,"userid",e[1]),v(t,"session",e[2]),v(t,"endpoint",e[3]),v(t,"apiversion",e[5]),v(t,"numberofentries",e[7]),v(t,"clientstyling",e[8]),v(t,"clientstylingurl",e[9]),v(t,"translationurl",e[10])},m(e,i){u(e,t,i)},p(e,i){1&i[0]&&v(t,"lang",e[0]),2&i[0]&&v(t,"userid",e[1]),4&i[0]&&v(t,"session",e[2]),8&i[0]&&v(t,"endpoint",e[3]),32&i[0]&&v(t,"apiversion",e[5]),128&i[0]&&v(t,"numberofentries",e[7]),256&i[0]&&v(t,"clientstyling",e[8]),512&i[0]&&v(t,"clientstylingurl",e[9]),1024&i[0]&&v(t,"translationurl",e[10])},d(e){e&&c(t)}}}function to(t){let i,n,r;function o(e,t){return e[11]?Zr:Kr}let s=o(t),a=s(t);return{c(){i=p("meta"),n=f(),r=p("div"),a.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,o){l(Xr.head,i),u(e,n,o),u(e,r,o),a.m(r,null),t[26](r)},p(e,t){s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),a.d(),t[26](null)}}}function io(e,t,i){let n,r,o,s,a,l,{lang:u=""}=t,{userid:c=""}=t,{session:m=""}=t,{endpoint:p=""}=t,{currency:d=""}=t,{apiversion:h=""}=t,{tablabels:f=""}=t,{historyenabled:g="true"}=t,{limitsamount:y=""}=t,{limitsperiods:b=""}=t,{numberofentries:v=""}=t,{clientstyling:L=""}=t,{clientstylingurl:T=""}=t,{translationurl:w=""}=t,E=!0,x=[];const S=()=>{((e,t)=>{if(i(16,a=e.replace(/\s/g,"").split("|")),i(17,l=t.replace(/\s/g,"").split("|")),0===a.length)throw new Error("Please provide a full limits configuration.");if(a.length!==l.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")})(y,b),y.split("|").forEach((e=>{x.push(e)})),i(14,r=f.split(",").map((e=>e.trim()))),i(11,E=!1)},A=e=>{if(o.children.length>0)for(let t=0;t<o.children.length;t++)e===t?(o.children[t].classList.remove("hidden"),null==s||s.children[t].classList.add("selected")):(o.children[t].classList.add("hidden"),null==s||s.children[t].classList.remove("selected"))};I((()=>()=>{i(13,o=null),i(15,s=null)}));return e.$$set=e=>{"lang"in e&&i(0,u=e.lang),"userid"in e&&i(1,c=e.userid),"session"in e&&i(2,m=e.session),"endpoint"in e&&i(3,p=e.endpoint),"currency"in e&&i(4,d=e.currency),"apiversion"in e&&i(5,h=e.apiversion),"tablabels"in e&&i(20,f=e.tablabels),"historyenabled"in e&&i(6,g=e.historyenabled),"limitsamount"in e&&i(21,y=e.limitsamount),"limitsperiods"in e&&i(22,b=e.limitsperiods),"numberofentries"in e&&i(7,v=e.numberofentries),"clientstyling"in e&&i(8,L=e.clientstyling),"clientstylingurl"in e&&i(9,T=e.clientstylingurl),"translationurl"in e&&i(10,w=e.translationurl)},e.$$.update=()=>{1048623&e.$$.dirty[0]&&c&&m&&p&&f&&u&&h&&S(),10240&e.$$.dirty[0]&&o&&!E&&A(0),4608&e.$$.dirty[0]&&T&&n&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1)}))})(),4352&e.$$.dirty[0]&&L&&n&&(()=>{let e=document.createElement("style");e.innerHTML=L,n.appendChild(e)})()},[u,c,m,p,d,h,g,v,L,T,w,E,n,o,r,s,a,l,x,A,f,y,b,e=>A(e),function(e){D[e?"unshift":"push"]((()=>{s=e,i(15,s)}))},function(e){D[e?"unshift":"push"]((()=>{o=e,i(13,o)}))},function(e){D[e?"unshift":"push"]((()=>{n=e,i(12,n)}))}]}class no extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid #ccc;justify-content:center;background:#fff;box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}.selected{border-bottom:0.2rem solid #002554;color:#002554;margin:0}</style>",V(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},io,to,o,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:20,historyenabled:6,limitsamount:21,limitsperiods:22,numberofentries:7,clientstyling:8,clientstylingurl:9,translationurl:10},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","limitsamount","limitsperiods","numberofentries","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),j()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),j()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),j()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),j()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),j()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),j()}get tablabels(){return this.$$.ctx[20]}set tablabels(e){this.$$set({tablabels:e}),j()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),j()}get limitsamount(){return this.$$.ctx[21]}set limitsamount(e){this.$$set({limitsamount:e}),j()}get limitsperiods(){return this.$$.ctx[22]}set limitsperiods(e){this.$$set({limitsperiods:e}),j()}get numberofentries(){return this.$$.ctx[7]}set numberofentries(e){this.$$set({numberofentries:e}),j()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),j()}}return!customElements.get("player-account-gaming-limits-wrapper-2")&&customElements.define("player-account-gaming-limits-wrapper-2",no),no}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t,i){e.$$.on_destroy.push(s(t,i))}function l(e,t){e.appendChild(t)}function u(e,t,i){e.insertBefore(t,i||null)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function p(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function h(e){return document.createTextNode(e)}function f(){return h(" ")}function g(){return h("")}function y(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function b(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function v(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:b(e,t,i)}function L(e){return""===e?null:+e}function T(e,t){t=""+t,e.data!==t&&(e.data=t)}function w(e,t){e.value=null==t?"":t}function E(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function x(e,t,i){for(let i=0;i<e.options.length;i+=1){const n=e.options[i];if(n.__value===t)return void(n.selected=!0)}i&&void 0===t||(e.selectedIndex=-1)}function S(e){const t=e.querySelector(":checked");return t&&t.__value}function A(e,t,i){e.classList[i?"add":"remove"](t)}function $(e){const t={};for(const i of e)t[i.name]=i.value;return t}let P;function _(e){P=e}function I(e){(function(){if(!P)throw new Error("Function called outside component initialization");return P})().$$.on_mount.push(e)}const D=[],k=[];let N=[];const B=[],O=Promise.resolve();let M=!1;function C(e){N.push(e)}const U=new Set;let H=0;function j(){if(0!==H)return;const e=P;do{try{for(;H<D.length;){const e=D[H];H++,_(e),R(e.$$)}}catch(e){throw D.length=0,H=0,e}for(_(null),D.length=0,H=0;k.length;)k.pop()();for(let e=0;e<N.length;e+=1){const t=N[e];U.has(t)||(U.add(t),t())}N.length=0}while(D.length);for(;B.length;)B.pop()();M=!1,U.clear(),_(e)}function R(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const z=new Set;const G="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function F(e,t){const i=e.$$;null!==i.fragment&&(!function(e){const t=[],i=[];N.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),N=t}(i.after_update),n(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function V(e,t){-1===e.$$.dirty[0]&&(D.push(e),M||(M=!0,O.then(j)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function W(o,s,a,l,u,m,p,d=[-1]){const h=P;_(o);const f=o.$$={fragment:null,ctx:[],props:m,update:e,not_equal:u,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:i(),dirty:d,skip_bound:!1,root:s.target||h.$$.root};p&&p(f.root);let g=!1;if(f.ctx=a?a(o,s.props||{},((e,t,...i)=>{const n=i.length?i[0]:t;return f.ctx&&u(f.ctx[e],f.ctx[e]=n)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](n),g&&V(o,e)),t})):[],f.update(),g=!0,n(f.before_update),f.fragment=!!l&&l(f.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);f.fragment&&f.fragment.l(e),e.forEach(c)}else f.fragment&&f.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(z.delete(y),y.i(b))),function(e,i,o,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(i,o),s||C((()=>{const i=e.$$.on_mount.map(t).filter(r);e.$$.on_destroy?e.$$.on_destroy.push(...i):n(i),e.$$.on_mount=[]})),l.forEach(C)}(o,s.target,s.anchor,s.customElement),j()}var y,b;_(h)}let X;"function"==typeof HTMLElement&&(X=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){F(this,1),this.$destroy=e}$on(t,i){if(!r(i))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const q={deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",periods:["Daily","Weekly","Monthly"]},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",periods:["Daily","Weekly","Monthly"]},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",periods:["Monthly"]},stake:{title:"Stake Limit",value:"stake",callValue:"stakeLimit",periods:["Monthly"]}},Y=[];function K(t,i=e){let n;const r=new Set;function s(e){if(o(t,e)&&(t=e,n)){const e=!Y.length;for(const e of r)e[1](),Y.push(e,t);if(e){for(let e=0;e<Y.length;e+=2)Y[e][0](Y[e+1]);Y.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return r.add(l),1===r.size&&(n=i(s)||e),o(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function Z(t,i,o){const a=!Array.isArray(t),l=a?[t]:t,u=i.length<2;return c=t=>{let o=!1;const c=[];let m=0,p=e;const d=()=>{if(m)return;p();const n=i(a?c[0]:c,t);u?t(n):p=r(n)?n:e},h=l.map(((e,t)=>s(e,(e=>{c[t]=e,m&=~(1<<t),o&&d()}),(()=>{m|=1<<t}))));return o=!0,d(),function(){n(h),p(),o=!1}},{subscribe:K(o,c).subscribe};var c}var J=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Q}(e)}(e)};var Q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(e,t){return!1!==t.clone&&t.isMergeableObject(e)?oe((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function te(e,t,i){return e.concat(t).map((function(e){return ee(e,i)}))}function ie(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function ne(e,t){try{return t in e}catch(e){return!1}}function re(e,t,i){var n={};return i.isMergeableObject(e)&&ie(e).forEach((function(t){n[t]=ee(e[t],i)})),ie(t).forEach((function(r){(function(e,t){return ne(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(ne(e,r)&&i.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return oe;var i=t.customMerge(e);return"function"==typeof i?i:oe}(r,i)(e[r],t[r],i):n[r]=ee(t[r],i))})),n}function oe(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||te,i.isMergeableObject=i.isMergeableObject||J,i.cloneUnlessOtherwiseSpecified=ee;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):re(e,t,i):ee(t,i)}oe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return oe(e,i,t)}),{})};var se=oe,ae=function(e,t){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ae(e,t)};function le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ae(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var ue,ce,me,pe=function(){return pe=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pe.apply(this,arguments)};function de(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function he(e){return e.type===ce.literal}function fe(e){return e.type===ce.argument}function ge(e){return e.type===ce.number}function ye(e){return e.type===ce.date}function be(e){return e.type===ce.time}function ve(e){return e.type===ce.select}function Le(e){return e.type===ce.plural}function Te(e){return e.type===ce.pound}function we(e){return e.type===ce.tag}function Ee(e){return!(!e||"object"!=typeof e||e.type!==me.number)}function xe(e){return!(!e||"object"!=typeof e||e.type!==me.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ue||(ue={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ce||(ce={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(me||(me={}));var Se=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $e(e){var t={};return e.replace(Ae,(function(e){var i=e.length;switch(e[0]){case"G":t.era=4===i?"long":5===i?"narrow":"short";break;case"y":t.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===i?"short":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Pe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var _e=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ie=/^(@+)?(\+|#+)?[rs]?$/g,De=/(\*)(0+)|(#+)(0+)|(0+)/g,ke=/^(0+)$/;function Ne(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ie,(function(e,i,n){return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function Be(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Oe(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ke.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Me(e){var t=Be(e);return t||{}}function Ce(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=pe(pe(pe({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return pe(pe({},e),Me(t))}),{}));continue;case"engineering":t=pe(pe(pe({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return pe(pe({},e),Me(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(De,(function(e,i,n,r,o,s){if(i)t.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ke.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(_e.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(_e,(function(e,i,n,r,o,s){return"*"===n?t.minimumFractionDigits=i.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var o=r.options[0];"w"===o?t=pe(pe({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=pe(pe({},t),Ne(o)))}else if(Ie.test(r.stem))t=pe(pe({},t),Ne(r.stem));else{var s=Be(r.stem);s&&(t=pe(pe({},t),s));var a=Oe(r.stem);a&&(t=pe(pe({},t),a))}}return t}var Ue,He={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function je(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,n=e.language;return"root"!==n&&(i=e.maximize().region),(He[i||""]||He[n||""]||He["".concat(n,"-001")]||He["001"])[0]}var Re=new RegExp("^".concat(Se.source,"*")),ze=new RegExp("".concat(Se.source,"*$"));function Ge(e,t){return{start:e,end:t}}var Fe=!!String.prototype.startsWith,Ve=!!String.fromCodePoint,We=!!Object.fromEntries,Xe=!!String.prototype.codePointAt,qe=!!String.prototype.trimStart,Ye=!!String.prototype.trimEnd,Ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ze=!0;try{Ze="a"===(null===(Ue=ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ue?void 0:Ue[0])}catch(e){Ze=!1}var Je,Qe=Fe?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},et=Ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;r>o;){if((i=e[o++])>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},tt=We?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],s=r[1];t[o]=s}return t},it=Xe?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var n,r=e.charCodeAt(t);return r<55296||r>56319||t+1===i||(n=e.charCodeAt(t+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536}},nt=qe?function(e){return e.trimStart()}:function(e){return e.replace(Re,"")},rt=Ye?function(e){return e.trimEnd()}:function(e){return e.replace(ze,"")};function ot(e,t){return new RegExp(e,t)}if(Ze){var st=ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Je=function(e,t){var i;return st.lastIndex=t,null!==(i=st.exec(e)[1])&&void 0!==i?i:""}}else Je=function(e,t){for(var i=[];;){var n=it(e,t);if(void 0===n||ct(n)||mt(n))break;i.push(n),t+=n>=65536?2:1}return et.apply(void 0,i)};var at=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r=this.char();if(123===r){if((o=this.parseArgument(e,i)).err)return o;n.push(o.val)}else{if(125===r&&e>0)break;if(35!==r||"plural"!==t&&"selectordinal"!==t){if(60===r&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(ue.UNMATCHED_CLOSING_TAG,Ge(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&<(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ce.pound,location:Ge(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(n,"/>"),location:Ge(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var o=r.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lt(this.char()))return this.error(ue.INVALID_TAG,Ge(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(ue.UNMATCHED_CLOSING_TAG,Ge(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ce.tag,value:n,children:o,location:Ge(i,this.clonePosition())},err:null}:this.error(ue.INVALID_TAG,Ge(s,this.clonePosition())))}return this.error(ue.UNCLOSED_TAG,Ge(i,this.clonePosition()))}return this.error(ue.INVALID_TAG,Ge(i,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ut(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ge(i,this.clonePosition());return{val:{type:ce.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(lt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return et.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&e>0?null:(this.bump(),et(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ue.EMPTY_ARGUMENT,Ge(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ue.MALFORMED_ARGUMENT,Ge(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:n,location:Ge(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(ue.MALFORMED_ARGUMENT,Ge(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Je(this.message,t),n=t+i.length;return this.bumpTo(n),{value:i,location:Ge(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,n){var r,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ue.EXPECT_ARGUMENT_TYPE,Ge(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(d=rt(y.val)).length)return this.error(ue.EXPECT_ARGUMENT_STYLE,Ge(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Ge(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Ge(n,this.clonePosition());if(l&&Qe(null==l?void 0:l.style,"::",0)){var m=nt(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?y:{val:{type:ce.number,value:i,location:c,style:y.val},err:null};if(0===m.length)return this.error(ue.EXPECT_DATE_TIME_SKELETON,c);var p=m;this.locale&&(p=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=je(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(m,this.locale));var d={type:me.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$e(p):{}};return{val:{type:"date"===s?ce.date:ce.time,value:i,location:c,style:d},err:null}}return{val:{type:"number"===s?ce.number:"date"===s?ce.date:ce.time,value:i,location:c,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ue.EXPECT_SELECT_ARGUMENT_OPTIONS,Ge(h,pe({},h)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ge(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ue.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(e,s,t,f);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var L=Ge(n,this.clonePosition());return"select"===s?{val:{type:ce.select,value:i,options:tt(v.val),location:L},err:null}:{val:{type:ce.plural,value:i,options:tt(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:L},err:null};default:return this.error(ue.INVALID_ARGUMENT_TYPE,Ge(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ue.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ge(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Pe).filter((function(e){return e.length>0})),i=[],n=0,r=t;n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,u=a;l<u.length;l++)if(0===u[l].length)throw new Error("Invalid number skeleton");i.push({stem:s,options:a})}return i}(e)}catch(e){return this.error(ue.INVALID_NUMBER_SKELETON,t)}return{val:{type:me.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Ce(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r,o=!1,s=[],a=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var m=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,ue.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;u=Ge(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(a.has(l))return this.error("select"===t?ue.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ue.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ue.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ge(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,i);if(d.err)return d;var h=this.tryParseArgumentClose(p);if(h.err)return h;s.push([l,{value:d.val,location:Ge(p,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?ue.EXPECT_SELECT_ARGUMENT_SELECTOR:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ge(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ue.MISSING_OTHER_CLAUSE,Ge(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;r=!0,o=10*o+(s-48),this.bump()}var a=Ge(n,this.clonePosition());return r?Ke(o*=i)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=it(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Qe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ct(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();function lt(e){return e>=97&&e<=122||e>=65&&e<=90}function ut(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ct(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function mt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function pt(e){e.forEach((function(e){if(delete e.location,ve(e)||Le(e))for(var t in e.options)delete e.options[t].location,pt(e.options[t].value);else ge(e)&&Ee(e.style)||(ye(e)||be(e))&&xe(e.style)?delete e.style.location:we(e)&&pt(e.children)}))}function dt(e,t){void 0===t&&(t={}),t=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new at(e,t).parse();if(i.err){var n=SyntaxError(ue[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return(null==t?void 0:t.captureLocation)||pt(i.val),i.val}function ht(e,t){var i=t&&t.cache?t.cache:wt,n=t&&t.serializer?t.serializer:vt;return(t&&t.strategy?t.strategy:bt)(e,{cache:i,serializer:n})}function ft(e,t,i,n){var r,o=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:i(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function gt(e,t,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),o=t.get(r);return void 0===o&&(o=e.apply(this,n),t.set(r,o)),o}function yt(e,t,i,n,r){return i.bind(t,e,n,r)}function bt(e,t){return yt(e,this,1===e.length?ft:gt,t.cache.create(),t.serializer)}var vt=function(){return JSON.stringify(arguments)};function Lt(){this.cache=Object.create(null)}Lt.prototype.get=function(e){return this.cache[e]},Lt.prototype.set=function(e,t){this.cache[e]=t};var Tt,wt={create:function(){return new Lt}},Et={variadic:function(e,t){return yt(e,this,gt,t.cache.create(),t.serializer)},monadic:function(e,t){return yt(e,this,ft,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Tt||(Tt={}));var xt,St=function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.code=i,r.originalMessage=n,r}return le(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),At=function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Tt.INVALID_VALUE,r)||this}return le(t,e),t}(St),$t=function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Tt.INVALID_VALUE,n)||this}return le(t,e),t}(St),Pt=function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Tt.MISSING_VALUE,i)||this}return le(t,e),t}(St);function _t(e){return"function"==typeof e}function It(e,t,i,n,r,o,s){if(1===e.length&&he(e[0]))return[{type:xt.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(he(c))a.push({type:xt.literal,value:c.value});else if(Te(c))"number"==typeof o&&a.push({type:xt.literal,value:i.getNumberFormat(t).format(o)});else{var m=c.value;if(!r||!(m in r))throw new Pt(m,s);var p=r[m];if(fe(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?xt.literal:xt.object,value:p});else if(ye(c)){var d="string"==typeof c.style?n.date[c.style]:xe(c.style)?c.style.parsedOptions:void 0;a.push({type:xt.literal,value:i.getDateTimeFormat(t,d).format(p)})}else if(be(c)){d="string"==typeof c.style?n.time[c.style]:xe(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:xt.literal,value:i.getDateTimeFormat(t,d).format(p)})}else if(ge(c)){(d="string"==typeof c.style?n.number[c.style]:Ee(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(p*=d.scale||1),a.push({type:xt.literal,value:i.getNumberFormat(t,d).format(p)})}else{if(we(c)){var h=c.children,f=c.value,g=r[f];if(!_t(g))throw new $t(f,"function",s);var y=g(It(h,t,i,n,r,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?xt.literal:xt.object,value:e}})))}if(ve(c)){if(!(b=c.options[p]||c.options.other))throw new At(c.value,p,Object.keys(c.options),s);a.push.apply(a,It(b.value,t,i,n,r))}else if(Le(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new St('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tt.MISSING_INTL_API,s);var v=i.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new At(c.value,p,Object.keys(c.options),s);a.push.apply(a,It(b.value,t,i,n,r,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===xt.literal&&t.type===xt.literal?i.value+=t.value:e.push(t),e}),[])}(a)}function Dt(e,t){return t?Object.keys(e).reduce((function(i,n){var r,o;return i[n]=(r=e[n],(o=t[n])?pe(pe(pe({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=pe(pe({},r[t]),o[t]||{}),e}),{})):r),i}),pe({},e)):e}function kt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(xt||(xt={}));var Nt=function(){function e(t,i,n,r){var o,s=this;if(void 0===i&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===xt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return It(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Dt(e.formats,n),this.formatters=r&&r.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ht((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,de([void 0],t,!1)))}),{cache:kt(o.number),strategy:Et.variadic}),getDateTimeFormat:ht((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,de([void 0],t,!1)))}),{cache:kt(o.dateTime),strategy:Et.variadic}),getPluralRules:ht((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,de([void 0],t,!1)))}),{cache:kt(o.pluralRules),strategy:Et.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=dt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Bt=Nt;const Ot={},Mt=(e,t,i)=>i?(t in Ot||(Ot[t]={}),e in Ot[t]||(Ot[t][e]=i),i):i,Ct=(e,t)=>{if(null==t)return;if(t in Ot&&e in Ot[t])return Ot[t][e];const i=ei(t);for(let n=0;n<i.length;n++){const r=Rt(i[n],e);if(r)return Mt(e,t,r)}};let Ut;const Ht=K({});function jt(e){return e in Ut}function Rt(e,t){if(!jt(e))return null;const i=function(e){return Ut[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const i=t.split(".");let n=e;for(let e=0;e<i.length;e++)if("object"==typeof n){if(e>0){const t=i.slice(e,i.length).join(".");if(t in n){n=n[t];break}}n=n[i[e]]}else n=void 0;return n}(i,t)}function zt(e,...t){delete Ot[e],Ht.update((i=>(i[e]=se.all([i[e]||{},...t]),i)))}Z([Ht],(([e])=>Object.keys(e))),Ht.subscribe((e=>Ut=e));const Gt={};function Ft(e){return Gt[e]}function Vt(e){return null!=e&&ei(e).some((e=>{var t;return null===(t=Ft(e))||void 0===t?void 0:t.size}))}const Wt={};function Xt(e){if(!Vt(e))return e in Wt?Wt[e]:Promise.resolve();const t=function(e){return ei(e).map((e=>{const t=Ft(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Wt[e]=Promise.all(t.map((([e,t])=>function(e,t){const i=Promise.all(t.map((t=>(function(e,t){Gt[e].delete(t),0===Gt[e].size&&delete Gt[e]}(e,t),t().then((e=>e.default||e))))));return i.then((t=>zt(e,...t)))}(e,t)))).then((()=>{if(Vt(e))return Xt(e);delete Wt[e]})),Wt[e]}const qt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Yt(){return qt}const Kt=K(!1);let Zt;const Jt=K(null);function Qt(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function ei(e,t=Yt().fallbackLocale){const i=Qt(e);return t?[...new Set([...i,...Qt(t)])]:i}function ti(){return null!=Zt?Zt:void 0}Jt.subscribe((e=>{Zt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ii={...Jt,set:e=>{if(e&&function(e){if(null==e)return;const t=ei(e);for(let e=0;e<t.length;e++){const i=t[e];if(jt(i))return i}}(e)&&Vt(e)){const{loadingDelay:t}=Yt();let i;return"undefined"!=typeof window&&null!=ti()&&t?i=window.setTimeout((()=>Kt.set(!0)),t):Kt.set(!0),Xt(e).then((()=>{Jt.set(e)})).finally((()=>{clearTimeout(i),Kt.set(!1)}))}return Jt.set(e)}},ni=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}},ri=(e,t)=>{const{formats:i}=Yt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},oi=ni((({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(i=ri("number",t)),new Intl.NumberFormat(e,i)})),si=ni((({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?i=ri("date",t):0===Object.keys(i).length&&(i=ri("date","short")),new Intl.DateTimeFormat(e,i)})),ai=ni((({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?i=ri("time",t):0===Object.keys(i).length&&(i=ri("time","short")),new Intl.DateTimeFormat(e,i)})),li=ni(((e,t=ti())=>new Bt(e,t,Yt().formats,{ignoreTag:Yt().ignoreTag}))),ui=(e,t={})=>{var i,n,r,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=ti(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ct(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(r=null===(n=(i=Yt()).handleMissingMessage)||void 0===n?void 0:n.call(i,{locale:l,id:e,defaultValue:u}))&&void 0!==r?r:u)&&void 0!==o?o:e;if(!a)return c;let m=c;try{m=li(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return m},ci=(e,t)=>(({locale:e=ti(),...t}={})=>ai({locale:e,...t}))(t).format(e),mi=(e,t)=>(({locale:e=ti(),...t}={})=>si({locale:e,...t}))(t).format(e),pi=(e,t)=>(({locale:e=ti(),...t}={})=>oi({locale:e,...t}))(t).format(e),di=(e,t=ti())=>Ct(e,t),hi=Z([ii,Ht],(()=>ui));function fi(e,t){zt(e,t)}Z([ii],(()=>ci)),Z([ii],(()=>mi)),Z([ii],(()=>pi)),Z([ii,Ht],(()=>di));const gi={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:" ",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:" minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"There was a problem while setting the limit, please try again.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},de:{gamingLimits:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:" ",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:" minute",new:"Neu",limit:"Limit",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},hr:{gamingLimits:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:" minutes",new:"Novo",limit:"Ograničenje",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},sl:{gamingLimits:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:" minutes",new:"Novo",limit:"Limit",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},pl:{gamingLimits:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:" ",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:" minutes",new:"Nowe",limit:"Limit",setLimit:"USTAW LIMIT",loss:"Limit Strat",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno",noPeriod:"Sin periodo",per:"por",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"ESTABELECE UN LÍMITE",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",sessionLimit:"Límites de tiempo en sesión única",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod} ",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Hubo un problema mientras se establecía el límite",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en ",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"SUBIR DOCUMENTOS / ADJUNTAR DOCUMENTOS",closeButton:"CERRAR"}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}}};var yi="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==yi&&yi,bi={searchParams:"URLSearchParams"in yi,iterable:"Symbol"in yi&&"iterator"in Symbol,blob:"FileReader"in yi&&"Blob"in yi&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in yi,arrayBuffer:"ArrayBuffer"in yi};if(bi.arrayBuffer)var vi=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Li=ArrayBuffer.isView||function(e){return e&&vi.indexOf(Object.prototype.toString.call(e))>-1};function Ti(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function wi(e){return"string"!=typeof e&&(e=String(e)),e}function Ei(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return bi.iterable&&(t[Symbol.iterator]=function(){return t}),t}function xi(e){this.map={},e instanceof xi?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Si(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ai(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function $i(e){var t=new FileReader,i=Ai(t);return t.readAsArrayBuffer(e),i}function Pi(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _i(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:bi.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:bi.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:bi.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():bi.arrayBuffer&&bi.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Pi(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):bi.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Li(e))?this._bodyArrayBuffer=Pi(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):bi.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},bi.blob&&(this.blob=function(){var e=Si(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Si(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then($i)}),this.text=function(){var e,t,i,n=Si(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=Ai(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},bi.formData&&(this.formData=function(){return this.text().then(ki)}),this.json=function(){return this.text().then(JSON.parse)},this}xi.prototype.append=function(e,t){e=Ti(e),t=wi(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},xi.prototype.delete=function(e){delete this.map[Ti(e)]},xi.prototype.get=function(e){return e=Ti(e),this.has(e)?this.map[e]:null},xi.prototype.has=function(e){return this.map.hasOwnProperty(Ti(e))},xi.prototype.set=function(e,t){this.map[Ti(e)]=wi(t)},xi.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},xi.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),Ei(e)},xi.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ei(e)},xi.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),Ei(e)},bi.iterable&&(xi.prototype[Symbol.iterator]=xi.prototype.entries);var Ii=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Di(e,t){if(!(this instanceof Di))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,r=(t=t||{}).body;if(e instanceof Di){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new xi(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new xi(t.headers)),this.method=(i=t.method||this.method||"GET",n=i.toUpperCase(),Ii.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ki(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}})),t}function Ni(e,t){if(!(this instanceof Ni))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new xi(t.headers),this.url=t.url||"",this._initBody(e)}Di.prototype.clone=function(){return new Di(this,{body:this._bodyInit})},_i.call(Di.prototype),_i.call(Ni.prototype),Ni.prototype.clone=function(){return new Ni(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new xi(this.headers),url:this.url})},Ni.error=function(){var e=new Ni(null,{status:0,statusText:""});return e.type="error",e};var Bi=[301,302,303,307,308];Ni.redirect=function(e,t){if(-1===Bi.indexOf(t))throw new RangeError("Invalid status code");return new Ni(null,{status:t,headers:{location:e}})};var Oi=yi.DOMException;try{new Oi}catch(e){(Oi=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),Oi.prototype.constructor=Oi}function Mi(e,t){return new Promise((function(i,n){var r=new Di(e,t);if(r.signal&&r.signal.aborted)return n(new Oi("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new xi,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();t.append(n,r)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout((function(){i(new Ni(r,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Oi("Aborted","AbortError"))}),0)},o.open(r.method,function(e){try{return""===e&&yi.location.href?yi.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&(bi.blob?o.responseType="blob":bi.arrayBuffer&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof xi?r.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,wi(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&r.signal.removeEventListener("abort",s)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}Mi.polyfill=!0,yi.fetch||(yi.fetch=Mi,yi.Headers=xi,yi.Request=Di,yi.Response=Ni),self.fetch.bind(self);var Ci=function(e,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},Ci(e,t)};function Ui(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ci(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function Hi(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ji(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function Ri(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function zi(e){return"function"==typeof e}function Gi(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Fi=Gi((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Vi(e,t){if(e){var i=e.indexOf(t);0<=i&&e.splice(i,1)}}var Wi=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Hi(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(zi(l))try{l()}catch(e){r=e instanceof Fi?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=Hi(u),m=c.next();!m.done;m=c.next()){var p=m.value;try{Yi(p)}catch(e){r=null!=r?r:[],e instanceof Fi?r=Ri(Ri([],ji(r)),ji(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}}if(r)throw new Fi(r)}},e.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)Yi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Vi(t,e)},e.prototype.remove=function(t){var i=this._finalizers;i&&Vi(i,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Xi=Wi.EMPTY;function qi(e){return e instanceof Wi||e&&"closed"in e&&zi(e.remove)&&zi(e.add)&&zi(e.unsubscribe)}function Yi(e){zi(e)?e():e.unsubscribe()}var Ki={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zi={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=Zi.delegate;return(null==r?void 0:r.setTimeout)?r.setTimeout.apply(r,Ri([e,t],ji(i))):setTimeout.apply(void 0,Ri([e,t],ji(i)))},clearTimeout:function(e){var t=Zi.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ji(){}var Qi=null;function en(e){if(Ki.useDeprecatedSynchronousErrorHandling){var t=!Qi;if(t&&(Qi={errorThrown:!1,error:null}),e(),t){var i=Qi,n=i.errorThrown,r=i.error;if(Qi=null,n)throw r}}else e()}var tn=function(e){function t(t){var i=e.call(this)||this;return i.isStopped=!1,t?(i.destination=t,qi(t)&&t.add(i)):i.destination=ln,i}return Ui(t,e),t.create=function(e,t,i){return new sn(e,t,i)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Wi),nn=Function.prototype.bind;function rn(e,t){return nn.call(e,t)}var on=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){an(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){an(e)}else an(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){an(e)}},e}(),sn=function(e){function t(t,i,n){var r,o,s=e.call(this)||this;zi(t)||!t?r={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=n?n:void 0}:s&&Ki.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},r={next:t.next&&rn(t.next,o),error:t.error&&rn(t.error,o),complete:t.complete&&rn(t.complete,o)}):r=t;return s.destination=new on(r),s}return Ui(t,e),t}(tn);function an(e){var t;t=e,Zi.setTimeout((function(){throw t}))}var ln={closed:!0,next:Ji,error:function(e){throw e},complete:Ji},un="function"==typeof Symbol&&Symbol.observable||"@@observable";function cn(e){return e}var mn=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var i=new e;return i.source=this,i.operator=t,i},e.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof tn||function(e){return e&&zi(e.next)&&zi(e.error)&&zi(e.complete)}(n)&&qi(n)?e:new sn(e,t,i);return en((function(){var e=r,t=e.operator,i=e.source;o.add(t?t.call(o,i):i?r._subscribe(o):r._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var i=this;return new(t=pn(t))((function(t,n){var r=new sn({next:function(t){try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:t});i.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[un]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return(0===(e=t).length?cn:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=pn(e))((function(e,i){var n;t.subscribe((function(e){return n=e}),(function(e){return i(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function pn(e){var t;return null!==(t=null!=e?e:Ki.Promise)&&void 0!==t?t:Promise}var dn=Gi((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),hn=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Ui(t,e),t.prototype.lift=function(e){var t=new fn(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new dn},t.prototype.next=function(e){var t=this;en((function(){var i,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=Hi(t.currentObservers),o=r.next();!o.done;o=r.next()){o.value.next(e)}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}}))},t.prototype.error=function(e){var t=this;en((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var i=t.observers;i.length;)i.shift().error(e)}}))},t.prototype.complete=function(){var e=this;en((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,i=this,n=i.hasError,r=i.isStopped,o=i.observers;return n||r?Xi:(this.currentObservers=null,o.push(e),new Wi((function(){t.currentObservers=null,Vi(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,i=t.hasError,n=t.thrownError,r=t.isStopped;i?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new mn;return e.source=this,e},t.create=function(e,t){return new fn(e,t)},t}(mn),fn=function(e){function t(t,i){var n=e.call(this)||this;return n.destination=t,n.source=i,n}return Ui(t,e),t.prototype.next=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)},t.prototype.error=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:Xi},t}(hn),gn={now:function(){return(gn.delegate||Date).now()},delegate:void 0},yn=function(e){function t(t,i,n){void 0===t&&(t=1/0),void 0===i&&(i=1/0),void 0===n&&(n=gn);var r=e.call(this)||this;return r._bufferSize=t,r._windowTime=i,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=i===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,i),r}return Ui(t,e),t.prototype.next=function(t){var i=this,n=i.isStopped,r=i._buffer,o=i._infiniteTimeWindow,s=i._timestampProvider,a=i._windowTime;n||(r.push(t),!o&&r.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,i=e._timestampProvider,n=e._buffer,r=e._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var s=i.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(hn);let bn=[],vn={};window.emWidgets={topic:(e,t=0)=>{if(-1==bn.indexOf(e)){let i=new yn(t);vn[e]=i,bn.push(e)}return vn[e]}};const Ln=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),{document:Tn}=G;function wn(e,t,i){const n=e.slice();return n[51]=t[i],n}function En(e,t,i){const n=e.slice();return n[54]=t[i],n}function xn(e,t,i){const n=e.slice();return n[54]=t[i],n}function Sn(e,t,i){const n=e.slice();return n[59]=t[i],n}function An(e){let t,i;function n(e,t){return e[11]?$n:Pn}let r=n(e),o=r(e);return{c(){t=p("div"),i=p("div"),o.c(),b(i,"class","PopupContainer "+(e[14]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){u(e,t,n),l(t,i),o.m(i,null)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},d(e){e&&c(t),o.d()}}}function $n(e){let t,i,r,o,s,a,m,d,g,v,L,w,E,x,S,A=e[13]("gamingLimits.popupTitle")+"",$=!e[9]&&_n(e);return{c(){t=p("div"),i=p("span"),r=h(A),o=f(),s=p("button"),s.textContent="X",a=f(),m=p("div"),d=p("div"),$&&$.c(),g=f(),v=p("p"),L=h(e[12]),w=f(),E=p("button"),E.textContent="OK",b(i,"class","PopupTitle"),b(s,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(d,"class","ResultIconWrapper"),b(v,"class","DescriptionParagraph"),b(m,"class","DescriptionWrapper"),b(E,"class","ConfirmButton")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s),u(n,a,c),u(n,m,c),l(m,d),$&&$.m(d,null),l(m,g),l(m,v),l(v,L),u(n,w,c),u(n,E,c),x||(S=[y(s,"click",e[20]),y(E,"click",e[20])],x=!0)},p(e,t){8192&t[0]&&A!==(A=e[13]("gamingLimits.popupTitle")+"")&&T(r,A),e[9]?$&&($.d(1),$=null):$?$.p(e,t):($=_n(e),$.c(),$.m(d,null)),4096&t[0]&&T(L,e[12])},d(e){e&&c(t),e&&c(a),e&&c(m),$&&$.d(),e&&c(w),e&&c(E),x=!1,n(S)}}}function Pn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function _n(e){let t,i,n,r,o,s,a,m,g,y=e[13]("gamingLimits.popupSuccess")+"";return{c(){t=d("svg"),i=d("defs"),n=d("style"),r=h(".fil0 {fill:black;fill-rule:nonzero}\n "),o=d("g"),s=d("polygon"),a=f(),m=p("p"),g=h(y),b(n,"type","text/css"),b(s,"class","fil0"),b(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"xml:space","preserve"),b(t,"version","1.1"),E(t,"shape-rendering","geometricPrecision"),E(t,"text-rendering","geometricPrecision"),E(t,"image-rendering","optimizeQuality"),b(t,"viewBox","0 0 90 69"),b(t,"x","0px"),b(t,"y","0px"),b(t,"fill-rule","evenodd"),b(t,"clip-rule","evenodd")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(t,o),l(o,s),u(e,a,c),u(e,m,c),l(m,g)},p(e,t){8192&t[0]&&y!==(y=e[13]("gamingLimits.popupSuccess")+"")&&T(g,y)},d(e){e&&c(t),e&&c(a),e&&c(m)}}}function In(e){let t,i,r,o,s,a,d,g,v,E,x,S,A,$,P,_,I,D=e[6]?`${e[13]("gamingLimits.amount")}`:`${e[13]("gamingLimits.new")} ${e[13](`gamingLimits.${e[2]}`)} ${e[13]("gamingLimits.limit")}`,k=e[13]("gamingLimits.setLimit")+"",N=e[15],B=[];for(let t=0;t<N.length;t+=1)B[t]=Hn(xn(e,N,t));let O=e[5]&&jn(e),M=e[6]&&zn(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<B.length;e+=1)B[e].c();o=f(),s=p("form"),O&&O.c(),a=f(),M&&M.c(),d=f(),g=p("label"),v=p("span"),E=h(D),x=f(),S=p("input"),A=f(),$=p("button"),P=h(k),b(r,"class","LimitsList "+(e[14]?"Desktop":"")),b(v,"class","LimitInputText"),b(g,"class","LimitAmountInputWrapper"),b(S,"type","number"),b(S,"pattern","[0-9]*"),b($,"class","LimitSubmitButton"),b($,"type","button"),$.disabled=!0,b(s,"class","LimitsInteractionArea "+(e[14]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gmcore")},m(n,c){u(n,t,c),l(t,i),l(i,r);for(let e=0;e<B.length;e+=1)B[e]&&B[e].m(r,null);l(i,o),l(i,s),O&&O.m(s,null),l(s,a),M&&M.m(s,null),l(s,d),l(s,g),l(g,v),l(v,E),l(s,x),l(s,S),w(S,e[3]),l(s,A),l(s,$),l($,P),e[34]($),_||(I=[y(S,"input",e[33]),y(S,"keyup",e[18]),y($,"click",e[17]),y(s,"submit",e[17])],_=!0)},p(e,t){if(581632&t[0]){let i;for(N=e[15],i=0;i<N.length;i+=1){const n=xn(e,N,i);B[i]?B[i].p(n,t):(B[i]=Hn(n),B[i].c(),B[i].m(r,null))}for(;i<B.length;i+=1)B[i].d(1);B.length=N.length}e[5]?O?O.p(e,t):(O=jn(e),O.c(),O.m(s,a)):O&&(O.d(1),O=null),e[6]?M?M.p(e,t):(M=zn(e),M.c(),M.m(s,d)):M&&(M.d(1),M=null),8260&t[0]&&D!==(D=e[6]?`${e[13]("gamingLimits.amount")}`:`${e[13]("gamingLimits.new")} ${e[13](`gamingLimits.${e[2]}`)} ${e[13]("gamingLimits.limit")}`)&&T(E,D),8&t[0]&&L(S.value)!==e[3]&&w(S,e[3]),8192&t[0]&&k!==(k=e[13]("gamingLimits.setLimit")+"")&&T(P,k)},d(i){i&&c(t),m(B,i),O&&O.d(),M&&M.d(),e[34](null),_=!1,n(I)}}}function Dn(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function kn(t){return{c:e,m:e,p:e,d:e}}function Nn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function Bn(e){let t,i,n,r,o=e[13]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){8192&t[0]&&o!==(o=e[13]("gamingLimits.noLimitText")+"")&&T(r,o)},d(e){e&&c(t)}}}function On(e){let t,i=e[54].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=Un(Sn(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t]&&n[t].m(e,i);u(e,t,i)},p(e,r){if(565248&r[0]){let o;for(i=e[54].currentLimits,o=0;o<i.length;o+=1){const s=Sn(e,i,o);n[o]?n[o].p(s,r):(n[o]=Un(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){m(n,e),e&&c(t)}}}function Mn(e){let t,i,n=`${e[13]("gamingLimits.removedLimitText")} ${e[59].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){8192&t[0]&&n!==(n=`${e[13]("gamingLimits.removedLimitText")} ${e[59].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Cn(e){let t,i,n=`${e[59].updateAmount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)} ${e[13]("gamingLimits.updateText")} ${e[59].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){8192&t[0]&&n!==(n=`${e[59].updateAmount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)} ${e[13]("gamingLimits.updateText")} ${e[59].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Un(e){let t,i,n,r,o,s,a,m=`${e[59].amount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)}`;let d=function(e,t){return e[59].isModified&&"-1"!=e[59].updateAmount?Cn:e[59].isModified?Mn:void 0}(e),g=d&&d(e),v=!e[59].isModified&&function(e){let t,i,n,r,o=e[13]("gamingLimits.removeLimit")+"";function s(){return e[30](e[59])}return{c(){t=p("button"),i=h(o),b(t,"class","RemoveLimitButton")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,8192&n[0]&&o!==(o=e[13]("gamingLimits.removeLimit")+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(m),o=f(),g&&g.c(),s=f(),v&&v.c(),a=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),g&&g.m(i,null),l(t,s),v&&v.m(t,null),l(t,a)},p(e,t){8192&t[0]&&m!==(m=`${e[59].amount}${e[59].currency} ${e[13](`gamingLimits.${e[59].period}`)}`)&&T(r,m),g&&g.p(e,t),e[59].isModified||v.p(e,t)},d(e){e&&c(t),g&&g.d(),v&&v.d()}}}function Hn(e){let t,i,n,r,o,s=e[13](`gamingLimits.${e[54].value}`)+"";let a=function(e,t){return e[54].currentLimits.length>0?On:Bn}(e),m=a(e);return{c(){t=p("div"),i=p("p"),n=h(s),r=f(),m.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class","LimitWrapper "+(e[14]?"Desktop":""))},m(e,s){u(e,t,s),l(t,i),l(i,n),l(t,r),m.m(t,null),l(t,o)},p(e,t){8192&t[0]&&s!==(s=e[13](`gamingLimits.${e[54].value}`)+"")&&T(n,s),m.p(e,t)},d(e){e&&c(t),m.d()}}}function jn(e){let t,i,r,o,s,a,d,g=e[13]("gamingLimits.limitType")+"",v=e[15],L=[];for(let t=0;t<v.length;t+=1)L[t]=Rn(En(e,v,t));return{c(){t=p("label"),i=p("span"),r=h(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),void 0===e[1]&&C((()=>e[31].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);x(s,e[1],!0),a||(d=[y(s,"change",e[31]),y(s,"change",e[16])],a=!0)},p(e,t){if(8192&t[0]&&g!==(g=e[13]("gamingLimits.limitType")+"")&&T(r,g),32768&t[0]){let i;for(v=e[15],i=0;i<v.length;i+=1){const n=En(e,v,i);L[i]?L[i].p(n,t):(L[i]=Rn(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}32770&t[0]&&x(s,e[1])},d(e){e&&c(t),m(L,e),a=!1,n(d)}}}function Rn(t){let i,n,r=t[54].title+"";return{c(){i=p("option"),n=h(r),i.__value=t[54].value,i.value=i.__value},m(e,t){u(e,i,t),l(i,n)},p:e,d(e){e&&c(i)}}}function zn(e){let t,i,n,r,o,s,a,d=e[13]("gamingLimits.period")+"",g=q[e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=Gn(wn(e,g,t));return{c(){t=p("label"),i=p("span"),n=h(d),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(t,"class","LimitPeriodDropdownWrapper"),b(o,"name",""),b(o,"id",""),void 0===e[2]&&C((()=>e[32].call(o)))},m(c,m){u(c,t,m),l(t,i),l(i,n),u(c,r,m),u(c,o,m);for(let e=0;e<v.length;e+=1)v[e]&&v[e].m(o,null);x(o,e[2],!0),s||(a=y(o,"change",e[32]),s=!0)},p(e,t){if(8192&t[0]&&d!==(d=e[13]("gamingLimits.period")+"")&&T(n,d),8194&t[0]){let i;for(g=q[e[1]].periods,i=0;i<g.length;i+=1){const n=wn(e,g,i);v[i]?v[i].p(n,t):(v[i]=Gn(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}6&t[0]&&x(o,e[2])},d(e){e&&c(t),e&&c(r),e&&c(o),m(v,e),s=!1,a()}}}function Gn(e){let t,i,n,r=e[13](`gamingLimits.${e[51]}`)+"";return{c(){t=p("option"),i=h(r),t.__value=n=e[51],t.value=t.__value,t.selected=!0},m(e,n){u(e,t,n),l(t,i)},p(e,o){8194&o[0]&&r!==(r=e[13](`gamingLimits.${e[51]}`)+"")&&T(i,r),32770&o[0]&&n!==(n=e[51])&&(t.__value=n,t.value=t.__value)},d(e){e&&c(t)}}}function Fn(t){let i,n,r,o,s=t[10]&&An(t);function a(e,t){return e[7]&&!e[10]?Nn:e[7]?kn:e[8]?Dn:In}let m=a(t),d=m(t);return{c(){i=p("meta"),n=f(),r=p("div"),s&&s.c(),o=f(),d.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,a){l(Tn.head,i),u(e,n,a),u(e,r,a),s&&s.m(r,null),l(r,o),d.m(r,null),t[35](r)},p(e,t){e[10]?s?s.p(e,t):(s=An(e),s.c(),s.m(r,o)):s&&(s.d(1),s=null),m===(m=a(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),s&&s.d(),d.d(),t[35](null)}}}function Vn(e,t,i){let n;a(e,hi,(e=>i(13,n=e)));let r,o,s,l,{lang:u="en"}=t,{currency:c=""}=t,{limits:m=""}=t,{session:p=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{clientstyling:f=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,b=window.navigator.userAgent,v=!Ln(b),T=[],w="",E="",x=!1,A=!1,$=!0,P=!1,_=!1,I=!1,D=!1,N="";const B={EUR:"€",RON:" lei"},O={updatePendingError:["SYS_1037","SYS_1142","SYS_1140"]};Object.keys(gi).forEach((e=>{fi(e,gi[e])}));const M=e=>{const t=e.error.match(/errorCode:(.*)\)/)[1];let i;console.error(`API response error: ${t}`);for(const[e,r]of Object.entries(O))r.includes(t)&&(i=n(`gamingLimits.${e}`));i=null!=i?i:n("gamingLimits.genericError"),j(t,i)},C=()=>{let e=new URL(`v2/player/${d}/limits`,h),t=!_,n={method:"GET",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then((e=>{if(e.status>=300)throw i(7,$=!1),i(8,P=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{l=e,I&&t&&j(),U(l),i(7,$=!1),i(3,o=null)})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},U=e=>{T.forEach((t=>{var i;t.currentLimits=[],null===(i=e[q[t.value].callValue])||void 0===i||i.forEach(((i,n)=>{var r;const o=e[q[t.value].callValue][n];t.currentLimits.push({}),t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=B[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=H(t.currentLimits)}))},H=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},j=(e,t)=>{if(e)i(12,N=t);else if(l){const e=l[q[w].callValue].filter((e=>e.period===E))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${w}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",B[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${E}`).toLowerCase());i(12,N=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}else console.error("Couldn't populate popupContent");i(11,D=!0)},R=e=>{i(10,I=!0),i(7,$=!0);let t=new URL(`v2/player/${d}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[e.limitType]}?periods=${e.period}`,h),n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>{C()})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},z=()=>{var e;e=u,ii.set(e)};return e.$$set=e=>{"lang"in e&&i(21,u=e.lang),"currency"in e&&i(22,c=e.currency),"limits"in e&&i(23,m=e.limits),"session"in e&&i(24,p=e.session),"userid"in e&&i(25,d=e.userid),"endpoint"in e&&i(26,h=e.endpoint),"clientstyling"in e&&i(27,f=e.clientstyling),"clientstylingurl"in e&&i(28,g=e.clientstylingurl),"translationurl"in e&&i(29,y=e.translationurl)},e.$$.update=()=>{8388608&e.$$.dirty[0]&&m&&(m.split(" ").forEach((e=>{q[e]?T.push(q[e]):console.error(`Unknown limit: ${e}`)})),i(1,w=T[0].value),i(2,E=q[w].periods[0]),i(5,x=T.length>1),i(6,A=q[w].periods.length>1)),2097152&e.$$.dirty[0]&&u&&z(),117440512&e.$$.dirty[0]&&d&&p&&h&&C(),268435457&e.$$.dirty[0]&&g&&r&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),134217729&e.$$.dirty[0]&&f&&r&&(()=>{let e=document.createElement("style");e.innerHTML=f,r.appendChild(e)})(),536870912&e.$$.dirty[0]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{fi(t,e[t])}))})).catch((e=>{console.log(e)}))},[r,w,E,o,s,x,A,$,P,_,I,D,N,n,v,T,()=>{i(2,E=q[w].periods[0]),i(6,A=q[w].periods.length>1)},()=>{if(!(o>0))return;i(10,I=!0),i(7,$=!0);let e=new URL(`v2/player/${d}/limits`,h);const t={};t[q[w].callValue]=[{period:E,amount:o,currency:c}];let n={method:"PUT",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>(e.status>=300&&i(9,_=!0),e.json()))).then((e=>{C(),_&&M(e)})).catch((e=>{console.log(e),i(7,$=!1),i(8,P=!0)}))},()=>{const e=999999999999999;o>e&&i(3,o=e);const t=o-Math.floor(o)==0;o>0&&t?s.removeAttribute("disabled"):s.setAttribute("disabled","true")},R,()=>{i(11,D=i(10,I=!1))},u,c,m,p,d,h,f,g,y,e=>R(e),function(){w=S(this),i(1,w),i(15,T)},function(){E=S(this),i(2,E),i(1,w)},function(){o=L(this.value),i(3,o)},function(e){k[e?"unshift":"push"]((()=>{s=e,i(4,s)}))},function(e){k[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",class extends X{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;background-color:#fff;border-color:#ced4da}select:hover{cursor:pointer}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:rgb(122, 195, 23);color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background-color:rgba(0, 0, 0, 0.5);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Vn,Fn,o,{lang:21,currency:22,limits:23,session:24,userid:25,endpoint:26,clientstyling:27,clientstylingurl:28,translationurl:29},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[21]}set lang(e){this.$$set({lang:e}),j()}get currency(){return this.$$.ctx[22]}set currency(e){this.$$set({currency:e}),j()}get limits(){return this.$$.ctx[23]}set limits(e){this.$$set({limits:e}),j()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),j()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),j()}get endpoint(){return this.$$.ctx[26]}set endpoint(e){this.$$set({endpoint:e}),j()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[29]}set translationurl(e){this.$$set({translationurl:e}),j()}});const Wn={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function Xn(e,t){zt(e,t)}const qn={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:" ",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:" minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"The value entered must be between {minValue} and {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},de:{gamingLimits:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:" ",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:" minute",new:"Neu",limit:"Limit",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Der eingegebene Wert muss zwischen {minValue} und {maxValue} {currency} liegen.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},hr:{gamingLimits:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:" minutes",new:"Novo",limit:"Ograničenje",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Unešena vrijednost mora biti između {minValue} i {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},sl:{gamingLimits:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:" ",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:" minutes",new:"Novo",limit:"Limit",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Vnešena vrednost mora biti med {minValue} in {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},pl:{gamingLimits:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:" ",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:" minutes",new:"Nowe",limit:"Limit",setLimit:"USTAW LIMIT",loss:"Limit Strat",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to ",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimit:"Podana wartość musi znajdować się pomiędzy {minValue} a {maxValue} {currency}.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment."}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"Fijar límite",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod} ",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimit:"El valor ingresado debe ser un mínimo de {minValue} y un máximo de {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado"}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}}},{document:Yn}=G;function Kn(e,t,i){const n=e.slice();return n[95]=t[i],n}function Zn(e,t,i){const n=e.slice();return n[98]=t[i],n[100]=i,n}function Jn(e,t,i){const n=e.slice();return n[98]=t[i],n}function Qn(e,t,i){const n=e.slice();return n[103]=t[i],n}function er(e){let t,i;function n(e,t){return e[17]?tr:ir}let r=n(e),o=r(e);return{c(){t=p("div"),i=p("div"),o.c(),b(i,"class","PopupContainer "+(e[23]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){u(e,t,n),l(t,i),o.m(i,null)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},d(e){e&&c(t),o.d()}}}function tr(e){let t,i,n,r,o,s,a,m,d,v,L,w,E,x,S,A,$=e[22]("gamingLimits.popupTitle")+"";function P(e,t){return e[15]?or:e[19]?rr:nr}let _=P(e),I=_(e);function D(e,t){return e[15]?lr:3==e[20]?ar:sr}let k=D(e),N=k(e);function B(e,t){return e[19]?cr:ur}let O=B(e),M=O(e);return{c(){t=p("div"),i=p("span"),n=h($),r=f(),o=p("button"),o.textContent="X",s=f(),a=p("div"),m=p("div"),I.c(),d=f(),N.c(),v=f(),L=p("p"),w=h(e[18]),E=f(),M.c(),x=g(),b(i,"class","PopupTitle"),b(o,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(m,"class","ResultIconWrapper"),b(L,"class","DescriptionParagraph"),b(a,"class","DescriptionWrapper")},m(c,p){u(c,t,p),l(t,i),l(i,n),l(t,r),l(t,o),u(c,s,p),u(c,a,p),l(a,m),I.m(m,null),l(m,d),N.m(m,null),l(a,v),l(a,L),l(L,w),u(c,E,p),M.m(c,p),u(c,x,p),S||(A=y(o,"click",e[31]),S=!0)},p(e,t){4194304&t[0]&&$!==($=e[22]("gamingLimits.popupTitle")+"")&&T(n,$),_!==(_=P(e))&&(I.d(1),I=_(e),I&&(I.c(),I.m(m,d))),k===(k=D(e))&&N?N.p(e,t):(N.d(1),N=k(e),N&&(N.c(),N.m(m,null))),262144&t[0]&&T(w,e[18]),O===(O=B(e))&&M?M.p(e,t):(M.d(1),M=O(e),M&&(M.c(),M.m(x.parentNode,x)))},d(e){e&&c(t),e&&c(s),e&&c(a),I.d(),N.d(),e&&c(E),M.d(e),e&&c(x),S=!1,A()}}}function ir(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function nr(e){let t,i,n,r,o,s;return{c(){t=d("svg"),i=d("defs"),n=d("style"),r=h(".fil0 {fill:black;fill-rule:nonzero}\n "),o=d("g"),s=d("polygon"),b(n,"type","text/css"),b(s,"class","fil0"),b(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"xml:space","preserve"),b(t,"version","1.1"),E(t,"shape-rendering","geometricPrecision"),E(t,"text-rendering","geometricPrecision"),E(t,"image-rendering","optimizeQuality"),b(t,"viewBox","0 0 90 69"),b(t,"x","0px"),b(t,"y","0px"),b(t,"fill-rule","evenodd"),b(t,"clip-rule","evenodd")},m(e,a){u(e,t,a),l(t,i),l(i,n),l(n,r),l(t,o),l(o,s)},d(e){e&&c(t)}}}function rr(e){let t,i,n;return{c(){t=d("svg"),i=d("g"),n=d("path"),b(n,"id","XMLID_6_"),b(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),b(i,"id","XMLID_1_"),b(t,"version","1.1"),b(t,"id","Layer_1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"viewBox","0 0 512 512"),E(t,"enable-background","new 0 0 512 512"),b(t,"xml:space","preserve")},m(e,r){u(e,t,r),l(t,i),l(i,n)},d(e){e&&c(t)}}}function or(e){let t,i,n,r,o,s,a,m,p,h,f,g,y,v,L,T,w,x,S;return{c(){t=d("svg"),i=d("g"),n=d("path"),r=d("path"),o=d("g"),s=d("g"),a=d("g"),m=d("g"),p=d("g"),h=d("g"),f=d("g"),g=d("g"),y=d("g"),v=d("g"),L=d("g"),T=d("g"),w=d("g"),x=d("g"),S=d("g"),b(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),b(r,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),b(t,"version","1.1"),b(t,"id","Capa_1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"viewBox","0 0 52 52"),E(t,"enable-background","new 0 0 52 52"),b(t,"xml:space","preserve")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(i,r),l(t,o),l(t,s),l(t,a),l(t,m),l(t,p),l(t,h),l(t,f),l(t,g),l(t,y),l(t,v),l(t,L),l(t,T),l(t,w),l(t,x),l(t,S)},d(e){e&&c(t)}}}function sr(e){let t,i,n=e[22]("gamingLimits.popupSuccess")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.popupSuccess")+"")&&T(i,n)},d(e){e&&c(t)}}}function ar(e){let t,i,n=e[22]("gamingLimits.docsRequired")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.docsRequired")+"")&&T(i,n)},d(e){e&&c(t)}}}function lr(e){let t,i,n=e[22]("gamingLimits.popupError")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194304&t[0]&&n!==(n=e[22]("gamingLimits.popupError")+"")&&T(i,n)},d(e){e&&c(t)}}}function ur(t){let i,n,r;return{c(){i=p("button"),i.textContent="OK",b(i,"class","ConfirmButton")},m(e,o){u(e,i,o),n||(r=y(i,"click",t[31]),n=!0)},p:e,d(e){e&&c(i),n=!1,r()}}}function cr(e){let t,i,r,o,s,a,m,d=e[22]("gamingLimits.uploadDocumentsButton")+"",g=e[22]("gamingLimits.closeButton")+"";return{c(){t=p("button"),i=h(d),r=f(),o=p("button"),s=h(g),b(t,"class","ConfirmButton"),b(o,"class","CloseButton")},m(n,c){u(n,t,c),l(t,i),u(n,r,c),u(n,o,c),l(o,s),a||(m=[y(t,"click",e[32]),y(o,"click",e[31])],a=!0)},p(e,t){4194304&t[0]&&d!==(d=e[22]("gamingLimits.uploadDocumentsButton")+"")&&T(i,d),4194304&t[0]&&g!==(g=e[22]("gamingLimits.closeButton")+"")&&T(s,g)},d(e){e&&c(t),e&&c(r),e&&c(o),a=!1,n(m)}}}function mr(e){let t,i,r,o,s,a,d,g,v,E,x,S,A,$,P,_,I,D,k=e[12]?`${e[22]("gamingLimits.amount")}`:`${e[22]("gamingLimits.new")} ${e[22](`gamingLimits.${e[5]}`)} ${e[22]("gamingLimits.limit")}`,N=e[22]("gamingLimits.setLimit")+"",B=e[3],O=[];for(let t=0;t<B.length;t+=1)O[t]=Er(Jn(e,B,t));let M=e[11]&&xr(e),C=e[12]&&Ar(e),U=e[21]&&Pr(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<O.length;e+=1)O[e].c();o=f(),s=p("form"),M&&M.c(),a=f(),C&&C.c(),d=f(),g=p("label"),v=p("span"),E=h(k),x=f(),S=p("input"),A=f(),U&&U.c(),$=f(),P=p("button"),_=h(N),b(r,"class","LimitsList "+(e[23]?"Desktop":"")),b(v,"class","LimitInputText"),b(S,"type","number"),b(S,"pattern","[0-9]*"),b(g,"class","LimitAmountInputWrapper"),b(P,"class","LimitSubmitButton"),b(P,"type","button"),P.disabled=!0,b(s,"class","LimitsInteractionArea "+(e[23]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gm16")},m(n,c){u(n,t,c),l(t,i),l(i,r);for(let e=0;e<O.length;e+=1)O[e]&&O[e].m(r,null);l(i,o),l(i,s),M&&M.m(s,null),l(s,a),C&&C.m(s,null),l(s,d),l(s,g),l(g,v),l(v,E),l(g,x),l(g,S),w(S,e[7]),l(g,A),U&&U.m(g,null),l(s,$),l(s,P),l(P,_),e[50](P),I||(D=[y(S,"input",e[49]),y(S,"keydown",e[33]),y(S,"keyup",e[27]),y(P,"click",e[26]),y(s,"submit",e[26])],I=!0)},p(e,t){if(1623195656&t[0]){let i;for(B=e[3],i=0;i<B.length;i+=1){const n=Jn(e,B,i);O[i]?O[i].p(n,t):(O[i]=Er(n),O[i].c(),O[i].m(r,null))}for(;i<O.length;i+=1)O[i].d(1);O.length=B.length}e[11]?M?M.p(e,t):(M=xr(e),M.c(),M.m(s,a)):M&&(M.d(1),M=null),e[12]?C?C.p(e,t):(C=Ar(e),C.c(),C.m(s,d)):C&&(C.d(1),C=null),4198432&t[0]&&k!==(k=e[12]?`${e[22]("gamingLimits.amount")}`:`${e[22]("gamingLimits.new")} ${e[22](`gamingLimits.${e[5]}`)} ${e[22]("gamingLimits.limit")}`)&&T(E,k),128&t[0]&&L(S.value)!==e[7]&&w(S,e[7]),e[21]?U?U.p(e,t):(U=Pr(e),U.c(),U.m(g,null)):U&&(U.d(1),U=null),4194304&t[0]&&N!==(N=e[22]("gamingLimits.setLimit")+"")&&T(_,N)},d(i){i&&c(t),m(O,i),M&&M.d(),C&&C.d(),U&&U.d(),e[50](null),I=!1,n(D)}}}function pr(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function dr(t){return{c:e,m:e,p:e,d:e}}function hr(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){u(e,i,t)},p:e,d(e){e&&c(i)}}}function fr(e){let t,i,n,r,o=e[22]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.noLimitText")+"")&&T(r,o)},d(e){e&&c(t)}}}function gr(e){let t,i,n,r,o=e[22]("gamingLimits.lugasPrivacy")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.lugasPrivacy")+"")&&T(r,o)},d(e){e&&c(t)}}}function yr(e){let t,i=e[98].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=wr(Qn(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t]&&n[t].m(e,i);u(e,t,i)},p(e,r){if(541065224&r[0]){let o;for(i=e[98].currentLimits,o=0;o<i.length;o+=1){const s=Qn(e,i,o);n[o]?n[o].p(s,r):(n[o]=wr(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){m(n,e),e&&c(t)}}}function br(e){let t,i,n,r,o=e[22]("gamingLimits.lugasPrivacy")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){u(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamingLimits.lugasPrivacy")+"")&&T(r,o)},d(e){e&&c(t)}}}function vr(e){let t,i,n=`${e[22]("gamingLimits.removedLimitText")} ${e[103].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194312&t[0]&&n!==(n=`${e[22]("gamingLimits.removedLimitText")} ${e[103].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Lr(e){let t,i,n=`${e[103].updateAmount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)} ${e[22]("gamingLimits.updateText")} ${e[103].expiryDate}`;return{c(){t=p("div"),i=h(n),b(t,"class","PendingLimit")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4194312&t[0]&&n!==(n=`${e[103].updateAmount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)} ${e[22]("gamingLimits.updateText")} ${e[103].expiryDate}`)&&T(i,n)},d(e){e&&c(t)}}}function Tr(e){let t,i,n,r,o=e[22]("gamingLimits.removeLimit")+"";function s(){return e[45](e[103])}return{c(){t=p("button"),i=h(o),b(t,"class","RemoveLimitButton")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,4194304&n[0]&&o!==(o=e[22]("gamingLimits.removeLimit")+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}function wr(e){let t,i,n,r,o,s,a,m,d=`${e[103].amount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)}`;function g(e,t){return 8&t[0]&&(s=null),null==s&&(s=!!(e[103].isModified&&+e[103].updateAmount.replaceAll(",","")>0)),s?Lr:e[103].isModified?vr:void 0}let y=g(e,[-1,-1,-1,-1]),v=y&&y(e),L=!e[103].isModified&&Tr(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=h(d),o=f(),v&&v.c(),a=f(),L&&L.c(),m=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,s){u(e,t,s),l(t,i),l(i,n),l(n,r),l(i,o),v&&v.m(i,null),l(t,a),L&&L.m(t,null),l(t,m)},p(e,n){4194312&n[0]&&d!==(d=`${e[103].amount}${e[103].currency} ${"None"!==e[103].period||"cumulativeSession"!==e[103].value?" ":e[22]("gamingLimits.per")} ${e[22](`gamingLimits.${e[103].period}`)}`)&&T(r,d),y===(y=g(e,n))&&v?v.p(e,n):(v&&v.d(1),v=y&&y(e),v&&(v.c(),v.m(i,null))),e[103].isModified?L&&(L.d(1),L=null):L?L.p(e,n):(L=Tr(e),L.c(),L.m(t,m))},d(e){e&&c(t),v&&v.d(),L&&L.d()}}}function Er(e){let t,i,n,r,o,s=e[30](e[98])+"";function a(e,t){return"lugas"===e[98].value?br:e[98].currentLimits.length>0?yr:"lugas"===e[98].value?gr:fr}let m=a(e),d=m(e);return{c(){t=p("div"),i=p("p"),n=h(s),r=f(),d.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,s){u(e,t,s),l(t,i),l(i,n),l(t,r),d.m(t,null),l(t,o)},p(e,i){8&i[0]&&s!==(s=e[30](e[98])+"")&&T(n,s),m===(m=a(e))&&d?d.p(e,i):(d.d(1),d=m(e),d&&(d.c(),d.m(t,o)))},d(e){e&&c(t),d.d()}}}function xr(e){let t,i,r,o,s,a,d,g=e[22]("gamingLimits.limitType")+"",v=e[3],L=[];for(let t=0;t<v.length;t+=1)L[t]=Sr(Zn(e,v,t));return{c(){t=p("label"),i=p("span"),r=h(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),void 0===e[6]&&C((()=>e[46].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,c){u(n,t,c),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);x(s,e[6],!0),a||(d=[y(s,"change",e[46]),y(s,"change",e[47])],a=!0)},p(e,t){if(4194304&t[0]&&g!==(g=e[22]("gamingLimits.limitType")+"")&&T(r,g),1073741832&t[0]){let i;for(v=e[3],i=0;i<v.length;i+=1){const n=Zn(e,v,i);L[i]?L[i].p(n,t):(L[i]=Sr(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}64&t[0]&&x(s,e[6])},d(e){e&&c(t),m(L,e),a=!1,n(d)}}}function Sr(e){let t,i,n=e[30](e[98])+"";return{c(){t=p("option"),i=h(n),t.__value=e[100],t.value=t.__value},m(e,n){u(e,t,n),l(t,i)},p(e,t){8&t[0]&&n!==(n=e[30](e[98])+"")&&T(i,n)},d(e){e&&c(t)}}}function Ar(e){let t,i,n,r,o,s,a,d=e[22]("gamingLimits.period")+"",g=e[2][e[4]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=$r(Kn(e,g,t));return{c(){t=p("label"),i=p("span"),n=h(d),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),void 0===e[5]&&C((()=>e[48].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(c,m){u(c,t,m),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e]&&v[e].m(o,null);x(o,e[5],!0),s||(a=y(o,"change",e[48]),s=!0)},p(e,t){if(4194304&t[0]&&d!==(d=e[22]("gamingLimits.period")+"")&&T(n,d),4194324&t[0]){let i;for(g=e[2][e[4]].periods,i=0;i<g.length;i+=1){const n=Kn(e,g,i);v[i]?v[i].p(n,t):(v[i]=$r(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}52&t[0]&&x(o,e[5])},d(e){e&&c(t),m(v,e),s=!1,a()}}}function $r(e){let t,i,n,r=e[22](`gamingLimits.${e[95]}`)+"";return{c(){t=p("option"),i=h(r),t.__value=n=e[95],t.value=t.__value,t.selected=!0},m(e,n){u(e,t,n),l(t,i)},p(e,o){4194324&o[0]&&r!==(r=e[22](`gamingLimits.${e[95]}`)+"")&&T(i,r),20&o[0]&&n!==(n=e[95])&&(t.__value=n,t.value=t.__value)},d(e){e&&c(t)}}}function Pr(e){let t,i,n=e[22]("gamingLimits.invalidInputMessageLimit",{values:{minValue:e[9],maxValue:e[10],currency:e[0]}})+"";return{c(){t=p("p"),i=h(n),b(t,"class","InvalidInput"),b(t,"part","InvalidInput")},m(e,n){u(e,t,n),l(t,i)},p(e,t){4195841&t[0]&&n!==(n=e[22]("gamingLimits.invalidInputMessageLimit",{values:{minValue:e[9],maxValue:e[10],currency:e[0]}})+"")&&T(i,n)},d(e){e&&c(t)}}}function _r(t){let i,n,r,o,s=t[16]&&er(t);function a(e,t){return e[13]&&!e[16]?hr:e[13]?dr:e[14]?pr:mr}let m=a(t),d=m(t);return{c(){i=p("meta"),n=f(),r=p("div"),s&&s.c(),o=f(),d.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,a){l(Yn.head,i),u(e,n,a),u(e,r,a),s&&s.m(r,null),l(r,o),d.m(r,null),t[51](r)},p(e,t){e[16]?s?s.p(e,t):(s=er(e),s.c(),s.m(r,o)):s&&(s.d(1),s=null),m===(m=a(e))&&d?d.p(e,t):(d.d(1),d=m(e),d&&(d.c(),d.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),s&&s.d(),d.d(),t[51](null)}}}function Ir(e,t,i){let n;a(e,hi,(e=>i(22,n=e)));let r,o,s,l,u,{lang:c="en"}=t,{currency:m=""}=t,{limits:p=""}=t,{session:d=""}=t,{userid:h=""}=t,{endpoint:f=""}=t,{apiversion:g=""}=t,{amountsconfig:y=""}=t,{periodsconfig:b=""}=t,{clientstyling:v=""}=t,{clientstylingurl:T=""}=t,{translationurl:w=""}=t,E=window.navigator.userAgent,x=!Ln(E),A=[],$="",P="",_="",I=0,D="",N="",B="",O={},M=!1,C=!1,U=!0,H=!1,j=!1,R=!1,z=!1,G="",F=[],V=!1,W=!1,X={};const q={EUR:"€",RON:" lei",USD:"$"},Y={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]};Object.keys(qn).forEach((e=>{Xn(e,qn[e])}));const K=()=>{[...y.matchAll(/\(([^)]+)\)/g)].flat().filter((e=>!e.includes("("))).forEach((e=>{Wn[e]?A.push(Object.assign({},Wn[e])):console.error(`Unknown limit: ${e}`)})),(()=>{var e;const t=y.split(",").map((e=>e.split(":"))),n=b.split(",").map((e=>e.split(":")));for(let[e,i]of t.entries())if(i[0]!==n[e][0])throw new Error(`Limit config mismatch: "${i[0]}" does not match "${n[e][0]}"`);const r=t.reduce(((e,t,i)=>{const r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),o={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:n[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:Wn[r].callValue,callValue16:Wn[r].callValue16,title:Wn[r].title};return e.push(o),e}),[]);for(let e=0;e<r.length;e++)i(3,A[e].product=r[e].product,A),i(3,A[e].min=parseInt(r[e].minMax.split("-")[0],10),A),i(3,A[e].max=parseInt(r[e].minMax.split("-")[1],10),A),i(2,Wn[r[e].value].periods=r[e].periods,Wn);B=null===(e=A[0])||void 0===e?void 0:e.value,A.forEach((e=>{O[e.value]={min:e.min,max:e.max},X[e.value]=e.product})),O&&(O[B]?(i(9,D=O[B].min),i(10,N=O[B].max)):(i(9,D=1),i(10,N=9999999)))})(),i(4,$=A[0].value),i(5,P=Wn[$].periods[0]),_=A[0].product,i(11,M=A.length>1),i(12,C=Wn[$].periods.length>1)},Z=()=>{i(4,$=A[I].value),i(5,P=Wn[$].periods[0]),i(12,C=Wn[$].periods.length>1)},J=()=>{_=A[I].product},Q=e=>{if(!(e.status>=300))return i(15,j=!1),e.json();ee(e)},ee=e=>{let t;throw i(14,H=!0),e.json().then((e=>{for(const i in Y)for(const n of Y[i])JSON.stringify(e).includes(n)&&(t=i);console.log("errType",t),!t&&me(e)})).finally((()=>{t&&me(t),i(14,H=!1),i(13,U=!1)})),new Error("An error occured during the fetch request")},te=()=>{switch(g){case"gmcore":ie();break;case"gm16":ne()}},ie=()=>{i(13,U=!0);let e=new URL(`/v2/player/${h}/limits`,f),t={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then((e=>Q(e))).then((e=>{F=e,R&&me(),re(F),oe(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{i(13,U=!1)}))},ne=()=>{i(13,U=!0),F=[];let e=new URL(`v1/player/${h}/limits/monetary`,f),t=new URL(`v1/player/${h}/limits/session`,f),n=!1,r={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((e=>Q(e))).then((e=>{F.push(e),R&&me(),"gmcore"===g&&re(F),"gm16"===g&&se(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{n&&i(13,U=!1),n=!0})),fetch(t.href,r).then((e=>Q(e))).then((e=>{F.push(e),R&&me(),"gm16"===g&&ae(F),"gm16"===g&&le(F),i(7,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(14,H=!0)})).finally((()=>{n&&i(13,U=!1),n=!0}))},re=e=>{A.forEach((t=>{t.currentLimits=[];const i=Array.isArray(e[Wn[t.value].callValue])?e[Wn[t.value].callValue]:[e[Wn[t.value].callValue]];0!==i.length&&void 0!==i[0]&&(i.forEach(((i,n)=>{var r;const o=e[Wn[t.value].callValue][n];t.currentLimits.push({}),t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=q[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=ue(t.currentLimits))}))},oe=e=>{const t=n("gamingLimits.minutes");A.filter((e=>"sessionLimit"===e.value||"cumulativeSession"===e.value)).forEach((i=>{var n;i.currentLimits=[],null===(n=e[Wn[i.value].callValue])||void 0===n||n.forEach(((n,r)=>{const o=e[Wn[i.value].callValue][r];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.minutes),currency:t,isModified:o.isModified,period:"cumulativeSession"===i.value?o.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateMinutes),expiryDate:`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})})),i.currentLimits=ue(i.currentLimits)}))},se=e=>{var t;(null===(t=e[0])||void 0===t?void 0:t.limits)&&A.forEach((t=>{var i;t.currentLimits=[];for(const n of e[0].limits)if(n.type===t.callValue16&&n.products.includes(t.product)){const e=n;t.currentLimits.push({limitType:t.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),currency:null!==(i=q[e.currency])&&void 0!==i?i:e.currency,isModified:e.schedules.length>0,period:e.period,product:e.products[0],updateAmount:e.schedules.length>0?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.schedules[0].updateAmount):"",expiryDate:e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:e.id})}t.currentLimits=ue(t.currentLimits)}))},ae=e=>{var t;(null===(t=e[1])||void 0===t?void 0:t.sessionLimit)&&A.filter((e=>"sessionLimit"===e.value)).forEach((t=>{t.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e[1].sessionLimit.minutes),currency:n("gamingLimits.minutes"),isModified:e[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e[1].sessionLimit.updateMinutes),expiryDate:e[1].sessionLimit.expiryDate}),t.currentLimits=ue(t.currentLimits)}))},le=e=>{var t;(null===(t=e[1])||void 0===t?void 0:t.cumulativeSessionLimits)&&A.filter((e=>"cumulativeSession"===e.value)).forEach((t=>{for(const i of e[1].cumulativeSessionLimits)t.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.minutes),currency:n("gamingLimits.minutes"),isModified:i.isModified,period:i.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.updateMinutes),expiryDate:i.expiryDate});t.currentLimits=ue(t.currentLimits)}))},ue=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},ce=()=>{i(21,W=!1),(null==O?void 0:O[$])?(i(9,D=O[$].min),i(10,N=O[$].max)):(i(9,D=1),i(10,N=9999999))},me=e=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),H)return i(15,j=!0),e&&!e.thirdPartyResponse&&i(18,G=n(`gamingLimits.${e}`)),e&&e.thirdPartyResponse&&i(18,G=e.thirdPartyResponse.message),void i(17,z=!0);switch(g){case"gmcore":"sessionLimit"===$||"cumulativeSession"===$?(()=>{if(F){const e=F[Wn[$].callValue].filter((e=>e.period===P||"None"===P))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.minutes);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${$}`)).replace("{updatedAmount}",t).replace("{currency}",n("gamingLimits.minutes")).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(17,z=!0)})():(()=>{if(F){const e=F[Wn[$].callValue].filter((e=>e.period===P))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",fe()).replace("{updatedAmount}",t).replace("{currency}",q[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(17,z=!0)})();break;case"gm16":"lugas"===$?(V?(1==l&&i(18,G=`${n("gamingLimits.kycNeeded1")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(u)} ${m} ${n("gamingLimits.kycNeeded2")}`),3==l&&i(18,G=`${n("gamingLimits.kyc2")}`)):i(18,G=n("gamingLimits.kycNotNeeded")),i(17,z=!0)):"sessionLimit"===$||"cumulativeSession"===$?(i(18,G=n("gamingLimits.sessionLimitUpdated")),i(17,z=!0)):(()=>{var e;const t=(null===(e=F[0])||void 0===e?void 0:e.limits)||F.limits;if(F){const e=t.filter((e=>e.type===Wn[$].callValue16&&(e.period===P||"None"===e.period)))[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),o=e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let s=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",fe()).replace("{updatedAmount}",r).replace("{currency}",q[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${P}`));i(18,G=e.schedules.length>0?`${n("gamingLimits.popupPendingUpdate")} ${o}`:s)}i(17,z=!0)})();break;default:throw new Error(`Invalid apiversion attribute: ${g}`)}},pe=e=>{switch(g){case"gmcore":(e=>{i(4,$=e.limitType),i(5,P=e.period),i(16,R=!0),i(13,U=!0);let t=new URL(`v2/player/${h}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[e.limitType]}`,f);"sessionLimit"!==e.limitType&&t.searchParams.append("periods",e.period);let n={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})(e);break;case"gm16":"sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?de(e):he(e)}},de=e=>{const t=new URL(`/v1/player/${h}/limits/session/session`,f),n=new URL(`/v1/player/${h}/limits/session/cumulativeSession?periods=${e.period}`,f);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=n;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}i(16,R=!0),i(13,U=!0);let o={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,o).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))},he=e=>{const t=new URL(`/v1/player/${h}/limits/monetary/${e.id}`,f);i(16,R=!0),i(13,U=!0);let n={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))},fe=e=>{let t;return t=e?-1===n(`gamingLimits.${e.value}${e.product}`).indexOf(".")?n(`gamingLimits.${e.value}${e.product}`):n(`gamingLimits.${e.value}`):-1===n(`gamingLimits.${$}${_}`).indexOf(".")?n(`gamingLimits.${$}${_}`):n(`gamingLimits.${$}`),t},ge=()=>{i(17,z=i(16,R=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href)},ye=()=>{var e;e=c,ii.set(e)};return e.$$set=e=>{"lang"in e&&i(34,c=e.lang),"currency"in e&&i(0,m=e.currency),"limits"in e&&i(35,p=e.limits),"session"in e&&i(36,d=e.session),"userid"in e&&i(37,h=e.userid),"endpoint"in e&&i(38,f=e.endpoint),"apiversion"in e&&i(39,g=e.apiversion),"amountsconfig"in e&&i(40,y=e.amountsconfig),"periodsconfig"in e&&i(41,b=e.periodsconfig),"clientstyling"in e&&i(42,v=e.clientstyling),"clientstylingurl"in e&&i(43,T=e.clientstylingurl),"translationurl"in e&&i(44,w=e.translationurl)},e.$$.update=()=>{1536&e.$$.dirty[1]&&b&&y&&K(),8&e.$$.dirty[1]&&c&&ye(),488&e.$$.dirty[1]&&h&&d&&f&&g&&c&&te(),2&e.$$.dirty[0]|4096&e.$$.dirty[1]&&T&&r&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})(),2&e.$$.dirty[0]|2048&e.$$.dirty[1]&&v&&r&&(()=>{let e=document.createElement("style");e.innerHTML=v,r.appendChild(e)})(),8192&e.$$.dirty[1]&&w&&fetch(w).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Xn(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,r,Wn,A,$,P,I,o,s,D,N,M,C,U,H,j,R,z,G,V,l,W,n,x,Z,J,()=>{switch(g){case"gmcore":(()=>{if(!(o>0))return;i(16,R=!0),i(13,U=!0);let e=new URL(`v2/player/${h}/limits`,f),t={};"sessionLimit"===$?t={sessionLimit:o,sessionLimitUnit:"minute"}:t[Wn[$].callValue]="cumulativeSession"===$?[{period:P,minutes:o}]:[{period:"None"===Wn[$].periods[0]?null:P,amount:o,currency:m}];let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})();break;case"gm16":"lugas"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,U=!0);const e=new URL(`v1/player/${h}/limit/lugas`,f),t={amount:o};let n={method:"POST",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{i(19,V=e.kycNeeded),i(20,l=e.popup),u=e.operatorDepositLimitAmount,te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():"sessionLimit"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,U=!0);const e=new URL(`v1/player/${h}/limits/session/`,f),t={sessionLimit:o,sessionLimitUnit:"minute"};let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():"cumulativeSession"===$?(()=>{if(!(o>0))return;i(16,R=!0),i(13,U=!0);const e=new URL(`v1/player/${h}/limits/session/`,f),t={cumulativeSessionLimits:[{period:P,minutes:o}]};let n={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})():(()=>{if(o<=0)return;i(16,R=!0),i(13,U=!0);const e=A[I].currentLimits.filter((e=>e.period===P))[0],t=new URL(`v1/player/${h}/limits/monetary/${e?e.id:""}`,f),n=e?"PUT":"POST",r=e?{amount:o,skipCoolOff:!1}:{amount:o,currency:m,period:"None"===Wn[$].periods[0]?null:P,type:Wn[$].callValue16,products:[null!=_?_:"All"],walletTypes:["All"]};let s={method:n,headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,s).then((e=>Q(e))).then((e=>{te()})).catch((e=>{console.log(e),i(14,H=!0)}))})();break;default:throw Error(`Invalid apiversion attribute: ${g}`)}},()=>{const e=o-Math.floor(o)==0;o>=D&&o<=N&&e?(i(21,W=!1),s.removeAttribute("disabled")):(i(21,W=!0),s.setAttribute("disabled","true"))},ce,pe,fe,ge,()=>{window.postMessage({type:"uploadDocuments"}),ge()},e=>{13===e.keyCode&&W&&e.preventDefault()},c,p,d,h,f,g,y,b,v,T,w,e=>pe(e),function(){I=S(this),i(6,I)},()=>{J(),Z(),ce()},function(){P=S(this),i(5,P),i(2,Wn),i(4,$)},function(){o=L(this.value),i(7,o)},function(e){k[e?"unshift":"push"]((()=>{s=e,i(8,s)}))},function(e){k[e?"unshift":"push"]((()=>{r=e,i(1,r)}))}]}function Dr(e,t){zt(e,t)}!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",class extends X{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;border:1px solid;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border-color:#ced4da;background-color:#fff}select:hover{cursor:pointer}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:rgb(122, 195, 23);color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:#fff;color:#999;border:1px solid #999;margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:11}.PopupContainer{background:#fff;font-size:1.3rem;color:#333;width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Ir,_r,o,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,amountsconfig:40,periodsconfig:41,clientstyling:42,clientstylingurl:43,translationurl:44},null,[-1,-1,-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),j()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),j()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),j()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),j()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),j()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),j()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),j()}get amountsconfig(){return this.$$.ctx[40]}set amountsconfig(e){this.$$set({amountsconfig:e}),j()}get periodsconfig(){return this.$$.ctx[41]}set periodsconfig(e){this.$$set({periodsconfig:e}),j()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),j()}});const kr={en:{history:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed"}},de:{history:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt"}},hr:{history:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno"}},sl:{history:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen"}},pl:{history:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit"}},"zh-hk":{history:{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制"}},fr:{history:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée"}},ro:{history:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata"}},es:{history:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado"}}};function Nr(e,t,i){const n=e.slice();return n[34]=t[i],n[35]=t,n[36]=i,n}function Br(e){let t,i,n,r,o,s,a,g,v,L,w,E,x=e[9]("history.expandLimits")+"",S=e[7],$=[];for(let t=0;t<S.length;t+=1)$[t]=Hr(Nr(e,S,t));return{c(){t=p("div"),i=p("div"),n=p("button"),r=h(x),o=f(),s=d("svg"),a=d("path"),g=d("path"),v=f(),L=p("div");for(let e=0;e<$.length;e+=1)$[e].c();b(a,"d","M10.5 15l7.5 7.5 7.5-7.5z"),b(g,"d","M0 0h36v36h-36z"),b(g,"fill","none"),b(s,"class","ExpandArrow"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(s,"width","36"),b(s,"height","36"),b(s,"viewBox","0 0 36 36"),b(s,"fill","#999"),A(s,"extended",e[8]),b(n,"class","ExpandButton"),b(L,"class","HistoryDisplayArea"),A(L,"hidden",e[5]),b(i,"class","HistoryWrapper "+(e[10]?"Desktop":"")),b(t,"class","player-account-gaming-limits-history-2")},m(c,m){u(c,t,m),l(t,i),l(i,n),l(n,r),l(n,o),l(n,s),l(s,a),l(s,g),l(i,v),l(i,L);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(L,null);w||(E=y(n,"click",e[11]),w=!0)},p(e,t){if(512&t[0]&&x!==(x=e[9]("history.expandLimits")+"")&&T(r,x),256&t[0]&&A(s,"extended",e[8]),650&t[0]){let i;for(S=e[7],i=0;i<S.length;i+=1){const n=Nr(e,S,i);$[i]?$[i].p(n,t):($[i]=Hr(n),$[i].c(),$[i].m(L,null))}for(;i<$.length;i+=1)$[i].d(1);$.length=S.length}32&t[0]&&A(L,"hidden",e[5])},d(e){e&&c(t),m($,e),w=!1,E()}}}function Or(t){return{c:e,m:e,p:e,d:e}}function Mr(e){let t,i,n=(e[0]?e[9]("history.error"):"500 Server Error")+"";return{c(){t=p("p"),i=h(n)},m(e,n){u(e,t,n),l(t,i)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("history.error"):"500 Server Error")+"")&&T(i,n)},d(e){e&&c(t)}}}function Cr(e){let t,i,n,r,o,s,a,m,d,g,y,v,L=e[34].type+"",w=e[34].amount+"",E=e[34].currency+"",x=e[34].period+"",S=e[34].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=h(L),o=p("span"),s=h(w),a=f(),m=h(E),d=f(),g=h(x),y=p("span"),v=h(S),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(y,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(o,a),l(o,m),l(o,d),l(o,g),l(t,y),l(y,v)},p(e,t){128&t[0]&&L!==(L=e[34].type+"")&&T(r,L),128&t[0]&&w!==(w=e[34].amount+"")&&T(s,w),128&t[0]&&E!==(E=e[34].currency+"")&&T(m,E),128&t[0]&&x!==(x=e[34].period+"")&&T(g,x),128&t[0]&&S!==(S=e[34].date+"")&&T(v,S)},d(e){e&&c(t)}}}function Ur(e){let t,i,n,r,o,s,a,m,d=e[34].type+"",f=e[9]("history.limitRemoved")+"",g=e[34].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=h(d),o=p("span"),s=h(f),a=p("span"),m=h(g),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(a,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,c){u(e,t,c),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(t,a),l(a,m)},p(e,t){128&t[0]&&d!==(d=e[34].type+"")&&T(r,d),512&t[0]&&f!==(f=e[9]("history.limitRemoved")+"")&&T(s,f),128&t[0]&&g!==(g=e[34].date+"")&&T(m,g)},d(e){e&&c(t)}}}function Hr(e){let t,i,n,r=e[36];function o(e,t){return e[34].removed?Ur:Cr}let s=o(e),a=s(e);const m=()=>e[19](t,r),d=()=>e[19](null,r);return{c(){t=p("div"),a.c(),i=f(),b(t,"class",n=e[36]>+e[1]?"LimitContainer":"")},m(e,n){u(e,t,n),a.m(t,null),l(t,i),m()},p(l,u){s===(s=o(e=l))&&a?a.p(e,u):(a.d(1),a=s(e),a&&(a.c(),a.m(t,i))),2&u[0]&&n!==(n=e[36]>+e[1]?"LimitContainer":"")&&b(t,"class",n),r!==e[36]&&(d(),r=e[36],m())},d(e){e&&c(t),a.d(),d()}}}function jr(t){let i;function n(e,t){return e[6]?Mr:e[4]?Or:Br}let r=n(t),o=r(t);return{c(){i=p("div"),o.c(),this.c=e},m(e,n){u(e,i,n),o.m(i,null),t[20](i)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},i:e,o:e,d(e){e&&c(i),o.d(),t[20](null)}}}function Rr(e,t,i){let n;a(e,hi,(e=>i(9,n=e)));let r,o=window.navigator.userAgent,s=!Ln(o),{lang:l=""}=t,{userid:u=""}=t,{session:c=""}=t,{endpoint:m=""}=t,{apiversion:p=""}=t,{numberofentries:d="10"}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{translationurl:g=""}=t,y=new Array,b=parseInt(d,10),v=!1,L=!0,T=[],w=[],E=!0,x=!1,S={EUR:"€",RON:"lei"};Object.keys(kr).forEach((e=>{Dr(e,kr[e])}));const A=e=>{const t=!!kr[l];return e.map((e=>{let i={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return i.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),i.currency=t?S[e.limitCurrencyCode]:e.limitCurrencyCode,i.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),i.period=n(`history.${e.limitPeriod.toLowerCase()}`),i.type=-1===n(`history.${e.limitType.split(" ")[0].toLowerCase()}${e.limitProductType}`).indexOf(".")?n(`history.${e.limitType.split(" ")[0].toLowerCase()}${e.limitProductType}`):n(`history.${e.limitType.split(" ")[0].toLowerCase()}`),i.removed=-1===e.limitAmount,i}))};let $=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(b+=parseInt(d,10)||10,w.length<T.length&&i(7,w=T.slice(0,b)))}))}));const P=()=>{var e;e=l,ii.set(e)};return I((()=>()=>{$.unobserve(y[y.length-1])})),e.$$set=e=>{"lang"in e&&i(0,l=e.lang),"userid"in e&&i(12,u=e.userid),"session"in e&&i(13,c=e.session),"endpoint"in e&&i(14,m=e.endpoint),"apiversion"in e&&i(15,p=e.apiversion),"numberofentries"in e&&i(1,d=e.numberofentries),"clientstyling"in e&&i(16,h=e.clientstyling),"clientstylingurl"in e&&i(17,f=e.clientstylingurl),"translationurl"in e&&i(18,g=e.translationurl)},e.$$.update=()=>{61440&e.$$.dirty[0]&&m&&u&&c&&p&&(()=>{let e=new URL("gmcore"===p?`v2/player/${u}/transactions/limit`:`v1/player/${u}/limits/monetary/history`,m);e.searchParams.append("startDate",`${new Date("2022").toISOString()}`),e.searchParams.append("endDate",`${new Date("2099").toISOString()}`),e.searchParams.append("limit","10000");let t={method:"GET",headers:{"X-SessionID":c}};fetch(e.href,t).then((e=>{if(e.status>=300)throw i(4,L=!1),i(6,v=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{e.length&&(T=A(e),i(7,w=T.slice(0,b))),i(4,L=!1)}),(e=>{console.error("There was an error",e),i(6,v=!0)}))})(),56&e.$$.dirty[0]&&y[0]&&!L&&!E&&$.observe(y[y.length-1]),1&e.$$.dirty[0]&&l&&P(),131072&e.$$.dirty[0]&&f&&(()=>{let e=new URL(f),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&(setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500))}))})(),65540&e.$$.dirty[0]&&h&&r&&(()=>{let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)})(),262148&e.$$.dirty[0]&&g&&r&&fetch(g).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Dr(t,e[t])}))})).catch((e=>{console.log(e)}))},[l,d,r,y,L,E,v,w,x,n,s,()=>{i(5,E=!E),i(8,x=!x)},u,c,m,p,h,f,g,function(e,t){k[e?"unshift":"push"]((()=>{y[t]=e,i(3,y)}))},function(e){k[e?"unshift":"push"]((()=>{r=e,i(2,r)}))}]}!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",class extends X{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{color:#555;margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:#ccc 1px solid}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}',this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Rr,jr,o,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,clientstyling:16,clientstylingurl:17,translationurl:18},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),j()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),j()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),j()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),j()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),j()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),j()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),j()}});const{document:zr}=G;function Gr(e,t,i){const n=e.slice();return n[31]=t[i],n[33]=i,n}function Fr(e,t,i){const n=e.slice();return n[34]=t[i],n[33]=i,n}function Vr(e){let t,i,n,r,o=e[18].length>1&&function(e){let t,i=e[18],n=[];for(let t=0;t<i.length;t+=1)n[t]=Xr(Fr(e,i,t));return{c(){t=p("div");for(let e=0;e<n.length;e+=1)n[e].c();b(t,"class","TabsContainer")},m(i,r){u(i,t,r);for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,null);e[24](t)},p(e,r){if(802816&r[0]){let o;for(i=e[18],o=0;o<i.length;o+=1){const s=Fr(e,i,o);n[o]?n[o].p(s,r):(n[o]=Xr(s),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(i){i&&c(t),m(n,i),e[24](null)}}}(e),s=e[18],a=[];for(let t=0;t<s.length;t+=1)a[t]=qr(Gr(e,s,t));let l="true"===e[6]&&Yr(e);return{c(){o&&o.c(),t=f(),i=p("div");for(let e=0;e<a.length;e+=1)a[e].c();n=f(),l&&l.c(),r=g(),b(i,"class","player-account-gaming-limits-wrapper-2")},m(s,c){o&&o.m(s,c),u(s,t,c),u(s,i,c);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(i,null);e[25](i),u(s,n,c),l&&l.m(s,c),u(s,r,c)},p(e,t){if(e[18].length>1&&o.p(e,t),198463&t[0]){let n;for(s=e[18],n=0;n<s.length;n+=1){const r=Gr(e,s,n);a[n]?a[n].p(r,t):(a[n]=qr(r),a[n].c(),a[n].m(i,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=s.length}"true"===e[6]?l?l.p(e,t):(l=Yr(e),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null)},d(s){o&&o.d(s),s&&c(t),s&&c(i),m(a,s),e[25](null),s&&c(n),l&&l.d(s),s&&c(r)}}}function Wr(t){return{c:e,m:e,p:e,d:e}}function Xr(e){let t,i,n,r,o=(e[14][e[33]]??e[34])+"";function s(){return e[23](e[33])}return{c(){t=p("div"),i=h(o),b(t,"class","LimitsTab")},m(e,o){u(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,16384&n[0]&&o!==(o=(e[14][e[33]]??e[34])+"")&&T(i,o)},d(e){e&&c(t),n=!1,r()}}}function qr(e){let t,i,n;return{c(){t=p("player-account-gaming-limits-page-2-gm16"),v(t,"class","hidden selected"),v(t,"lang",e[0]),v(t,"currency",e[4]),v(t,"amountsconfig",i=e[16][e[33]]),v(t,"periodsconfig",n=e[17][e[33]]),v(t,"userid",e[1]),v(t,"session",e[2]),v(t,"endpoint",e[3]),v(t,"apiversion",e[5]),v(t,"clientstyling",e[8]),v(t,"clientstylingurl",e[9]),v(t,"translationurl",e[10])},m(e,i){u(e,t,i)},p(e,r){1&r[0]&&v(t,"lang",e[0]),16&r[0]&&v(t,"currency",e[4]),65536&r[0]&&i!==(i=e[16][e[33]])&&v(t,"amountsconfig",i),131072&r[0]&&n!==(n=e[17][e[33]])&&v(t,"periodsconfig",n),2&r[0]&&v(t,"userid",e[1]),4&r[0]&&v(t,"session",e[2]),8&r[0]&&v(t,"endpoint",e[3]),32&r[0]&&v(t,"apiversion",e[5]),256&r[0]&&v(t,"clientstyling",e[8]),512&r[0]&&v(t,"clientstylingurl",e[9]),1024&r[0]&&v(t,"translationurl",e[10])},d(e){e&&c(t)}}}function Yr(e){let t;return{c(){t=p("player-account-gaming-limits-history-2"),v(t,"lang",e[0]),v(t,"userid",e[1]),v(t,"session",e[2]),v(t,"endpoint",e[3]),v(t,"apiversion",e[5]),v(t,"numberofentries",e[7]),v(t,"clientstyling",e[8]),v(t,"clientstylingurl",e[9]),v(t,"translationurl",e[10])},m(e,i){u(e,t,i)},p(e,i){1&i[0]&&v(t,"lang",e[0]),2&i[0]&&v(t,"userid",e[1]),4&i[0]&&v(t,"session",e[2]),8&i[0]&&v(t,"endpoint",e[3]),32&i[0]&&v(t,"apiversion",e[5]),128&i[0]&&v(t,"numberofentries",e[7]),256&i[0]&&v(t,"clientstyling",e[8]),512&i[0]&&v(t,"clientstylingurl",e[9]),1024&i[0]&&v(t,"translationurl",e[10])},d(e){e&&c(t)}}}function Kr(t){let i,n,r;function o(e,t){return e[11]?Wr:Vr}let s=o(t),a=s(t);return{c(){i=p("meta"),n=f(),r=p("div"),a.c(),this.c=e,b(i,"name","viewport"),b(i,"content","width=device-width, initial-scale=1")},m(e,o){l(zr.head,i),u(e,n,o),u(e,r,o),a.m(r,null),t[26](r)},p(e,t){s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r,null)))},i:e,o:e,d(e){c(i),e&&c(n),e&&c(r),a.d(),t[26](null)}}}function Zr(e,t,i){let n,r,o,s,a,l,{lang:u=""}=t,{userid:c=""}=t,{session:m=""}=t,{endpoint:p=""}=t,{currency:d=""}=t,{apiversion:h=""}=t,{tablabels:f=""}=t,{historyenabled:g="true"}=t,{limitsamount:y=""}=t,{limitsperiods:b=""}=t,{numberofentries:v=""}=t,{clientstyling:L=""}=t,{clientstylingurl:T=""}=t,{translationurl:w=""}=t,E=!0,x=[];const S=()=>{((e,t)=>{if(i(16,a=e.replace(/\s/g,"").split("|")),i(17,l=t.replace(/\s/g,"").split("|")),0===a.length)throw new Error("Please provide a full limits configuration.");if(a.length!==l.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")})(y,b),y.split("|").forEach((e=>{x.push(e)})),i(14,r=f.split(",").map((e=>e.trim()))),i(11,E=!1)},A=e=>{if(o.children.length>0)for(let t=0;t<o.children.length;t++)e===t?(o.children[t].classList.remove("hidden"),null==s||s.children[t].classList.add("selected")):(o.children[t].classList.add("hidden"),null==s||s.children[t].classList.remove("selected"))};I((()=>()=>{i(13,o=null),i(15,s=null)}));return e.$$set=e=>{"lang"in e&&i(0,u=e.lang),"userid"in e&&i(1,c=e.userid),"session"in e&&i(2,m=e.session),"endpoint"in e&&i(3,p=e.endpoint),"currency"in e&&i(4,d=e.currency),"apiversion"in e&&i(5,h=e.apiversion),"tablabels"in e&&i(20,f=e.tablabels),"historyenabled"in e&&i(6,g=e.historyenabled),"limitsamount"in e&&i(21,y=e.limitsamount),"limitsperiods"in e&&i(22,b=e.limitsperiods),"numberofentries"in e&&i(7,v=e.numberofentries),"clientstyling"in e&&i(8,L=e.clientstyling),"clientstylingurl"in e&&i(9,T=e.clientstylingurl),"translationurl"in e&&i(10,w=e.translationurl)},e.$$.update=()=>{1048623&e.$$.dirty[0]&&c&&m&&p&&f&&u&&h&&S(),10240&e.$$.dirty[0]&&o&&!E&&A(0),4608&e.$$.dirty[0]&&T&&n&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1)}))})(),4352&e.$$.dirty[0]&&L&&n&&(()=>{let e=document.createElement("style");e.innerHTML=L,n.appendChild(e)})()},[u,c,m,p,d,h,g,v,L,T,w,E,n,o,r,s,a,l,x,A,f,y,b,e=>A(e),function(e){k[e?"unshift":"push"]((()=>{s=e,i(15,s)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,i(13,o)}))},function(e){k[e?"unshift":"push"]((()=>{n=e,i(12,n)}))}]}class Jr extends X{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid #ccc;justify-content:center;background:#fff;box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}.selected{border-bottom:0.2rem solid #002554;color:#002554;margin:0}',this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Zr,Kr,o,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:20,historyenabled:6,limitsamount:21,limitsperiods:22,numberofentries:7,clientstyling:8,clientstylingurl:9,translationurl:10},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),j()))}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","limitsamount","limitsperiods","numberofentries","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),j()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),j()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),j()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),j()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),j()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),j()}get tablabels(){return this.$$.ctx[20]}set tablabels(e){this.$$set({tablabels:e}),j()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),j()}get limitsamount(){return this.$$.ctx[21]}set limitsamount(e){this.$$set({limitsamount:e}),j()}get limitsperiods(){return this.$$.ctx[22]}set limitsperiods(e){this.$$set({limitsperiods:e}),j()}get numberofentries(){return this.$$.ctx[7]}set numberofentries(e){this.$$set({numberofentries:e}),j()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),j()}}return!customElements.get("player-account-gaming-limits-wrapper-2")&&customElements.define("player-account-gaming-limits-wrapper-2",Jr),Jr}));
|
|
2
2
|
//# sourceMappingURL=player-account-gaming-limits-wrapper-2.js.map
|