@jolibox/implement 1.2.3 → 1.2.5-beta.3
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/.rush/temp/package-deps_build.json +44 -28
- package/.rush/temp/shrinkwrap-deps.json +2 -1
- package/CHANGELOG.json +11 -0
- package/CHANGELOG.md +9 -0
- package/dist/common/context/index.d.ts +5 -0
- package/dist/common/report/base-tracker.d.ts +2 -1
- package/dist/common/rewards/cached-fetch-reward.d.ts +46 -0
- package/dist/common/rewards/cached-reward-service.d.ts +24 -0
- package/dist/common/rewards/fetch-reward.d.ts +2 -3
- package/dist/common/rewards/index.d.ts +3 -0
- package/dist/common/rewards/registers/use-subscription.d.ts +7 -0
- package/dist/common/rewards/registers/utils/coins/jolicoin/cached-fetch-balance.d.ts +34 -0
- package/dist/common/rewards/registers/utils/coins/jolicoin/fetch-balance.d.ts +2 -1
- package/dist/common/rewards/registers/utils/coins/joligem/cached-fetch-gem-balance.d.ts +34 -0
- package/dist/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.d.ts +2 -1
- package/dist/common/rewards/registers/utils/subscription/commands/index.d.ts +1 -0
- package/dist/common/rewards/registers/utils/subscription/commands/use-subscription.d.ts +4 -0
- package/dist/common/rewards/registers/utils/subscription/sub-handler.d.ts +13 -0
- package/dist/common/rewards/reward-emitter.d.ts +7 -0
- package/dist/common/rewards/reward-helper.d.ts +2 -1
- package/dist/common/utils/index.d.ts +18 -0
- package/dist/h5/api/platformAdsHandle/JoliboxAdsHandler.d.ts +1 -0
- package/dist/h5/bootstrap/auth/__tests__/auth.test.d.ts +1 -0
- package/dist/h5/bootstrap/auth/index.d.ts +2 -0
- package/dist/h5/bootstrap/auth/sub.d.ts +2 -0
- package/dist/index.js +9 -13
- package/dist/index.native.js +49 -53
- package/dist/native/api/index.d.ts +1 -0
- package/dist/native/api/payment.d.ts +1 -0
- package/dist/native/payment/__tests__/payment-service-simple.test.d.ts +1 -0
- package/dist/native/payment/payment-helper.d.ts +8 -5
- package/dist/native/payment/payment-service.d.ts +44 -0
- package/implement.build.log +2 -2
- package/package.json +8 -7
- package/src/common/context/index.ts +12 -0
- package/src/common/report/base-tracker.ts +2 -2
- package/src/common/rewards/cached-fetch-reward.ts +258 -0
- package/src/common/rewards/cached-reward-service.ts +255 -0
- package/src/common/rewards/fetch-reward.ts +17 -93
- package/src/common/rewards/index.ts +4 -0
- package/src/common/rewards/registers/use-subscription.ts +34 -0
- package/src/common/rewards/registers/utils/coins/jolicoin/cached-fetch-balance.ts +177 -0
- package/src/common/rewards/registers/utils/coins/jolicoin/fetch-balance.ts +13 -1
- package/src/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.ts +2 -0
- package/src/common/rewards/registers/utils/coins/joligem/cached-fetch-gem-balance.ts +181 -0
- package/src/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.ts +13 -1
- package/src/common/rewards/registers/utils/coins/joligem/gem-handler.ts +2 -0
- package/src/common/rewards/registers/utils/subscription/commands/index.ts +1 -0
- package/src/common/rewards/registers/utils/subscription/commands/use-subscription.ts +29 -0
- package/src/common/rewards/registers/utils/subscription/sub-handler.ts +88 -0
- package/src/common/rewards/reward-emitter.ts +8 -0
- package/src/common/rewards/reward-helper.ts +8 -1
- package/src/common/utils/index.ts +23 -0
- package/src/h5/api/ads.ts +18 -12
- package/src/h5/api/platformAdsHandle/JoliboxAdsHandler.ts +25 -1
- package/src/h5/api/storage.ts +2 -2
- package/src/h5/bootstrap/auth/__tests__/auth.test.ts +308 -0
- package/src/h5/bootstrap/auth/index.ts +20 -0
- package/src/h5/bootstrap/auth/sub.ts +56 -0
- package/src/h5/bootstrap/index.ts +4 -19
- package/src/h5/http/index.ts +2 -2
- package/src/h5/report/event-tracker.ts +2 -2
- package/src/h5/rewards/index.ts +18 -1
- package/src/native/api/ads.ts +7 -1
- package/src/native/api/call-host-method.ts +1 -1
- package/src/native/api/index.ts +1 -0
- package/src/native/api/navigate.ts +10 -1
- package/src/native/api/payment.ts +56 -0
- package/src/native/payment/__tests__/payment-service-simple.test.ts +274 -0
- package/src/native/payment/payment-helper.ts +10 -4
- package/src/native/payment/payment-service.ts +293 -0
- package/src/native/payment/registers/jolicoin-iap.ts +4 -4
- package/src/native/report/index.ts +4 -1
- package/src/native/rewards/ui/payment-modal.ts +20 -60
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var SC=Object.create;var Do=Object.defineProperty,xC=Object.defineProperties,CC=Object.getOwnPropertyDescriptor,TC=Object.getOwnPropertyDescriptors,OC=Object.getOwnPropertyNames,No=Object.getOwnPropertySymbols,PC=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty,Sf=Object.prototype.propertyIsEnumerable;var Af=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Tl.call(t,r)&&Af(e,r,t[r]);if(No)for(var r of No(t))Sf.call(t,r)&&Af(e,r,t[r]);return e},F=(e,t)=>xC(e,TC(t));var je=(e,t)=>{var r={};for(var n in e)Tl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&No)for(var n of No(e))t.indexOf(n)<0&&Sf.call(e,n)&&(r[n]=e[n]);return r};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xf=(e,t)=>{for(var r in t)Do(e,r,{get:t[r],enumerable:!0})},RC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of OC(t))!Tl.call(e,i)&&i!==r&&Do(e,i,{get:()=>t[i],enumerable:!(n=CC(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?SC(PC(e)):{},RC(t||!e||!e.__esModule?Do(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function UC(e){return!!(e!=null&&e.__nativeBuffers__)}function Ml(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!UC(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=FC(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function JC(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:jC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function VC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function jf(e){return typeof e=="string"}function on(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Tf(e){return typeof e=="number"&&!isNaN(e)}function WC(e){return typeof e=="undefined"}function zC(e){return WC(e)||e===null}function Jf(e){return typeof e=="function"}function KC(e){return on(e)&&Jf(e.then)}function Gf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ti(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function rT(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function sT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function pT(e){return new Promise(t=>Bf(e)(t))}function Bf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function fT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ii(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function mT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)vT(e[n],t[n])}function vT(e,t){if(jf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Jf(t)){try{if(e instanceof t)return}catch(r){}if(!zC(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Vl(e,t){if(Ul.config[e]){jo.warn(`[can i use] ${e} already registered`);return}Ul.config[e]=Wt({},t)}function Rf(e,t){return`[${e}]:${t}`}function ET(e,t){Nf||(Rl=new Mo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Nl=new Mo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Dl=new Mo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Rl.flush(),Nl.flush(),Dl.flush()}),Nf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Rl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Nl.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Dl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function xT(e,t){let r=0,n=!0,i=ST.resolveMap,o=ET(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ll.forEach(l=>Uo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Ll.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Ml(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new $C;if(i.set(r,m.resolve),!n&&_T.includes(l))return new Promise(x=>{Ll.push({method:l,args:c,resolve:x})});let g=MC(Wt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!kT&&yT.includes(l),v=JC(c,y),b=y?v:JSON.stringify(v),k;if(l.endsWith("Sync")||bT.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Ml(k)}catch(x){jo.error(x)}return i.delete(r),k.errorCode&&(k.errorCode=Rf(l,k.errorCode)),o(Wt(Wt({},g),k)),k}return l.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Rf(l,x.errorCode)),o(Wt(Wt({},g),x)),x))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return KC(d)?d.then(u=>Df(l,u)):Df(l,d)},invokeHandler:a}}function Df(e,t){if(!on(t)){jo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=qC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new ZC(n,i,o,a);return s}function CT(e){if(globalThis[Lo])return globalThis[Lo];let t=new Jl,r=new Jl,n=new Mo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Lo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Ml(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Vf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ni.length),u,a)}catch(p){}});return}if(i.startsWith(ni)){r.emit(i.slice(ni.length),l,a);return}t.emit(i,l,a)}},globalThis[Lo]}function TT(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${ni}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Vf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ni}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(wT,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function OT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=CT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=xT(e,r),{publish:c,emitNative:d}=TT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function $f(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var NC,DC,LC,qo,Mf,qf,Cf,Wt,MC,qC,Uo,FC,jC,Uf,GC,BC,Ff,HC,$C,YC,QC,Fo,XC,ZC,eT,Ol,jo,Of,tT,ql,nT,Ul,iT,oT,aT,nn,lT,tV,Fl,se,cT,uT,ri,ii,Jl,Gl,dT,Pl,hT,rV,Bl,Pf,nV,Hf,gT,ni,yT,_T,bT,Vf,wT,IT,Mo,Nf,Rl,Nl,Dl,Ll,kT,Hl,AT,ST,Lo,$l,mt,Wf,zf,PT,Kf,Lf,ye,j,et,iV,RT,Yf,Wl,oV,aV,_e=S(()=>{"use strict";NC=Object.defineProperty,DC=Object.defineProperties,LC=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,qf=Object.prototype.propertyIsEnumerable,Cf=(e,t,r)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))Mf.call(t,r)&&Cf(e,r,t[r]);if(qo)for(var r of qo(t))qf.call(t,r)&&Cf(e,r,t[r]);return e},MC=(e,t)=>DC(e,LC(t)),qC=(e,t)=>{var r={};for(var n in e)Mf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qo)for(var n of qo(e))t.indexOf(n)<0&&qf.call(e,n)&&(r[n]=e[n]);return r},Uo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});FC=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};jC=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Uf=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,BC=(e,t)=>{for(var r in t)Uf(e,r,{get:t[r],enumerable:!0})},Ff=(e,t,r,n)=>{for(var i=n>1?void 0:n?GC(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Uf(t,r,i),i},HC=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}$C=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};YC=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(YC||{}),QC=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Fo=class extends QC{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},XC=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},ZC=class extends Fo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},eT=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Ol=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};jo={log:ti("log"),warn:ti("warn"),info:ti("info"),error:ti("error"),debug:ti("debug")};Object.assign(globalThis,{logger:jo});Of=Symbol.for("Jolibox.canIUseMap"),tT={};globalThis[Of]||(globalThis[Of]=tT);ql=Symbol.for("Jolibox.canIUseMap.native"),nT={};globalThis[ql]||(globalThis[ql]=nT);Ul={get config(){return globalThis[ql]}},iT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(iT||{}),oT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(oT||{}),aT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(aT||{});sT();nn=typeof window=="undefined",lT=()=>!nn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),tV={isiOS:!nn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!nn&&navigator.userAgent.includes("Android"),isMac:!nn&&navigator.userAgent.includes("Mac"),isFacebook:!nn&&navigator.userAgent.includes("FB_IAB"),isPC:!nn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Fl=class jl{constructor(t){this.element=t,this.next=jl.Undefined,this.prev=jl.Undefined}};Fl.Undefined=new Fl(void 0);se=Fl,cT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},uT=0,ri=class{constructor(e){this.value=e,this.id=uT++}},ii=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ri&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ri(t);return this._listeners?this._listeners instanceof ri?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ri)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ri?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Jl=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ii,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new cT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Gl={};BC(Gl,{None:()=>dT,filter:()=>fT,once:()=>Bf,toPromise:()=>pT});dT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Pl=Symbol.for("Jolibox.hostEmitter"),hT=()=>{let e=new Jl;return globalThis[Pl]||(globalThis[Pl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Pl]},rV=hT();Bl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ii,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return mT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Bl=Ff([Gf],Bl);Pf=class{constructor(){this._onWillExecuteCommand=new ii,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ii,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Bl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=VC(3e4)),this._starActivation}executeCommand(e,...t){return HC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Gl.toPromise(Gl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Pf=Ff([Gf],Pf);nV=Symbol.for("Jolibox.commands");Vl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Vl("requestProductDetailsAsync",{version:102e4});Vl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Hf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Ul.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=rT(i,o);if(!s)return!1;if(on(s)){let l=s.version;return Tf(l)?typeof a=="number"&&a>=l:!0}return Tf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};gT=()=>lT(),ni="custom_event_",yT=[],_T=[],bT=["env","createRequestTask","login"],Vf="__batch_event__",wT="__native_batch_event__",IT=e=>e==="pv"?e:"default",Mo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=IT(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&on(a))throw new Ol(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(on(a))l.push(...Object.keys(a));else if(jf(a)){if(i.length>0)throw new Ol(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Ol(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=on(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Nf=!1;Ll=[],kT=!1,Hl=Symbol.for("Jolibox.invokeResolverInstance"),AT=new Map;globalThis[Hl]||(globalThis[Hl]=AT);ST={get resolveMap(){return globalThis[Hl]}};Lo=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Wf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new XC("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Uo(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});$l={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=$f(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Wf,doExit:r};globalThis.joliboxJSCore=Wt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Uo(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});$l={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=$f(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return Uo(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Wf,doExit:n};globalThis.joliboxJSCore=Wt({},i)}zf=$l;if(!zf&&gT())throw new eT("No joliboxJScore is found, native bridge not found.");PT=Wt({},zf),Kf=OT(PT),{invokeHandler:Lf}=Kf,{applyNative:ye,invokeNative:j,onNative:et,offNative:iV,subscribeHandler:RT,publish:Yf,emitNative:Wl,subscribe:oV,unsubscribe:aV}=Kf;globalThis.joliboxJSBridge={callHandler:Lf,invokeHandler:Lf,subscribeHandler:RT}});function FT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function rh(e){return new Promise(t=>setTimeout(t,e))}function ci(e){return typeof e=="string"}function qr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function nh(e){return typeof e=="object"&&Array.isArray(e)}function ih(e){return typeof e=="number"&&!isNaN(e)}function hr(e){return e===!0||e===!1}function oh(e){return typeof e=="undefined"}function tc(e){return oh(e)||e===null}function jT(e){return typeof e=="function"}function ah(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function sh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Zf(l)&&Zf(s)?i[a]=n(MT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Zf(e){return e&&typeof e=="object"&&e.constructor===Object}function lh(e,t){if(Array.isArray(e))return e.concat(t)}function ui(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function GT(e,t){return(...r)=>t(e,...r)}function Go(e){return t=>GT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function mh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function sc(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function zT(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function lc(e){return zT("api","stg-api",e)}function Ur(e){return`https://${lc(e)}`}function XT(e){return new Promise(t=>_h(e)(t))}function _h(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function ZT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function t1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)r1(e[n],t[n])}function r1(e,t){if(ci(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jT(t)){try{if(e instanceof t)return}catch(r){}if(!tc(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function n1(){return typeof globalThis!="undefined"?globalThis[bh]:void 0}function i1(e){typeof globalThis!="undefined"&&(globalThis[bh]=e)}function X(e=!1){let t=n1();if(!e&&t)return t;let r=new Jo,n=new Zl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return i1(i),i}var ec,NT,Qf,DT,LT,Xf,MT,qT,th,UT,Ot,JT,rc,di,nc,ch,Pt,uh,dh,ph,fh,hh,pi,ic,Rt,Kl,BT,oc,eh,HT,G,ac,VT,an,ai,fi,$T,WT,vh,gh,yh,Yl,le,KT,YT,si,li,Nt,Xl,QT,zl,e1,ne,Jo,Zl,bh,R=S(()=>{"use strict";ec=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,Qf=Object.getOwnPropertySymbols,DT=Object.prototype.hasOwnProperty,LT=Object.prototype.propertyIsEnumerable,Xf=(e,t,r)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MT=(e,t)=>{for(var r in t||(t={}))DT.call(t,r)&&Xf(e,r,t[r]);if(Qf)for(var r of Qf(t))LT.call(t,r)&&Xf(e,r,t[r]);return e},qT=(e,t)=>{for(var r in t)ec(e,r,{get:t[r],enumerable:!0})},th=(e,t,r,n)=>{for(var i=n>1?void 0:n?NT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ec(t,r,i),i},UT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};JT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(JT||{}),rc=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},di=class extends rc{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},nc=class extends rc{constructor(){super(...arguments),this.kind="USER_ERROR"}},ch=class extends nc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends nc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},uh=class extends nc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},dh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ph=class extends di{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},fh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},hh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},pi=class extends rc{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},ic=class extends di{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:oi("log"),warn:oi("warn"),info:oi("info"),error:oi("error"),debug:oi("debug")};Object.assign(globalThis,{logger:Rt});Kl=Symbol.for("Jolibox.canIUseMap"),BT={};globalThis[Kl]||(globalThis[Kl]=BT);oc={get config(){return globalThis[Kl]}},eh=Symbol.for("Jolibox.canIUseMap.native"),HT={};globalThis[eh]||(globalThis[eh]=HT);G=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(G||{}),ac=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(ac||{}),VT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(VT||{}),an=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});sc();ai=typeof window=="undefined",fi={isiOS:!ai&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!ai&&navigator.userAgent.includes("Android"),isMac:!ai&&navigator.userAgent.includes("Mac"),isFacebook:!ai&&navigator.userAgent.includes("FB_IAB"),isPC:!ai&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},$T="device_id",WT="advertising_id",vh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,an()),window.__joliboxLocalStorage__.getItem(e)),gh=()=>new URLSearchParams(window.location.search).get("deviceId")||vh($T),yh=()=>new URLSearchParams(window.location.search).get("advertisingId")||vh(WT);Yl=class Ql{constructor(t){this.element=t,this.next=Ql.Undefined,this.prev=Ql.Undefined}};Yl.Undefined=new Yl(void 0);le=Yl,KT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},YT=0,si=class{constructor(e){this.value=e,this.id=YT++}},li=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new li,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new KT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Xl={};qT(Xl,{None:()=>QT,filter:()=>ZT,once:()=>_h,toPromise:()=>XT});QT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});zl=Symbol.for("Jolibox.hostEmitter"),e1=()=>{let e=new Nt;return globalThis[zl]||(globalThis[zl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[zl]},ne=e1();Jo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new li,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return t1(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Jo=th([ah],Jo);Zl=class{constructor(){this._onWillExecuteCommand=new li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=FT(3e4)),this._starActivation}executeCommand(e,...t){return UT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Xl.toPromise(Xl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Zl=th([ah],Zl);bh=Symbol.for("Jolibox.commands")});function xe(e,t={}){cc.emit("ERROR_REPORT",{error:e,options:t})}var cc,Fr,vt=S(()=>{"use strict";R();R();cc=new Nt,Fr=new Nt;xe.debounce=ui(xe,50,{leading:!0})});var uc,o1,wh,Ih,Eh=S(()=>{"use strict";R();vt();uc=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},o1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},wh=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:uc(o),payloadJson:uc(a),signature:uc(s)}}else throw"joli_source is missing"}catch(r){return xe(new dh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Ih=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=o1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var a1,dc,kh=S(()=>{"use strict";R();a1="1.2.3",dc=()=>a1});function fc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var s1,Ah,pc,Sh,de,l1,E,B=S(()=>{"use strict";R();Eh();kh();R();s1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:gh(),adId:yh(),pixelRatio:window.devicePixelRatio||1,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:dc()},schema:window.location.href,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5"},pc=(Ah=globalThis.joliboxJSCore)==null?void 0:Ah.env,de=Object.assign({},(Sh=pc==null?void 0:pc())!=null?Sh:s1);l1=()=>{var f,m,g,y,v,b,k,x,P,C,A;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?wh(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((x=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(A=(C=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?A:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:dc()},get mpType(){var O,J;return(J=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var O;return((O=de.platform)!=null?O:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var O,J;return(J=(O=de.clientSessionId)!=null?O:s)!=null?J:n},get channel(){return u},get webviewId(){var O;return(O=de.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return lc(d)},get adId(){var O;return(O=de.deviceInfo.adId)!=null?O:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return fc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":fc("gamedistribution","jolibox")?"gamedistribution":fc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Re,Ne;let O=(M=de.deviceInfo.pixelRatio)!=null?M:1,J=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/O:20,navigationBarHeight:Ke!==void 0?Ke/O:10}},get abTests(){var O,J;return(J=(O=de.abValues)==null?void 0:O.split(","))!=null?J:[]},onEnvConfigChanged:O=>{sh(de,O,lh)},encodeJoliSourceQuery:O=>{var J,Ke;return t&&r?Ih(T(T({},e),O),(J=o.get("joliSource"))!=null?J:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=l1()});var hc,Ch,c1,u1,xh,d1,Th=S(()=>{"use strict";R();vt();B();R();hc=!1,Ch=(e,t)=>e==null?!1:t in e,c1=e=>Ch(e,"kind"),u1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},xh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:u1(e.name)},i=F(T({},n),{env:t.environment,isFromUser:r});r?Fr.emit("GLOBAL_USER_ERROR",e,i):Fr.emit("GLOBAL_ERROR",e,i)},d1=e=>Ch(e,"kind")&&e.kind==="USER_ERROR";cc.on("ERROR_REPORT",({error:e,options:t})=>{if(hc)return;hc=!0;let r=c1(e)&&e.raw?e.raw:e;try{let n=d1(e);xh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ic(`${i}, origin error: ${r.message}`);Rt.error(o),xh(new ic(o.message),{environment:t.environment},!1)}finally{hc=!1}})});var mr,mc,sn=S(()=>{"use strict";vt();R();vt();mr=(e,t)=>{var r,n;return new pi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},mc=e=>new ch(e)});var Oh=S(()=>{"use strict";Th();sn();R();_e();Fr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Fr.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var vc=S(()=>{"use strict"});function Ph(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(T({tag:n,eventType:o!=null?o:a!=null?a:G.Other},t),{extra:T({},s)});n=="globalJsError"?xe(new hh(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=ui(r,500,{leading:!0}),r}function Rh(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=ui(t,500,{leading:!0}),t}var Nh=S(()=>{"use strict";R();R();vt();B()});function Dh(e,t){let r=Ph(e,t),n=Rh(r);return{track:r,trackPerformance:n}}var Lh=S(()=>{"use strict";Nh()});var Mh=S(()=>{"use strict";B();R();R()});var qh=S(()=>{"use strict";Lh();vc();Mh()});var Bo,Uh=S(()=>{"use strict";Bo=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Ho(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:Ur(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return et("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),y=p1(u,F(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:k="json",timeout:x,enableCache:P=!1,appendHostCookie:C=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:v,header:A,enableCache:P,responseType:b,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Ne=h1(p.data,A["content-type"]);O.data=Ne}x&&Object.assign(O,{timeout:x});let{data:{requestTaskId:J}}=j(e,O);if(typeof J!="string")throw mr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Re}=new Ot;n.set(J,{resolve:Ke,reject:M});try{let Ne=yield Re,{data:Mr}=Ne;return k==="json"&&typeof Mr=="string"&&(Mr=f1(Mr)),{url:y,timeout:x,method:v,response:F(T({},Ne),{data:Mr})}}catch(Ne){let Mr=Ne;if(qr(Mr)){let{errMsg:Cl,prefetchDetail:X4,isPrefetch:Z4,errNo:AC}=Mr;ci(Cl)&&xe(mr({code:-1,msg:Cl},{errNo:AC,errMsg:Cl}))}throw Ne}})}function f1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function h1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var p1,gc=S(()=>{"use strict";R();_e();vt();sn();B();p1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var yc,Fh,te,gt=S(()=>{"use strict";gc();B();R();yc={};(Fh=E.hostUserInfo)!=null&&Fh.token&&(yc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(yc["x-joli-source"]=E.joliSource);te=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Ur(E.testMode),defaultHeaders:yc})});function jh(e){let t=oc.config[e];return t||(t={},oc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var Jh=S(()=>{"use strict";R()});function _c(e){Gh=e}function Vo(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Vo(t)):Object.keys(e).reduce((t,r)=>(t[r]=Vo(e[r]),t),{})}function zt(e){return typeof e=="number"}function bc(e){let t=wc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function wc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Gh,be,$o,Wo,zo,Ko,ln,Yo,Qo,Xo,Zo,ea,ta,ra,na,ia,oa,aa,sa,Ic=S(()=>{"use strict";Gh=!1;be=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Gh)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${bc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Vo(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Vo(this._default)}optional(){return this._optional=!0,this}};$o=class extends be{validate(t){return this._optional&&t===void 0?!0:zt(t)?zt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):zt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):zt(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Wo=class extends be{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},zo=class extends be{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(zt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(zt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Ko=class extends be{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},ln=class extends be{validate(t){return!0}},Yo=class extends be{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Qo=class extends be{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Xo=class extends be{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Zo=class extends be{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${bc(t)}`)}return!0}},ea=class extends be{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(zt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(zt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(zt(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},ta=class extends be{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(wc(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},ra=class extends be{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(wc(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},na=class extends be{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:bc(this.value),actual:r}):!0}},ia=class extends be{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
2
|
-
or `);this.errors.push(o)}return n}},
|
|
3
|
-
`);throw e.errors.length=0,
|
|
1
|
+
var gT=Object.create;var Mo=Object.defineProperty,vT=Object.defineProperties,yT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertyNames,Lo=Object.getOwnPropertySymbols,wT=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable;var uh=(e,t,r)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Gl.call(t,r)&&uh(e,r,t[r]);if(Lo)for(var r of Lo(t))dh.call(t,r)&&uh(e,r,t[r]);return e},F=(e,t)=>vT(e,_T(t));var Be=(e,t)=>{var r={};for(var n in e)Gl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Lo)for(var n of Lo(e))t.indexOf(n)<0&&dh.call(e,n)&&(r[n]=e[n]);return r};var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ph=(e,t)=>{for(var r in t)Mo(e,r,{get:t[r],enumerable:!0})},IT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bT(t))!Gl.call(e,i)&&i!==r&&Mo(e,i,{get:()=>t[i],enumerable:!(n=yT(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?gT(wT(e)):{},IT(t||!e||!e.__esModule?Mo(r,"default",{value:e,enumerable:!0}):r,e));var _=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function xT(e){return!!(e!=null&&e.__nativeBuffers__)}function zl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!xT(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=TT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function RT(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:OT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function qT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function kh(e){return typeof e=="string"}function fn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function hh(e){return typeof e=="number"&&!isNaN(e)}function MT(e){return typeof e=="undefined"}function UT(e){return MT(e)||e===null}function Ch(e){return typeof e=="function"}function FT(e){return fn(e)&&Ch(e.then)}function Ah(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ai(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function VT(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function QT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function rO(e){return new Promise(t=>xh(e)(t))}function xh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function nO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ci(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function oO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)aO(e[n],t[n])}function aO(e,t){if(kh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Ch(t)){try{if(e instanceof t)return}catch(r){}if(!UT(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function nc(e,t){if(Yl.config[e]){Jo.warn(`[can i use] ${e} already registered`);return}Yl.config[e]=Yt({},t)}function vh(e,t){return`[${e}]:${t}`}function fO(e,t){yh||(Hl=new Fo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),$l=new Fo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Vl=new Fo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Hl.flush(),$l.flush(),Vl.flush()}),yh=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Hl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&v&&($l.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Vl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function vO(e,t){let r=0,n=!0,i=gO.resolveMap,o=fO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Wl.forEach(l=>Go(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Wl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=zl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new LT;if(i.set(r,m.resolve),!n&&cO.includes(l))return new Promise(A=>{Wl.push({method:l,args:c,resolve:A})});let v=CT(Yt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!hO&&lO.includes(l),g=RT(c,y),w=y?g:JSON.stringify(g),S;if(l.endsWith("Sync")||uO.includes(l)?S=(d=e.call)==null?void 0:d.call(e,l,g,r):typeof w=="string"?S=e.invoke(l,w,r):S=(u=e.call)==null?void 0:u.call(e,l,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=zl(S)}catch(A){Jo.error(A)}return i.delete(r),S.errorCode&&(S.errorCode=vh(l,S.errorCode)),o(Yt(Yt({},v),S)),S}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=vh(l,A.errorCode)),o(Yt(Yt({},v),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return FT(d)?d.then(u=>_h(l,u)):_h(l,d)},invokeHandler:a}}function _h(e,t){if(!fn(t)){Jo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=AT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new JT(n,i,o,a);return s}function yO(e){if(globalThis[Uo])return globalThis[Uo];let t=new Zl,r=new Zl,n=new Fo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Uo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=zl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Oh){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(li.length),u,a)}catch(p){}});return}if(i.startsWith(li)){r.emit(i.slice(li.length),l,a);return}t.emit(i,l,a)}},globalThis[Uo]}function _O(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${li}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Oh,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${li}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(dO,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function bO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=yO(e),{invokeNative:a,invokeHandler:s,applyNative:l}=vO(e,r),{publish:c,emitNative:d}=_O(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Rh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var ET,ST,kT,jo,wh,Ih,fh,Yt,CT,AT,Go,TT,OT,Eh,PT,NT,Sh,DT,LT,jT,GT,Bo,BT,JT,HT,Bl,Jo,mh,$T,Kl,WT,Yl,zT,KT,YT,pn,XT,V$,Ql,se,ZT,eO,si,ci,Zl,ec,tO,Jl,iO,W$,tc,gh,z$,Th,sO,li,lO,cO,uO,Oh,dO,pO,Fo,yh,Hl,$l,Vl,Wl,hO,rc,mO,gO,Uo,ic,mt,Ph,Nh,wO,Dh,bh,_e,j,rt,K$,IO,qh,oc,Y$,Q$,be=C(()=>{"use strict";ET=Object.defineProperty,ST=Object.defineProperties,kT=Object.getOwnPropertyDescriptors,jo=Object.getOwnPropertySymbols,wh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,fh=(e,t,r)=>t in e?ET(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))wh.call(t,r)&&fh(e,r,t[r]);if(jo)for(var r of jo(t))Ih.call(t,r)&&fh(e,r,t[r]);return e},CT=(e,t)=>ST(e,kT(t)),AT=(e,t)=>{var r={};for(var n in e)wh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&jo)for(var n of jo(e))t.indexOf(n)<0&&Ih.call(e,n)&&(r[n]=e[n]);return r},Go=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});TT=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};OT=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Eh=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,NT=(e,t)=>{for(var r in t)Eh(e,r,{get:t[r],enumerable:!0})},Sh=(e,t,r,n)=>{for(var i=n>1?void 0:n?PT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Eh(t,r,i),i},DT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}LT=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};jT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(jT||{}),GT=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Bo=class extends GT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},BT=class extends Bo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},JT=class extends Bo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},HT=class extends Bo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Bl=class extends Bo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Jo={log:ai("log"),warn:ai("warn"),info:ai("info"),error:ai("error"),debug:ai("debug")};Object.assign(globalThis,{logger:Jo});mh=Symbol.for("Jolibox.canIUseMap"),$T={};globalThis[mh]||(globalThis[mh]=$T);Kl=Symbol.for("Jolibox.canIUseMap.native"),WT={};globalThis[Kl]||(globalThis[Kl]=WT);Yl={get config(){return globalThis[Kl]}},zT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(zT||{}),KT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(KT||{}),YT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(YT||{});QT();pn=typeof window=="undefined",XT=()=>!pn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),V$={isiOS:!pn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!pn&&navigator.userAgent.includes("Android"),isMac:!pn&&navigator.userAgent.includes("Mac"),isFacebook:!pn&&navigator.userAgent.includes("FB_IAB"),isPC:!pn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Ql=class Xl{constructor(t){this.element=t,this.next=Xl.Undefined,this.prev=Xl.Undefined}};Ql.Undefined=new Ql(void 0);se=Ql,ZT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},eO=0,si=class{constructor(e){this.value=e,this.id=eO++}},ci=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Zl=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ci,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new ZT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},ec={};NT(ec,{None:()=>tO,filter:()=>nO,once:()=>xh,toPromise:()=>rO});tO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Jl=Symbol.for("Jolibox.hostEmitter"),iO=()=>{let e=new Zl;return globalThis[Jl]||(globalThis[Jl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Jl]},W$=iO();tc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ci,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return oO(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};tc=Sh([Ah],tc);gh=class{constructor(){this._onWillExecuteCommand=new ci,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ci,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new tc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=qT(3e4)),this._starActivation}executeCommand(e,...t){return DT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ec.toPromise(ec.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};gh=Sh([Ah],gh);z$=Symbol.for("Jolibox.commands");nc("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});nc("requestProductDetailsAsync",{version:102e4});nc("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Th=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Yl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=VT(i,o);if(!s)return!1;if(fn(s)){let l=s.version;return hh(l)?typeof a=="number"&&a>=l:!0}return hh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};sO=()=>XT(),li="custom_event_",lO=[],cO=[],uO=["env","createRequestTask","login"],Oh="__batch_event__",dO="__native_batch_event__",pO=e=>e==="pv"?e:"default",Fo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=pO(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&fn(a))throw new Bl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(fn(a))l.push(...Object.keys(a));else if(kh(a)){if(i.length>0)throw new Bl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Bl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=fn(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},yh=!1;Wl=[],hO=!1,rc=Symbol.for("Jolibox.invokeResolverInstance"),mO=new Map;globalThis[rc]||(globalThis[rc]=mO);gO={get resolveMap(){return globalThis[rc]}};Uo=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Ph=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new BT("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Go(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ic={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Rh(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Ph,doExit:r};globalThis.joliboxJSCore=Yt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Go(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ic={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Rh(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return Go(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Ph,doExit:n};globalThis.joliboxJSCore=Yt({},i)}Nh=ic;if(!Nh&&sO())throw new HT("No joliboxJScore is found, native bridge not found.");wO=Yt({},Nh),Dh=bO(wO),{invokeHandler:bh}=Dh,{applyNative:_e,invokeNative:j,onNative:rt,offNative:K$,subscribeHandler:IO,publish:qh,emitNative:oc,subscribe:Y$,unsubscribe:Q$}=Dh;globalThis.joliboxJSBridge={callHandler:bh,invokeHandler:bh,subscribeHandler:IO}});function AO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Bh(e){return new Promise(t=>setTimeout(t,e))}function hi(e){return typeof e=="string"}function $r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Jh(e){return typeof e=="object"&&Array.isArray(e)}function Hh(e){return typeof e=="number"&&!isNaN(e)}function Sr(e){return e===!0||e===!1}function $h(e){return typeof e=="undefined"}function fc(e){return $h(e)||e===null}function xO(e){return typeof e=="function"}function Vh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Wh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Uh(l)&&Uh(s)?i[a]=n(jh({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Uh(e){return e&&typeof e=="object"&&e.constructor===Object}function zh(e,t){if(Array.isArray(e))return e.concat(t)}function mi(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function OO(e,t){return(...r)=>t(e,...r)}function $o(e){return t=>OO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function ui(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function tm(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function _c(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function LO(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function bc(e){return LO("app","stg-app",e)}function mn(e){return`https://${bc(e)}`}function jO(e){return new Promise(t=>om(e)(t))}function om(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function GO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new fi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function JO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)HO(e[n],t[n])}function HO(e,t){if(hi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(xO(t)){try{if(e instanceof t)return}catch(r){}if(!fc(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function $O(){return typeof globalThis!="undefined"?globalThis[am]:void 0}function VO(e){typeof globalThis!="undefined"&&(globalThis[am]=e)}function Y(e=!1){let t=$O();if(!e&&t)return t;let r=new Ho,n=new dc,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return VO(i),i}var pc,EO,Lh,SO,kO,Mh,jh,CO,Gh,Hr,Rt,TO,hc,gi,mc,Kh,Pt,Yh,Qh,Xh,Zh,em,yi,gc,Nt,sc,RO,vc,Fh,PO,J,yc,NO,hn,di,_i,DO,qO,rm,nm,im,Qt,lc,le,MO,UO,pi,fi,Dt,uc,FO,ac,BO,te,Ho,dc,am,P=C(()=>{"use strict";pc=Object.defineProperty,EO=Object.getOwnPropertyDescriptor,Lh=Object.getOwnPropertySymbols,SO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jh=(e,t)=>{for(var r in t||(t={}))SO.call(t,r)&&Mh(e,r,t[r]);if(Lh)for(var r of Lh(t))kO.call(t,r)&&Mh(e,r,t[r]);return e},CO=(e,t)=>{for(var r in t)pc(e,r,{get:t[r],enumerable:!0})},Gh=(e,t,r,n)=>{for(var i=n>1?void 0:n?EO(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&pc(t,r,i),i},Hr=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Rt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};TO=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(TO||{}),hc=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},gi=class extends hc{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},mc=class extends hc{constructor(){super(...arguments),this.kind="USER_ERROR"}},Kh=class extends mc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends mc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Yh=class extends mc{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Qh=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Xh=class extends gi{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Zh=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},em=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},yi=class extends hc{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},gc=class extends gi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Nt={log:ui("log"),warn:ui("warn"),info:ui("info"),error:ui("error"),debug:ui("debug")};Object.assign(globalThis,{logger:Nt});sc=Symbol.for("Jolibox.canIUseMap"),RO={};globalThis[sc]||(globalThis[sc]=RO);vc={get config(){return globalThis[sc]}},Fh=Symbol.for("Jolibox.canIUseMap.native"),PO={};globalThis[Fh]||(globalThis[Fh]=PO);J=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(J||{}),yc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(yc||{}),NO=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(NO||{}),hn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});_c();di=typeof window=="undefined",_i={isiOS:!di&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!di&&navigator.userAgent.includes("Android"),isMac:!di&&navigator.userAgent.includes("Mac"),isFacebook:!di&&navigator.userAgent.includes("FB_IAB"),isPC:!di&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},DO="device_id",qO="advertising_id",rm=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,hn()),window.__joliboxLocalStorage__.getItem(e)),nm=()=>new URLSearchParams(window.location.search).get("deviceId")||rm(DO),im=()=>new URLSearchParams(window.location.search).get("advertisingId")||rm(qO);Qt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=jh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>Hr(this,null,function*(){if(s.message.includes("timeout")){let l=this.getValidCachedData(r);if(l)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return Hr(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,l=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",l),l){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(l,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(l,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let c=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,c);return d&&this.setCachedDataWithSequence(a,d,s),c})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return Hr(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return Hr(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},lc=class cc{constructor(t){this.element=t,this.next=cc.Undefined,this.prev=cc.Undefined}};lc.Undefined=new lc(void 0);le=lc,MO=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},UO=0,pi=class{constructor(e){this.value=e,this.id=UO++}},fi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof pi&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new pi(t);return this._listeners?this._listeners instanceof pi?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof pi)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof pi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Dt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new fi,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new MO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},uc={};CO(uc,{None:()=>FO,filter:()=>GO,once:()=>om,toPromise:()=>jO});FO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ac=Symbol.for("Jolibox.hostEmitter"),BO=()=>{let e=new Dt;return globalThis[ac]||(globalThis[ac]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ac]},te=BO();Ho=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new fi,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return JO(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Ho=Gh([Vh],Ho);dc=class{constructor(){this._onWillExecuteCommand=new fi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new fi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ho,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=AO(3e4)),this._starActivation}executeCommand(e,...t){return Hr(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),uc.toPromise(uc.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};dc=Gh([Vh],dc);am=Symbol.for("Jolibox.commands")});function Ae(e,t={}){wc.emit("ERROR_REPORT",{error:e,options:t})}var wc,Vr,gt=C(()=>{"use strict";P();P();wc=new Dt,Vr=new Dt;Ae.debounce=mi(Ae,50,{leading:!0})});var Ic,WO,sm,lm,cm=C(()=>{"use strict";P();gt();Ic=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},WO=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},sm=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:Ic(o),payloadJson:Ic(a),signature:Ic(s)}}else throw"joli_source is missing"}catch(r){return Ae(new Qh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},lm=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=WO(e),o=r[2];return`${n}.${i}.${o}`}return t}});var zO,Ec,um=C(()=>{"use strict";P();zO="1.2.5-beta.3",Ec=()=>zO});function kc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var KO,dm,Sc,pm,ce,YO,E,B=C(()=>{"use strict";P();cm();um();P();KO={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:nm(),adId:im(),pixelRatio:window.devicePixelRatio||1,platform:_i.isAndroid?"android":_i.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Ec()},schema:window.location.href,platform:_i.isAndroid?"android":_i.isiOS?"ios":"h5"},Sc=(dm=globalThis.joliboxJSCore)==null?void 0:dm.env,ce=Object.assign({},(pm=Sc==null?void 0:Sc())!=null?pm:KO);YO=()=>{var f,m,v,y,g,w,S,A,R,T,k;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?sm(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.schema:window.location.href).searchParams,a=(v=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?v:"",s=(w=(g=(y=ce.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?g:o.get("sessionId"))!=null?w:n,l=!!((A=(S=e==null?void 0:e.testAdsMode)!=null?S:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(k=(T=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?T:o.get("joliboxEnv"))!=null?k:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:Ec()},get mpType(){var O,G;return(G=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?G:"game"},get platform(){var O;return((O=ce.platform)!=null?O:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var O,G;return(G=(O=ce.clientSessionId)!=null?O:s)!=null?G:n},get channel(){return u},get webviewId(){var O;return(O=ce.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return bc(d)},get adId(){var O;return(O=ce.deviceInfo.adId)!=null?O:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return kc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":kc("gamedistribution","jolibox")?"gamedistribution":kc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Pe,Ne;let O=(M=ce.deviceInfo.pixelRatio)!=null?M:1,G=(Pe=ce.deviceInfo.statusBarHeight)!=null?Pe:e==null?void 0:e.__androidStatusBarHeight,Ye=(Ne=ce.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:G!==void 0?G/O:20,navigationBarHeight:Ye!==void 0?Ye/O:10}},get abTests(){var O,G;return(G=(O=ce.abValues)==null?void 0:O.split(","))!=null?G:[]},get mpInfo(){var O;return(O=ce.mpInfo)!=null?O:{mpName:"unknown"}},onEnvConfigChanged:O=>{Wh(ce,O,zh)},encodeJoliSourceQuery:O=>{var G,Ye;return t&&r?lm(x(x({},e),O),(G=o.get("joliSource"))!=null?G:""):(Ye=o.get("joliSource"))!=null?Ye:""},setDoExitDirectly:()=>{p=!1}}},E=YO()});var Cc,hm,QO,XO,fm,ZO,mm=C(()=>{"use strict";P();gt();B();P();Cc=!1,hm=(e,t)=>e==null?!1:t in e,QO=e=>hm(e,"kind"),XO=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},fm=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:XO(e.name)},i=F(x({},n),{env:t.environment,isFromUser:r});r?Vr.emit("GLOBAL_USER_ERROR",e,i):Vr.emit("GLOBAL_ERROR",e,i)},ZO=e=>hm(e,"kind")&&e.kind==="USER_ERROR";wc.on("ERROR_REPORT",({error:e,options:t})=>{if(Cc)return;Cc=!0;let r=QO(e)&&e.raw?e.raw:e;try{let n=ZO(e);fm(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new gc(`${i}, origin error: ${r.message}`);Nt.error(o),fm(new gc(o.message),{environment:t.environment},!1)}finally{Cc=!1}})});var qt,Ac,Wr=C(()=>{"use strict";gt();P();gt();qt=(e,t)=>{var r,n;return new yi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ac=e=>new Kh(e)});var gm=C(()=>{"use strict";mm();Wr();P();be();Vr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Vr.on("GLOBAL_USER_ERROR",(e,t)=>{Nt.log("UserError",e,t)})});var xc=C(()=>{"use strict"});function vm(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Be(c,["eventType"]),l=F(x({tag:n,eventType:o!=null?o:a!=null?a:J.Other},t),{extra:x({},s)});n=="globalJsError"?Ae(new em(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=mi(r,500,{leading:!0}),r}function ym(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=mi(t,500,{leading:!0}),t}var _m=C(()=>{"use strict";P();P();gt();B()});function bm(e,t){let r=vm(e,t),n=ym(r);return{track:r,trackPerformance:n}}var wm=C(()=>{"use strict";_m()});var Im=C(()=>{"use strict";B();P();P()});var Em=C(()=>{"use strict";wm();xc();Im()});var Vo,Sm=C(()=>{"use strict";Vo=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Wo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:mn(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return rt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:y}=f,g=Be(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(g):p.reject(g),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:y}=m,g=Be(m,["requestTaskId","state"]);p.reject(g),n.delete(v)}else Nt.warn("onRequestTaskStateChange unknown event",u)}),te.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>_(this,[f,...m],function*(u,p={}){let v=Date.now(),y=eR(u,F(x({},p),{baseUrl:i})),{method:g="GET",responseType:w="text",dataType:S="json",timeout:A,enableCache:R=!1,appendHostCookie:T=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:g,header:k,enableCache:R,responseType:w,appendHostCookie:T};if(g=="POST"||g=="PUT"){let Ne=rR(p.data,k["content-type"]);O.data=Ne}A&&Object.assign(O,{timeout:A});let{data:{requestTaskId:G}}=j(e,O);if(typeof G!="string")throw qt({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ye,reject:M,promise:Pe}=new Rt;n.set(G,{resolve:Ye,reject:M});try{let Ne=yield Pe,{data:Jr}=Ne;return S==="json"&&typeof Jr=="string"&&(Jr=tR(Jr)),{url:y,timeout:A,method:g,response:F(x({},Ne),{data:Jr})}}catch(Ne){let Jr=Ne;if($r(Jr)){let{errMsg:jl,prefetchDetail:J$,isPrefetch:H$,errNo:mT}=Jr;hi(jl)&&Ae(qt({code:-1,msg:jl},{errNo:mT,errMsg:jl}))}throw Ne}})}function tR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function rR(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var eR,Tc=C(()=>{"use strict";P();be();gt();Wr();B();eR=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var Oc,km,re,vt=C(()=>{"use strict";Tc();B();P();Oc={};(km=E.hostUserInfo)!=null&&km.token&&(Oc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(Oc["x-joli-source"]=E.joliSource);re=Wo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:mn(E.testMode),defaultHeaders:Oc})});function Cm(e){let t=vc.config[e];return t||(t={},vc.config[e]=t),(r,n)=>{if(t[r]){Nt.warn(`[can i use] ${r} already registered`);return}t[r]=x({},n)}}var Am=C(()=>{"use strict";P()});function Rc(e){xm=e}function zo(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>zo(t)):Object.keys(e).reduce((t,r)=>(t[r]=zo(e[r]),t),{})}function Xt(e){return typeof e=="number"}function Pc(e){let t=Nc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Nc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var xm,we,Ko,Yo,Qo,Xo,gn,Zo,ea,ta,ra,na,ia,oa,aa,sa,la,ca,ua,Dc=C(()=>{"use strict";xm=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(xm)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${Pc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return zo(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:zo(this._default)}optional(){return this._optional=!0,this}};Ko=class extends we{validate(t){return this._optional&&t===void 0?!0:Xt(t)?Xt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Xt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Xt(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Yo=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Qo=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Xt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Xt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Xo=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},gn=class extends we{validate(t){return!0}},Zo=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ea=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ta=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ra=class extends we{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Pc(t)}`)}return!0}},na=class extends we{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(Xt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Xt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Xt(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},ia=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Nc(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},oa=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Nc(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},aa=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Pc(this.value),actual:r}):!0}},sa=class extends we{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
2
|
+
or `);this.errors.push(o)}return n}},la=class extends we{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},ca=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ua=class extends we{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function qc(e,t,r="param"){if(e.errors=[],e.path=r,Rc(!0),!e.validate(t)){let n=e.errors.join(`
|
|
3
|
+
`);throw e.errors.length=0,Rc(!1),new TypeError(n)}}var I,Lc=C(()=>{"use strict";Dc();Dc();I={object(e){return new oa(e)},array(e){return new na(e)},tuple(...e){return new la(...e)},literal(e){return new aa(e)},or(...e){return new sa(...e)},symbol(){return new Xo},record(e){return new ia(e)},function(){return new ta},boolean(){return new Yo},string(){return new Qo},number(){return new Ko},undefined(){return new Zo},null(){return new ea},unknown(){return new gn},any(){return new gn},as(){return new gn},arraybuffer(){return new ca},enum(...e){return new ra(...e)},typedarray(e){return new ua(e)}}});var da,Tm,Om=C(()=>{"use strict";P();gt();Lc();Wr();da=1,Tm=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:da};da+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{qc(i.paramsSchema,o,"params")}catch(w){throw Ac(`${n}:fail ${w.message}`)}let v=i.implement(...o),y=v,g=`${n}:ok`;if(v&&"code"in v){let{code:w,data:S,message:A}=v;l=w,y=S,g=A}return{code:l,message:g,data:y}}catch(v){let y=v;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let g=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${v}`;return c=`${n}:${l} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new yi(c,d)),{code:l,message:c}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>_(this,null,function*(){var p,f,m,v;let a=Jh(o)?o:[o],s=Date.now(),l={method:n,trace_id:da};da+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{qc(i.paramsSchema,a,"params")}catch(w){throw Ac(w.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:w,data:S,message:A}=g;d=w,c=A,g=S}return Object.assign(u,{code:d,message:c,data:g}),u}catch(y){let g=y,w=(f=(p=g.code)!=null?p:g.errNo)!=null?f:2e3;d="FAILURE";let S=(v=(m=g.message)!=null?m:g.errMsg)!=null?v:`${y}`,A=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ae(new yi(A,w)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function Mc(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var Rm=C(()=>{"use strict"});var ue,H,q,Pm,Qe=C(()=>{"use strict";Am();yt();Om();Lc();be();B();Rm();({createAPI:ue,createSyncAPI:H}=Tm(U)),q=Cm("native"),{canIUseNative:Pm}=Th(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});function Nm(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),lR.includes(t)?t:""}function Dm(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function qm(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var pa,iR,oR,aR,sR,EW,SW,lR,bi,fa,ha=C(()=>{"use strict";Qe();be();P();vt();B();pa=Y(),iR=ue("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){let{response:t}=yield re(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield _e("getLocalStorageAsync",{key:e}),s=Dm(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});pa.registerCommand("StorageSDK.getItem",iR);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});oR=ue("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return _(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield re(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Nm(t),l=qm(t,s);return yield _e("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});pa.registerCommand("StorageSDK.setItem",oR);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});aR=ue("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){let t=E.mpId,{response:r}=yield re(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield _e("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});pa.registerCommand("StorageSDK.removeItem",aR);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});sR=ue("clearStorage",{implement(){return _(this,null,function*(){let e=E.mpId,{response:t}=yield re(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});_e("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});pa.registerCommand("StorageSDK.clear",sR);q("storage.clear",{version:"1.0.0"});EW=ue("getStorageInfo",{implement(){return _(this,null,function*(){let{data:e}=yield _e("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});SW=H("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),lR=["string","number","boolean","object",""];bi=ue("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return _(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield _e("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Dm(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),fa=ue("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return _(this,null,function*(){try{let r=Nm(t),n=qm(t,r);return yield _e("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var Lm,ma,Mm=C(()=>{"use strict";B();Sm();P();vt();be();ha();Lm="REPORT_FIRST_OPEN_GAME",ma=class extends Vo{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=mn(E.testMode)+"/api/base/app-event"}reporter(t){return _(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:x({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?re("/api/base/app-event",{method:"POST",data:o}):_e("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return _(this,null,function*(){let{event:r,params:n}=t;yield _e("userTrackAsync",{event:r,params:x({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){bi(Lm).then(t=>{Sr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),fa(Lm,!0)})}}});var Bm={};ph(Bm,{nativeTaskEmitter:()=>wi,taskTracker:()=>Et,track:()=>U,trackPerformance:()=>jm});var cR,Um,Fm,U,jm,Gm,wi,Et,yt=C(()=>{"use strict";gm();P();xc();Em();B();Mm();be();cR=(e,t,r)=>{var c,d,u,p,f,m,v;let n=t,i=$r(n.extra)?n.extra:hi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=E.mpInfo)!=null?c:{},s=x(x(F(x({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:E.sessionId,user_id:(f=(p=E.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(m=n.eventType)!=null?m:J.Other;j("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:l})},{track:U,trackPerformance:jm}=bm(cR,{type:yc.AppSDK,platform:"native",jssdk_version:(Fm=(Um=E.sdkInfo)==null?void 0:Um.jssdkVersion)!=null?Fm:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Gm=Y();Gm.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{jm(e,t,r)});Gm.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});wi=new Dt,Et=new ma(U,wi)});function Jm(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
|
|
4
4
|
html[data-jolibox-root] {
|
|
5
5
|
height: 100%;
|
|
6
6
|
margin: 0;
|
|
@@ -18,14 +18,14 @@ or `);this.errors.push(o)}return n}},oa=class extends be{constructor(...t){super
|
|
|
18
18
|
min-height: 100dvh;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var im=S(()=>{"use strict";B()});var om=S(()=>{"use strict"});var am=S(()=>{"use strict";R();sc()});var sm=S(()=>{"use strict";B()});var fa,Sc=S(()=>{"use strict";om();am();B();sm();R();fa=new Nt});function Kt(e,t){for(var r in t)e[r]=t[r];return e}function Rc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ga.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return ma(e,a,n,i,null)}function ma(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++dm:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function cn(e,t){if(t==null)return e.__?cn(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?cn(e):null}function gm(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return gm(e)}}function Tc(e){(!e.__d&&(e.__d=!0)&&jr.push(e)&&!va.__r++||lm!==N.debounceRendering)&&((lm=N.debounceRendering)||pm)(va)}function va(){for(var e,t,r,n,i,o,a,s=1;jr.length;)jr.length>s&&jr.sort(fm),e=jr.shift(),s=jr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Kt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Nc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?cn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,bm(o,r,a),r.__e!=i&&gm(r)));va.__r=0}function ym(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||vm,b=t.length;for(l=E1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?gi:v[f.__i]||gi,f.__i=u,y=Nc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Dc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=_m(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function E1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ma(null,a,null,null,null):yi(a)?ma(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ma(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=k1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=cn(s)),Im(s,s));return n}function _m(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=_m(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=cn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function _i(e,t){return t=t||[],e==null||typeof e=="boolean"||(yi(e)?e.some(function(r){_i(r,t)}):t.push(e)),t}function k1(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function cm(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||I1.test(t)?r:r+"px"}function ha(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||cm(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||cm(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(hm,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=Pc,e.addEventListener(t,o?Cc:xc,o)):e.removeEventListener(t,o?Cc:xc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function um(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Pc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Nc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,b,k,x,P,C,A,O,J,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(v=t.props,b="prototype"in M&&M.prototype.render,k=(d=M.contextType)&&n[d.__c],x=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new M(v,x):(t.__c=u=new ct(v,x),u.constructor=M,u.render=S1),k&&k.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Kt({},u.__s)),Kt(u.__s,M.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&M.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=N.__r,A=0,b){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(n=Kt(Kt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),J=d,d!=null&&d.type===De&&d.key==null&&(J=wm(d.props.children)),s=ym(e,yi(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)Rc(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=A1(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function bm(e,t,r){for(var n=0;n<r.length;n++)Dc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function wm(e){return typeof e!="object"||e==null?e:yi(e)?e.map(wm):Kt({},e)}function A1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(b===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&ga.call(e.childNodes),y=r.props||gi,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;ha(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||ha(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ym(t.type==="template"?e.content:e,yi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&cn(r,0),s,l),o!=null)for(c=o.length;c--;)Rc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==y[c])&&ha(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&ha(e,c,g,y[c],i))}return e}function Dc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function Im(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Dc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Im(n[i],t,r||typeof e.type!="function");r||Rc(e.__e),e.__c=e.__=e.__e=void 0}function S1(e,t,r){return this.constructor(e,r)}function vr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Nc(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||gi,gi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ga.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),bm(o,e,a)}function Jr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,Tc(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+mm++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ga,N,dm,Oc,jr,lm,pm,fm,hm,Pc,xc,Cc,mm,gi,vm,I1,yi,un=S(()=>{gi={},vm=[],I1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yi=Array.isArray;ga=vm.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},dm=0,Oc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Kt({},this.state),typeof e=="function"&&(e=e(Kt({},r),this.props)),e&&Kt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Tc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Tc(this))},ct.prototype.render=De,jr=[],pm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fm=function(e,t){return e.__v.__b-t.__v.__b},va.__r=0,hm=/(PointerCapture)$|Capture$/i,Pc=0,xc=um(!1),Cc=um(!0),mm=0});var pe=h((_W,Em)=>{"use strict";Em.exports=function(e){try{return!!e()}catch(t){return!0}}});var dn=h((bW,km)=>{"use strict";var x1=pe();km.exports=!x1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ie=h((wW,xm)=>{"use strict";var Am=dn(),Sm=Function.prototype,Lc=Sm.call,C1=Am&&Sm.bind.bind(Lc,Lc);xm.exports=Am?C1:function(e){return function(){return Lc.apply(e,arguments)}}});var Ye=h((IW,Cm)=>{"use strict";var T1=Ie();Cm.exports=T1({}.isPrototypeOf)});var fe=h((Mc,Tm)=>{"use strict";var bi=function(e){return e&&e.Math===Math&&e};Tm.exports=bi(typeof globalThis=="object"&&globalThis)||bi(typeof window=="object"&&window)||bi(typeof self=="object"&&self)||bi(typeof global=="object"&&global)||bi(typeof Mc=="object"&&Mc)||function(){return this}()||Function("return this")()});var qc=h((EW,Nm)=>{"use strict";var O1=dn(),Rm=Function.prototype,Om=Rm.apply,Pm=Rm.call;Nm.exports=typeof Reflect=="object"&&Reflect.apply||(O1?Pm.bind(Om):function(){return Pm.apply(Om,arguments)})});var Yt=h((kW,Lm)=>{"use strict";var Dm=Ie(),P1=Dm({}.toString),R1=Dm("".slice);Lm.exports=function(e){return R1(P1(e),8,-1)}});var wi=h((AW,Mm)=>{"use strict";var N1=Yt(),D1=Ie();Mm.exports=function(e){if(N1(e)==="Function")return D1(e)}});var Le=h((SW,qm)=>{"use strict";var Uc=typeof document=="object"&&document.all;qm.exports=typeof Uc=="undefined"&&Uc!==void 0?function(e){return typeof e=="function"||e===Uc}:function(e){return typeof e=="function"}});var Qe=h((xW,Um)=>{"use strict";var L1=pe();Um.exports=!L1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=h((CW,Fm)=>{"use strict";var M1=dn(),ya=Function.prototype.call;Fm.exports=M1?ya.bind(ya):function(){return ya.apply(ya,arguments)}});var Fc=h(Gm=>{"use strict";var jm={}.propertyIsEnumerable,Jm=Object.getOwnPropertyDescriptor,q1=Jm&&!jm.call({1:2},1);Gm.f=q1?function(t){var r=Jm(this,t);return!!r&&r.enumerable}:jm});var Ii=h((OW,Bm)=>{"use strict";Bm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var _a=h((PW,Hm)=>{"use strict";var U1=Ie(),F1=pe(),j1=Yt(),jc=Object,J1=U1("".split);Hm.exports=F1(function(){return!jc("z").propertyIsEnumerable(0)})?function(e){return j1(e)==="String"?J1(e,""):jc(e)}:jc});var Gr=h((RW,Vm)=>{"use strict";Vm.exports=function(e){return e==null}});var Br=h((NW,$m)=>{"use strict";var G1=Gr(),B1=TypeError;$m.exports=function(e){if(G1(e))throw new B1("Can't call method on "+e);return e}});var gr=h((DW,Wm)=>{"use strict";var H1=_a(),V1=Br();Wm.exports=function(e){return H1(V1(e))}});var Ce=h((LW,zm)=>{"use strict";var $1=Le();zm.exports=function(e){return typeof e=="object"?e!==null:$1(e)}});var Dt=h((MW,Km)=>{"use strict";Km.exports={}});var pn=h((qW,Qm)=>{"use strict";var Jc=Dt(),Gc=fe(),W1=Le(),Ym=function(e){return W1(e)?e:void 0};Qm.exports=function(e,t){return arguments.length<2?Ym(Jc[e])||Ym(Gc[e]):Jc[e]&&Jc[e][t]||Gc[e]&&Gc[e][t]}});var ba=h((UW,ev)=>{"use strict";var z1=fe(),Xm=z1.navigator,Zm=Xm&&Xm.userAgent;ev.exports=Zm?String(Zm):""});var Ia=h((FW,av)=>{"use strict";var ov=fe(),Bc=ba(),tv=ov.process,rv=ov.Deno,nv=tv&&tv.versions||rv&&rv.version,iv=nv&&nv.v8,kt,wa;iv&&(kt=iv.split("."),wa=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!wa&&Bc&&(kt=Bc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Bc.match(/Chrome\/(\d+)/),kt&&(wa=+kt[1])));av.exports=wa});var Hc=h((jW,lv)=>{"use strict";var sv=Ia(),K1=pe(),Y1=fe(),Q1=Y1.String;lv.exports=!!Object.getOwnPropertySymbols&&!K1(function(){var e=Symbol("symbol detection");return!Q1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sv&&sv<41})});var Vc=h((JW,cv)=>{"use strict";var X1=Hc();cv.exports=X1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var $c=h((GW,uv)=>{"use strict";var Z1=pn(),eO=Le(),tO=Ye(),rO=Vc(),nO=Object;uv.exports=rO?function(e){return typeof e=="symbol"}:function(e){var t=Z1("Symbol");return eO(t)&&tO(t.prototype,nO(e))}});var Ei=h((BW,dv)=>{"use strict";var iO=String;dv.exports=function(e){try{return iO(e)}catch(t){return"Object"}}});var Hr=h((HW,pv)=>{"use strict";var oO=Le(),aO=Ei(),sO=TypeError;pv.exports=function(e){if(oO(e))return e;throw new sO(aO(e)+" is not a function")}});var Ea=h((VW,fv)=>{"use strict";var lO=Hr(),cO=Gr();fv.exports=function(e,t){var r=e[t];return cO(r)?void 0:lO(r)}});var mv=h(($W,hv)=>{"use strict";var Wc=Et(),zc=Le(),Kc=Ce(),uO=TypeError;hv.exports=function(e,t){var r,n;if(t==="string"&&zc(r=e.toString)&&!Kc(n=Wc(r,e))||zc(r=e.valueOf)&&!Kc(n=Wc(r,e))||t!=="string"&&zc(r=e.toString)&&!Kc(n=Wc(r,e)))return n;throw new uO("Can't convert object to primitive value")}});var fn=h((WW,vv)=>{"use strict";vv.exports=!0});var _v=h((zW,yv)=>{"use strict";var gv=fe(),dO=Object.defineProperty;yv.exports=function(e,t){try{dO(gv,e,{value:t,configurable:!0,writable:!0})}catch(r){gv[e]=t}return t}});var ki=h((KW,Iv)=>{"use strict";var pO=fn(),fO=fe(),hO=_v(),bv="__core-js_shared__",wv=Iv.exports=fO[bv]||hO(bv,{});(wv.versions||(wv.versions=[])).push({version:"3.41.0",mode:pO?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Yc=h((YW,kv)=>{"use strict";var Ev=ki();kv.exports=function(e,t){return Ev[e]||(Ev[e]=t||{})}});var hn=h((QW,Av)=>{"use strict";var mO=Br(),vO=Object;Av.exports=function(e){return vO(mO(e))}});var ut=h((XW,Sv)=>{"use strict";var gO=Ie(),yO=hn(),_O=gO({}.hasOwnProperty);Sv.exports=Object.hasOwn||function(t,r){return _O(yO(t),r)}});var ka=h((ZW,xv)=>{"use strict";var bO=Ie(),wO=0,IO=Math.random(),EO=bO(1 .toString);xv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EO(++wO+IO,36)}});var Ge=h((ez,Tv)=>{"use strict";var kO=fe(),AO=Yc(),Cv=ut(),SO=ka(),xO=Hc(),CO=Vc(),mn=kO.Symbol,Qc=AO("wks"),TO=CO?mn.for||mn:mn&&mn.withoutSetter||SO;Tv.exports=function(e){return Cv(Qc,e)||(Qc[e]=xO&&Cv(mn,e)?mn[e]:TO("Symbol."+e)),Qc[e]}});var Nv=h((tz,Rv)=>{"use strict";var OO=Et(),Ov=Ce(),Pv=$c(),PO=Ea(),RO=mv(),NO=Ge(),DO=TypeError,LO=NO("toPrimitive");Rv.exports=function(e,t){if(!Ov(e)||Pv(e))return e;var r=PO(e,LO),n;if(r){if(t===void 0&&(t="default"),n=OO(r,e,t),!Ov(n)||Pv(n))return n;throw new DO("Can't convert object to primitive value")}return t===void 0&&(t="number"),RO(e,t)}});var Xc=h((rz,Dv)=>{"use strict";var MO=Nv(),qO=$c();Dv.exports=function(e){var t=MO(e,"string");return qO(t)?t:t+""}});var eu=h((nz,Mv)=>{"use strict";var UO=fe(),Lv=Ce(),Zc=UO.document,FO=Lv(Zc)&&Lv(Zc.createElement);Mv.exports=function(e){return FO?Zc.createElement(e):{}}});var tu=h((iz,qv)=>{"use strict";var jO=Qe(),JO=pe(),GO=eu();qv.exports=!jO&&!JO(function(){return Object.defineProperty(GO("div"),"a",{get:function(){return 7}}).a!==7})});var ru=h(Fv=>{"use strict";var BO=Qe(),HO=Et(),VO=Fc(),$O=Ii(),WO=gr(),zO=Xc(),KO=ut(),YO=tu(),Uv=Object.getOwnPropertyDescriptor;Fv.f=BO?Uv:function(t,r){if(t=WO(t),r=zO(r),YO)try{return Uv(t,r)}catch(n){}if(KO(t,r))return $O(!HO(VO.f,t,r),t[r])}});var Jv=h((az,jv)=>{"use strict";var QO=pe(),XO=Le(),ZO=/#|\.prototype\./,Ai=function(e,t){var r=tP[eP(e)];return r===nP?!0:r===rP?!1:XO(t)?QO(t):!!t},eP=Ai.normalize=function(e){return String(e).replace(ZO,".").toLowerCase()},tP=Ai.data={},rP=Ai.NATIVE="N",nP=Ai.POLYFILL="P";jv.exports=Ai});var Si=h((sz,Bv)=>{"use strict";var Gv=wi(),iP=Hr(),oP=dn(),aP=Gv(Gv.bind);Bv.exports=function(e,t){return iP(e),t===void 0?e:oP?aP(e,t):function(){return e.apply(t,arguments)}}});var nu=h((lz,Hv)=>{"use strict";var sP=Qe(),lP=pe();Hv.exports=sP&&lP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Qt=h((cz,Vv)=>{"use strict";var cP=Ce(),uP=String,dP=TypeError;Vv.exports=function(e){if(cP(e))return e;throw new dP(uP(e)+" is not an object")}});var Xt=h(Wv=>{"use strict";var pP=Qe(),fP=tu(),hP=nu(),Aa=Qt(),$v=Xc(),mP=TypeError,iu=Object.defineProperty,vP=Object.getOwnPropertyDescriptor,ou="enumerable",au="configurable",su="writable";Wv.f=pP?hP?function(t,r,n){if(Aa(t),r=$v(r),Aa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&su in n&&!n[su]){var i=vP(t,r);i&&i[su]&&(t[r]=n.value,n={configurable:au in n?n[au]:i[au],enumerable:ou in n?n[ou]:i[ou],writable:!1})}return iu(t,r,n)}:iu:function(t,r,n){if(Aa(t),r=$v(r),Aa(n),fP)try{return iu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new mP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Vr=h((dz,zv)=>{"use strict";var gP=Qe(),yP=Xt(),_P=Ii();zv.exports=gP?function(e,t,r){return yP.f(e,t,_P(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((pz,Yv)=>{"use strict";var xi=fe(),bP=qc(),wP=wi(),IP=Le(),EP=ru().f,kP=Jv(),vn=Dt(),AP=Si(),gn=Vr(),Kv=ut();ki();var SP=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return bP(e,this,arguments)};return t.prototype=e.prototype,t};Yv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?xi:i?xi[r]:xi[r]&&xi[r].prototype,s=n?vn:vn[r]||gn(vn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=kP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Kv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=EP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=AP(f,xi):e.wrap&&d?y=SP(f):o&&IP(f)?y=wP(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&gn(y,"sham",!0),gn(s,p,y),o&&(u=r+"Prototype",Kv(vn,u)||gn(vn,u,{}),gn(vn[u],p,f),e.real&&l&&(c||!l[p])&&gn(l,p,f)))}});var Xv=h((fz,Qv)=>{"use strict";var xP=Math.ceil,CP=Math.floor;Qv.exports=Math.trunc||function(t){var r=+t;return(r>0?CP:xP)(r)}});var Ci=h((hz,Zv)=>{"use strict";var TP=Xv();Zv.exports=function(e){var t=+e;return t!==t||t===0?0:TP(t)}});var lu=h((mz,eg)=>{"use strict";var OP=Ci(),PP=Math.min;eg.exports=function(e){var t=OP(e);return t>0?PP(t,9007199254740991):0}});var yn=h((vz,tg)=>{"use strict";var RP=lu();tg.exports=function(e){return RP(e.length)}});var Ti=h((gz,rg)=>{"use strict";var NP=Yt();rg.exports=Array.isArray||function(t){return NP(t)==="Array"}});var Sa=h((yz,ig)=>{"use strict";var DP=Ge(),LP=DP("toStringTag"),ng={};ng[LP]="z";ig.exports=String(ng)==="[object z]"});var _n=h((_z,og)=>{"use strict";var MP=Sa(),qP=Le(),xa=Yt(),UP=Ge(),FP=UP("toStringTag"),jP=Object,JP=xa(function(){return arguments}())==="Arguments",GP=function(e,t){try{return e[t]}catch(r){}};og.exports=MP?xa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=GP(t=jP(e),FP))=="string"?r:JP?xa(t):(n=xa(t))==="Object"&&qP(t.callee)?"Arguments":n}});var sg=h((bz,ag)=>{"use strict";var BP=Ie(),HP=Le(),cu=ki(),VP=BP(Function.toString);HP(cu.inspectSource)||(cu.inspectSource=function(e){return VP(e)});ag.exports=cu.inspectSource});var du=h((wz,pg)=>{"use strict";var $P=Ie(),WP=pe(),lg=Le(),zP=_n(),KP=pn(),YP=sg(),cg=function(){},ug=KP("Reflect","construct"),uu=/^\s*(?:class|function)\b/,QP=$P(uu.exec),XP=!uu.test(cg),Oi=function(t){if(!lg(t))return!1;try{return ug(cg,[],t),!0}catch(r){return!1}},dg=function(t){if(!lg(t))return!1;switch(zP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return XP||!!QP(uu,YP(t))}catch(r){return!0}};dg.sham=!0;pg.exports=!ug||WP(function(){var e;return Oi(Oi.call)||!Oi(Object)||!Oi(function(){e=!0})||e})?dg:Oi});var vg=h((Iz,mg)=>{"use strict";var fg=Ti(),ZP=du(),eR=Ce(),tR=Ge(),rR=tR("species"),hg=Array;mg.exports=function(e){var t;return fg(e)&&(t=e.constructor,ZP(t)&&(t===hg||fg(t.prototype))?t=void 0:eR(t)&&(t=t[rR],t===null&&(t=void 0))),t===void 0?hg:t}});var pu=h((Ez,gg)=>{"use strict";var nR=vg();gg.exports=function(e,t){return new(nR(e))(t===0?0:t)}});var _r=h((kz,_g)=>{"use strict";var iR=Si(),oR=Ie(),aR=_a(),sR=hn(),lR=yn(),cR=pu(),yg=oR([].push),yr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=sR(l),f=aR(p),m=lR(f),g=iR(c,d),y=0,v=u||cR,b=t?v(l,m):r||a?v(l,0):void 0,k,x;m>y;y++)if((s||y in f)&&(k=f[y],x=g(k,y,p),e))if(t)b[y]=x;else if(x)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:yg(b,k)}else switch(e){case 4:return!1;case 7:yg(b,k)}return o?-1:n||i?i:b}};_g.exports={forEach:yr(0),map:yr(1),filter:yr(2),some:yr(3),every:yr(4),find:yr(5),findIndex:yr(6),filterReject:yr(7)}});var Pi=h((Az,bg)=>{"use strict";var uR=pe(),dR=Ge(),pR=Ia(),fR=dR("species");bg.exports=function(e){return pR>=51||!uR(function(){var t=[],r=t.constructor={};return r[fR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var wg=h(()=>{"use strict";var hR=Z(),mR=_r().filter,vR=Pi(),gR=vR("filter");hR({target:"Array",proto:!0,forced:!gR},{filter:function(t){return mR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((Cz,Ig)=>{"use strict";var yR=fe(),_R=Dt();Ig.exports=function(e,t){var r=_R[e+"Prototype"],n=r&&r[t];if(n)return n;var i=yR[e],o=i&&i.prototype;return o&&o[t]}});var kg=h((Tz,Eg)=>{"use strict";wg();var bR=_t();Eg.exports=bR("Array","filter")});var Sg=h((Oz,Ag)=>{"use strict";var wR=Ye(),IR=kg(),fu=Array.prototype;Ag.exports=function(e){var t=e.filter;return e===fu||wR(fu,e)&&t===fu.filter?IR:t}});var Cg=h((Pz,xg)=>{"use strict";var ER=Sg();xg.exports=ER});var Og=h((Rz,Tg)=>{Tg.exports=Cg()});var Ri=h((Nz,Pg)=>{"use strict";var kR=pe();Pg.exports=function(e,t){var r=[][e];return!!r&&kR(function(){r.call(null,t||function(){return 1},1)})}});var Rg=h(()=>{"use strict";var AR=Z(),SR=_r().every,xR=Ri(),CR=xR("every");AR({target:"Array",proto:!0,forced:!CR},{every:function(t){return SR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Dg=h((Mz,Ng)=>{"use strict";Rg();var TR=_t();Ng.exports=TR("Array","every")});var Mg=h((qz,Lg)=>{"use strict";var OR=Ye(),PR=Dg(),hu=Array.prototype;Lg.exports=function(e){var t=e.every;return e===hu||OR(hu,e)&&t===hu.every?PR:t}});var Ug=h((Uz,qg)=>{"use strict";var RR=Mg();qg.exports=RR});var jg=h((Fz,Fg)=>{Fg.exports=Ug()});var Gg=h((jz,Jg)=>{"use strict";var NR=_r().forEach,DR=Ri(),LR=DR("forEach");Jg.exports=LR?[].forEach:function(t){return NR(this,t,arguments.length>1?arguments[1]:void 0)}});var Hg=h(()=>{"use strict";var MR=Z(),Bg=Gg();MR({target:"Array",proto:!0,forced:[].forEach!==Bg},{forEach:Bg})});var $g=h((Bz,Vg)=>{"use strict";Hg();var qR=_t();Vg.exports=qR("Array","forEach")});var zg=h((Hz,Wg)=>{"use strict";var UR=$g();Wg.exports=UR});var Kg=h(()=>{});var Qg=h((Wz,Yg)=>{"use strict";var FR=_n(),jR=ut(),JR=Ye(),GR=zg();Kg();var mu=Array.prototype,BR={DOMTokenList:!0,NodeList:!0};Yg.exports=function(e){var t=e.forEach;return e===mu||JR(mu,e)&&t===mu.forEach||jR(BR,FR(e))?GR:t}});var Zg=h((zz,Xg)=>{Xg.exports=Qg()});var ty=h((Kz,ey)=>{"use strict";var HR=TypeError,VR=9007199254740991;ey.exports=function(e){if(e>VR)throw HR("Maximum allowed index exceeded");return e}});var vu=h((Yz,ry)=>{"use strict";var $R=Qe(),WR=Xt(),zR=Ii();ry.exports=function(e,t,r){$R?WR.f(e,t,zR(0,r)):e[t]=r}});var ay=h(()=>{"use strict";var KR=Z(),YR=pe(),QR=Ti(),XR=Ce(),ZR=hn(),eN=yn(),ny=ty(),iy=vu(),tN=pu(),rN=Pi(),nN=Ge(),iN=Ia(),oy=nN("isConcatSpreadable"),oN=iN>=51||!YR(function(){var e=[];return e[oy]=!1,e.concat()[0]!==e}),aN=function(e){if(!XR(e))return!1;var t=e[oy];return t!==void 0?!!t:QR(e)},sN=!oN||!rN("concat");KR({target:"Array",proto:!0,arity:1,forced:sN},{concat:function(t){var r=ZR(this),n=tN(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],aN(c))for(l=eN(c),ny(i+l),a=0;a<l;a++,i++)a in c&&iy(n,i,c[a]);else ny(i+1),iy(n,i++,c);return n.length=i,n}})});var ly=h((Zz,sy)=>{"use strict";ay();var lN=_t();sy.exports=lN("Array","concat")});var uy=h((e6,cy)=>{"use strict";var cN=Ye(),uN=ly(),gu=Array.prototype;cy.exports=function(e){var t=e.concat;return e===gu||cN(gu,e)&&t===gu.concat?uN:t}});var py=h((t6,dy)=>{"use strict";var dN=uy();dy.exports=dN});var hy=h((r6,fy)=>{fy.exports=py()});var my=h(()=>{"use strict";var pN=Z(),fN=_r().some,hN=Ri(),mN=hN("some");pN({target:"Array",proto:!0,forced:!mN},{some:function(t){return fN(this,t,arguments.length>1?arguments[1]:void 0)}})});var gy=h((o6,vy)=>{"use strict";my();var vN=_t();vy.exports=vN("Array","some")});var _y=h((a6,yy)=>{"use strict";var gN=Ye(),yN=gy(),yu=Array.prototype;yy.exports=function(e){var t=e.some;return e===yu||gN(yu,e)&&t===yu.some?yN:t}});var wy=h((s6,by)=>{"use strict";var _N=_y();by.exports=_N});var Ey=h((l6,Iy)=>{Iy.exports=wy()});var Ay=h((c6,ky)=>{"use strict";var Ni=fe(),bN=ba(),wN=Yt(),Ca=function(e){return bN.slice(0,e.length)===e};ky.exports=function(){return Ca("Bun/")?"BUN":Ca("Cloudflare-Workers")?"CLOUDFLARE":Ca("Deno/")?"DENO":Ca("Node.js/")?"NODE":Ni.Bun&&typeof Bun.version=="string"?"BUN":Ni.Deno&&typeof Deno.version=="object"?"DENO":wN(Ni.process)==="process"?"NODE":Ni.window&&Ni.document?"BROWSER":"REST"}()});var Di=h((u6,Sy)=>{"use strict";var IN=Ie();Sy.exports=IN([].slice)});var Cy=h((d6,xy)=>{"use strict";var EN=TypeError;xy.exports=function(e,t){if(e<t)throw new EN("Not enough arguments");return e}});var _u=h((p6,Oy)=>{"use strict";var Ty=fe(),kN=qc(),AN=Le(),SN=Ay(),xN=ba(),CN=Di(),TN=Cy(),ON=Ty.Function,PN=/MSIE .\./.test(xN)||SN==="BUN"&&function(){var e=Ty.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Oy.exports=function(e,t){var r=t?2:1;return PN?function(n,i){var o=TN(arguments.length,1)>r,a=AN(n)?n:ON(n),s=o?CN(arguments,r):[],l=o?function(){kN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var Ny=h(()=>{"use strict";var RN=Z(),Ry=fe(),NN=_u(),Py=NN(Ry.setInterval,!0);RN({global:!0,bind:!0,forced:Ry.setInterval!==Py},{setInterval:Py})});var My=h(()=>{"use strict";var DN=Z(),Ly=fe(),LN=_u(),Dy=LN(Ly.setTimeout,!0);DN({global:!0,bind:!0,forced:Ly.setTimeout!==Dy},{setTimeout:Dy})});var qy=h(()=>{"use strict";Ny();My()});var Fy=h((_6,Uy)=>{"use strict";qy();var MN=Dt();Uy.exports=MN.setTimeout});var Jy=h((b6,jy)=>{jy.exports=Fy()});function Mi(e,t){me.__h&&me.__h(oe,e,Li||t),Li=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Oa(e){return Li=1,Qy(Xy,e)}function Qy(e,t,r){var n=Mi($r++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Xy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function qi(e,t){var r=Mi($r++,3);!me.__s&&Iu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function bn(e,t){var r=Mi($r++,4);!me.__s&&Iu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function Ui(e){return Li=5,Fi(function(){return{current:e}},[])}function Fi(e,t){var r=Mi($r++,7);return Iu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function wn(e,t){return Li=8,Fi(function(){return e},t)}function In(e){var t=oe.context[e.__c],r=Mi($r++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function qN(){for(var e;e=Yy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ta),e.__H.__h.forEach(wu),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function UN(e){var t,r=function(){clearTimeout(n),Ky&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ky&&(t=requestAnimationFrame(r))}function Ta(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function wu(e){var t=oe;e.__c=e.__(),oe=t}function Iu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Xy(e,t){return typeof t=="function"?t(e):t}var $r,oe,bu,Gy,Li,Yy,me,By,Hy,Vy,$y,Wy,zy,Ky,Eu=S(()=>{un();Li=0,Yy=[],me=N,By=me.__b,Hy=me.__r,Vy=me.diffed,$y=me.__c,Wy=me.unmount,zy=me.__;me.__b=function(e){oe=null,By&&By(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zy&&zy(e,t)},me.__r=function(e){Hy&&Hy(e),$r=0;var t=(oe=e.__c).__H;t&&(bu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ta),t.__h.forEach(wu),t.__h=[],$r=0)),bu=oe},me.diffed=function(e){Vy&&Vy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yy.push(t)!==1&&Gy===me.requestAnimationFrame||((Gy=me.requestAnimationFrame)||UN)(qN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),bu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ta),r.__h=r.__h.filter(function(n){return!n.__||wu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),$y&&$y(e,t)},me.unmount=function(e){Wy&&Wy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ta(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};Ky=typeof requestAnimationFrame=="function"});function l_(e,t){for(var r in t)e[r]=t[r];return e}function Au(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Zy(e,t){this.props=e,this.context=t}function xu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Au(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Cu(e){function t(r){var n=l_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=FN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function c_(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=l_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return c_(n,t,r)})),e}function u_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return u_(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function ku(){this.__u=0,this.o=null,this.__b=null}function d_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Pa(){this.i=null,this.l=null}function Tu(e,t,r){return t.__k==null&&(t.textContent=""),vr(e,t),typeof r=="function"&&r(),e?e.__c:null}function WN(){}function zN(){return this.cancelBubble}function KN(){return this.defaultPrevented}var Su,e_,FN,jN,t_,r_,JN,GN,BN,HN,VN,$N,n_,p_,YN,i_,o_,a_,Ra=S(()=>{un();un();Eu();Eu();Su=bn;(Zy.prototype=new ct).isPureReactComponent=!0,Zy.prototype.shouldComponentUpdate=function(e,t){return Au(this.props,e)||Au(this.state,t)};e_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),e_&&e_(e)};FN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;jN=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}jN(e,t,r,n)};t_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),t_&&t_(e)},(ku.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=d_(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=u_(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},ku.prototype.componentWillUnmount=function(){this.o=[]},ku.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=c_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};r_=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(Pa.prototype=new ct).__a=function(e){var t=this,r=d_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),r_(t,e,n)):i()};r?r(o):o()}},Pa.prototype.render=function(e){this.i=null,this.l=new Map;var t=_i(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Pa.prototype.componentDidUpdate=Pa.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){r_(e,r,t)})};JN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,GN=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,BN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,HN=/[A-Z0-9]/g,VN=typeof document!="undefined",$N=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});n_=N.event;N.event=function(e){return n_&&(e=n_(e)),e.persist=WN,e.isPropagationStopped=zN,e.isDefaultPrevented=KN,e.nativeEvent=e};YN={enumerable:!1,configurable:!0,get:function(){return this.class}},i_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||VN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||$N(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":BN.test(a)&&(a=l):l=a="oninput":o&&GN.test(a)?a=a.replace(HN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=_i(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=_i(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",YN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=JN,i_&&i_(e)};o_=N.__r;N.__r=function(e){o_&&o_(e),p_=e.__c};a_=N.diffed;N.diffed=function(e){a_&&a_(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),p_=null}});var Pu=h(()=>{"use strict";var XN=Z(),Ou=fe();XN({global:!0,forced:Ou.globalThis!==Ou},{globalThis:Ou})});var f_=h(()=>{"use strict";Pu()});var m_=h((M6,h_)=>{"use strict";Pu();h_.exports=fe()});var g_=h((q6,v_)=>{"use strict";var ZN=m_();v_.exports=ZN});var __=h((U6,y_)=>{"use strict";var eD=g_();y_.exports=eD});var w_=h((F6,b_)=>{"use strict";f_();var tD=__();b_.exports=tD});var E_=h((j6,I_)=>{"use strict";I_.exports=w_()});var A_=h((J6,k_)=>{k_.exports=E_()});var S_=h(()=>{"use strict";var rD=Z(),nD=Ti();rD({target:"Array",stat:!0},{isArray:nD})});var C_=h((H6,x_)=>{"use strict";S_();var iD=Dt();x_.exports=iD.Array.isArray});var O_=h((V6,T_)=>{"use strict";var oD=C_();T_.exports=oD});var R_=h(($6,P_)=>{P_.exports=O_()});var D_=h((W6,N_)=>{"use strict";N_.exports=function(){}});var Wr=h((z6,L_)=>{"use strict";L_.exports={}});var Ru=h((K6,q_)=>{"use strict";var aD=fe(),sD=Le(),M_=aD.WeakMap;q_.exports=sD(M_)&&/native code/.test(String(M_))});var Na=h((Y6,F_)=>{"use strict";var lD=Yc(),cD=ka(),U_=lD("keys");F_.exports=function(e){return U_[e]||(U_[e]=cD(e))}});var ji=h((Q6,j_)=>{"use strict";j_.exports={}});var Kr=h((X6,B_)=>{"use strict";var uD=Ru(),G_=fe(),dD=Ce(),pD=Vr(),Nu=ut(),Du=ki(),fD=Na(),hD=ji(),J_="Object already initialized",Lu=G_.TypeError,mD=G_.WeakMap,Da,Ji,La,vD=function(e){return La(e)?Ji(e):Da(e,{})},gD=function(e){return function(t){var r;if(!dD(t)||(r=Ji(t)).type!==e)throw new Lu("Incompatible receiver, "+e+" required");return r}};uD||Du.state?(At=Du.state||(Du.state=new mD),At.get=At.get,At.has=At.has,At.set=At.set,Da=function(e,t){if(At.has(e))throw new Lu(J_);return t.facade=e,At.set(e,t),t},Ji=function(e){return At.get(e)||{}},La=function(e){return At.has(e)}):(zr=fD("state"),hD[zr]=!0,Da=function(e,t){if(Nu(e,zr))throw new Lu(J_);return t.facade=e,pD(e,zr,t),t},Ji=function(e){return Nu(e,zr)?e[zr]:{}},La=function(e){return Nu(e,zr)});var At,zr;B_.exports={set:Da,get:Ji,has:La,enforce:vD,getterFor:gD}});var Uu=h((Z6,V_)=>{"use strict";var Mu=Qe(),yD=ut(),H_=Function.prototype,_D=Mu&&Object.getOwnPropertyDescriptor,qu=yD(H_,"name"),bD=qu&&(function(){}).name==="something",wD=qu&&(!Mu||Mu&&_D(H_,"name").configurable);V_.exports={EXISTS:qu,PROPER:bD,CONFIGURABLE:wD}});var Fu=h((e8,$_)=>{"use strict";var ID=Ci(),ED=Math.max,kD=Math.min;$_.exports=function(e,t){var r=ID(e);return r<0?ED(r+t,0):kD(r,t)}});var ju=h((t8,z_)=>{"use strict";var AD=gr(),SD=Fu(),xD=yn(),W_=function(e){return function(t,r,n){var i=AD(t),o=xD(i);if(o===0)return!e&&-1;var a=SD(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};z_.exports={includes:W_(!0),indexOf:W_(!1)}});var Gu=h((r8,Y_)=>{"use strict";var CD=Ie(),Ju=ut(),TD=gr(),OD=ju().indexOf,PD=ji(),K_=CD([].push);Y_.exports=function(e,t){var r=TD(e),n=0,i=[],o;for(o in r)!Ju(PD,o)&&Ju(r,o)&&K_(i,o);for(;t.length>n;)Ju(r,o=t[n++])&&(~OD(i,o)||K_(i,o));return i}});var Ma=h((n8,Q_)=>{"use strict";Q_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Bu=h((i8,X_)=>{"use strict";var RD=Gu(),ND=Ma();X_.exports=Object.keys||function(t){return RD(t,ND)}});var eb=h(Z_=>{"use strict";var DD=Qe(),LD=nu(),MD=Xt(),qD=Qt(),UD=gr(),FD=Bu();Z_.f=DD&&!LD?Object.defineProperties:function(t,r){qD(t);for(var n=UD(r),i=FD(r),o=i.length,a=0,s;o>a;)MD.f(t,s=i[a++],n[s]);return t}});var rb=h((a8,tb)=>{"use strict";var jD=pn();tb.exports=jD("document","documentElement")});var Gi=h((s8,cb)=>{"use strict";var JD=Qt(),GD=eb(),nb=Ma(),BD=ji(),HD=rb(),VD=eu(),$D=Na(),ib=">",ob="<",Vu="prototype",$u="script",sb=$D("IE_PROTO"),Hu=function(){},lb=function(e){return ob+$u+ib+e+ob+"/"+$u+ib},ab=function(e){e.write(lb("")),e.close();var t=e.parentWindow.Object;return e=null,t},WD=function(){var e=VD("iframe"),t="java"+$u+":",r;return e.style.display="none",HD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(lb("document.F=Object")),r.close(),r.F},qa,Ua=function(){try{qa=new ActiveXObject("htmlfile")}catch(t){}Ua=typeof document!="undefined"?document.domain&&qa?ab(qa):WD():ab(qa);for(var e=nb.length;e--;)delete Ua[Vu][nb[e]];return Ua()};BD[sb]=!0;cb.exports=Object.create||function(t,r){var n;return t!==null?(Hu[Vu]=JD(t),n=new Hu,Hu[Vu]=null,n[sb]=t):n=Ua(),r===void 0?n:GD.f(n,r)}});var db=h((l8,ub)=>{"use strict";var zD=pe();ub.exports=!zD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var zu=h((c8,fb)=>{"use strict";var KD=ut(),YD=Le(),QD=hn(),XD=Na(),ZD=db(),pb=XD("IE_PROTO"),Wu=Object,eL=Wu.prototype;fb.exports=ZD?Wu.getPrototypeOf:function(e){var t=QD(e);if(KD(t,pb))return t[pb];var r=t.constructor;return YD(r)&&t instanceof r?r.prototype:t instanceof Wu?eL:null}});var Fa=h((u8,hb)=>{"use strict";var tL=Vr();hb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:tL(e,t,r),e}});var Xu=h((d8,gb)=>{"use strict";var rL=pe(),nL=Le(),iL=Ce(),oL=Gi(),mb=zu(),aL=Fa(),sL=Ge(),lL=fn(),Qu=sL("iterator"),vb=!1,Zt,Ku,Yu;[].keys&&(Yu=[].keys(),"next"in Yu?(Ku=mb(mb(Yu)),Ku!==Object.prototype&&(Zt=Ku)):vb=!0);var cL=!iL(Zt)||rL(function(){var e={};return Zt[Qu].call(e)!==e});cL?Zt={}:lL&&(Zt=oL(Zt));nL(Zt[Qu])||aL(Zt,Qu,function(){return this});gb.exports={IteratorPrototype:Zt,BUGGY_SAFARI_ITERATORS:vb}});var _b=h((p8,yb)=>{"use strict";var uL=Sa(),dL=_n();yb.exports=uL?{}.toString:function(){return"[object "+dL(this)+"]"}});var Bi=h((f8,wb)=>{"use strict";var pL=Sa(),fL=Xt().f,hL=Vr(),mL=ut(),vL=_b(),gL=Ge(),bb=gL("toStringTag");wb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(mL(i,bb)||fL(i,bb,{configurable:!0,value:t}),n&&!pL&&hL(i,"toString",vL))}});var Eb=h((h8,Ib)=>{"use strict";var yL=Xu().IteratorPrototype,_L=Gi(),bL=Ii(),wL=Bi(),IL=Wr(),EL=function(){return this};Ib.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=_L(yL,{next:bL(+!n,r)}),wL(e,i,!1,!0),IL[i]=EL,e}});var Ab=h((m8,kb)=>{"use strict";var kL=Ie(),AL=Hr();kb.exports=function(e,t,r){try{return kL(AL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var xb=h((v8,Sb)=>{"use strict";var SL=Ce();Sb.exports=function(e){return SL(e)||e===null}});var Tb=h((g8,Cb)=>{"use strict";var xL=xb(),CL=String,TL=TypeError;Cb.exports=function(e){if(xL(e))return e;throw new TL("Can't set "+CL(e)+" as a prototype")}});var Pb=h((y8,Ob)=>{"use strict";var OL=Ab(),PL=Ce(),RL=Br(),NL=Tb();Ob.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=OL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return RL(i),NL(o),PL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ga=h((_8,Jb)=>{"use strict";var DL=Z(),LL=Et(),ja=fn(),Fb=Uu(),ML=Le(),qL=Eb(),Rb=zu(),Nb=Pb(),UL=Bi(),FL=Vr(),Zu=Fa(),jL=Ge(),Db=Wr(),jb=Xu(),JL=Fb.PROPER,GL=Fb.CONFIGURABLE,Lb=jb.IteratorPrototype,Ja=jb.BUGGY_SAFARI_ITERATORS,Hi=jL("iterator"),Mb="keys",Vi="values",qb="entries",Ub=function(){return this};Jb.exports=function(e,t,r,n,i,o,a){qL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!Ja&&v&&v in d)return d[v];switch(v){case Mb:return function(){return new r(this,v)};case Vi:return function(){return new r(this,v)};case qb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Hi]||d["@@iterator"]||i&&d[i],p=!Ja&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=Rb(f.call(new e)),m!==Object.prototype&&m.next&&(!ja&&Rb(m)!==Lb&&(Nb?Nb(m,Lb):ML(m[Hi])||Zu(m,Hi,Ub)),UL(m,l,!0,!0),ja&&(Db[l]=Ub))),JL&&i===Vi&&u&&u.name!==Vi&&(!ja&&GL?FL(d,"name",Vi):(c=!0,p=function(){return LL(u,this)})),i)if(g={values:s(Vi),keys:o?p:s(Mb),entries:s(qb)},a)for(y in g)(Ja||c||!(y in d))&&Zu(d,y,g[y]);else DL({target:t,proto:!0,forced:Ja||c},g);return(!ja||a)&&d[Hi]!==p&&Zu(d,Hi,p,{name:i}),Db[t]=p,g}});var Ba=h((b8,Gb)=>{"use strict";Gb.exports=function(e,t){return{value:e,done:t}}});var Va=h((w8,Wb)=>{"use strict";var BL=gr(),ed=D_(),Bb=Wr(),Vb=Kr(),HL=Xt().f,VL=Ga(),Ha=Ba(),$L=fn(),WL=Qe(),$b="Array Iterator",zL=Vb.set,KL=Vb.getterFor($b);Wb.exports=VL(Array,"Array",function(e,t){zL(this,{type:$b,target:BL(e),index:0,kind:t})},function(){var e=KL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ha(void 0,!0);switch(e.kind){case"keys":return Ha(r,!1);case"values":return Ha(t[r],!1)}return Ha([r,t[r]],!1)},"values");var Hb=Bb.Arguments=Bb.Array;ed("keys");ed("values");ed("entries");if(!$L&&WL&&Hb.name!=="values")try{HL(Hb,"name",{value:"values"})}catch(e){}});var td=h(()=>{});var rd=h((k8,zb)=>{"use strict";var YL=pe();zb.exports=!YL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var $a=h((A8,Kb)=>{"use strict";var QL=Fa();Kb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:QL(e,n,t[n],r);return e}});var nd=h(Yb=>{"use strict";var XL=Gu(),ZL=Ma(),eM=ZL.concat("length","prototype");Yb.f=Object.getOwnPropertyNames||function(t){return XL(t,eM)}});var ew=h((x8,Zb)=>{"use strict";var tM=Yt(),rM=gr(),Qb=nd().f,nM=Di(),Xb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iM=function(e){try{return Qb(e)}catch(t){return nM(Xb)}};Zb.exports.f=function(t){return Xb&&tM(t)==="Window"?iM(t):Qb(rM(t))}});var rw=h((C8,tw)=>{"use strict";var oM=pe();tw.exports=oM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ow=h((T8,iw)=>{"use strict";var aM=pe(),sM=Ce(),lM=Yt(),nw=rw(),Wa=Object.isExtensible,cM=aM(function(){Wa(1)});iw.exports=cM||nw?function(t){return!sM(t)||nw&&lM(t)==="ArrayBuffer"?!1:Wa?Wa(t):!0}:Wa});var $i=h((O8,lw)=>{"use strict";var uM=Z(),dM=Ie(),pM=ji(),fM=Ce(),id=ut(),hM=Xt().f,aw=nd(),mM=ew(),od=ow(),vM=ka(),gM=rd(),sw=!1,er=vM("meta"),yM=0,ad=function(e){hM(e,er,{value:{objectID:"O"+yM++,weakData:{}}})},_M=function(e,t){if(!fM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!id(e,er)){if(!od(e))return"F";if(!t)return"E";ad(e)}return e[er].objectID},bM=function(e,t){if(!id(e,er)){if(!od(e))return!0;if(!t)return!1;ad(e)}return e[er].weakData},wM=function(e){return gM&&sw&&od(e)&&!id(e,er)&&ad(e),e},IM=function(){EM.enable=function(){},sw=!0;var e=aw.f,t=dM([].splice),r={};r[er]=1,e(r).length&&(aw.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===er){t(i,o,1);break}return i},uM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mM.f}))},EM=lw.exports={enable:IM,fastKey:_M,getWeakData:bM,onFreeze:wM};pM[er]=!0});var uw=h((P8,cw)=>{"use strict";var kM=Ge(),AM=Wr(),SM=kM("iterator"),xM=Array.prototype;cw.exports=function(e){return e!==void 0&&(AM.Array===e||xM[SM]===e)}});var sd=h((R8,pw)=>{"use strict";var CM=_n(),dw=Ea(),TM=Gr(),OM=Wr(),PM=Ge(),RM=PM("iterator");pw.exports=function(e){if(!TM(e))return dw(e,RM)||dw(e,"@@iterator")||OM[CM(e)]}});var hw=h((N8,fw)=>{"use strict";var NM=Et(),DM=Hr(),LM=Qt(),MM=Ei(),qM=sd(),UM=TypeError;fw.exports=function(e,t){var r=arguments.length<2?qM(e):t;if(DM(r))return LM(NM(r,e));throw new UM(MM(e)+" is not iterable")}});var za=h((D8,vw)=>{"use strict";var FM=Et(),mw=Qt(),jM=Ea();vw.exports=function(e,t,r){var n,i;mw(e);try{if(n=jM(e,"return"),!n){if(t==="throw")throw r;return r}n=FM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return mw(n),r}});var Ya=h((L8,bw)=>{"use strict";var JM=Si(),GM=Et(),BM=Qt(),HM=Ei(),VM=uw(),$M=yn(),gw=Ye(),WM=hw(),zM=sd(),yw=za(),KM=TypeError,Ka=function(e,t){this.stopped=e,this.result=t},_w=Ka.prototype;bw.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=JM(t,n),c,d,u,p,f,m,g,y=function(b){return c&&yw(c,"normal",b),new Ka(!0,b)},v=function(b){return i?(BM(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=zM(e),!d)throw new KM(HM(e)+" is not iterable");if(VM(d)){for(u=0,p=$M(e);p>u;u++)if(f=v(e[u]),f&&gw(_w,f))return f;return new Ka(!1)}c=WM(e,d)}for(m=o?e.next:c.next;!(g=GM(m,c)).done;){try{f=v(g.value)}catch(b){yw(c,"throw",b)}if(typeof f=="object"&&f&&gw(_w,f))return f}return new Ka(!1)}});var Qa=h((M8,ww)=>{"use strict";var YM=Ye(),QM=TypeError;ww.exports=function(e,t){if(YM(t,e))return e;throw new QM("Incorrect invocation")}});var ld=h((q8,Ew)=>{"use strict";var XM=Z(),ZM=fe(),eq=$i(),tq=pe(),rq=Vr(),nq=Ya(),iq=Qa(),oq=Le(),aq=Ce(),sq=Gr(),lq=Bi(),cq=Xt().f,uq=_r().forEach,dq=Qe(),Iw=Kr(),pq=Iw.set,fq=Iw.getterFor;Ew.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=ZM[e],s=a&&a.prototype,l={},c;if(!dq||!oq(a)||!(i||s.forEach&&!tq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),eq.enable();else{c=t(function(p,f){pq(iq(p,d),{type:e,collection:new a}),sq(f)||nq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=fq(e);uq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&rq(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!aq(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||cq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return lq(c,e,!1,!0),l[e]=c,XM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Ow=h((U8,Tw)=>{"use strict";var hq=Ie(),kw=$a(),Xa=$i().getWeakData,mq=Qa(),vq=Qt(),gq=Gr(),cd=Ce(),yq=Ya(),Sw=_r(),Aw=ut(),xw=Kr(),_q=xw.set,bq=xw.getterFor,wq=Sw.find,Iq=Sw.findIndex,Eq=hq([].splice),kq=0,Za=function(e){return e.frozen||(e.frozen=new Cw)},Cw=function(){this.entries=[]},ud=function(e,t){return wq(e.entries,function(r){return r[0]===t})};Cw.prototype={get:function(e){var t=ud(this,e);if(t)return t[1]},has:function(e){return!!ud(this,e)},set:function(e,t){var r=ud(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Iq(this.entries,function(r){return r[0]===e});return~t&&Eq(this.entries,t,1),!!~t}};Tw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){mq(l,o),_q(l,{type:t,id:kq++,frozen:null}),gq(c)||yq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=bq(t),s=function(l,c,d){var u=a(l),p=Xa(vq(c),!0);return p===!0?Za(u).set(c,d):p[u.id]=d,l};return kw(o,{delete:function(l){var c=a(this);if(!cd(l))return!1;var d=Xa(l);return d===!0?Za(c).delete(l):d&&Aw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!cd(c))return!1;var u=Xa(c);return u===!0?Za(d).has(c):u&&Aw(u,d.id)}}),kw(o,r?{get:function(c){var d=a(this);if(cd(c)){var u=Xa(c);if(u===!0)return Za(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var Uw=h(()=>{"use strict";var Aq=rd(),Pw=fe(),ns=Ie(),Rw=$a(),Sq=$i(),xq=ld(),Nw=Ow(),es=Ce(),ts=Kr().enforce,Cq=pe(),Tq=Ru(),Ki=Object,Oq=Array.isArray,rs=Ki.isExtensible,Dw=Ki.isFrozen,Pq=Ki.isSealed,Lw=Ki.freeze,Rq=Ki.seal,Nq=!Pw.ActiveXObject&&"ActiveXObject"in Pw,Wi,Mw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},qw=xq("WeakMap",Mw,Nw),En=qw.prototype,is=ns(En.set),Dq=function(){return Aq&&Cq(function(){var e=Lw([]);return is(new qw,e,1),!Dw(e)})};Tq&&(Nq?(Wi=Nw.getConstructor(Mw,"WeakMap",!0),Sq.enable(),dd=ns(En.delete),zi=ns(En.has),pd=ns(En.get),Rw(En,{delete:function(e){if(es(e)&&!rs(e)){var t=ts(this);return t.frozen||(t.frozen=new Wi),dd(this,e)||t.frozen.delete(e)}return dd(this,e)},has:function(t){if(es(t)&&!rs(t)){var r=ts(this);return r.frozen||(r.frozen=new Wi),zi(this,t)||r.frozen.has(t)}return zi(this,t)},get:function(t){if(es(t)&&!rs(t)){var r=ts(this);return r.frozen||(r.frozen=new Wi),zi(this,t)?pd(this,t):r.frozen.get(t)}return pd(this,t)},set:function(t,r){if(es(t)&&!rs(t)){var n=ts(this);n.frozen||(n.frozen=new Wi),zi(this,t)?is(this,t,r):n.frozen.set(t,r)}else is(this,t,r);return this}})):Dq()&&Rw(En,{set:function(t,r){var n;return Oq(t)&&(Dw(t)?n=Lw:Pq(t)&&(n=Rq)),is(this,t,r),n&&n(t),this}}));var dd,zi,pd});var Fw=h(()=>{"use strict";Uw()});var Jw=h((B8,jw)=>{"use strict";Va();td();Fw();var Lq=Dt();jw.exports=Lq.WeakMap});var Bw=h((H8,Gw)=>{"use strict";Gw.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var fd=h(()=>{"use strict";Va();var Mq=Bw(),qq=fe(),Uq=Bi(),Hw=Wr();for(os in Mq)Uq(qq[os],os),Hw[os]=Hw.Array;var os});var $w=h((W8,Vw)=>{"use strict";var Fq=Jw();fd();Vw.exports=Fq});var zw=h((z8,Ww)=>{Ww.exports=$w()});var Yw=h(()=>{"use strict";var jq=Z(),Jq=wi(),Gq=ju().indexOf,Bq=Ri(),hd=Jq([].indexOf),Kw=!!hd&&1/hd([1],1,-0)<0,Hq=Kw||!Bq("indexOf");jq({target:"Array",proto:!0,forced:Hq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Kw?hd(this,t,r)||0:Gq(this,t,r)}})});var Xw=h((Q8,Qw)=>{"use strict";Yw();var Vq=_t();Qw.exports=Vq("Array","indexOf")});var e0=h((X8,Zw)=>{"use strict";var $q=Ye(),Wq=Xw(),md=Array.prototype;Zw.exports=function(e){var t=e.indexOf;return e===md||$q(md,e)&&t===md.indexOf?Wq:t}});var r0=h((Z8,t0)=>{"use strict";var zq=e0();t0.exports=zq});var i0=h((eK,n0)=>{n0.exports=r0()});var o0=h(()=>{"use strict";var Kq=Z(),Yq=_r().map,Qq=Pi(),Xq=Qq("map");Kq({target:"Array",proto:!0,forced:!Xq},{map:function(t){return Yq(this,t,arguments.length>1?arguments[1]:void 0)}})});var s0=h((nK,a0)=>{"use strict";o0();var Zq=_t();a0.exports=Zq("Array","map")});var c0=h((iK,l0)=>{"use strict";var eU=Ye(),tU=s0(),vd=Array.prototype;l0.exports=function(e){var t=e.map;return e===vd||eU(vd,e)&&t===vd.map?tU:t}});var d0=h((oK,u0)=>{"use strict";var rU=c0();u0.exports=rU});var f0=h((aK,p0)=>{p0.exports=d0()});var h0=h(()=>{"use strict";var nU=Z(),iU=Qe(),oU=Gi();nU({target:"Object",stat:!0,sham:!iU},{create:oU})});var v0=h((cK,m0)=>{"use strict";h0();var aU=Dt(),sU=aU.Object;m0.exports=function(t,r){return sU.create(t,r)}});var y0=h((uK,g0)=>{"use strict";var lU=v0();g0.exports=lU});var b0=h((dK,_0)=>{_0.exports=y0()});var gd=h((pK,w0)=>{"use strict";var cU=Xt();w0.exports=function(e,t,r){return cU.f(e,t,r)}});var k0=h((fK,E0)=>{"use strict";var uU=pn(),dU=gd(),pU=Ge(),fU=Qe(),I0=pU("species");E0.exports=function(e){var t=uU(e);fU&&t&&!t[I0]&&dU(t,I0,{configurable:!0,get:function(){return this}})}});var P0=h((hK,O0)=>{"use strict";var A0=Gi(),hU=gd(),S0=$a(),mU=Si(),vU=Qa(),gU=Gr(),yU=Ya(),_U=Ga(),as=Ba(),bU=k0(),Yi=Qe(),x0=$i().fastKey,T0=Kr(),C0=T0.set,yd=T0.getterFor;O0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){vU(c,o),C0(c,{type:t,index:A0(null),first:null,last:null,size:0}),Yi||(c.size=0),gU(d)||yU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=yd(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=x0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Yi?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=x0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return S0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=A0(null),Yi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Yi?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=mU(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),S0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Yi&&hU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=yd(t),o=yd(n);_U(e,t,function(a,s){C0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,as(void 0,!0)):as(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),bU(t)}}});var R0=h(()=>{"use strict";var wU=ld(),IU=P0();wU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},IU)});var N0=h(()=>{"use strict";R0()});var br=h((_K,D0)=>{"use strict";var EU=Ei(),kU=TypeError;D0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new kU(EU(e)+" is not a set")}});var M0=h((bK,L0)=>{"use strict";L0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var wr=h((wK,U0)=>{"use strict";var AU=pn(),_d=M0(),q0=AU("Set"),SU=q0.prototype;U0.exports={Set:q0,add:_d("add",1),has:_d("has",1),remove:_d("delete",1),proto:SU}});var Ir=h((IK,F0)=>{"use strict";var xU=Et();F0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=xU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var kn=h((EK,j0)=>{"use strict";var CU=Ir();j0.exports=function(e,t,r){return r?CU(e.keys(),t,!0):e.forEach(t)}});var ss=h((kK,G0)=>{"use strict";var J0=wr(),TU=kn(),OU=J0.Set,PU=J0.add;G0.exports=function(e){var t=new OU;return TU(e,function(r){PU(t,r)}),t}});var An=h((AK,B0)=>{"use strict";B0.exports=function(e){return e.size}});var V0=h((SK,H0)=>{"use strict";H0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Er=h((xK,Q0)=>{"use strict";var $0=Hr(),K0=Qt(),W0=Et(),RU=Ci(),NU=V0(),z0="Invalid size",DU=RangeError,LU=TypeError,MU=Math.max,Y0=function(e,t){this.set=e,this.size=MU(t,0),this.has=$0(e.has),this.keys=$0(e.keys)};Y0.prototype={getIterator:function(){return NU(K0(W0(this.keys,this.set)))},includes:function(e){return W0(this.has,this.set,e)}};Q0.exports=function(e){K0(e);var t=+e.size;if(t!==t)throw new LU(z0);var r=RU(t);if(r<0)throw new DU(z0);return new Y0(e,r)}});var tI=h((CK,eI)=>{"use strict";var qU=br(),Z0=wr(),UU=ss(),FU=An(),jU=Er(),JU=kn(),GU=Ir(),BU=Z0.has,X0=Z0.remove;eI.exports=function(t){var r=qU(this),n=jU(t),i=UU(r);return FU(r)<=n.size?JU(r,function(o){n.includes(o)&&X0(i,o)}):GU(n.getIterator(),function(o){BU(r,o)&&X0(i,o)}),i}});var kr=h((TK,rI)=>{"use strict";rI.exports=function(){return!1}});var nI=h(()=>{"use strict";var HU=Z(),VU=tI(),$U=kr(),WU=!$U("difference",function(e){return e.size===0});HU({target:"Set",proto:!0,real:!0,forced:WU},{difference:VU})});var aI=h((RK,oI)=>{"use strict";var zU=br(),bd=wr(),KU=An(),YU=Er(),QU=kn(),XU=Ir(),ZU=bd.Set,iI=bd.add,eF=bd.has;oI.exports=function(t){var r=zU(this),n=YU(t),i=new ZU;return KU(r)>n.size?XU(n.getIterator(),function(o){eF(r,o)&&iI(i,o)}):QU(r,function(o){n.includes(o)&&iI(i,o)}),i}});var sI=h(()=>{"use strict";var tF=Z(),rF=pe(),nF=aI(),iF=kr(),oF=!iF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||rF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});tF({target:"Set",proto:!0,real:!0,forced:oF},{intersection:nF})});var cI=h((LK,lI)=>{"use strict";var aF=br(),sF=wr().has,lF=An(),cF=Er(),uF=kn(),dF=Ir(),pF=za();lI.exports=function(t){var r=aF(this),n=cF(t);if(lF(r)<=n.size)return uF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return dF(i,function(o){if(sF(r,o))return pF(i,"normal",!1)})!==!1}});var uI=h(()=>{"use strict";var fF=Z(),hF=cI(),mF=kr(),vF=!mF("isDisjointFrom",function(e){return!e});fF({target:"Set",proto:!0,real:!0,forced:vF},{isDisjointFrom:hF})});var pI=h((UK,dI)=>{"use strict";var gF=br(),yF=An(),_F=kn(),bF=Er();dI.exports=function(t){var r=gF(this),n=bF(t);return yF(r)>n.size?!1:_F(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var fI=h(()=>{"use strict";var wF=Z(),IF=pI(),EF=kr(),kF=!EF("isSubsetOf",function(e){return e});wF({target:"Set",proto:!0,real:!0,forced:kF},{isSubsetOf:IF})});var mI=h((JK,hI)=>{"use strict";var AF=br(),SF=wr().has,xF=An(),CF=Er(),TF=Ir(),OF=za();hI.exports=function(t){var r=AF(this),n=CF(t);if(xF(r)<n.size)return!1;var i=n.getIterator();return TF(i,function(o){if(!SF(r,o))return OF(i,"normal",!1)})!==!1}});var vI=h(()=>{"use strict";var PF=Z(),RF=mI(),NF=kr(),DF=!NF("isSupersetOf",function(e){return!e});PF({target:"Set",proto:!0,real:!0,forced:DF},{isSupersetOf:RF})});var yI=h((HK,gI)=>{"use strict";var LF=br(),wd=wr(),MF=ss(),qF=Er(),UF=Ir(),FF=wd.add,jF=wd.has,JF=wd.remove;gI.exports=function(t){var r=LF(this),n=qF(t).getIterator(),i=MF(r);return UF(n,function(o){jF(r,o)?JF(i,o):FF(i,o)}),i}});var _I=h(()=>{"use strict";var GF=Z(),BF=yI(),HF=kr();GF({target:"Set",proto:!0,real:!0,forced:!HF("symmetricDifference")},{symmetricDifference:BF})});var wI=h((WK,bI)=>{"use strict";var VF=br(),$F=wr().add,WF=ss(),zF=Er(),KF=Ir();bI.exports=function(t){var r=VF(this),n=zF(t).getIterator(),i=WF(r);return KF(n,function(o){$F(i,o)}),i}});var II=h(()=>{"use strict";var YF=Z(),QF=wI(),XF=kr();YF({target:"Set",proto:!0,real:!0,forced:!XF("union")},{union:QF})});var Qi=h((YK,EI)=>{"use strict";var ZF=_n(),ej=String;EI.exports=function(e){if(ZF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ej(e)}});var xI=h((QK,SI)=>{"use strict";var Id=Ie(),tj=Ci(),rj=Qi(),nj=Br(),ij=Id("".charAt),kI=Id("".charCodeAt),oj=Id("".slice),AI=function(e){return function(t,r){var n=rj(nj(t)),i=tj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=kI(n,i),a<55296||a>56319||i+1===o||(s=kI(n,i+1))<56320||s>57343?e?ij(n,i):a:e?oj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};SI.exports={codeAt:AI(!1),charAt:AI(!0)}});var PI=h(()=>{"use strict";var aj=xI().charAt,sj=Qi(),TI=Kr(),lj=Ga(),CI=Ba(),OI="String Iterator",cj=TI.set,uj=TI.getterFor(OI);lj(String,"String",function(e){cj(this,{type:OI,string:sj(e),index:0})},function(){var t=uj(this),r=t.string,n=t.index,i;return n>=r.length?CI(void 0,!0):(i=aj(r,n),t.index+=i.length,CI(i,!1))})});var NI=h((e7,RI)=>{"use strict";Va();td();N0();nI();sI();uI();fI();vI();_I();II();PI();var dj=Dt();RI.exports=dj.Set});var LI=h((t7,DI)=>{"use strict";var pj=NI();fd();DI.exports=pj});var qI=h((r7,MI)=>{MI.exports=LI()});var FI=h(UI=>{"use strict";UI.f=Object.getOwnPropertySymbols});var BI=h((i7,GI)=>{"use strict";var jI=Qe(),fj=Ie(),hj=Et(),mj=pe(),Ed=Bu(),vj=FI(),gj=Fc(),yj=hn(),_j=_a(),Sn=Object.assign,JI=Object.defineProperty,bj=fj([].concat);GI.exports=!Sn||mj(function(){if(jI&&Sn({b:1},Sn(JI({},"a",{enumerable:!0,get:function(){JI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Sn({},e)[r]!==7||Ed(Sn({},t)).join("")!==n})?function(t,r){for(var n=yj(t),i=arguments.length,o=1,a=vj.f,s=gj.f;i>o;)for(var l=_j(arguments[o++]),c=a?bj(Ed(l),a(l)):Ed(l),d=c.length,u=0,p;d>u;)p=c[u++],(!jI||hj(s,l,p))&&(n[p]=l[p]);return n}:Sn});var VI=h(()=>{"use strict";var wj=Z(),HI=BI();wj({target:"Object",stat:!0,arity:2,forced:Object.assign!==HI},{assign:HI})});var WI=h((s7,$I)=>{"use strict";VI();var Ij=Dt();$I.exports=Ij.Object.assign});var KI=h((l7,zI)=>{"use strict";var Ej=WI();zI.exports=Ej});var QI=h((c7,YI)=>{YI.exports=KI()});var kd=h((u7,XI)=>{"use strict";XI.exports=`
|
|
22
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var tE=h((d7,eE)=>{"use strict";var kj=Ie(),Aj=Br(),Sj=Qi(),Sd=kd(),ZI=kj("".replace),xj=RegExp("^["+Sd+"]+"),Cj=RegExp("(^|[^"+Sd+"])["+Sd+"]+$"),Ad=function(e){return function(t){var r=Sj(Aj(t));return e&1&&(r=ZI(r,xj,"")),e&2&&(r=ZI(r,Cj,"$1")),r}};eE.exports={start:Ad(1),end:Ad(2),trim:Ad(3)}});var oE=h((p7,iE)=>{"use strict";var Tj=Uu().PROPER,Oj=pe(),rE=kd(),nE="\u200B\x85\u180E";iE.exports=function(e){return Oj(function(){return!!rE[e]()||nE[e]()!==nE||Tj&&rE[e].name!==e})}});var aE=h(()=>{"use strict";var Pj=Z(),Rj=tE().trim,Nj=oE();Pj({target:"String",proto:!0,forced:Nj("trim")},{trim:function(){return Rj(this)}})});var lE=h((m7,sE)=>{"use strict";aE();var Dj=_t();sE.exports=Dj("String","trim")});var uE=h((v7,cE)=>{"use strict";var Lj=Ye(),Mj=lE(),xd=String.prototype;cE.exports=function(e){var t=e.trim;return typeof e=="string"||e===xd||Lj(xd,e)&&t===xd.trim?Mj:t}});var pE=h((g7,dE)=>{"use strict";var qj=uE();dE.exports=qj});var hE=h((y7,fE)=>{fE.exports=pE()});var gE=h(()=>{"use strict";var Uj=Z(),mE=Ti(),Fj=du(),jj=Ce(),vE=Fu(),Jj=yn(),Gj=gr(),Bj=vu(),Hj=Ge(),Vj=Pi(),$j=Di(),Wj=Vj("slice"),zj=Hj("species"),Cd=Array,Kj=Math.max;Uj({target:"Array",proto:!0,forced:!Wj},{slice:function(t,r){var n=Gj(this),i=Jj(n),o=vE(t,i),a=vE(r===void 0?i:r,i),s,l,c;if(mE(n)&&(s=n.constructor,Fj(s)&&(s===Cd||mE(s.prototype))?s=void 0:jj(s)&&(s=s[zj],s===null&&(s=void 0)),s===Cd||s===void 0))return $j(n,o,a);for(l=new(s===void 0?Cd:s)(Kj(a-o,0)),c=0;o<a;o++,c++)o in n&&Bj(l,c,n[o]);return l.length=c,l}})});var _E=h((w7,yE)=>{"use strict";gE();var Yj=_t();yE.exports=Yj("Array","slice")});var wE=h((I7,bE)=>{"use strict";var Qj=Ye(),Xj=_E(),Td=Array.prototype;bE.exports=function(e){var t=e.slice;return e===Td||Qj(Td,e)&&t===Td.slice?Xj:t}});var EE=h((E7,IE)=>{"use strict";var Zj=wE();IE.exports=Zj});var AE=h((k7,kE)=>{kE.exports=EE()});var Od=S(()=>{});var xE=h((S7,SE)=>{"use strict";var eJ=Ce(),tJ=Yt(),rJ=Ge(),nJ=rJ("match");SE.exports=function(e){var t;return eJ(e)&&((t=e[nJ])!==void 0?!!t:tJ(e)==="RegExp")}});var TE=h((x7,CE)=>{"use strict";var iJ=xE(),oJ=TypeError;CE.exports=function(e){if(iJ(e))throw new oJ("The method doesn't accept regular expressions");return e}});var PE=h((C7,OE)=>{"use strict";var aJ=Ge(),sJ=aJ("match");OE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[sJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var DE=h(()=>{"use strict";var lJ=Z(),cJ=wi(),uJ=ru().f,dJ=lu(),RE=Qi(),pJ=TE(),fJ=Br(),hJ=PE(),mJ=fn(),vJ=cJ("".slice),gJ=Math.min,NE=hJ("startsWith"),yJ=!mJ&&!NE&&!!function(){var e=uJ(String.prototype,"startsWith");return e&&!e.writable}();lJ({target:"String",proto:!0,forced:!yJ&&!NE},{startsWith:function(t){var r=RE(fJ(this));pJ(t);var n=dJ(gJ(arguments.length>1?arguments[1]:void 0,r.length)),i=RE(t);return vJ(r,n,n+i.length)===i}})});var ME=h((P7,LE)=>{"use strict";DE();var _J=_t();LE.exports=_J("String","startsWith")});var UE=h((R7,qE)=>{"use strict";var bJ=Ye(),wJ=ME(),Pd=String.prototype;qE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Pd||bJ(Pd,e)&&t===Pd.startsWith?wJ:t}});var jE=h((N7,FE)=>{"use strict";var IJ=UE();FE.exports=IJ});var GE=h((D7,JE)=>{JE.exports=jE()});var WE=h((L7,$E)=>{"use strict";var HE=Ie(),EJ=Hr(),kJ=Ce(),AJ=ut(),BE=Di(),SJ=dn(),VE=Function,xJ=HE([].concat),CJ=HE([].join),Rd={},TJ=function(e,t,r){if(!AJ(Rd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Rd[t]=VE("C,a","return new C("+CJ(n,",")+")")}return Rd[t](e,r)};$E.exports=SJ?VE.bind:function(t){var r=EJ(this),n=r.prototype,i=BE(arguments,1),o=function(){var s=xJ(i,BE(arguments));return this instanceof o?TJ(r,s.length,s):r.apply(t,s)};return kJ(n)&&(o.prototype=n),o}});var KE=h(()=>{"use strict";var OJ=Z(),zE=WE();OJ({target:"Function",proto:!0,forced:Function.bind!==zE},{bind:zE})});var QE=h((U7,YE)=>{"use strict";KE();var PJ=_t();YE.exports=PJ("Function","bind")});var ZE=h((F7,XE)=>{"use strict";var RJ=Ye(),NJ=QE(),Nd=Function.prototype;XE.exports=function(e){var t=e.bind;return e===Nd||RJ(Nd,e)&&t===Nd.bind?NJ:t}});var tk=h((j7,ek)=>{"use strict";var DJ=ZE();ek.exports=DJ});var nk=h((J7,rk)=>{rk.exports=tk()});function Ss(e,t){Ee.__h&&Ee.__h(ce,e,io||t),io=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return io=1,LJ(Vk,e)}function LJ(e,t,r){var n=Ss(On++,2);if(n.t=e,!n.__c&&(n.__=[Vk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,ep.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,jk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Qr(e,t){var r=Ss(On++,3);!Ee.__s&&Hk(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function eo(e){return io=5,rr(function(){return{current:e}},[])}function rr(e,t){var r=Ss(On++,7);return Hk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return io=8,rr(function(){return e},t)}function MJ(e){var t=ce.context[e.__c],r=Ss(On++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function qJ(){for(var e;e=Bk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,ps),(0,Te.default)(r=e.__H.__h).call(r,Gd),e.__H.__h=[]}catch(n){e.__H.__h=[],Ee.__e(n,e.__v)}}function UJ(e){var t,r=function(){clearTimeout(n),dk&&cancelAnimationFrame(t),(0,jt.default)(e)},n=(0,jt.default)(r,100);dk&&(t=requestAnimationFrame(r))}function ps(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Gd(e){var t=ce;e.__c=e.__(),ce=t}function Hk(e,t){return!e||e.length!==t.length||(0,bs.default)(t).call(t,function(r,n){return r!==e[n]})}function Vk(e,t){return typeof t=="function"?t(e):t}function FJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bd(){throw new Error("setTimeout has not been defined")}function Hd(){throw new Error("clearTimeout has not been defined")}function Wk(e){if(Lt===jt.default)return(0,jt.default)(e,0);if((Lt===Bd||!Lt)&&jt.default)return Lt=jt.default,(0,jt.default)(e,0);try{return Lt(e,0)}catch(t){try{return Lt.call(null,e,0)}catch(r){return Lt.call(this,e,0)}}}function jJ(e){if(Mt===clearTimeout)return clearTimeout(e);if((Mt===Hd||!Mt)&&clearTimeout)return Mt=clearTimeout,clearTimeout(e);try{return Mt(e)}catch(t){try{return Mt.call(null,e)}catch(r){return Mt.call(this,e)}}}function JJ(){!xn||!Sr||(xn=!1,Sr.length?tr=(0,As.default)(Sr).call(Sr,tr):fs=-1,tr.length&&zk())}function zk(){if(!xn){var e=Wk(JJ);xn=!0;for(var t=tr.length;t;){for(Sr=tr,tr=[];++fs<t;)Sr&&Sr[fs].run();fs=-1,t=tr.length}Sr=null,xn=!1,jJ(e)}}function Kk(e,t){this.fun=e,this.array=t}function ir(){}function HJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function VJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function KJ(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Xk(e){return(0,np.default)(e).call(e)}function YJ(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Vd(e,t){return(0,nr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function oo(e,t,r){return(0,ip.default)(e).call(e,t,r)}function qt(e){return e.length}function lp(e){return e.length}function ls(e,t){return t.push(e),e}function QJ(e,t){return(0,no.default)(e).call(e,t).join("")}function Ts(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Cs,column:Pn,length:a,return:""}}function Xi(e,t){return zJ(Ts("",null,null,"",null,null,0),e,{length:-e.length},t)}function XJ(){return ke}function ZJ(){return ke=rt>0?Me(Nn,--rt):0,Pn--,ke===10&&(Pn=1,Cs--),ke}function dt(){return ke=rt<Zk?Me(Nn,rt++):0,Pn++,ke===10&&(Pn=1,Cs++),ke}function Gt(){return Me(Nn,rt)}function hs(){return rt}function po(e,t){return oo(Nn,e,t)}function ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eA(e){return Cs=Pn=1,Zk=qt(Nn=e),rt=0,[]}function tA(e){return Nn="",e}function ms(e){return Xk(po(rt-1,$d(e===91?e+2:e===40?e+1:e)))}function e2(e){for(;(ke=Gt())&&ke<33;)dt();return ao(e)>2||ao(ke)>3?"":" "}function t2(e,t){for(;--t&&dt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return po(e,hs()+(t<6&&Gt()==32&&dt()==32))}function $d(e){for(;dt();)switch(ke){case e:return rt;case 34:case 39:e!==34&&e!==39&&$d(ke);break;case 40:e===41&&$d(e);break;case 92:dt();break}return rt}function r2(e,t){for(;dt()&&e+ke!==57&&!(e+ke===84&&Gt()===47););return"/*"+po(t,rt-1)+"*"+xs(e===47?e:dt())}function n2(e){for(;!ao(Gt());)dt();return po(e,rt)}function i2(e){return tA(vs("",null,null,null,[""],e=eA(e),0,[0],e))}function vs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=dt()){case 40:if(m!=108&&Me(A,u-1)==58){Vd(A+=Y(ms(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=ms(b);break;case 9:case 10:case 13:case 32:A+=e2(m);break;case 92:A+=t2(hs()-1,7);continue;case 47:switch(Gt()){case 42:case 47:ls(o2(r2(dt(),hs()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=qt(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&qt(A)-u&&ls(f>32?fk(A+";",n,r,u-1):fk(Y(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(ls(C=pk(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)vs(A,t,C,C,x,o,u,s,P);else switch(p===99&&Me(A,3)===110?100:p){case 100:case 109:case 115:vs(e,C,C,n&&ls(pk(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:vs(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+qt(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&ZJ()==125)continue}switch(A+=xs(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(qt(A)-1)*v,v=1;break;case 64:Gt()===45&&(A+=ms(dt())),p=Gt(),d=u=qt(k=A+=n2(hs())),b++;break;case 45:m===45&&qt(A)==2&&(g=0)}}return o}function pk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=lp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=oo(e,u+1,u=WJ(g=a[m])),k=e;v<f;++v)(k=Xk(g>0?p[v]+" "+b:Y(b,/&\f/g,p[v])))&&(l[y++]=k);return Ts(e,t,r,i===0?ap:s,l,c,d)}function o2(e,t,r){return Ts(e,t,r,op,xs(XJ()),oo(e,2,-2),0)}function fk(e,t,r,n){return Ts(e,t,r,sp,oo(e,0,n),oo(e,n+1,-1),n)}function Cn(e,t){for(var r="",n=lp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function a2(e,t,r,n){switch(e.type){case $J:case sp:return e.return=e.return||e.value;case op:return"";case Qk:return e.return=e.value+"{"+Cn(e.children,n)+"}";case ap:e.value=e.props.join(",")}return qt(r=Cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function s2(e){var t=lp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function l2(e){return function(t){t.root||(t=t.return)&&e(t)}}function nA(e,t){switch(KJ(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Is+e+Be+e+e;case 6828:case 4268:return V+e+Be+e+e;case 6165:return V+e+Be+"flex-"+e+e;case 5187:return V+e+Y(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return V+e+Be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return V+e+Be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Be+Y(e,"shrink","negative")+e;case 5292:return V+e+Be+Y(e,"basis","preferred-size")+e;case 6060:return V+"box-"+Y(e,"-grow","")+V+e+Be+Y(e,"grow","positive")+e;case 4554:return V+Y(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Is+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vd(e,"stretch")?nA(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,qt(e)-3-(~Vd(e,"!important")&&10))){case 107:return Y(e,":",":"+V)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Me(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return V+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Be+e+e}return e}function oA(){if(vk)return cs.exports;vk=1;let e=oA();return cs.exports={default:e},cs.exports.default=e,cs.exports}function so(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function I2(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function k2(e){var t=(0,Jk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function lo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ut={name:i.name,styles:i.styles,next:Ut},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ut={name:a.name,styles:a.styles,next:Ut},a=a.next;var s=o.styles+";";return s}return x2(e,t,r)}case"function":{if(e!==void 0){var l=Ut,c=r(e);return Ut=l,lo(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function x2(e,t,r){var n="";if((0,ro.default)(r))for(var i=0;i<r.length;i++)n+=lo(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":gk(s)&&(n+=Ld(o)+":"+yk(o,s)+";")}else if((0,ro.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)gk(a[l])&&(n+=Ld(o)+":"+yk(o,a[l])+";");else{var c=lo(e,t,a);switch(o){case"animation":case"animationName":{n+=Ld(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function xr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ut=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=lo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=lo(r,t,e[s]),n){var l=o;i+=l[s]}_k.lastIndex=0;for(var c="",d;(d=_k.exec(i))!==null;)c+="-"+d[1];var u=I2(i)+c;return{name:u,styles:i,next:Ut}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return xr(t)}function U2(e,t,r){var n=[],i=so(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--J2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function fo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return Qr(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function oB(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function vA(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=oB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function aB(e){let t=()=>vA(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function cB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=lB(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(T({},a),{ref:c,className:i,children:r}))}function uB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(T({},i.props),{style:F(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(T({},e.props),{style:F(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function mB(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function Pk(e,t,r){return Ps.call(t,"css")?_(pp,uA(e,t),r):_(e,t,r)}function wB(e,t,r){return Ps.call(t,"css")?_(pp,uA(e,t),r):_(e,t,r)}function Qd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function kB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function xB({children:e,style:t}){return _("div",{style:`${AB.styles} ${t}`,children:[e,_("svg",{style:`${SB.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function GB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function OA(e){return(0,np.default)(e).call(e)}function BB(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function Xd(e,t){return(0,nr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function co(e,t,r){return(0,ip.default)(e).call(e,t,r)}function Ft(e){return e.length}function gp(e){return e.length}function ds(e,t){return t.push(e),e}function HB(e,t){return(0,no.default)(e).call(e,t).join("")}function qs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ms,column:Rn,length:a,return:""}}function Zi(e,t){return JB(qs("",null,null,"",null,null,0),e,{length:-e.length},t)}function VB(){return Ae}function $B(){return Ae=nt>0?qe(Ln,--nt):0,Rn--,Ae===10&&(Rn=1,Ms--),Ae}function pt(){return Ae=nt<PA?qe(Ln,nt++):0,Rn++,Ae===10&&(Rn=1,Ms++),Ae}function Bt(){return qe(Ln,nt)}function gs(){return nt}function ho(e,t){return co(Ln,e,t)}function uo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function RA(e){return Ms=Rn=1,PA=Ft(Ln=e),nt=0,[]}function NA(e){return Ln="",e}function ys(e){return OA(ho(nt-1,Zd(e===91?e+2:e===40?e+1:e)))}function WB(e){for(;(Ae=Bt())&&Ae<33;)pt();return uo(e)>2||uo(Ae)>3?"":" "}function zB(e,t){for(;--t&&pt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return ho(e,gs()+(t<6&&Bt()==32&&pt()==32))}function Zd(e){for(;pt();)switch(Ae){case e:return nt;case 34:case 39:e!==34&&e!==39&&Zd(Ae);break;case 40:e===41&&Zd(e);break;case 92:pt();break}return nt}function KB(e,t){for(;pt()&&e+Ae!==57&&!(e+Ae===84&&Bt()===47););return"/*"+ho(t,nt-1)+"*"+Ls(e===47?e:pt())}function YB(e){for(;!uo(Bt());)pt();return ho(e,nt)}function QB(e){return NA(_s("",null,null,null,[""],e=RA(e),0,[0],e))}function _s(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=pt()){case 40:if(m!=108&&qe(A,u-1)==58){Xd(A+=W(ys(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=ys(b);break;case 9:case 10:case 13:case 32:A+=WB(m);break;case 92:A+=zB(gs()-1,7);continue;case 47:switch(Bt()){case 42:case 47:ds(XB(KB(pt(),gs()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=Ft(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(A=W(A,/\f/g,"")),f>0&&Ft(A)-u&&ds(f>32?Nk(A+";",n,r,u-1):Nk(W(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(ds(C=Rk(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)_s(A,t,C,C,x,o,u,s,P);else switch(p===99&&qe(A,3)===110?100:p){case 100:case 108:case 109:case 115:_s(e,C,C,n&&ds(Rk(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:_s(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+Ft(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&$B()==125)continue}switch(A+=Ls(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ft(A)-1)*v,v=1;break;case 64:Bt()===45&&(A+=ys(pt())),p=Bt(),d=u=Ft(k=A+=YB(gs())),b++;break;case 45:m===45&&Ft(A)==2&&(g=0)}}return o}function Rk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=gp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=co(e,u+1,u=jB(g=a[m])),k=e;v<f;++v)(k=OA(g>0?p[v]+" "+b:W(b,/&\f/g,p[v])))&&(l[y++]=k);return qs(e,t,r,i===0?mp:s,l,c,d)}function XB(e,t,r){return qs(e,t,r,CA,Ls(VB()),co(e,2,-2),0)}function Nk(e,t,r,n){return qs(e,t,r,vp,co(e,0,n),co(e,n+1,-1),n)}function Tn(e,t){for(var r="",n=gp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function ZB(e,t,r,n){switch(e.type){case FB:if(e.children.length)break;case UB:case vp:return e.return=e.return||e.value;case CA:return"";case TA:return e.return=e.value+"{"+Tn(e.children,n)+"}";case mp:e.value=e.props.join(",")}return Ft(r=Tn(e.children,n))?e.return=e.value+"{"+r+"}":""}function e5(e){var t=gp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function t5(e){return function(t){t.root||(t=t.return)&&e(t)}}function DA(e,t){switch(GB(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+ks+e+He+e+e;case 6828:case 4268:return $+e+He+e+e;case 6165:return $+e+He+"flex-"+e+e;case 5187:return $+e+W(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return $+e+He+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return $+e+He+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+He+W(e,"shrink","negative")+e;case 5292:return $+e+He+W(e,"basis","preferred-size")+e;case 6060:return $+"box-"+W(e,"-grow","")+$+e+He+W(e,"grow","positive")+e;case 4554:return $+W(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+ks+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xd(e,"stretch")?DA(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Ft(e)-3-(~Xd(e,"!important")&&10))){case 107:return W(e,":",":"+$)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(qe(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+He+e+e}return e}function Lk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function jd(e,t,r){var n=[],i=so(e,n,r);return n.length<2?r:i+t(n)}function Uk(e){if(e==="top"){let t=0;LA.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Mk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Mk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+qk)})}else if(e==="center"){let t=0;MA.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+qk)})}}function mo(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield to.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),vr(_(y5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,to.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(vr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),to.release()))};return{show:i,hide:o,get isLoading(){return e}}}var ep,jk,Te,As,bs,jt,ws,ro,tp,nr,no,Jk,Gk,rp,np,ip,$7,Jd,On,ce,Dd,ik,io,Bk,Ee,ok,ak,sk,lk,ck,uk,dk,$k,ve,Lt,Mt,tr,xn,Sr,fs,GJ,Oe,BJ,Yk,Be,Is,V,op,ap,sp,$J,Qk,WJ,xs,zJ,Cs,Pn,Zk,rt,ke,Nn,c2,u2,d2,hk,p2,f2,h2,m2,v2,rA,g2,mk,y2,_2,b2,iA,cs,vk,w2,cp,Os,E2,A2,S2,aA,gk,Ld,yk,_k,Ut,C2,sA,lA,bk,Ps,up,cA,dp,Rs,T2,O2,P2,R2,N2,Wd,zd,uA,D2,pp,L2,wk,M2,q2,F2,j2,Md,Ik,qd,Ud,J2,Fd,G2,B2,H2,V2,$2,W2,z2,Ek,K2,Y2,Q2,kk,X2,Z2,eG,Ak,tG,rG,nG,Sk,iG,oG,aG,sG,lG,cG,uG,dG,pG,fG,hG,xk,mG,vG,gG,yG,_G,bG,wG,IG,EG,kG,AG,Ck,SG,xG,CG,TG,OG,PG,RG,NG,DG,LG,MG,qG,UG,FG,jG,JG,GG,BG,HG,VG,$G,WG,zG,KG,YG,QG,XG,ZG,eB,tB,rB,nB,dA,pA,fA,Kd,iB,hA,mA,Es,to,Tk,sB,Ns,lB,gA,yA,_A,dB,pB,fB,Yd,hB,bA,wA,Ds,fp,Dn,Ok,Ar,IA,Yr,vB,gB,yB,_B,bB,us,EA,hp,he,IB,EB,AB,SB,St,CB,TB,kA,AA,SA,xA,Cr,OB,PB,RB,NB,DB,LB,MB,qB,He,ks,$,CA,mp,vp,UB,TA,FB,jB,Ls,JB,Ms,Rn,PA,nt,Ae,Ln,r5,n5,i5,Dk,o5,a5,s5,l5,c5,u5,d5,p5,f5,h5,m5,v5,Mk,qk,LA,MA,Tr,Fk,g5,y5,W7,or=S(()=>{"use strict";un();ep=ie(Og(),1),jk=ie(jg(),1),Te=ie(Zg(),1),As=ie(hy(),1),bs=ie(Ey(),1),jt=ie(Jy(),1);Ra();Ra();ws=ie(A_(),1),ro=ie(R_(),1),tp=ie(zw(),1),nr=ie(i0(),1),no=ie(f0(),1),Jk=ie(b0(),1),Gk=ie(qI(),1),rp=ie(QI(),1),np=ie(hE(),1),ip=ie(AE(),1);Od();Od();$7=ie(GE(),1),Jd=ie(nk(),1),io=0,Bk=[],Ee=N,ok=Ee.__b,ak=Ee.__r,sk=Ee.diffed,lk=Ee.__c,ck=Ee.unmount,uk=Ee.__;Ee.__b=function(e){ce=null,ok&&ok(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),uk&&uk(e,t)},Ee.__r=function(e){var t,r,n;ak&&ak(e),On=0;var i=(ce=e.__c).__H;i&&(Dd===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,ps),(0,Te.default)(n=i.__h).call(n,Gd),i.__h=[],On=0)),Dd=ce},Ee.diffed=function(e){var t;sk&&sk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Bk.push(r)!==1&&ik===Ee.requestAnimationFrame||((ik=Ee.requestAnimationFrame)||UJ)(qJ)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Dd=ce=null},Ee.__c=function(e,t){(0,bs.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,ps),r.__h=(0,ep.default)(i=r.__h).call(i,function(o){return!o.__||Gd(o)})}catch(o){(0,bs.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ee.__e(o,r.__v)}}),lk&&lk(e,t)},Ee.unmount=function(e){var t;ck&&ck(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{ps(i)}catch(o){r=o}}),n.__H=void 0,r&&Ee.__e(r,n.__v))};dk=typeof requestAnimationFrame=="function";$k={exports:{}},ve=$k.exports={};(function(){try{typeof jt.default=="function"?Lt=jt.default:Lt=Bd}catch(e){Lt=Bd}try{typeof clearTimeout=="function"?Mt=clearTimeout:Mt=Hd}catch(e){Mt=Hd}})();tr=[],xn=!1,fs=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];tr.push(new Kk(e,t)),tr.length===1&&!xn&&Wk(zk)};Kk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=ir;ve.addListener=ir;ve.once=ir;ve.off=ir;ve.removeListener=ir;ve.removeAllListeners=ir;ve.emit=ir;ve.prependListener=ir;ve.prependOnceListener=ir;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};GJ=$k.exports,Oe=FJ(GJ),BJ=ws.default||void 0||self;Yk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(VJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=HJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Be="-ms-",Is="-moz-",V="-webkit-",op="comm",ap="rule",sp="decl",$J="@import",Qk="@keyframes",WJ=Math.abs,xs=String.fromCharCode,zJ=rp.default;Cs=1,Pn=1,Zk=0,rt=0,ke=0,Nn="";c2=function(e,t,r){for(var n=0,i=0;n=i,i=Gt(),n===38&&i===12&&(t[r]=1),!ao(i);)dt();return po(e,rt)},u2=function(e,t){var r=-1,n=44;do switch(ao(n)){case 0:n===38&&Gt()===12&&(t[r]=1),e[r]+=c2(rt-1,t,r);break;case 2:e[r]+=ms(n);break;case 4:if(n===44){e[++r]=Gt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=xs(n)}while(n=dt());return e},d2=function(e,t){return tA(u2(eA(e),t))},hk=new tp.default,p2=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!hk.get(r))&&!n){hk.set(e,!0);for(var i=[],o=d2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},f2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},h2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",m2=function(e){var t;return e.type==="comm"&&(0,nr.default)(t=e.children).call(t,h2)>-1},v2=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(m2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},rA=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},g2=function(e,t){for(var r=e-1;r>=0;r--)if(!rA(t[r]))return!0;return!1},mk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},y2=function(e,t,r){rA(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),mk(e)):g2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),mk(e)))};_2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case sp:e.return=nA(e.value,e.length);break;case Qk:return Cn([Xi(e,{value:Y(e.value,"@","@"+V)})],n);case ap:if(e.length)return QJ(e.props,function(i){switch(YJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([Xi(e,{props:[Y(i,/:(read-\w+)/,":"+Is+"$1")]})],n);case"::placeholder":return Cn([Xi(e,{props:[Y(i,/:(plac\w+)/,":"+V+"input-$1")]}),Xi(e,{props:[Y(i,/:(plac\w+)/,":"+Is+"$1")]}),Xi(e,{props:[Y(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},b2=[_2],iA=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
23
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var
|
|
24
|
-
`),r=0;r<t.length;r++){var n=
|
|
21
|
+
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return _(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Hm=C(()=>{"use strict";B()});var $m=C(()=>{"use strict"});var Vm=C(()=>{"use strict";P();_c()});var Wm=C(()=>{"use strict";B()});var ga,Uc=C(()=>{"use strict";$m();Vm();B();Wm();P();ga=new Dt});function Zt(e,t){for(var r in t)e[r]=t[r];return e}function Hc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ba.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return ya(e,a,n,i,null)}function ya(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Qm:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function vn(e,t){if(t==null)return e.__?vn(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?vn(e):null}function ng(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ng(e)}}function Gc(e){(!e.__d&&(e.__d=!0)&&zr.push(e)&&!_a.__r++||zm!==N.debounceRendering)&&((zm=N.debounceRendering)||Xm)(_a)}function _a(){for(var e,t,r,n,i,o,a,s=1;zr.length;)zr.length>s&&zr.sort(Zm),e=zr.shift(),s=zr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),$c(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?vn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ag(o,r,a),r.__e!=i&&ng(r)));_a.__r=0}function ig(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,v,y,g=n&&n.__k||rg,w=t.length;for(l=dR(r,t,g,l,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Ii:g[f.__i]||Ii,f.__i=u,y=$c(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Vc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||p.__k===f.__k?l=og(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=v,l}function dR(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ya(null,a,null,null,null):Ei(a)?ya(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ya(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=pR(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=vn(s)),lg(s,s));return n}function og(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=og(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=vn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Si(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ei(e)?e.some(function(r){Si(r,t)}):t.push(e)),t}function pR(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Km(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||uR.test(t)?r:r+"px"}function va(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Km(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Km(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(eg,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=Jc,e.addEventListener(t,o?jc:Fc,o)):e.removeEventListener(t,o?jc:Fc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ym(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Jc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function $c(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,v,y,g,w,S,A,R,T,k,O,G,Ye,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(g=t.props,w="prototype"in M&&M.prototype.render,S=(d=M.contextType)&&n[d.__c],A=d?S?S.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new M(g,A):(t.__c=u=new ct(g,A),u.constructor=M,u.render=hR),S&&S.sub(u),u.props=g,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Zt({},u.__s)),Zt(u.__s,M.getDerivedStateFromProps(g,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&M.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Pe){Pe&&(Pe.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,A),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=A,u.props=g,u.__P=e,u.__e=!1,T=N.__r,k=0,w){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=Zt(Zt({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),G=d,d!=null&&d.type===De&&d.key==null&&(G=sg(d.props.children)),s=ig(e,Ei(G)?G:[G],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Pe){if(t.__v=null,l||o!=null)if(Pe.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ye=o.length;Ye--;)Hc(o[Ye]);else t.__e=r.__e,t.__k=r.__k;N.__e(Pe,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=fR(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function ag(e,t,r){for(var n=0;n<r.length;n++)Vc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function sg(e){return typeof e!="object"||e==null?e:Ei(e)?e.map(sg):Zt({},e)}function fR(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,v,y=r.props,g=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(w==null)return document.createTextNode(g);e=document.createElementNS(i,w,g.is&&g),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(w===null)y===g||s&&e.data===g||(e.data=g);else{if(o=o&&ba.call(e.childNodes),y=r.props||Ii,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;va(e,c,null,f,i)}}for(c in g)f=g[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?v=f:s&&typeof f!="function"||y[c]===f||va(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ig(t.type==="template"?e.content:e,Ei(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&vn(r,0),s,l),o!=null)for(c=o.length;c--;)Hc(o[c]);s||(c="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||w=="progress"&&!m||w=="option"&&m!==y[c])&&va(e,c,m,y[c],i),c="checked",v!==void 0&&v!==e[c]&&va(e,c,v,y[c],i))}return e}function Vc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function lg(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Vc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&lg(n[i],t,r||typeof e.type!="function");r||Hc(e.__e),e.__c=e.__=e.__e=void 0}function hR(e,t,r){return this.constructor(e,r)}function kr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],$c(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||Ii,Ii,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ba.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),ag(o,e,a)}function Kr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,Gc(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+tg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ba,N,Qm,Bc,zr,zm,Xm,Zm,eg,Jc,Fc,jc,tg,Ii,rg,uR,Ei,yn=C(()=>{Ii={},rg=[],uR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ei=Array.isArray;ba=rg.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Qm=0,Bc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Zt({},this.state),typeof e=="function"&&(e=e(Zt({},r),this.props)),e&&Zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gc(this))},ct.prototype.render=De,zr=[],Xm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zm=function(e,t){return e.__v.__b-t.__v.__b},_a.__r=0,eg=/(PointerCapture)$|Capture$/i,Jc=0,Fc=Ym(!1),jc=Ym(!0),tg=0});var fe=h((pz,cg)=>{"use strict";cg.exports=function(e){try{return!!e()}catch(t){return!0}}});var _n=h((fz,ug)=>{"use strict";var mR=fe();ug.exports=!mR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ie=h((hz,fg)=>{"use strict";var dg=_n(),pg=Function.prototype,Wc=pg.call,gR=dg&&pg.bind.bind(Wc,Wc);fg.exports=dg?gR:function(e){return function(){return Wc.apply(e,arguments)}}});var Xe=h((mz,hg)=>{"use strict";var vR=Ie();hg.exports=vR({}.isPrototypeOf)});var he=h((zc,mg)=>{"use strict";var ki=function(e){return e&&e.Math===Math&&e};mg.exports=ki(typeof globalThis=="object"&&globalThis)||ki(typeof window=="object"&&window)||ki(typeof self=="object"&&self)||ki(typeof global=="object"&&global)||ki(typeof zc=="object"&&zc)||function(){return this}()||Function("return this")()});var Kc=h((gz,_g)=>{"use strict";var yR=_n(),yg=Function.prototype,gg=yg.apply,vg=yg.call;_g.exports=typeof Reflect=="object"&&Reflect.apply||(yR?vg.bind(gg):function(){return vg.apply(gg,arguments)})});var er=h((vz,wg)=>{"use strict";var bg=Ie(),_R=bg({}.toString),bR=bg("".slice);wg.exports=function(e){return bR(_R(e),8,-1)}});var Ci=h((yz,Ig)=>{"use strict";var wR=er(),IR=Ie();Ig.exports=function(e){if(wR(e)==="Function")return IR(e)}});var qe=h((_z,Eg)=>{"use strict";var Yc=typeof document=="object"&&document.all;Eg.exports=typeof Yc=="undefined"&&Yc!==void 0?function(e){return typeof e=="function"||e===Yc}:function(e){return typeof e=="function"}});var Ze=h((bz,Sg)=>{"use strict";var ER=fe();Sg.exports=!ER(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var St=h((wz,kg)=>{"use strict";var SR=_n(),wa=Function.prototype.call;kg.exports=SR?wa.bind(wa):function(){return wa.apply(wa,arguments)}});var Qc=h(xg=>{"use strict";var Cg={}.propertyIsEnumerable,Ag=Object.getOwnPropertyDescriptor,kR=Ag&&!Cg.call({1:2},1);xg.f=kR?function(t){var r=Ag(this,t);return!!r&&r.enumerable}:Cg});var Ai=h((Ez,Tg)=>{"use strict";Tg.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ia=h((Sz,Og)=>{"use strict";var CR=Ie(),AR=fe(),xR=er(),Xc=Object,TR=CR("".split);Og.exports=AR(function(){return!Xc("z").propertyIsEnumerable(0)})?function(e){return xR(e)==="String"?TR(e,""):Xc(e)}:Xc});var Yr=h((kz,Rg)=>{"use strict";Rg.exports=function(e){return e==null}});var Qr=h((Cz,Pg)=>{"use strict";var OR=Yr(),RR=TypeError;Pg.exports=function(e){if(OR(e))throw new RR("Can't call method on "+e);return e}});var Cr=h((Az,Ng)=>{"use strict";var PR=Ia(),NR=Qr();Ng.exports=function(e){return PR(NR(e))}});var xe=h((xz,Dg)=>{"use strict";var DR=qe();Dg.exports=function(e){return typeof e=="object"?e!==null:DR(e)}});var Lt=h((Tz,qg)=>{"use strict";qg.exports={}});var bn=h((Oz,Mg)=>{"use strict";var Zc=Lt(),eu=he(),qR=qe(),Lg=function(e){return qR(e)?e:void 0};Mg.exports=function(e,t){return arguments.length<2?Lg(Zc[e])||Lg(eu[e]):Zc[e]&&Zc[e][t]||eu[e]&&eu[e][t]}});var Ea=h((Rz,jg)=>{"use strict";var LR=he(),Ug=LR.navigator,Fg=Ug&&Ug.userAgent;jg.exports=Fg?String(Fg):""});var ka=h((Pz,Vg)=>{"use strict";var $g=he(),tu=Ea(),Gg=$g.process,Bg=$g.Deno,Jg=Gg&&Gg.versions||Bg&&Bg.version,Hg=Jg&&Jg.v8,kt,Sa;Hg&&(kt=Hg.split("."),Sa=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!Sa&&tu&&(kt=tu.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=tu.match(/Chrome\/(\d+)/),kt&&(Sa=+kt[1])));Vg.exports=Sa});var ru=h((Nz,zg)=>{"use strict";var Wg=ka(),MR=fe(),UR=he(),FR=UR.String;zg.exports=!!Object.getOwnPropertySymbols&&!MR(function(){var e=Symbol("symbol detection");return!FR(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wg&&Wg<41})});var nu=h((Dz,Kg)=>{"use strict";var jR=ru();Kg.exports=jR&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var iu=h((qz,Yg)=>{"use strict";var GR=bn(),BR=qe(),JR=Xe(),HR=nu(),$R=Object;Yg.exports=HR?function(e){return typeof e=="symbol"}:function(e){var t=GR("Symbol");return BR(t)&&JR(t.prototype,$R(e))}});var xi=h((Lz,Qg)=>{"use strict";var VR=String;Qg.exports=function(e){try{return VR(e)}catch(t){return"Object"}}});var Xr=h((Mz,Xg)=>{"use strict";var WR=qe(),zR=xi(),KR=TypeError;Xg.exports=function(e){if(WR(e))return e;throw new KR(zR(e)+" is not a function")}});var Ca=h((Uz,Zg)=>{"use strict";var YR=Xr(),QR=Yr();Zg.exports=function(e,t){var r=e[t];return QR(r)?void 0:YR(r)}});var tv=h((Fz,ev)=>{"use strict";var ou=St(),au=qe(),su=xe(),XR=TypeError;ev.exports=function(e,t){var r,n;if(t==="string"&&au(r=e.toString)&&!su(n=ou(r,e))||au(r=e.valueOf)&&!su(n=ou(r,e))||t!=="string"&&au(r=e.toString)&&!su(n=ou(r,e)))return n;throw new XR("Can't convert object to primitive value")}});var wn=h((jz,rv)=>{"use strict";rv.exports=!0});var ov=h((Gz,iv)=>{"use strict";var nv=he(),ZR=Object.defineProperty;iv.exports=function(e,t){try{ZR(nv,e,{value:t,configurable:!0,writable:!0})}catch(r){nv[e]=t}return t}});var Ti=h((Bz,lv)=>{"use strict";var eP=wn(),tP=he(),rP=ov(),av="__core-js_shared__",sv=lv.exports=tP[av]||rP(av,{});(sv.versions||(sv.versions=[])).push({version:"3.41.0",mode:eP?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var lu=h((Jz,uv)=>{"use strict";var cv=Ti();uv.exports=function(e,t){return cv[e]||(cv[e]=t||{})}});var In=h((Hz,dv)=>{"use strict";var nP=Qr(),iP=Object;dv.exports=function(e){return iP(nP(e))}});var ut=h(($z,pv)=>{"use strict";var oP=Ie(),aP=In(),sP=oP({}.hasOwnProperty);pv.exports=Object.hasOwn||function(t,r){return sP(aP(t),r)}});var Aa=h((Vz,fv)=>{"use strict";var lP=Ie(),cP=0,uP=Math.random(),dP=lP(1 .toString);fv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dP(++cP+uP,36)}});var He=h((Wz,mv)=>{"use strict";var pP=he(),fP=lu(),hv=ut(),hP=Aa(),mP=ru(),gP=nu(),En=pP.Symbol,cu=fP("wks"),vP=gP?En.for||En:En&&En.withoutSetter||hP;mv.exports=function(e){return hv(cu,e)||(cu[e]=mP&&hv(En,e)?En[e]:vP("Symbol."+e)),cu[e]}});var _v=h((zz,yv)=>{"use strict";var yP=St(),gv=xe(),vv=iu(),_P=Ca(),bP=tv(),wP=He(),IP=TypeError,EP=wP("toPrimitive");yv.exports=function(e,t){if(!gv(e)||vv(e))return e;var r=_P(e,EP),n;if(r){if(t===void 0&&(t="default"),n=yP(r,e,t),!gv(n)||vv(n))return n;throw new IP("Can't convert object to primitive value")}return t===void 0&&(t="number"),bP(e,t)}});var uu=h((Kz,bv)=>{"use strict";var SP=_v(),kP=iu();bv.exports=function(e){var t=SP(e,"string");return kP(t)?t:t+""}});var pu=h((Yz,Iv)=>{"use strict";var CP=he(),wv=xe(),du=CP.document,AP=wv(du)&&wv(du.createElement);Iv.exports=function(e){return AP?du.createElement(e):{}}});var fu=h((Qz,Ev)=>{"use strict";var xP=Ze(),TP=fe(),OP=pu();Ev.exports=!xP&&!TP(function(){return Object.defineProperty(OP("div"),"a",{get:function(){return 7}}).a!==7})});var hu=h(kv=>{"use strict";var RP=Ze(),PP=St(),NP=Qc(),DP=Ai(),qP=Cr(),LP=uu(),MP=ut(),UP=fu(),Sv=Object.getOwnPropertyDescriptor;kv.f=RP?Sv:function(t,r){if(t=qP(t),r=LP(r),UP)try{return Sv(t,r)}catch(n){}if(MP(t,r))return DP(!PP(NP.f,t,r),t[r])}});var Av=h((Zz,Cv)=>{"use strict";var FP=fe(),jP=qe(),GP=/#|\.prototype\./,Oi=function(e,t){var r=JP[BP(e)];return r===$P?!0:r===HP?!1:jP(t)?FP(t):!!t},BP=Oi.normalize=function(e){return String(e).replace(GP,".").toLowerCase()},JP=Oi.data={},HP=Oi.NATIVE="N",$P=Oi.POLYFILL="P";Cv.exports=Oi});var Ri=h((e6,Tv)=>{"use strict";var xv=Ci(),VP=Xr(),WP=_n(),zP=xv(xv.bind);Tv.exports=function(e,t){return VP(e),t===void 0?e:WP?zP(e,t):function(){return e.apply(t,arguments)}}});var mu=h((t6,Ov)=>{"use strict";var KP=Ze(),YP=fe();Ov.exports=KP&&YP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var tr=h((r6,Rv)=>{"use strict";var QP=xe(),XP=String,ZP=TypeError;Rv.exports=function(e){if(QP(e))return e;throw new ZP(XP(e)+" is not an object")}});var rr=h(Nv=>{"use strict";var e1=Ze(),t1=fu(),r1=mu(),xa=tr(),Pv=uu(),n1=TypeError,gu=Object.defineProperty,i1=Object.getOwnPropertyDescriptor,vu="enumerable",yu="configurable",_u="writable";Nv.f=e1?r1?function(t,r,n){if(xa(t),r=Pv(r),xa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&_u in n&&!n[_u]){var i=i1(t,r);i&&i[_u]&&(t[r]=n.value,n={configurable:yu in n?n[yu]:i[yu],enumerable:vu in n?n[vu]:i[vu],writable:!1})}return gu(t,r,n)}:gu:function(t,r,n){if(xa(t),r=Pv(r),xa(n),t1)try{return gu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new n1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Zr=h((i6,Dv)=>{"use strict";var o1=Ze(),a1=rr(),s1=Ai();Dv.exports=o1?function(e,t,r){return a1.f(e,t,s1(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((o6,Lv)=>{"use strict";var Pi=he(),l1=Kc(),c1=Ci(),u1=qe(),d1=hu().f,p1=Av(),Sn=Lt(),f1=Ri(),kn=Zr(),qv=ut();Ti();var h1=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return l1(e,this,arguments)};return t.prototype=e.prototype,t};Lv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Pi:i?Pi[r]:Pi[r]&&Pi[r].prototype,s=n?Sn:Sn[r]||kn(Sn,r,{})[r],l=s.prototype,c,d,u,p,f,m,v,y,g;for(p in t)c=p1(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&qv(a,p),m=s[p],d&&(e.dontCallGetSet?(g=d1(a,p),v=g&&g.value):v=a[p]),f=d&&v?v:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=f1(f,Pi):e.wrap&&d?y=h1(f):o&&u1(f)?y=c1(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&kn(y,"sham",!0),kn(s,p,y),o&&(u=r+"Prototype",qv(Sn,u)||kn(Sn,u,{}),kn(Sn[u],p,f),e.real&&l&&(c||!l[p])&&kn(l,p,f)))}});var Uv=h((a6,Mv)=>{"use strict";var m1=Math.ceil,g1=Math.floor;Mv.exports=Math.trunc||function(t){var r=+t;return(r>0?g1:m1)(r)}});var Ni=h((s6,Fv)=>{"use strict";var v1=Uv();Fv.exports=function(e){var t=+e;return t!==t||t===0?0:v1(t)}});var bu=h((l6,jv)=>{"use strict";var y1=Ni(),_1=Math.min;jv.exports=function(e){var t=y1(e);return t>0?_1(t,9007199254740991):0}});var Cn=h((c6,Gv)=>{"use strict";var b1=bu();Gv.exports=function(e){return b1(e.length)}});var Di=h((u6,Bv)=>{"use strict";var w1=er();Bv.exports=Array.isArray||function(t){return w1(t)==="Array"}});var Ta=h((d6,Hv)=>{"use strict";var I1=He(),E1=I1("toStringTag"),Jv={};Jv[E1]="z";Hv.exports=String(Jv)==="[object z]"});var An=h((p6,$v)=>{"use strict";var S1=Ta(),k1=qe(),Oa=er(),C1=He(),A1=C1("toStringTag"),x1=Object,T1=Oa(function(){return arguments}())==="Arguments",O1=function(e,t){try{return e[t]}catch(r){}};$v.exports=S1?Oa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=O1(t=x1(e),A1))=="string"?r:T1?Oa(t):(n=Oa(t))==="Object"&&k1(t.callee)?"Arguments":n}});var Wv=h((f6,Vv)=>{"use strict";var R1=Ie(),P1=qe(),wu=Ti(),N1=R1(Function.toString);P1(wu.inspectSource)||(wu.inspectSource=function(e){return N1(e)});Vv.exports=wu.inspectSource});var Eu=h((h6,Xv)=>{"use strict";var D1=Ie(),q1=fe(),zv=qe(),L1=An(),M1=bn(),U1=Wv(),Kv=function(){},Yv=M1("Reflect","construct"),Iu=/^\s*(?:class|function)\b/,F1=D1(Iu.exec),j1=!Iu.test(Kv),qi=function(t){if(!zv(t))return!1;try{return Yv(Kv,[],t),!0}catch(r){return!1}},Qv=function(t){if(!zv(t))return!1;switch(L1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return j1||!!F1(Iu,U1(t))}catch(r){return!0}};Qv.sham=!0;Xv.exports=!Yv||q1(function(){var e;return qi(qi.call)||!qi(Object)||!qi(function(){e=!0})||e})?Qv:qi});var ry=h((m6,ty)=>{"use strict";var Zv=Di(),G1=Eu(),B1=xe(),J1=He(),H1=J1("species"),ey=Array;ty.exports=function(e){var t;return Zv(e)&&(t=e.constructor,G1(t)&&(t===ey||Zv(t.prototype))?t=void 0:B1(t)&&(t=t[H1],t===null&&(t=void 0))),t===void 0?ey:t}});var Su=h((g6,ny)=>{"use strict";var $1=ry();ny.exports=function(e,t){return new($1(e))(t===0?0:t)}});var xr=h((v6,oy)=>{"use strict";var V1=Ri(),W1=Ie(),z1=Ia(),K1=In(),Y1=Cn(),Q1=Su(),iy=W1([].push),Ar=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=K1(l),f=z1(p),m=Y1(f),v=V1(c,d),y=0,g=u||Q1,w=t?g(l,m):r||a?g(l,0):void 0,S,A;m>y;y++)if((s||y in f)&&(S=f[y],A=v(S,y,p),e))if(t)w[y]=A;else if(A)switch(e){case 3:return!0;case 5:return S;case 6:return y;case 2:iy(w,S)}else switch(e){case 4:return!1;case 7:iy(w,S)}return o?-1:n||i?i:w}};oy.exports={forEach:Ar(0),map:Ar(1),filter:Ar(2),some:Ar(3),every:Ar(4),find:Ar(5),findIndex:Ar(6),filterReject:Ar(7)}});var Li=h((y6,ay)=>{"use strict";var X1=fe(),Z1=He(),eN=ka(),tN=Z1("species");ay.exports=function(e){return eN>=51||!X1(function(){var t=[],r=t.constructor={};return r[tN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var sy=h(()=>{"use strict";var rN=Z(),nN=xr().filter,iN=Li(),oN=iN("filter");rN({target:"Array",proto:!0,forced:!oN},{filter:function(t){return nN(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((w6,ly)=>{"use strict";var aN=he(),sN=Lt();ly.exports=function(e,t){var r=sN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=aN[e],o=i&&i.prototype;return o&&o[t]}});var uy=h((I6,cy)=>{"use strict";sy();var lN=_t();cy.exports=lN("Array","filter")});var py=h((E6,dy)=>{"use strict";var cN=Xe(),uN=uy(),ku=Array.prototype;dy.exports=function(e){var t=e.filter;return e===ku||cN(ku,e)&&t===ku.filter?uN:t}});var hy=h((S6,fy)=>{"use strict";var dN=py();fy.exports=dN});var gy=h((k6,my)=>{my.exports=hy()});var Mi=h((C6,vy)=>{"use strict";var pN=fe();vy.exports=function(e,t){var r=[][e];return!!r&&pN(function(){r.call(null,t||function(){return 1},1)})}});var yy=h(()=>{"use strict";var fN=Z(),hN=xr().every,mN=Mi(),gN=mN("every");fN({target:"Array",proto:!0,forced:!gN},{every:function(t){return hN(this,t,arguments.length>1?arguments[1]:void 0)}})});var by=h((T6,_y)=>{"use strict";yy();var vN=_t();_y.exports=vN("Array","every")});var Iy=h((O6,wy)=>{"use strict";var yN=Xe(),_N=by(),Cu=Array.prototype;wy.exports=function(e){var t=e.every;return e===Cu||yN(Cu,e)&&t===Cu.every?_N:t}});var Sy=h((R6,Ey)=>{"use strict";var bN=Iy();Ey.exports=bN});var Cy=h((P6,ky)=>{ky.exports=Sy()});var xy=h((N6,Ay)=>{"use strict";var wN=xr().forEach,IN=Mi(),EN=IN("forEach");Ay.exports=EN?[].forEach:function(t){return wN(this,t,arguments.length>1?arguments[1]:void 0)}});var Oy=h(()=>{"use strict";var SN=Z(),Ty=xy();SN({target:"Array",proto:!0,forced:[].forEach!==Ty},{forEach:Ty})});var Py=h((L6,Ry)=>{"use strict";Oy();var kN=_t();Ry.exports=kN("Array","forEach")});var Dy=h((M6,Ny)=>{"use strict";var CN=Py();Ny.exports=CN});var qy=h(()=>{});var My=h((j6,Ly)=>{"use strict";var AN=An(),xN=ut(),TN=Xe(),ON=Dy();qy();var Au=Array.prototype,RN={DOMTokenList:!0,NodeList:!0};Ly.exports=function(e){var t=e.forEach;return e===Au||TN(Au,e)&&t===Au.forEach||xN(RN,AN(e))?ON:t}});var Fy=h((G6,Uy)=>{Uy.exports=My()});var Gy=h((B6,jy)=>{"use strict";var PN=TypeError,NN=9007199254740991;jy.exports=function(e){if(e>NN)throw PN("Maximum allowed index exceeded");return e}});var xu=h((J6,By)=>{"use strict";var DN=Ze(),qN=rr(),LN=Ai();By.exports=function(e,t,r){DN?qN.f(e,t,LN(0,r)):e[t]=r}});var Vy=h(()=>{"use strict";var MN=Z(),UN=fe(),FN=Di(),jN=xe(),GN=In(),BN=Cn(),Jy=Gy(),Hy=xu(),JN=Su(),HN=Li(),$N=He(),VN=ka(),$y=$N("isConcatSpreadable"),WN=VN>=51||!UN(function(){var e=[];return e[$y]=!1,e.concat()[0]!==e}),zN=function(e){if(!jN(e))return!1;var t=e[$y];return t!==void 0?!!t:FN(e)},KN=!WN||!HN("concat");MN({target:"Array",proto:!0,arity:1,forced:KN},{concat:function(t){var r=GN(this),n=JN(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],zN(c))for(l=BN(c),Jy(i+l),a=0;a<l;a++,i++)a in c&&Hy(n,i,c[a]);else Jy(i+1),Hy(n,i++,c);return n.length=i,n}})});var zy=h((V6,Wy)=>{"use strict";Vy();var YN=_t();Wy.exports=YN("Array","concat")});var Yy=h((W6,Ky)=>{"use strict";var QN=Xe(),XN=zy(),Tu=Array.prototype;Ky.exports=function(e){var t=e.concat;return e===Tu||QN(Tu,e)&&t===Tu.concat?XN:t}});var Xy=h((z6,Qy)=>{"use strict";var ZN=Yy();Qy.exports=ZN});var e_=h((K6,Zy)=>{Zy.exports=Xy()});var t_=h(()=>{"use strict";var eD=Z(),tD=xr().some,rD=Mi(),nD=rD("some");eD({target:"Array",proto:!0,forced:!nD},{some:function(t){return tD(this,t,arguments.length>1?arguments[1]:void 0)}})});var n_=h((X6,r_)=>{"use strict";t_();var iD=_t();r_.exports=iD("Array","some")});var o_=h((Z6,i_)=>{"use strict";var oD=Xe(),aD=n_(),Ou=Array.prototype;i_.exports=function(e){var t=e.some;return e===Ou||oD(Ou,e)&&t===Ou.some?aD:t}});var s_=h((e8,a_)=>{"use strict";var sD=o_();a_.exports=sD});var c_=h((t8,l_)=>{l_.exports=s_()});var d_=h((r8,u_)=>{"use strict";var Ui=he(),lD=Ea(),cD=er(),Ra=function(e){return lD.slice(0,e.length)===e};u_.exports=function(){return Ra("Bun/")?"BUN":Ra("Cloudflare-Workers")?"CLOUDFLARE":Ra("Deno/")?"DENO":Ra("Node.js/")?"NODE":Ui.Bun&&typeof Bun.version=="string"?"BUN":Ui.Deno&&typeof Deno.version=="object"?"DENO":cD(Ui.process)==="process"?"NODE":Ui.window&&Ui.document?"BROWSER":"REST"}()});var Fi=h((n8,p_)=>{"use strict";var uD=Ie();p_.exports=uD([].slice)});var h_=h((i8,f_)=>{"use strict";var dD=TypeError;f_.exports=function(e,t){if(e<t)throw new dD("Not enough arguments");return e}});var Ru=h((o8,g_)=>{"use strict";var m_=he(),pD=Kc(),fD=qe(),hD=d_(),mD=Ea(),gD=Fi(),vD=h_(),yD=m_.Function,_D=/MSIE .\./.test(mD)||hD==="BUN"&&function(){var e=m_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();g_.exports=function(e,t){var r=t?2:1;return _D?function(n,i){var o=vD(arguments.length,1)>r,a=fD(n)?n:yD(n),s=o?gD(arguments,r):[],l=o?function(){pD(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var __=h(()=>{"use strict";var bD=Z(),y_=he(),wD=Ru(),v_=wD(y_.setInterval,!0);bD({global:!0,bind:!0,forced:y_.setInterval!==v_},{setInterval:v_})});var I_=h(()=>{"use strict";var ID=Z(),w_=he(),ED=Ru(),b_=ED(w_.setTimeout,!0);ID({global:!0,bind:!0,forced:w_.setTimeout!==b_},{setTimeout:b_})});var E_=h(()=>{"use strict";__();I_()});var k_=h((p8,S_)=>{"use strict";E_();var SD=Lt();S_.exports=SD.setTimeout});var A_=h((f8,C_)=>{C_.exports=k_()});function Gi(e,t){ge.__h&&ge.__h(oe,e,ji||t),ji=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Na(e){return ji=1,M_(U_,e)}function M_(e,t,r){var n=Gi(en++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):U_(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Bi(e,t){var r=Gi(en++,3);!ge.__s&&Du(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function xn(e,t){var r=Gi(en++,4);!ge.__s&&Du(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function Ji(e){return ji=5,Hi(function(){return{current:e}},[])}function Hi(e,t){var r=Gi(en++,7);return Du(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tn(e,t){return ji=8,Hi(function(){return e},t)}function On(e){var t=oe.context[e.__c],r=Gi(en++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function kD(){for(var e;e=L_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pa),e.__H.__h.forEach(Nu),e.__H.__h=[]}catch(t){e.__H.__h=[],ge.__e(t,e.__v)}}function CD(e){var t,r=function(){clearTimeout(n),q_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);q_&&(t=requestAnimationFrame(r))}function Pa(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function Nu(e){var t=oe;e.__c=e.__(),oe=t}function Du(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function U_(e,t){return typeof t=="function"?t(e):t}var en,oe,Pu,x_,ji,L_,ge,T_,O_,R_,P_,N_,D_,q_,qu=C(()=>{yn();ji=0,L_=[],ge=N,T_=ge.__b,O_=ge.__r,R_=ge.diffed,P_=ge.__c,N_=ge.unmount,D_=ge.__;ge.__b=function(e){oe=null,T_&&T_(e)},ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),D_&&D_(e,t)},ge.__r=function(e){O_&&O_(e),en=0;var t=(oe=e.__c).__H;t&&(Pu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Pa),t.__h.forEach(Nu),t.__h=[],en=0)),Pu=oe},ge.diffed=function(e){R_&&R_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(L_.push(t)!==1&&x_===ge.requestAnimationFrame||((x_=ge.requestAnimationFrame)||CD)(kD)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Pu=oe=null},ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Pa),r.__h=r.__h.filter(function(n){return!n.__||Nu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ge.__e(n,r.__v)}}),P_&&P_(e,t)},ge.unmount=function(e){N_&&N_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Pa(n)}catch(i){t=i}}),r.__H=void 0,t&&ge.__e(t,r.__v))};q_=typeof requestAnimationFrame=="function"});function z_(e,t){for(var r in t)e[r]=t[r];return e}function Mu(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function F_(e,t){this.props=e,this.context=t}function Fu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Mu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function ju(e){function t(r){var n=z_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=AD,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function K_(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=z_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return K_(n,t,r)})),e}function Y_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Y_(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Lu(){this.__u=0,this.o=null,this.__b=null}function Q_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Da(){this.i=null,this.l=null}function Gu(e,t,r){return t.__k==null&&(t.textContent=""),kr(e,t),typeof r=="function"&&r(),e?e.__c:null}function qD(){}function LD(){return this.cancelBubble}function MD(){return this.defaultPrevented}var Uu,j_,AD,xD,G_,B_,TD,OD,RD,PD,ND,DD,J_,X_,UD,H_,$_,V_,qa=C(()=>{yn();yn();qu();qu();Uu=xn;(F_.prototype=new ct).isPureReactComponent=!0,F_.prototype.shouldComponentUpdate=function(e,t){return Mu(this.props,e)||Mu(this.state,t)};j_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),j_&&j_(e)};AD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;xD=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}xD(e,t,r,n)};G_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),G_&&G_(e)},(Lu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Q_(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Y_(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Lu.prototype.componentWillUnmount=function(){this.o=[]},Lu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=K_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};B_=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(Da.prototype=new ct).__a=function(e){var t=this,r=Q_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),B_(t,e,n)):i()};r?r(o):o()}},Da.prototype.render=function(e){this.i=null,this.l=new Map;var t=Si(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Da.prototype.componentDidUpdate=Da.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){B_(e,r,t)})};TD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,OD=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,RD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,PD=/[A-Z0-9]/g,ND=typeof document!="undefined",DD=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});J_=N.event;N.event=function(e){return J_&&(e=J_(e)),e.persist=qD,e.isPropagationStopped=LD,e.isDefaultPrevented=MD,e.nativeEvent=e};UD={enumerable:!1,configurable:!0,get:function(){return this.class}},H_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||ND&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||DD(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":RD.test(a)&&(a=l):l=a="oninput":o&&OD.test(a)?a=a.replace(PD,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Si(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Si(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",UD)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=TD,H_&&H_(e)};$_=N.__r;N.__r=function(e){$_&&$_(e),X_=e.__c};V_=N.diffed;N.diffed=function(e){V_&&V_(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),X_=null}});var Ju=h(()=>{"use strict";var jD=Z(),Bu=he();jD({global:!0,forced:Bu.globalThis!==Bu},{globalThis:Bu})});var Z_=h(()=>{"use strict";Ju()});var tb=h((T8,eb)=>{"use strict";Ju();eb.exports=he()});var nb=h((O8,rb)=>{"use strict";var GD=tb();rb.exports=GD});var ob=h((R8,ib)=>{"use strict";var BD=nb();ib.exports=BD});var sb=h((P8,ab)=>{"use strict";Z_();var JD=ob();ab.exports=JD});var cb=h((N8,lb)=>{"use strict";lb.exports=sb()});var db=h((D8,ub)=>{ub.exports=cb()});var pb=h(()=>{"use strict";var HD=Z(),$D=Di();HD({target:"Array",stat:!0},{isArray:$D})});var hb=h((M8,fb)=>{"use strict";pb();var VD=Lt();fb.exports=VD.Array.isArray});var gb=h((U8,mb)=>{"use strict";var WD=hb();mb.exports=WD});var yb=h((F8,vb)=>{vb.exports=gb()});var bb=h((j8,_b)=>{"use strict";_b.exports=function(){}});var tn=h((G8,wb)=>{"use strict";wb.exports={}});var Hu=h((B8,Eb)=>{"use strict";var zD=he(),KD=qe(),Ib=zD.WeakMap;Eb.exports=KD(Ib)&&/native code/.test(String(Ib))});var La=h((J8,kb)=>{"use strict";var YD=lu(),QD=Aa(),Sb=YD("keys");kb.exports=function(e){return Sb[e]||(Sb[e]=QD(e))}});var $i=h((H8,Cb)=>{"use strict";Cb.exports={}});var nn=h(($8,Tb)=>{"use strict";var XD=Hu(),xb=he(),ZD=xe(),eq=Zr(),$u=ut(),Vu=Ti(),tq=La(),rq=$i(),Ab="Object already initialized",Wu=xb.TypeError,nq=xb.WeakMap,Ma,Vi,Ua,iq=function(e){return Ua(e)?Vi(e):Ma(e,{})},oq=function(e){return function(t){var r;if(!ZD(t)||(r=Vi(t)).type!==e)throw new Wu("Incompatible receiver, "+e+" required");return r}};XD||Vu.state?(Ct=Vu.state||(Vu.state=new nq),Ct.get=Ct.get,Ct.has=Ct.has,Ct.set=Ct.set,Ma=function(e,t){if(Ct.has(e))throw new Wu(Ab);return t.facade=e,Ct.set(e,t),t},Vi=function(e){return Ct.get(e)||{}},Ua=function(e){return Ct.has(e)}):(rn=tq("state"),rq[rn]=!0,Ma=function(e,t){if($u(e,rn))throw new Wu(Ab);return t.facade=e,eq(e,rn,t),t},Vi=function(e){return $u(e,rn)?e[rn]:{}},Ua=function(e){return $u(e,rn)});var Ct,rn;Tb.exports={set:Ma,get:Vi,has:Ua,enforce:iq,getterFor:oq}});var Yu=h((V8,Rb)=>{"use strict";var zu=Ze(),aq=ut(),Ob=Function.prototype,sq=zu&&Object.getOwnPropertyDescriptor,Ku=aq(Ob,"name"),lq=Ku&&(function(){}).name==="something",cq=Ku&&(!zu||zu&&sq(Ob,"name").configurable);Rb.exports={EXISTS:Ku,PROPER:lq,CONFIGURABLE:cq}});var Qu=h((W8,Pb)=>{"use strict";var uq=Ni(),dq=Math.max,pq=Math.min;Pb.exports=function(e,t){var r=uq(e);return r<0?dq(r+t,0):pq(r,t)}});var Xu=h((z8,Db)=>{"use strict";var fq=Cr(),hq=Qu(),mq=Cn(),Nb=function(e){return function(t,r,n){var i=fq(t),o=mq(i);if(o===0)return!e&&-1;var a=hq(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};Db.exports={includes:Nb(!0),indexOf:Nb(!1)}});var ed=h((K8,Lb)=>{"use strict";var gq=Ie(),Zu=ut(),vq=Cr(),yq=Xu().indexOf,_q=$i(),qb=gq([].push);Lb.exports=function(e,t){var r=vq(e),n=0,i=[],o;for(o in r)!Zu(_q,o)&&Zu(r,o)&&qb(i,o);for(;t.length>n;)Zu(r,o=t[n++])&&(~yq(i,o)||qb(i,o));return i}});var Fa=h((Y8,Mb)=>{"use strict";Mb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var td=h((Q8,Ub)=>{"use strict";var bq=ed(),wq=Fa();Ub.exports=Object.keys||function(t){return bq(t,wq)}});var jb=h(Fb=>{"use strict";var Iq=Ze(),Eq=mu(),Sq=rr(),kq=tr(),Cq=Cr(),Aq=td();Fb.f=Iq&&!Eq?Object.defineProperties:function(t,r){kq(t);for(var n=Cq(r),i=Aq(r),o=i.length,a=0,s;o>a;)Sq.f(t,s=i[a++],n[s]);return t}});var Bb=h((Z8,Gb)=>{"use strict";var xq=bn();Gb.exports=xq("document","documentElement")});var Wi=h((eK,Kb)=>{"use strict";var Tq=tr(),Oq=jb(),Jb=Fa(),Rq=$i(),Pq=Bb(),Nq=pu(),Dq=La(),Hb=">",$b="<",nd="prototype",id="script",Wb=Dq("IE_PROTO"),rd=function(){},zb=function(e){return $b+id+Hb+e+$b+"/"+id+Hb},Vb=function(e){e.write(zb("")),e.close();var t=e.parentWindow.Object;return e=null,t},qq=function(){var e=Nq("iframe"),t="java"+id+":",r;return e.style.display="none",Pq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(zb("document.F=Object")),r.close(),r.F},ja,Ga=function(){try{ja=new ActiveXObject("htmlfile")}catch(t){}Ga=typeof document!="undefined"?document.domain&&ja?Vb(ja):qq():Vb(ja);for(var e=Jb.length;e--;)delete Ga[nd][Jb[e]];return Ga()};Rq[Wb]=!0;Kb.exports=Object.create||function(t,r){var n;return t!==null?(rd[nd]=Tq(t),n=new rd,rd[nd]=null,n[Wb]=t):n=Ga(),r===void 0?n:Oq.f(n,r)}});var Qb=h((tK,Yb)=>{"use strict";var Lq=fe();Yb.exports=!Lq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ad=h((rK,Zb)=>{"use strict";var Mq=ut(),Uq=qe(),Fq=In(),jq=La(),Gq=Qb(),Xb=jq("IE_PROTO"),od=Object,Bq=od.prototype;Zb.exports=Gq?od.getPrototypeOf:function(e){var t=Fq(e);if(Mq(t,Xb))return t[Xb];var r=t.constructor;return Uq(r)&&t instanceof r?r.prototype:t instanceof od?Bq:null}});var Ba=h((nK,ew)=>{"use strict";var Jq=Zr();ew.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Jq(e,t,r),e}});var ud=h((iK,nw)=>{"use strict";var Hq=fe(),$q=qe(),Vq=xe(),Wq=Wi(),tw=ad(),zq=Ba(),Kq=He(),Yq=wn(),cd=Kq("iterator"),rw=!1,nr,sd,ld;[].keys&&(ld=[].keys(),"next"in ld?(sd=tw(tw(ld)),sd!==Object.prototype&&(nr=sd)):rw=!0);var Qq=!Vq(nr)||Hq(function(){var e={};return nr[cd].call(e)!==e});Qq?nr={}:Yq&&(nr=Wq(nr));$q(nr[cd])||zq(nr,cd,function(){return this});nw.exports={IteratorPrototype:nr,BUGGY_SAFARI_ITERATORS:rw}});var ow=h((oK,iw)=>{"use strict";var Xq=Ta(),Zq=An();iw.exports=Xq?{}.toString:function(){return"[object "+Zq(this)+"]"}});var zi=h((aK,sw)=>{"use strict";var eL=Ta(),tL=rr().f,rL=Zr(),nL=ut(),iL=ow(),oL=He(),aw=oL("toStringTag");sw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(nL(i,aw)||tL(i,aw,{configurable:!0,value:t}),n&&!eL&&rL(i,"toString",iL))}});var cw=h((sK,lw)=>{"use strict";var aL=ud().IteratorPrototype,sL=Wi(),lL=Ai(),cL=zi(),uL=tn(),dL=function(){return this};lw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=sL(aL,{next:lL(+!n,r)}),cL(e,i,!1,!0),uL[i]=dL,e}});var dw=h((lK,uw)=>{"use strict";var pL=Ie(),fL=Xr();uw.exports=function(e,t,r){try{return pL(fL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var fw=h((cK,pw)=>{"use strict";var hL=xe();pw.exports=function(e){return hL(e)||e===null}});var mw=h((uK,hw)=>{"use strict";var mL=fw(),gL=String,vL=TypeError;hw.exports=function(e){if(mL(e))return e;throw new vL("Can't set "+gL(e)+" as a prototype")}});var vw=h((dK,gw)=>{"use strict";var yL=dw(),_L=xe(),bL=Qr(),wL=mw();gw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=yL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return bL(i),wL(o),_L(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var $a=h((pK,Aw)=>{"use strict";var IL=Z(),EL=St(),Ja=wn(),kw=Yu(),SL=qe(),kL=cw(),yw=ad(),_w=vw(),CL=zi(),AL=Zr(),dd=Ba(),xL=He(),bw=tn(),Cw=ud(),TL=kw.PROPER,OL=kw.CONFIGURABLE,ww=Cw.IteratorPrototype,Ha=Cw.BUGGY_SAFARI_ITERATORS,Ki=xL("iterator"),Iw="keys",Yi="values",Ew="entries",Sw=function(){return this};Aw.exports=function(e,t,r,n,i,o,a){kL(r,t,n);var s=function(g){if(g===i&&p)return p;if(!Ha&&g&&g in d)return d[g];switch(g){case Iw:return function(){return new r(this,g)};case Yi:return function(){return new r(this,g)};case Ew:return function(){return new r(this,g)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ki]||d["@@iterator"]||i&&d[i],p=!Ha&&u||s(i),f=t==="Array"&&d.entries||u,m,v,y;if(f&&(m=yw(f.call(new e)),m!==Object.prototype&&m.next&&(!Ja&&yw(m)!==ww&&(_w?_w(m,ww):SL(m[Ki])||dd(m,Ki,Sw)),CL(m,l,!0,!0),Ja&&(bw[l]=Sw))),TL&&i===Yi&&u&&u.name!==Yi&&(!Ja&&OL?AL(d,"name",Yi):(c=!0,p=function(){return EL(u,this)})),i)if(v={values:s(Yi),keys:o?p:s(Iw),entries:s(Ew)},a)for(y in v)(Ha||c||!(y in d))&&dd(d,y,v[y]);else IL({target:t,proto:!0,forced:Ha||c},v);return(!Ja||a)&&d[Ki]!==p&&dd(d,Ki,p,{name:i}),bw[t]=p,v}});var Va=h((fK,xw)=>{"use strict";xw.exports=function(e,t){return{value:e,done:t}}});var za=h((hK,Nw)=>{"use strict";var RL=Cr(),pd=bb(),Tw=tn(),Rw=nn(),PL=rr().f,NL=$a(),Wa=Va(),DL=wn(),qL=Ze(),Pw="Array Iterator",LL=Rw.set,ML=Rw.getterFor(Pw);Nw.exports=NL(Array,"Array",function(e,t){LL(this,{type:Pw,target:RL(e),index:0,kind:t})},function(){var e=ML(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Wa(void 0,!0);switch(e.kind){case"keys":return Wa(r,!1);case"values":return Wa(t[r],!1)}return Wa([r,t[r]],!1)},"values");var Ow=Tw.Arguments=Tw.Array;pd("keys");pd("values");pd("entries");if(!DL&&qL&&Ow.name!=="values")try{PL(Ow,"name",{value:"values"})}catch(e){}});var fd=h(()=>{});var hd=h((vK,Dw)=>{"use strict";var UL=fe();Dw.exports=!UL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ka=h((yK,qw)=>{"use strict";var FL=Ba();qw.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:FL(e,n,t[n],r);return e}});var md=h(Lw=>{"use strict";var jL=ed(),GL=Fa(),BL=GL.concat("length","prototype");Lw.f=Object.getOwnPropertyNames||function(t){return jL(t,BL)}});var jw=h((bK,Fw)=>{"use strict";var JL=er(),HL=Cr(),Mw=md().f,$L=Fi(),Uw=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],VL=function(e){try{return Mw(e)}catch(t){return $L(Uw)}};Fw.exports.f=function(t){return Uw&&JL(t)==="Window"?VL(t):Mw(HL(t))}});var Bw=h((wK,Gw)=>{"use strict";var WL=fe();Gw.exports=WL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var $w=h((IK,Hw)=>{"use strict";var zL=fe(),KL=xe(),YL=er(),Jw=Bw(),Ya=Object.isExtensible,QL=zL(function(){Ya(1)});Hw.exports=QL||Jw?function(t){return!KL(t)||Jw&&YL(t)==="ArrayBuffer"?!1:Ya?Ya(t):!0}:Ya});var Qi=h((EK,zw)=>{"use strict";var XL=Z(),ZL=Ie(),eM=$i(),tM=xe(),gd=ut(),rM=rr().f,Vw=md(),nM=jw(),vd=$w(),iM=Aa(),oM=hd(),Ww=!1,ir=iM("meta"),aM=0,yd=function(e){rM(e,ir,{value:{objectID:"O"+aM++,weakData:{}}})},sM=function(e,t){if(!tM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!gd(e,ir)){if(!vd(e))return"F";if(!t)return"E";yd(e)}return e[ir].objectID},lM=function(e,t){if(!gd(e,ir)){if(!vd(e))return!0;if(!t)return!1;yd(e)}return e[ir].weakData},cM=function(e){return oM&&Ww&&vd(e)&&!gd(e,ir)&&yd(e),e},uM=function(){dM.enable=function(){},Ww=!0;var e=Vw.f,t=ZL([].splice),r={};r[ir]=1,e(r).length&&(Vw.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===ir){t(i,o,1);break}return i},XL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nM.f}))},dM=zw.exports={enable:uM,fastKey:sM,getWeakData:lM,onFreeze:cM};eM[ir]=!0});var Yw=h((SK,Kw)=>{"use strict";var pM=He(),fM=tn(),hM=pM("iterator"),mM=Array.prototype;Kw.exports=function(e){return e!==void 0&&(fM.Array===e||mM[hM]===e)}});var _d=h((kK,Xw)=>{"use strict";var gM=An(),Qw=Ca(),vM=Yr(),yM=tn(),_M=He(),bM=_M("iterator");Xw.exports=function(e){if(!vM(e))return Qw(e,bM)||Qw(e,"@@iterator")||yM[gM(e)]}});var eI=h((CK,Zw)=>{"use strict";var wM=St(),IM=Xr(),EM=tr(),SM=xi(),kM=_d(),CM=TypeError;Zw.exports=function(e,t){var r=arguments.length<2?kM(e):t;if(IM(r))return EM(wM(r,e));throw new CM(SM(e)+" is not iterable")}});var Qa=h((AK,rI)=>{"use strict";var AM=St(),tI=tr(),xM=Ca();rI.exports=function(e,t,r){var n,i;tI(e);try{if(n=xM(e,"return"),!n){if(t==="throw")throw r;return r}n=AM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return tI(n),r}});var Za=h((xK,aI)=>{"use strict";var TM=Ri(),OM=St(),RM=tr(),PM=xi(),NM=Yw(),DM=Cn(),nI=Xe(),qM=eI(),LM=_d(),iI=Qa(),MM=TypeError,Xa=function(e,t){this.stopped=e,this.result=t},oI=Xa.prototype;aI.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=TM(t,n),c,d,u,p,f,m,v,y=function(w){return c&&iI(c,"normal",w),new Xa(!0,w)},g=function(w){return i?(RM(w),s?l(w[0],w[1],y):l(w[0],w[1])):s?l(w,y):l(w)};if(o)c=e.iterator;else if(a)c=e;else{if(d=LM(e),!d)throw new MM(PM(e)+" is not iterable");if(NM(d)){for(u=0,p=DM(e);p>u;u++)if(f=g(e[u]),f&&nI(oI,f))return f;return new Xa(!1)}c=qM(e,d)}for(m=o?e.next:c.next;!(v=OM(m,c)).done;){try{f=g(v.value)}catch(w){iI(c,"throw",w)}if(typeof f=="object"&&f&&nI(oI,f))return f}return new Xa(!1)}});var es=h((TK,sI)=>{"use strict";var UM=Xe(),FM=TypeError;sI.exports=function(e,t){if(UM(t,e))return e;throw new FM("Incorrect invocation")}});var bd=h((OK,cI)=>{"use strict";var jM=Z(),GM=he(),BM=Qi(),JM=fe(),HM=Zr(),$M=Za(),VM=es(),WM=qe(),zM=xe(),KM=Yr(),YM=zi(),QM=rr().f,XM=xr().forEach,ZM=Ze(),lI=nn(),eU=lI.set,tU=lI.getterFor;cI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=GM[e],s=a&&a.prototype,l={},c;if(!ZM||!WM(a)||!(i||s.forEach&&!JM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),BM.enable();else{c=t(function(p,f){eU(VM(p,d),{type:e,collection:new a}),KM(f)||$M(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=tU(e);XM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&HM(d,p,function(m,v){var y=u(this).collection;if(!f&&i&&!zM(m))return p==="get"?void 0:!1;var g=y[p](m===0?0:m,v);return f?this:g})}),i||QM(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return YM(c,e,!1,!0),l[e]=c,jM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var gI=h((RK,mI)=>{"use strict";var rU=Ie(),uI=Ka(),ts=Qi().getWeakData,nU=es(),iU=tr(),oU=Yr(),wd=xe(),aU=Za(),pI=xr(),dI=ut(),fI=nn(),sU=fI.set,lU=fI.getterFor,cU=pI.find,uU=pI.findIndex,dU=rU([].splice),pU=0,rs=function(e){return e.frozen||(e.frozen=new hI)},hI=function(){this.entries=[]},Id=function(e,t){return cU(e.entries,function(r){return r[0]===t})};hI.prototype={get:function(e){var t=Id(this,e);if(t)return t[1]},has:function(e){return!!Id(this,e)},set:function(e,t){var r=Id(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=uU(this.entries,function(r){return r[0]===e});return~t&&dU(this.entries,t,1),!!~t}};mI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){nU(l,o),sU(l,{type:t,id:pU++,frozen:null}),oU(c)||aU(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=lU(t),s=function(l,c,d){var u=a(l),p=ts(iU(c),!0);return p===!0?rs(u).set(c,d):p[u.id]=d,l};return uI(o,{delete:function(l){var c=a(this);if(!wd(l))return!1;var d=ts(l);return d===!0?rs(c).delete(l):d&&dI(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!wd(c))return!1;var u=ts(c);return u===!0?rs(d).has(c):u&&dI(u,d.id)}}),uI(o,r?{get:function(c){var d=a(this);if(wd(c)){var u=ts(c);if(u===!0)return rs(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var SI=h(()=>{"use strict";var fU=hd(),vI=he(),as=Ie(),yI=Ka(),hU=Qi(),mU=bd(),_I=gI(),ns=xe(),is=nn().enforce,gU=fe(),vU=Hu(),eo=Object,yU=Array.isArray,os=eo.isExtensible,bI=eo.isFrozen,_U=eo.isSealed,wI=eo.freeze,bU=eo.seal,wU=!vI.ActiveXObject&&"ActiveXObject"in vI,Xi,II=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EI=mU("WeakMap",II,_I),Rn=EI.prototype,ss=as(Rn.set),IU=function(){return fU&&gU(function(){var e=wI([]);return ss(new EI,e,1),!bI(e)})};vU&&(wU?(Xi=_I.getConstructor(II,"WeakMap",!0),hU.enable(),Ed=as(Rn.delete),Zi=as(Rn.has),Sd=as(Rn.get),yI(Rn,{delete:function(e){if(ns(e)&&!os(e)){var t=is(this);return t.frozen||(t.frozen=new Xi),Ed(this,e)||t.frozen.delete(e)}return Ed(this,e)},has:function(t){if(ns(t)&&!os(t)){var r=is(this);return r.frozen||(r.frozen=new Xi),Zi(this,t)||r.frozen.has(t)}return Zi(this,t)},get:function(t){if(ns(t)&&!os(t)){var r=is(this);return r.frozen||(r.frozen=new Xi),Zi(this,t)?Sd(this,t):r.frozen.get(t)}return Sd(this,t)},set:function(t,r){if(ns(t)&&!os(t)){var n=is(this);n.frozen||(n.frozen=new Xi),Zi(this,t)?ss(this,t,r):n.frozen.set(t,r)}else ss(this,t,r);return this}})):IU()&&yI(Rn,{set:function(t,r){var n;return yU(t)&&(bI(t)?n=wI:_U(t)&&(n=bU)),ss(this,t,r),n&&n(t),this}}));var Ed,Zi,Sd});var kI=h(()=>{"use strict";SI()});var AI=h((LK,CI)=>{"use strict";za();fd();kI();var EU=Lt();CI.exports=EU.WeakMap});var TI=h((MK,xI)=>{"use strict";xI.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var kd=h(()=>{"use strict";za();var SU=TI(),kU=he(),CU=zi(),OI=tn();for(ls in SU)CU(kU[ls],ls),OI[ls]=OI.Array;var ls});var PI=h((jK,RI)=>{"use strict";var AU=AI();kd();RI.exports=AU});var DI=h((GK,NI)=>{NI.exports=PI()});var LI=h(()=>{"use strict";var xU=Z(),TU=Ci(),OU=Xu().indexOf,RU=Mi(),Cd=TU([].indexOf),qI=!!Cd&&1/Cd([1],1,-0)<0,PU=qI||!RU("indexOf");xU({target:"Array",proto:!0,forced:PU},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return qI?Cd(this,t,r)||0:OU(this,t,r)}})});var UI=h((HK,MI)=>{"use strict";LI();var NU=_t();MI.exports=NU("Array","indexOf")});var jI=h(($K,FI)=>{"use strict";var DU=Xe(),qU=UI(),Ad=Array.prototype;FI.exports=function(e){var t=e.indexOf;return e===Ad||DU(Ad,e)&&t===Ad.indexOf?qU:t}});var BI=h((VK,GI)=>{"use strict";var LU=jI();GI.exports=LU});var HI=h((WK,JI)=>{JI.exports=BI()});var $I=h(()=>{"use strict";var MU=Z(),UU=xr().map,FU=Li(),jU=FU("map");MU({target:"Array",proto:!0,forced:!jU},{map:function(t){return UU(this,t,arguments.length>1?arguments[1]:void 0)}})});var WI=h((YK,VI)=>{"use strict";$I();var GU=_t();VI.exports=GU("Array","map")});var KI=h((QK,zI)=>{"use strict";var BU=Xe(),JU=WI(),xd=Array.prototype;zI.exports=function(e){var t=e.map;return e===xd||BU(xd,e)&&t===xd.map?JU:t}});var QI=h((XK,YI)=>{"use strict";var HU=KI();YI.exports=HU});var ZI=h((ZK,XI)=>{XI.exports=QI()});var e0=h(()=>{"use strict";var $U=Z(),VU=Ze(),WU=Wi();$U({target:"Object",stat:!0,sham:!VU},{create:WU})});var r0=h((r7,t0)=>{"use strict";e0();var zU=Lt(),KU=zU.Object;t0.exports=function(t,r){return KU.create(t,r)}});var i0=h((n7,n0)=>{"use strict";var YU=r0();n0.exports=YU});var a0=h((i7,o0)=>{o0.exports=i0()});var Td=h((o7,s0)=>{"use strict";var QU=rr();s0.exports=function(e,t,r){return QU.f(e,t,r)}});var u0=h((a7,c0)=>{"use strict";var XU=bn(),ZU=Td(),eF=He(),tF=Ze(),l0=eF("species");c0.exports=function(e){var t=XU(e);tF&&t&&!t[l0]&&ZU(t,l0,{configurable:!0,get:function(){return this}})}});var v0=h((s7,g0)=>{"use strict";var d0=Wi(),rF=Td(),p0=Ka(),nF=Ri(),iF=es(),oF=Yr(),aF=Za(),sF=$a(),cs=Va(),lF=u0(),to=Ze(),f0=Qi().fastKey,m0=nn(),h0=m0.set,Od=m0.getterFor;g0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){iF(c,o),h0(c,{type:t,index:d0(null),first:null,last:null,size:0}),to||(c.size=0),oF(d)||aF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Od(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,v;return f?f.value=u:(p.last=f={index:v=f0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),to?p.size++:c.size++,v!=="F"&&(p.index[v]=f)),c},l=function(c,d){var u=a(c),p=f0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return p0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=d0(null),to?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),to?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=nF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),p0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),to&&rF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Od(t),o=Od(n);sF(e,t,function(a,s){h0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,cs(void 0,!0)):cs(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),lF(t)}}});var y0=h(()=>{"use strict";var cF=bd(),uF=v0();cF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uF)});var _0=h(()=>{"use strict";y0()});var Tr=h((p7,b0)=>{"use strict";var dF=xi(),pF=TypeError;b0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new pF(dF(e)+" is not a set")}});var I0=h((f7,w0)=>{"use strict";w0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Or=h((h7,S0)=>{"use strict";var fF=bn(),Rd=I0(),E0=fF("Set"),hF=E0.prototype;S0.exports={Set:E0,add:Rd("add",1),has:Rd("has",1),remove:Rd("delete",1),proto:hF}});var Rr=h((m7,k0)=>{"use strict";var mF=St();k0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=mF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Pn=h((g7,C0)=>{"use strict";var gF=Rr();C0.exports=function(e,t,r){return r?gF(e.keys(),t,!0):e.forEach(t)}});var us=h((v7,x0)=>{"use strict";var A0=Or(),vF=Pn(),yF=A0.Set,_F=A0.add;x0.exports=function(e){var t=new yF;return vF(e,function(r){_F(t,r)}),t}});var Nn=h((y7,T0)=>{"use strict";T0.exports=function(e){return e.size}});var R0=h((_7,O0)=>{"use strict";O0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Pr=h((b7,M0)=>{"use strict";var P0=Xr(),q0=tr(),N0=St(),bF=Ni(),wF=R0(),D0="Invalid size",IF=RangeError,EF=TypeError,SF=Math.max,L0=function(e,t){this.set=e,this.size=SF(t,0),this.has=P0(e.has),this.keys=P0(e.keys)};L0.prototype={getIterator:function(){return wF(q0(N0(this.keys,this.set)))},includes:function(e){return N0(this.has,this.set,e)}};M0.exports=function(e){q0(e);var t=+e.size;if(t!==t)throw new EF(D0);var r=bF(t);if(r<0)throw new IF(D0);return new L0(e,r)}});var G0=h((w7,j0)=>{"use strict";var kF=Tr(),F0=Or(),CF=us(),AF=Nn(),xF=Pr(),TF=Pn(),OF=Rr(),RF=F0.has,U0=F0.remove;j0.exports=function(t){var r=kF(this),n=xF(t),i=CF(r);return AF(r)<=n.size?TF(r,function(o){n.includes(o)&&U0(i,o)}):OF(n.getIterator(),function(o){RF(r,o)&&U0(i,o)}),i}});var Nr=h((I7,B0)=>{"use strict";B0.exports=function(){return!1}});var J0=h(()=>{"use strict";var PF=Z(),NF=G0(),DF=Nr(),qF=!DF("difference",function(e){return e.size===0});PF({target:"Set",proto:!0,real:!0,forced:qF},{difference:NF})});var V0=h((k7,$0)=>{"use strict";var LF=Tr(),Pd=Or(),MF=Nn(),UF=Pr(),FF=Pn(),jF=Rr(),GF=Pd.Set,H0=Pd.add,BF=Pd.has;$0.exports=function(t){var r=LF(this),n=UF(t),i=new GF;return MF(r)>n.size?jF(n.getIterator(),function(o){BF(r,o)&&H0(i,o)}):FF(r,function(o){n.includes(o)&&H0(i,o)}),i}});var W0=h(()=>{"use strict";var JF=Z(),HF=fe(),$F=V0(),VF=Nr(),WF=!VF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||HF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});JF({target:"Set",proto:!0,real:!0,forced:WF},{intersection:$F})});var K0=h((x7,z0)=>{"use strict";var zF=Tr(),KF=Or().has,YF=Nn(),QF=Pr(),XF=Pn(),ZF=Rr(),ej=Qa();z0.exports=function(t){var r=zF(this),n=QF(t);if(YF(r)<=n.size)return XF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return ZF(i,function(o){if(KF(r,o))return ej(i,"normal",!1)})!==!1}});var Y0=h(()=>{"use strict";var tj=Z(),rj=K0(),nj=Nr(),ij=!nj("isDisjointFrom",function(e){return!e});tj({target:"Set",proto:!0,real:!0,forced:ij},{isDisjointFrom:rj})});var X0=h((R7,Q0)=>{"use strict";var oj=Tr(),aj=Nn(),sj=Pn(),lj=Pr();Q0.exports=function(t){var r=oj(this),n=lj(t);return aj(r)>n.size?!1:sj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Z0=h(()=>{"use strict";var cj=Z(),uj=X0(),dj=Nr(),pj=!dj("isSubsetOf",function(e){return e});cj({target:"Set",proto:!0,real:!0,forced:pj},{isSubsetOf:uj})});var tE=h((D7,eE)=>{"use strict";var fj=Tr(),hj=Or().has,mj=Nn(),gj=Pr(),vj=Rr(),yj=Qa();eE.exports=function(t){var r=fj(this),n=gj(t);if(mj(r)<n.size)return!1;var i=n.getIterator();return vj(i,function(o){if(!hj(r,o))return yj(i,"normal",!1)})!==!1}});var rE=h(()=>{"use strict";var _j=Z(),bj=tE(),wj=Nr(),Ij=!wj("isSupersetOf",function(e){return!e});_j({target:"Set",proto:!0,real:!0,forced:Ij},{isSupersetOf:bj})});var iE=h((M7,nE)=>{"use strict";var Ej=Tr(),Nd=Or(),Sj=us(),kj=Pr(),Cj=Rr(),Aj=Nd.add,xj=Nd.has,Tj=Nd.remove;nE.exports=function(t){var r=Ej(this),n=kj(t).getIterator(),i=Sj(r);return Cj(n,function(o){xj(r,o)?Tj(i,o):Aj(i,o)}),i}});var oE=h(()=>{"use strict";var Oj=Z(),Rj=iE(),Pj=Nr();Oj({target:"Set",proto:!0,real:!0,forced:!Pj("symmetricDifference")},{symmetricDifference:Rj})});var sE=h((j7,aE)=>{"use strict";var Nj=Tr(),Dj=Or().add,qj=us(),Lj=Pr(),Mj=Rr();aE.exports=function(t){var r=Nj(this),n=Lj(t).getIterator(),i=qj(r);return Mj(n,function(o){Dj(i,o)}),i}});var lE=h(()=>{"use strict";var Uj=Z(),Fj=sE(),jj=Nr();Uj({target:"Set",proto:!0,real:!0,forced:!jj("union")},{union:Fj})});var ro=h((J7,cE)=>{"use strict";var Gj=An(),Bj=String;cE.exports=function(e){if(Gj(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Bj(e)}});var fE=h((H7,pE)=>{"use strict";var Dd=Ie(),Jj=Ni(),Hj=ro(),$j=Qr(),Vj=Dd("".charAt),uE=Dd("".charCodeAt),Wj=Dd("".slice),dE=function(e){return function(t,r){var n=Hj($j(t)),i=Jj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=uE(n,i),a<55296||a>56319||i+1===o||(s=uE(n,i+1))<56320||s>57343?e?Vj(n,i):a:e?Wj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};pE.exports={codeAt:dE(!1),charAt:dE(!0)}});var vE=h(()=>{"use strict";var zj=fE().charAt,Kj=ro(),mE=nn(),Yj=$a(),hE=Va(),gE="String Iterator",Qj=mE.set,Xj=mE.getterFor(gE);Yj(String,"String",function(e){Qj(this,{type:gE,string:Kj(e),index:0})},function(){var t=Xj(this),r=t.string,n=t.index,i;return n>=r.length?hE(void 0,!0):(i=zj(r,n),t.index+=i.length,hE(i,!1))})});var _E=h((W7,yE)=>{"use strict";za();fd();_0();J0();W0();Y0();Z0();rE();oE();lE();vE();var Zj=Lt();yE.exports=Zj.Set});var wE=h((z7,bE)=>{"use strict";var eG=_E();kd();bE.exports=eG});var EE=h((K7,IE)=>{IE.exports=wE()});var kE=h(SE=>{"use strict";SE.f=Object.getOwnPropertySymbols});var TE=h((Q7,xE)=>{"use strict";var CE=Ze(),tG=Ie(),rG=St(),nG=fe(),qd=td(),iG=kE(),oG=Qc(),aG=In(),sG=Ia(),Dn=Object.assign,AE=Object.defineProperty,lG=tG([].concat);xE.exports=!Dn||nG(function(){if(CE&&Dn({b:1},Dn(AE({},"a",{enumerable:!0,get:function(){AE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Dn({},e)[r]!==7||qd(Dn({},t)).join("")!==n})?function(t,r){for(var n=aG(t),i=arguments.length,o=1,a=iG.f,s=oG.f;i>o;)for(var l=sG(arguments[o++]),c=a?lG(qd(l),a(l)):qd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!CE||rG(s,l,p))&&(n[p]=l[p]);return n}:Dn});var RE=h(()=>{"use strict";var cG=Z(),OE=TE();cG({target:"Object",stat:!0,arity:2,forced:Object.assign!==OE},{assign:OE})});var NE=h((eY,PE)=>{"use strict";RE();var uG=Lt();PE.exports=uG.Object.assign});var qE=h((tY,DE)=>{"use strict";var dG=NE();DE.exports=dG});var ME=h((rY,LE)=>{LE.exports=qE()});var Ld=h((nY,UE)=>{"use strict";UE.exports=`
|
|
22
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GE=h((iY,jE)=>{"use strict";var pG=Ie(),fG=Qr(),hG=ro(),Ud=Ld(),FE=pG("".replace),mG=RegExp("^["+Ud+"]+"),gG=RegExp("(^|[^"+Ud+"])["+Ud+"]+$"),Md=function(e){return function(t){var r=hG(fG(t));return e&1&&(r=FE(r,mG,"")),e&2&&(r=FE(r,gG,"$1")),r}};jE.exports={start:Md(1),end:Md(2),trim:Md(3)}});var $E=h((oY,HE)=>{"use strict";var vG=Yu().PROPER,yG=fe(),BE=Ld(),JE="\u200B\x85\u180E";HE.exports=function(e){return yG(function(){return!!BE[e]()||JE[e]()!==JE||vG&&BE[e].name!==e})}});var VE=h(()=>{"use strict";var _G=Z(),bG=GE().trim,wG=$E();_G({target:"String",proto:!0,forced:wG("trim")},{trim:function(){return bG(this)}})});var zE=h((lY,WE)=>{"use strict";VE();var IG=_t();WE.exports=IG("String","trim")});var YE=h((cY,KE)=>{"use strict";var EG=Xe(),SG=zE(),Fd=String.prototype;KE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Fd||EG(Fd,e)&&t===Fd.trim?SG:t}});var XE=h((uY,QE)=>{"use strict";var kG=YE();QE.exports=kG});var eS=h((dY,ZE)=>{ZE.exports=XE()});var nS=h(()=>{"use strict";var CG=Z(),tS=Di(),AG=Eu(),xG=xe(),rS=Qu(),TG=Cn(),OG=Cr(),RG=xu(),PG=He(),NG=Li(),DG=Fi(),qG=NG("slice"),LG=PG("species"),jd=Array,MG=Math.max;CG({target:"Array",proto:!0,forced:!qG},{slice:function(t,r){var n=OG(this),i=TG(n),o=rS(t,i),a=rS(r===void 0?i:r,i),s,l,c;if(tS(n)&&(s=n.constructor,AG(s)&&(s===jd||tS(s.prototype))?s=void 0:xG(s)&&(s=s[LG],s===null&&(s=void 0)),s===jd||s===void 0))return DG(n,o,a);for(l=new(s===void 0?jd:s)(MG(a-o,0)),c=0;o<a;o++,c++)o in n&&RG(l,c,n[o]);return l.length=c,l}})});var oS=h((hY,iS)=>{"use strict";nS();var UG=_t();iS.exports=UG("Array","slice")});var sS=h((mY,aS)=>{"use strict";var FG=Xe(),jG=oS(),Gd=Array.prototype;aS.exports=function(e){var t=e.slice;return e===Gd||FG(Gd,e)&&t===Gd.slice?jG:t}});var cS=h((gY,lS)=>{"use strict";var GG=sS();lS.exports=GG});var dS=h((vY,uS)=>{uS.exports=cS()});var Bd=C(()=>{});var fS=h((_Y,pS)=>{"use strict";var BG=xe(),JG=er(),HG=He(),$G=HG("match");pS.exports=function(e){var t;return BG(e)&&((t=e[$G])!==void 0?!!t:JG(e)==="RegExp")}});var mS=h((bY,hS)=>{"use strict";var VG=fS(),WG=TypeError;hS.exports=function(e){if(VG(e))throw new WG("The method doesn't accept regular expressions");return e}});var vS=h((wY,gS)=>{"use strict";var zG=He(),KG=zG("match");gS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[KG]=!1,"/./"[e](t)}catch(n){}}return!1}});var bS=h(()=>{"use strict";var YG=Z(),QG=Ci(),XG=hu().f,ZG=bu(),yS=ro(),eB=mS(),tB=Qr(),rB=vS(),nB=wn(),iB=QG("".slice),oB=Math.min,_S=rB("startsWith"),aB=!nB&&!_S&&!!function(){var e=XG(String.prototype,"startsWith");return e&&!e.writable}();YG({target:"String",proto:!0,forced:!aB&&!_S},{startsWith:function(t){var r=yS(tB(this));eB(t);var n=ZG(oB(arguments.length>1?arguments[1]:void 0,r.length)),i=yS(t);return iB(r,n,n+i.length)===i}})});var IS=h((SY,wS)=>{"use strict";bS();var sB=_t();wS.exports=sB("String","startsWith")});var SS=h((kY,ES)=>{"use strict";var lB=Xe(),cB=IS(),Jd=String.prototype;ES.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Jd||lB(Jd,e)&&t===Jd.startsWith?cB:t}});var CS=h((CY,kS)=>{"use strict";var uB=SS();kS.exports=uB});var xS=h((AY,AS)=>{AS.exports=CS()});var NS=h((xY,PS)=>{"use strict";var OS=Ie(),dB=Xr(),pB=xe(),fB=ut(),TS=Fi(),hB=_n(),RS=Function,mB=OS([].concat),gB=OS([].join),Hd={},vB=function(e,t,r){if(!fB(Hd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Hd[t]=RS("C,a","return new C("+gB(n,",")+")")}return Hd[t](e,r)};PS.exports=hB?RS.bind:function(t){var r=dB(this),n=r.prototype,i=TS(arguments,1),o=function(){var s=mB(i,TS(arguments));return this instanceof o?vB(r,s.length,s):r.apply(t,s)};return pB(n)&&(o.prototype=n),o}});var qS=h(()=>{"use strict";var yB=Z(),DS=NS();yB({target:"Function",proto:!0,forced:Function.bind!==DS},{bind:DS})});var MS=h((RY,LS)=>{"use strict";qS();var _B=_t();LS.exports=_B("Function","bind")});var FS=h((PY,US)=>{"use strict";var bB=Xe(),wB=MS(),$d=Function.prototype;US.exports=function(e){var t=e.bind;return e===$d||bB($d,e)&&t===$d.bind?wB:t}});var GS=h((NY,jS)=>{"use strict";var IB=FS();jS.exports=IB});var JS=h((DY,BS)=>{BS.exports=GS()});function Ts(e,t){Ee.__h&&Ee.__h(de,e,co||t),co=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return co=1,EB(Rk,e)}function EB(e,t,r){var n=Ts(Un++,2);if(n.t=e,!n.__c&&(n.__=[Rk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=de,!de.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,pp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Ck.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},de.shouldComponentUpdate=i}return n.__N||n.__}function an(e,t){var r=Ts(Un++,3);!Ee.__s&&Ok(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function oo(e){return co=5,ar(function(){return{current:e}},[])}function ar(e,t){var r=Ts(Un++,7);return Ok(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return co=8,ar(function(){return e},t)}function SB(e){var t=de.context[e.__c],r=Ts(Un++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function kB(){for(var e;e=Tk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,ms),(0,Te.default)(r=e.__H.__h).call(r,ep),e.__H.__h=[]}catch(n){e.__H.__h=[],Ee.__e(n,e.__v)}}function CB(e){var t,r=function(){clearTimeout(n),QS&&cancelAnimationFrame(t),(0,Bt.default)(e)},n=(0,Bt.default)(r,100);QS&&(t=requestAnimationFrame(r))}function ms(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function ep(e){var t=de;e.__c=e.__(),de=t}function Ok(e,t){return!e||e.length!==t.length||(0,Es.default)(t).call(t,function(r,n){return r!==e[n]})}function Rk(e,t){return typeof t=="function"?t(e):t}function AB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tp(){throw new Error("setTimeout has not been defined")}function rp(){throw new Error("clearTimeout has not been defined")}function Nk(e){if(Mt===Bt.default)return(0,Bt.default)(e,0);if((Mt===tp||!Mt)&&Bt.default)return Mt=Bt.default,(0,Bt.default)(e,0);try{return Mt(e,0)}catch(t){try{return Mt.call(null,e,0)}catch(r){return Mt.call(this,e,0)}}}function xB(e){if(Ut===clearTimeout)return clearTimeout(e);if((Ut===rp||!Ut)&&clearTimeout)return Ut=clearTimeout,clearTimeout(e);try{return Ut(e)}catch(t){try{return Ut.call(null,e)}catch(r){return Ut.call(this,e)}}}function TB(){!qn||!qr||(qn=!1,qr.length?or=(0,xs.default)(qr).call(qr,or):gs=-1,or.length&&Dk())}function Dk(){if(!qn){var e=Nk(TB);qn=!0;for(var t=or.length;t;){for(qr=or,or=[];++gs<t;)qr&&qr[gs].run();gs=-1,t=or.length}qr=null,qn=!1,xB(e)}}function qk(e,t){this.fun=e,this.array=t}function lr(){}function PB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function MB(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Uk(e){return(0,mp.default)(e).call(e)}function UB(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function np(e,t){return(0,sr.default)(e).call(e,t)}function Le(e,t){return e.charCodeAt(t)|0}function uo(e,t,r){return(0,gp.default)(e).call(e,t,r)}function Ft(e){return e.length}function bp(e){return e.length}function ds(e,t){return t.push(e),e}function FB(e,t){return(0,lo.default)(e).call(e,t).join("")}function Ps(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Rs,column:Fn,length:a,return:""}}function no(e,t){return LB(Ps("",null,null,"",null,null,0),e,{length:-e.length},t)}function jB(){return Se}function GB(){return Se=nt>0?Le(Gn,--nt):0,Fn--,Se===10&&(Fn=1,Rs--),Se}function dt(){return Se=nt<Fk?Le(Gn,nt++):0,Fn++,Se===10&&(Fn=1,Rs++),Se}function Ht(){return Le(Gn,nt)}function vs(){return nt}function vo(e,t){return uo(Gn,e,t)}function po(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jk(e){return Rs=Fn=1,Fk=Ft(Gn=e),nt=0,[]}function Gk(e){return Gn="",e}function ys(e){return Uk(vo(nt-1,ip(e===91?e+2:e===40?e+1:e)))}function BB(e){for(;(Se=Ht())&&Se<33;)dt();return po(e)>2||po(Se)>3?"":" "}function JB(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return vo(e,vs()+(t<6&&Ht()==32&&dt()==32))}function ip(e){for(;dt();)switch(Se){case e:return nt;case 34:case 39:e!==34&&e!==39&&ip(Se);break;case 40:e===41&&ip(e);break;case 92:dt();break}return nt}function HB(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Ht()===47););return"/*"+vo(t,nt-1)+"*"+Os(e===47?e:dt())}function $B(e){for(;!po(Ht());)dt();return vo(e,nt)}function VB(e){return Gk(_s("",null,null,null,[""],e=jk(e),0,[0],e))}function _s(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=dt()){case 40:if(m!=108&&Le(k,u-1)==58){np(k+=Q(ys(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=ys(w);break;case 9:case 10:case 13:case 32:k+=BB(m);break;case 92:k+=JB(vs()-1,7);continue;case 47:switch(Ht()){case 42:case 47:ds(WB(HB(dt(),vs()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Ft(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:f>0&&Ft(k)-u&&ds(f>32?ZS(k+";",n,r,u-1):ZS(Q(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ds(T=XS(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)_s(k,t,T,T,A,o,u,s,R);else switch(p===99&&Le(k,3)===110?100:p){case 100:case 109:case 115:_s(e,T,T,n&&ds(XS(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:_s(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Ft(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&GB()==125)continue}switch(k+=Os(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ft(k)-1)*g,g=1;break;case 64:Ht()===45&&(k+=ys(dt())),p=Ht(),d=u=Ft(S=k+=$B(vs())),w++;break;case 45:m===45&&Ft(k)==2&&(v=0)}}return o}function XS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=bp(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=uo(e,u+1,u=qB(v=a[m])),S=e;g<f;++g)(S=Uk(v>0?p[g]+" "+w:Q(w,/&\f/g,p[g])))&&(l[y++]=S);return Ps(e,t,r,i===0?yp:s,l,c,d)}function WB(e,t,r){return Ps(e,t,r,vp,Os(jB()),uo(e,2,-2),0)}function ZS(e,t,r,n){return Ps(e,t,r,_p,uo(e,0,n),uo(e,n+1,-1),n)}function Ln(e,t){for(var r="",n=bp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function zB(e,t,r,n){switch(e.type){case DB:case _p:return e.return=e.return||e.value;case vp:return"";case Mk:return e.return=e.value+"{"+Ln(e.children,n)+"}";case yp:e.value=e.props.join(",")}return Ft(r=Ln(e.children,n))?e.return=e.value+"{"+r+"}":""}function KB(e){var t=bp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function YB(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jk(e,t){switch(MB(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+ks+e+$e+e+e;case 6828:case 4268:return $+e+$e+e+e;case 6165:return $+e+$e+"flex-"+e+e;case 5187:return $+e+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return $+e+$e+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+$e+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+$e+Q(e,"shrink","negative")+e;case 5292:return $+e+$e+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+$e+Q(e,"grow","positive")+e;case 4554:return $+Q(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+ks+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~np(e,"stretch")?Jk(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ft(e)-3-(~np(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Le(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+$e+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+$e+e+e}return e}function $k(){if(rk)return ps.exports;rk=1;let e=$k();return ps.exports={default:e},ps.exports.default=e,ps.exports}function fo(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function uJ(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function pJ(e){var t=(0,Ak.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ho(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return jt={name:i.name,styles:i.styles,next:jt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=o.styles+";";return s}return mJ(e,t,r)}case"function":{if(e!==void 0){var l=jt,c=r(e);return jt=l,ho(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function mJ(e,t,r){var n="";if((0,so.default)(r))for(var i=0;i<r.length;i++)n+=ho(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":nk(s)&&(n+=Wd(o)+":"+ik(o,s)+";")}else if((0,so.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)nk(a[l])&&(n+=Wd(o)+":"+ik(o,a[l])+";");else{var c=ho(e,t,a);switch(o){case"animation":case"animationName":{n+=Wd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Lr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";jt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ho(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ho(r,t,e[s]),n){var l=o;i+=l[s]}ok.lastIndex=0;for(var c="",d;(d=ok.exec(i))!==null;)c+="-"+d[1];var u=uJ(i)+c;return{name:u,styles:i,next:jt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Lr(t)}function CJ(e,t,r){var n=[],i=fo(e,n,r);return n.length<2?r:i+t(n)}function b(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--TJ,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function yo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return an(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function W2(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function rC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=W2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function z2(e){let t=()=>rC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function Q2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Be(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=Y2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(x({},a),{ref:c,src:t!=null?t:"",style:x({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",F(x({},a),{ref:c,className:i,children:r}))}function X2(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(x({},i.props),{style:F(x({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(x({},e.props),{style:F(x({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function n5(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function vk(e,t,r){return Ds.call(t,"css")?b(Sp,Yk(e,t),r):b(e,t,r)}function c5(e,t,r){return Ds.call(t,"css")?b(Sp,Yk(e,t),r):b(e,t,r)}function cp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return b("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?b(De,{children:t[s]},o):null}return b(De,{children:i},o)})})}function p5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:b("div",{style:x({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:b("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function m5({children:e,style:t}){return b("div",{style:`${f5.styles} ${t}`,children:[e,b("svg",{style:`${h5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[b("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),b("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function O5(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function gC(e){return(0,mp.default)(e).call(e)}function R5(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function up(e,t){return(0,sr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function mo(e,t,r){return(0,gp.default)(e).call(e,t,r)}function Gt(e){return e.length}function Tp(e){return e.length}function hs(e,t){return t.push(e),e}function P5(e,t){return(0,lo.default)(e).call(e,t).join("")}function js(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Fs,column:jn,length:a,return:""}}function io(e,t){return T5(js("",null,null,"",null,null,0),e,{length:-e.length},t)}function N5(){return ke}function D5(){return ke=it>0?Me(Jn,--it):0,jn--,ke===10&&(jn=1,Fs--),ke}function pt(){return ke=it<vC?Me(Jn,it++):0,jn++,ke===10&&(jn=1,Fs++),ke}function $t(){return Me(Jn,it)}function bs(){return it}function _o(e,t){return mo(Jn,e,t)}function go(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yC(e){return Fs=jn=1,vC=Gt(Jn=e),it=0,[]}function _C(e){return Jn="",e}function ws(e){return gC(_o(it-1,dp(e===91?e+2:e===40?e+1:e)))}function q5(e){for(;(ke=$t())&&ke<33;)pt();return go(e)>2||go(ke)>3?"":" "}function L5(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return _o(e,bs()+(t<6&&$t()==32&&pt()==32))}function dp(e){for(;pt();)switch(ke){case e:return it;case 34:case 39:e!==34&&e!==39&&dp(ke);break;case 40:e===41&&dp(e);break;case 92:pt();break}return it}function M5(e,t){for(;pt()&&e+ke!==57&&!(e+ke===84&&$t()===47););return"/*"+_o(t,it-1)+"*"+Us(e===47?e:pt())}function U5(e){for(;!go($t());)pt();return _o(e,it)}function F5(e){return _C(Is("",null,null,null,[""],e=yC(e),0,[0],e))}function Is(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=pt()){case 40:if(m!=108&&Me(k,u-1)==58){up(k+=W(ws(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=ws(w);break;case 9:case 10:case 13:case 32:k+=q5(m);break;case 92:k+=L5(bs()-1,7);continue;case 47:switch($t()){case 42:case 47:hs(j5(M5(pt(),bs()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Gt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:g==-1&&(k=W(k,/\f/g,"")),f>0&&Gt(k)-u&&hs(f>32?_k(k+";",n,r,u-1):_k(W(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(hs(T=yk(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)Is(k,t,T,T,A,o,u,s,R);else switch(p===99&&Me(k,3)===110?100:p){case 100:case 108:case 109:case 115:Is(e,T,T,n&&hs(yk(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Is(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Gt(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&D5()==125)continue}switch(k+=Us(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Gt(k)-1)*g,g=1;break;case 64:$t()===45&&(k+=ws(pt())),p=$t(),d=u=Gt(S=k+=U5(bs())),w++;break;case 45:m===45&&Gt(k)==2&&(v=0)}}return o}function yk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Tp(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=mo(e,u+1,u=x5(v=a[m])),S=e;g<f;++g)(S=gC(v>0?p[g]+" "+w:W(w,/&\f/g,p[g])))&&(l[y++]=S);return js(e,t,r,i===0?Ap:s,l,c,d)}function j5(e,t,r){return js(e,t,r,hC,Us(N5()),mo(e,2,-2),0)}function _k(e,t,r,n){return js(e,t,r,xp,mo(e,0,n),mo(e,n+1,-1),n)}function Mn(e,t){for(var r="",n=Tp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function G5(e,t,r,n){switch(e.type){case A5:if(e.children.length)break;case C5:case xp:return e.return=e.return||e.value;case hC:return"";case mC:return e.return=e.value+"{"+Mn(e.children,n)+"}";case Ap:e.value=e.props.join(",")}return Gt(r=Mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function B5(e){var t=Tp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function J5(e){return function(t){t.root||(t=t.return)&&e(t)}}function bC(e,t){switch(O5(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+As+e+Ve+e+e;case 6828:case 4268:return V+e+Ve+e+e;case 6165:return V+e+Ve+"flex-"+e+e;case 5187:return V+e+W(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return V+e+Ve+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return V+e+Ve+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Ve+W(e,"shrink","negative")+e;case 5292:return V+e+Ve+W(e,"basis","preferred-size")+e;case 6060:return V+"box-"+W(e,"-grow","")+V+e+Ve+W(e,"grow","positive")+e;case 4554:return V+W(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+As+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~up(e,"stretch")?bC(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Gt(e)-3-(~up(e,"!important")&&10))){case 107:return W(e,":",":"+V)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Me(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ve+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ve+e+e}return e}function wk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Xd(e,t,r){var n=[],i=fo(e,n,r);return n.length<2?r:i+t(n)}function Sk(e){if(e==="top"){let t=0;wC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Ik}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Ik}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Ek)})}else if(e==="center"){let t=0;IC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Ek)})}}function bo(){let e=!1,t=null,r=0,n=new Set,i=a=>_(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield ao.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),kr(b(a3,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,ao.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(kr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),ao.release()))};return{show:i,hide:o,get isLoading(){return e}}}var pp,Ck,Te,xs,Es,Bt,Ss,so,fp,sr,lo,Ak,xk,hp,mp,gp,FY,Zd,Un,de,Vd,HS,co,Tk,Ee,$S,VS,WS,zS,KS,YS,QS,Pk,ve,Mt,Ut,or,qn,qr,gs,OB,Oe,RB,Lk,$e,ks,$,vp,yp,_p,DB,Mk,qB,Os,LB,Rs,Fn,Fk,nt,Se,Gn,QB,XB,ZB,ek,eJ,tJ,rJ,nJ,iJ,Bk,oJ,tk,aJ,sJ,lJ,Hk,ps,rk,cJ,wp,Ns,dJ,fJ,hJ,Vk,nk,Wd,ik,ok,jt,gJ,Wk,zk,ak,Ds,Ip,Kk,Ep,qs,vJ,yJ,_J,bJ,wJ,op,ap,Yk,IJ,Sp,EJ,sk,SJ,kJ,AJ,xJ,zd,lk,Kd,Yd,TJ,Qd,OJ,RJ,PJ,NJ,DJ,qJ,LJ,ck,MJ,UJ,FJ,uk,jJ,GJ,BJ,dk,JJ,HJ,$J,pk,VJ,WJ,zJ,KJ,YJ,QJ,XJ,ZJ,e2,t2,r2,fk,n2,i2,o2,a2,s2,l2,c2,u2,d2,p2,f2,hk,h2,m2,g2,v2,y2,_2,b2,w2,I2,E2,S2,k2,C2,A2,x2,T2,O2,R2,P2,N2,D2,q2,L2,M2,U2,F2,j2,G2,B2,J2,H2,$2,Qk,Xk,Zk,sp,V2,eC,tC,Cs,ao,mk,K2,Ls,Y2,nC,iC,oC,Z2,e5,t5,lp,r5,aC,sC,Ms,kp,Bn,gk,Dr,lC,on,i5,o5,a5,s5,l5,fs,cC,Cp,me,u5,d5,f5,h5,At,g5,v5,uC,dC,pC,fC,Mr,y5,_5,b5,w5,I5,E5,S5,k5,Ve,As,V,hC,Ap,xp,C5,mC,A5,x5,Us,T5,Fs,jn,vC,it,ke,Jn,H5,$5,V5,bk,W5,z5,K5,Y5,Q5,X5,Z5,e3,t3,r3,n3,i3,Ik,Ek,wC,IC,Ur,kk,o3,a3,jY,cr=C(()=>{"use strict";yn();pp=ie(gy(),1),Ck=ie(Cy(),1),Te=ie(Fy(),1),xs=ie(e_(),1),Es=ie(c_(),1),Bt=ie(A_(),1);qa();qa();Ss=ie(db(),1),so=ie(yb(),1),fp=ie(DI(),1),sr=ie(HI(),1),lo=ie(ZI(),1),Ak=ie(a0(),1),xk=ie(EE(),1),hp=ie(ME(),1),mp=ie(eS(),1),gp=ie(dS(),1);Bd();Bd();FY=ie(xS(),1),Zd=ie(JS(),1),co=0,Tk=[],Ee=N,$S=Ee.__b,VS=Ee.__r,WS=Ee.diffed,zS=Ee.__c,KS=Ee.unmount,YS=Ee.__;Ee.__b=function(e){de=null,$S&&$S(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),YS&&YS(e,t)},Ee.__r=function(e){var t,r,n;VS&&VS(e),Un=0;var i=(de=e.__c).__H;i&&(Vd===de?(i.__h=[],de.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,ms),(0,Te.default)(n=i.__h).call(n,ep),i.__h=[],Un=0)),Vd=de},Ee.diffed=function(e){var t;WS&&WS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Tk.push(r)!==1&&HS===Ee.requestAnimationFrame||((HS=Ee.requestAnimationFrame)||CB)(kB)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Vd=de=null},Ee.__c=function(e,t){(0,Es.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,ms),r.__h=(0,pp.default)(i=r.__h).call(i,function(o){return!o.__||ep(o)})}catch(o){(0,Es.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ee.__e(o,r.__v)}}),zS&&zS(e,t)},Ee.unmount=function(e){var t;KS&&KS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{ms(i)}catch(o){r=o}}),n.__H=void 0,r&&Ee.__e(r,n.__v))};QS=typeof requestAnimationFrame=="function";Pk={exports:{}},ve=Pk.exports={};(function(){try{typeof Bt.default=="function"?Mt=Bt.default:Mt=tp}catch(e){Mt=tp}try{typeof clearTimeout=="function"?Ut=clearTimeout:Ut=rp}catch(e){Ut=rp}})();or=[],qn=!1,gs=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];or.push(new qk(e,t)),or.length===1&&!qn&&Nk(Dk)};qk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=lr;ve.addListener=lr;ve.once=lr;ve.off=lr;ve.removeListener=lr;ve.removeAllListeners=lr;ve.emit=lr;ve.prependListener=lr;ve.prependOnceListener=lr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};OB=Pk.exports,Oe=AB(OB),RB=Ss.default||void 0||self;Lk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NB(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=PB(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",ks="-moz-",$="-webkit-",vp="comm",yp="rule",_p="decl",DB="@import",Mk="@keyframes",qB=Math.abs,Os=String.fromCharCode,LB=hp.default;Rs=1,Fn=1,Fk=0,nt=0,Se=0,Gn="";QB=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!po(i);)dt();return vo(e,nt)},XB=function(e,t){var r=-1,n=44;do switch(po(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=QB(nt-1,t,r);break;case 2:e[r]+=ys(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Os(n)}while(n=dt());return e},ZB=function(e,t){return Gk(XB(jk(e),t))},ek=new fp.default,eJ=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ek.get(r))&&!n){ek.set(e,!0);for(var i=[],o=ZB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},tJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},rJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",nJ=function(e){var t;return e.type==="comm"&&(0,sr.default)(t=e.children).call(t,rJ)>-1},iJ=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(nJ(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Bk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},oJ=function(e,t){for(var r=e-1;r>=0;r--)if(!Bk(t[r]))return!0;return!1},tk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},aJ=function(e,t,r){Bk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),tk(e)):oJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tk(e)))};sJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case _p:e.return=Jk(e.value,e.length);break;case Mk:return Ln([no(e,{value:Q(e.value,"@","@"+$)})],n);case yp:if(e.length)return FB(e.props,function(i){switch(UB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ln([no(e,{props:[Q(i,/:(read-\w+)/,":"+ks+"$1")]})],n);case"::placeholder":return Ln([no(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),no(e,{props:[Q(i,/:(plac\w+)/,":"+ks+"$1")]}),no(e,{props:[Q(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},lJ=[sJ],Hk=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
23
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||lJ;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[eJ,tJ];Oe.env.NODE_ENV!=="production"&&l.push(iJ({get compat(){return f.compat}}),aJ);{var c,d=[zB,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==vp&&c.insert(m.value+"{}"))}:YB(function(m){c.insert(m)})],u=KB((0,xs.default)(l).call(l,n,d)),p=function(m){return Ln(VB(m),u)};s=function(m,v,y,g){c=y,Oe.env.NODE_ENV!=="production"&&(0,lo.default)(v)!==void 0&&(c={insert:function(w){y.insert(w+(0,lo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new Lk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},ps={exports:{}};$k();cJ=!0;wp=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||cJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ns=function(e,t,r){wp(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};dJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};fJ=/[A-Z]|^ms/g,hJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vk=function(e){return e.charCodeAt(1)===45},nk=function(e){return e!=null&&typeof e!="boolean"},Wd=pJ(function(e){return Vk(e)?e:e.replace(fJ,"-$&").toLowerCase()}),ik=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(hJ,function(r,n,i){return jt={name:n,styles:i,next:jt},n})}return dJ[e]!==1&&!Vk(e)&&typeof t=="number"&&t!==0?t+"px":t};ok=/label:\s*([^\s;{]+)\s*(;|$)/g;gJ=function(e){return e()},Wk=Uu?Uu:!1,zk=Wk||gJ,ak=Wk||xn,Ds={}.hasOwnProperty,Ip=Kr(typeof HTMLElement<"u"?Hk({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(Ip.displayName="EmotionCacheContext");Kk=Ip.Provider,Ep=function(e){return ju(function(t,r){var n=On(Ip);return e(t,n,r)})},qs=Kr({});Oe.env.NODE_ENV!=="production"&&(qs.displayName="EmotionThemeContext");vJ=function(e){var t=e.split(".");return t[t.length-1]},yJ=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return vJ(t[1])},_J=new xk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),bJ=function(e){return e.replace(/\$/g,"-")},wJ=function(e){if(e)for(var t=e.split(`
|
|
24
|
+
`),r=0;r<t.length;r++){var n=yJ(t[r]);if(n){if(_J.has(n))break;if(/^[A-Z]/.test(n))return bJ(n)}}},op="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ap="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Yk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,sr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)Ds.call(t,o)&&(i[o]=t[o]);if(i[op]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,sr.default)(n=t.css.name).call(n,"-")===-1)){var a=wJ(new Error().stack);a&&(i[ap]=a)}return i},IJ=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return wp(t,r,n),zk(function(){return Ns(t,r,n)}),null},Sp=Ep(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[op],a=[i],s="";typeof e.className=="string"?s=fo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Lr(a,void 0,On(qs));if(Oe.env.NODE_ENV!=="production"&&(0,sr.default)(n=l.name).call(n,"-")===-1){var c=e[ap];c&&(l=Lr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Ds.call(e,u)&&u!=="css"&&u!==op&&(Oe.env.NODE_ENV==="production"||u!==ap)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(IJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(Sp.displayName="EmotionCssPropInternal");EJ={version:"11.10.5"},sk=!1,SJ=Ep(function(e,t){Oe.env.NODE_ENV!=="production"&&!sk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),sk=!0);var r=e.styles,n=Lr([r],void 0,On(qs)),i=Ji();return ak(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),ak(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ns(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(SJ.displayName="EmotionGlobal");kJ=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,so.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};AJ=function(e){var t=e.cache,r=e.serializedArr;return zk(function(){for(var n=0;n<r.length;n++)Ns(t,r[n],!1)}),null},xJ=Ep(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Lr(c,t.registered);return n.push(u),wp(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return CJ(t.registered,i,kJ(c))},a={css:i,cx:o,theme:On(qs)},s=e.children(a);return r=!0,Je(De,null,Je(AJ,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(xJ.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(zd=!0,lk=typeof jest<"u"||typeof vi<"u",zd&&!lk&&(Kd=typeof Ss.default<"u"?Ss.default:zd?window:RB,Yd="__EMOTION_REACT_"+EJ.version.split(".")[0]+"__",Kd[Yd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Kd[Yd]=!0));TJ=0;Qd={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},OJ=D`
|
|
25
25
|
width: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
27
|
margin: 0 auto;
|
|
28
|
-
`,
|
|
28
|
+
`,RJ=`
|
|
29
29
|
@keyframes fadeIn {
|
|
30
30
|
from { opacity: 0; }
|
|
31
31
|
to { opacity: 1; }
|
|
@@ -69,7 +69,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
69
69
|
.fadeIn {
|
|
70
70
|
animation: fadeIn 0.3s ease forwards;
|
|
71
71
|
}
|
|
72
|
-
`,H2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=eo(null),m=eo(null),g=eo(!1);Qr(()=>{if(s&&f.current){let M=f.current.ownerDocument,Re=M.createElement("style");Re.innerHTML=B2,M.head.appendChild(Re);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Re)&&M.head.removeChild(Re),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),Qr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=bt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),v())},[v]),k=bt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=bt(()=>s&&!g.current,[s]);if(Qr(()=>{if(a){let M={show:k,hide:v,isOpen:x};typeof a=="function"?a(M):a&&(a.current=M)}},[k,v,x,a]),!s)return null;let P=o==="center",C=F(T({},Fd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=P?F(T({},Fd.centerDrawer),{pointerEvents:"auto"}):F(T({},Fd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(O.transform="translateY(100%)");let J=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:A,className:Ke,onClick:b}),_("div",{ref:m,style:F(T({},O),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:_("div",{style:G2.styles,children:e})})]})},V2=Cu(H2);$2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},W2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},z2={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},Ek={jolicoin:$2,joligem:W2,loginGuide:z2},K2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},Y2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},Q2={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},kk={jolicoin:K2,joligem:Y2,loginGuide:Q2},X2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},Z2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},eG={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},Ak={jolicoin:X2,joligem:Z2,loginGuide:eG},tG={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},rG={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},nG={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},Sk={jolicoin:tG,joligem:rG,loginGuide:nG},iG={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},oG={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},aG={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},sG={jolicoin:iG,joligem:oG,loginGuide:aG},lG={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},cG={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},uG={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},dG={jolicoin:lG,joligem:cG,loginGuide:uG},pG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},fG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},hG={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},xk={jolicoin:pG,joligem:fG,loginGuide:hG},mG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},vG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},gG={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},yG={jolicoin:mG,joligem:vG,loginGuide:gG},_G={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},bG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},wG={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},IG={jolicoin:_G,joligem:bG,loginGuide:wG},EG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},kG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},AG={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},Ck={jolicoin:EG,joligem:kG,loginGuide:AG},SG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},xG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},CG={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},TG={jolicoin:SG,joligem:xG,loginGuide:CG},OG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},PG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},RG={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},NG={jolicoin:OG,joligem:PG,loginGuide:RG},DG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},LG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},MG={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},qG={jolicoin:DG,joligem:LG,loginGuide:MG},UG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},FG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},jG={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},JG={jolicoin:UG,joligem:FG,loginGuide:jG},GG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},BG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},HG={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},VG={jolicoin:GG,joligem:BG,loginGuide:HG},$G={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},WG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},zG={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},KG={jolicoin:$G,joligem:WG,loginGuide:zG},YG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},QG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},XG={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},ZG={jolicoin:YG,joligem:QG,loginGuide:XG},eB={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},tB={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},rB={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},nB={jolicoin:eB,joligem:tB,loginGuide:rB},dA={en:{translations:Ek},en_GB:{translations:Ek},zh:{translations:kk},"zh-Hans":{translations:kk},"zh-Hant":{translations:NG},id:{translations:Ak},in:{translations:Ak},ms:{translations:Sk},my:{translations:Sk},th:{translations:sG},vi:{translations:dG},fil:{translations:xk},tl:{translations:xk},es:{translations:yG},ja:{translations:IG},pt:{translations:Ck},pt_PT:{translations:Ck},ko:{translations:TG},de:{translations:qG},fr:{translations:JG},hi:{translations:VG},ru:{translations:KG},bn:{translations:ZG},tr:{translations:nB}},pA=Jr(void 0),fA=({definition:e,children:t})=>{let r={translations:e};return _(pA.Provider,{value:r,children:t})},Kd=null,iB={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},hA=e=>{Kd=e},mA=()=>{var e;if(typeof Kd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Kd();return(e=iB[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Es=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=iA({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=aB(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(vA(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},to=new Es(99999998,"auto"),Tk=new Es(99999999,"none"),sB=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=fo(),l={container:D`
|
|
72
|
+
`,PJ=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=oo(null),m=oo(null),v=oo(!1);an(()=>{if(s&&f.current){let M=f.current.ownerDocument,Pe=M.createElement("style");Pe.innerHTML=RJ,M.head.appendChild(Pe);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Pe)&&M.head.removeChild(Pe),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),an(()=>{t?!s&&!v.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),v.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),g=bt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),g())},[g]),S=bt(()=>{!v.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=bt(()=>s&&!v.current,[s]);if(an(()=>{if(a){let M={show:S,hide:g,isOpen:A};typeof a=="function"?a(M):a&&(a.current=M)}},[S,g,A,a]),!s)return null;let R=o==="center",T=F(x({},Qd.drawerBackdrop),{alignItems:R?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=R?F(x({},Qd.centerDrawer),{pointerEvents:"auto"}):F(x({},Qd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!R&&(O.transform="translateY(100%)");let G=c?R?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ye=c?`backdrop-${c}`:"";return b("div",{ref:f,style:T,children:[b("div",{style:k,className:Ye,onClick:w}),b("div",{ref:m,style:F(x({},O),{opacity:R&&c===null&&!u?0:1}),className:`${R&&c==="leave"?"fadeOut":G} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:b("div",{style:OJ.styles,children:e})})]})},NJ=ju(PJ);DJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},qJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},LJ={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},ck={jolicoin:DJ,joligem:qJ,loginGuide:LJ},MJ={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},UJ={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},FJ={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},uk={jolicoin:MJ,joligem:UJ,loginGuide:FJ},jJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},GJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},BJ={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},dk={jolicoin:jJ,joligem:GJ,loginGuide:BJ},JJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},HJ={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},$J={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},pk={jolicoin:JJ,joligem:HJ,loginGuide:$J},VJ={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},WJ={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},zJ={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},KJ={jolicoin:VJ,joligem:WJ,loginGuide:zJ},YJ={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},QJ={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},XJ={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},ZJ={jolicoin:YJ,joligem:QJ,loginGuide:XJ},e2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},t2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},r2={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},fk={jolicoin:e2,joligem:t2,loginGuide:r2},n2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},i2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},o2={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},a2={jolicoin:n2,joligem:i2,loginGuide:o2},s2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},l2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},c2={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},u2={jolicoin:s2,joligem:l2,loginGuide:c2},d2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},p2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},f2={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},hk={jolicoin:d2,joligem:p2,loginGuide:f2},h2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},m2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},g2={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},v2={jolicoin:h2,joligem:m2,loginGuide:g2},y2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},_2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},b2={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},w2={jolicoin:y2,joligem:_2,loginGuide:b2},I2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},E2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},S2={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},k2={jolicoin:I2,joligem:E2,loginGuide:S2},C2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},A2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},x2={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},T2={jolicoin:C2,joligem:A2,loginGuide:x2},O2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},R2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},P2={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},N2={jolicoin:O2,joligem:R2,loginGuide:P2},D2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},q2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},L2={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},M2={jolicoin:D2,joligem:q2,loginGuide:L2},U2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},F2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},j2={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},G2={jolicoin:U2,joligem:F2,loginGuide:j2},B2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},J2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},H2={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},$2={jolicoin:B2,joligem:J2,loginGuide:H2},Qk={en:{translations:ck},en_GB:{translations:ck},zh:{translations:uk},"zh-Hans":{translations:uk},"zh-Hant":{translations:w2},id:{translations:dk},in:{translations:dk},ms:{translations:pk},my:{translations:pk},th:{translations:KJ},vi:{translations:ZJ},fil:{translations:fk},tl:{translations:fk},es:{translations:a2},ja:{translations:u2},pt:{translations:hk},pt_PT:{translations:hk},ko:{translations:v2},de:{translations:k2},fr:{translations:T2},hi:{translations:N2},ru:{translations:M2},bn:{translations:G2},tr:{translations:$2}},Xk=Kr(void 0),Zk=({definition:e,children:t})=>{let r={translations:e};return b(Xk.Provider,{value:r,children:t})},sp=null,V2={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},eC=e=>{sp=e},tC=()=>{var e;if(typeof sp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=sp();return(e=V2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Cs=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=Hk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=z2(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return _(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(rC(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},ao=new Cs(99999998,"auto"),mk=new Cs(99999999,"none"),K2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=yo(),l={container:D`
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
height: 100%;
|
|
@@ -102,11 +102,11 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
102
102
|
border-radius: 4px;
|
|
103
103
|
border: 1px solid #ddd;
|
|
104
104
|
cursor: pointer;
|
|
105
|
-
`};return
|
|
105
|
+
`};return b("div",{className:l.container.name,children:[!r&&b("div",{className:l.header.name,children:[b("h3",{children:e}),b("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),b("div",{className:l.content.name,children:t}),o&&o.length>0&&b("div",{className:l.footer.name,children:o.map((c,d)=>b("button",{className:D`
|
|
106
106
|
${l.button}
|
|
107
107
|
background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
|
|
108
108
|
color: ${c.variant==="primary"?"#fff":"#333"};
|
|
109
|
-
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},
|
|
109
|
+
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},Ls=e=>{let t=!1,r=tC(),n=Qk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),kr(b(Kk,{value:a,children:b(Zk,{definition:n,children:b(NJ,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:b(K2,F(x({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}ao.release(),(f=e.onClose)==null||f.call(e)}}function d(){return _(this,null,function*(){let p=yield ao.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},Y2=(e,t={threshold:.6})=>{let r=oo(null),n=oo(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return an(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};nC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Be(a,["children","fluid","className","style"]);let s=x({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",F(x({className:r,style:s},i),{children:e}))},iC=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=Be(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=x({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?X2(e,t):e;return b("div",F(x({className:i,style:u},a),{children:p}))};oC=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=Be(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=x({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",F(x({className:l,style:f},d),{children:e}))},Z2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Tn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Tn(()=>{},[e,t]);return b(oC,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(Q2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},e5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Be(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(nC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(iC,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>b(Z2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},t5=Fu(e5),lp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(lp||{}),r5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===lp.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=yo();if(!t.length)return b(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
|
|
110
110
|
.recommend-panel {
|
|
111
111
|
display: flex;
|
|
112
112
|
flex-direction: column;
|
|
@@ -228,7 +228,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
228
228
|
background-color: #7817FF;
|
|
229
229
|
color: #fff;
|
|
230
230
|
}
|
|
231
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return
|
|
231
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return an(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&kr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(t5,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===lp.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},aC=e=>{let t=Ls({title:e.title,content:b(r5,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},sC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",Ms="https://fe-oss.jolibox.com/static/coin/jolicoin.png",kp="https://fe-oss.jolibox.com/static/coin/gem.png";Bn=()=>{let e=SB(Xk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=n5(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},gk=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Dr={coinInfo:D`
|
|
232
232
|
display: flex;
|
|
233
233
|
width: calc(100% - 40px);
|
|
234
234
|
max-width: 720px;
|
|
@@ -288,7 +288,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
288
288
|
font-size: 16px;
|
|
289
289
|
font-weight: 600;
|
|
290
290
|
color: #d9d9d9;
|
|
291
|
-
`},
|
|
291
|
+
`},lC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Ms,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Bn(),c=14,d=ar(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return b("div",{style:Dr.coinInfo.styles,children:[!i&&b("div",{style:Dr.coinAmount.styles,children:[b(gk,{text:l("jolicoin.price"),initialFontSize:c,styles:Dr.coinLabelContainer.styles}),b("div",{style:Dr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Dr.gemIcon.styles:Dr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Dr.coinAmountBalance.styles,children:b(gk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Dr.coinValueText.styles})})]})},on={card:D`
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
294
294
|
align-items: center;
|
|
@@ -324,17 +324,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
324
324
|
font-size: 16px;
|
|
325
325
|
color: #C093FF;
|
|
326
326
|
font-weight: bold;
|
|
327
|
-
`},
|
|
327
|
+
`},i5=D`
|
|
328
328
|
box-sizing: border-box;
|
|
329
329
|
width: 100%;
|
|
330
330
|
aspect-ratio: 1/1;
|
|
331
|
-
`,
|
|
331
|
+
`,o5=D`
|
|
332
332
|
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
333
333
|
display: flex;
|
|
334
334
|
flex-direction: column;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
-webkit-tap-highlight-color: transparent;
|
|
337
|
-
`,
|
|
337
|
+
`,a5=e=>b("div",{style:i5.styles,children:b("div",{style:o5.styles,children:b("div",{style:`${on.card.styles} ${e.option.id===e.selectedId?on.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:on.coinContainer.styles,children:[b("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?on.gemIcon.styles:on.coinIcon.styles}),b("span",{style:on.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:on.price.styles,children:e.option.price})]})})}),s5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Ms})=>{let o=yo(),a=s=>{r==null||r(s)};return b(nC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(iC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>b(oC,{span:o==="landscape"?4:8,children:b(a5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},l5=Fu(s5);fs={toggleSwitch:D`
|
|
338
338
|
position: relative;
|
|
339
339
|
display: inline-block;
|
|
340
340
|
width: 33px;
|
|
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
371
371
|
&:before {
|
|
372
372
|
transform: translateX(18px);
|
|
373
373
|
}
|
|
374
|
-
`},
|
|
374
|
+
`},cC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>c5("label",{css:fs.toggleSwitch,children:[vk("input",{css:fs.toggleInput,type:"checkbox",checked:e,onChange:t}),vk("span",{css:[fs.toggleSlider,e&&fs.toggleSliderActive]})]}),Cp=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),me={modal:D`
|
|
375
375
|
font-family: PingFangSC-Regular;
|
|
376
376
|
background-color: #1a1a1a;
|
|
377
377
|
color: white;
|
|
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
459
459
|
border-radius: 2px;
|
|
460
460
|
margin: 0 auto;
|
|
461
461
|
-webkit-tap-highlight-color: transparent;
|
|
462
|
-
`},
|
|
462
|
+
`},u5=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=yo(),{t:p}=Bn(),f=()=>{i(c)},m=ar(()=>n==="JOLI_GEM"?kp:Ms,[n]),v=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),g=bt(()=>{d(!c),a(!c)},[c]);return b("div",{style:`${me.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:me.header.styles,children:[b(lC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),b("button",{style:me.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(Cp,{})})]}),b("div",{style:me.content.styles,children:[b("h2",{style:me.title.styles,children:p(v)}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
|
|
463
463
|
font-size: 12px;
|
|
464
464
|
font-weight: 400;
|
|
465
465
|
line-height: 1.2;
|
|
466
466
|
color: #979797;
|
|
467
|
-
`.styles,children:p(y)}),
|
|
467
|
+
`.styles,children:p(y)}),b(cC,{enableAutoDeduct:c,toggleEnableAutoDeduct:g})]}),b("section",{style:`${me.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:f,children:p(s)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},d5=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Bn(),[m,v]=Jt(()=>{var T,k;return((T=n.find(O=>O.defaultSelected))==null?void 0:T.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),y=yo(),g=()=>{o(m)},w=bt(T=>{console.log(T),v(T),l(T)},[]),S=bt(()=>{p(!u),s(!u)},[u]),A=ar(()=>i==="JOLI_GEM"?kp:Ms,[i]),R=ar(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:me.modal.styles,children:[b("div",{style:me.header.styles,children:[b(lC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:A,currency:i}),b("button",{style:me.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:b(Cp,{})})]}),b("div",{style:me.content.styles,children:[b("div",{style:D`
|
|
468
468
|
padding: 16px 0px;
|
|
469
|
-
`.styles,children:
|
|
469
|
+
`.styles,children:b(l5,{options:n.map(T=>({id:T.productId,coins:T.quantity,price:T.totalAmountStr})),coinImageSrc:A,selectedId:m,currency:i,onSelect:T=>w(T.id)})}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
font-weight: 400;
|
|
472
472
|
line-height: 1.2;
|
|
473
473
|
color: #979797;
|
|
474
|
-
`.styles,children:f(
|
|
474
|
+
`.styles,children:f(R)}),b(cC,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),b("section",{style:`${me.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:g,children:f(c)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};f5=D`
|
|
475
475
|
display: inline-flex;
|
|
476
476
|
align-items: center;
|
|
477
477
|
justify-content: center;
|
|
@@ -488,14 +488,14 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
488
488
|
white-space: nowrap;
|
|
489
489
|
text-overflow: ellipsis;
|
|
490
490
|
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
491
|
-
`,
|
|
491
|
+
`,h5=D`
|
|
492
492
|
position: absolute;
|
|
493
493
|
left: 20%;
|
|
494
494
|
bottom: -9px;
|
|
495
495
|
transform: translateX(-50%);
|
|
496
496
|
z-index: 2;
|
|
497
497
|
pointer-events: none;
|
|
498
|
-
`;
|
|
498
|
+
`;At=F(x({},me),{header:D`
|
|
499
499
|
display: flex;
|
|
500
500
|
justify-content: flex-end;
|
|
501
501
|
align-items: center;
|
|
@@ -549,7 +549,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
549
549
|
border-top: 8px solid #4f396d;
|
|
550
550
|
z-index: 2;
|
|
551
551
|
}
|
|
552
|
-
`}),CB={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},TB=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Dn(),c=CB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${St.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(kB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:St.header.styles,children:_("button",{style:`${St.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(hp,{})})}),_("div",{style:St.introduct.styles,children:[s?_("span",{style:St.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:St.introductTitle.styles,children:_(Qd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${St.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(xB,{children:_(Qd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${St.confirmButton.styles} ${St.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${St.cancelButton.styles} ${St.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},kA=e=>{let t=Ns({title:"",content:_(IB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},AA=e=>{let t=Ns({title:"",content:_(EB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},SA=e=>{let t=Ns({title:"",content:_(TB,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},xA=new Map,Cr=(e,t)=>{xA.set(e,t)};Cr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Cr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:wA;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Cr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:fp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});OB=/^\{slot-i18n-(.+?)\}/,PB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Dn(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Cr(OB,(e,t)=>{var n;let r=e[1];return r?_(PB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});RB=/^\{slot-i18ntran-(.+?)\}/,NB=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Dn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(Qd,{children:o||n,values:T(T({},t),a)})},DB={coin:e=>_(De,{children:[_("img",{src:wA,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Cr(RB,(e,t)=>{var n,i;let r=e[1];return r?_(NB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:DB,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});LB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Cr(/^\{slot-success\}/,(e,t)=>_("img",{src:LB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));MB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Cr(/^\{slot-error\}/,(e,t)=>_("img",{src:MB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));qB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";Cr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=qB,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});He="-ms-",ks="-moz-",$="-webkit-",CA="comm",mp="rule",vp="decl",UB="@import",TA="@keyframes",FB="@layer",jB=Math.abs,Ls=String.fromCharCode,JB=rp.default;Ms=1,Rn=1,PA=0,nt=0,Ae=0,Ln="";r5=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!uo(i);)pt();return ho(e,nt)},n5=function(e,t){var r=-1,n=44;do switch(uo(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=r5(nt-1,t,r);break;case 2:e[r]+=ys(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ls(n)}while(n=pt());return e},i5=function(e,t){return NA(n5(RA(e),t))},Dk=new tp.default,o5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Dk.get(r))&&!n){Dk.set(e,!0);for(var i=[],o=i5(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},a5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};s5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case vp:e.return=DA(e.value,e.length);break;case TA:return Tn([Zi(e,{value:W(e.value,"@","@"+$)})],n);case mp:if(e.length)return HB(e.props,function(i){switch(BB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tn([Zi(e,{props:[W(i,/:(read-\w+)/,":"+ks+"$1")]})],n);case"::placeholder":return Tn([Zi(e,{props:[W(i,/:(plac\w+)/,":"+$+"input-$1")]}),Zi(e,{props:[W(i,/:(plac\w+)/,":"+ks+"$1")]}),Zi(e,{props:[W(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},l5=[s5],c5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,nr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||l5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[o5,a5];{var c,d=[ZB,t5(function(m){c.insert(m)})],u=e5((0,As.default)(l).call(l,n,d)),p=function(m){return Tn(QB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Yk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};u5=function(e){var t=c5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xr(s,t.registered,void 0);return Os(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xr(s,t.registered),d="animation-"+c.name;return Lk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xr(s,t.registered);Lk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return jd(t.registered,r,d5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Jd.default)(so).call(so,null,t.registered),merge:(0,Jd.default)(jd).call(jd,null,t.registered,r)}},d5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,ro.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},p5=u5({key:"css"}),f5=p5.css,h5=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of xA.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(_("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=f5`
|
|
552
|
+
`}),g5={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},v5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Bn(),c=g5[t];return b("div",{style:{paddingTop:"80px"},children:b("section",{style:`${At.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[b(p5,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),b("div",{style:At.header.styles,children:b("button",{style:`${At.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:b(Cp,{})})}),b("div",{style:At.introduct.styles,children:[s?b("span",{style:At.introductSubTitle.styles,children:l("loginGuide.instead")}):null,b("span",{style:At.introductTitle.styles,children:b(cp,{children:l("loginGuide.introduct"),values:{coin:b("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),b("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:b("section",{style:`${At.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[b("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[b("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:b(m5,{children:b(cp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:b(De,{children:[b("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),b("button",{style:`${At.confirmButton.styles} ${At.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:b("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),b("button",{style:`${At.cancelButton.styles} ${At.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},uC=e=>{let t=Ls({title:"",content:b(u5,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},dC=e=>{let t=Ls({title:"",content:b(d5,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},pC=e=>{let t=Ls({title:"",content:b(v5,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},fC=new Map,Mr=(e,t)=>{fC.set(e,t)};Mr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Mr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:sC;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Mr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:kp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});y5=/^\{slot-i18n-(.+?)\}/,_5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Bn(),i=n(e,t);return b("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Mr(y5,(e,t)=>{var n;let r=e[1];return r?b(_5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});b5=/^\{slot-i18ntran-(.+?)\}/,w5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Bn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return b(cp,{children:o||n,values:x(x({},t),a)})},I5={coin:e=>b(De,{children:[b("img",{src:sC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Mr(b5,(e,t)=>{var n,i;let r=e[1];return r?b(w5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:I5,fallbackText:`[${r}]`}):b("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});E5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Mr(/^\{slot-success\}/,(e,t)=>b("img",{src:E5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));S5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Mr(/^\{slot-error\}/,(e,t)=>b("img",{src:S5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));k5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";Mr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=k5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});Ve="-ms-",As="-moz-",V="-webkit-",hC="comm",Ap="rule",xp="decl",C5="@import",mC="@keyframes",A5="@layer",x5=Math.abs,Us=String.fromCharCode,T5=hp.default;Fs=1,jn=1,vC=0,it=0,ke=0,Jn="";H5=function(e,t,r){for(var n=0,i=0;n=i,i=$t(),n===38&&i===12&&(t[r]=1),!go(i);)pt();return _o(e,it)},$5=function(e,t){var r=-1,n=44;do switch(go(n)){case 0:n===38&&$t()===12&&(t[r]=1),e[r]+=H5(it-1,t,r);break;case 2:e[r]+=ws(n);break;case 4:if(n===44){e[++r]=$t()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Us(n)}while(n=pt());return e},V5=function(e,t){return _C($5(yC(e),t))},bk=new fp.default,W5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!bk.get(r))&&!n){bk.set(e,!0);for(var i=[],o=V5(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},z5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};K5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xp:e.return=bC(e.value,e.length);break;case mC:return Mn([io(e,{value:W(e.value,"@","@"+V)})],n);case Ap:if(e.length)return P5(e.props,function(i){switch(R5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mn([io(e,{props:[W(i,/:(read-\w+)/,":"+As+"$1")]})],n);case"::placeholder":return Mn([io(e,{props:[W(i,/:(plac\w+)/,":"+V+"input-$1")]}),io(e,{props:[W(i,/:(plac\w+)/,":"+As+"$1")]}),io(e,{props:[W(i,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},Y5=[K5],Q5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||Y5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[W5,z5];{var c,d=[G5,J5(function(m){c.insert(m)})],u=B5((0,xs.default)(l).call(l,n,d)),p=function(m){return Mn(F5(m),u)};s=function(m,v,y,g){c=y,p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new Lk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};X5=function(e){var t=Q5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Lr(s,t.registered,void 0);return Ns(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Lr(s,t.registered),d="animation-"+c.name;return wk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Lr(s,t.registered);wk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Xd(t.registered,r,Z5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Zd.default)(fo).call(fo,null,t.registered),merge:(0,Zd.default)(Xd).call(Xd,null,t.registered,r)}},Z5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,so.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},e3=X5({key:"css"}),t3=e3.css,r3=(e,t)=>{var a;let r=x({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return b("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of fC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(b("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(b("span",{style:r,children:d}));break}}let o=t3`
|
|
553
553
|
display: 'flex',
|
|
554
554
|
alignItems: 'flex-start',
|
|
555
555
|
gap: '4px',
|
|
@@ -560,7 +560,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
560
560
|
fontWeight: 600,
|
|
561
561
|
lineHeight: '18px',
|
|
562
562
|
width: 'max-content'
|
|
563
|
-
`;return n.length===1?n[0]:
|
|
563
|
+
`;return n.length===1?n[0]:b("div",{className:o,children:n})},n3=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);an(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=ar(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
|
|
564
564
|
position: fixed;
|
|
565
565
|
left: 50%;
|
|
566
566
|
padding: 10px 16px;
|
|
@@ -610,7 +610,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
610
610
|
${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
|
|
611
611
|
`)}
|
|
612
612
|
`}
|
|
613
|
-
`;return
|
|
613
|
+
`;return b("div",{className:`toast toast-${t}`,style:c.styles,children:e})},i3=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Ik=Math.max(20,i3),Ek=12,wC=[],IC=[];Ur=(e,t)=>_(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield mk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?wC:IC;s.push(o);let l=r3(e,t),c=tC(),d=Qk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Sk(a),mk.release()}setTimeout(()=>Sk(a),0),kr(b(Kk,{value:n,children:b(Zk,{definition:d,children:b(n3,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),kk={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},o3=`
|
|
614
614
|
@keyframes spin {
|
|
615
615
|
0% {
|
|
616
616
|
transform: rotate(0deg);
|
|
@@ -619,7 +619,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
619
619
|
transform: rotate(360deg);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
`,y5=()=>_("div",{style:Fk.container,children:[_("style",{children:g5}),_("div",{style:Fk.spinner})]});W7=mo()});function qA(){return w(this,null,function*(){if(yp)return yp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return yp=r,r})}function UA(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(_p)return e.resolve(!0),e.promise;let t=yield qA();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;_p=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",T({eventType:G.View},o));let a=bA({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(_p=!1,s.type){case"quit":U("RecommendedGuide",{eventType:G.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;_5(c),U("GameItem",{eventType:G.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0);break}}});return e.promise})}var yp,_5,_p,FA=S(()=>{"use strict";B();_e();R();or();gt();yt();yp=null;qA();_5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},_p=!1});function w5(e){let t=T(T({},b5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:k,iframeTransition:x}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let A=document.createElement("div");if(A.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},A.appendChild(wt),A.appendChild(P),Q.appendChild(A),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=v,Q.appendChild(O)}ae.appendChild(Q),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&v()}),o&&y()}function g(){!ae||!Q||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!Q)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${C}px)`),P.preventDefault())},x=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",k),Q.addEventListener("touchend",x)}function v(){!ae||!Q||!u||(a?(Q.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Q=null,wt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function jA(){return window.joliboxUI=F(T({},window.joliboxUI),{createIframeModal:w5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,Q=null,wt=null}}var b5,ae,Q,wt,JA=S(()=>{"use strict";_e();B();R();b5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Q=null,wt=null});var VA={};xf(VA,{config:()=>R5});function E5(){fa.on("isAdShowing",e=>{js=e,hr(js)&&j("updateContainerConfigSync",{displayCapsuleButton:!js,webviewId:E.webviewId})})}function k5(){ne.on("onInterceptSystemExit",({intercept:e})=>{GA=e})}function A5(){ne.on("onInterceptBackPress",({intercept:e})=>{I5=e}),et("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;HA(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function S5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:Gs,timestamp:Date.now()})})}function x5(){et("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function C5(e){E.mpType==="game"&&It.start(e)}function T5(){et("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:Gs,timestamp:Date.now()}),C5(t),hA(()=>E.language)}),et("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;HA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function O5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),Us==null||Us(),Fs==null||Fs(),It.close(Date.now()-Gs)},t=()=>js||GA;mt.onDoExit(()=>w(this,null,function*(){return t()?!0:hr(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):Js!=null&&Js.canShowRecommended&&!BA&&(yield UA())?!0:(e(),!1)})),mt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function P5(){return w(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield te(e);t&&(Js=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function R5(){Gs=Date.now(),T5(),E5(),k5(),A5(),O5(),S5(),x5(),P5(),Fs=jA(),Us=nm()}var Us,Fs,Gs,js,Js,GA,I5,BA,HA,$A=S(()=>{"use strict";_e();B();R();yt();im();Sc();FA();gt();or();JA();js=!1,Js=null,GA=!1,I5=!1,BA=!1,HA=e=>{hr(e)&&(BA=e)};mt.onReady(()=>{})});var WA,N5,D5,L5,M5,zA=S(()=>{"use strict";R();tt();_e();B();WA=X(),N5="env",D5="getSystemInfoSync",L5=H(D5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),M5=H(N5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});WA.registerCommand("API.getSystemInfoSync",L5);WA.registerCommand("API.env",M5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var KA=h(bp=>{"use strict";R();tt();vt();_e();yt();B();var q5="exitGame",U5="onReady",F5="onJoliboxShow",j5="onJoliboxHide",Bs=X(),Hs=Go(xe),J5=we(q5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(bp,null,function*(){Hs(e).call(bp),hr(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Yf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),G5=H(F5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Hs(e);et("onJoliboxEnterForeground",()=>{t.call(this),mi.emit("visible",!0)})}}),B5=H(j5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Hs(e);et("onJoliboxEnterBackground",()=>{t.call(this),mi.emit("visible",!1)})}}),H5=H(U5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Hs(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Bs.registerCommand("LifecycleSDK.exit",J5);Bs.registerCommand("LifecycleSDK.onReady",H5);Bs.registerCommand("LifecycleSDK.onJoliboxShow",G5);Bs.registerCommand("LifecycleSDK.onJoliboxHide",B5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function YA(e){let t={};if(!qr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function QA(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function XA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function ZA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!qr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var eS=S(()=>{"use strict";R()});var V5,$5,wp,Ip,tS,W5,z5,K5,rS=S(()=>{"use strict";sn();gc();tt();eS();R();vt();B();V5=15,$5=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),wp=0,Ip=[],tS=Go(xe),W5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},z5=e=>{let t=new Ot,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=tS(i.fail);try{if(wp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=YA((s=i.headers)!=null?s:{}),y=QA(i.method),v=XA(i.timeout),b=ZA(i.url,y,d),k=tS(i.success),x=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let P=$5(b,x);{let{response:C}=yield P,{code:A,data:O,message:J}=C;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw mr({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:O,message:J!=null?J:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{wp-=1,(c=Ip.shift())==null||c()}});return wp>=V5?(r=()=>{W5(Ip,a=>a===o)},Ip.push(o)):o(),t.promise}})(e),{abort(){t.reject(mr({code:-1,msg:"request:fail abort"})),r()}}},K5=X();K5.registerCommand("HttpSDK.request",z5);L("request",{version:"1.0.0"})});var Y5,Q5,X5,Ep,nS=S(()=>{"use strict";R();_e();tt();Y5=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});Q5=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});X5=H("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Ep=X();Ep.registerCommand("KeyboardSDK.showKeyboard",Y5);Ep.registerCommand("KeyboardSDK.updateKeyboard",Q5);Ep.registerCommand("KeyboardSDK.hideKeyboard",X5)});var iS=h(Vs=>{"use strict";R();tt();yt();var kp=X(),Z5=we("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w(Vs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),e3=we("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w(Vs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),t3=we("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w(Vs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});kp.registerCommand("TaskTrackerSDK.levelFinished",Z5);kp.registerCommand("TaskTrackerSDK.gamePlayEnded",e3);kp.registerCommand("TaskTrackerSDK.levelUpgrade",t3);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Ap,Sp,xp,r3,oS,$s=S(()=>{"use strict";B();_e();tt();R();sn();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Ap=new Map;et("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Ap.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Ap.delete(r))});Sp=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw mr({code:-1,msg:"login failed"});let s=new Ot;Ap.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),xp=we("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield Sp(e!=null?e:{})})}}),r3=we("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),oS=X();oS.registerCommand("API.login",xp);oS.registerCommand("API.checkSession",r3)});var aS,sS=S(()=>{"use strict";aS=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Mn(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield hi(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=lS(i.data),a=aS(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function qn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield hi(e),n=lS((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield ua(e,JSON.stringify(n))})}var lS,cS,uS,dS,pS,fS,hS,mS,vS,gS,yS,_S,bS,Ws=S(()=>{"use strict";da();sS();lS=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};cS=Mn("joli_coin_use_modal_frequency"),uS=Mn("joli_coin_payment_frequency"),dS=Mn("joli_coin_unlogin_modal_frequency"),pS=Mn("joli_gem_use_modal_frequency"),fS=Mn("joli_gem_payment_frequency"),hS=Mn("joli_gem_unlogin_modal_frequency");mS=qn("joli_coin_use_modal_frequency"),vS=qn("joli_coin_payment_frequency"),gS=qn("joli_coin_unlogin_modal_frequency"),yS=qn("joli_gem_use_modal_frequency"),_S=qn("joli_gem_payment_frequency"),bS=qn("joli_gem_unlogin_modal_frequency")});var Cp,zs,Tp=S(()=>{"use strict";gt();Cp=Promise.resolve(),zs=(e,t)=>w(void 0,null,function*(){Cp=Cp.then(()=>w(void 0,null,function*(){yield te(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Cp})});var Ks,Ys,xt,Qs,Xr,Or,ar,Xs,Un,n3,q,Fn,jn,Xe=S(()=>{"use strict";R();Ks="UNLOCK_OPTIONS_CHANGED",Ys="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",Qs="ON_USE_MODAL_EVENT",Xr="ON_USE_MODAL_RESULT",Or="ON_USE_MODAL_FREQUENCY",ar="ON_USE_UNLOGIN_MODAL_EVENT",Xs="INVOKE_UNLOGIN_MODAL_EVENT",Un=new Nt,n3=()=>({on:Un.on.bind(Un),off:Un.off.bind(Un),emit:Un.emit.bind(Un)}),q=n3(),Fn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},jn={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Pr=S(()=>{"use strict"});var ES=h(Op=>{"use strict";Ws();Tp();Xe();Xe();or();yt();R();Pr();var i3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:cS,frequencyUpdater:mS,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:pS,frequencyUpdater:yS,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},wS=mo(),IS=it(q,Or);IS.getData();q.on(Qs,(e,t)=>w(Op,null,function*(){let r=t.currency,n=i3[r];if(e.includes("ADS-")){yield wS.show({duration:3e3});let l=yield IS.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),wS.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(Xr,{useModalResult:"CONFIRM"});return}if(!c){q.emit(Xr,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:G.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=kA({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:G.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(Xr,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:r}),q.emit(Xr,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Op,null,function*(){yield zs(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function kS(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return xe(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var AS=S(()=>{"use strict";vt()});var Zs=S(()=>{"use strict"});var o3,Jn,Rr,a3,Zr,Pp=S(()=>{"use strict";Zs();R();B();gt();o3=()=>{let[e,t]=[uh,ph].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Jn,createPaymentInternalError:Rr}=o3(),a3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Zr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Jn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Jn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${a3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Rp,xS,CS=S(()=>{"use strict";gt();Pp();Zs();Rp=class extends Zr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Jn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Rr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},xS=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Rp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var TS,OS=S(()=>{"use strict";TS={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var Np,PS,Dp,Lp,s3,Mp,RS=S(()=>{"use strict";gt();Pp();Zs();_e();R();B();or();OS();Np=new Map;et("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Np.get(t);if(o){if(r==="SUCCESS")Tr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&ih(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Rr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=TS[r];a&&Tr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Np.delete(t)}});PS=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Rr("orderUUID is null",1002);Np.set(r,t)}catch(o){throw Rr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Dp=class extends Zr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield PS({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Lp=class extends Zr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield PS({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Rr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},s3={android:Dp,ios:Lp},Mp=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=s3[E.platform];if(!s)throw Rr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Jn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var vo,NS=S(()=>{"use strict";AS();CS();RS();vo=kS();vo.registerPaymentHandler("JOLI_COIN",xS());vo.registerPaymentHandler("JOLI_COIN_IAP",Mp());vo.registerPaymentHandler("JOLI_GEM_IAP",Mp())});var LS=h(go=>{"use strict";Xe();or();gt();B();$s();R();Ws();NS();or();tt();_e();R();yt();Tp();Pr();var l3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:uS,frequencyUpdater:vS,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:fS,frequencyUpdater:_S,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Gn=mo(),c3=it(q,Or);q.on(Ys,(e,t)=>w(go,null,function*(){var r,n;try{let i=t.currency,o=l3[i];if(!$h("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Gn.show({duration:3e3});let l=yield c3.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Gn.hide(),!c){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Gn.show({duration:3e3});let a=yield DS(o.apiEndpoint);if(Gn.hide(),!a){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:G.View,currency:i});let s=AA({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return F(T({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(go,null,function*(){var u,p,f,m,g,y,v,b;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:G.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield xp({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let x=yield DS(o.apiEndpoint);if(((m=x==null?void 0:x.balance)!=null?m:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(g=a==null?void 0:a.paymentChoices)==null?void 0:g.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){q.emit(xt,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Gn.show({duration:3e3});let{code:d}=yield vo.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Gn.hide(),U(o.trackEvents.payResult,{eventType:G.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(v=a.paymentChoices.find(k=>k.productId===l))==null?void 0:v.totalAmountStr)!=null?b:"",payResult:d}),console.log("payment result",d),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{q.emit(xt,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(go,null,function*(){yield zs(l,o.apiEndpointAutoDeduct)})},onSelect:l=>{var c,d;U(o.trackEvents.orderClick,{targetType:"game",eventType:G.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));var u3=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!tc(r.totalAmountStr))},DS=e=>w(go,null,function*(){var n,i,o,a,s,l,c,d,u,p;let{response:t}=yield te(e,{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",t);let{data:r}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(a=(o=(i=(n=t.data)==null?void 0:n.data)==null?void 0:i.paymentChoices)==null?void 0:o.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?a:[]});if((s=t.data)!=null&&s.data&&r&&u3((l=t.data)==null?void 0:l.data,r),console.info("productDetails",(c=t.data)==null?void 0:c.data),((u=(d=t.data)==null?void 0:d.data)==null?void 0:u.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(p=t.data)==null?void 0:p.data})});var qS=h(el=>{"use strict";Xe();Pr();Ws();gt();vt();R();$s();or();yt();var d3={JOLI_COIN:{frequencyChecker:dS,frequencyUpdater:gS,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:hS,frequencyUpdater:bS,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},MS=it(q,Or);MS.getData();q.on(Xs,(e,t)=>w(el,null,function*(){var r;try{let n=t.currency,i=d3[n];if(e.includes("ADS-")){let s=yield MS.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(ar,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(ar,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield p3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(ar,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:G.Expose,currency:n},G.Expose);let a=SA({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(el,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:G.Click,currency:n},G.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Sp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:G.Click,currency:n},G.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Tr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(ar,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:G.Hide,currency:n},G.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:G.Click,currency:n},G.Click),q.emit(ar,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){xe(new fh(n)),q.emit(ar,{result:"FAILED"})}}));var p3=()=>w(el,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var WX,zX,KX,US=S(()=>{"use strict";WX=ie(ES()),zX=ie(LS()),KX=ie(qS())});function k3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function A3(e){return typeof e=="string"}function S3(e){return typeof e=="undefined"}function x3(e){return S3(e)||e===null}function C3(e){return typeof e=="function"}function hx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function yo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function il(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function L3(e){let t=e.location?il(e.location,HS):null,r=e.target?il(e.target,HS):null;return il(w3(b3({},e),{location:t,target:r}),N3)}function M3(e){let t=e.events.map(n=>L3(n)),r=il(e.device,D3);return[e.protocolVersion,t,r,e.project]}function q3(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function G3(e){return new Promise(t=>yx(e)(t))}function yx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function B3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Eo(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function V3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)$3(e[n],t[n])}function $3(e,t){if(A3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(C3(t)){try{if(e instanceof t)return}catch(r){}if(!x3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=W3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W3(e){var t=z3(e,"string");return typeof t=="symbol"?t:t+""}function z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tl(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=Y3(e,"string");return typeof t=="symbol"?t:t+""}function Y3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rl(e,t,r){return(t=Q3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q3(e){var t=X3(e,"string");return typeof t=="symbol"?t:t+""}function X3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sr(e,t,r){return(t=Z3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z3(e){var t=eH(e,"string");return typeof t=="symbol"?t:t+""}function eH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function lH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function wx(e){return e.trim()}function cH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Qp(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function ko(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function hf(e){return e.length}function nl(e,t){return t.push(e),e}function uH(e,t){return e.map(t).join("")}function _l(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:yl,column:zn,length:a,return:""}}function bo(e,t){return sH(_l("",null,null,"",null,null,0),e,{length:-e.length},t)}function dH(){return Se}function pH(){return Se=lt>0?Ue(Kn,--lt):0,zn--,Se===10&&(zn=1,yl--),Se}function ht(){return Se=lt<Ix?Ue(Kn,lt++):0,zn++,Se===10&&(zn=1,yl++),Se}function Vt(){return Ue(Kn,lt)}function ol(){return lt}function So(e,t){return ko(Kn,e,t)}function Ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ex(e){return yl=zn=1,Ix=Ht(Kn=e),lt=0,[]}function kx(e){return Kn="",e}function al(e){return wx(So(lt-1,Xp(e===91?e+2:e===40?e+1:e)))}function fH(e){for(;(Se=Vt())&&Se<33;)ht();return Ao(e)>2||Ao(Se)>3?"":" "}function hH(e,t){for(;--t&&ht()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return So(e,ol()+(t<6&&Vt()==32&&ht()==32))}function Xp(e){for(;ht();)switch(Se){case e:return lt;case 34:case 39:e!==34&&e!==39&&Xp(Se);break;case 40:e===41&&Xp(e);break;case 92:ht();break}return lt}function mH(e,t){for(;ht()&&e+Se!==57&&!(e+Se===84&&Vt()===47););return"/*"+So(t,lt-1)+"*"+gl(e===47?e:ht())}function vH(e){for(;!Ao(Vt());)ht();return So(e,lt)}function gH(e){return kx(sl("",null,null,null,[""],e=Ex(e),0,[0],e))}function sl(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=ht()){case 40:if(m!=108&&Ue(A,u-1)==58){Qp(A+=K(al(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=al(b);break;case 9:case 10:case 13:case 32:A+=fH(m);break;case 92:A+=hH(ol()-1,7);continue;case 47:switch(Vt()){case 42:case 47:nl(yH(mH(ht(),ol()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=Ht(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(A=K(A,/\f/g,"")),f>0&&Ht(A)-u&&nl(f>32?zS(A+";",n,r,u-1):zS(K(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(nl(C=WS(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)sl(A,t,C,C,x,o,u,s,P);else switch(p===99&&Ue(A,3)===110?100:p){case 100:case 108:case 109:case 115:sl(e,C,C,n&&nl(WS(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:sl(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+Ht(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&pH()==125)continue}switch(A+=gl(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ht(A)-1)*v,v=1;break;case 64:Vt()===45&&(A+=al(ht())),p=Vt(),d=u=Ht(k=A+=vH(ol())),b++;break;case 45:m===45&&Ht(A)==2&&(g=0)}}return o}function WS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=hf(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=ko(e,u+1,u=aH(g=a[m])),k=e;v<f;++v)(k=wx(g>0?p[v]+" "+b:K(b,/&\f/g,p[v])))&&(l[y++]=k);return _l(e,t,r,i===0?pf:s,l,c,d)}function yH(e,t,r){return _l(e,t,r,_x,gl(dH()),ko(e,2,-2),0)}function zS(e,t,r,n){return _l(e,t,r,ff,ko(e,0,n),ko(e,n+1,-1),n)}function Wn(e,t){for(var r="",n=hf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function _H(e,t,r,n){switch(e.type){case oH:if(e.children.length)break;case iH:case ff:return e.return=e.return||e.value;case _x:return"";case bx:return e.return=e.value+"{"+Wn(e.children,n)+"}";case pf:e.value=e.props.join(",")}return Ht(r=Wn(e.children,n))?e.return=e.value+"{"+r+"}":""}function bH(e){var t=hf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function wH(e){return function(t){t.root||(t=t.return)&&e(t)}}function IH(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ax(e,t){switch(lH(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+dl+e+$e+e+e;case 6828:case 4268:return z+e+$e+e+e;case 6165:return z+e+$e+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return z+e+$e+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+$e+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+$e+K(e,"shrink","negative")+e;case 5292:return z+e+$e+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+$e+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+dl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qp(e,"stretch")?Ax(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Ht(e)-3-(~Qp(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$e+e+e}return e}function PH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function pl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Nr={name:i.name,styles:i.styles,next:Nr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Nr={name:a.name,styles:a.styles,next:Nr},a=a.next;var s=o.styles+";";return s}return LH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function LH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=pl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":YS(s)&&(n+=Up(o)+":"+QS(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)YS(a[l])&&(n+=Up(o)+":"+QS(o,a[l])+";");else{var c=pl(e,t,a);switch(o){case"animation":case"animationName":{n+=Up(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Fp(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Nr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=pl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=pl(r,t,e[s]),n){var l=o;i+=l[s]}XS.lastIndex=0;for(var c="",d;(d=XS.exec(i))!==null;)c+="-"+d[1];var u=PH(i)+c;return{name:u,styles:i,next:Nr}}function xx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function ZS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ex(e,t,r){var n=[],i=xx(e,n,r);return n.length<2?r:i+t(n)}function JH(e,t){Pe.__h&&Pe.__h(ft,e,rx||t),rx=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Tx(e,t){var r=JH(Zp++,7);return HH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function GH(){for(var e;e=Cx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ll),e.__H.__h.forEach(ef),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function BH(e){var t,r=function(){clearTimeout(n),cx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);cx&&(t=requestAnimationFrame(r))}function ll(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function ef(e){var t=ft;e.__c=e.__(),ft=t}function HH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function bl(){if(Dr>1)Dr--;else{for(var e,t=!1;wo!==void 0;){var r=wo;for(wo=void 0,tf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Px(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(tf=0,Dr--,t)throw e}}function st(e){if(Dr>0)return e();Dr++;try{return e()}finally{bl()}}function Ox(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function Px(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Rx(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Nx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Qn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=fl-1,this.f=4}function Io(e){return new Qn(e)}function Dx(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Dr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,mf(e),n}finally{ee=r,bl()}}}function mf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dx(e)}function $H(e){if(ee!==this)throw new Error("Out-of-order effect");Nx(this),ee=e,this.f&=-2,8&this.f&&mf(this),bl()}function xo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Co(e){var t=new xo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Xn(e,t){N[e]=t.bind(null,N[e]||function(){})}function hl(e){Jp&&Jp(),Jp=e&&e.S()}function qx(e){var t=this,r=e.data,n=Ux(r);n.value=r;var i=Tx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Io(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Io(function(){return!Array.isArray(c.value)&&!Oc(c.value)}),u=Co(function(){if(this.N=Fx,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function WH(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:Co(function(){this.N=Fx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Ux(e){return Tx(function(){return re(e)},[])}function KH(){st(function(){for(var e;e=Mx.shift();)Lx.call(e)})}function Fx(){Mx.push(this)===1&&(N.requestAnimationFrame||zH)(KH)}function YH(e,t){let r=Ui(e);bn(()=>{r.current=e},[e]),qi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--QH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function lr(e,t,r){return(t=c4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c4(e){var t=u4(e,"string");return typeof t=="symbol"?t:t+""}function u4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=h4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h4(e){var t=m4(e,"string");return typeof t=="symbol"?t:t+""}function m4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=v4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v4(e){var t=g4(e,"string");return typeof t=="symbol"?t:t+""}function g4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=y4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y4(e){var t=_4(e,"string");return typeof t=="symbol"?t:t+""}function _4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t,r){return(t=b4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b4(e){var t=w4(e,"string");return typeof t=="symbol"?t:t+""}function w4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gp(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return(t=k4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4(e){var t=A4(e,"string");return typeof t=="symbol"?t:t+""}function A4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t,r){return(t=S4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S4(e){var t=x4(e,"string");return typeof t=="symbol"?t:t+""}function x4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f3,ul,ux,dx,FS,h3,m3,px,v3,g3,jS,y3,_3,JS,b3,w3,I3,fx,E3,T3,O3,GS,P3,BS,R3,mx,vx,gx,HS,N3,D3,Vn,VS,Bp,ue,U3,F3,_o,Eo,j3,Vp,J3,qp,H3,$p,$S,Bn,Wp,zp,Kp,Yp,nH,$e,dl,z,_x,pf,ff,iH,bx,oH,aH,gl,sH,yl,zn,Ix,lt,Se,Kn,EH,kH,AH,KS,SH,xH,CH,TH,OH,RH,NH,DH,Sx,YS,Up,QS,XS,Nr,MH,qH,UH,FH,jH,Yn,Zp,ft,jp,tx,rx,Cx,Pe,nx,ix,ox,ax,sx,lx,cx,VH,ee,wo,Dr,tf,fl,Lx,Jp,Mx,zH,We,QH,XH,ur,rf,nf,cl,ZH,e4,t4,r4,n4,i4,o4,a4,s4,l4,of,$n,Hn,d4,p4,f4,af,jx,sf,lf,cf,uf,ml,df,vl,XX,Jx=S(()=>{"use strict";un();Ra();f3=Object.defineProperty,ul=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable,FS=(e,t,r)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h3=(e,t)=>{for(var r in t||(t={}))ux.call(t,r)&&FS(e,r,t[r]);if(ul)for(var r of ul(t))dx.call(t,r)&&FS(e,r,t[r]);return e},m3=(e,t)=>{var r={};for(var n in e)ux.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ul)for(var n of ul(e))t.indexOf(n)<0&&dx.call(e,n)&&(r[n]=e[n]);return r},px=Object.defineProperty,v3=Object.defineProperties,g3=Object.getOwnPropertyDescriptors,jS=Object.getOwnPropertySymbols,y3=Object.prototype.hasOwnProperty,_3=Object.prototype.propertyIsEnumerable,JS=(e,t,r)=>t in e?px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b3=(e,t)=>{for(var r in t||(t={}))y3.call(t,r)&&JS(e,r,t[r]);if(jS)for(var r of jS(t))_3.call(t,r)&&JS(e,r,t[r]);return e},w3=(e,t)=>v3(e,g3(t)),I3=(e,t)=>{for(var r in t)px(e,r,{get:t[r],enumerable:!0})},fx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},E3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}T3=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(T3||{});O3={log:yo("log"),warn:yo("warn"),info:yo("info"),error:yo("error"),debug:yo("debug")};Object.assign(globalThis,{logger:O3});GS=Symbol.for("Jolibox.canIUseMap"),P3={};globalThis[GS]||(globalThis[GS]=P3);BS=Symbol.for("Jolibox.canIUseMap.native"),R3={};globalThis[BS]||(globalThis[BS]=R3);mx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(mx||{}),vx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(vx||{}),gx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(gx||{}),HS=["name","params"],N3=["name","type","location","target","extra","timestamp","userId"],D3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];q3();Vn=typeof window=="undefined",VS=()=>!Vn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Vn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Vn&&navigator.userAgent.includes("Android"),!Vn&&navigator.userAgent.includes("Mac"),!Vn&&navigator.userAgent.includes("FB_IAB"),!Vn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Bp=class Hp{constructor(t){this.element=t,this.next=Hp.Undefined,this.prev=Hp.Undefined}};Bp.Undefined=new Bp(void 0);ue=Bp,U3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},F3=0,_o=class{constructor(e){this.value=e,this.id=F3++}},Eo=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof _o&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new _o(e);return this._listeners?this._listeners instanceof _o?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof _o)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof _o?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},j3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Eo,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new U3,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Vp={};I3(Vp,{None:()=>J3,filter:()=>B3,once:()=>yx,toPromise:()=>G3});J3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});qp=Symbol.for("Jolibox.hostEmitter"),H3=()=>{let e=new j3;return globalThis[qp]||(globalThis[qp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[qp]};H3();$p=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Eo,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return V3(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};$p=fx([hx],$p);$S=class{constructor(){this._onWillExecuteCommand=new Eo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Eo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new $p,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=k3(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return E3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Vp.toPromise(Vp.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};$S=fx([hx],$S);Bn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Wp=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",h3({userEvent:a},this.paramsToTrack)),VS()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Bn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Bn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),VS()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Bn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(c=this.currentProvider)==null?void 0:c.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};zp=class{constructor(t){tl(this,"context",void 0),tl(this,"adBreakIsShowing",!1),tl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),tl(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};Kp=class{constructor(t){rl(this,"configs",null),rl(this,"firstRun",!0),rl(this,"context",void 0),rl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Yp=class{constructor(t,r){sr(this,"name","ADSENSE"),sr(this,"context",void 0),sr(this,"contextInfo",void 0),sr(this,"configured",!1),sr(this,"initParams",void 0),sr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),sr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=m3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),sr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),sr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};nH=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=tH(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",dl="-moz-",z="-webkit-",_x="comm",pf="rule",ff="decl",iH="@import",bx="@keyframes",oH="@layer",aH=Math.abs,gl=String.fromCharCode,sH=Object.assign;yl=1,zn=1,Ix=0,lt=0,Se=0,Kn="";EH=function(e,t,r){for(var n=0,i=0;n=i,i=Vt(),n===38&&i===12&&(t[r]=1),!Ao(i);)ht();return So(e,lt)},kH=function(e,t){var r=-1,n=44;do switch(Ao(n)){case 0:n===38&&Vt()===12&&(t[r]=1),e[r]+=EH(lt-1,t,r);break;case 2:e[r]+=al(n);break;case 4:if(n===44){e[++r]=Vt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=gl(n)}while(n=ht());return e},AH=function(e,t){return kx(kH(Ex(e),t))},KS=new WeakMap,SH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!KS.get(r))&&!n){KS.set(e,!0);for(var i=[],o=AH(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},xH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};CH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ff:e.return=Ax(e.value,e.length);break;case bx:return Wn([bo(e,{value:K(e.value,"@","@"+z)})],n);case pf:if(e.length)return uH(e.props,function(i){switch(cH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([bo(e,{props:[K(i,/:(read-\w+)/,":"+dl+"$1")]})],n);case"::placeholder":return Wn([bo(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),bo(e,{props:[K(i,/:(plac\w+)/,":"+dl+"$1")]}),bo(e,{props:[K(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},TH=[CH],OH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||TH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[SH,xH];{var c,d=[_H,wH(function(m){c.insert(m)})],u=bH(l.concat(n,d)),p=function(m){return Wn(gH(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new nH({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};RH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},NH=/[A-Z]|^ms/g,DH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sx=function(e){return e.charCodeAt(1)===45},YS=function(e){return e!=null&&typeof e!="boolean"},Up=IH(function(e){return Sx(e)?e:e.replace(NH,"-$&").toLowerCase()}),QS=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(DH,function(r,n,i){return Nr={name:n,styles:i,next:Nr},n})}return RH[e]!==1&&!Sx(e)&&typeof t=="number"&&t!==0?t+"px":t};XS=/label:\s*([^\s;{]+)\s*(;|$)/g;MH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},qH=function(e,t,r){MH(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};UH=function(e){var t=OH(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Fp(s,t.registered,void 0);return qH(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Fp(s,t.registered),d="animation-"+c.name;return ZS(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Fp(s,t.registered);ZS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ex(t.registered,r,FH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:xx.bind(null,t.registered),merge:ex.bind(null,t.registered,r)}},FH=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},jH=UH({key:"css"}),Yn=jH.css,rx=0,Cx=[],Pe=N,nx=Pe.__b,ix=Pe.__r,ox=Pe.diffed,ax=Pe.__c,sx=Pe.unmount,lx=Pe.__;Pe.__b=function(e){ft=null,nx&&nx(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lx&&lx(e,t)},Pe.__r=function(e){ix&&ix(e),Zp=0;var t=(ft=e.__c).__H;t&&(jp===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ll),t.__h.forEach(ef),t.__h=[],Zp=0)),jp=ft},Pe.diffed=function(e){ox&&ox(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Cx.push(t)!==1&&tx===Pe.requestAnimationFrame||((tx=Pe.requestAnimationFrame)||BH)(GH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),jp=ft=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ll),r.__h=r.__h.filter(function(n){return!n.__||ef(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),ax&&ax(e,t)},Pe.unmount=function(e){sx&&sx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ll(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};cx=typeof requestAnimationFrame=="function";VH=Symbol.for("preact-signals");ee=void 0,wo=void 0,Dr=0,tf=0,fl=0;Fe.prototype.brand=VH;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return Co(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Ox(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(tf>100)throw new Error("Cycle detected");this.v=e,this.i++,fl++,Dr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{bl()}}}});(Qn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fl))return!0;if(this.g=fl,this.f|=1,this.i>0&&!Px(this))return this.f&=-2,!0;var e=ee;try{Rx(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,Nx(this),this.f&=-2,!0};Qn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Qn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Qn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Qn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ox(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});xo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};xo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dx(this),Rx(this),Dr++;var e=ee;return ee=this,$H.bind(this,e)};xo.prototype.N=function(){2&this.f||(this.f|=2,this.o=wo,wo=this)};xo.prototype.d=function(){this.f|=8,1&this.f||mf(this)};Mx=[];Co(function(){Lx=this.N})();qx.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Xn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Xn("__r",function(e,t){hl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Co(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),hl(r),e(t)});Xn("__e",function(e,t,r,n){hl(),e(t,r,n)});Xn("diffed",function(e,t){hl();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=WH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Xn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};zH=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=Yn`
|
|
622
|
+
`,a3=()=>b("div",{style:kk.container,children:[b("style",{children:o3}),b("div",{style:kk.spinner})]});jY=bo()});function EC(){return _(this,null,function*(){if(Op)return Op;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return Op=r,r})}function SC(){return _(this,null,function*(){let e=new Rt;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(Rp)return e.resolve(!0),e.promise;let t=yield EC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Rp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",x({eventType:J.View},o));let a=aC({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Rp=!1,s.type){case"quit":U("RecommendedGuide",{eventType:J.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;s3(c),U("GameItem",{eventType:J.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Op,s3,Rp,kC=C(()=>{"use strict";B();be();P();cr();vt();yt();Op=null;EC();s3=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},Rp=!1});function c3(e){let t=x(x({},l3),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:w,containerTransition:S,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${S};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,wt.src=r,wt.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),wt.style.opacity="1",v(),l==null||l(),te.emit("onModalIframeLoaded",{url:r})},k.appendChild(wt),k.appendChild(R),X.appendChild(k),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=g,X.appendChild(O)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&g()}),o&&y()}function v(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!X)return;let w=R=>{c=R.touches[0].clientY},S=R=>{if(!u)return;d=R.touches[0].clientY;let T=d-c;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),R.preventDefault())},A=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-c>80?g():X.style.transform="translateY(0)")};X.addEventListener("touchstart",w),X.addEventListener("touchmove",S),X.addEventListener("touchend",A)}function g(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,wt=null,s==null||s(),te.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:g}}function CC(){return window.joliboxUI=F(x({},window.joliboxUI),{createIframeModal:c3}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,X=null,wt=null}}var l3,ae,X,wt,AC=C(()=>{"use strict";be();B();P();l3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,wt=null});var RC={};ph(RC,{config:()=>b3});function d3(){ga.on("isAdShowing",e=>{Js=e,Sr(Js)&&j("updateContainerConfigSync",{displayCapsuleButton:!Js,webviewId:E.webviewId})})}function p3(){te.on("onInterceptSystemExit",({intercept:e})=>{xC=e})}function f3(){te.on("onInterceptBackPress",({intercept:e})=>{u3=e}),rt("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;OC(t),te.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function h3(){te.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:$s,timestamp:Date.now()})})}function m3(){rt("onI18nChanged",({language:e})=>{te.emit("onI18nChanged",{i18n:e})})}function g3(e){E.mpType==="game"&&Et.start(e)}function v3(){rt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),te.emit("LifecycleEvent.onReady",x({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:$s,timestamp:Date.now()}),g3(t),eC(()=>E.language)}),rt("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;OC(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function y3(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),Gs==null||Gs(),Bs==null||Bs(),Et.close(Date.now()-$s)},t=()=>Js||xC;mt.onDoExit(()=>_(this,null,function*(){return t()?!0:Sr(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):Hs!=null&&Hs.canShowRecommended&&!TC&&(yield SC())?!0:(e(),!1)})),mt.onDoBackPress(()=>_(this,null,function*(){return!!t()}))}function _3(){return _(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(Hs=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function b3(){$s=Date.now(),v3(),d3(),p3(),f3(),y3(),h3(),m3(),_3(),Bs=CC(),Gs=Jm()}var Gs,Bs,$s,Js,Hs,xC,u3,TC,OC,PC=C(()=>{"use strict";be();B();P();yt();Hm();Uc();kC();vt();cr();AC();Js=!1,Hs=null,xC=!1,u3=!1,TC=!1,OC=e=>{Sr(e)&&(TC=e)};mt.onReady(()=>{})});var NC,w3,I3,E3,S3,DC=C(()=>{"use strict";P();Qe();be();B();NC=Y(),w3="env",I3="getSystemInfoSync",E3=H(I3,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),S3=H(w3,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});NC.registerCommand("API.getSystemInfoSync",E3);NC.registerCommand("API.env",S3);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var qC=h(Pp=>{"use strict";P();Qe();gt();be();yt();B();var k3="exitGame",C3="onReady",A3="onJoliboxShow",x3="onJoliboxHide",Vs=Y(),Ws=$o(Ae),T3=ue(k3,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>_(Pp,null,function*(){Ws(e).call(Pp),Sr(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&qh("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield _e("exitAppAsync")})}),O3=H(A3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Ws(e);rt("onJoliboxEnterForeground",()=>{t.call(this),wi.emit("visible",!0)})}}),R3=H(x3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Ws(e);rt("onJoliboxEnterBackground",()=>{t.call(this),wi.emit("visible",!1)})}}),P3=H(C3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Ws(e);te.on("LifecycleEvent.onReady",r=>{t(r)})}});Vs.registerCommand("LifecycleSDK.exit",T3);Vs.registerCommand("LifecycleSDK.onReady",P3);Vs.registerCommand("LifecycleSDK.onJoliboxShow",O3);Vs.registerCommand("LifecycleSDK.onJoliboxHide",R3);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function LC(e){let t={};if(!$r(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function MC(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function UC(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function FC(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!$r(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var jC=C(()=>{"use strict";P()});var N3,D3,Np,Dp,GC,q3,L3,M3,BC=C(()=>{"use strict";Wr();Tc();Qe();jC();P();gt();B();N3=15,D3=Wo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),Np=0,Dp=[],GC=$o(Ae),q3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},L3=e=>{let t=new Rt,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>_(this,null,function*(){var s,l,c;let a=GC(i.fail);try{if(Np+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=LC((s=i.headers)!=null?s:{}),y=MC(i.method),g=UC(i.timeout),w=FC(i.url,y,d),S=GC(i.success),A=Object.assign({},i,{method:y,header:m?void 0:v,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});g&&(A.timeout=g);let R=D3(w,A);{let{response:T}=yield R,{code:k,data:O,message:G}=T;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw qt({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:O,message:G!=null?G:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Np-=1,(c=Dp.shift())==null||c()}});return Np>=N3?(r=()=>{q3(Dp,a=>a===o)},Dp.push(o)):o(),t.promise}})(e),{abort(){t.reject(qt({code:-1,msg:"request:fail abort"})),r()}}},M3=Y();M3.registerCommand("HttpSDK.request",L3);q("request",{version:"1.0.0"})});var U3,F3,j3,qp,JC=C(()=>{"use strict";P();be();Qe();U3=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(x({},e),{defaultValue:r,maxLength:t}))}});q("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});F3=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});j3=H("hideKeyboard",{implement(){j("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});qp=Y();qp.registerCommand("KeyboardSDK.showKeyboard",U3);qp.registerCommand("KeyboardSDK.updateKeyboard",F3);qp.registerCommand("KeyboardSDK.hideKeyboard",j3)});var HC=h(zs=>{"use strict";P();Qe();yt();var Lp=Y(),G3=ue("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>_(zs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Et.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Et.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),B3=ue("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>_(zs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Et.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Et.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),J3=ue("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>_(zs,[r],function*({levelId:e,name:t}){let n=[];n.push(Et.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Et.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Lp.registerCommand("TaskTrackerSDK.levelFinished",G3);Lp.registerCommand("TaskTrackerSDK.gamePlayEnded",B3);Lp.registerCommand("TaskTrackerSDK.levelUpgrade",J3);q("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Mp,Up,Fp,H3,$C,Ks=C(()=>{"use strict";B();be();Qe();P();Wr();q("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Mp=new Map;rt("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Mp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Mp.delete(r))});Up=(e,t=!1)=>_(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield _e("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw qt({code:-1,msg:"login failed"});let s=new Rt;Mp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Be(p,["extra"]);return te.emit("onLoginComplete",d),t?l:d}),Fp=ue("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return _(this,null,function*(){return yield Up(e!=null?e:{})})}}),H3=ue("checkSession",{implement(){return _(this,null,function*(){let{data:{isLogin:e}}=yield _e("checkLoginAsync");return{isLogin:e}})}}),$C=Y();$C.registerCommand("API.login",Fp);$C.registerCommand("API.checkSession",H3)});var VC,WC=C(()=>{"use strict";VC=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Hn(e){return t=>_(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield bi(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=zC(i.data),a=VC(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function $n(e){return()=>_(this,null,function*(){var i;let t=Date.now(),r=yield bi(e),n=zC((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield fa(e,JSON.stringify(n))})}var zC,KC,YC,QC,XC,ZC,eA,tA,rA,nA,iA,oA,aA,Ys=C(()=>{"use strict";ha();WC();zC=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};KC=Hn("joli_coin_use_modal_frequency"),YC=Hn("joli_coin_payment_frequency"),QC=Hn("joli_coin_unlogin_modal_frequency"),XC=Hn("joli_gem_use_modal_frequency"),ZC=Hn("joli_gem_payment_frequency"),eA=Hn("joli_gem_unlogin_modal_frequency");tA=$n("joli_coin_use_modal_frequency"),rA=$n("joli_coin_payment_frequency"),nA=$n("joli_coin_unlogin_modal_frequency"),iA=$n("joli_gem_use_modal_frequency"),oA=$n("joli_gem_payment_frequency"),aA=$n("joli_gem_unlogin_modal_frequency")});var jp,Qs,Gp=C(()=>{"use strict";vt();jp=Promise.resolve(),Qs=(e,t)=>_(void 0,null,function*(){jp=jp.then(()=>_(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield jp})});var Xs,Zs,xt,el,sn,ur,dr,tl,Vn,$3,L,pr,fr,Ue=C(()=>{"use strict";P();Xs="UNLOCK_OPTIONS_CHANGED",Zs="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",el="ON_USE_MODAL_EVENT",sn="ON_USE_MODAL_RESULT",ur="ON_USE_MODAL_FREQUENCY",dr="ON_USE_UNLOGIN_MODAL_EVENT",tl="INVOKE_UNLOGIN_MODAL_EVENT",Vn=new Dt,$3=()=>({on:Vn.on.bind(Vn),off:Vn.off.bind(Vn),emit:Vn.emit.bind(Vn)}),L=$3(),pr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},fr={show:!0,minInterval:8*60*60*1e3}});function et(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=x(x({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var hr=C(()=>{"use strict"});var cA=h(Bp=>{"use strict";Ys();Gp();Ue();Ue();cr();yt();P();hr();var V3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:KC,frequencyUpdater:tA,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:XC,frequencyUpdater:iA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},sA=bo(),lA=et(L,ur);lA.getData();L.on(el,(e,t)=>_(Bp,null,function*(){let r=t.currency,n=V3[r];if(e.includes("ADS-")){yield sA.show({duration:3e3});let l=yield lA.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),sA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){L.emit(sn,{useModalResult:"CONFIRM"});return}if(!c){L.emit(sn,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:J.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=uC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:J.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),L.emit(sn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:r}),L.emit(sn,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>_(Bp,null,function*(){yield Qs(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function uA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return _(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var dA=C(()=>{"use strict";gt()});var rl=C(()=>{"use strict"});var W3,Wn,Fr,z3,ln,Jp=C(()=>{"use strict";rl();P();B();vt();W3=()=>{let[e,t]=[Yh,Xh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Wn,createPaymentInternalError:Fr}=W3(),z3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ln=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>_(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Wn(n,1001);return yield this.pay()});this.cancelOrder=t=>_(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Wn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(x({},this.generatePaymentContext()))),`${z3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Hp,fA,hA=C(()=>{"use strict";vt();Jp();rl();Hp=class extends ln{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>_(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return _(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Wn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Fr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},fA=()=>{let e=new Map;return t=>_(void 0,null,function*(){let r=e.get(t);return r||(r=new Hp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var mA,gA=C(()=>{"use strict";mA={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var $p,vA,Vp,Wp,K3,zp,yA=C(()=>{"use strict";vt();Jp();rl();be();P();B();cr();gA();$p=new Map;rt("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=$p.get(t);if(o){if(r==="SUCCESS")Ur("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Hh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Fr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=mA[r];a&&Ur(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}$p.delete(t)}});vA=e=>_(void 0,null,function*(){var n,i;let t=new Rt,r;try{let o=yield _e("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Fr("orderUUID is null",1002);$p.set(r,t)}catch(o){throw Fr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Vp=class extends ln{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>_(this,null,function*(){return yield vA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return _(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Wp=class extends ln{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>_(this,null,function*(){return yield vA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return _(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Fr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},K3={android:Vp,ios:Wp},zp=()=>{let e=new Map;return t=>_(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=K3[E.platform];if(!s)throw Fr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Wn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var cn,Kp=C(()=>{"use strict";dA();hA();yA();cn=uA();cn.registerPaymentHandler("JOLI_COIN",fA());cn.registerPaymentHandler("JOLI_COIN_IAP",zp());cn.registerPaymentHandler("JOLI_GEM_IAP",zp())});function Y3(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!fc(r.totalAmountStr))}var Vt,Yp,Wt,ol,Qp,Xp,nl,il,_A,al,Zp=C(()=>{"use strict";Kp();P();be();vt();P();Vt=class Vt{execute(t,r){return _(this,null,function*(){var a,s,l;let{response:n}=yield re(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(l=(s=i.paymentChoices)==null?void 0:s.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?l:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&Y3(i,c)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return _(this,null,function*(){let r=t.sort().join(","),n=Vt.nativePriceCache.get(r),i=Vt.nativePriceCacheTimestamp.get(r)||0;if(n&&Date.now()-i<Vt.NATIVE_PRICE_CACHE_DURATION)return console.log("[PaymentService] Using cached native price data"),n;console.log("[PaymentService] Fetching fresh native price data");try{let{data:o}=yield _e("requestProductDetailsAsync",{appStoreProductIds:t});return o&&(Vt.nativePriceCache.set(r,o),Vt.nativePriceCacheTimestamp.set(r,Date.now())),o}catch(o){throw console.warn("[PaymentService] Failed to fetch native product details:",o),o}})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};Vt.nativePriceCache=new Map,Vt.NATIVE_PRICE_CACHE_DURATION=30*60*1e3,Vt.nativePriceCacheTimestamp=new Map;Yp=Vt,Wt=class Wt extends Qt{constructor(r,n){super(new Yp,{duration:10*60*1e3,timeout:1e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return _(this,null,function*(){let r=Wt.failureCounters.get(this.apiEndpoint)||0;if(r>=Wt.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${Wt.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return Wt.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw Wt.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${Wt.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return _(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield cn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return _(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return _(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};Wt.failureCounters=new Map,Wt.MAX_FAILURE_COUNT=2;ol=Wt,Qp=class extends ol{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Xp=class extends ol{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},nl=null,il=null,_A=()=>nl||(nl=new Qp,nl),al=()=>il||(il=new Xp,il)});var IA=h(sl=>{"use strict";Ue();cr();B();Ks();P();Ys();Kp();cr();Qe();yt();Gp();hr();Zp();var Q3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:YC,frequencyUpdater:rA,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:ZC,frequencyUpdater:oA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},zn=bo(),bA=_A(),wA=al(),X3=et(L,ur);L.on(Zs,(e,t)=>_(sl,null,function*(){var r,n;try{let i=t.currency,o=Q3[i];if(!Pm("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{L.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield zn.show({duration:3e3});let c=yield X3.getData(),{canShow:d}=yield o.frequencyChecker(c.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,d),zn.hide(),!d){L.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield zn.show({duration:3e3});let a=i==="JOLI_COIN"?bA:wA,s=yield a.getProductsInfo();if(zn.hide(),!s){L.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:J.View,currency:i});let l=dC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=s.paymentChoices)==null?void 0:r.map(c=>{var d;return F(x({},c),{totalAmountStr:(d=c.totalAmountStr)!=null?d:""})}))!=null?n:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:c=>_(sl,null,function*(){var p,f,m,v,y,g,w,S;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:J.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(f=(p=s.paymentChoices.find(A=>A.productId===c))==null?void 0:p.totalAmountStr)!=null?f:""}),!((m=E.hostUserInfo)!=null&&m.isLogin)){let{data:A}=yield Fp({skipLogin:!0});if(!(A!=null&&A.isLogin)){console.log("login failed");return}let R=yield a.refreshProductsInfo();if(((v=R==null?void 0:R.balance)!=null?v:0)>=t.quantity){L.emit(xt,{paymentResult:"SUCCESS",currency:i}),l.destroy();return}}console.log("invokeNativePayment",c);let d=(g=(y=s==null?void 0:s.paymentChoices)==null?void 0:y.find(A=>A.productId===c))==null?void 0:g.appStoreProductId;if(!d){L.emit(xt,{paymentResult:"FAILED",currency:i}),l.destroy();return}yield zn.show({duration:3e3});let{code:u}=yield cn.invokePayment(o.paymentType,{productId:c,appStoreProductId:d});if(zn.hide(),U(o.trackEvents.payResult,{eventType:J.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(S=(w=s.paymentChoices.find(A=>A.productId===c))==null?void 0:w.totalAmountStr)!=null?S:"",payResult:u}),console.log("payment result",u),u!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}L.emit(xt,{paymentResult:"SUCCESS",currency:i}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{L.emit(xt,{paymentResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:i}),l.destroy()}},onEnableDeductChanged:c=>_(sl,null,function*(){yield Qs(c,o.apiEndpointAutoDeduct)})},onSelect:c=>{var d,u;U(o.trackEvents.orderClick,{targetType:"game",eventType:J.Click,coinAmount:t.quantity,currency:i,orderPrice:(u=(d=s.paymentChoices.find(p=>p.productId===c))==null?void 0:d.totalAmountStr)!=null?u:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),L.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));bA.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});wA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var SA=h(ll=>{"use strict";Ue();hr();Ys();vt();gt();P();Ks();cr();yt();var Z3={JOLI_COIN:{frequencyChecker:QC,frequencyUpdater:nA,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:eA,frequencyUpdater:aA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},EA=et(L,ur);EA.getData();L.on(tl,(e,t)=>_(ll,null,function*(){var r;try{let n=t.currency,i=Z3[n];if(e.includes("ADS-")){let s=yield EA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){L.emit(dr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){L.emit(dr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield eH())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),L.emit(dr,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:J.Expose,currency:n},J.Expose);let a=pC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>_(ll,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:J.Click,currency:n},J.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Up({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:J.Click,currency:n},J.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Ur(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}L.emit(dr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:J.Hide,currency:n},J.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:J.Click,currency:n},J.Click),L.emit(dr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ae(new Zh(n)),L.emit(dr,{result:"FAILED"})}}));var eH=()=>_(ll,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var VZ,WZ,zZ,kA=C(()=>{"use strict";VZ=ie(cA()),WZ=ie(IA()),zZ=ie(SA())});function pH(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function fH(e){return typeof e=="string"}function hH(e){return typeof e=="undefined"}function mH(e){return hH(e)||e===null}function gH(e){return typeof e=="function"}function tx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function wo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function pl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function EH(e){let t=e.location?pl(e.location,RA):null,r=e.target?pl(e.target,RA):null;return pl(cH(lH({},e),{location:t,target:r}),wH)}function SH(e){let t=e.events.map(n=>EH(n)),r=pl(e.device,IH);return[e.protocolVersion,t,r,e.project]}function kH(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function OH(e){return new Promise(t=>ox(e)(t))}function ox(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function RH(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Co(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function NH(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)DH(e[n],t[n])}function DH(e,t){if(fH(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(gH(t)){try{if(e instanceof t)return}catch(r){}if(!mH(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=qH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qH(e){var t=LH(e,"string");return typeof t=="symbol"?t:t+""}function LH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cl(e,t,r){return(t=MH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=UH(e,"string");return typeof t=="symbol"?t:t+""}function UH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ul(e,t,r){return(t=FH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FH(e){var t=jH(e,"string");return typeof t=="symbol"?t:t+""}function jH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(e,t,r){return(t=GH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GH(e){var t=BH(e,"string");return typeof t=="symbol"?t:t+""}function BH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function HH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function YH(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function lx(e){return e.trim()}function QH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function mf(e,t){return e.indexOf(t)}function Fe(e,t){return e.charCodeAt(t)|0}function Ao(e,t,r){return e.slice(t,r)}function zt(e){return e.length}function Rf(e){return e.length}function dl(e,t){return t.push(e),e}function XH(e,t){return e.map(t).join("")}function Al(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Cl,column:ei,length:a,return:""}}function Eo(e,t){return KH(Al("",null,null,"",null,null,0),e,{length:-e.length},t)}function ZH(){return Ce}function e4(){return Ce=lt>0?Fe(ti,--lt):0,ei--,Ce===10&&(ei=1,Cl--),Ce}function ht(){return Ce=lt<cx?Fe(ti,lt++):0,ei++,Ce===10&&(ei=1,Cl++),Ce}function Kt(){return Fe(ti,lt)}function fl(){return lt}function To(e,t){return Ao(ti,e,t)}function xo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ux(e){return Cl=ei=1,cx=zt(ti=e),lt=0,[]}function dx(e){return ti="",e}function hl(e){return lx(To(lt-1,gf(e===91?e+2:e===40?e+1:e)))}function t4(e){for(;(Ce=Kt())&&Ce<33;)ht();return xo(e)>2||xo(Ce)>3?"":" "}function r4(e,t){for(;--t&&ht()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return To(e,fl()+(t<6&&Kt()==32&&ht()==32))}function gf(e){for(;ht();)switch(Ce){case e:return lt;case 34:case 39:e!==34&&e!==39&&gf(Ce);break;case 40:e===41&&gf(e);break;case 92:ht();break}return lt}function n4(e,t){for(;ht()&&e+Ce!==57&&!(e+Ce===84&&Kt()===47););return"/*"+To(t,lt-1)+"*"+kl(e===47?e:ht())}function i4(e){for(;!xo(Kt());)ht();return To(e,lt)}function o4(e){return dx(ml("",null,null,null,[""],e=ux(e),0,[0],e))}function ml(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,v=1,y=1,g=1,w=0,S="",A=i,R=o,T=n,k=S;y;)switch(m=w,w=ht()){case 40:if(m!=108&&Fe(k,u-1)==58){mf(k+=K(hl(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=hl(w);break;case 9:case 10:case 13:case 32:k+=t4(m);break;case 92:k+=r4(fl()-1,7);continue;case 47:switch(Kt()){case 42:case 47:dl(a4(n4(ht(),fl()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=zt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:g==-1&&(k=K(k,/\f/g,"")),f>0&&zt(k)-u&&dl(f>32?qA(k+";",n,r,u-1):qA(K(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(dl(T=DA(k,t,r,c,d,i,s,S,A=[],R=[],u),o),w===123)if(d===0)ml(k,t,T,T,A,o,u,s,R);else switch(p===99&&Fe(k,3)===110?100:p){case 100:case 108:case 109:case 115:ml(e,T,T,n&&dl(DA(e,T,T,0,0,i,s,S,i,A=[],u),R),i,R,u,s,n?A:R);break;default:ml(k,T,T,T,[""],R,0,s,R)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+zt(k),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&e4()==125)continue}switch(k+=kl(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(zt(k)-1)*g,g=1;break;case 64:Kt()===45&&(k+=hl(ht())),p=Kt(),d=u=zt(S=k+=i4(fl())),w++;break;case 45:m===45&&zt(k)==2&&(v=0)}}return o}function DA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Rf(p),m=0,v=0,y=0;m<n;++m)for(var g=0,w=Ao(e,u+1,u=zH(v=a[m])),S=e;g<f;++g)(S=lx(v>0?p[g]+" "+w:K(w,/&\f/g,p[g])))&&(l[y++]=S);return Al(e,t,r,i===0?Tf:s,l,c,d)}function a4(e,t,r){return Al(e,t,r,ax,kl(ZH()),Ao(e,2,-2),0)}function qA(e,t,r,n){return Al(e,t,r,Of,Ao(e,0,n),Ao(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=Rf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function s4(e,t,r,n){switch(e.type){case WH:if(e.children.length)break;case VH:case Of:return e.return=e.return||e.value;case ax:return"";case sx:return e.return=e.value+"{"+Zn(e.children,n)+"}";case Tf:e.value=e.props.join(",")}return zt(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function l4(e){var t=Rf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function c4(e){return function(t){t.root||(t=t.return)&&e(t)}}function u4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function px(e,t){switch(YH(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+_l+e+ze+e+e;case 6828:case 4268:return z+e+ze+e+e;case 6165:return z+e+ze+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ze+"flex-$1$2")+e;case 5443:return z+e+ze+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+ze+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ze+K(e,"shrink","negative")+e;case 5292:return z+e+ze+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+ze+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+_l+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mf(e,"stretch")?px(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,zt(e)-3-(~mf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Fe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ze+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ze+e+e}return e}function _4(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function bl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return jr={name:i.name,styles:i.styles,next:jr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)jr={name:a.name,styles:a.styles,next:jr},a=a.next;var s=o.styles+";";return s}return E4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function E4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=bl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":MA(s)&&(n+=tf(o)+":"+UA(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)MA(a[l])&&(n+=tf(o)+":"+UA(o,a[l])+";");else{var c=bl(e,t,a);switch(o){case"animation":case"animationName":{n+=tf(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function rf(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";jr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=bl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=bl(r,t,e[s]),n){var l=o;i+=l[s]}FA.lastIndex=0;for(var c="",d;(d=FA.exec(i))!==null;)c+="-"+d[1];var u=_4(i)+c;return{name:u,styles:i,next:jr}}function hx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function jA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function GA(e,t,r){var n=[],i=hx(e,n,r);return n.length<2?r:i+t(n)}function T4(e,t){Re.__h&&Re.__h(ft,e,JA||t),JA=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gx(e,t){var r=T4(vf++,7);return P4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function O4(){for(var e;e=mx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gl),e.__H.__h.forEach(yf),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}function R4(e){var t,r=function(){clearTimeout(n),YA&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);YA&&(t=requestAnimationFrame(r))}function gl(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function yf(e){var t=ft;e.__c=e.__(),ft=t}function P4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function xl(){if(Gr>1)Gr--;else{for(var e,t=!1;So!==void 0;){var r=So;for(So=void 0,_f++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&yx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(_f=0,Gr--,t)throw e}}function st(e){if(Gr>0)return e();Gr++;try{return e()}finally{xl()}}function vx(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function je(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ne(e){return new je(e)}function yx(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _x(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function bx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function ni(e){je.call(this,void 0),this.x=e,this.s=void 0,this.g=wl-1,this.f=4}function ko(e){return new ni(e)}function wx(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Gr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Pf(e),n}finally{ee=r,xl()}}}function Pf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,wx(e)}function D4(e){if(ee!==this)throw new Error("Out-of-order effect");bx(this),ee=e,this.f&=-2,8&this.f&&Pf(this),xl()}function Oo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ro(e){var t=new Oo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function ii(e,t){N[e]=t.bind(null,N[e]||function(){})}function Il(e){of&&of(),of=e&&e.S()}function Sx(e){var t=this,r=e.data,n=kx(r);n.value=r;var i=gx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=ko(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ko(function(){return!Array.isArray(c.value)&&!Bc(c.value)}),u=Ro(function(){if(this.N=Cx,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function q4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ne(r);return{o:function(a,s){o.value=a,n=s},d:Ro(function(){this.N=Cx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function kx(e){return gx(function(){return ne(e)},[])}function M4(){st(function(){for(var e;e=Ex.shift();)Ix.call(e)})}function Cx(){Ex.push(this)===1&&(N.requestAnimationFrame||L4)(M4)}function U4(e,t){let r=Ji(e);xn(()=>{r.current=e},[e]),Bi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ye(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--F4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function gr(e,t,r){return(t=Q4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q4(e){var t=X4(e,"string");return typeof t=="symbol"?t:t+""}function X4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vr(e,t,r){return(t=r$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e){var t=n$(e,"string");return typeof t=="symbol"?t:t+""}function n$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function We(e,t,r){return(t=i$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i$(e){var t=o$(e,"string");return typeof t=="symbol"?t:t+""}function o$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=a$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=s$(e,"string");return typeof t=="symbol"?t:t+""}function s$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function un(e,t,r){return(t=l$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=c$(e,"string");return typeof t=="symbol"?t:t+""}function c$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function af(e,t,r){return(t=u$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u$(e){var t=d$(e,"string");return typeof t=="symbol"?t:t+""}function d$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tt(e,t,r){return(t=p$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=f$(e,"string");return typeof t=="symbol"?t:t+""}function f$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tt(e,t,r){return(t=h$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=m$(e,"string");return typeof t=="symbol"?t:t+""}function m$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tH,yl,QA,XA,CA,rH,nH,ZA,iH,oH,AA,aH,sH,xA,lH,cH,uH,ex,dH,vH,yH,TA,_H,OA,bH,rx,nx,ix,RA,wH,IH,Qn,PA,sf,pe,CH,AH,Io,Co,xH,cf,TH,ef,PH,uf,NA,Kn,df,pf,ff,hf,$H,ze,_l,z,ax,Tf,Of,VH,sx,WH,zH,kl,KH,Cl,ei,cx,lt,Ce,ti,d4,p4,f4,LA,h4,m4,g4,v4,y4,b4,w4,I4,fx,MA,tf,UA,FA,jr,S4,k4,C4,A4,x4,ri,vf,ft,nf,BA,JA,mx,Re,HA,$A,VA,WA,zA,KA,YA,N4,ee,So,Gr,_f,wl,Ix,of,Ex,L4,Ke,F4,j4,yr,bf,wf,vl,G4,B4,J4,H4,$4,V4,W4,z4,K4,Y4,If,Xn,Yn,Z4,e$,t$,Ef,Ax,Sf,kf,Cf,Af,El,xf,Sl,QZ,xx=C(()=>{"use strict";yn();qa();tH=Object.defineProperty,yl=Object.getOwnPropertySymbols,QA=Object.prototype.hasOwnProperty,XA=Object.prototype.propertyIsEnumerable,CA=(e,t,r)=>t in e?tH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rH=(e,t)=>{for(var r in t||(t={}))QA.call(t,r)&&CA(e,r,t[r]);if(yl)for(var r of yl(t))XA.call(t,r)&&CA(e,r,t[r]);return e},nH=(e,t)=>{var r={};for(var n in e)QA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yl)for(var n of yl(e))t.indexOf(n)<0&&XA.call(e,n)&&(r[n]=e[n]);return r},ZA=Object.defineProperty,iH=Object.defineProperties,oH=Object.getOwnPropertyDescriptors,AA=Object.getOwnPropertySymbols,aH=Object.prototype.hasOwnProperty,sH=Object.prototype.propertyIsEnumerable,xA=(e,t,r)=>t in e?ZA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lH=(e,t)=>{for(var r in t||(t={}))aH.call(t,r)&&xA(e,r,t[r]);if(AA)for(var r of AA(t))sH.call(t,r)&&xA(e,r,t[r]);return e},cH=(e,t)=>iH(e,oH(t)),uH=(e,t)=>{for(var r in t)ZA(e,r,{get:t[r],enumerable:!0})},ex=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},dH=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}vH=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(vH||{});yH={log:wo("log"),warn:wo("warn"),info:wo("info"),error:wo("error"),debug:wo("debug")};Object.assign(globalThis,{logger:yH});TA=Symbol.for("Jolibox.canIUseMap"),_H={};globalThis[TA]||(globalThis[TA]=_H);OA=Symbol.for("Jolibox.canIUseMap.native"),bH={};globalThis[OA]||(globalThis[OA]=bH);rx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(rx||{}),nx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nx||{}),ix=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(ix||{}),RA=["name","params"],wH=["name","type","location","target","extra","timestamp","userId"],IH=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];kH();Qn=typeof window=="undefined",PA=()=>!Qn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Qn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Qn&&navigator.userAgent.includes("Android"),!Qn&&navigator.userAgent.includes("Mac"),!Qn&&navigator.userAgent.includes("FB_IAB"),!Qn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");sf=class lf{constructor(t){this.element=t,this.next=lf.Undefined,this.prev=lf.Undefined}};sf.Undefined=new sf(void 0);pe=sf,CH=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},AH=0,Io=class{constructor(e){this.value=e,this.id=AH++}},Co=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Io&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new Io(e);return this._listeners?this._listeners instanceof Io?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof Io)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Io?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},xH=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Co,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new CH,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},cf={};uH(cf,{None:()=>TH,filter:()=>RH,once:()=>ox,toPromise:()=>OH});TH=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ef=Symbol.for("Jolibox.hostEmitter"),PH=()=>{let e=new xH;return globalThis[ef]||(globalThis[ef]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ef]};PH();uf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Co,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return NH(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};uf=ex([tx],uf);NA=class{constructor(){this._onWillExecuteCommand=new Co,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Co,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new uf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=pH(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return dH(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),cf.toPromise(cf.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};NA=ex([tx],NA);Kn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},df=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",rH({userEvent:a},this.paramsToTrack)),PA()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Kn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Kn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),PA()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Kn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Kn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Kn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Kn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return _(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(c=this.currentProvider)==null?void 0:c.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};pf=class{constructor(t){cl(this,"context",void 0),cl(this,"adBreakIsShowing",!1),cl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),cl(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};ff=class{constructor(t){ul(this,"configs",null),ul(this,"firstRun",!0),ul(this,"context",void 0),ul(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return _(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};hf=class{constructor(t,r){mr(this,"name","ADSENSE"),mr(this,"context",void 0),mr(this,"contextInfo",void 0),mr(this,"configured",!1),mr(this,"initParams",void 0),mr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),mr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=nH(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),mr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),mr(this,"adUnit",n=>_(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),v&&y.setAttribute("data-ad-format",v),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let g=document.createElement("div");g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",g.style.height="100%",g.style.display="flex",g.style.justifyContent="center",g.style.alignItems="center",g.style.backgroundColor="rgba(0, 0, 0, 0.5)",g.style.color="white",g.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(g)}else f.appendChild(y),new MutationObserver(g=>{g.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return _(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};$H=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(HH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=JH(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ze="-ms-",_l="-moz-",z="-webkit-",ax="comm",Tf="rule",Of="decl",VH="@import",sx="@keyframes",WH="@layer",zH=Math.abs,kl=String.fromCharCode,KH=Object.assign;Cl=1,ei=1,cx=0,lt=0,Ce=0,ti="";d4=function(e,t,r){for(var n=0,i=0;n=i,i=Kt(),n===38&&i===12&&(t[r]=1),!xo(i);)ht();return To(e,lt)},p4=function(e,t){var r=-1,n=44;do switch(xo(n)){case 0:n===38&&Kt()===12&&(t[r]=1),e[r]+=d4(lt-1,t,r);break;case 2:e[r]+=hl(n);break;case 4:if(n===44){e[++r]=Kt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kl(n)}while(n=ht());return e},f4=function(e,t){return dx(p4(ux(e),t))},LA=new WeakMap,h4=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!LA.get(r))&&!n){LA.set(e,!0);for(var i=[],o=f4(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},m4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};g4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Of:e.return=px(e.value,e.length);break;case sx:return Zn([Eo(e,{value:K(e.value,"@","@"+z)})],n);case Tf:if(e.length)return XH(e.props,function(i){switch(QH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([Eo(e,{props:[K(i,/:(read-\w+)/,":"+_l+"$1")]})],n);case"::placeholder":return Zn([Eo(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,":"+_l+"$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,ze+"input-$1")]})],n)}return""})}},v4=[g4],y4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||v4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(m)});var s,l=[h4,m4];{var c,d=[s4,c4(function(m){c.insert(m)})],u=l4(l.concat(n,d)),p=function(m){return Zn(o4(m),u)};s=function(m,v,y,g){c=y,p(m?m+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new $H({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};b4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w4=/[A-Z]|^ms/g,I4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fx=function(e){return e.charCodeAt(1)===45},MA=function(e){return e!=null&&typeof e!="boolean"},tf=u4(function(e){return fx(e)?e:e.replace(w4,"-$&").toLowerCase()}),UA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(I4,function(r,n,i){return jr={name:n,styles:i,next:jr},n})}return b4[e]!==1&&!fx(e)&&typeof t=="number"&&t!==0?t+"px":t};FA=/label:\s*([^\s;{]+)\s*(;|$)/g;S4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},k4=function(e,t,r){S4(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};C4=function(e){var t=y4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=rf(s,t.registered,void 0);return k4(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=rf(s,t.registered),d="animation-"+c.name;return jA(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=rf(s,t.registered);jA(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return GA(t.registered,r,A4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:hx.bind(null,t.registered),merge:GA.bind(null,t.registered,r)}},A4=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},x4=C4({key:"css"}),ri=x4.css,JA=0,mx=[],Re=N,HA=Re.__b,$A=Re.__r,VA=Re.diffed,WA=Re.__c,zA=Re.unmount,KA=Re.__;Re.__b=function(e){ft=null,HA&&HA(e)},Re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),KA&&KA(e,t)},Re.__r=function(e){$A&&$A(e),vf=0;var t=(ft=e.__c).__H;t&&(nf===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(gl),t.__h.forEach(yf),t.__h=[],vf=0)),nf=ft},Re.diffed=function(e){VA&&VA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mx.push(t)!==1&&BA===Re.requestAnimationFrame||((BA=Re.requestAnimationFrame)||R4)(O4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),nf=ft=null},Re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(gl),r.__h=r.__h.filter(function(n){return!n.__||yf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Re.__e(n,r.__v)}}),WA&&WA(e,t)},Re.unmount=function(e){zA&&zA(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{gl(n)}catch(i){t=i}}),r.__H=void 0,t&&Re.__e(t,r.__v))};YA=typeof requestAnimationFrame=="function";N4=Symbol.for("preact-signals");ee=void 0,So=void 0,Gr=0,_f=0,wl=0;je.prototype.brand=N4;je.prototype.h=function(){return!0};je.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};je.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};je.prototype.subscribe=function(e){var t=this;return Ro(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};je.prototype.valueOf=function(){return this.value};je.prototype.toString=function(){return this.value+""};je.prototype.toJSON=function(){return this.value};je.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(je.prototype,"value",{get:function(){var e=vx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(_f>100)throw new Error("Cycle detected");this.v=e,this.i++,wl++,Gr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{xl()}}}});(ni.prototype=new je).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===wl))return!0;if(this.g=wl,this.f|=1,this.i>0&&!yx(this))return this.f&=-2,!0;var e=ee;try{_x(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,bx(this),this.f&=-2,!0};ni.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}je.prototype.S.call(this,e)};ni.prototype.U=function(e){if(this.t!==void 0&&(je.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};ni.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(ni.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=vx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Oo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Oo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,wx(this),_x(this),Gr++;var e=ee;return ee=this,D4.bind(this,e)};Oo.prototype.N=function(){2&this.f||(this.f|=2,this.o=So,So=this)};Oo.prototype.d=function(){this.f|=8,1&this.f||Pf(this)};Ex=[];Ro(function(){Ix=this.N})();Sx.displayName="_st";Object.defineProperties(je.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Sx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ii("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof je&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ii("__r",function(e,t){Il();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ro(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Il(r),e(t)});ii("__e",function(e,t,r,n){Il(),e(t,r,n)});ii("diffed",function(e,t){Il();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=q4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});ii("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});ii("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};L4=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ke=ri`
|
|
623
623
|
inset: 0;
|
|
624
624
|
clear: none;
|
|
625
625
|
float: none;
|
|
@@ -637,8 +637,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
637
637
|
text-decoration: none;
|
|
638
638
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
639
639
|
'Helvetica Neue', sans-serif;
|
|
640
|
-
`;
|
|
641
|
-
${
|
|
640
|
+
`;F4=0;j4=ri`
|
|
641
|
+
${Ke}
|
|
642
642
|
position: fixed;
|
|
643
643
|
top: 0;
|
|
644
644
|
left: 0;
|
|
@@ -651,7 +651,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
651
651
|
height: 100vh;
|
|
652
652
|
|
|
653
653
|
.card-wrapper {
|
|
654
|
-
${
|
|
654
|
+
${Ke}
|
|
655
655
|
position: relative;
|
|
656
656
|
display: flex;
|
|
657
657
|
flex-direction: column;
|
|
@@ -665,7 +665,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
665
665
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
666
666
|
|
|
667
667
|
.body {
|
|
668
|
-
${
|
|
668
|
+
${Ke}
|
|
669
669
|
display: flex;
|
|
670
670
|
flex-direction: column;
|
|
671
671
|
width: 100%;
|
|
@@ -674,7 +674,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
674
674
|
box-sizing: border-box;
|
|
675
675
|
justify-content: center;
|
|
676
676
|
.title {
|
|
677
|
-
${
|
|
677
|
+
${Ke}
|
|
678
678
|
text-align: center;
|
|
679
679
|
font-size: 16px;
|
|
680
680
|
font-weight: bold;
|
|
@@ -682,7 +682,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
.content {
|
|
685
|
-
${
|
|
685
|
+
${Ke}
|
|
686
686
|
font-size: 14px;
|
|
687
687
|
color: #888;
|
|
688
688
|
margin-bottom: 16px;
|
|
@@ -690,13 +690,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
.footer {
|
|
693
|
-
${
|
|
693
|
+
${Ke}
|
|
694
694
|
display: flex;
|
|
695
695
|
align-items: center;
|
|
696
696
|
width: 100%;
|
|
697
697
|
height: 40px;
|
|
698
698
|
button {
|
|
699
|
-
${
|
|
699
|
+
${Ke}
|
|
700
700
|
border: none;
|
|
701
701
|
outline: none;
|
|
702
702
|
height: 100%;
|
|
@@ -712,8 +712,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
`,
|
|
716
|
-
${
|
|
715
|
+
`,yr=ne(null),bf=ne(""),wf=ne(""),vl=ne(!1),G4=()=>{var e;(e=yr.value)==null||e.call(yr,!1)},B4=()=>{var e;(e=yr.value)==null||e.call(yr,!0)},J4=e=>_(void 0,null,function*(){let{title:t,content:r}=e;return yr.value&&(yr.value(!1),st(()=>{yr.value=null,vl.value=!1})),st(()=>{bf.value=t||"",wf.value=r||"",vl.value=!0}),new Promise(n=>{yr.value=i=>{st(()=>{yr.value=null,vl.value=!1,bf.value="",wf.value=""}),n(i)}})}),H4=()=>vl.value?ye("div",{className:j4,children:ye("div",{className:"card-wrapper",children:[ye("div",{className:"body",children:[ye("div",{className:"title",children:bf.value}),ye("div",{className:"content",children:wf.value})]}),ye("div",{className:"footer",children:[ye("button",{onClick:G4,className:"cancel-btn",children:"Cancel"}),ye("button",{onClick:B4,className:"confirm-btm",children:"Confirm"})]})]})}):null,$4=ri`
|
|
716
|
+
${Ke}
|
|
717
717
|
position: relative;
|
|
718
718
|
display: flex;
|
|
719
719
|
align-items: center;
|
|
@@ -731,7 +731,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
button {
|
|
734
|
-
${
|
|
734
|
+
${Ke}
|
|
735
735
|
padding: 0 20px;
|
|
736
736
|
height: 30px;
|
|
737
737
|
line-height: 30px;
|
|
@@ -745,8 +745,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
745
745
|
cursor: not-allowed;
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
`,
|
|
749
|
-
${
|
|
748
|
+
`,V4=()=>{let e=ne(!1),t=ne(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},W4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=kx(t);U4(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=ko(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=ko(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=ko(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>_(void 0,null,function*(){if(a.value=!0,!(yield J4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ye("div",{className:$4,children:[s.value>0&&r!=="interstitial"&&ye("div",{className:"timer",children:[s.value,"s"]}),ye("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ye("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ye("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},z4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(!1),a=ne(15),s=ne(""),l=ne("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},K4=ri`
|
|
749
|
+
${Ke}
|
|
750
750
|
position: fixed;
|
|
751
751
|
z-index: 2147483647;
|
|
752
752
|
background: white;
|
|
@@ -756,7 +756,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
756
756
|
flex-direction: column;
|
|
757
757
|
|
|
758
758
|
iframe {
|
|
759
|
-
${
|
|
759
|
+
${Ke}
|
|
760
760
|
flex: 1;
|
|
761
761
|
position: relative;
|
|
762
762
|
display: block;
|
|
@@ -764,8 +764,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
764
764
|
width: 100%;
|
|
765
765
|
height: 100%;
|
|
766
766
|
}
|
|
767
|
-
`,
|
|
768
|
-
${
|
|
767
|
+
`,Y4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Hi(()=>V4(),[]),[p,f]=Na(!1),m=y=>{var g,w,S,A;s.value=!1,y==="dismiss"?(g=n.value)==null||g.call(n):y==="viewed"&&((w=i.value)==null||w.call(i)),(S=r.value)==null||S.call(r),(A=o.value)==null||A.call(o),f(!1)},v=Tn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Bi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ye("div",{className:K4,children:[ye(W4,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ye("iframe",{src:c.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ye(H4,{})]}):null};If=class{constructor(t,r){gr(this,"name","OKSPIN"),gr(this,"initialized",!1),gr(this,"initCompleter",null),gr(this,"context",void 0),gr(this,"initParams",void 0),gr(this,"adsOverlay",null),gr(this,"adsIsShowing",!1),gr(this,"lastUnDisplayedAdBreak",null),gr(this,"state",z4()),this.context=t,this.initParams=r}init(){return _(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Gu(ye(Y4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return _(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var g;this.adsIsShowing=!1,p.breakStatus="dismissed",(g=t.adDismissed)==null||g.call(t)},m=()=>{var g;this.adsIsShowing=!1,p.breakStatus="viewed",(g=t.adViewed)==null||g.call(t)},v=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let y=()=>{var g;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},Xn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Xn[e.data.type]&&Xn[e.data.type].forEach(t=>{t(e.data.data)})});Yn=(e,t)=>{Bi(()=>(Xn[e]||(Xn[e]=new Set),Xn[e].add(t),()=>{Xn[e].delete(t)}),[e,t])},Z4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(),a=ne(),s=ne(!1),l=ne("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},e$=ri`
|
|
768
|
+
${Ke}
|
|
769
769
|
position: fixed;
|
|
770
770
|
z-index: 2147483647;
|
|
771
771
|
background: white;
|
|
@@ -775,7 +775,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
775
775
|
flex-direction: column;
|
|
776
776
|
|
|
777
777
|
iframe {
|
|
778
|
-
${
|
|
778
|
+
${Ke}
|
|
779
779
|
flex: 1;
|
|
780
780
|
position: relative;
|
|
781
781
|
display: block;
|
|
@@ -783,8 +783,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
783
783
|
width: 100%;
|
|
784
784
|
height: 100%;
|
|
785
785
|
}
|
|
786
|
-
`,f4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Oa(!1),p=m=>{var g,y,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Hn("appsrockets_ad_dismissed",()=>p("dismiss")),Hn("appsrockets_ad_rewarded",()=>p("viewed")),Hn("appsrockets_ad_completed",()=>p("viewed")),Hn("appsrockets_ad_skipped",()=>p("viewed")),Hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Hn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:p4,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};af=class{constructor(t,r){cr(this,"name","APPSROCKETS"),cr(this,"initialized",!1),cr(this,"initCompleter",null),cr(this,"context",void 0),cr(this,"adsOverlay",null),cr(this,"adsIsShowing",!1),cr(this,"lastUnDisplayedAdBreak",null),cr(this,"state",d4()),cr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Tu(ge(f4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},g=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},jx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};sf=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,jx(),this.withCommand(()=>{this.init()})}};lf=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),jx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};cf=class{constructor(t,r){en(this,"name","GOOGLE_GPT"),en(this,"context",void 0),en(this,"contextInfo",void 0),en(this,"initParams",void 0),en(this,"rewardAdManager",void 0),en(this,"interstitialManager",void 0),en(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new sf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new lf(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};uf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Gp(this,"context",void 0),Gp(this,"placement","GAME"),Gp(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:gx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:mx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:vx.WebSDK};return M3(i)}};ml=class{constructor(t){Ze(this,"context",void 0),Ze(this,"adsTrackSerializer",void 0),Ze(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new uf(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},df=class{constructor(t,r){var n=this;Ze(this,"context",void 0),Ze(this,"contextInfo",void 0),Ze(this,"requestContext",void 0),Ze(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ze(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ze(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ze(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ze(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ze(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ze(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ze(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ze(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new ml(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};vl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Kp(this.context),this.adsActionDetection=new zp(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new df(t),this.requestContext=new ml(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new cf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Yp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new of(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new af(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,k=v==null?void 0:v.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,P,C,A;(x=t.beforeAd)==null||x.call(t),(P=t.adViewed)==null||P.call(t),(C=t.afterAd)==null||C.call(t),(A=t.adBreakDone)==null||A.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=b.sort((O,J)=>O.seq-J.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,C=null,A=new Wp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let O=x.shift(),J=this.providers[O.provider];if(J){let[Ke,M]=yield A.callAdBreakAndContinue(J,t,O,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,C=M}else P=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},XX=Yn`
|
|
787
|
-
${
|
|
786
|
+
`,t$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Na(!1),p=m=>{var v,y,g,w;u(!1),l.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(g=r.value)==null||g.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Yn("appsrockets_ad_dismissed",()=>p("dismiss")),Yn("appsrockets_ad_rewarded",()=>p("viewed")),Yn("appsrockets_ad_completed",()=>p("viewed")),Yn("appsrockets_ad_skipped",()=>p("viewed")),Yn("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Yn("appsrockets_ad_loaded",()=>u(!0)),l.value?ye("div",{className:e$,style:{display:d?"flex":"none"},children:l.value&&ye("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};Ef=class{constructor(t,r){vr(this,"name","APPSROCKETS"),vr(this,"initialized",!1),vr(this,"initCompleter",null),vr(this,"context",void 0),vr(this,"adsOverlay",null),vr(this,"adsIsShowing",!1),vr(this,"lastUnDisplayedAdBreak",null),vr(this,"state",Z4()),vr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return _(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Gu(ye(t$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},f=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},v=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},y=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},g=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=v,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=g});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},Ax=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Sf=class{constructor(t,r,n){We(this,"adUnit",void 0),We(this,"project",void 0),We(this,"keyValue",void 0),We(this,"adsContext",null),We(this,"rewardedSlot",null),We(this,"rewardedPayload",null),We(this,"readyEvent",null),We(this,"withCommand",function(){googletag.cmd.push(...arguments)}),We(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),We(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),We(this,"reinit",i=>{this.destroy(i),this.init()}),We(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),We(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),We(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),We(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),We(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Ax(),this.withCommand(()=>{this.init()})}};kf=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Ax(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Cf=class{constructor(t,r){un(this,"name","GOOGLE_GPT"),un(this,"context",void 0),un(this,"contextInfo",void 0),un(this,"initParams",void 0),un(this,"rewardAdManager",void 0),un(this,"interstitialManager",void 0),un(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return _(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new Sf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new kf(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};Af=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";af(this,"context",void 0),af(this,"placement","GAME"),af(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:ix.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:rx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:nx.WebSDK};return SH(i)}};El=class{constructor(t){tt(this,"context",void 0),tt(this,"adsTrackSerializer",void 0),tt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Af(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},xf=class{constructor(t,r){var n=this;tt(this,"context",void 0),tt(this,"contextInfo",void 0),tt(this,"requestContext",void 0),tt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),tt(this,"pendingAFVAdsInfo",Promise.resolve(null)),tt(this,"doFetchAdsInfo",i=>_(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),tt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),tt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),tt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),tt(this,"cacheNextAFGAdsInfo",i=>_(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),tt(this,"getAFGAdsInfo",i=>_(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),tt(this,"getAFVAdsInfo",function(){return _(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new El(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};Sl=class{constructor(t){if(Tt(this,"context",void 0),Tt(this,"contextInfo",void 0),Tt(this,"providers",{}),Tt(this,"channelPolicy",void 0),Tt(this,"adsActionDetection",void 0),Tt(this,"requestContext",void 0),Tt(this,"adsRequest",void 0),Tt(this,"initialized",!1),Tt(this,"adsIsShowing",!1),Tt(this,"lastAdBreak",void 0),Tt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new ff(this.context),this.adsActionDetection=new pf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new xf(t),this.requestContext=new El(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return _(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new Cf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new hf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new If(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new Ef(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return _(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,v;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let g=yield this.adsRequest.getAFGAdsInfo(t.type),w=g==null?void 0:g.data,S=g==null?void 0:g.code;if(S==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,R,T,k;(A=t.beforeAd)==null||A.call(t),(R=t.adViewed)==null||R.call(t),(T=t.afterAd)==null||T.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=w.sort((O,G)=>O.seq-G.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let R=!0,T=null,k=new df(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let O=A.shift(),G=this.providers[O.provider];if(G){let[Ye,M]=yield k.callAdBreakAndContinue(G,t,O,Pe=>{var Ne;this.adsIsShowing=Pe,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Pe)});R=Ye,T=M}else R=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!R)break}R&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(g){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(v=this.context.eventEmitter)==null||v.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},QZ=ri`
|
|
787
|
+
${Ke}
|
|
788
788
|
position: fixed;
|
|
789
789
|
left: 0;
|
|
790
790
|
top: 0;
|
|
@@ -794,12 +794,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
794
794
|
width: 100vw;
|
|
795
795
|
height: 100vh;
|
|
796
796
|
|
|
797
|
-
&[data-visible='true'] {
|
|
798
|
-
display: block;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
797
|
.ads-wrapper {
|
|
802
|
-
${
|
|
798
|
+
${Ke}
|
|
803
799
|
position: relative;
|
|
804
800
|
width: 100%;
|
|
805
801
|
height: 100%;
|
|
@@ -822,7 +818,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
822
818
|
}
|
|
823
819
|
|
|
824
820
|
.retry-button {
|
|
825
|
-
${
|
|
821
|
+
${Ke}
|
|
826
822
|
position: absolute;
|
|
827
823
|
width: 100%;
|
|
828
824
|
height: 100%;
|
|
@@ -832,4 +828,4 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
832
828
|
cursor: pointer;
|
|
833
829
|
}
|
|
834
830
|
}
|
|
835
|
-
`});function Bx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;Gx&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Gx&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Fn,loginGuide:jn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Fn,loginGuide:jn}})}}}var Gx,Hx=S(()=>{"use strict";B();Xe();Gx=E.testMode});var C4,T4,Vx,$x,Wx=S(()=>{"use strict";Xe();R();C4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},T4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(C4()):["ADS"],Vx=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),q.emit(Ks,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return T4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},$x=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(Or,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Fn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||jn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Fn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||jn}}))}});var zx,Kx=S(()=>{"use strict";zx=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Lr=S(()=>{"use strict";Xe();Pr();Xe();ze=it(q,Ks)});var wl,vf=S(()=>{"use strict";wl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var $t,Zn=S(()=>{"use strict";R();$t=X()});var Yx,Qx=S(()=>{"use strict";Yx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var Xx,Zx=S(()=>{"use strict";Xx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var ei,Il=S(()=>{"use strict";Qx();Zx();ei={JOLI_COIN:{fetchBalance:Yx,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Xx,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var To,dr,gf=S(()=>{"use strict";Zn();Lr();Pr();Xe();Xe();Il();To=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;$t.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield ze.getData(),o=ei[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},dr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,Xr);return q.emit(Qs,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Oo,pr,eC=S(()=>{"use strict";Zn();Lr();Xe();Pr();Xe();Il();Oo=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;$t.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield ze.getData(),a=ei[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return ze.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},pr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,xt);return q.emit(Ys,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var yf,fr,tC=S(()=>{"use strict";B();Zn();Pr();Xe();Xe();R();Lr();Il();yf=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;$t.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield rh(3e3));let f=ei[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),y=f.getCurrentUser(a),v=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(ze.updateData({[b]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,ar);return q.emit(Xs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var tn=S(()=>{"use strict";gf();eC();tC()});var O4,El,_f=S(()=>{"use strict";B();R();vf();tn();Zn();O4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Oo(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),To(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let m=!0;for(let v of c){let b=yield $t.executeCommand(v);if(m=m&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let g=wl[r],y=yield t.post(g.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d))}catch(v){console.error("-----unlockWithJolicoin adBreakDone error-----",v)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},El=(e,t,r)=>O4(e,t,"JOLI_COIN",r)});var rC,nC=S(()=>{"use strict";Lr();_f();tn();rC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return El("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var iC,oC=S(()=>{"use strict";_f();Lr();tn();iC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return El("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var kl,bf=S(()=>{"use strict";B();R();vf();tn();gf();Zn();kl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{yf(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Oo(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),To(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let v=yield $t.executeCommand(y);if(f=f&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=wl.GEM,g=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",g),g.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c))}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var aC,sC=S(()=>{"use strict";Lr();bf();tn();aC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return kl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var lC,cC=S(()=>{"use strict";bf();Lr();tn();lC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return kl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,uC=S(()=>{"use strict";Hx();Wx();Kx();nC();oC();sC();cC();Tt=Bx();Vx(Tt);$x(Tt)});var Al,P4,rn,R4,Po,dC,pC,N4,D4,wf,L4,M4,fC=S(()=>{"use strict";R();tt();or();US();Jx();yt();B();gt();_e();uC();Sc();Al=X(),P4=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},rn={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},R4={httpClient:rn,checkNetwork:P4,track:U,eventEmitter:fa,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Po=new vl(R4);Tt.getRewardFrequencyConfig(rn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",zx(Po));Tt.registerRewardHandler("JOLI_COIN",rC(rn,{onUnlockSuccess:e=>{dC(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",iC(rn,{onUnlockSuccess:e=>{dC(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",aC(rn,{onUnlockSuccess:e=>{pC(e),U("gem_unlock_success",{quantity:e.quantity})}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",lC(rn,{onUnlockSuccess:e=>{pC(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));dC=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Tr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})},pC=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Tr(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},N4=H("adInit",{implement:e=>{Po.init(e)}}),D4=H("adConfig",{implement:e=>{Po.adConfig(e)}}),wf=!1,L4=H("adBreak",{implement:e=>{if(e.type==="reward"){if(wf)return;wf=!0,Tt.getRewardsTypes(rn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{wf=!1})})}else Po.adBreak(e)}}),M4=H("adUnit",{implement:e=>{Po.adUnit(e)}});Al.registerCommand("AdsSDK.init",N4);Al.registerCommand("AdsSDK.adConfig",D4);Al.registerCommand("AdsSDK.adBreak",L4);Al.registerCommand("AdsSDK.adUnit",M4);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Ro,q4,U4,F4,j4,J4,hC=S(()=>{"use strict";R();_e();tt();B();Ro=X(),q4=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),U4=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),F4=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),j4=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),J4=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});Ro.registerCommand("RouterSDK.openSchema",q4);Ro.registerCommand("RouterSDK.openPage",U4);Ro.registerCommand("RouterSDK.closePage",F4);Ro.registerCommand("RouterSDK.interceptSystemExit",j4);Ro.registerCommand("RouterSDK.navigateToNativePage",J4);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function H4(e){Wl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var vC,G4,Sl,If,mC,B4,V4,gC=S(()=>{"use strict";R();tt();_e();B();yt();vC=X(),G4=H("onLoadFinished",{implement:()=>{Wl("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),Sl=null,If=!1,mC=0,B4=200;V4=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Sl=e,If||(If=!0,requestAnimationFrame(function t(){let r=Date.now();r-mC>=B4?(Sl!==null&&(H4(Sl),mC=r,Sl=null),If=!1):requestAnimationFrame(t)}))}});vC.registerCommand("RuntimeSDK.loadFinishedEvent",G4);vC.registerCommand("RuntimeSDK.loadProgressEvent",V4)});var $4,W4,z4,yC=S(()=>{"use strict";R();tt();B();$4=X(),W4="isNativeSupport",z4=H(W4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:mh(Ac(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});$4.registerCommand("API.isNativeSupport",z4);L("isNativeSupport",{version:"1.1.46"})});var IC=h(kf=>{"use strict";tt();_e();R();R();B();var _C=X(),xl=[],Ef=!1,bC=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;xl=bC((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),Ef=!0});var wC=()=>new Promise(e=>{if(Ef)e(xl);else{let t=r=>{var n;xl=bC((n=r.globalConfig.supportedHostMethods)!=null?n:[]),Ef=!0,ne.off("onGlobalConfigChanged",t),e(xl)};ne.on("onGlobalConfigChanged",t)}}),K4=we("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(kf,[r],function*({method:e,params:t}){if(!(yield wC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});_C.registerCommand("API.callHostMethod",K4);L("callHostMethod",{version:"1.1.49"});var Y4=we("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(kf,[n],function*({event:e,eventType:t,params:r}){if(!(yield wC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});_C.registerCommand("API.track",Y4);L("track",{version:"1.1.53"})});var Q4={};var Hte,zte,ere,EC=S(()=>{"use strict";zA();Hte=ie(KA());rS();da();nS();zte=ie(iS());$s();fC();hC();gC();yC();ere=ie(IC())});var kC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[kC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[kC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>($A(),VA)),Promise.resolve().then(()=>(EC(),Q4)),Promise.resolve().then(()=>(yt(),rm))]);e()});
|
|
831
|
+
`});function Ox(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return _(this,null,function*(){return yield i.reduce((s,l)=>_(this,null,function*(){let c=yield s;if(c===!0)return!0;Tx&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Tx&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return _(this,null,function*(){t=(...o)=>_(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return _(this,null,function*(){r=(...o)=>_(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:pr,loginGuide:fr}}})})},getRewardsTypes(...i){return _(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return _(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:pr,loginGuide:fr}})}}}var Tx,Rx=C(()=>{"use strict";B();Ue();Tx=E.testMode});var Nf,Df,Tl,Px=C(()=>{"use strict";P();Nf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:(n=t.extra)==null?void 0:n.joliCoin,joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},Df=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return x({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Tl=class{constructor(t){this.unlockOptionsService=new Qt(new Nf(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,l;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((l=a.joliGemChoice)==null?void 0:l.joliGemQuantity)})}),this.globalConfigService=new Qt(new Df(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return _(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return _(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return _(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return _(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return _(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function Lf(e){return qf||(qf=new Tl(e)),qf}var g$,v$,qf,Mf,Uf,Ff,jf=C(()=>{"use strict";Px();Ue();P();g$=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},v$=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(g$())},qf=null;Mf=e=>{e.registerRewardsFetcher(t=>_(void 0,null,function*(){var i,o,a,s,l;let r=["ADS"],n=Lf(t);try{let c=yield n.getUnlockOptions({});if(c.code!=="SUCCESS")return r;L.emit(Xs,{options:((i=c.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=c.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=c.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((l=(s=c.data)==null?void 0:s.unlockOptions)==null?void 0:l.map(u=>u.type))||Array.from(r);return v$(d)}catch(c){return console.error("getRewardOptions error (cached):",c),r}}))},Uf=e=>{e.registerRewardFrequencyConfigFetcher(t=>_(void 0,null,function*(){var n,i,o,a;let r=Lf(t);try{let s=yield r.getGlobalConfig();return L.emit(ur,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||pr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||fr}),s.data&&te.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||pr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||fr}}catch(s){return console.error("getGlobalConfig error (cached):",s),L.emit(ur,{joliCoinUseAndCharge:pr,loginGuide:fr}),te.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:pr,loginGuide:fr}}),{joliCoinUseAndCharge:pr,loginGuide:fr}}}))},Ff=e=>_(void 0,null,function*(){yield Lf(e).warmupCache(),console.log("Reward cache warmed up")})});var Gf=C(()=>{"use strict";jf();jf()});var Nx,Dx=C(()=>{"use strict";Nx=e=>t=>_(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Ge,_r=C(()=>{"use strict";Ue();hr();Ue();Ge=et(L,Xs)});var Ol,Bf=C(()=>{"use strict";Ol={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var It,Br=C(()=>{"use strict";P();It=Y()});function qx(e){return Jf||(Jf=new $f(e)),Jf}var Hf,$f,Jf,Vf,Wf,Rl=C(()=>{"use strict";P();Hf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},$f=class{constructor(t){this.balanceService=new Qt(new Hf(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return _(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return _(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return _(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Jf=null;Vf=(e,t="JOLI_COIN")=>_(void 0,null,function*(){return yield qx(e).getBalance(t)}),Wf=(e,t="JOLI_COIN")=>_(void 0,null,function*(){let n=yield qx(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var Lx=C(()=>{"use strict";Rl()});function Qf(e){return zf||(zf=new Yf(e)),zf}var Kf,Yf,zf,Xf,Zf,Pl,Nl=C(()=>{"use strict";P();Kf=class{constructor(t){this.httpClient=t}execute(t,r){return _(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Yf=class{constructor(t){this.gemBalanceService=new Qt(new Kf(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return _(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return _(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return _(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},zf=null;Xf=(e,t="GEM")=>_(void 0,null,function*(){return yield Qf(e).getGemBalance(t)}),Zf=(e,t="GEM")=>_(void 0,null,function*(){let n=yield Qf(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Pl=(e,t="GEM")=>_(void 0,null,function*(){yield Qf(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var Mx=C(()=>{"use strict";Nl()});var oi,Dl=C(()=>{"use strict";Lx();Mx();oi={JOLI_COIN:{fetchBalance:Vf,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Xf,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Po,br,eh=C(()=>{"use strict";Br();_r();hr();Ue();Ue();Dl();Po=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;It.registerCommand(`Rewards.${e}.useJolicoin`,()=>_(void 0,null,function*(){let i=yield Ge.getData(),o=oi[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},br=(e,t)=>r=>_(void 0,null,function*(){let n=et(L,sn);return L.emit(el,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var No,wr,Ux=C(()=>{"use strict";Br();_r();Ue();hr();Ue();Dl();No=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;It.registerCommand(`Rewards.${e}.usePayment`,()=>_(void 0,null,function*(){var p;let o=yield Ge.getData(),a=oi[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return Ge.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},wr=(e,t)=>r=>_(void 0,null,function*(){let n=et(L,xt);return L.emit(Zs,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var th,Ir,Fx=C(()=>{"use strict";B();Br();hr();Ue();Ue();P();_r();Dl();th=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;It.registerCommand(`Rewards.${e}.useUnloginModal`,()=>_(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield Ge.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield Bh(3e3));let f=oi[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),y=f.getCurrentUser(a),g=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),w=f.getUpdateKey();if(Ge.updateData({[w]:g}),g.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Ir=(e,t)=>r=>_(void 0,null,function*(){let n=et(L,dr);return L.emit(tl,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var dn=C(()=>{"use strict";eh();Ux();Fx()});var _$,ql,rh=C(()=>{"use strict";B();P();Bf();dn();Br();Rl();_$=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{No(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Po(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>_(void 0,null,function*(){var u,p,f;try{let m=!0;for(let g of c){let w=yield It.executeCommand(g);if(m=m&&w.result!=="FAILED",w.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let v=Ol[r],y=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${hn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d)),Wf(t)}catch(g){console.error("-----unlockWithJolicoin adBreakDone error-----",g)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},ql=(e,t,r)=>_$(e,t,"JOLI_COIN",r)});var jx,Gx=C(()=>{"use strict";_r();rh();dn();jx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=br("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=wr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=Ir("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ql("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Bx,Jx=C(()=>{"use strict";rh();_r();dn();Bx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=br("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=wr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=Ir("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ql("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Ll,nh=C(()=>{"use strict";B();P();Bf();dn();eh();Br();Nl();Ll=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{th(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),No(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Po(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>_(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let g=yield It.executeCommand(y);if(f=f&&g.result!=="FAILED",g.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=Ol.GEM,v=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${hn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",v),v.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c)),Zf(t)}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:v.data.quantity,balance:v.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var Hx,$x=C(()=>{"use strict";_r();nh();dn();Hx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=br("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=wr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=Ir("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ll("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Vx,Wx=C(()=>{"use strict";nh();_r();dn();Vx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=br("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=wr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=Ir("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ll("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:Ge,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var ih=C(()=>{"use strict";Br();hr();Ue();Ue()});var zx=C(()=>{"use strict";ih()});var Kx=C(()=>{"use strict";Br();zx();B()});var Yx=C(()=>{"use strict";_r();Kx();ih()});var Ot,Qx=C(()=>{"use strict";Rx();Gf();Dx();Gx();Jx();$x();Wx();Yx();Rl();Nl();Ot=Ox();Mf(Ot);Uf(Ot)});var Ml,b$,Er,w$,Do,Xx,Zx,I$,E$,oh,S$,k$,eT=C(()=>{"use strict";P();Qe();cr();kA();xx();yt();B();vt();be();Qx();Uc();Gf();Ml=Y(),b$=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Er={get:(e,t)=>re(e,x({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,x({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},w$={httpClient:Er,checkNetwork:b$,track:U,eventEmitter:ga,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Do=new Sl(w$);Ot.getRewardFrequencyConfig(Er).then(e=>{console.log("getRewardFrequencyConfig",e)});Ot.registerRewardHandler("ADS",Nx(Do));Ot.registerRewardHandler("JOLI_COIN",jx(Er,{onUnlockSuccess:e=>{Xx(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ot.registerRewardHandler("JOLI_COIN_ONLY",Bx(Er,{onUnlockSuccess:e=>{Xx(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ot.registerRewardHandler("JOLI_GEM",Hx(Er,{onUnlockSuccess:e=>{Zx(e),U("gem_unlock_success",{quantity:e.quantity})}}));Ot.registerRewardHandler("JOLI_GEM_ONLY",Vx(Er,{onUnlockSuccess:e=>{Zx(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));Xx=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ur(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Ff(Er);Pl(Er);Zx=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ur(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},I$=H("adInit",{implement:e=>{Do.init(e)}}),E$=H("adConfig",{implement:e=>{Do.adConfig(e)}}),oh=!1,S$=H("adBreak",{implement:e=>{if(e.type==="reward"){if(oh)return;oh=!0,Ot.getRewardsTypes(Er).then(t=>{Ot.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{oh=!1})})}else Do.adBreak(e)}}),k$=H("adUnit",{implement:e=>{Do.adUnit(e)}});Ml.registerCommand("AdsSDK.init",I$);Ml.registerCommand("AdsSDK.adConfig",E$);Ml.registerCommand("AdsSDK.adBreak",S$);Ml.registerCommand("AdsSDK.adUnit",k$);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var qo,C$,A$,x$,T$,O$,tT=C(()=>{"use strict";P();be();Qe();B();qo=Y(),C$=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),A$=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),x$=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),T$=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{te.emit("onInterceptSystemExit",{intercept:e}),te.emit("onInterceptBackPress",{intercept:e})}}),O$=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:x({},t)})}});qo.registerCommand("RouterSDK.openSchema",C$);qo.registerCommand("RouterSDK.openPage",A$);qo.registerCommand("RouterSDK.closePage",x$);qo.registerCommand("RouterSDK.interceptSystemExit",T$);qo.registerCommand("RouterSDK.navigateToNativePage",O$);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});function N$(e){oc("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var nT,R$,Ul,ah,rT,P$,D$,iT=C(()=>{"use strict";P();Qe();be();B();yt();nT=Y(),R$=H("onLoadFinished",{implement:()=>{oc("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),Ul=null,ah=!1,rT=0,P$=200;D$=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Ul=e,ah||(ah=!0,requestAnimationFrame(function t(){let r=Date.now();r-rT>=P$?(Ul!==null&&(N$(Ul),rT=r,Ul=null),ah=!1):requestAnimationFrame(t)}))}});nT.registerCommand("RuntimeSDK.loadFinishedEvent",R$);nT.registerCommand("RuntimeSDK.loadProgressEvent",D$)});var q$,L$,M$,oT=C(()=>{"use strict";P();Qe();B();q$=Y(),L$="isNativeSupport",M$=H(L$,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:tm(Mc(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});q$.registerCommand("API.isNativeSupport",M$);q("isNativeSupport",{version:"1.1.46"})});var cT=h(lh=>{"use strict";Qe();be();P();P();B();var aT=Y(),Fl=[],sh=!1,sT=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};te.on("onGlobalConfigChanged",e=>{var t,r;Fl=sT((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),sh=!0});var lT=()=>new Promise(e=>{if(sh)e(Fl);else{let t=r=>{var n;Fl=sT((n=r.globalConfig.supportedHostMethods)!=null?n:[]),sh=!0,te.off("onGlobalConfigChanged",t),e(Fl)};te.on("onGlobalConfigChanged",t)}}),U$=ue("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>_(lh,[r],function*({method:e,params:t}){if(!(yield lT()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:x({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=Be(c,["callHostMethodId"]);return x({},l)})});aT.registerCommand("API.callHostMethod",U$);q("callHostMethod",{version:"1.1.49"});var F$=ue("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>_(lh,[n],function*({event:e,eventType:t,params:r}){if(!(yield lT()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:x({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});aT.registerCommand("API.track",F$);q("track",{version:"1.1.53"})});var pT=h(ch=>{"use strict";P();Qe();Zp();Wr();var uT=Y(),dT=al(),j$=ue("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>_(ch,null,function*(){var r,n;let t=yield dT.purchase(e.productId);if(t.code!=="SUCCESS"||!((r=t.data)!=null&&r.totalAmount))throw qt({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=t.data)==null?void 0:n.totalAmount}})}),G$=ue("getGemProducts",{paramsSchema:I.tuple(),implement:()=>_(ch,null,function*(){var t,r;let e=(r=(t=yield dT.getProductsInfo())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})});uT.registerCommand("PaymentSDK.purchaseGem",j$);uT.registerCommand("PaymentSDK.getGemProducts",G$);q("payment.purchaseGem",{version:"1.2.3"});q("payment.getGemProducts",{version:"1.2.3"})});var B$={};var tie,oie,die,pie,fT=C(()=>{"use strict";DC();tie=ie(qC());BC();ha();JC();oie=ie(HC());Ks();eT();tT();iT();oT();die=ie(cT()),pie=ie(pT())});var hT=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[hT])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[hT]=!0;_(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(PC(),RC)),Promise.resolve().then(()=>(fT(),B$)),Promise.resolve().then(()=>(yt(),Bm))]);e()});
|