@everymatrix/bonus-powerups-ingame-list 0.5.35 → 0.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bonus-powerups-ingame-list/active-confirm-modal_3.entry.js +1 -1
- package/dist/bonus-powerups-ingame-list/{bonus-powerups-ingame-list-64847749.js → bonus-powerups-ingame-list-5a25eec5.js} +1 -1
- package/dist/bonus-powerups-ingame-list/index.esm.js +1 -1
- package/dist/cjs/active-confirm-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/{bonus-powerups-ingame-list-0a26258c.js → bonus-powerups-ingame-list-c2d95eba.js} +11 -9
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.css +3 -3
- package/dist/collection/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.js +10 -8
- package/dist/esm/active-confirm-modal_3.entry.js +2 -2
- package/dist/esm/{bonus-powerups-ingame-list-64847749.js → bonus-powerups-ingame-list-5a25eec5.js} +11 -9
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./index-e015b33d.js";import{t as s,C as a,a as o,h as n}from"./bonus-powerups-ingame-list-
|
|
1
|
+
import{r as e,c as t,h as i}from"./index-e015b33d.js";import{t as s,C as a,a as o,h as n}from"./bonus-powerups-ingame-list-5a25eec5.js";export{B as bonus_powerups_ingame_list}from"./bonus-powerups-ingame-list-5a25eec5.js";const r=class{constructor(i){e(this,i),this.activePowerupEvent=t(this,"activePowerupEvent",7),this.pid=void 0,this.language="en",this.isOpen=void 0}activeNow(){this.closeModal(this.pid)}closeModal(e){this.isOpen=!1,this.activePowerupEvent.emit({id:e})}render(){return i("div",{key:"a3d27838533a9da9c6096958d20ba7c223582888",class:"ModalContainer "+(this.isOpen?"Shown":"Hidden")},i("div",{key:"e6d9adedf1b882312ae795ee3098af622976e6ac",class:"TopBar"},i("div",{key:"e15e7ba1f6eccc5c15b5c83e06766e525d6f9713",class:"IconBtn CircleLinearBorder",onClick:()=>this.closeModal(),innerHTML:a})),i("div",{key:"1a48351e00dd01eb285f516a6b9ddf3619dd9d3a",class:"Title"},s("activeTitle",this.language)),i("div",{key:"4b4981016359af3500c0578d2ebe04fa8a62677d",class:"ActivePowerupContent"},s("activeContent",this.language)),i("div",{key:"a843ef0088b2674a7b32bc2a04c74abfde8b980b",class:"Btns"},i("div",{key:"61289f8630beebd7316fe7966ce5f3de28bde096",class:"LaterBtn PowupBtn",onClick:()=>this.closeModal()}," ",s("later",this.language)," "),i("div",{key:"3765062d5adebf082f134412cc41b11edc9e999c",class:"Active PowupBtn",onClick:()=>this.activeNow()}," ",s("activateNow",this.language)," ")))}};r.style=".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";const c=class{constructor(i){e(this,i),this.timeCountDownEvent=t(this,"powerupTimeCountDown",7),this.expireTime=void 0,this.language="en",this.mode="timePeriod",this.inProgress=!1,this.leftRounds=void 0,this.displayTime=void 0,this.isExpireInDay1=!1,this.timeLeft=void 0}componentWillLoad(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}disconnectedCallback(){clearInterval(this.timer)}timeLeftChanged(){this.timeLeft>0||this.timeLeft<-10||this.timeCountDownEvent.emit({type:"powerupTimeCountDown",timeLeft:this.timeLeft})}startTimeChanged(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}updateDisplayTime(){const e=n(),t=n(this.expireTime);if(!t.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=n.duration(t.diff(e));if(this.isExpireInDay1=!0,this.timeLeft=i.asMinutes(),i.asMilliseconds()<=0)return this.displayTime="00:00:00",this.timeLeft=0,void clearInterval(this.timer);const a=Math.floor(i.asHours());if(a>=48)this.displayTime=`${Math.floor(i.asDays())} ${s("days",this.language)}`;else if(a>=24)this.displayTime=`1 ${s("day",this.language)}`;else{const e=a,t=i.minutes(),s=i.seconds();this.displayTime=[e,t,s].map((e=>String(e).padStart(2,"0"))).join(":")}}render(){return[this.inProgress&&i("div",{key:"ca4c55507465e393798aece74aedd841f535e553",class:"InprogressLabel"},i("span",{key:"22bf42ca81ce3c757471d07ab5032e300286fbbe",class:"Icon"}),s("inProgress",this.language)),i("span",{key:"c7b812e96928a802b71c322527a61b60f2c7c995",class:"Label"},s(this.inProgress?"endsIn":"expiresIn",this.language)," "),this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS?i("span",{class:"TimeCountDown"},this.leftRounds," ",s(this.leftRounds>1?"rounds":"round",this.language)):i("span",{class:"TimeCountDown"},this.displayTime)]}static get watchers(){return{timeLeft:["timeLeftChanged"],expireTime:["startTimeChanged"]}}};export{r as active_confirm_modal,c as time_count}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{r as t,c as n,h as e}from"./index-e015b33d.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function r(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function s(t,n){if(!t||!n)return;const e=new URL(n);fetch(e.href).then((t=>t.text())).then((n=>{const e=document.createElement("style");e.innerHTML=n,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,n,e,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return e=function(t,n){const e=document.createElement("style");return window.emMessageBus.subscribe(n,(n=>{t&&(e.innerHTML=n,t.appendChild(e))}))}(t,n),e;window[i]||(window[i]={}),e=function(t,n){return window.emMessageBus.subscribe(n,(e=>{if(!t)return;const r=t.getRootNode(),s=window[i];let o=s[n]&&s[n].sheet;o?s[n].refCount=s[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(e),s[n]={sheet:o,refCount:1});const a=r.adoptedStyleSheets||[];a.includes(o)||(r.adoptedStyleSheets=[...a,o])}))}(t,n);const s=e.unsubscribe.bind(e);return e.unsubscribe=()=>{if(window[i][n]){const t=window[i][n];t.refCount>1?t.refCount=t.refCount-1:delete window[i][n]}s()},e}const a={en:{powerups:"Power-ups",activate:"Activate",expiresIn:"Expires in - ",inProgress:"In Progress",endsIn:"Ends in - ",xp:"XP",coins:"Coins",minutes:"min",rounds:"Rounds",days:"Days",round:"Round",day:"Day",gotoShop:"Go to the shop to check power-ups availability.",nothingHere:"Nothing here -- yet!",noPowerUpsNow:"No power-ups at the moment. ",poweringTooltip:"Power-ups are currently unavailable as you have already activated one power-up. Only one power-up can be active at a time.",later:"Later",activateNow:"Activate Now",activeTitle:"Activate power-up?",activeContent:"In case of activation the countdown starts immediately.\n Are you sure you want to activate?",activeSuccess:"Activated a power-up",activeError:"Failed to activate power-up."}},u=t=>new Promise((n=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((n=>{a[n]||(a[n]={});for(let e in t[n])a[n][e]=t[n][e]})),n(!0)}))})),h=(t,n,e)=>{let i=a[void 0!==n&&n in a?n:"en"][t];if(void 0!==e)for(const[t,n]of Object.entries(e.values)){const e=new RegExp(`{${t}}`,"g");i=i.replace(e,n)}return i};var d,c,l,f,m;function p(){return f.apply(null,arguments)}function g(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function w(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function C(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(v(t,n))return!1;return!0}function y(t){return void 0===t}function M(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function b(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function Y(t,n){var e,i=[],r=t.length;for(e=0;e<r;++e)i.push(n(t[e],e));return i}function x(t,n){for(var e in n)v(n,e)&&(t[e]=n[e]);return v(n,"toString")&&(t.toString=n.toString),v(n,"valueOf")&&(t.valueOf=n.valueOf),t}function D(t,n,e,i){return Zn(t,n,e,i,!0).utc()}function S(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function N(t){if(null==t._isValid){var n=S(t),e=m.call(n.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e);if(t._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function k(t){var n=D(NaN);return null!=t?x(S(n),t):S(n).userInvalidated=!0,n}!function(t){t.COINS="coins",t.XP="xp"}(d||(d={})),function(t){t.TIME_PERIOD="timePeriod",t.NUMBER_OF_ROUNDS="numberOfRounds"}(c||(c={})),function(t){t[t.ACTIVE=0]="ACTIVE",t[t.ACTIVATED=1]="ACTIVATED",t[t.EXPIRED=2]="EXPIRED",t[t.CONSUMED=3]="CONSUMED",t[t.DISABLED=4]="DISABLED",t[t.ENABLED=6]="ENABLED",t[t.ACTIVATING=999]="ACTIVATING"}(l||(l={})),m=Array.prototype.some?Array.prototype.some:function(t){var n,e=Object(this),i=e.length>>>0;for(n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var I=p.momentProperties=[],T=!1;function E(t,n){var e,i,r,s=I.length;if(y(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),y(n._i)||(t._i=n._i),y(n._f)||(t._f=n._f),y(n._l)||(t._l=n._l),y(n._strict)||(t._strict=n._strict),y(n._tzm)||(t._tzm=n._tzm),y(n._isUTC)||(t._isUTC=n._isUTC),y(n._offset)||(t._offset=n._offset),y(n._pf)||(t._pf=S(n)),y(n._locale)||(t._locale=n._locale),s>0)for(e=0;e<s;e++)y(r=n[i=I[e]])||(t[i]=r);return t}function P(t){E(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===T&&(T=!0,p.updateOffset(this),T=!1)}function U(t){return t instanceof P||null!=t&&null!=t._isAMomentObject}function H(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function L(t,n){var e=!0;return x((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,t),e){var i,r,s,o=[],a=arguments.length;for(r=0;r<a;r++){if(i="","object"==typeof arguments[r]){for(s in i+="\n["+r+"] ",arguments[0])v(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];o.push(i)}H(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var A,G={};function W(t,n){null!=p.deprecationHandler&&p.deprecationHandler(t,n),G[t]||(H(n),G[t]=!0)}function F(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function R(t,n){var e,i=x({},t);for(e in n)v(n,e)&&(w(t[e])&&w(n[e])?(i[e]={},x(i[e],t[e]),x(i[e],n[e])):null!=n[e]?i[e]=n[e]:delete i[e]);for(e in t)v(t,e)&&!v(n,e)&&w(t[e])&&(i[e]=x({},i[e]));return i}function O(t){null!=t&&this.set(t)}function j(t,n,e){var i=""+Math.abs(t);return(t>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,n-i.length)).toString().substr(1)+i}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,A=Object.keys?Object.keys:function(t){var n,e=[];for(n in t)v(t,n)&&e.push(n);return e};var _=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z={},J={};function K(t,n,e,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(J[t]=r),n&&(J[n[0]]=function(){return j(r.apply(this,arguments),n[1],n[2])}),e&&(J[e]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,n){return t.isValid()?(n=X(n,t.localeData()),Z[n]=Z[n]||function(t){var n,e,i,r=t.match(_);for(n=0,e=r.length;n<e;n++)r[n]=J[r[n]]?J[r[n]]:(i=r[n]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(n){var i,s="";for(i=0;i<e;i++)s+=F(r[i])?r[i].call(n,t):r[i];return s}}(n),Z[n](t)):t.localeData().invalidDate()}function X(t,n){var e=5;function i(t){return n.longDateFormat(t)||t}for(B.lastIndex=0;e>=0&&B.test(t);)t=t.replace(B,i),B.lastIndex=0,e-=1;return t}var q={};function Q(t,n){var e=t.toLowerCase();q[e]=q[e+"s"]=q[n]=t}function V(t){return"string"==typeof t?q[t]||q[t.toLowerCase()]:void 0}function $(t){var n,e,i={};for(e in t)v(t,e)&&(n=V(e))&&(i[n]=t[e]);return i}var tt={};function nt(t,n){tt[t]=n}function et(t){return t%4==0&&t%100!=0||t%400==0}function it(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function rt(t){var n=+t,e=0;return 0!==n&&isFinite(n)&&(e=it(n)),e}function st(t,n){return function(e){return null!=e?(at(this,t,e),p.updateOffset(this,n),this):ot(this,t)}}function ot(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function at(t,n,e){t.isValid()&&!isNaN(e)&&("FullYear"===n&&et(t.year())&&1===t.month()&&29===t.date()?(e=rt(e),t._d["set"+(t._isUTC?"UTC":"")+n](e,t.month(),jt(e,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](e))}var ut,ht=/\d/,dt=/\d\d/,ct=/\d{3}/,lt=/\d{4}/,ft=/[+-]?\d{6}/,mt=/\d\d?/,pt=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,wt=/\d{1,3}/,vt=/\d{1,4}/,Ct=/[+-]?\d{1,6}/,yt=/\d+/,Mt=/[+-]?\d+/,bt=/Z|[+-]\d\d:?\d\d/gi,Yt=/Z|[+-]\d\d(?::?\d\d)?/gi,xt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Dt(t,n,e){ut[t]=F(n)?n:function(t){return t&&e?e:n}}function St(t,n){return v(ut,t)?ut[t](n._strict,n._locale):new RegExp(Nt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,e,i,r){return n||e||i||r}))))}function Nt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ut={};var kt={};function It(t,n){var e,i,r=n;for("string"==typeof t&&(t=[t]),M(n)&&(r=function(t,e){e[n]=rt(t)}),i=t.length,e=0;e<i;e++)kt[t[e]]=r}function Tt(t,n){It(t,(function(t,e,i,r){i._w=i._w||{},n(t,i._w,i,r)}))}function Et(t,n,e){null!=n&&v(kt,t)&&kt[t](n,e._a,e,t)}var Pt,Ut=0,Ht=1,Lt=2,At=3,Gt=4,Wt=5,Ft=6,Rt=7,Ot=8;function jt(t,n){if(isNaN(t)||isNaN(n))return NaN;var e=(n%12+12)%12;return t+=(n-e)/12,1===e?et(t)?29:28:31-e%7%2}Pt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},K("M",["MM",2],"Mo",(function(){return this.month()+1})),K("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),K("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Q("month","M"),nt("month",8),Dt("M",mt),Dt("MM",mt,dt),Dt("MMM",(function(t,n){return n.monthsShortRegex(t)})),Dt("MMMM",(function(t,n){return n.monthsRegex(t)})),It(["M","MM"],(function(t,n){n[Ht]=rt(t)-1})),It(["MMM","MMMM"],(function(t,n,e,i){var r=e._locale.monthsParse(t,i,e._strict);null!=r?n[Ht]=r:S(e).invalidMonth=t}));var _t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jt=xt,Kt=xt;function zt(t,n,e){var i,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=D([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return e?"MMM"===n?-1!==(r=Pt.call(this._shortMonthsParse,o))?r:null:-1!==(r=Pt.call(this._longMonthsParse,o))?r:null:"MMM"===n?-1!==(r=Pt.call(this._shortMonthsParse,o))||-1!==(r=Pt.call(this._longMonthsParse,o))?r:null:-1!==(r=Pt.call(this._longMonthsParse,o))||-1!==(r=Pt.call(this._shortMonthsParse,o))?r:null}function Xt(t,n){var e;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=rt(n);else if(!M(n=t.localeData().monthsParse(n)))return t;return e=Math.min(t.date(),jt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,e),t}function qt(t){return null!=t?(Xt(this,t),p.updateOffset(this,!0),this):ot(this,"Month")}function Qt(){function t(t,n){return n.length-t.length}var n,e,i=[],r=[],s=[];for(n=0;n<12;n++)e=D([2e3,n]),i.push(this.monthsShort(e,"")),r.push(this.months(e,"")),s.push(this.months(e,"")),s.push(this.monthsShort(e,""));for(i.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)i[n]=Nt(i[n]),r[n]=Nt(r[n]);for(n=0;n<24;n++)s[n]=Nt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Vt(t){return et(t)?366:365}K("Y",0,0,(function(){var t=this.year();return t<=9999?j(t,4):"+"+t})),K(0,["YY",2],0,(function(){return this.year()%100})),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),Q("year","y"),nt("year",1),Dt("Y",Mt),Dt("YY",mt,dt),Dt("YYYY",vt,lt),Dt("YYYYY",Ct,ft),Dt("YYYYYY",Ct,ft),It(["YYYYY","YYYYYY"],Ut),It("YYYY",(function(t,n){n[Ut]=2===t.length?p.parseTwoDigitYear(t):rt(t)})),It("YY",(function(t,n){n[Ut]=p.parseTwoDigitYear(t)})),It("Y",(function(t,n){n[Ut]=parseInt(t,10)})),p.parseTwoDigitYear=function(t){return rt(t)+(rt(t)>68?1900:2e3)};var $t=st("FullYear",!0);function tn(t,n,e,i,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,n,e,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,n,e,i,r,s,o),a}function nn(t){var n,e;return t<100&&t>=0?((e=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,e)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function en(t,n,e){var i=7+n-e;return-(7+nn(t,0,i).getUTCDay()-n)%7+i-1}function rn(t,n,e,i,r){var s,o,a=1+7*(n-1)+(7+e-i)%7+en(t,i,r);return a<=0?o=Vt(s=t-1)+a:a>Vt(t)?(s=t+1,o=a-Vt(t)):(s=t,o=a),{year:s,dayOfYear:o}}function sn(t,n,e){var i,r,s=en(t.year(),n,e),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?i=o+on(r=t.year()-1,n,e):o>on(t.year(),n,e)?(i=o-on(t.year(),n,e),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function on(t,n,e){var i=en(t,n,e),r=en(t+1,n,e);return(Vt(t)-i+r)/7}function an(t,n){return t.slice(n,7).concat(t.slice(0,n))}K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),Q("week","w"),Q("isoWeek","W"),nt("week",5),nt("isoWeek",5),Dt("w",mt),Dt("ww",mt,dt),Dt("W",mt),Dt("WW",mt,dt),Tt(["w","ww","W","WW"],(function(t,n,e,i){n[i.substr(0,1)]=rt(t)})),K("d",0,"do","day"),K("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),K("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),K("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),Q("day","d"),Q("weekday","e"),Q("isoWeekday","E"),nt("day",11),nt("weekday",11),nt("isoWeekday",11),Dt("d",mt),Dt("e",mt),Dt("E",mt),Dt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),Dt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),Dt("dddd",(function(t,n){return n.weekdaysRegex(t)})),Tt(["dd","ddd","dddd"],(function(t,n,e,i){var r=e._locale.weekdaysParse(t,i,e._strict);null!=r?n.d=r:S(e).invalidWeekday=t})),Tt(["d","e","E"],(function(t,n,e,i){n[i]=rt(t)}));var un="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cn=xt,ln=xt,fn=xt;function mn(t,n,e){var i,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=D([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return e?"dddd"===n?-1!==(r=Pt.call(this._weekdaysParse,o))?r:null:"ddd"===n?-1!==(r=Pt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Pt.call(this._minWeekdaysParse,o))?r:null:"dddd"===n?-1!==(r=Pt.call(this._weekdaysParse,o))||-1!==(r=Pt.call(this._shortWeekdaysParse,o))||-1!==(r=Pt.call(this._minWeekdaysParse,o))?r:null:"ddd"===n?-1!==(r=Pt.call(this._shortWeekdaysParse,o))||-1!==(r=Pt.call(this._weekdaysParse,o))||-1!==(r=Pt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Pt.call(this._minWeekdaysParse,o))||-1!==(r=Pt.call(this._weekdaysParse,o))||-1!==(r=Pt.call(this._shortWeekdaysParse,o))?r:null}function pn(){function t(t,n){return n.length-t.length}var n,e,i,r,s,o=[],a=[],u=[],h=[];for(n=0;n<7;n++)e=D([2e3,1]).day(n),i=Nt(this.weekdaysMin(e,"")),r=Nt(this.weekdaysShort(e,"")),s=Nt(this.weekdays(e,"")),o.push(i),a.push(r),u.push(s),h.push(i),h.push(r),h.push(s);o.sort(t),a.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function gn(){return this.hours()%12||12}function wn(t,n){K(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function vn(t,n){return n._meridiemParse}K("H",["HH",2],0,"hour"),K("h",["hh",2],0,gn),K("k",["kk",2],0,(function(){return this.hours()||24})),K("hmm",0,0,(function(){return""+gn.apply(this)+j(this.minutes(),2)})),K("hmmss",0,0,(function(){return""+gn.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),K("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),K("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),wn("a",!0),wn("A",!1),Q("hour","h"),nt("hour",13),Dt("a",vn),Dt("A",vn),Dt("H",mt),Dt("h",mt),Dt("k",mt),Dt("HH",mt,dt),Dt("hh",mt,dt),Dt("kk",mt,dt),Dt("hmm",pt),Dt("hmmss",gt),Dt("Hmm",pt),Dt("Hmmss",gt),It(["H","HH"],At),It(["k","kk"],(function(t,n){var e=rt(t);n[At]=24===e?0:e})),It(["a","A"],(function(t,n,e){e._isPm=e._locale.isPM(t),e._meridiem=t})),It(["h","hh"],(function(t,n,e){n[At]=rt(t),S(e).bigHour=!0})),It("hmm",(function(t,n,e){var i=t.length-2;n[At]=rt(t.substr(0,i)),n[Gt]=rt(t.substr(i)),S(e).bigHour=!0})),It("hmmss",(function(t,n,e){var i=t.length-4,r=t.length-2;n[At]=rt(t.substr(0,i)),n[Gt]=rt(t.substr(i,2)),n[Wt]=rt(t.substr(r)),S(e).bigHour=!0})),It("Hmm",(function(t,n){var e=t.length-2;n[At]=rt(t.substr(0,e)),n[Gt]=rt(t.substr(e))})),It("Hmmss",(function(t,n){var e=t.length-4,i=t.length-2;n[At]=rt(t.substr(0,e)),n[Gt]=rt(t.substr(e,2)),n[Wt]=rt(t.substr(i))}));var Cn,yn=st("Hours",!0),Mn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_t,monthsShort:Bt,week:{dow:0,doy:6},weekdays:un,weekdaysMin:dn,weekdaysShort:hn,meridiemParse:/[ap]\.?m?\.?/i},bn={},Yn={};function xn(t,n){var e,i=Math.min(t.length,n.length);for(e=0;e<i;e+=1)if(t[e]!==n[e])return e;return i}function Dn(t){return t?t.toLowerCase().replace("_","-"):t}function Sn(t){var n=null;if(void 0===bn[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=Cn._abbr,require("./locale/"+t),Nn(n)}catch(n){bn[t]=null}return bn[t]}function Nn(t,n){var e;return t&&((e=y(n)?In(t):kn(t,n))?Cn=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Cn._abbr}function kn(t,n){if(null!==n){var e,i=Mn;if(n.abbr=t,null!=bn[t])W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=bn[t]._config;else if(null!=n.parentLocale)if(null!=bn[n.parentLocale])i=bn[n.parentLocale]._config;else{if(null==(e=Sn(n.parentLocale)))return Yn[n.parentLocale]||(Yn[n.parentLocale]=[]),Yn[n.parentLocale].push({name:t,config:n}),null;i=e._config}return bn[t]=new O(R(i,n)),Yn[t]&&Yn[t].forEach((function(t){kn(t.name,t.config)})),Nn(t),bn[t]}return delete bn[t],null}function In(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Cn;if(!g(t)){if(n=Sn(t))return n;t=[t]}return function(t){for(var n,e,i,r,s=0;s<t.length;){for(n=(r=Dn(t[s]).split("-")).length,e=(e=Dn(t[s+1]))?e.split("-"):null;n>0;){if(i=Sn(r.slice(0,n).join("-")))return i;if(e&&e.length>=n&&xn(r,e)>=n-1)break;n--}s++}return Cn}(t)}function Tn(t){var n,e=t._a;return e&&-2===S(t).overflow&&(n=e[Ht]<0||e[Ht]>11?Ht:e[Lt]<1||e[Lt]>jt(e[Ut],e[Ht])?Lt:e[At]<0||e[At]>24||24===e[At]&&(0!==e[Gt]||0!==e[Wt]||0!==e[Ft])?At:e[Gt]<0||e[Gt]>59?Gt:e[Wt]<0||e[Wt]>59?Wt:e[Ft]<0||e[Ft]>999?Ft:-1,S(t)._overflowDayOfYear&&(n<Ut||n>Lt)&&(n=Lt),S(t)._overflowWeeks&&-1===n&&(n=Rt),S(t)._overflowWeekday&&-1===n&&(n=Ot),S(t).overflow=n),t}var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Un=/Z|[+-]\d\d(?::?\d\d)?/,Hn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ln=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],An=/^\/?Date\((-?\d+)/i,Gn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Wn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t){var n,e,i,r,s,o,a=t._i,u=En.exec(a)||Pn.exec(a),h=Hn.length,d=Ln.length;if(u){for(S(t).iso=!0,n=0,e=h;n<e;n++)if(Hn[n][1].exec(u[1])){r=Hn[n][0],i=!1!==Hn[n][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(n=0,e=d;n<e;n++)if(Ln[n][1].exec(u[3])){s=(u[2]||" ")+Ln[n][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Un.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),_n(t)}else t._isValid=!1}function Rn(t){var n,e,i,r,s,o,a,u,h,d=Gn.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(e=d[3],i=d[2],r=d[5],s=d[6],o=d[7],a=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Bt.indexOf(e),parseInt(i,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(t,n,e){return!t||hn.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(S(e).weekdayMismatch=!0,e._isValid=!1,!1)}(d[1],n=a,t))return;t._a=n,t._tzm=function(t,n,e){if(t)return Wn[t];if(n)return 0;var i=parseInt(e,10),r=i%100;return(i-r)/100*60+r}(d[8],d[9],d[10]),t._d=nn.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),S(t).rfc2822=!0}else t._isValid=!1}function On(t,n,e){return null!=t?t:null!=n?n:e}function jn(t){var n,e,i,r,s,o=[];if(!t._d){for(i=function(t){var n=new Date(p.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[Lt]&&null==t._a[Ht]&&function(t){var n,e,i,r,s,o,a,u,h;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,o=4,e=On(n.GG,t._a[Ut],sn(Jn(),1,4).year),i=On(n.W,1),((r=On(n.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,h=sn(Jn(),s,o),e=On(n.gg,t._a[Ut],h.year),i=On(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(u=!0)):r=s),i<1||i>on(e,s,o)?S(t)._overflowWeeks=!0:null!=u?S(t)._overflowWeekday=!0:(a=rn(e,i,r,s,o),t._a[Ut]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=On(t._a[Ut],i[Ut]),(t._dayOfYear>Vt(s)||0===t._dayOfYear)&&(S(t)._overflowDayOfYear=!0),e=nn(s,0,t._dayOfYear),t._a[Ht]=e.getUTCMonth(),t._a[Lt]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=i[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[At]&&0===t._a[Gt]&&0===t._a[Wt]&&0===t._a[Ft]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?nn:tn).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(S(t).weekdayMismatch=!0)}}function _n(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],S(t).empty=!0;var n,e,i,r,s,o,a,u=""+t._i,h=u.length,d=0;for(a=(i=X(t._f,t._locale).match(_)||[]).length,n=0;n<a;n++)(e=(u.match(St(r=i[n],t))||[])[0])&&((s=u.substr(0,u.indexOf(e))).length>0&&S(t).unusedInput.push(s),u=u.slice(u.indexOf(e)+e.length),d+=e.length),J[r]?(e?S(t).empty=!1:S(t).unusedTokens.push(r),Et(r,e,t)):t._strict&&!e&&S(t).unusedTokens.push(r);S(t).charsLeftOver=h-d,u.length>0&&S(t).unusedInput.push(u),t._a[At]<=12&&!0===S(t).bigHour&&t._a[At]>0&&(S(t).bigHour=void 0),S(t).parsedDateParts=t._a.slice(0),S(t).meridiem=t._meridiem,t._a[At]=function(t,n,e){var i;return null==e?n:null!=t.meridiemHour?t.meridiemHour(n,e):null!=t.isPM?((i=t.isPM(e))&&n<12&&(n+=12),i||12!==n||(n=0),n):n}(t._locale,t._a[At],t._meridiem),null!==(o=S(t).era)&&(t._a[Ut]=t._locale.erasConvertYear(o,t._a[Ut])),jn(t),Tn(t)}else Rn(t);else Fn(t)}function Bn(t){var n=t._i,e=t._f;return t._locale=t._locale||In(t._l),null===n||void 0===e&&""===n?k({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),U(n)?new P(Tn(n)):(b(n)?t._d=n:g(e)?function(t){var n,e,i,r,s,o,a=!1,u=t._f.length;if(0===u)return S(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,o=!1,n=E({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],_n(n),N(n)&&(o=!0),s+=S(n).charsLeftOver,s+=10*S(n).unusedTokens.length,S(n).score=s,a?s<i&&(i=s,e=n):(null==i||s<i||o)&&(i=s,e=n,o&&(a=!0));x(t,e||n)}(t):e?_n(t):function(t){var n=t._i;y(n)?t._d=new Date(p.now()):b(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=An.exec(t._i);null===n?(Fn(t),!1===t._isValid&&(delete t._isValid,Rn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):g(n)?(t._a=Y(n.slice(0),(function(t){return parseInt(t,10)})),jn(t)):w(n)?function(t){if(!t._d){var n=$(t._i);t._a=Y([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),jn(t)}}(t):M(n)?t._d=new Date(n):p.createFromInputFallback(t)}(t),N(t)||(t._d=null),t))}function Zn(t,n,e,i,r){var s,o={};return!0!==n&&!1!==n||(i=n,n=void 0),!0!==e&&!1!==e||(i=e,e=void 0),(w(t)&&C(t)||g(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=e,o._i=t,o._f=n,o._strict=i,(s=new P(Tn(Bn(o))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Jn(t,n,e,i){return Zn(t,n,e,i,!1)}p.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Kn=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Jn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:k()})),zn=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Jn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:k()}));function Xn(t,n){var e,i;if(1===n.length&&g(n[0])&&(n=n[0]),!n.length)return Jn();for(e=n[0],i=1;i<n.length;++i)n[i].isValid()&&!n[i][t](e)||(e=n[i]);return e}var qn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Qn(t){var n=$(t),e=n.year||0,i=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,o=n.day||0,a=n.hour||0,u=n.minute||0,h=n.second||0,d=n.millisecond||0;this._isValid=function(t){var n,e,i=!1,r=qn.length;for(n in t)if(v(t,n)&&(-1===Pt.call(qn,n)||null!=t[n]&&isNaN(t[n])))return!1;for(e=0;e<r;++e)if(t[qn[e]]){if(i)return!1;parseFloat(t[qn[e]])!==rt(t[qn[e]])&&(i=!0)}return!0}(n),this._milliseconds=+d+1e3*h+6e4*u+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*i+12*e,this._data={},this._locale=In(),this._bubble()}function Vn(t){return t instanceof Qn}function $n(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function te(t,n){K(t,0,0,(function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+j(~~(t/60),2)+n+j(~~t%60,2)}))}te("Z",":"),te("ZZ",""),Dt("Z",Yt),Dt("ZZ",Yt),It(["Z","ZZ"],(function(t,n,e){e._useUTC=!0,e._tzm=ee(Yt,t)}));var ne=/([\+\-]|\d\d)/gi;function ee(t,n){var e,i,r=(n||"").match(t);return null===r?null:0===(i=60*(e=((r[r.length-1]||[])+"").match(ne)||["-",0,0])[1]+rt(e[2]))?0:"+"===e[0]?i:-i}function ie(t,n){var e,i;return n._isUTC?(e=n.clone(),i=(U(t)||b(t)?t.valueOf():Jn(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+i),p.updateOffset(e,!1),e):Jn(t).local()}function re(t){return-Math.round(t._d.getTimezoneOffset())}function se(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var oe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ae=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ue(t,n){var e,i,r,s,o,a,u=t,h=null;return Vn(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:M(t)||!isNaN(+t)?(u={},n?u[n]=+t:u.milliseconds=+t):(h=oe.exec(t))?(e="-"===h[1]?-1:1,u={y:0,d:rt(h[Lt])*e,h:rt(h[At])*e,m:rt(h[Gt])*e,s:rt(h[Wt])*e,ms:rt($n(1e3*h[Ft]))*e}):(h=ae.exec(t))?u={y:he(h[2],e="-"===h[1]?-1:1),M:he(h[3],e),w:he(h[4],e),d:he(h[5],e),h:he(h[6],e),m:he(h[7],e),s:he(h[8],e)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Jn(u.from),o=Jn(u.to),r=s.isValid()&&o.isValid()?(o=ie(o,s),s.isBefore(o)?a=de(s,o):((a=de(o,s)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Qn(u),Vn(t)&&v(t,"_locale")&&(i._locale=t._locale),Vn(t)&&v(t,"_isValid")&&(i._isValid=t._isValid),i}function he(t,n){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n}function de(t,n){var e={};return e.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(e.months,"M").isAfter(n)&&--e.months,e.milliseconds=+n-+t.clone().add(e.months,"M"),e}function ce(t,n){return function(e,i){var r;return null===i||isNaN(+i)||(W(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=i,i=r),le(this,ue(e,i),t),this}}function le(t,n,e,i){var r=n._milliseconds,s=$n(n._days),o=$n(n._months);t.isValid()&&(i=null==i||i,o&&Xt(t,ot(t,"Month")+o*e),s&&at(t,"Date",ot(t,"Date")+s*e),r&&t._d.setTime(t._d.valueOf()+r*e),i&&p.updateOffset(t,s||o))}ue.fn=Qn.prototype,ue.invalid=function(){return ue(NaN)};var fe=ce(1,"add"),me=ce(-1,"subtract");function pe(t){return"string"==typeof t||t instanceof String}function ge(t,n){if(t.date()<n.date())return-ge(n,t);var e=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(e,"months");return-(e+(n-i<0?(n-i)/(i-t.clone().add(e-1,"months")):(n-i)/(t.clone().add(e+1,"months")-i)))||0}function we(t){var n;return void 0===t?this._locale._abbr:(null!=(n=In(t))&&(this._locale=n),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ve=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ce(){return this._locale}var ye=1e3,Me=6e4,be=36e5,Ye=126227808e5;function xe(t,n){return(t%n+n)%n}function De(t,n,e){return t<100&&t>=0?new Date(t+400,n,e)-Ye:new Date(t,n,e).valueOf()}function Se(t,n,e){return t<100&&t>=0?Date.UTC(t+400,n,e)-Ye:Date.UTC(t,n,e)}function Ne(t,n){return n.erasAbbrRegex(t)}function ke(){var t,n,e=[],i=[],r=[],s=[],o=this.eras();for(t=0,n=o.length;t<n;++t)i.push(Nt(o[t].name)),e.push(Nt(o[t].abbr)),r.push(Nt(o[t].narrow)),s.push(Nt(o[t].name)),s.push(Nt(o[t].abbr)),s.push(Nt(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ie(t,n){K(0,[t,t.length],0,n)}function Te(t,n,e,i,r){var s;return null==t?sn(this,i,r).year:(n>(s=on(t,i,r))&&(n=s),Ee.call(this,t,n,e,i,r))}function Ee(t,n,e,i,r){var s=rn(t,n,e,i,r),o=nn(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}K("N",0,0,"eraAbbr"),K("NN",0,0,"eraAbbr"),K("NNN",0,0,"eraAbbr"),K("NNNN",0,0,"eraName"),K("NNNNN",0,0,"eraNarrow"),K("y",["y",1],"yo","eraYear"),K("y",["yy",2],0,"eraYear"),K("y",["yyy",3],0,"eraYear"),K("y",["yyyy",4],0,"eraYear"),Dt("N",Ne),Dt("NN",Ne),Dt("NNN",Ne),Dt("NNNN",(function(t,n){return n.erasNameRegex(t)})),Dt("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),It(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,e,i){var r=e._locale.erasParse(t,i,e._strict);r?S(e).era=r:S(e).invalidEra=t})),Dt("y",yt),Dt("yy",yt),Dt("yyy",yt),Dt("yyyy",yt),Dt("yo",(function(t,n){return n._eraYearOrdinalRegex||yt})),It(["y","yy","yyy","yyyy"],Ut),It(["yo"],(function(t,n,e){var i;e._locale._eraYearOrdinalRegex&&(i=t.match(e._locale._eraYearOrdinalRegex)),n[Ut]=e._locale.eraYearOrdinalParse?e._locale.eraYearOrdinalParse(t,i):parseInt(t,10)})),K(0,["gg",2],0,(function(){return this.weekYear()%100})),K(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ie("gggg","weekYear"),Ie("ggggg","weekYear"),Ie("GGGG","isoWeekYear"),Ie("GGGGG","isoWeekYear"),Q("weekYear","gg"),Q("isoWeekYear","GG"),nt("weekYear",1),nt("isoWeekYear",1),Dt("G",Mt),Dt("g",Mt),Dt("GG",mt,dt),Dt("gg",mt,dt),Dt("GGGG",vt,lt),Dt("gggg",vt,lt),Dt("GGGGG",Ct,ft),Dt("ggggg",Ct,ft),Tt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,e,i){n[i.substr(0,2)]=rt(t)})),Tt(["gg","GG"],(function(t,n,e,i){n[i]=p.parseTwoDigitYear(t)})),K("Q",0,"Qo","quarter"),Q("quarter","Q"),nt("quarter",7),Dt("Q",ht),It("Q",(function(t,n){n[Ht]=3*(rt(t)-1)})),K("D",["DD",2],"Do","date"),Q("date","D"),nt("date",9),Dt("D",mt),Dt("DD",mt,dt),Dt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),It(["D","DD"],Lt),It("Do",(function(t,n){n[Lt]=rt(t.match(mt)[0])}));var Pe=st("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("dayOfYear","DDD"),nt("dayOfYear",4),Dt("DDD",wt),Dt("DDDD",ct),It(["DDD","DDDD"],(function(t,n,e){e._dayOfYear=rt(t)})),K("m",["mm",2],0,"minute"),Q("minute","m"),nt("minute",14),Dt("m",mt),Dt("mm",mt,dt),It(["m","mm"],Gt);var Ue=st("Minutes",!1);K("s",["ss",2],0,"second"),Q("second","s"),nt("second",15),Dt("s",mt),Dt("ss",mt,dt),It(["s","ss"],Wt);var He,Le,Ae=st("Seconds",!1);for(K("S",0,0,(function(){return~~(this.millisecond()/100)})),K(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),K(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),K(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),K(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),K(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),K(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Q("millisecond","ms"),nt("millisecond",16),Dt("S",wt,ht),Dt("SS",wt,dt),Dt("SSS",wt,ct),He="SSSS";He.length<=9;He+="S")Dt(He,yt);function Ge(t,n){n[Ft]=rt(1e3*("0."+t))}for(He="S";He.length<=9;He+="S")It(He,Ge);Le=st("Milliseconds",!1),K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");var We=P.prototype;function Fe(t){return t}We.add=fe,We.calendar=function(t,n){var e;1===arguments.length&&(arguments[0]?U(e=arguments[0])||b(e)||pe(e)||M(e)||function(t){var n=g(t),e=!1;return n&&(e=0===t.filter((function(n){return!M(n)&&pe(t)})).length),n&&e}(e)||function(t){var n,e=w(t)&&!C(t),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(n=0;n<s;n+=1)i=i||v(t,r[n]);return e&&i}(e)||null==e?(t=arguments[0],n=void 0):function(t){var n,e=w(t)&&!C(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<r.length;n+=1)i=i||v(t,r[n]);return e&&i}(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var i=t||Jn(),r=ie(i,this).startOf("day"),s=p.calendarFormat(this,r)||"sameElse",o=n&&(F(n[s])?n[s].call(this,i):n[s]);return this.format(o||this.localeData().calendar(s,this,Jn(i)))},We.clone=function(){return new P(this)},We.diff=function(t,n,e){var i,r,s;if(!this.isValid())return NaN;if(!(i=ie(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),n=V(n)){case"year":s=ge(this,i)/12;break;case"month":s=ge(this,i);break;case"quarter":s=ge(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return e?s:it(s)},We.endOf=function(t){var n,e;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Se:De,t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=be-xe(n+(this._isUTC?0:this.utcOffset()*Me),be)-1;break;case"minute":n=this._d.valueOf(),n+=Me-xe(n,Me)-1;break;case"second":n=this._d.valueOf(),n+=ye-xe(n,ye)-1}return this._d.setTime(n),p.updateOffset(this,!0),this},We.format=function(t){t||(t=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var n=z(this,t);return this.localeData().postformat(n)},We.from=function(t,n){return this.isValid()&&(U(t)&&t.isValid()||Jn(t).isValid())?ue({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},We.fromNow=function(t){return this.from(Jn(),t)},We.to=function(t,n){return this.isValid()&&(U(t)&&t.isValid()||Jn(t).isValid())?ue({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},We.toNow=function(t){return this.to(Jn(),t)},We.get=function(t){return F(this[t=V(t)])?this[t]():this},We.invalidAt=function(){return S(this).overflow},We.isAfter=function(t,n){var e=U(t)?t:Jn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=V(n)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(n).valueOf())},We.isBefore=function(t,n){var e=U(t)?t:Jn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=V(n)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(n).valueOf()<e.valueOf())},We.isBetween=function(t,n,e,i){var r=U(t)?t:Jn(t),s=U(n)?n:Jn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,e):!this.isBefore(r,e))&&(")"===i[1]?this.isBefore(s,e):!this.isAfter(s,e))},We.isSame=function(t,n){var e,i=U(t)?t:Jn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=V(n)||"millisecond")?this.valueOf()===i.valueOf():(e=i.valueOf(),this.clone().startOf(n).valueOf()<=e&&e<=this.clone().endOf(n).valueOf()))},We.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},We.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},We.isValid=function(){return N(this)},We.lang=ve,We.locale=we,We.localeData=Ce,We.max=zn,We.min=Kn,We.parsingFlags=function(){return x({},S(this))},We.set=function(t,n){if("object"==typeof t){var e,i=function(t){var n,e=[];for(n in t)v(t,n)&&e.push({unit:n,priority:tt[n]});return e.sort((function(t,n){return t.priority-n.priority})),e}(t=$(t)),r=i.length;for(e=0;e<r;e++)this[i[e].unit](t[i[e].unit])}else if(F(this[t=V(t)]))return this[t](n);return this},We.startOf=function(t){var n,e;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Se:De,t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=xe(n+(this._isUTC?0:this.utcOffset()*Me),be);break;case"minute":n=this._d.valueOf(),n-=xe(n,Me);break;case"second":n=this._d.valueOf(),n-=xe(n,ye)}return this._d.setTime(n),p.updateOffset(this,!0),this},We.subtract=me,We.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},We.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},We.toDate=function(){return new Date(this.valueOf())},We.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,e=n?this.clone().utc():this;return e.year()<0||e.year()>9999?z(e,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):F(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(e,"Z")):z(e,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},We.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,e="moment",i="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(We[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),We.toJSON=function(){return this.isValid()?this.toISOString():null},We.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},We.unix=function(){return Math.floor(this.valueOf()/1e3)},We.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},We.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},We.eraName=function(){var t,n,e,i=this.localeData().eras();for(t=0,n=i.length;t<n;++t){if(e=this.clone().startOf("day").valueOf(),i[t].since<=e&&e<=i[t].until)return i[t].name;if(i[t].until<=e&&e<=i[t].since)return i[t].name}return""},We.eraNarrow=function(){var t,n,e,i=this.localeData().eras();for(t=0,n=i.length;t<n;++t){if(e=this.clone().startOf("day").valueOf(),i[t].since<=e&&e<=i[t].until)return i[t].narrow;if(i[t].until<=e&&e<=i[t].since)return i[t].narrow}return""},We.eraAbbr=function(){var t,n,e,i=this.localeData().eras();for(t=0,n=i.length;t<n;++t){if(e=this.clone().startOf("day").valueOf(),i[t].since<=e&&e<=i[t].until)return i[t].abbr;if(i[t].until<=e&&e<=i[t].since)return i[t].abbr}return""},We.eraYear=function(){var t,n,e,i,r=this.localeData().eras();for(t=0,n=r.length;t<n;++t)if(e=r[t].since<=r[t].until?1:-1,i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return(this.year()-p(r[t].since).year())*e+r[t].offset;return this.year()},We.year=$t,We.isLeapYear=function(){return et(this.year())},We.weekYear=function(t){return Te.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},We.isoWeekYear=function(t){return Te.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},We.quarter=We.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},We.month=qt,We.daysInMonth=function(){return jt(this.year(),this.month())},We.week=We.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},We.isoWeek=We.isoWeeks=function(t){var n=sn(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},We.weeksInYear=function(){var t=this.localeData()._week;return on(this.year(),t.dow,t.doy)},We.weeksInWeekYear=function(){var t=this.localeData()._week;return on(this.weekYear(),t.dow,t.doy)},We.isoWeeksInYear=function(){return on(this.year(),1,4)},We.isoWeeksInISOWeekYear=function(){return on(this.isoWeekYear(),1,4)},We.date=Pe,We.day=We.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},We.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},We.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},We.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},We.hour=We.hours=yn,We.minute=We.minutes=Ue,We.second=We.seconds=Ae,We.millisecond=We.milliseconds=Le,We.utcOffset=function(t,n,e){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ee(Yt,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(i=re(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!n||this._changeInProgress?le(this,ue(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:re(this)},We.utc=function(t){return this.utcOffset(0,t)},We.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(re(this),"m")),this},We.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ee(bt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},We.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Jn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},We.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},We.isLocal=function(){return!!this.isValid()&&!this._isUTC},We.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},We.isUtc=se,We.isUTC=se,We.zoneAbbr=function(){return this._isUTC?"UTC":""},We.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},We.dates=L("dates accessor is deprecated. Use date instead.",Pe),We.months=L("months accessor is deprecated. Use month instead",qt),We.years=L("years accessor is deprecated. Use year instead",$t),We.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),We.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!y(this._isDSTShifted))return this._isDSTShifted;var t,n={};return E(n,this),(n=Bn(n))._a?(t=n._isUTC?D(n._a):Jn(n._a),this._isDSTShifted=this.isValid()&&function(t,n){var e,i=Math.min(t.length,n.length),r=Math.abs(t.length-n.length),s=0;for(e=0;e<i;e++)rt(t[e])!==rt(n[e])&&s++;return s+r}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Re=O.prototype;function Oe(t,n,e,i){var r=In(),s=D().set(i,n);return r[e](s,t)}function je(t,n,e){if(M(t)&&(n=t,t=void 0),t=t||"",null!=n)return Oe(t,n,e,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Oe(t,i,e,"month");return r}function _e(t,n,e,i){"boolean"==typeof t?(M(n)&&(e=n,n=void 0),n=n||""):(e=n=t,t=!1,M(n)&&(e=n,n=void 0),n=n||"");var r,s=In(),o=t?s._week.dow:0,a=[];if(null!=e)return Oe(n,(e+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Oe(n,(r+o)%7,i,"day");return a}Re.calendar=function(t,n,e){var i=this._calendar[t]||this._calendar.sameElse;return F(i)?i.call(n,e):i},Re.longDateFormat=function(t){var n=this._longDateFormat[t],e=this._longDateFormat[t.toUpperCase()];return n||!e?n:(this._longDateFormat[t]=e.match(_).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Re.invalidDate=function(){return this._invalidDate},Re.ordinal=function(t){return this._ordinal.replace("%d",t)},Re.preparse=Fe,Re.postformat=Fe,Re.relativeTime=function(t,n,e,i){var r=this._relativeTime[e];return F(r)?r(t,n,e,i):r.replace(/%d/i,t)},Re.pastFuture=function(t,n){var e=this._relativeTime[t>0?"future":"past"];return F(e)?e(n):e.replace(/%s/i,n)},Re.set=function(t){var n,e;for(e in t)v(t,e)&&(F(n=t[e])?this[e]=n:this["_"+e]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Re.eras=function(){var t,n,e,i=this._eras||In("en")._eras;for(t=0,n=i.length;t<n;++t)switch("string"==typeof i[t].since&&(e=p(i[t].since).startOf("day"),i[t].since=e.valueOf()),typeof i[t].until){case"undefined":i[t].until=1/0;break;case"string":e=p(i[t].until).startOf("day").valueOf(),i[t].until=e.valueOf()}return i},Re.erasParse=function(t,n,e){var i,r,s,o,a,u=this.eras();for(t=t.toUpperCase(),i=0,r=u.length;i<r;++i)if(s=u[i].name.toUpperCase(),o=u[i].abbr.toUpperCase(),a=u[i].narrow.toUpperCase(),e)switch(n){case"N":case"NN":case"NNN":if(o===t)return u[i];break;case"NNNN":if(s===t)return u[i];break;case"NNNNN":if(a===t)return u[i]}else if([s,o,a].indexOf(t)>=0)return u[i]},Re.erasConvertYear=function(t,n){var e=t.since<=t.until?1:-1;return void 0===n?p(t.since).year():p(t.since).year()+(n-t.offset)*e},Re.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||ke.call(this),t?this._erasAbbrRegex:this._erasRegex},Re.erasNameRegex=function(t){return v(this,"_erasNameRegex")||ke.call(this),t?this._erasNameRegex:this._erasRegex},Re.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||ke.call(this),t?this._erasNarrowRegex:this._erasRegex},Re.months=function(t,n){return t?g(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Zt).test(n)?"format":"standalone"][t.month()]:g(this._months)?this._months:this._months.standalone},Re.monthsShort=function(t,n){return t?g(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Zt.test(n)?"format":"standalone"][t.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Re.monthsParse=function(t,n,e){var i,r,s;if(this._monthsParseExact)return zt.call(this,t,n,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=D([2e3,i]),e&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),e||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),e&&"MMMM"===n&&this._longMonthsParse[i].test(t))return i;if(e&&"MMM"===n&&this._shortMonthsParse[i].test(t))return i;if(!e&&this._monthsParse[i].test(t))return i}},Re.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Qt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Kt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Re.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Qt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Re.week=function(t){return sn(t,this._week.dow,this._week.doy).week},Re.firstDayOfYear=function(){return this._week.doy},Re.firstDayOfWeek=function(){return this._week.dow},Re.weekdays=function(t,n){var e=g(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?an(e,this._week.dow):t?e[t.day()]:e},Re.weekdaysMin=function(t){return!0===t?an(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Re.weekdaysShort=function(t){return!0===t?an(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Re.weekdaysParse=function(t,n,e){var i,r,s;if(this._weekdaysParseExact)return mn.call(this,t,n,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=D([2e3,1]).day(i),e&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),e&&"dddd"===n&&this._fullWeekdaysParse[i].test(t))return i;if(e&&"ddd"===n&&this._shortWeekdaysParse[i].test(t))return i;if(e&&"dd"===n&&this._minWeekdaysParse[i].test(t))return i;if(!e&&this._weekdaysParse[i].test(t))return i}},Re.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=cn),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Re.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ln),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Re.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Re.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Re.meridiem=function(t,n,e){return t>11?e?"pm":"PM":e?"am":"AM"},Nn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===rt(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),p.lang=L("moment.lang is deprecated. Use moment.locale instead.",Nn),p.langData=L("moment.langData is deprecated. Use moment.localeData instead.",In);var Be=Math.abs;function Ze(t,n,e,i){var r=ue(n,e);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Je(t){return t<0?Math.floor(t):Math.ceil(t)}function Ke(t){return 4800*t/146097}function ze(t){return 146097*t/4800}function Xe(t){return function(){return this.as(t)}}var qe=Xe("ms"),Qe=Xe("s"),Ve=Xe("m"),$e=Xe("h"),ti=Xe("d"),ni=Xe("w"),ei=Xe("M"),ii=Xe("Q"),ri=Xe("y");function si(t){return function(){return this.isValid()?this._data[t]:NaN}}var oi=si("milliseconds"),ai=si("seconds"),ui=si("minutes"),hi=si("hours"),di=si("days"),ci=si("months"),li=si("years"),fi=Math.round,mi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pi(t,n,e,i,r){return r.relativeTime(n||1,!!e,t,i)}var gi=Math.abs;function wi(t){return(t>0)-(t<0)||+t}function vi(){if(!this.isValid())return this.localeData().invalidDate();var t,n,e,i,r,s,o,a,u=gi(this._milliseconds)/1e3,h=gi(this._days),d=gi(this._months),c=this.asSeconds();return c?(t=it(u/60),n=it(t/60),u%=60,t%=60,e=it(d/12),d%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=wi(this._months)!==wi(c)?"-":"",o=wi(this._days)!==wi(c)?"-":"",a=wi(this._milliseconds)!==wi(c)?"-":"",r+"P"+(e?s+e+"Y":"")+(d?s+d+"M":"")+(h?o+h+"D":"")+(n||t||u?"T":"")+(n?a+n+"H":"")+(t?a+t+"M":"")+(u?a+i+"S":"")):"P0D"}var Ci=Qn.prototype;Ci.isValid=function(){return this._isValid},Ci.abs=function(){var t=this._data;return this._milliseconds=Be(this._milliseconds),this._days=Be(this._days),this._months=Be(this._months),t.milliseconds=Be(t.milliseconds),t.seconds=Be(t.seconds),t.minutes=Be(t.minutes),t.hours=Be(t.hours),t.months=Be(t.months),t.years=Be(t.years),this},Ci.add=function(t,n){return Ze(this,t,n,1)},Ci.subtract=function(t,n){return Ze(this,t,n,-1)},Ci.as=function(t){if(!this.isValid())return NaN;var n,e,i=this._milliseconds;if("month"===(t=V(t))||"quarter"===t||"year"===t)switch(e=this._months+Ke(n=this._days+i/864e5),t){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(n=this._days+Math.round(ze(this._months)),t){case"week":return n/7+i/6048e5;case"day":return n+i/864e5;case"hour":return 24*n+i/36e5;case"minute":return 1440*n+i/6e4;case"second":return 86400*n+i/1e3;case"millisecond":return Math.floor(864e5*n)+i;default:throw new Error("Unknown unit "+t)}},Ci.asMilliseconds=qe,Ci.asSeconds=Qe,Ci.asMinutes=Ve,Ci.asHours=$e,Ci.asDays=ti,Ci.asWeeks=ni,Ci.asMonths=ei,Ci.asQuarters=ii,Ci.asYears=ri,Ci.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*rt(this._months/12):NaN},Ci._bubble=function(){var t,n,e,i,r,s=this._milliseconds,o=this._days,a=this._months,u=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Je(ze(a)+o),o=0,a=0),u.milliseconds=s%1e3,t=it(s/1e3),u.seconds=t%60,n=it(t/60),u.minutes=n%60,e=it(n/60),u.hours=e%24,o+=it(e/24),a+=r=it(Ke(o)),o-=Je(ze(r)),i=it(a/12),a%=12,u.days=o,u.months=a,u.years=i,this},Ci.clone=function(){return ue(this)},Ci.get=function(t){return t=V(t),this.isValid()?this[t+"s"]():NaN},Ci.milliseconds=oi,Ci.seconds=ai,Ci.minutes=ui,Ci.hours=hi,Ci.days=di,Ci.weeks=function(){return it(this.days()/7)},Ci.months=ci,Ci.years=li,Ci.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var e,i,r=!1,s=mi;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},mi,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),i=function(t,n,e,i){var r=ue(t).abs(),s=fi(r.as("s")),o=fi(r.as("m")),a=fi(r.as("h")),u=fi(r.as("d")),h=fi(r.as("M")),d=fi(r.as("w")),c=fi(r.as("y")),l=s<=e.ss&&["s",s]||s<e.s&&["ss",s]||o<=1&&["m"]||o<e.m&&["mm",o]||a<=1&&["h"]||a<e.h&&["hh",a]||u<=1&&["d"]||u<e.d&&["dd",u];return null!=e.w&&(l=l||d<=1&&["w"]||d<e.w&&["ww",d]),(l=l||h<=1&&["M"]||h<e.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=n,l[3]=+t>0,l[4]=i,pi.apply(null,l)}(this,!r,s,e=this.localeData()),r&&(i=e.pastFuture(+this,i)),e.postformat(i)},Ci.toISOString=vi,Ci.toString=vi,Ci.toJSON=vi,Ci.locale=we,Ci.localeData=Ce,Ci.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vi),Ci.lang=ve,K("X",0,0,"unix"),K("x",0,0,"valueOf"),Dt("x",Mt),Dt("X",/[+-]?\d+(\.\d{1,3})?/),It("X",(function(t,n,e){e._d=new Date(1e3*parseFloat(t))})),It("x",(function(t,n,e){e._d=new Date(rt(t))})),
|
|
2
2
|
//! moment.js
|
|
3
|
-
p.version="2.29.4",f=Jn,p.fn=We,p.min=function(){return Xn("isBefore",[].slice.call(arguments,0))},p.max=function(){return Xn("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=D,p.unix=function(t){return Jn(1e3*t)},p.months=function(t,n){return je(t,n,"months")},p.isDate=b,p.locale=Nn,p.invalid=k,p.duration=ue,p.isMoment=U,p.weekdays=function(t,n,e){return _e(t,n,e,"weekdays")},p.parseZone=function(){return Jn.apply(null,arguments).parseZone()},p.localeData=In,p.isDuration=Vn,p.monthsShort=function(t,n){return je(t,n,"monthsShort")},p.weekdaysMin=function(t,n,e){return _e(t,n,e,"weekdaysMin")},p.defineLocale=kn,p.updateLocale=function(t,n){if(null!=n){var e,i,r=Mn;null!=bn[t]&&null!=bn[t].parentLocale?bn[t].set(R(bn[t]._config,n)):(null!=(i=Sn(t))&&(r=i._config),n=R(r,n),null==i&&(n.abbr=t),(e=new O(n)).parentLocale=bn[t],bn[t]=e),Nn(t)}else null!=bn[t]&&(null!=bn[t].parentLocale?(bn[t]=bn[t].parentLocale,t===Nn()&&Nn(t)):null!=bn[t]&&delete bn[t]);return bn[t]},p.locales=function(){return A(bn)},p.weekdaysShort=function(t,n,e){return _e(t,n,e,"weekdaysShort")},p.normalizeUnits=V,p.relativeTimeRounding=function(t){return void 0===t?fi:"function"==typeof t&&(fi=t,!0)},p.relativeTimeThreshold=function(t,n){return void 0!==mi[t]&&(void 0===n?mi[t]:(mi[t]=n,"s"===t&&(mi.ss=n-1),!0))},p.calendarFormat=function(t,n){var e=t.diff(n,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=We,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const yi={fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,usedNumberOfRounds,currentTime,expireTime,activatedAt",status:`${l.ACTIVE},${l.ACTIVATED}`},Mi='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.75 12.2505L12.25 1.75049" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M1.75 1.75049L12.25 12.2505" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',bi=class{constructor(e){t(this,e),this.showDetailsEvent=n(this,"showPowerupDetails",7),this.powerupsLoadEvent=n(this,"powerupsLoad",7),this.closePowerupsEvent=n(this,"closePowerupsList",7),this.mbSource=void 0,this.gameId=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=30,this.disableCount=!1,this.isLoading=!1,this.isLoadingGamePowers=!1,this.isActivating=!1,this.powerups=[],this.total=0,this.isPowering=!1,this.showConfirmModal=!1,this.currentPowerup=void 0,this.validPowerIds=[],this.activeMessage=void 0,this.showToasting=!1,this.debouncedReload=function(t){let n;return function(...e){const i=this;clearTimeout(n),n=setTimeout((()=>t.apply(i,e)),100)}}(this.reloadPowerups)}reloadPowerupsHandler(t){const{onlyGamePowers:n}=t.detail;this.reloadPowerups(!!n)}activePowerupHandler(t){this.currentPowerup&&(t.detail.id===this.currentPowerup.id&&this.activePowerUp(this.currentPowerup),this.showConfirmModal=!1)}powerupTimeCountDownHandler(t){this.disableCount||t.detail.timeLeft<=0&&this.reloadPowerups()}async reloadPowerups(t=!1){t?await this.loadGamePowers():await this.loadData(!1)}handleConfigChange(){this.debouncedReload()}async loadGamePowers(){if(!this.isLoadingGamePowers)try{this.isLoadingGamePowers=!0;const t=new URL(`${this.endpoint}/v1/elevate/powerups`),n={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"};t.searchParams.append("filter",`gameId=${this.gameId}`),Object.entries(yi).forEach((([n,e])=>{t.searchParams.append(n,e)}));const e=await fetch(t,n);if(!e.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:e.status}),new Error(`HTTP error! status: ${e.status}`);const{data:i,total:r}=await e.json();this.validPowerIds=i.map((t=>t.powerUpID)),this.powerupsLoadEvent.emit({powerups:i,total:r})}catch(t){console.error("Failed to load game powerups:",t)}finally{this.isLoadingGamePowers=!1}}async loadData(t=!0){if(!(this.isLoading||this.total>0&&this.powerups.length>=this.total)){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController,t||(this.powerups=[],this.total=0,await this.loadGamePowers());try{const t=this.powerups.length,n=new URL(`${this.endpoint}/v1/elevate/powerups`),e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};n.searchParams.append("pagination",`offset=${t},limit=${this.limit}`),n.searchParams.append("language",this.language),Object.entries(yi).forEach((([t,e])=>{n.searchParams.append(t,e)}));const i=await fetch(n,e);if(!i.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:i.status}),new Error(`HTTP error! status: ${i.status}`);const{data:r,total:s,success:o,errorMessage:a}=await i.json();if(!o)throw this.activeMessage={isSuccessed:!1,info:h("LoadDataFailed")},this.showToasting=!0,this.timerId=setTimeout((()=>{this.showToasting=!1}),2e3),new Error(`HTTP error! status: ${a}`);this.powerups=[...this.powerups,...r],this.isPowering=this.powerups.filter((t=>t.status===l.ACTIVATED)).length>0,this.powerups.forEach((t=>{t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1})),this.total=s}catch(t){"AbortError"!==t.name&&console.error("Failed to load powerups:",t)}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}initializeObserver(){this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.loadMoreObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&""!=t.target.innerHTML&&this.loadData().catch(console.error)}))})),this.lastItemElement&&this.loadMoreObserver.observe(this.lastItemElement)}async activePowerUp(t){if(this.endpoint&&this.session&&!this.isActivating&&!this.isPowering){this.isActivating=!0,this.powerups.forEach((n=>{n.id===t.id&&(n.status=l.ACTIVATING)})),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const n=new URL(`${this.endpoint}/v1/elevate/activatepowerup`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"PUT",signal:this.abortController.signal,body:JSON.stringify({powerUpId:t.id})};const i=await fetch(n.href,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const r=await i.json();(null==r?void 0:r.success)&&(this.isPowering=!0),this.activeMessage={isSuccessed:r.success,info:h(r.success?"activeSuccess":"activeError",this.language),detail:r.errorMessage},this.showToasting=!0,this.timerId=setTimeout((()=>{this.showToasting=!1,r.success&&this.reloadPowerups()}),2e3)}catch(t){console.error(t)}finally{this.abortController.signal.aborted||(this.isActivating=!1)}}}onClose(){this.closePowerupsEvent.emit({powerups:this.powerups})}showDetail(t){t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1,this.showDetailsEvent.emit({id:t.id,powerup:t})}onActiveBtnClick(t){this.isPowering||this.isActivating||!t.isValidForCurrentGame||(this.currentPowerup=t,this.showConfirmModal=!0)}componentDidUpdate(){this.total>0&&this.powerups.length<this.total&&this.initializeObserver()}render(){var t,n,i,r;return e("div",{key:"46173d19e0994034918cb53d7cae029372a9a872",class:"IngamePowerUpsContainer",ref:t=>this.stylingContainer=t},e("div",{key:"5bf0e49116a07bab74335e71f872f0a481c5e1f9",class:"TopBar "+(this.showConfirmModal?"Hidden":"")},e("span",{key:"23ac83a58a001dd1c6835176c7746210c57b33d8",class:"BarTitle"},h("powerups",this.language)),e("div",{key:"5a935b3eee02c3f5d6acc33dee137c69a3f1df22",class:"IconBtn CircleLinearBorder",onClick:this.onClose.bind(this),innerHTML:Mi})),this.isLoading&&0===this.powerups.length?e("smart-loader",null):this.powerups.length>0?e("div",{class:"Cards "+(this.showConfirmModal||0===this.powerups.length?"Hidden":"")},this.isPowering&&e("div",{class:"Card PoweringDesc"},e("div",{class:"FlexRow"},e("div",{class:"Icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99967 1.75016C4.10018 1.75016 1.74967 4.10067 1.74967 7.00016C1.74967 9.89966 4.10018 12.2502 6.99967 12.2502C9.89917 12.2502 12.2497 9.89966 12.2497 7.00016C12.2497 4.10067 9.89917 1.75016 6.99967 1.75016ZM0.583008 7.00016C0.583008 3.45634 3.45585 0.583496 6.99967 0.583496C10.5435 0.583496 13.4163 3.45634 13.4163 7.00016C13.4163 10.544 10.5435 13.4168 6.99967 13.4168C3.45585 13.4168 0.583008 10.544 0.583008 7.00016ZM6.41634 4.66683C6.41634 4.34466 6.67751 4.0835 6.99967 4.0835H7.00551C7.32767 4.0835 7.58884 4.34466 7.58884 4.66683C7.58884 4.989 7.32767 5.25016 7.00551 5.25016H6.99967C6.67751 5.25016 6.41634 4.989 6.41634 4.66683ZM6.99967 6.41683C7.32184 6.41683 7.58301 6.678 7.58301 7.00016V9.3335C7.58301 9.65566 7.32184 9.91683 6.99967 9.91683C6.67751 9.91683 6.41634 9.65566 6.41634 9.3335V7.00016C6.41634 6.678 6.67751 6.41683 6.99967 6.41683Z" fill="url(#paint0_linear_4493_116)"/>\n<defs>\n<linearGradient id="paint0_linear_4493_116" x1="9.23362" y1="14.7353" x2="-7.16233" y2="0.909066" gradientUnits="userSpaceOnUse">\n<stop stop-color="#D6FFDC"/>\n<stop offset="0.671344" stop-color="#74B580"/>\n<stop offset="1" stop-color="#509142"/>\n</linearGradient>\n</defs>\n</svg>\n'}),e("div",{class:"Text"},h("poweringTooltip",this.language)))),this.powerups.map(((t,n)=>{const i=n===this.powerups.length-1;return e("div",{class:`Card ${t.status===l.ACTIVATED?"Actived":""} ${i?"LastItem":""}`,ref:i?t=>this.lastItemElement=t:null},e("div",{class:"PowerupTitle FlexRow"},e("div",{class:"LeftOfRow"},e("div",{class:"EnergyIcon",innerHTML:'<svg width="16" height="23" viewBox="0 0 16 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.9994 7.31774H10.7237L13.8675 1.56809C13.9553 1.40902 14.0015 1.22856 14.0015 1.04488C14.0014 0.861196 13.955 0.680783 13.867 0.521802C13.779 0.362822 13.6525 0.230887 13.5002 0.139282C13.3479 0.0476784 13.1752 -0.000360859 12.9995 2.04092e-06H6.00004C5.81422 -8.84852e-05 5.63206 0.0539544 5.47398 0.156068C5.3159 0.258181 5.18817 0.404325 5.1051 0.578103L0.105459 11.032C0.0292615 11.1914 -0.00668829 11.3686 0.00102409 11.5466C0.00873646 11.7246 0.0598548 11.8976 0.149524 12.0492C0.239193 12.2008 0.364436 12.3259 0.513357 12.4126C0.662278 12.4993 0.829932 12.5448 1.0004 12.5447H5.65607L3.04225 21.6532C2.97593 21.8834 2.98756 22.1306 3.0752 22.3529C3.16284 22.5752 3.32112 22.7592 3.52336 22.8738C3.7256 22.9883 3.95944 23.0265 4.18546 22.9818C4.41147 22.9371 4.61585 22.8124 4.76413 22.6285L15.7634 9.03845C15.8866 8.88622 15.9656 8.70031 15.9911 8.50267C16.0165 8.30503 15.9874 8.10389 15.9071 7.923C15.8267 7.74211 15.6986 7.58901 15.5378 7.48176C15.377 7.37452 15.1902 7.3176 14.9994 7.31774ZM6.33702 17.4465L7.9579 11.8014C8.00301 11.6452 8.01251 11.4801 7.98565 11.3194C7.95878 11.1586 7.8963 11.0067 7.80319 10.8757C7.71009 10.7447 7.58895 10.6384 7.44947 10.5651C7.31 10.4919 7.15605 10.4538 6.99997 10.4539H2.61828L6.618 2.09078H11.2757L8.13189 7.84043C8.04405 7.9995 7.99784 8.17996 7.99792 8.36364C7.99801 8.54732 8.04439 8.72774 8.13238 8.88672C8.22038 9.0457 8.34689 9.17763 8.49917 9.26924C8.65146 9.36084 8.82414 9.40888 8.99983 9.40852H12.8436L6.33702 17.4465Z" fill="url(#paint0_linear_3660_5836)"/>\n<defs>\n<linearGradient id="paint0_linear_3660_5836" x1="0" y1="0" x2="21.8708" y2="9.53767" gradientUnits="userSpaceOnUse">\n<stop stop-color="#F68B2E"/>\n<stop offset="1" stop-color="#F6BB5C"/>\n</linearGradient>\n</defs>\n</svg>\n'}),e("div",{class:"Name"},t.powerUpName)),e("div",{class:"DetailIcon",onClick:this.showDetail.bind(this,t)},e("div",{class:"IconBtn CircleLinearBorder",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.33398 2.3335L7.00065 7.00016L2.33398 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M7 2.3335L11.6667 7.00016L7 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}))),e("div",{class:"ExpireTime Status CircleLinearBorder"},e("time-count",t.status===l.ACTIVATED?{"in-progress":!0,mode:t.boostingPeriod.mode,"left-rounds":(t.boostingPeriod.numberOfRounds||0)-(t.usedNumberOfRounds||0),language:this.language,"expire-time":(r=t,r.activatedAt&&r.status==l.ACTIVATED?p(r.activatedAt).add(r.boostingPeriod.minutes,"minute").format("YYYY-MM-DDTHH:mm:ssZ"):r.expireTime)}:{language:this.language,mode:t.boostingPeriod.mode,"expire-time":t.expireTime})),e("div",{class:"MultiplierInfo FlexRow"},e("div",{class:"LeftOfRow"},e("div",{class:"MultiplierIcon",innerHTML:'<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.03794 4.01199L3.03683 4.01253L3.03516 4.01361L3.03794 4.01199ZM8.56797 3.91054C8.52932 3.87413 8.48643 3.84227 8.44019 3.81561C8.37472 3.77797 8.30204 3.75384 8.22664 3.74472C8.15125 3.7356 8.07473 3.74167 8.00184 3.76257C7.92894 3.78347 7.86121 3.81874 7.80282 3.86621C7.74444 3.91369 7.69665 3.97235 7.66241 4.03857C7.47107 4.40687 7.20713 4.73466 6.88574 5.00311C6.93501 4.73271 6.95992 4.45861 6.96018 4.18395C6.96124 3.3486 6.73559 2.52789 6.3062 1.80538C5.87681 1.08287 5.25902 0.484375 4.51572 0.0708199C4.43382 0.0253751 4.34142 0.00101547 4.24722 3.10685e-05C4.15301 -0.000953328 4.0601 0.0214698 3.97722 0.0651925C3.89433 0.108915 3.82419 0.172501 3.77339 0.249974C3.7226 0.327446 3.69281 0.416259 3.68683 0.508064C3.65573 1.0224 3.51802 1.52521 3.28205 1.98604C3.04608 2.44688 2.71676 2.85614 2.31405 3.18903L2.18627 3.29048C1.76494 3.56728 1.39202 3.90853 1.08182 4.30113C0.599746 4.89413 0.265808 5.58866 0.106489 6.32962C-0.0528307 7.07059 -0.0331479 7.83762 0.163976 8.56986C0.361099 9.30211 0.730241 9.97943 1.24212 10.5481C1.754 11.1168 2.39454 11.5612 3.11294 11.846C3.19728 11.8796 3.28877 11.8923 3.37936 11.8832C3.46994 11.8741 3.55684 11.8434 3.63241 11.7937C3.70797 11.7441 3.76989 11.6771 3.8127 11.5986C3.85552 11.5202 3.87792 11.4326 3.87794 11.3437C3.87748 11.2862 3.86812 11.2292 3.85017 11.1744C3.72587 10.7182 3.69006 10.2433 3.74461 9.77428C4.27043 10.7424 5.11436 11.5097 6.14073 11.9529C6.26596 12.0076 6.4075 12.0149 6.53796 11.9735C7.34878 11.7179 8.07921 11.2641 8.65986 10.6553C9.24051 10.0464 9.65209 9.3027 9.8555 8.49478C10.0589 7.68686 10.0474 6.84157 9.82205 6.03922C9.5967 5.23687 9.165 4.5041 8.56797 3.91054ZM6.39851 10.8712C5.91423 10.6316 5.48701 10.2951 5.14463 9.88369C4.80226 9.47226 4.55239 8.99508 4.41128 8.48316C4.36814 8.31077 4.33475 8.13618 4.31128 7.96021C4.29547 7.84814 4.24418 7.74371 4.16459 7.66152C4.085 7.57932 3.98109 7.52348 3.86739 7.5018C3.83243 7.49517 3.79689 7.4919 3.76128 7.49204C3.66366 7.49195 3.56775 7.51697 3.48319 7.56459C3.39863 7.6122 3.32841 7.68074 3.27961 7.76328C2.81874 8.53972 2.58703 9.42559 2.61016 10.3227C2.20469 10.015 1.86581 9.6317 1.61316 9.19511C1.36052 8.75852 1.19913 8.27731 1.13836 7.77936C1.07759 7.28142 1.11864 6.77664 1.25913 6.29431C1.39963 5.81197 1.63677 5.36166 1.95682 4.96948C2.19983 4.66126 2.49299 4.39406 2.8246 4.17853C2.83912 4.16944 2.85303 4.15948 2.86627 4.14869C2.86627 4.14869 3.03072 4.01578 3.03627 4.01307C3.82805 3.3594 4.39126 2.4808 4.64739 1.49973C5.25263 2.04621 5.65615 2.77254 5.79529 3.56593C5.93442 4.35932 5.80139 5.17538 5.41684 5.88736C5.36595 5.9824 5.34505 6.09002 5.35677 6.19665C5.36849 6.30328 5.41232 6.40412 5.48271 6.48644C5.5531 6.56876 5.64689 6.62886 5.75224 6.65914C5.8576 6.68943 5.96978 6.68855 6.07462 6.65661C6.92559 6.39601 7.67437 5.88711 8.22019 5.1984C8.54836 5.67158 8.76292 6.21098 8.8479 6.77639C8.93287 7.34181 8.88606 7.91866 8.71095 8.46396C8.53584 9.00925 8.23695 9.50892 7.83657 9.92572C7.43618 10.3425 6.94461 10.6657 6.39851 10.8712Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),e("div",{class:"MultiplierValue"},t.multiplier.coefficient,"x"),e("div",{class:"MultiplierMode"},h(t.multiplier.mode===d.COINS?"coins":"xp",this.language)),e("div",{class:"MultiplierIcon",innerHTML:'<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.02187 3.84217L9.59599 3.27436C9.71479 3.15556 9.78153 2.99444 9.78153 2.82643C9.78153 2.65842 9.71479 2.49729 9.59599 2.37849C9.47719 2.25969 9.31606 2.19295 9.14805 2.19295C8.98004 2.19295 8.81891 2.25969 8.70011 2.37849L8.1323 2.95261C7.24813 2.26862 6.16191 1.89751 5.04405 1.89751C3.9262 1.89751 2.83997 2.26862 1.9558 2.95261L1.38168 2.37218C1.26205 2.25338 1.10012 2.18697 0.931516 2.18756C0.762915 2.18815 0.601455 2.2557 0.482654 2.37533C0.363853 2.49497 0.297445 2.6569 0.298036 2.8255C0.298628 2.9941 0.366171 3.15556 0.485809 3.27436L1.06624 3.84848C0.374149 4.73019 -0.00137735 5.819 1.65478e-05 6.93989C-0.00204377 7.74455 0.188317 8.53804 0.555222 9.25419C0.922128 9.97034 1.45494 10.5884 2.10923 11.0568C2.76352 11.5252 3.52032 11.8303 4.31651 11.9468C5.11269 12.0633 5.9252 11.9878 6.68625 11.7264C7.4473 11.4651 8.13485 11.0256 8.69154 10.4446C9.24824 9.86362 9.65795 9.15792 9.8865 8.3864C10.1151 7.61487 10.1558 6.79988 10.0054 6.0094C9.85502 5.21892 9.51779 4.47585 9.02187 3.84217ZM5.04721 10.7253C4.29853 10.7253 3.56666 10.5033 2.94415 10.0873C2.32165 9.67138 1.83647 9.08018 1.54996 8.38849C1.26345 7.6968 1.18849 6.93569 1.33455 6.20139C1.48061 5.4671 1.84113 4.79261 2.37053 4.26321C2.89993 3.73381 3.57442 3.37329 4.30871 3.22723C5.04301 3.08117 5.80412 3.15613 6.49581 3.44264C7.1875 3.72915 7.7787 4.21433 8.19465 4.83683C8.61059 5.45934 8.8326 6.19121 8.8326 6.93989C8.8326 7.94383 8.43378 8.90666 7.72388 9.61656C7.01399 10.3265 6.05116 10.7253 5.04721 10.7253ZM3.78541 1.2618H6.309C6.47633 1.2618 6.6368 1.19533 6.75512 1.07701C6.87343 0.958695 6.9399 0.798223 6.9399 0.630899C6.9399 0.463574 6.87343 0.303102 6.75512 0.184786C6.6368 0.0664695 6.47633 0 6.309 0H3.78541C3.61808 0 3.45761 0.0664695 3.3393 0.184786C3.22098 0.303102 3.15451 0.463574 3.15451 0.630899C3.15451 0.798223 3.22098 0.958695 3.3393 1.07701C3.45761 1.19533 3.61808 1.2618 3.78541 1.2618ZM5.67811 5.04719C5.67811 4.87987 5.61164 4.71939 5.49332 4.60108C5.375 4.48276 5.21453 4.41629 5.04721 4.41629C4.87988 4.41629 4.71941 4.48276 4.60109 4.60108C4.48278 4.71939 4.41631 4.87987 4.41631 5.04719V6.23959C4.27345 6.36736 4.17276 6.5355 4.12756 6.72175C4.08235 6.908 4.09477 7.10359 4.16315 7.28263C4.23154 7.46168 4.35268 7.61573 4.51054 7.72442C4.66841 7.83311 4.85555 7.8913 5.04721 7.8913C5.23887 7.8913 5.42601 7.83311 5.58387 7.72442C5.74173 7.61573 5.86287 7.46168 5.93126 7.28263C5.99965 7.10359 6.01206 6.908 5.96686 6.72175C5.92165 6.5355 5.82096 6.36736 5.67811 6.23959V5.04719Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),e("div",{class:"MultiplierValue"},t.boostingPeriod[t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?"numberOfRounds":"minutes"]),e("div",{class:"MultiplierMode"},h(t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?t.boostingPeriod.numberOfRounds>1?"rounds":"round":"minutes",this.language))),(t.status===l.ACTIVE||t.status===l.ACTIVATING)&&e("div",{class:`ActiveBtn CircleLinearBorder ${this.isPowering||this.isActivating||!t.isValidForCurrentGame?"Disabled":""} ${this.isActivating?"Activating":""}`,onClick:()=>this.onActiveBtnClick(t)},e("div",{class:"content"}," ",h("activate",this.language)))));var r})),this.isLoading&&this.powerups.length>0&&e("smart-loader",null)):e("div",{class:"EmptyPowerups Cards"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},h("nothingHere",this.language)),e("div",{class:"NoPowerDescription"},e("span",null,h("noPowerUpsNow")),e("span",null,h("gotoShop"))),e("div",null)),e("active-confirm-modal",{key:"0d4b72f43f5d5430253a19af9ca17204e452c588","is-open":this.showConfirmModal,pid:null===(t=this.currentPowerup)||void 0===t?void 0:t.id,language:this.language}),e("div",{key:"35df0716128bdbd2a44f50f0031c8bc877e301da",class:`ToastWrapper ${this.showToasting?"Shown":"Hidden"} ${(null===(n=this.activeMessage)||void 0===n?void 0:n.isSuccessed)?"Success":"Failed"}`},e("div",{key:"1687a5ea4434755e4ece7dfeeacb02ed0eab068a",class:"Details"},e("span",{key:"79383527e04489fbd7e015b673dd4d8876b70b0e",class:"Info"},null===(i=this.activeMessage)||void 0===i?void 0:i.info),(null===(r=this.activeMessage)||void 0===r?void 0:r.detail)&&e("span",{key:"b3dbb5d51e457e77111140db035dc5a8a7780b62",class:"Detail"}," - [ ",this.activeMessage.detail," ]"))))}handleClientStylingChange(t,n){t!=n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!=n&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!=n&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){u(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await u(this.translationUrl),this.handleConfigChange()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.timerId&&clearTimeout(this.timerId)}static get assetsDirs(){return["../assets"]}static get watchers(){return{session:["handleConfigChange"],endpoint:["handleConfigChange"],limit:["handleConfigChange"],language:["handleConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};bi.style='@charset "UTF-8";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:"";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.8rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:172px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:10px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}';export{bi as B,Mi as C,c as a,p as h,h as t}
|
|
3
|
+
p.version="2.29.4",f=Jn,p.fn=We,p.min=function(){return Xn("isBefore",[].slice.call(arguments,0))},p.max=function(){return Xn("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=D,p.unix=function(t){return Jn(1e3*t)},p.months=function(t,n){return je(t,n,"months")},p.isDate=b,p.locale=Nn,p.invalid=k,p.duration=ue,p.isMoment=U,p.weekdays=function(t,n,e){return _e(t,n,e,"weekdays")},p.parseZone=function(){return Jn.apply(null,arguments).parseZone()},p.localeData=In,p.isDuration=Vn,p.monthsShort=function(t,n){return je(t,n,"monthsShort")},p.weekdaysMin=function(t,n,e){return _e(t,n,e,"weekdaysMin")},p.defineLocale=kn,p.updateLocale=function(t,n){if(null!=n){var e,i,r=Mn;null!=bn[t]&&null!=bn[t].parentLocale?bn[t].set(R(bn[t]._config,n)):(null!=(i=Sn(t))&&(r=i._config),n=R(r,n),null==i&&(n.abbr=t),(e=new O(n)).parentLocale=bn[t],bn[t]=e),Nn(t)}else null!=bn[t]&&(null!=bn[t].parentLocale?(bn[t]=bn[t].parentLocale,t===Nn()&&Nn(t)):null!=bn[t]&&delete bn[t]);return bn[t]},p.locales=function(){return A(bn)},p.weekdaysShort=function(t,n,e){return _e(t,n,e,"weekdaysShort")},p.normalizeUnits=V,p.relativeTimeRounding=function(t){return void 0===t?fi:"function"==typeof t&&(fi=t,!0)},p.relativeTimeThreshold=function(t,n){return void 0!==mi[t]&&(void 0===n?mi[t]:(mi[t]=n,"s"===t&&(mi.ss=n-1),!0))},p.calendarFormat=function(t,n){var e=t.diff(n,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=We,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const yi={fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,usedNumberOfRounds,currentTime,expireTime,activatedAt",status:`${l.ACTIVE},${l.ACTIVATED}`},Mi='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.75 12.2505L12.25 1.75049" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M1.75 1.75049L12.25 12.2505" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',bi=class{constructor(e){t(this,e),this.showDetailsEvent=n(this,"showPowerupDetails",7),this.powerupsLoadEvent=n(this,"powerupsLoad",7),this.closePowerupsEvent=n(this,"closePowerupsList",7),this.mbSource=void 0,this.gameId=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=30,this.disableCount=!1,this.isLoading=!1,this.isLoadingGamePowers=!1,this.isActivating=!1,this.powerups=[],this.total=0,this.isPowering=!1,this.showConfirmModal=!1,this.currentPowerup=void 0,this.validPowerIds=[],this.activeMessage=void 0,this.showToasting=!1,this.debouncedReload=function(t){let n;return function(...e){const i=this;clearTimeout(n),n=setTimeout((()=>t.apply(i,e)),100)}}(this.reloadPowerups)}reloadPowerupsHandler(t){const{onlyGamePowers:n}=t.detail;this.reloadPowerups(!!n)}activePowerupHandler(t){this.currentPowerup&&(t.detail.id===this.currentPowerup.id&&this.activePowerUp(this.currentPowerup),this.showConfirmModal=!1)}powerupTimeCountDownHandler(t){this.disableCount||t.detail.timeLeft<=0&&this.reloadPowerups()}async reloadPowerups(t=!1){t?await this.loadGamePowers():await this.loadData(!1)}handleConfigChange(){this.debouncedReload()}async loadGamePowers(){if(!this.isLoadingGamePowers)try{this.isLoadingGamePowers=!0;const t=new URL(`${this.endpoint}/v1/elevate/powerups`),n={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"};t.searchParams.append("filter",`gameId=${this.gameId}`),Object.entries(yi).forEach((([n,e])=>{t.searchParams.append(n,e)}));const e=await fetch(t,n);if(!e.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:e.status}),new Error(`HTTP error! status: ${e.status}`);const{data:i,total:r}=await e.json();this.validPowerIds=i.map((t=>t.powerUpID)),this.powerupsLoadEvent.emit({powerups:i,total:r})}catch(t){console.error("Failed to load game powerups:",t)}finally{this.isLoadingGamePowers=!1}}async loadData(t=!0){if(!(this.isLoading||t&&this.total>0&&this.powerups.length>=this.total)){t||(this.powerups=[],this.total=0),this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController,t||await this.loadGamePowers();try{const t=this.powerups.length,n=new URL(`${this.endpoint}/v1/elevate/powerups`),e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};n.searchParams.append("pagination",`offset=${t},limit=${this.limit}`),n.searchParams.append("language",this.language),Object.entries(yi).forEach((([t,e])=>{n.searchParams.append(t,e)}));const i=await fetch(n,e);if(!i.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:i.status}),new Error(`HTTP error! status: ${i.status}`);const{data:r,total:s,success:o,errorMessage:a}=await i.json();if(!o)throw this.activeMessage={isSuccessed:!1,info:h("LoadDataFailed")},this.showToasting=!0,this.timerId=setTimeout((()=>{this.showToasting=!1}),2e3),new Error(`HTTP error! status: ${a}`);this.powerups=[...this.powerups,...r],this.isPowering=this.powerups.filter((t=>t.status===l.ACTIVATED)).length>0,this.powerups.forEach((t=>{t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1})),this.total=s}catch(t){"AbortError"!==t.name&&console.error("Failed to load powerups:",t)}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}initializeObserver(){this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.loadMoreObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&""!=t.target.innerHTML&&this.loadData().catch(console.error)}))})),this.lastItemElement&&this.loadMoreObserver.observe(this.lastItemElement)}async activePowerUp(t){if(this.endpoint&&this.session&&!this.isActivating&&!this.isPowering){this.isActivating=!0,this.powerups.forEach((n=>{n.id===t.id&&(n.status=l.ACTIVATING)})),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const n=new URL(`${this.endpoint}/v1/elevate/activatepowerup`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"PUT",signal:this.abortController.signal,body:JSON.stringify({powerUpId:t.id})};const i=await fetch(n.href,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const r=await i.json();(null==r?void 0:r.success)&&(this.isPowering=!0),this.activeMessage={isSuccessed:r.success,info:h(r.success?"activeSuccess":"activeError",this.language),detail:r.errorMessage},this.showToasting=!0,this.timerId=setTimeout((()=>{this.showToasting=!1,this.reloadPowerups()}),2e3)}catch(t){console.error(t)}finally{this.abortController.signal.aborted||(this.isActivating=!1)}}}onClose(){this.closePowerupsEvent.emit({powerups:this.powerups})}showDetail(t){t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1,this.showDetailsEvent.emit({id:t.id,powerup:t})}onActiveBtnClick(t){this.isPowering||this.isActivating||!t.isValidForCurrentGame||(this.currentPowerup=t,this.showConfirmModal=!0)}componentDidUpdate(){this.total>0&&this.powerups.length<this.total&&this.initializeObserver()}render(){var t,n,i,r;return e("div",{key:"644cd1cb9a5dbdfb54b472cbfa431f18d5720a7f",class:"IngamePowerUpsContainer",ref:t=>this.stylingContainer=t},e("div",{key:"61addac0a73e394c212c43f3662ae103e5e9c087",class:"TopBar "+(this.showConfirmModal?"Hidden":"")},e("span",{key:"e871a3be6bbed7e1baec73390212040869ba8e6a",class:"BarTitle"},h("powerups",this.language)),e("div",{key:"f455abf68f64a7f9f7b98d09c4b3cd1fc188f1e2",class:"IconBtn CircleLinearBorder",onClick:this.onClose.bind(this),innerHTML:Mi})),this.isLoading&&0===this.powerups.length?e("smart-loader",null):this.powerups.length>0?e("div",{class:"Cards "+(this.showConfirmModal||0===this.powerups.length?"Hidden":"")},this.isPowering&&e("div",{class:"Card PoweringDesc"},e("div",{class:"FlexRow"},e("div",{class:"Icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99967 1.75016C4.10018 1.75016 1.74967 4.10067 1.74967 7.00016C1.74967 9.89966 4.10018 12.2502 6.99967 12.2502C9.89917 12.2502 12.2497 9.89966 12.2497 7.00016C12.2497 4.10067 9.89917 1.75016 6.99967 1.75016ZM0.583008 7.00016C0.583008 3.45634 3.45585 0.583496 6.99967 0.583496C10.5435 0.583496 13.4163 3.45634 13.4163 7.00016C13.4163 10.544 10.5435 13.4168 6.99967 13.4168C3.45585 13.4168 0.583008 10.544 0.583008 7.00016ZM6.41634 4.66683C6.41634 4.34466 6.67751 4.0835 6.99967 4.0835H7.00551C7.32767 4.0835 7.58884 4.34466 7.58884 4.66683C7.58884 4.989 7.32767 5.25016 7.00551 5.25016H6.99967C6.67751 5.25016 6.41634 4.989 6.41634 4.66683ZM6.99967 6.41683C7.32184 6.41683 7.58301 6.678 7.58301 7.00016V9.3335C7.58301 9.65566 7.32184 9.91683 6.99967 9.91683C6.67751 9.91683 6.41634 9.65566 6.41634 9.3335V7.00016C6.41634 6.678 6.67751 6.41683 6.99967 6.41683Z" fill="url(#paint0_linear_4493_116)"/>\n<defs>\n<linearGradient id="paint0_linear_4493_116" x1="9.23362" y1="14.7353" x2="-7.16233" y2="0.909066" gradientUnits="userSpaceOnUse">\n<stop stop-color="#D6FFDC"/>\n<stop offset="0.671344" stop-color="#74B580"/>\n<stop offset="1" stop-color="#509142"/>\n</linearGradient>\n</defs>\n</svg>\n'}),e("div",{class:"Text"},h("poweringTooltip",this.language)))),this.powerups.map(((t,n)=>{const i=n===this.powerups.length-1;return e("div",{class:`Card ${t.status===l.ACTIVATED?"Actived":""} ${i?"LastItem":""}`,ref:i?t=>this.lastItemElement=t:null},e("div",{class:"PowerupTitle FlexRow"},e("div",{class:"LeftOfRow"},e("div",{class:"EnergyIcon",innerHTML:'<svg width="16" height="23" viewBox="0 0 16 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.9994 7.31774H10.7237L13.8675 1.56809C13.9553 1.40902 14.0015 1.22856 14.0015 1.04488C14.0014 0.861196 13.955 0.680783 13.867 0.521802C13.779 0.362822 13.6525 0.230887 13.5002 0.139282C13.3479 0.0476784 13.1752 -0.000360859 12.9995 2.04092e-06H6.00004C5.81422 -8.84852e-05 5.63206 0.0539544 5.47398 0.156068C5.3159 0.258181 5.18817 0.404325 5.1051 0.578103L0.105459 11.032C0.0292615 11.1914 -0.00668829 11.3686 0.00102409 11.5466C0.00873646 11.7246 0.0598548 11.8976 0.149524 12.0492C0.239193 12.2008 0.364436 12.3259 0.513357 12.4126C0.662278 12.4993 0.829932 12.5448 1.0004 12.5447H5.65607L3.04225 21.6532C2.97593 21.8834 2.98756 22.1306 3.0752 22.3529C3.16284 22.5752 3.32112 22.7592 3.52336 22.8738C3.7256 22.9883 3.95944 23.0265 4.18546 22.9818C4.41147 22.9371 4.61585 22.8124 4.76413 22.6285L15.7634 9.03845C15.8866 8.88622 15.9656 8.70031 15.9911 8.50267C16.0165 8.30503 15.9874 8.10389 15.9071 7.923C15.8267 7.74211 15.6986 7.58901 15.5378 7.48176C15.377 7.37452 15.1902 7.3176 14.9994 7.31774ZM6.33702 17.4465L7.9579 11.8014C8.00301 11.6452 8.01251 11.4801 7.98565 11.3194C7.95878 11.1586 7.8963 11.0067 7.80319 10.8757C7.71009 10.7447 7.58895 10.6384 7.44947 10.5651C7.31 10.4919 7.15605 10.4538 6.99997 10.4539H2.61828L6.618 2.09078H11.2757L8.13189 7.84043C8.04405 7.9995 7.99784 8.17996 7.99792 8.36364C7.99801 8.54732 8.04439 8.72774 8.13238 8.88672C8.22038 9.0457 8.34689 9.17763 8.49917 9.26924C8.65146 9.36084 8.82414 9.40888 8.99983 9.40852H12.8436L6.33702 17.4465Z" fill="url(#paint0_linear_3660_5836)"/>\n<defs>\n<linearGradient id="paint0_linear_3660_5836" x1="0" y1="0" x2="21.8708" y2="9.53767" gradientUnits="userSpaceOnUse">\n<stop stop-color="#F68B2E"/>\n<stop offset="1" stop-color="#F6BB5C"/>\n</linearGradient>\n</defs>\n</svg>\n'}),e("div",{class:"Name"},t.powerUpName)),e("div",{class:"DetailIcon",onClick:this.showDetail.bind(this,t)},e("div",{class:"IconBtn CircleLinearBorder",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.33398 2.3335L7.00065 7.00016L2.33398 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M7 2.3335L11.6667 7.00016L7 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}))),e("div",{class:"ExpireTime Status CircleLinearBorder"},e("time-count",t.status===l.ACTIVATED?{"in-progress":!0,mode:t.boostingPeriod.mode,"left-rounds":(t.boostingPeriod.numberOfRounds||0)-(t.usedNumberOfRounds||0),language:this.language,"expire-time":(r=t,r.activatedAt&&r.status==l.ACTIVATED?p(r.activatedAt).add(r.boostingPeriod.minutes,"minute").format("YYYY-MM-DDTHH:mm:ssZ"):r.expireTime)}:{language:this.language,mode:t.boostingPeriod.mode,"expire-time":t.expireTime})),e("div",{class:"MultiplierInfo FlexRow"},e("div",{class:"LeftOfRow"},e("div",{class:"MultiplierIcon",innerHTML:'<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.03794 4.01199L3.03683 4.01253L3.03516 4.01361L3.03794 4.01199ZM8.56797 3.91054C8.52932 3.87413 8.48643 3.84227 8.44019 3.81561C8.37472 3.77797 8.30204 3.75384 8.22664 3.74472C8.15125 3.7356 8.07473 3.74167 8.00184 3.76257C7.92894 3.78347 7.86121 3.81874 7.80282 3.86621C7.74444 3.91369 7.69665 3.97235 7.66241 4.03857C7.47107 4.40687 7.20713 4.73466 6.88574 5.00311C6.93501 4.73271 6.95992 4.45861 6.96018 4.18395C6.96124 3.3486 6.73559 2.52789 6.3062 1.80538C5.87681 1.08287 5.25902 0.484375 4.51572 0.0708199C4.43382 0.0253751 4.34142 0.00101547 4.24722 3.10685e-05C4.15301 -0.000953328 4.0601 0.0214698 3.97722 0.0651925C3.89433 0.108915 3.82419 0.172501 3.77339 0.249974C3.7226 0.327446 3.69281 0.416259 3.68683 0.508064C3.65573 1.0224 3.51802 1.52521 3.28205 1.98604C3.04608 2.44688 2.71676 2.85614 2.31405 3.18903L2.18627 3.29048C1.76494 3.56728 1.39202 3.90853 1.08182 4.30113C0.599746 4.89413 0.265808 5.58866 0.106489 6.32962C-0.0528307 7.07059 -0.0331479 7.83762 0.163976 8.56986C0.361099 9.30211 0.730241 9.97943 1.24212 10.5481C1.754 11.1168 2.39454 11.5612 3.11294 11.846C3.19728 11.8796 3.28877 11.8923 3.37936 11.8832C3.46994 11.8741 3.55684 11.8434 3.63241 11.7937C3.70797 11.7441 3.76989 11.6771 3.8127 11.5986C3.85552 11.5202 3.87792 11.4326 3.87794 11.3437C3.87748 11.2862 3.86812 11.2292 3.85017 11.1744C3.72587 10.7182 3.69006 10.2433 3.74461 9.77428C4.27043 10.7424 5.11436 11.5097 6.14073 11.9529C6.26596 12.0076 6.4075 12.0149 6.53796 11.9735C7.34878 11.7179 8.07921 11.2641 8.65986 10.6553C9.24051 10.0464 9.65209 9.3027 9.8555 8.49478C10.0589 7.68686 10.0474 6.84157 9.82205 6.03922C9.5967 5.23687 9.165 4.5041 8.56797 3.91054ZM6.39851 10.8712C5.91423 10.6316 5.48701 10.2951 5.14463 9.88369C4.80226 9.47226 4.55239 8.99508 4.41128 8.48316C4.36814 8.31077 4.33475 8.13618 4.31128 7.96021C4.29547 7.84814 4.24418 7.74371 4.16459 7.66152C4.085 7.57932 3.98109 7.52348 3.86739 7.5018C3.83243 7.49517 3.79689 7.4919 3.76128 7.49204C3.66366 7.49195 3.56775 7.51697 3.48319 7.56459C3.39863 7.6122 3.32841 7.68074 3.27961 7.76328C2.81874 8.53972 2.58703 9.42559 2.61016 10.3227C2.20469 10.015 1.86581 9.6317 1.61316 9.19511C1.36052 8.75852 1.19913 8.27731 1.13836 7.77936C1.07759 7.28142 1.11864 6.77664 1.25913 6.29431C1.39963 5.81197 1.63677 5.36166 1.95682 4.96948C2.19983 4.66126 2.49299 4.39406 2.8246 4.17853C2.83912 4.16944 2.85303 4.15948 2.86627 4.14869C2.86627 4.14869 3.03072 4.01578 3.03627 4.01307C3.82805 3.3594 4.39126 2.4808 4.64739 1.49973C5.25263 2.04621 5.65615 2.77254 5.79529 3.56593C5.93442 4.35932 5.80139 5.17538 5.41684 5.88736C5.36595 5.9824 5.34505 6.09002 5.35677 6.19665C5.36849 6.30328 5.41232 6.40412 5.48271 6.48644C5.5531 6.56876 5.64689 6.62886 5.75224 6.65914C5.8576 6.68943 5.96978 6.68855 6.07462 6.65661C6.92559 6.39601 7.67437 5.88711 8.22019 5.1984C8.54836 5.67158 8.76292 6.21098 8.8479 6.77639C8.93287 7.34181 8.88606 7.91866 8.71095 8.46396C8.53584 9.00925 8.23695 9.50892 7.83657 9.92572C7.43618 10.3425 6.94461 10.6657 6.39851 10.8712Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),e("div",{class:"MultiplierValue"},t.multiplier.coefficient,"x"),e("div",{class:"MultiplierMode"},h(t.multiplier.mode===d.COINS?"coins":"xp",this.language)),e("div",{class:"MultiplierIcon",innerHTML:'<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.02187 3.84217L9.59599 3.27436C9.71479 3.15556 9.78153 2.99444 9.78153 2.82643C9.78153 2.65842 9.71479 2.49729 9.59599 2.37849C9.47719 2.25969 9.31606 2.19295 9.14805 2.19295C8.98004 2.19295 8.81891 2.25969 8.70011 2.37849L8.1323 2.95261C7.24813 2.26862 6.16191 1.89751 5.04405 1.89751C3.9262 1.89751 2.83997 2.26862 1.9558 2.95261L1.38168 2.37218C1.26205 2.25338 1.10012 2.18697 0.931516 2.18756C0.762915 2.18815 0.601455 2.2557 0.482654 2.37533C0.363853 2.49497 0.297445 2.6569 0.298036 2.8255C0.298628 2.9941 0.366171 3.15556 0.485809 3.27436L1.06624 3.84848C0.374149 4.73019 -0.00137735 5.819 1.65478e-05 6.93989C-0.00204377 7.74455 0.188317 8.53804 0.555222 9.25419C0.922128 9.97034 1.45494 10.5884 2.10923 11.0568C2.76352 11.5252 3.52032 11.8303 4.31651 11.9468C5.11269 12.0633 5.9252 11.9878 6.68625 11.7264C7.4473 11.4651 8.13485 11.0256 8.69154 10.4446C9.24824 9.86362 9.65795 9.15792 9.8865 8.3864C10.1151 7.61487 10.1558 6.79988 10.0054 6.0094C9.85502 5.21892 9.51779 4.47585 9.02187 3.84217ZM5.04721 10.7253C4.29853 10.7253 3.56666 10.5033 2.94415 10.0873C2.32165 9.67138 1.83647 9.08018 1.54996 8.38849C1.26345 7.6968 1.18849 6.93569 1.33455 6.20139C1.48061 5.4671 1.84113 4.79261 2.37053 4.26321C2.89993 3.73381 3.57442 3.37329 4.30871 3.22723C5.04301 3.08117 5.80412 3.15613 6.49581 3.44264C7.1875 3.72915 7.7787 4.21433 8.19465 4.83683C8.61059 5.45934 8.8326 6.19121 8.8326 6.93989C8.8326 7.94383 8.43378 8.90666 7.72388 9.61656C7.01399 10.3265 6.05116 10.7253 5.04721 10.7253ZM3.78541 1.2618H6.309C6.47633 1.2618 6.6368 1.19533 6.75512 1.07701C6.87343 0.958695 6.9399 0.798223 6.9399 0.630899C6.9399 0.463574 6.87343 0.303102 6.75512 0.184786C6.6368 0.0664695 6.47633 0 6.309 0H3.78541C3.61808 0 3.45761 0.0664695 3.3393 0.184786C3.22098 0.303102 3.15451 0.463574 3.15451 0.630899C3.15451 0.798223 3.22098 0.958695 3.3393 1.07701C3.45761 1.19533 3.61808 1.2618 3.78541 1.2618ZM5.67811 5.04719C5.67811 4.87987 5.61164 4.71939 5.49332 4.60108C5.375 4.48276 5.21453 4.41629 5.04721 4.41629C4.87988 4.41629 4.71941 4.48276 4.60109 4.60108C4.48278 4.71939 4.41631 4.87987 4.41631 5.04719V6.23959C4.27345 6.36736 4.17276 6.5355 4.12756 6.72175C4.08235 6.908 4.09477 7.10359 4.16315 7.28263C4.23154 7.46168 4.35268 7.61573 4.51054 7.72442C4.66841 7.83311 4.85555 7.8913 5.04721 7.8913C5.23887 7.8913 5.42601 7.83311 5.58387 7.72442C5.74173 7.61573 5.86287 7.46168 5.93126 7.28263C5.99965 7.10359 6.01206 6.908 5.96686 6.72175C5.92165 6.5355 5.82096 6.36736 5.67811 6.23959V5.04719Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),e("div",{class:"MultiplierValue"},t.boostingPeriod[t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?"numberOfRounds":"minutes"]),e("div",{class:"MultiplierMode"},h(t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?t.boostingPeriod.numberOfRounds>1?"rounds":"round":"minutes",this.language))),(t.status===l.ACTIVE||t.status===l.ACTIVATING)&&e("div",{class:`ActiveBtn CircleLinearBorder ${this.isPowering||this.isActivating||!t.isValidForCurrentGame?"Disabled":""} ${this.isActivating?"Activating":""}`,onClick:()=>this.onActiveBtnClick(t)},e("div",{class:"content"}," ",h("activate",this.language)))));var r})),this.isLoading&&this.powerups.length>0&&e("smart-loader",null)):e("div",{class:"EmptyPowerups Cards"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},h("nothingHere",this.language)),e("div",{class:"NoPowerDescription"},e("span",null,h("noPowerUpsNow")),e("span",null,h("gotoShop"))),e("div",null)),e("active-confirm-modal",{key:"3e6355765d9f5420aa77a976cd93c4f37028a66b","is-open":this.showConfirmModal,pid:null===(t=this.currentPowerup)||void 0===t?void 0:t.id,language:this.language}),e("div",{key:"4957fb58f76d243eb61d25d933f486c291833b78",class:`ToastWrapper ${this.showToasting?"Shown":"Hidden"} ${(null===(n=this.activeMessage)||void 0===n?void 0:n.isSuccessed)?"Success":"Failed"}`},e("div",{key:"b8acbc7a8bfcf174fc2545eadae75b64288848cd",class:"Details"},e("span",{key:"db4f9b70fa0d066a0dc2eb393eddedc39ca473b6",class:"Info"},null===(i=this.activeMessage)||void 0===i?void 0:i.info),(null===(r=this.activeMessage)||void 0===r?void 0:r.detail)&&e("span",{key:"f92ea154486b7725ca0ed03320b66bf31775cedc",class:"Detail"}," - [ ",this.activeMessage.detail," ]"))))}handleClientStylingChange(t,n){t!=n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!=n&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!=n&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){u(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await u(this.translationUrl),this.handleConfigChange()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.timerId&&clearTimeout(this.timerId)}static get assetsDirs(){return["../assets"]}static get watchers(){return{session:["handleConfigChange"],endpoint:["handleConfigChange"],limit:["handleConfigChange"],language:["handleConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};bi.style='@charset "UTF-8";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:"";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.9rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:142px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:5px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}';export{bi as B,Mi as C,c as a,p as h,h as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BonusPowerupsIngameList}from"./bonus-powerups-ingame-list-
|
|
1
|
+
export{B as BonusPowerupsIngameList}from"./bonus-powerups-ingame-list-5a25eec5.js";import"./index-e015b33d.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c45277e.js');
|
|
6
|
-
const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-
|
|
6
|
+
const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-c2d95eba.js');
|
|
7
7
|
|
|
8
8
|
const activeConfirmModalCss = ".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";
|
|
9
9
|
const ActiveConfirmModalStyle0 = activeConfirmModalCss;
|
package/dist/cjs/{bonus-powerups-ingame-list-0a26258c.js → bonus-powerups-ingame-list-c2d95eba.js}
RENAMED
|
@@ -5948,7 +5948,7 @@ const ClearSearch = `<svg width="52" height="52" viewBox="0 0 52 52" fill="none"
|
|
|
5948
5948
|
</svg>
|
|
5949
5949
|
`;
|
|
5950
5950
|
|
|
5951
|
-
const bonusPowerupsIngameListCss = "@charset \"UTF-8\";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:\"\";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.
|
|
5951
|
+
const bonusPowerupsIngameListCss = "@charset \"UTF-8\";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:\"\";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.9rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:142px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:5px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}";
|
|
5952
5952
|
const BonusPowerupsIngameListStyle0 = bonusPowerupsIngameListCss;
|
|
5953
5953
|
|
|
5954
5954
|
const BonusPowerupsIngameList = class {
|
|
@@ -6046,18 +6046,20 @@ const BonusPowerupsIngameList = class {
|
|
|
6046
6046
|
this.isLoadingGamePowers = false;
|
|
6047
6047
|
}
|
|
6048
6048
|
}
|
|
6049
|
-
async loadData(
|
|
6050
|
-
if (this.isLoading || this.total > 0 && this.powerups.length >= this.total) {
|
|
6049
|
+
async loadData(isLoadingMore = true) {
|
|
6050
|
+
if (this.isLoading || (isLoadingMore && this.total > 0 && this.powerups.length >= this.total)) {
|
|
6051
6051
|
return;
|
|
6052
6052
|
}
|
|
6053
|
+
if (!isLoadingMore) {
|
|
6054
|
+
this.powerups = [];
|
|
6055
|
+
this.total = 0;
|
|
6056
|
+
}
|
|
6053
6057
|
this.isLoading = true;
|
|
6054
6058
|
if (this.abortController) {
|
|
6055
6059
|
this.abortController.abort();
|
|
6056
6060
|
}
|
|
6057
6061
|
this.abortController = new AbortController();
|
|
6058
|
-
if (!
|
|
6059
|
-
this.powerups = [];
|
|
6060
|
-
this.total = 0;
|
|
6062
|
+
if (!isLoadingMore) {
|
|
6061
6063
|
await this.loadGamePowers();
|
|
6062
6064
|
}
|
|
6063
6065
|
try {
|
|
@@ -6171,7 +6173,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6171
6173
|
this.showToasting = true;
|
|
6172
6174
|
this.timerId = setTimeout(() => {
|
|
6173
6175
|
this.showToasting = false;
|
|
6174
|
-
|
|
6176
|
+
this.reloadPowerups();
|
|
6175
6177
|
}, 2000);
|
|
6176
6178
|
}
|
|
6177
6179
|
catch (e) {
|
|
@@ -6204,7 +6206,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6204
6206
|
}
|
|
6205
6207
|
render() {
|
|
6206
6208
|
var _a, _b, _c, _d;
|
|
6207
|
-
return (index.h("div", { key: '
|
|
6209
|
+
return (index.h("div", { key: '644cd1cb9a5dbdfb54b472cbfa431f18d5720a7f', class: 'IngamePowerUpsContainer', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '61addac0a73e394c212c43f3662ae103e5e9c087', class: `TopBar ${this.showConfirmModal ? 'Hidden' : ''}` }, index.h("span", { key: 'e871a3be6bbed7e1baec73390212040869ba8e6a', class: 'BarTitle' }, translate('powerups', this.language)), index.h("div", { key: 'f455abf68f64a7f9f7b98d09c4b3cd1fc188f1e2', class: 'IconBtn CircleLinearBorder', onClick: this.onClose.bind(this), innerHTML: CloseSvg })), this.isLoading && this.powerups.length === 0
|
|
6208
6210
|
? index.h("smart-loader", null)
|
|
6209
6211
|
: (this.powerups.length > 0 ?
|
|
6210
6212
|
index.h("div", { class: `Cards ${this.showConfirmModal || this.powerups.length === 0 ? 'Hidden' : ''}` }, this.isPowering &&
|
|
@@ -6219,7 +6221,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6219
6221
|
: translate('minutes', this.language))), (powerup.status === PowerUpStatus.ACTIVE || powerup.status === PowerUpStatus.ACTIVATING) &&
|
|
6220
6222
|
index.h("div", { class: `ActiveBtn CircleLinearBorder ${this.isPowering || this.isActivating || !powerup.isValidForCurrentGame ? 'Disabled' : ''} ${this.isActivating ? 'Activating' : ''}`, onClick: () => this.onActiveBtnClick(powerup) }, index.h("div", { class: 'content' }, " ", translate('activate', this.language))))));
|
|
6221
6223
|
}), this.isLoading && this.powerups.length > 0 && index.h("smart-loader", null))
|
|
6222
|
-
: index.h("div", { class: 'EmptyPowerups Cards' }, index.h("div", { class: 'Icon', innerHTML: ClearSearch }), index.h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), index.h("div", { class: 'NoPowerDescription' }, index.h("span", null, translate('noPowerUpsNow')), index.h("span", null, translate('gotoShop'))), index.h("div", null))), index.h("active-confirm-modal", { key: '
|
|
6224
|
+
: index.h("div", { class: 'EmptyPowerups Cards' }, index.h("div", { class: 'Icon', innerHTML: ClearSearch }), index.h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), index.h("div", { class: 'NoPowerDescription' }, index.h("span", null, translate('noPowerUpsNow')), index.h("span", null, translate('gotoShop'))), index.h("div", null))), index.h("active-confirm-modal", { key: '3e6355765d9f5420aa77a976cd93c4f37028a66b', "is-open": this.showConfirmModal, pid: (_a = this.currentPowerup) === null || _a === void 0 ? void 0 : _a.id, language: this.language }), index.h("div", { key: '4957fb58f76d243eb61d25d933f486c291833b78', class: `ToastWrapper ${this.showToasting ? "Shown" : "Hidden"} ${((_b = this.activeMessage) === null || _b === void 0 ? void 0 : _b.isSuccessed) ? "Success" : "Failed"}` }, index.h("div", { key: 'b8acbc7a8bfcf174fc2545eadae75b64288848cd', class: `Details` }, index.h("span", { key: 'db4f9b70fa0d066a0dc2eb393eddedc39ca473b6', class: 'Info' }, (_c = this.activeMessage) === null || _c === void 0 ? void 0 : _c.info), ((_d = this.activeMessage) === null || _d === void 0 ? void 0 : _d.detail) && index.h("span", { key: 'f92ea154486b7725ca0ed03320b66bf31775cedc', class: 'Detail' }, " - [ ", this.activeMessage.detail, " ]")))));
|
|
6223
6225
|
}
|
|
6224
6226
|
handleClientStylingChange(newValue, oldValue) {
|
|
6225
6227
|
if (newValue != oldValue) {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-
|
|
5
|
+
const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-c2d95eba.js');
|
|
6
6
|
require('./index-1c45277e.js');
|
|
7
7
|
|
|
8
8
|
|
package/dist/collection/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.css
CHANGED
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
justify-content: center;
|
|
212
212
|
align-items: center;
|
|
213
213
|
gap: 6px;
|
|
214
|
-
font-size: 0.
|
|
214
|
+
font-size: 0.9rem;
|
|
215
215
|
width: max-content;
|
|
216
216
|
height: 25px;
|
|
217
217
|
backdrop-filter: blur(4.6px);
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
min-width: 100px;
|
|
229
229
|
}
|
|
230
230
|
.IngamePowerUpsContainer .Cards .Card .Status time-count {
|
|
231
|
-
min-width:
|
|
231
|
+
min-width: 142px;
|
|
232
232
|
}
|
|
233
233
|
.IngamePowerUpsContainer .Cards .Card .Status time-count {
|
|
234
234
|
background-color: var(--emw--ingame-color-black-middle, #020308);
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
justify-content: center;
|
|
242
242
|
padding: 2.2px;
|
|
243
243
|
z-index: 1;
|
|
244
|
-
padding-right:
|
|
244
|
+
padding-right: 5px;
|
|
245
245
|
}
|
|
246
246
|
.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating {
|
|
247
247
|
background-color: var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));
|
|
@@ -101,18 +101,20 @@ export class BonusPowerupsIngameList {
|
|
|
101
101
|
this.isLoadingGamePowers = false;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
async loadData(
|
|
105
|
-
if (this.isLoading || this.total > 0 && this.powerups.length >= this.total) {
|
|
104
|
+
async loadData(isLoadingMore = true) {
|
|
105
|
+
if (this.isLoading || (isLoadingMore && this.total > 0 && this.powerups.length >= this.total)) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
+
if (!isLoadingMore) {
|
|
109
|
+
this.powerups = [];
|
|
110
|
+
this.total = 0;
|
|
111
|
+
}
|
|
108
112
|
this.isLoading = true;
|
|
109
113
|
if (this.abortController) {
|
|
110
114
|
this.abortController.abort();
|
|
111
115
|
}
|
|
112
116
|
this.abortController = new AbortController();
|
|
113
|
-
if (!
|
|
114
|
-
this.powerups = [];
|
|
115
|
-
this.total = 0;
|
|
117
|
+
if (!isLoadingMore) {
|
|
116
118
|
await this.loadGamePowers();
|
|
117
119
|
}
|
|
118
120
|
try {
|
|
@@ -226,7 +228,7 @@ export class BonusPowerupsIngameList {
|
|
|
226
228
|
this.showToasting = true;
|
|
227
229
|
this.timerId = setTimeout(() => {
|
|
228
230
|
this.showToasting = false;
|
|
229
|
-
|
|
231
|
+
this.reloadPowerups();
|
|
230
232
|
}, 2000);
|
|
231
233
|
}
|
|
232
234
|
catch (e) {
|
|
@@ -259,7 +261,7 @@ export class BonusPowerupsIngameList {
|
|
|
259
261
|
}
|
|
260
262
|
render() {
|
|
261
263
|
var _a, _b, _c, _d;
|
|
262
|
-
return (h("div", { key: '
|
|
264
|
+
return (h("div", { key: '644cd1cb9a5dbdfb54b472cbfa431f18d5720a7f', class: 'IngamePowerUpsContainer', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '61addac0a73e394c212c43f3662ae103e5e9c087', class: `TopBar ${this.showConfirmModal ? 'Hidden' : ''}` }, h("span", { key: 'e871a3be6bbed7e1baec73390212040869ba8e6a', class: 'BarTitle' }, translate('powerups', this.language)), h("div", { key: 'f455abf68f64a7f9f7b98d09c4b3cd1fc188f1e2', class: 'IconBtn CircleLinearBorder', onClick: this.onClose.bind(this), innerHTML: CloseSvg })), this.isLoading && this.powerups.length === 0
|
|
263
265
|
? h("smart-loader", null)
|
|
264
266
|
: (this.powerups.length > 0 ?
|
|
265
267
|
h("div", { class: `Cards ${this.showConfirmModal || this.powerups.length === 0 ? 'Hidden' : ''}` }, this.isPowering &&
|
|
@@ -274,7 +276,7 @@ export class BonusPowerupsIngameList {
|
|
|
274
276
|
: translate('minutes', this.language))), (powerup.status === PowerUpStatus.ACTIVE || powerup.status === PowerUpStatus.ACTIVATING) &&
|
|
275
277
|
h("div", { class: `ActiveBtn CircleLinearBorder ${this.isPowering || this.isActivating || !powerup.isValidForCurrentGame ? 'Disabled' : ''} ${this.isActivating ? 'Activating' : ''}`, onClick: () => this.onActiveBtnClick(powerup) }, h("div", { class: 'content' }, " ", translate('activate', this.language))))));
|
|
276
278
|
}), this.isLoading && this.powerups.length > 0 && h("smart-loader", null))
|
|
277
|
-
: h("div", { class: 'EmptyPowerups Cards' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("div", { class: 'NoPowerDescription' }, h("span", null, translate('noPowerUpsNow')), h("span", null, translate('gotoShop'))), h("div", null))), h("active-confirm-modal", { key: '
|
|
279
|
+
: h("div", { class: 'EmptyPowerups Cards' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("div", { class: 'NoPowerDescription' }, h("span", null, translate('noPowerUpsNow')), h("span", null, translate('gotoShop'))), h("div", null))), h("active-confirm-modal", { key: '3e6355765d9f5420aa77a976cd93c4f37028a66b', "is-open": this.showConfirmModal, pid: (_a = this.currentPowerup) === null || _a === void 0 ? void 0 : _a.id, language: this.language }), h("div", { key: '4957fb58f76d243eb61d25d933f486c291833b78', class: `ToastWrapper ${this.showToasting ? "Shown" : "Hidden"} ${((_b = this.activeMessage) === null || _b === void 0 ? void 0 : _b.isSuccessed) ? "Success" : "Failed"}` }, h("div", { key: 'b8acbc7a8bfcf174fc2545eadae75b64288848cd', class: `Details` }, h("span", { key: 'db4f9b70fa0d066a0dc2eb393eddedc39ca473b6', class: 'Info' }, (_c = this.activeMessage) === null || _c === void 0 ? void 0 : _c.info), ((_d = this.activeMessage) === null || _d === void 0 ? void 0 : _d.detail) && h("span", { key: 'f92ea154486b7725ca0ed03320b66bf31775cedc', class: 'Detail' }, " - [ ", this.activeMessage.detail, " ]")))));
|
|
278
280
|
}
|
|
279
281
|
handleClientStylingChange(newValue, oldValue) {
|
|
280
282
|
if (newValue != oldValue) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-e015b33d.js';
|
|
2
|
-
import { t as translate, C as CloseSvg, a as BoostingPeriodMode, h as hooks } from './bonus-powerups-ingame-list-
|
|
3
|
-
export { B as bonus_powerups_ingame_list } from './bonus-powerups-ingame-list-
|
|
2
|
+
import { t as translate, C as CloseSvg, a as BoostingPeriodMode, h as hooks } from './bonus-powerups-ingame-list-5a25eec5.js';
|
|
3
|
+
export { B as bonus_powerups_ingame_list } from './bonus-powerups-ingame-list-5a25eec5.js';
|
|
4
4
|
|
|
5
5
|
const activeConfirmModalCss = ".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";
|
|
6
6
|
const ActiveConfirmModalStyle0 = activeConfirmModalCss;
|
package/dist/esm/{bonus-powerups-ingame-list-64847749.js → bonus-powerups-ingame-list-5a25eec5.js}
RENAMED
|
@@ -5946,7 +5946,7 @@ const ClearSearch = `<svg width="52" height="52" viewBox="0 0 52 52" fill="none"
|
|
|
5946
5946
|
</svg>
|
|
5947
5947
|
`;
|
|
5948
5948
|
|
|
5949
|
-
const bonusPowerupsIngameListCss = "@charset \"UTF-8\";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:\"\";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.
|
|
5949
|
+
const bonusPowerupsIngameListCss = "@charset \"UTF-8\";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.IngamePowerUpsContainer .EmptyPowerups.Cards{height:calc(100% - 260px)}.IngamePowerUpsContainer .EmptyPowerups .Icon,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.IngamePowerUpsContainer .EmptyPowerups .Icon svg,.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.IngamePowerUpsContainer .EmptyPowerups .NoPowerDescription{display:flex;flex-direction:column}.IngamePowerUpsContainer .ToastWrapper{position:absolute;width:80%;display:flex;gap:10px;align-items:center;opacity:0;z-index:1000;transition:opacity 0.5s ease-out;bottom:10px;right:10px;height:40px;border-top-left-radius:8px;border-bottom-left-radius:8px;border-width:1px;padding:8px 15px}.IngamePowerUpsContainer .ToastWrapper.Shown{opacity:1}.IngamePowerUpsContainer .ToastWrapper.Hidden{opacity:0;z-index:-1;display:inherit}.IngamePowerUpsContainer .ToastWrapper.Failed,.IngamePowerUpsContainer .ToastWrapper.Success{padding:10px;border-radius:10px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%)}.IngamePowerUpsContainer .ToastWrapper.Success{border:1px solid;border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%)}.IngamePowerUpsContainer .ToastWrapper.Failed{border:1px solid var(--emw--ingame-color-light-red, #FF4D4F)}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:\"\";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card.Hidden{display:none}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.9rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:142px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:5px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}";
|
|
5950
5950
|
const BonusPowerupsIngameListStyle0 = bonusPowerupsIngameListCss;
|
|
5951
5951
|
|
|
5952
5952
|
const BonusPowerupsIngameList = class {
|
|
@@ -6044,18 +6044,20 @@ const BonusPowerupsIngameList = class {
|
|
|
6044
6044
|
this.isLoadingGamePowers = false;
|
|
6045
6045
|
}
|
|
6046
6046
|
}
|
|
6047
|
-
async loadData(
|
|
6048
|
-
if (this.isLoading || this.total > 0 && this.powerups.length >= this.total) {
|
|
6047
|
+
async loadData(isLoadingMore = true) {
|
|
6048
|
+
if (this.isLoading || (isLoadingMore && this.total > 0 && this.powerups.length >= this.total)) {
|
|
6049
6049
|
return;
|
|
6050
6050
|
}
|
|
6051
|
+
if (!isLoadingMore) {
|
|
6052
|
+
this.powerups = [];
|
|
6053
|
+
this.total = 0;
|
|
6054
|
+
}
|
|
6051
6055
|
this.isLoading = true;
|
|
6052
6056
|
if (this.abortController) {
|
|
6053
6057
|
this.abortController.abort();
|
|
6054
6058
|
}
|
|
6055
6059
|
this.abortController = new AbortController();
|
|
6056
|
-
if (!
|
|
6057
|
-
this.powerups = [];
|
|
6058
|
-
this.total = 0;
|
|
6060
|
+
if (!isLoadingMore) {
|
|
6059
6061
|
await this.loadGamePowers();
|
|
6060
6062
|
}
|
|
6061
6063
|
try {
|
|
@@ -6169,7 +6171,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6169
6171
|
this.showToasting = true;
|
|
6170
6172
|
this.timerId = setTimeout(() => {
|
|
6171
6173
|
this.showToasting = false;
|
|
6172
|
-
|
|
6174
|
+
this.reloadPowerups();
|
|
6173
6175
|
}, 2000);
|
|
6174
6176
|
}
|
|
6175
6177
|
catch (e) {
|
|
@@ -6202,7 +6204,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6202
6204
|
}
|
|
6203
6205
|
render() {
|
|
6204
6206
|
var _a, _b, _c, _d;
|
|
6205
|
-
return (h("div", { key: '
|
|
6207
|
+
return (h("div", { key: '644cd1cb9a5dbdfb54b472cbfa431f18d5720a7f', class: 'IngamePowerUpsContainer', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '61addac0a73e394c212c43f3662ae103e5e9c087', class: `TopBar ${this.showConfirmModal ? 'Hidden' : ''}` }, h("span", { key: 'e871a3be6bbed7e1baec73390212040869ba8e6a', class: 'BarTitle' }, translate('powerups', this.language)), h("div", { key: 'f455abf68f64a7f9f7b98d09c4b3cd1fc188f1e2', class: 'IconBtn CircleLinearBorder', onClick: this.onClose.bind(this), innerHTML: CloseSvg })), this.isLoading && this.powerups.length === 0
|
|
6206
6208
|
? h("smart-loader", null)
|
|
6207
6209
|
: (this.powerups.length > 0 ?
|
|
6208
6210
|
h("div", { class: `Cards ${this.showConfirmModal || this.powerups.length === 0 ? 'Hidden' : ''}` }, this.isPowering &&
|
|
@@ -6217,7 +6219,7 @@ const BonusPowerupsIngameList = class {
|
|
|
6217
6219
|
: translate('minutes', this.language))), (powerup.status === PowerUpStatus.ACTIVE || powerup.status === PowerUpStatus.ACTIVATING) &&
|
|
6218
6220
|
h("div", { class: `ActiveBtn CircleLinearBorder ${this.isPowering || this.isActivating || !powerup.isValidForCurrentGame ? 'Disabled' : ''} ${this.isActivating ? 'Activating' : ''}`, onClick: () => this.onActiveBtnClick(powerup) }, h("div", { class: 'content' }, " ", translate('activate', this.language))))));
|
|
6219
6221
|
}), this.isLoading && this.powerups.length > 0 && h("smart-loader", null))
|
|
6220
|
-
: h("div", { class: 'EmptyPowerups Cards' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("div", { class: 'NoPowerDescription' }, h("span", null, translate('noPowerUpsNow')), h("span", null, translate('gotoShop'))), h("div", null))), h("active-confirm-modal", { key: '
|
|
6222
|
+
: h("div", { class: 'EmptyPowerups Cards' }, h("div", { class: 'Icon', innerHTML: ClearSearch }), h("span", { class: 'NoPowerTitle' }, translate('nothingHere', this.language)), h("div", { class: 'NoPowerDescription' }, h("span", null, translate('noPowerUpsNow')), h("span", null, translate('gotoShop'))), h("div", null))), h("active-confirm-modal", { key: '3e6355765d9f5420aa77a976cd93c4f37028a66b', "is-open": this.showConfirmModal, pid: (_a = this.currentPowerup) === null || _a === void 0 ? void 0 : _a.id, language: this.language }), h("div", { key: '4957fb58f76d243eb61d25d933f486c291833b78', class: `ToastWrapper ${this.showToasting ? "Shown" : "Hidden"} ${((_b = this.activeMessage) === null || _b === void 0 ? void 0 : _b.isSuccessed) ? "Success" : "Failed"}` }, h("div", { key: 'b8acbc7a8bfcf174fc2545eadae75b64288848cd', class: `Details` }, h("span", { key: 'db4f9b70fa0d066a0dc2eb393eddedc39ca473b6', class: 'Info' }, (_c = this.activeMessage) === null || _c === void 0 ? void 0 : _c.info), ((_d = this.activeMessage) === null || _d === void 0 ? void 0 : _d.detail) && h("span", { key: 'f92ea154486b7725ca0ed03320b66bf31775cedc', class: 'Detail' }, " - [ ", this.activeMessage.detail, " ]")))));
|
|
6221
6223
|
}
|
|
6222
6224
|
handleClientStylingChange(newValue, oldValue) {
|
|
6223
6225
|
if (newValue != oldValue) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { B as BonusPowerupsIngameList } from './bonus-powerups-ingame-list-
|
|
1
|
+
export { B as BonusPowerupsIngameList } from './bonus-powerups-ingame-list-5a25eec5.js';
|
|
2
2
|
import './index-e015b33d.js';
|