@jolibox/implement 1.4.12 → 1.4.14
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 +1 -1
- package/dist/index.js +8 -8
- package/dist/index.native.js +19 -19
- package/implement.build.log +2 -2
- package/package.json +6 -6
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var AO=Object.create;var Na=Object.defineProperty,CO=Object.defineProperties,kO=Object.getOwnPropertyDescriptor,xO=Object.getOwnPropertyDescriptors,TO=Object.getOwnPropertyNames,Ra=Object.getOwnPropertySymbols,PO=Object.getPrototypeOf,zl=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable;var Fh=(e,t,r)=>t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))zl.call(t,r)&&Fh(e,r,t[r]);if(Ra)for(var r of Ra(t))jh.call(t,r)&&Fh(e,r,t[r]);return e},B=(e,t)=>CO(e,xO(t));var Qe=(e,t)=>{var r={};for(var n in e)zl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ra)for(var n of Ra(e))t.indexOf(n)<0&&jh.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bh=(e,t)=>{for(var r in t)Na(e,r,{get:t[r],enumerable:!0})},OO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TO(t))!zl.call(e,i)&&i!==r&&Na(e,i,{get:()=>t[i],enumerable:!(n=kO(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?AO(PO(e)):{},OO(t||!e||!e.__esModule?Na(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function UO(e){return!!(e!=null&&e.__nativeBuffers__)}function tu(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!UO(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=MO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function jO(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:FO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function HO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function eg(e){return typeof e=="string"}function Yn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Jh(e){return typeof e=="number"&&!isNaN(e)}function $O(e){return typeof e=="undefined"}function WO(e){return $O(e)||e===null}function tg(e){return typeof e=="function"}function zO(e){return Yn(e)&&tg(e.then)}function rg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Yi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function tR(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 aR(){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 dR(e){return new Promise(t=>ng(e)(t))}function ng(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function pR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Zi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function mR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)hR(e[n],t[n])}function hR(e,t){if(eg(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(tg(t)){try{if(e instanceof t)return}catch(r){}if(!WO(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 Ze(e,t){if(nu.config[e]){Fa.warn(`[can i use] ${e} already registered`);return}nu.config[e]=gr({},t)}function $h(e,t){return`[${e}]:${t}`}function SR(e,t){Wh||(Xl=new La({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ql=new La({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Zl=new La({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Xl.flush(),Ql.flush(),Zl.flush()}),Wh=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Xl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(Ql.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),Zl.report({status:b,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 CR(e,t){let r=0,n=!0,i=AR.resolveMap,o=SR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,eu.forEach(c=>Ua(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),eu.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=tu(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new VO;if(i.set(r,m.resolve),!n&&yR.includes(c))return new Promise(C=>{eu.push({method:c,args:l,resolve:C})});let v=LO(gr({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!IR&&vR.includes(c),y=jO(l,b),_=b?y:JSON.stringify(y),E;if(c.endsWith("Sync")||bR.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof _=="string"?E=e.invoke(c,_,r):E=(u=e.call)==null?void 0:u.call(e,c,_,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=tu(E)}catch(C){Fa.error(C)}return i.delete(r),E.errorCode&&(E.errorCode=$h(c,E.errorCode)),o(gr(gr({},v),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=$h(c,C.errorCode)),o(gr(gr({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return zO(d)?d.then(u=>zh(c,u)):zh(c,d)},invokeHandler:a}}function zh(e,t){if(!Yn(t)){Fa.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=qO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new QO(n,i,o,a);return s}function kR(e){if(globalThis[Da])return globalThis[Da];let t=new au,r=new au,n=new La({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[Da]={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=tu(o),c;if(s.__extra){c=s.params;let{type:l,startTime:d}=s.__extra;n.report({type:l,event:i,duration:Date.now()-d})}else c=s;if(i===ig){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Qi.length),u,a)}catch(p){}});return}if(i.startsWith(Qi)){r.emit(i.slice(Qi.length),c,a);return}t.emit(i,c,a)}},globalThis[Da]}function xR(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Qi}${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(ig,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Qi}${o}`,a])},emitNative:(o,a,s,c)=>{if(c){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(_R,d,p)}catch(p){}}),i=void 0,r.clear()}));let l=r.get(s);l||(l=[],r.set(s,l)),l.push([o,a])}}}function TR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=kR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=CR(e,r),{publish:l,emitNative:d}=xR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function og(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var RO,NO,DO,qa,Yh,Xh,Gh,gr,LO,qO,Ua,MO,FO,Qh,BO,GO,Zh,JO,VO,KO,YO,Ma,XO,QO,ZO,Kl,Fa,Hh,eR,ru,rR,nu,nR,iR,oR,Kn,sR,_z,iu,he,cR,lR,Xi,Zi,au,su,uR,Yl,fR,wz,cu,Vh,Sz,ja,gR,Qi,vR,yR,bR,ig,_R,wR,La,Wh,Xl,Ql,Zl,eu,IR,lu,ER,AR,Da,uu,Rt,ag,sg,PR,cg,Kh,de,L,we,lg,OR,ug,gn,Iz,Ez,ce=T(()=>{"use strict";RO=Object.defineProperty,NO=Object.defineProperties,DO=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Yh=Object.prototype.hasOwnProperty,Xh=Object.prototype.propertyIsEnumerable,Gh=(e,t,r)=>t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Yh.call(t,r)&&Gh(e,r,t[r]);if(qa)for(var r of qa(t))Xh.call(t,r)&&Gh(e,r,t[r]);return e},LO=(e,t)=>NO(e,DO(t)),qO=(e,t)=>{var r={};for(var n in e)Yh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&Xh.call(e,n)&&(r[n]=e[n]);return r},Ua=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});MO=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};FO=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)};Qh=Object.defineProperty,BO=Object.getOwnPropertyDescriptor,GO=(e,t)=>{for(var r in t)Qh(e,r,{get:t[r],enumerable:!0})},Zh=(e,t,r,n)=>{for(var i=n>1?void 0:n?BO(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&&Qh(t,r,i),i},JO=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}VO=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))}})}};KO=(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))(KO||{}),YO=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}},Ma=class extends YO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},XO=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},QO=class extends Ma{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},ZO=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Kl=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Fa={log:Yi("log"),warn:Yi("warn"),info:Yi("info"),error:Yi("error"),debug:Yi("debug")};Object.assign(globalThis,{logger:Fa});Hh=Symbol.for("Jolibox.canIUseMap"),eR={};globalThis[Hh]||(globalThis[Hh]=eR);ru=Symbol.for("Jolibox.canIUseMap.native"),rR={};globalThis[ru]||(globalThis[ru]=rR);nu={get config(){return globalThis[ru]}},nR=(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))(nR||{}),iR=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(iR||{}),oR=(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))(oR||{});aR();Kn=typeof window=="undefined",sR=()=>!Kn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),_z={isiOS:!Kn&&(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:!Kn&&navigator.userAgent.includes("Android"),isMac:!Kn&&navigator.userAgent.includes("Mac"),isFacebook:!Kn&&navigator.userAgent.includes("FB_IAB"),isPC:!Kn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},iu=class ou{constructor(t){this.element=t,this.next=ou.Undefined,this.prev=ou.Undefined}};iu.Undefined=new iu(void 0);he=iu,cR=class{constructor(){this._first=he.Undefined,this._last=he.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===he.Undefined}clear(){let e=this._first;for(;e!==he.Undefined;){let t=e.next;e.prev=he.Undefined,e.next=he.Undefined,e=t}this._first=he.Undefined,this._last=he.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new he(e);if(this._first===he.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!==he.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==he.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==he.Undefined&&e.next!==he.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===he.Undefined&&e.next===he.Undefined?(this._first=he.Undefined,this._last=he.Undefined):e.next===he.Undefined?(this._last=this._last.prev,this._last.next=he.Undefined):e.prev===he.Undefined&&(this._first=this._first.next,this._first.prev=he.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==he.Undefined;)yield e.element,e=e.next}},lR=0,Xi=class{constructor(e){this.value=e,this.id=lR++}},Zi=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 Xi&&(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,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new Xi(t);return this._listeners?this._listeners instanceof Xi?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Xi)this._listeners.id===l.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(l);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 Xi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},au=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 Zi,o=c=>t(...c.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 c of s)t(...c.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 cR,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)}},su={};GO(su,{None:()=>uR,filter:()=>pR,once:()=>ng,toPromise:()=>dR});uR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Yl=Symbol.for("Jolibox.hostEmitter"),fR=()=>{let e=new au;return globalThis[Yl]||(globalThis[Yl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Yl]},wz=fR();cu=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Zi,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 mR(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}};cu=Zh([rg],cu);Vh=class{constructor(){this._onWillExecuteCommand=new Zi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Zi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new cu,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=HO(3e4)),this._starActivation}executeCommand(e,...t){return JO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),su.toPromise(su.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}}};Vh=Zh([rg],Vh);Sz=Symbol.for("Jolibox.commands");Ze("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Ze("requestProductDetailsAsync",{version:102e4});Ze("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Ze("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Ze("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Ze("userTrackAsync",{version:1e6});Ze("openMiniapp",{version:1050100});Ze("requestCoinDetailsSync",{version:1070100});Ze("requestCoinDetailsAsync",{version:1070100});Ze("sendServerEventAsync",{version:1070100});Ze("requestGameLeaderboardSync",{version:108e4});Ze("requestGameLeaderboardAsync",{version:108e4});Ze("notifyTaskGameInfoAsync",{version:1080100});Ze("loadAdsAsync",{version:1070200});Ze("showAdAsync",{version:1070200});Ze("onJoliboxHideLoading",{version:1070300});ja=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=nu.config[a];if(!c)return!1;let l=(o=t==null?void 0:t())!=null?o:"",d=c.version;if(c.platforms&&l in c.platforms){let p=c.platforms[l];if(p===!1)return!1;typeof p=="number"&&(d=p)}if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(c,s,u)||n(c.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=tR(i,o);if(!s)return!1;if(Yn(s)){let c=s.version;return Jh(c)?typeof a=="number"&&a>=c:!0}return Jh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};gR=()=>sR(),Qi="custom_event_",vR=[],yR=[],bR=["env","createRequestTask","login"],ig="__batch_event__",_R="__native_batch_event__",wR=e=>e==="pv"?e:"default",La=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=wR(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&&Yn(a))throw new Kl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Yn(a))c.push(...Object.keys(a));else if(eg(a)){if(i.length>0)throw new Kl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Kl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Yn(a)?a[l]:a;t(n[l],[...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={}}},Wh=!1;eu=[],IR=!1,lu=Symbol.for("Jolibox.invokeResolverInstance"),ER=new Map;globalThis[lu]||(globalThis[lu]=ER);AR={get resolveMap(){return globalThis[lu]}};Da=Symbol.for("Jolibox.subscribeInstance");Rt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Rt.trigger=e},onDoExit(e){Rt.exit=e},onDoBackPress(e){Rt.backPress=e}},ag=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new XO("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="")=>{Rt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ua(void 0,null,function*(){let o=yield Rt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});uu={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=og(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:ag,doExit:r};globalThis.joliboxJSCore=gr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Rt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ua(void 0,null,function*(){let a=yield Rt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});uu={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=og(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(c),webviewIds:s}))},call(o,a,s){let c=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(c)return JSON.parse(c)},doBackPress(o){return Ua(this,null,function*(){let a=yield Rt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:ag,doExit:n};globalThis.joliboxJSCore=gr({},i)}sg=uu;if(!sg&&gR())throw new ZO("No joliboxJScore is found, native bridge not found.");PR=gr({},sg),cg=TR(PR),{invokeHandler:Kh}=cg,{applyNative:de,invokeNative:L,onNative:we,offNative:lg,subscribeHandler:OR,publish:ug,emitNative:gn,subscribe:Iz,unsubscribe:Ez}=cg;globalThis.joliboxJSBridge={callHandler:Kh,invokeHandler:Kh,subscribeHandler:OR}});function qR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ga(e){return new Promise(t=>setTimeout(t,e))}function io(e){return typeof e=="string"}function yn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function vg(e){return typeof e=="object"&&Array.isArray(e)}function Ja(e){return typeof e=="number"&&!isNaN(e)}function Jr(e){return e===!0||e===!1}function yg(e){return typeof e=="undefined"}function oo(e){return yg(e)||e===null}function UR(e){return typeof e=="function"}function bg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function _g(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],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:fg(c)&&fg(s)?i[a]=n(hg({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function fg(e){return e&&typeof e=="object"&&e.constructor===Object}function wg(e,t){if(Array.isArray(e))return e.concat(t)}function ao(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:c=!0}=r,l=()=>(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,c&&!p&&l()},t),p)return l()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,l()},d}function FR(e,t){return(...r)=>t(e,...r)}function Xn(e){return t=>FR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new zt(`${i}`))}})}function eo(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Cg(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 c=parseInt(i[s],10)||0,l=parseInt(o[s],10)||0;if(c>l){n=1;break}else if(c<l){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 Iu(){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 VR(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"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function Eu(e){return VR("app","stg-app",e)}function Zn(e){return`https://${Eu(e)}`}function KR(e){return new Promise(t=>Pg(e)(t))}function Pg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function YR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new no(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function QR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)ZR(e[n],t[n])}function ZR(e,t){if(io(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(UR(t)){try{if(e instanceof t)return}catch(r){}if(!oo(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 e1(){return typeof globalThis!="undefined"?globalThis[Og]:void 0}function t1(e){typeof globalThis!="undefined"&&(globalThis[Og]=e)}function Y(e=!1){let t=e1();if(!e&&t)return t;let r=new Ba,n=new gu,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 t1(i),i}var vu,RR,dg,NR,DR,pg,hg,LR,gg,vn,pt,MR,yu,so,bu,Sg,zt,Ha,Ig,Va,Eg,Ag,co,_u,Kt,pu,jR,wu,mg,BR,K,Su,GR,Qn,to,lo,JR,HR,kg,xg,Tg,Ft,fu,ge,$R,WR,ro,no,Yt,hu,zR,du,XR,Se,Ba,gu,Og,R=T(()=>{"use strict";vu=Object.defineProperty,RR=Object.getOwnPropertyDescriptor,dg=Object.getOwnPropertySymbols,NR=Object.prototype.hasOwnProperty,DR=Object.prototype.propertyIsEnumerable,pg=(e,t,r)=>t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hg=(e,t)=>{for(var r in t||(t={}))NR.call(t,r)&&pg(e,r,t[r]);if(dg)for(var r of dg(t))DR.call(t,r)&&pg(e,r,t[r]);return e},LR=(e,t)=>{for(var r in t)vu(e,r,{get:t[r],enumerable:!0})},gg=(e,t,r,n)=>{for(var i=n>1?void 0:n?RR(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&&vu(t,r,i),i},vn=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}pt=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))}})}};MR=(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))(MR||{}),yu=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}},so=class extends yu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},bu=class extends yu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Sg=class extends bu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},zt=class extends bu{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))}},Ha=class extends bu{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))}},Ig=class extends so{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Va=class extends so{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))}},Eg=class extends so{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Ag=class extends so{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},co=class extends yu{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}}},_u=class extends so{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Kt={log:eo("log"),warn:eo("warn"),info:eo("info"),error:eo("error"),debug:eo("debug")};Object.assign(globalThis,{logger:Kt});pu=Symbol.for("Jolibox.canIUseMap"),jR={};globalThis[pu]||(globalThis[pu]=jR);wu={get config(){return globalThis[pu]}},mg=Symbol.for("Jolibox.canIUseMap.native"),BR={};globalThis[mg]||(globalThis[mg]=BR);K=(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))(K||{}),Su=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Su||{}),GR=(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))(GR||{}),Qn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Iu();to=typeof window=="undefined",lo={isiOS:!to&&(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:!to&&navigator.userAgent.includes("Android"),isMac:!to&&navigator.userAgent.includes("Mac"),isFacebook:!to&&navigator.userAgent.includes("FB_IAB"),isPC:!to&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},JR="device_id",HR="advertising_id",kg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Qn()),window.__joliboxLocalStorage__.getItem(e)),xg=()=>new URLSearchParams(window.location.search).get("deviceId")||kg(JR),Tg=()=>new URLSearchParams(window.location.search).get("advertisingId")||kg(HR);Ft=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=hg({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return vn(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=>vn(this,null,function*(){if(s.message.includes("timeout")){let c=this.getValidCachedData(r);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}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 vn(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,c=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",c),c){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(c,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(c,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(c):c}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let l=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,l);return d&&this.setCachedDataWithSequence(a,d,s),l})}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 vn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return vn(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 vn(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)}},fu=class mu{constructor(t){this.element=t,this.next=mu.Undefined,this.prev=mu.Undefined}};fu.Undefined=new fu(void 0);ge=fu,$R=class{constructor(){this._first=ge.Undefined,this._last=ge.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ge.Undefined}clear(){let e=this._first;for(;e!==ge.Undefined;){let t=e.next;e.prev=ge.Undefined,e.next=ge.Undefined,e=t}this._first=ge.Undefined,this._last=ge.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ge(e);if(this._first===ge.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!==ge.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ge.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ge.Undefined&&e.next!==ge.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ge.Undefined&&e.next===ge.Undefined?(this._first=ge.Undefined,this._last=ge.Undefined):e.next===ge.Undefined?(this._last=this._last.prev,this._last.next=ge.Undefined):e.prev===ge.Undefined&&(this._first=this._first.next,this._first.prev=ge.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ge.Undefined;)yield e.element,e=e.next}},WR=0,ro=class{constructor(e){this.value=e,this.id=WR++}},no=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 ro&&(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,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new ro(t);return this._listeners?this._listeners instanceof ro?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ro)this._listeners.id===l.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(l);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 ro?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Yt=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 no,o=c=>t(...c.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 c of s)t(...c.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 $R,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)}},hu={};LR(hu,{None:()=>zR,filter:()=>YR,once:()=>Pg,toPromise:()=>KR});zR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});du=Symbol.for("Jolibox.hostEmitter"),XR=()=>{let e=new Yt;return globalThis[du]||(globalThis[du]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[du]},Se=XR();Ba=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new no,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 QR(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}};Ba=gg([bg],Ba);gu=class{constructor(){this._onWillExecuteCommand=new no,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new no,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ba,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=qR(3e4)),this._starActivation}executeCommand(e,...t){return vn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),hu.toPromise(hu.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}}};gu=gg([bg],gu);Og=Symbol.for("Jolibox.commands")});function ke(e,t={}){Au.emit("ERROR_REPORT",{error:e,options:t})}var Au,bn,_t=T(()=>{"use strict";R();R();Au=new Yt,bn=new Yt;ke.debounce=ao(ke,50,{leading:!0})});var Cu,r1,Rg,Ng,Dg=T(()=>{"use strict";R();_t();Cu=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{}}},r1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rg=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:Cu(o),payloadJson:Cu(a),signature:Cu(s)}}else throw"joli_source is missing"}catch(r){return ke(new Ig(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Ng=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=r1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var n1,ku,Lg=T(()=>{"use strict";R();n1="1.4.12",ku=()=>n1});function Tu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var i1,qg,xu,Ug,ve,o1,I,$=T(()=>{"use strict";R();Dg();Lg();R();i1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:xg(),adId:Tg(),pixelRatio:window.devicePixelRatio||1,platform:lo.isAndroid?"android":lo.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:ku()},schema:window.location.href,platform:lo.isAndroid?"android":lo.isiOS?"ios":"h5"},xu=(qg=globalThis.joliboxJSCore)==null?void 0:qg.env,ve=Object.assign({},(Ug=xu==null?void 0:xu())!=null?Ug:i1);o1=()=>{var v,b,y,_,E,C,x,k,A,H,ue;let{payloadJson:e,headerJson:t,signature:r}=ve.schema.length?Rg(ve.schema):{},n=`${ve.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ve.schema.length?ve.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(C=(E=(_=ve.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?C:n,c=!!((k=(x=e==null?void 0:e.testAdsMode)!=null?x:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(ue=(H=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?H:o.get("joliboxEnv"))!=null?ue:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,m=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var N,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:ku()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=ve.platform)!=null?N:ve.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ve.deviceInfo},get sdkInfo(){return ve.sdkInfo},get hostInfo(){return ve.hostInfo},get hostUserInfo(){return ve.hostUserInfo},get sessionId(){var N,O;return(O=(N=ve.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ve.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Eu(d)},get adId(){var N;return(N=ve.deviceInfo.adId)!=null?N:ve.deviceInfo.did},get language(){return ve.deviceInfo.lang},get sdkEnvironment(){return Tu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Tu("gamedistribution","jolibox")?"gamedistribution":Tu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var J,V,Mt;let N=(J=ve.deviceInfo.pixelRatio)!=null?J:1,O=(V=ve.deviceInfo.statusBarHeight)!=null?V:e==null?void 0:e.__androidStatusBarHeight,F=(Mt=ve.deviceInfo.navigationBarHeight)!=null?Mt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,O;return(O=(N=ve.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ve.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{_g(ve,N,wg)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?Ng(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},I=o1()});var Pu,Fg,a1,s1,Mg,c1,jg=T(()=>{"use strict";R();_t();$();R();Pu=!1,Fg=(e,t)=>e==null?!1:t in e,a1=e=>Fg(e,"kind"),s1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Mg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:s1(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?bn.emit("GLOBAL_USER_ERROR",e,i):bn.emit("GLOBAL_ERROR",e,i)},c1=e=>Fg(e,"kind")&&e.kind==="USER_ERROR";Au.on("ERROR_REPORT",({error:e,options:t})=>{if(Pu)return;Pu=!0;let r=a1(e)&&e.raw?e.raw:e;try{let n=c1(e);Mg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new _u(`${i}, origin error: ${r.message}`);Kt.error(o),Mg(new _u(o.message),{environment:t.environment},!1)}finally{Pu=!1}})});var xe,Ou,Hr=T(()=>{"use strict";_t();R();_t();xe=(e,t)=>{var r,n;return new co((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ou=e=>new Sg(e)});var Bg=T(()=>{"use strict";jg();Hr();R();ce();bn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});bn.on("GLOBAL_USER_ERROR",(e,t)=>{Kt.log("UserError",e,t)})});var Ru=T(()=>{"use strict"});function Gg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Qe(l,["eventType"]),c=B(P({tag:n,eventType:o!=null?o:a!=null?a:K.Other},t),{extra:P({},s)});n=="globalJsError"?ke(new Ag(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=ao(r,500,{leading:!0}),r}function Jg(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=ao(t,500,{leading:!0}),t}var Hg=T(()=>{"use strict";R();R();_t();$()});function Vg(e,t){let r=Gg(e,t),n=Jg(r);return{track:r,trackPerformance:n}}var $g=T(()=>{"use strict";Hg()});var Wg=T(()=>{"use strict";$();R();R()});var zg=T(()=>{"use strict";$g();Ru();Wg()});var $a,Kg=T(()=>{"use strict";$a=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)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{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?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function Wa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Zn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return we("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:b}=f,y=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:b}=m,y=Qe(m,["requestTaskId","state"]);p.reject(y),n.delete(v)}else Kt.warn("onRequestTaskStateChange unknown event",u)}),Se.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>g(this,[f,...m],function*(u,p={}){let v=Date.now(),b=l1(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:E="json",timeout:C,enableCache:x=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),H={url:b,method:y,header:A,enableCache:x,responseType:_,appendHostCookie:k};if(y=="POST"||y=="PUT"){let J=d1(p.data,A["content-type"]);H.data=J}C&&Object.assign(H,{timeout:C});let{data:{requestTaskId:ue}}=L(e,H);if(typeof ue!="string")throw xe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new pt;n.set(ue,{resolve:N,reject:O});try{let J=yield F,{data:V}=J;return E==="json"&&typeof V=="string"&&(V=u1(V)),{url:b,timeout:C,method:y,response:B(P({},J),{data:V})}}catch(J){let V=J;if(yn(V)){let{errMsg:Mt,prefetchDetail:Mh,isPrefetch:Wl,errNo:Oa}=V;io(Mt)&&ke(xe({code:-1,msg:Mt},{errNo:Oa,errMsg:Mt}))}throw J}})}function u1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function d1(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 l1,Nu=T(()=>{"use strict";R();ce();_t();Hr();$();l1=(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 Du,Yg,X,ft=T(()=>{"use strict";Nu();$();R();Du={};(Yg=I.hostUserInfo)!=null&&Yg.token&&(Du["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(Du["x-joli-source"]=I.joliSource);X=Wa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Zn(I.testMode),defaultHeaders:Du})});function Xg(e){let t=wu.config[e];return t||(t={},wu.config[e]=t),(r,n)=>{if(t[r]){Kt.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Qg=T(()=>{"use strict";R()});function Lu(e){Zg=e}function za(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>za(t)):Object.keys(e).reduce((t,r)=>(t[r]=za(e[r]),t),{})}function vr(e){return typeof e=="number"}function qu(e){let t=Uu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Uu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Zg,Oe,Ka,Ya,Xa,Qa,ei,Za,es,ts,rs,ns,is,os,as,ss,cs,ls,us,Mu=T(()=>{"use strict";Zg=!1;Oe=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Zg)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 ${qu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return za(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:za(this._default)}optional(){return this._optional=!0,this}};Ka=class extends Oe{validate(t){return this._optional&&t===void 0?!0:vr(t)?vr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):vr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):vr(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}},Ya=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Xa=class extends Oe{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(vr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(vr(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}},Qa=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},ei=class extends Oe{validate(t){return!0}},Za=class extends Oe{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},es=class extends Oe{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ts=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},rs=class extends Oe{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 ${qu(t)}`)}return!0}},ns=class extends Oe{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(vr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(vr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(vr(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}},is=class extends Oe{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Uu(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 c=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}"]`,!(c===void 0&&o._optional)){if(c===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(c)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},os=class extends Oe{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Uu(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}},as=class extends Oe{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:qu(this.value),actual:r}):!0}},ss=class extends Oe{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(`
|
|
1
|
+
var AO=Object.create;var Na=Object.defineProperty,CO=Object.defineProperties,kO=Object.getOwnPropertyDescriptor,xO=Object.getOwnPropertyDescriptors,TO=Object.getOwnPropertyNames,Ra=Object.getOwnPropertySymbols,PO=Object.getPrototypeOf,zl=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable;var Fh=(e,t,r)=>t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))zl.call(t,r)&&Fh(e,r,t[r]);if(Ra)for(var r of Ra(t))jh.call(t,r)&&Fh(e,r,t[r]);return e},B=(e,t)=>CO(e,xO(t));var Qe=(e,t)=>{var r={};for(var n in e)zl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ra)for(var n of Ra(e))t.indexOf(n)<0&&jh.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bh=(e,t)=>{for(var r in t)Na(e,r,{get:t[r],enumerable:!0})},OO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TO(t))!zl.call(e,i)&&i!==r&&Na(e,i,{get:()=>t[i],enumerable:!(n=kO(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?AO(PO(e)):{},OO(t||!e||!e.__esModule?Na(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function UO(e){return!!(e!=null&&e.__nativeBuffers__)}function tu(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!UO(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=MO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function jO(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:FO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function HO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function eg(e){return typeof e=="string"}function Kn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Jh(e){return typeof e=="number"&&!isNaN(e)}function $O(e){return typeof e=="undefined"}function WO(e){return $O(e)||e===null}function tg(e){return typeof e=="function"}function zO(e){return Kn(e)&&tg(e.then)}function rg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Yi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function tR(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 aR(){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 dR(e){return new Promise(t=>ng(e)(t))}function ng(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function pR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Zi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function mR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)hR(e[n],t[n])}function hR(e,t){if(eg(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(tg(t)){try{if(e instanceof t)return}catch(r){}if(!WO(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 Ze(e,t){if(nu.config[e]){Fa.warn(`[can i use] ${e} already registered`);return}nu.config[e]=gr({},t)}function $h(e,t){return`[${e}]:${t}`}function SR(e,t){Wh||(Xl=new La({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ql=new La({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Zl=new La({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Xl.flush(),Ql.flush(),Zl.flush()}),Wh=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Xl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(Ql.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),Zl.report({status:b,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 CR(e,t){let r=0,n=!0,i=AR.resolveMap,o=SR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,eu.forEach(c=>Ua(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),eu.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=tu(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new VO;if(i.set(r,m.resolve),!n&&yR.includes(c))return new Promise(C=>{eu.push({method:c,args:l,resolve:C})});let v=LO(gr({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!IR&&vR.includes(c),y=jO(l,b),_=b?y:JSON.stringify(y),E;if(c.endsWith("Sync")||bR.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof _=="string"?E=e.invoke(c,_,r):E=(u=e.call)==null?void 0:u.call(e,c,_,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=tu(E)}catch(C){Fa.error(C)}return i.delete(r),E.errorCode&&(E.errorCode=$h(c,E.errorCode)),o(gr(gr({},v),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=$h(c,C.errorCode)),o(gr(gr({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return zO(d)?d.then(u=>zh(c,u)):zh(c,d)},invokeHandler:a}}function zh(e,t){if(!Kn(t)){Fa.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=qO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new QO(n,i,o,a);return s}function kR(e){if(globalThis[Da])return globalThis[Da];let t=new au,r=new au,n=new La({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[Da]={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=tu(o),c;if(s.__extra){c=s.params;let{type:l,startTime:d}=s.__extra;n.report({type:l,event:i,duration:Date.now()-d})}else c=s;if(i===ig){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Qi.length),u,a)}catch(p){}});return}if(i.startsWith(Qi)){r.emit(i.slice(Qi.length),c,a);return}t.emit(i,c,a)}},globalThis[Da]}function xR(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Qi}${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(ig,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Qi}${o}`,a])},emitNative:(o,a,s,c)=>{if(c){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(_R,d,p)}catch(p){}}),i=void 0,r.clear()}));let l=r.get(s);l||(l=[],r.set(s,l)),l.push([o,a])}}}function TR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=kR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=CR(e,r),{publish:l,emitNative:d}=xR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function og(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var RO,NO,DO,qa,Yh,Xh,Gh,gr,LO,qO,Ua,MO,FO,Qh,BO,GO,Zh,JO,VO,KO,YO,Ma,XO,QO,ZO,Kl,Fa,Hh,eR,ru,rR,nu,nR,iR,oR,zn,sR,_z,iu,he,cR,lR,Xi,Zi,au,su,uR,Yl,fR,wz,cu,Vh,Sz,ja,gR,Qi,vR,yR,bR,ig,_R,wR,La,Wh,Xl,Ql,Zl,eu,IR,lu,ER,AR,Da,uu,Rt,ag,sg,PR,cg,Kh,de,L,we,lg,OR,ug,hn,Iz,Ez,ce=T(()=>{"use strict";RO=Object.defineProperty,NO=Object.defineProperties,DO=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Yh=Object.prototype.hasOwnProperty,Xh=Object.prototype.propertyIsEnumerable,Gh=(e,t,r)=>t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Yh.call(t,r)&&Gh(e,r,t[r]);if(qa)for(var r of qa(t))Xh.call(t,r)&&Gh(e,r,t[r]);return e},LO=(e,t)=>NO(e,DO(t)),qO=(e,t)=>{var r={};for(var n in e)Yh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&Xh.call(e,n)&&(r[n]=e[n]);return r},Ua=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});MO=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};FO=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)};Qh=Object.defineProperty,BO=Object.getOwnPropertyDescriptor,GO=(e,t)=>{for(var r in t)Qh(e,r,{get:t[r],enumerable:!0})},Zh=(e,t,r,n)=>{for(var i=n>1?void 0:n?BO(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&&Qh(t,r,i),i},JO=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}VO=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))}})}};KO=(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))(KO||{}),YO=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}},Ma=class extends YO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},XO=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},QO=class extends Ma{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},ZO=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Kl=class extends Ma{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Fa={log:Yi("log"),warn:Yi("warn"),info:Yi("info"),error:Yi("error"),debug:Yi("debug")};Object.assign(globalThis,{logger:Fa});Hh=Symbol.for("Jolibox.canIUseMap"),eR={};globalThis[Hh]||(globalThis[Hh]=eR);ru=Symbol.for("Jolibox.canIUseMap.native"),rR={};globalThis[ru]||(globalThis[ru]=rR);nu={get config(){return globalThis[ru]}},nR=(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))(nR||{}),iR=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(iR||{}),oR=(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))(oR||{});aR();zn=typeof window=="undefined",sR=()=>!zn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),_z={isiOS:!zn&&(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:!zn&&navigator.userAgent.includes("Android"),isMac:!zn&&navigator.userAgent.includes("Mac"),isFacebook:!zn&&navigator.userAgent.includes("FB_IAB"),isPC:!zn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},iu=class ou{constructor(t){this.element=t,this.next=ou.Undefined,this.prev=ou.Undefined}};iu.Undefined=new iu(void 0);he=iu,cR=class{constructor(){this._first=he.Undefined,this._last=he.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===he.Undefined}clear(){let e=this._first;for(;e!==he.Undefined;){let t=e.next;e.prev=he.Undefined,e.next=he.Undefined,e=t}this._first=he.Undefined,this._last=he.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new he(e);if(this._first===he.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!==he.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==he.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==he.Undefined&&e.next!==he.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===he.Undefined&&e.next===he.Undefined?(this._first=he.Undefined,this._last=he.Undefined):e.next===he.Undefined?(this._last=this._last.prev,this._last.next=he.Undefined):e.prev===he.Undefined&&(this._first=this._first.next,this._first.prev=he.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==he.Undefined;)yield e.element,e=e.next}},lR=0,Xi=class{constructor(e){this.value=e,this.id=lR++}},Zi=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 Xi&&(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,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new Xi(t);return this._listeners?this._listeners instanceof Xi?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Xi)this._listeners.id===l.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(l);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 Xi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},au=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 Zi,o=c=>t(...c.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 c of s)t(...c.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 cR,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)}},su={};GO(su,{None:()=>uR,filter:()=>pR,once:()=>ng,toPromise:()=>dR});uR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Yl=Symbol.for("Jolibox.hostEmitter"),fR=()=>{let e=new au;return globalThis[Yl]||(globalThis[Yl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Yl]},wz=fR();cu=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Zi,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 mR(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}};cu=Zh([rg],cu);Vh=class{constructor(){this._onWillExecuteCommand=new Zi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Zi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new cu,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=HO(3e4)),this._starActivation}executeCommand(e,...t){return JO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),su.toPromise(su.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}}};Vh=Zh([rg],Vh);Sz=Symbol.for("Jolibox.commands");Ze("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Ze("requestProductDetailsAsync",{version:102e4});Ze("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Ze("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Ze("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Ze("userTrackAsync",{version:1e6});Ze("openMiniapp",{version:1050100});Ze("requestCoinDetailsSync",{version:1070100});Ze("requestCoinDetailsAsync",{version:1070100});Ze("sendServerEventAsync",{version:1070100});Ze("requestGameLeaderboardSync",{version:108e4});Ze("requestGameLeaderboardAsync",{version:108e4});Ze("notifyTaskGameInfoAsync",{version:1080100});Ze("loadAdsAsync",{version:1070200});Ze("showAdAsync",{version:1070200});Ze("onJoliboxHideLoading",{version:1070300});ja=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=nu.config[a];if(!c)return!1;let l=(o=t==null?void 0:t())!=null?o:"",d=c.version;if(c.platforms&&l in c.platforms){let p=c.platforms[l];if(p===!1)return!1;typeof p=="number"&&(d=p)}if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(c,s,u)||n(c.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=tR(i,o);if(!s)return!1;if(Kn(s)){let c=s.version;return Jh(c)?typeof a=="number"&&a>=c:!0}return Jh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};gR=()=>sR(),Qi="custom_event_",vR=[],yR=[],bR=["env","createRequestTask","login"],ig="__batch_event__",_R="__native_batch_event__",wR=e=>e==="pv"?e:"default",La=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=wR(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&&Kn(a))throw new Kl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Kn(a))c.push(...Object.keys(a));else if(eg(a)){if(i.length>0)throw new Kl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Kl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Kn(a)?a[l]:a;t(n[l],[...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={}}},Wh=!1;eu=[],IR=!1,lu=Symbol.for("Jolibox.invokeResolverInstance"),ER=new Map;globalThis[lu]||(globalThis[lu]=ER);AR={get resolveMap(){return globalThis[lu]}};Da=Symbol.for("Jolibox.subscribeInstance");Rt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Rt.trigger=e},onDoExit(e){Rt.exit=e},onDoBackPress(e){Rt.backPress=e}},ag=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new XO("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="")=>{Rt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ua(void 0,null,function*(){let o=yield Rt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});uu={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=og(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:ag,doExit:r};globalThis.joliboxJSCore=gr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Rt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ua(void 0,null,function*(){let a=yield Rt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});uu={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=og(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(c),webviewIds:s}))},call(o,a,s){let c=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(c)return JSON.parse(c)},doBackPress(o){return Ua(this,null,function*(){let a=yield Rt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:ag,doExit:n};globalThis.joliboxJSCore=gr({},i)}sg=uu;if(!sg&&gR())throw new ZO("No joliboxJScore is found, native bridge not found.");PR=gr({},sg),cg=TR(PR),{invokeHandler:Kh}=cg,{applyNative:de,invokeNative:L,onNative:we,offNative:lg,subscribeHandler:OR,publish:ug,emitNative:hn,subscribe:Iz,unsubscribe:Ez}=cg;globalThis.joliboxJSBridge={callHandler:Kh,invokeHandler:Kh,subscribeHandler:OR}});function qR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ga(e){return new Promise(t=>setTimeout(t,e))}function io(e){return typeof e=="string"}function vn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function vg(e){return typeof e=="object"&&Array.isArray(e)}function Ja(e){return typeof e=="number"&&!isNaN(e)}function Jr(e){return e===!0||e===!1}function yg(e){return typeof e=="undefined"}function oo(e){return yg(e)||e===null}function UR(e){return typeof e=="function"}function bg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function _g(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],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:fg(c)&&fg(s)?i[a]=n(hg({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function fg(e){return e&&typeof e=="object"&&e.constructor===Object}function wg(e,t){if(Array.isArray(e))return e.concat(t)}function ao(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:c=!0}=r,l=()=>(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,c&&!p&&l()},t),p)return l()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,l()},d}function FR(e,t){return(...r)=>t(e,...r)}function Yn(e){return t=>FR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new zt(`${i}`))}})}function eo(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Cg(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 c=parseInt(i[s],10)||0,l=parseInt(o[s],10)||0;if(c>l){n=1;break}else if(c<l){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 Iu(){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 VR(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"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function Eu(e){return VR("app","stg-app",e)}function Qn(e){return`https://${Eu(e)}`}function KR(e){return new Promise(t=>Pg(e)(t))}function Pg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function YR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new no(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function QR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)ZR(e[n],t[n])}function ZR(e,t){if(io(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(UR(t)){try{if(e instanceof t)return}catch(r){}if(!oo(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 e1(){return typeof globalThis!="undefined"?globalThis[Og]:void 0}function t1(e){typeof globalThis!="undefined"&&(globalThis[Og]=e)}function Y(e=!1){let t=e1();if(!e&&t)return t;let r=new Ba,n=new gu,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 t1(i),i}var vu,RR,dg,NR,DR,pg,hg,LR,gg,gn,pt,MR,yu,so,bu,Sg,zt,Ha,Ig,Va,Eg,Ag,co,_u,Kt,pu,jR,wu,mg,BR,K,Su,GR,Xn,to,lo,JR,HR,kg,xg,Tg,Ft,fu,ge,$R,WR,ro,no,Yt,hu,zR,du,XR,Se,Ba,gu,Og,R=T(()=>{"use strict";vu=Object.defineProperty,RR=Object.getOwnPropertyDescriptor,dg=Object.getOwnPropertySymbols,NR=Object.prototype.hasOwnProperty,DR=Object.prototype.propertyIsEnumerable,pg=(e,t,r)=>t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hg=(e,t)=>{for(var r in t||(t={}))NR.call(t,r)&&pg(e,r,t[r]);if(dg)for(var r of dg(t))DR.call(t,r)&&pg(e,r,t[r]);return e},LR=(e,t)=>{for(var r in t)vu(e,r,{get:t[r],enumerable:!0})},gg=(e,t,r,n)=>{for(var i=n>1?void 0:n?RR(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&&vu(t,r,i),i},gn=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}pt=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))}})}};MR=(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))(MR||{}),yu=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}},so=class extends yu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},bu=class extends yu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Sg=class extends bu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},zt=class extends bu{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))}},Ha=class extends bu{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))}},Ig=class extends so{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Va=class extends so{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))}},Eg=class extends so{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Ag=class extends so{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},co=class extends yu{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}}},_u=class extends so{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Kt={log:eo("log"),warn:eo("warn"),info:eo("info"),error:eo("error"),debug:eo("debug")};Object.assign(globalThis,{logger:Kt});pu=Symbol.for("Jolibox.canIUseMap"),jR={};globalThis[pu]||(globalThis[pu]=jR);wu={get config(){return globalThis[pu]}},mg=Symbol.for("Jolibox.canIUseMap.native"),BR={};globalThis[mg]||(globalThis[mg]=BR);K=(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))(K||{}),Su=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Su||{}),GR=(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))(GR||{}),Xn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Iu();to=typeof window=="undefined",lo={isiOS:!to&&(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:!to&&navigator.userAgent.includes("Android"),isMac:!to&&navigator.userAgent.includes("Mac"),isFacebook:!to&&navigator.userAgent.includes("FB_IAB"),isPC:!to&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},JR="device_id",HR="advertising_id",kg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Xn()),window.__joliboxLocalStorage__.getItem(e)),xg=()=>new URLSearchParams(window.location.search).get("deviceId")||kg(JR),Tg=()=>new URLSearchParams(window.location.search).get("advertisingId")||kg(HR);Ft=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=hg({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return gn(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=>gn(this,null,function*(){if(s.message.includes("timeout")){let c=this.getValidCachedData(r);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}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 gn(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,c=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",c),c){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(c,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(c,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(c):c}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let l=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,l);return d&&this.setCachedDataWithSequence(a,d,s),l})}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 gn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return gn(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 gn(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)}},fu=class mu{constructor(t){this.element=t,this.next=mu.Undefined,this.prev=mu.Undefined}};fu.Undefined=new fu(void 0);ge=fu,$R=class{constructor(){this._first=ge.Undefined,this._last=ge.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ge.Undefined}clear(){let e=this._first;for(;e!==ge.Undefined;){let t=e.next;e.prev=ge.Undefined,e.next=ge.Undefined,e=t}this._first=ge.Undefined,this._last=ge.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ge(e);if(this._first===ge.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!==ge.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ge.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ge.Undefined&&e.next!==ge.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ge.Undefined&&e.next===ge.Undefined?(this._first=ge.Undefined,this._last=ge.Undefined):e.next===ge.Undefined?(this._last=this._last.prev,this._last.next=ge.Undefined):e.prev===ge.Undefined&&(this._first=this._first.next,this._first.prev=ge.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ge.Undefined;)yield e.element,e=e.next}},WR=0,ro=class{constructor(e){this.value=e,this.id=WR++}},no=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 ro&&(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,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new ro(t);return this._listeners?this._listeners instanceof ro?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ro)this._listeners.id===l.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(l);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 ro?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Yt=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 no,o=c=>t(...c.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 c of s)t(...c.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 $R,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)}},hu={};LR(hu,{None:()=>zR,filter:()=>YR,once:()=>Pg,toPromise:()=>KR});zR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});du=Symbol.for("Jolibox.hostEmitter"),XR=()=>{let e=new Yt;return globalThis[du]||(globalThis[du]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[du]},Se=XR();Ba=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new no,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 QR(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}};Ba=gg([bg],Ba);gu=class{constructor(){this._onWillExecuteCommand=new no,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new no,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ba,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=qR(3e4)),this._starActivation}executeCommand(e,...t){return gn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),hu.toPromise(hu.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}}};gu=gg([bg],gu);Og=Symbol.for("Jolibox.commands")});function ke(e,t={}){Au.emit("ERROR_REPORT",{error:e,options:t})}var Au,yn,_t=T(()=>{"use strict";R();R();Au=new Yt,yn=new Yt;ke.debounce=ao(ke,50,{leading:!0})});var Cu,r1,Rg,Ng,Dg=T(()=>{"use strict";R();_t();Cu=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{}}},r1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rg=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:Cu(o),payloadJson:Cu(a),signature:Cu(s)}}else throw"joli_source is missing"}catch(r){return ke(new Ig(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Ng=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=r1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var n1,ku,Lg=T(()=>{"use strict";R();n1="1.4.14",ku=()=>n1});function Tu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var i1,qg,xu,Ug,ve,o1,I,$=T(()=>{"use strict";R();Dg();Lg();R();i1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:xg(),adId:Tg(),pixelRatio:window.devicePixelRatio||1,platform:lo.isAndroid?"android":lo.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:ku()},schema:window.location.href,platform:lo.isAndroid?"android":lo.isiOS?"ios":"h5"},xu=(qg=globalThis.joliboxJSCore)==null?void 0:qg.env,ve=Object.assign({},(Ug=xu==null?void 0:xu())!=null?Ug:i1);o1=()=>{var v,b,y,_,E,C,x,k,A,H,ue;let{payloadJson:e,headerJson:t,signature:r}=ve.schema.length?Rg(ve.schema):{},n=`${ve.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ve.schema.length?ve.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(C=(E=(_=ve.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?C:n,c=!!((k=(x=e==null?void 0:e.testAdsMode)!=null?x:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(ue=(H=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?H:o.get("joliboxEnv"))!=null?ue:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,m=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var N,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:ku()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=ve.platform)!=null?N:ve.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ve.deviceInfo},get sdkInfo(){return ve.sdkInfo},get hostInfo(){return ve.hostInfo},get hostUserInfo(){return ve.hostUserInfo},get sessionId(){var N,O;return(O=(N=ve.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ve.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Eu(d)},get adId(){var N;return(N=ve.deviceInfo.adId)!=null?N:ve.deviceInfo.did},get language(){return ve.deviceInfo.lang},get sdkEnvironment(){return Tu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Tu("gamedistribution","jolibox")?"gamedistribution":Tu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var J,V,Mt;let N=(J=ve.deviceInfo.pixelRatio)!=null?J:1,O=(V=ve.deviceInfo.statusBarHeight)!=null?V:e==null?void 0:e.__androidStatusBarHeight,F=(Mt=ve.deviceInfo.navigationBarHeight)!=null?Mt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,O;return(O=(N=ve.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ve.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{_g(ve,N,wg)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?Ng(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},I=o1()});var Pu,Fg,a1,s1,Mg,c1,jg=T(()=>{"use strict";R();_t();$();R();Pu=!1,Fg=(e,t)=>e==null?!1:t in e,a1=e=>Fg(e,"kind"),s1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Mg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:s1(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?yn.emit("GLOBAL_USER_ERROR",e,i):yn.emit("GLOBAL_ERROR",e,i)},c1=e=>Fg(e,"kind")&&e.kind==="USER_ERROR";Au.on("ERROR_REPORT",({error:e,options:t})=>{if(Pu)return;Pu=!0;let r=a1(e)&&e.raw?e.raw:e;try{let n=c1(e);Mg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new _u(`${i}, origin error: ${r.message}`);Kt.error(o),Mg(new _u(o.message),{environment:t.environment},!1)}finally{Pu=!1}})});var xe,Ou,Hr=T(()=>{"use strict";_t();R();_t();xe=(e,t)=>{var r,n;return new co((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ou=e=>new Sg(e)});var Bg=T(()=>{"use strict";jg();Hr();R();ce();yn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});yn.on("GLOBAL_USER_ERROR",(e,t)=>{Kt.log("UserError",e,t)})});var Ru=T(()=>{"use strict"});function Gg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Qe(l,["eventType"]),c=B(P({tag:n,eventType:o!=null?o:a!=null?a:K.Other},t),{extra:P({},s)});n=="globalJsError"?ke(new Ag(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=ao(r,500,{leading:!0}),r}function Jg(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=ao(t,500,{leading:!0}),t}var Hg=T(()=>{"use strict";R();R();_t();$()});function Vg(e,t){let r=Gg(e,t),n=Jg(r);return{track:r,trackPerformance:n}}var $g=T(()=>{"use strict";Hg()});var Wg=T(()=>{"use strict";$();R();R()});var zg=T(()=>{"use strict";$g();Ru();Wg()});var $a,Kg=T(()=>{"use strict";$a=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)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{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?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function Wa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Qn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return we("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:b}=f,y=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:b}=m,y=Qe(m,["requestTaskId","state"]);p.reject(y),n.delete(v)}else Kt.warn("onRequestTaskStateChange unknown event",u)}),Se.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>g(this,[f,...m],function*(u,p={}){let v=Date.now(),b=l1(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:E="json",timeout:C,enableCache:x=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),H={url:b,method:y,header:A,enableCache:x,responseType:_,appendHostCookie:k};if(y=="POST"||y=="PUT"){let J=d1(p.data,A["content-type"]);H.data=J}C&&Object.assign(H,{timeout:C});let{data:{requestTaskId:ue}}=L(e,H);if(typeof ue!="string")throw xe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new pt;n.set(ue,{resolve:N,reject:O});try{let J=yield F,{data:V}=J;return E==="json"&&typeof V=="string"&&(V=u1(V)),{url:b,timeout:C,method:y,response:B(P({},J),{data:V})}}catch(J){let V=J;if(vn(V)){let{errMsg:Mt,prefetchDetail:Mh,isPrefetch:Wl,errNo:Oa}=V;io(Mt)&&ke(xe({code:-1,msg:Mt},{errNo:Oa,errMsg:Mt}))}throw J}})}function u1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function d1(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 l1,Nu=T(()=>{"use strict";R();ce();_t();Hr();$();l1=(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 Du,Yg,X,ft=T(()=>{"use strict";Nu();$();R();Du={};(Yg=I.hostUserInfo)!=null&&Yg.token&&(Du["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(Du["x-joli-source"]=I.joliSource);X=Wa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Qn(I.testMode),defaultHeaders:Du})});function Xg(e){let t=wu.config[e];return t||(t={},wu.config[e]=t),(r,n)=>{if(t[r]){Kt.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Qg=T(()=>{"use strict";R()});function Lu(e){Zg=e}function za(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>za(t)):Object.keys(e).reduce((t,r)=>(t[r]=za(e[r]),t),{})}function vr(e){return typeof e=="number"}function qu(e){let t=Uu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Uu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Zg,Oe,Ka,Ya,Xa,Qa,Zn,Za,es,ts,rs,ns,is,os,as,ss,cs,ls,us,Mu=T(()=>{"use strict";Zg=!1;Oe=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Zg)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 ${qu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return za(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:za(this._default)}optional(){return this._optional=!0,this}};Ka=class extends Oe{validate(t){return this._optional&&t===void 0?!0:vr(t)?vr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):vr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):vr(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}},Ya=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Xa=class extends Oe{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(vr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(vr(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}},Qa=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Zn=class extends Oe{validate(t){return!0}},Za=class extends Oe{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},es=class extends Oe{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ts=class extends Oe{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},rs=class extends Oe{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 ${qu(t)}`)}return!0}},ns=class extends Oe{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(vr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(vr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(vr(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}},is=class extends Oe{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Uu(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 c=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}"]`,!(c===void 0&&o._optional)){if(c===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(c)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},os=class extends Oe{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Uu(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}},as=class extends Oe{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:qu(this.value),actual:r}):!0}},ss=class extends Oe{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
2
|
or `);this.errors.push(o)}return n}},cs=class extends Oe{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}},ls=class extends Oe{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},us=class extends Oe{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 Fu(e,t,r="param"){if(e.errors=[],e.path=r,Lu(!0),!e.validate(t)){let n=e.errors.join(`
|
|
3
|
-
`);throw e.errors.length=0,Lu(!1),new TypeError(n)}}var S,ju=T(()=>{"use strict";Mu();Mu();S={object(e){return new os(e)},array(e){return new ns(e)},tuple(...e){return new cs(...e)},literal(e){return new as(e)},or(...e){return new ss(...e)},symbol(){return new Qa},record(e){return new is(e)},function(){return new ts},boolean(){return new Ya},string(){return new Xa},number(){return new Ka},undefined(){return new Za},null(){return new es},unknown(){return new
|
|
3
|
+
`);throw e.errors.length=0,Lu(!1),new TypeError(n)}}var S,ju=T(()=>{"use strict";Mu();Mu();S={object(e){return new os(e)},array(e){return new ns(e)},tuple(...e){return new cs(...e)},literal(e){return new as(e)},or(...e){return new ss(...e)},symbol(){return new Qa},record(e){return new is(e)},function(){return new ts},boolean(){return new Ya},string(){return new Xa},number(){return new Ka},undefined(){return new Za},null(){return new es},unknown(){return new Zn},any(){return new Zn},as(){return new Zn},arraybuffer(){return new ls},enum(...e){return new rs(...e)},typedarray(e){return new us(e)}}});var ds,ev,tv=T(()=>{"use strict";R();_t();ju();Hr();ds=1,ev=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:ds};ds+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Fu(i.paramsSchema,o,"params")}catch(_){throw Ou(`${n}:fail ${_.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:_,data:E,message:C}=v;c=_,b=E,y=C}return{code:c,message:y,data:b}}catch(v){let b=v;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let y=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${v}`;return l=`${n}:${c} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new co(l,d)),{code:c,message:l}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>g(this,null,function*(){var p,f,m,v;let a=vg(o)?o:[o],s=Date.now(),c={method:n,trace_id:ds};ds+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{Fu(i.paramsSchema,a,"params")}catch(_){throw Ou(_.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:_,data:E,message:C}=y;d=_,l=C,y=E}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,_=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let E=(v=(m=y.message)!=null?m:y.errMsg)!=null?v:`${b}`,C=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:C}),ke(new co(C,_)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var ye,ps=T(()=>{"use strict";$();ce();({canIUseNative:ye}=ja(()=>I.sdkInfo.nativeSDKVersionCode,()=>I.platform))});function Bu(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 rv=T(()=>{"use strict"});var z,Q,D,Ve=T(()=>{"use strict";Qg();wt();tv();ju();ps();rv();({createAPI:z,createSyncAPI:Q}=ev(j)),D=Xg("native")});function nv(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),v1.includes(t)?t:""}function iv(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 ov(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 fs,f1,m1,h1,g1,Q6,Z6,v1,Vr,St,uo=T(()=>{"use strict";Ve();ce();R();ft();$();fs=Y(),f1=z("getLocalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){let{response:t}=yield X(`/api/games/user-storage/${I.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 de("getLocalStorageAsync",{key:e}),s=iv(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}}})}});fs.registerCommand("StorageSDK.getItem",f1);D("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});m1=z("setStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number())),implement(e,t){return g(this,null,function*(){let r=I.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield X(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=nv(t),c=ov(t,s);return yield de("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});fs.registerCommand("StorageSDK.setItem",m1);D("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});h1=z("removeStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){let t=I.mpId,{response:r}=yield X(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield de("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});fs.registerCommand("StorageSDK.removeItem",h1);D("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});g1=z("clearStorage",{implement(){return g(this,null,function*(){let e=I.mpId,{response:t}=yield X(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});de("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});fs.registerCommand("StorageSDK.clear",g1);D("storage.clear",{version:"1.0.0"});Q6=z("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield de("getStorageInfoAsync");return e})}});D("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});Z6=Q("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),v1=["string","number","boolean","object",""];Vr=z("getGlobalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield de("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:iv(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),St=z("setGlobalStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number(),S.array())),implement(e,t){return g(this,null,function*(){try{let r=nv(t),n=ov(t,r);return yield de("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 av,ms,sv=T(()=>{"use strict";$();Kg();R();ft();ce();uo();ps();av="REPORT_FIRST_OPEN_GAME",ms=class extends $a{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=I.mpId,this.sessionId=I.sessionId,this.track=r,this.taskUrl=Qn(I.testMode)+"/api/base/app-event"}reporter(r){return g(this,null,function*(){let{event:n,params:i,extraParams:o}=r,a={eventType:n,gameInfo:P({gameId:this.gameId,sessionId:this.sessionId},i)};o&&Object.assign(a,o),yield this.createTask(a)})}reportToNative(r){return g(this,null,function*(){let{event:n,params:i}=r;yield de("userTrackAsync",{event:n,params:P({},i),gameId:this.gameId})})}tracker(r,n=null){this.track(r,n)}start(r){if(this.started){console.info("[JoliboxSDK] taskTrakcer has started");return}super.start(r),this.tryReportOpenGamePlus(),this.started=!0}tryReportOpenGamePlus(){Vr(av).then(r=>{Jr(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),St(av,!0)})}createTask(r){return ye("sendServerEventAsync")?de("sendServerEventAsync",{payload:r}):I.platform==="android"?X("/api/base/app-event",{method:"POST",data:r}):de("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var pv={};Bh(pv,{nativeTaskEmitter:()=>po,taskTracker:()=>It,track:()=>j,trackPerformance:()=>uv});var y1,cv,lv,j,uv,dv,po,It,wt=T(()=>{"use strict";Bg();R();Ru();zg();$();sv();ce();y1=(e,t,r)=>{var l,d,u,p,f,m,v;let n=t,i=vn(n.extra)?n.extra:io(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=I.mpInfo)!=null?l:{},s=P(P(B(P({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:I.sessionId,user_id:(f=(p=I.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:K.Other;L("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:uv}=Vg(y1,{type:Su.AppSDK,platform:"native",jssdk_version:(lv=(cv=I.sdkInfo)==null?void 0:cv.jssdkVersion)!=null?lv:"1.0.0",mp_id:I.mpId,mp_version:I.mpVersion}),dv=Y();dv.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{uv(e,t,r)});dv.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});po=new Yt,It=new ms(j,po)});function fv(){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,10 +18,10 @@ or `);this.errors.push(o)}return n}},cs=class extends Oe{constructor(...t){super
|
|
|
18
18
|
min-height: 100dvh;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return g(this,null,function*(){let d=l instanceof URL?l.href:l,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 c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,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 mv=T(()=>{"use strict";$()});var hv=T(()=>{"use strict"});var gv=T(()=>{"use strict";R();Iu()});var vv=T(()=>{"use strict";$()});var _n,hs=T(()=>{"use strict";hv();gv();$();vv();R();_n=new Yt});function yr(e,t){for(var r in t)e[r]=t[r];return e}function Wu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function et(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?bs.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 vs(e,a,n,i,null)}function vs(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?++wv:i,__i:-1,__u:0};return i==null&&q.vnode!=null&&q.vnode(o),o}function ho(){return{current:null}}function $e(e){return e.children}function Et(e,t){this.props=e,this.context=t}function ti(e,t){if(t==null)return e.__?ti(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"?ti(e):null}function kv(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 kv(e)}}function Hu(e){(!e.__d&&(e.__d=!0)&&wn.push(e)&&!ys.__r++||yv!==q.debounceRendering)&&((yv=q.debounceRendering)||Sv)(ys)}function ys(){for(var e,t,r,n,i,o,a,s=1;wn.length;)wn.length>s&&wn.sort(Iv),e=wn.shift(),s=wn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=yr({},n)).__v=n.__v+1,q.vnode&&q.vnode(r),zu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ti(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Pv(o,r,a),r.__e!=i&&kv(r)));ys.__r=0}function xv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||Cv,_=t.length;for(c=_1(r,t,y,c,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?fo:y[f.__i]||fo,f.__i=u,b=zu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ku(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?c=Tv(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=v,c}function _1(e,t,r,n,i){var o,a,s,c,l,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"?(c=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?vs(null,a,null,null,null):mo(a)?vs($e,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?vs(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=w1(a,r,c,u))!==-1&&(u--,(s=r[l])&&(s.__u|=2)),s==null||s.__v===null?(l==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?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=ti(s)),Rv(s,s));return n}function Tv(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=Tv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ti(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function go(e,t){return t=t||[],e==null||typeof e=="boolean"||(mo(e)?e.some(function(r){go(r,t)}):t.push(e)),t}function w1(e,t,r,n){var i,o,a=e.key,s=e.type,c=t[r];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return r;if(n>(c!=null&&!(2&c.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function bv(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||b1.test(t)?r:r+"px"}function gs(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||bv(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||bv(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Ev,"$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=$u,e.addEventListener(t,o?Ju:Gu,o)):e.removeEventListener(t,o?Ju:Gu,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 _v(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=$u++;else if(t.u<r.t)return;return r(q.event?q.event(t):t)}}}function zu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,_,E,C,x,k,A,H,ue,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=q.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,_="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],C=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new O(y,C):(t.__c=u=new Et(y,C),u.constructor=O,u.render=I1),E&&E.sub(u),u.props=y,u.state||(u.state={}),u.context=C,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=yr({},u.__s)),yr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&O.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=C,u.props=y,u.__P=e,u.__e=!1,k=q.__r,A=0,_){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),H=0;H<u._sb.length;H++)u.__h.push(u._sb[H]);u._sb=[]}else do u.__d=!1,k&&k(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=yr(yr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),ue=d,d!=null&&d.type===$e&&d.key==null&&(ue=Ov(d.props.children)),s=xv(e,mo(ue)?ue:[ue],t,r,n,i,o,a,s,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(F){if(t.__v=null,c||o!=null)if(F.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(N=o.length;N--;)Wu(o[N]);else t.__e=r.__e,t.__k=r.__k;q.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=S1(r.__e,t,r,n,i,o,a,c,l);return(d=q.diffed)&&d(t),128&t.__u?void 0:s}function Pv(e,t,r){for(var n=0;n<r.length;n++)Ku(r[n],r[++n],r[++n]);q.__c&&q.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){q.__e(o,i.__v)}})}function Ov(e){return typeof e!="object"||e==null?e:mo(e)?e.map(Ov):yr({},e)}function S1(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(q.__m&&q.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&bs.call(e.childNodes),b=r.props||fo,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;gs(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||gs(e,l,f,b[l],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),xv(t.type==="template"?e.content:e,mo(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ti(r,0),s,c),o!=null)for(l=o.length;l--;)Wu(o[l]);s||(l="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||_=="progress"&&!m||_=="option"&&m!==b[l])&&gs(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&gs(e,l,v,b[l],i))}return e}function Ku(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){q.__e(i,r)}}function Rv(e,t,r){var n,i;if(q.unmount&&q.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ku(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){q.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Rv(n[i],t,r||typeof e.type!="function");r||Wu(e.__e),e.__c=e.__=e.__e=void 0}function I1(e,t,r){return this.constructor(e,r)}function $r(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),q.__&&q.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],zu(t,e=(!n&&r||t).__k=et($e,null,[e]),i||fo,fo,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?bs.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Pv(o,e,a)}function Sn(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,Hu(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"+Av++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var bs,q,wv,Vu,wn,yv,Sv,Iv,Ev,$u,Gu,Ju,Av,fo,Cv,b1,mo,ri=T(()=>{fo={},Cv=[],b1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mo=Array.isArray;bs=Cv.slice,q={__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}},wv=0,Vu=function(e){return e!=null&&e.constructor==null},Et.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=yr({},this.state),typeof e=="function"&&(e=e(yr({},r),this.props)),e&&yr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hu(this))},Et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hu(this))},Et.prototype.render=$e,wn=[],Sv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Iv=function(e,t){return e.__v.__b-t.__v.__b},ys.__r=0,Ev=/(PointerCapture)$|Capture$/i,$u=0,Gu=_v(!1),Ju=_v(!0),Av=0});var Ie=h((G8,Nv)=>{"use strict";Nv.exports=function(e){try{return!!e()}catch(t){return!0}}});var ni=h((J8,Dv)=>{"use strict";var E1=Ie();Dv.exports=!E1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Re=h((H8,Uv)=>{"use strict";var Lv=ni(),qv=Function.prototype,Yu=qv.call,A1=Lv&&qv.bind.bind(Yu,Yu);Uv.exports=Lv?A1:function(e){return function(){return Yu.apply(e,arguments)}}});var ct=h((V8,Mv)=>{"use strict";var C1=Re();Mv.exports=C1({}.isPrototypeOf)});var Ee=h((Xu,Fv)=>{"use strict";var vo=function(e){return e&&e.Math===Math&&e};Fv.exports=vo(typeof globalThis=="object"&&globalThis)||vo(typeof window=="object"&&window)||vo(typeof self=="object"&&self)||vo(typeof global=="object"&&global)||vo(typeof Xu=="object"&&Xu)||function(){return this}()||Function("return this")()});var Qu=h(($8,Jv)=>{"use strict";var k1=ni(),Gv=Function.prototype,jv=Gv.apply,Bv=Gv.call;Jv.exports=typeof Reflect=="object"&&Reflect.apply||(k1?Bv.bind(jv):function(){return Bv.apply(jv,arguments)})});var br=h((W8,Vv)=>{"use strict";var Hv=Re(),x1=Hv({}.toString),T1=Hv("".slice);Vv.exports=function(e){return T1(x1(e),8,-1)}});var yo=h((z8,$v)=>{"use strict";var P1=br(),O1=Re();$v.exports=function(e){if(P1(e)==="Function")return O1(e)}});var We=h((K8,Wv)=>{"use strict";var Zu=typeof document=="object"&&document.all;Wv.exports=typeof Zu=="undefined"&&Zu!==void 0?function(e){return typeof e=="function"||e===Zu}:function(e){return typeof e=="function"}});var lt=h((Y8,zv)=>{"use strict";var R1=Ie();zv.exports=!R1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var jt=h((X8,Kv)=>{"use strict";var N1=ni(),_s=Function.prototype.call;Kv.exports=N1?_s.bind(_s):function(){return _s.apply(_s,arguments)}});var ed=h(Qv=>{"use strict";var Yv={}.propertyIsEnumerable,Xv=Object.getOwnPropertyDescriptor,D1=Xv&&!Yv.call({1:2},1);Qv.f=D1?function(t){var r=Xv(this,t);return!!r&&r.enumerable}:Yv});var bo=h((Z8,Zv)=>{"use strict";Zv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var ws=h((e7,ey)=>{"use strict";var L1=Re(),q1=Ie(),U1=br(),td=Object,M1=L1("".split);ey.exports=q1(function(){return!td("z").propertyIsEnumerable(0)})?function(e){return U1(e)==="String"?M1(e,""):td(e)}:td});var In=h((t7,ty)=>{"use strict";ty.exports=function(e){return e==null}});var En=h((r7,ry)=>{"use strict";var F1=In(),j1=TypeError;ry.exports=function(e){if(F1(e))throw new j1("Can't call method on "+e);return e}});var Wr=h((n7,ny)=>{"use strict";var B1=ws(),G1=En();ny.exports=function(e){return B1(G1(e))}});var Me=h((i7,iy)=>{"use strict";var J1=We();iy.exports=function(e){return typeof e=="object"?e!==null:J1(e)}});var Xt=h((o7,oy)=>{"use strict";oy.exports={}});var ii=h((a7,sy)=>{"use strict";var rd=Xt(),nd=Ee(),H1=We(),ay=function(e){return H1(e)?e:void 0};sy.exports=function(e,t){return arguments.length<2?ay(rd[e])||ay(nd[e]):rd[e]&&rd[e][t]||nd[e]&&nd[e][t]}});var Ss=h((s7,uy)=>{"use strict";var V1=Ee(),cy=V1.navigator,ly=cy&&cy.userAgent;uy.exports=ly?String(ly):""});var Es=h((c7,gy)=>{"use strict";var hy=Ee(),id=Ss(),dy=hy.process,py=hy.Deno,fy=dy&&dy.versions||py&&py.version,my=fy&&fy.v8,Bt,Is;my&&(Bt=my.split("."),Is=Bt[0]>0&&Bt[0]<4?1:+(Bt[0]+Bt[1]));!Is&&id&&(Bt=id.match(/Edge\/(\d+)/),(!Bt||Bt[1]>=74)&&(Bt=id.match(/Chrome\/(\d+)/),Bt&&(Is=+Bt[1])));gy.exports=Is});var od=h((l7,yy)=>{"use strict";var vy=Es(),$1=Ie(),W1=Ee(),z1=W1.String;yy.exports=!!Object.getOwnPropertySymbols&&!$1(function(){var e=Symbol("symbol detection");return!z1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vy&&vy<41})});var ad=h((u7,by)=>{"use strict";var K1=od();by.exports=K1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var sd=h((d7,_y)=>{"use strict";var Y1=ii(),X1=We(),Q1=ct(),Z1=ad(),eN=Object;_y.exports=Z1?function(e){return typeof e=="symbol"}:function(e){var t=Y1("Symbol");return X1(t)&&Q1(t.prototype,eN(e))}});var _o=h((p7,wy)=>{"use strict";var tN=String;wy.exports=function(e){try{return tN(e)}catch(t){return"Object"}}});var An=h((f7,Sy)=>{"use strict";var rN=We(),nN=_o(),iN=TypeError;Sy.exports=function(e){if(rN(e))return e;throw new iN(nN(e)+" is not a function")}});var As=h((m7,Iy)=>{"use strict";var oN=An(),aN=In();Iy.exports=function(e,t){var r=e[t];return aN(r)?void 0:oN(r)}});var Ay=h((h7,Ey)=>{"use strict";var cd=jt(),ld=We(),ud=Me(),sN=TypeError;Ey.exports=function(e,t){var r,n;if(t==="string"&&ld(r=e.toString)&&!ud(n=cd(r,e))||ld(r=e.valueOf)&&!ud(n=cd(r,e))||t!=="string"&&ld(r=e.toString)&&!ud(n=cd(r,e)))return n;throw new sN("Can't convert object to primitive value")}});var oi=h((g7,Cy)=>{"use strict";Cy.exports=!0});var Ty=h((v7,xy)=>{"use strict";var ky=Ee(),cN=Object.defineProperty;xy.exports=function(e,t){try{cN(ky,e,{value:t,configurable:!0,writable:!0})}catch(r){ky[e]=t}return t}});var wo=h((y7,Ry)=>{"use strict";var lN=oi(),uN=Ee(),dN=Ty(),Py="__core-js_shared__",Oy=Ry.exports=uN[Py]||dN(Py,{});(Oy.versions||(Oy.versions=[])).push({version:"3.41.0",mode:lN?"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 dd=h((b7,Dy)=>{"use strict";var Ny=wo();Dy.exports=function(e,t){return Ny[e]||(Ny[e]=t||{})}});var ai=h((_7,Ly)=>{"use strict";var pN=En(),fN=Object;Ly.exports=function(e){return fN(pN(e))}});var At=h((w7,qy)=>{"use strict";var mN=Re(),hN=ai(),gN=mN({}.hasOwnProperty);qy.exports=Object.hasOwn||function(t,r){return gN(hN(t),r)}});var Cs=h((S7,Uy)=>{"use strict";var vN=Re(),yN=0,bN=Math.random(),_N=vN(1 .toString);Uy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_N(++yN+bN,36)}});var tt=h((I7,Fy)=>{"use strict";var wN=Ee(),SN=dd(),My=At(),IN=Cs(),EN=od(),AN=ad(),si=wN.Symbol,pd=SN("wks"),CN=AN?si.for||si:si&&si.withoutSetter||IN;Fy.exports=function(e){return My(pd,e)||(pd[e]=EN&&My(si,e)?si[e]:CN("Symbol."+e)),pd[e]}});var Jy=h((E7,Gy)=>{"use strict";var kN=jt(),jy=Me(),By=sd(),xN=As(),TN=Ay(),PN=tt(),ON=TypeError,RN=PN("toPrimitive");Gy.exports=function(e,t){if(!jy(e)||By(e))return e;var r=xN(e,RN),n;if(r){if(t===void 0&&(t="default"),n=kN(r,e,t),!jy(n)||By(n))return n;throw new ON("Can't convert object to primitive value")}return t===void 0&&(t="number"),TN(e,t)}});var fd=h((A7,Hy)=>{"use strict";var NN=Jy(),DN=sd();Hy.exports=function(e){var t=NN(e,"string");return DN(t)?t:t+""}});var hd=h((C7,$y)=>{"use strict";var LN=Ee(),Vy=Me(),md=LN.document,qN=Vy(md)&&Vy(md.createElement);$y.exports=function(e){return qN?md.createElement(e):{}}});var gd=h((k7,Wy)=>{"use strict";var UN=lt(),MN=Ie(),FN=hd();Wy.exports=!UN&&!MN(function(){return Object.defineProperty(FN("div"),"a",{get:function(){return 7}}).a!==7})});var vd=h(Ky=>{"use strict";var jN=lt(),BN=jt(),GN=ed(),JN=bo(),HN=Wr(),VN=fd(),$N=At(),WN=gd(),zy=Object.getOwnPropertyDescriptor;Ky.f=jN?zy:function(t,r){if(t=HN(t),r=VN(r),WN)try{return zy(t,r)}catch(n){}if($N(t,r))return JN(!BN(GN.f,t,r),t[r])}});var Xy=h((T7,Yy)=>{"use strict";var zN=Ie(),KN=We(),YN=/#|\.prototype\./,So=function(e,t){var r=QN[XN(e)];return r===eD?!0:r===ZN?!1:KN(t)?zN(t):!!t},XN=So.normalize=function(e){return String(e).replace(YN,".").toLowerCase()},QN=So.data={},ZN=So.NATIVE="N",eD=So.POLYFILL="P";Yy.exports=So});var Io=h((P7,Zy)=>{"use strict";var Qy=yo(),tD=An(),rD=ni(),nD=Qy(Qy.bind);Zy.exports=function(e,t){return tD(e),t===void 0?e:rD?nD(e,t):function(){return e.apply(t,arguments)}}});var yd=h((O7,eb)=>{"use strict";var iD=lt(),oD=Ie();eb.exports=iD&&oD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var _r=h((R7,tb)=>{"use strict";var aD=Me(),sD=String,cD=TypeError;tb.exports=function(e){if(aD(e))return e;throw new cD(sD(e)+" is not an object")}});var wr=h(nb=>{"use strict";var lD=lt(),uD=gd(),dD=yd(),ks=_r(),rb=fd(),pD=TypeError,bd=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,_d="enumerable",wd="configurable",Sd="writable";nb.f=lD?dD?function(t,r,n){if(ks(t),r=rb(r),ks(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Sd in n&&!n[Sd]){var i=fD(t,r);i&&i[Sd]&&(t[r]=n.value,n={configurable:wd in n?n[wd]:i[wd],enumerable:_d in n?n[_d]:i[_d],writable:!1})}return bd(t,r,n)}:bd:function(t,r,n){if(ks(t),r=rb(r),ks(n),uD)try{return bd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new pD("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Cn=h((D7,ib)=>{"use strict";var mD=lt(),hD=wr(),gD=bo();ib.exports=mD?function(e,t,r){return hD.f(e,t,gD(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((L7,ab)=>{"use strict";var Eo=Ee(),vD=Qu(),yD=yo(),bD=We(),_D=vd().f,wD=Xy(),ci=Xt(),SD=Io(),li=Cn(),ob=At();wo();var ID=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 vD(e,this,arguments)};return t.prototype=e.prototype,t};ab.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Eo:i?Eo[r]:Eo[r]&&Eo[r].prototype,s=n?ci:ci[r]||li(ci,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=wD(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&ob(a,p),m=s[p],d&&(e.dontCallGetSet?(y=_D(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=SD(f,Eo):e.wrap&&d?b=ID(f):o&&bD(f)?b=yD(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&li(b,"sham",!0),li(s,p,b),o&&(u=r+"Prototype",ob(ci,u)||li(ci,u,{}),li(ci[u],p,f),e.real&&c&&(l||!c[p])&&li(c,p,f)))}});var cb=h((q7,sb)=>{"use strict";var ED=Math.ceil,AD=Math.floor;sb.exports=Math.trunc||function(t){var r=+t;return(r>0?AD:ED)(r)}});var Ao=h((U7,lb)=>{"use strict";var CD=cb();lb.exports=function(e){var t=+e;return t!==t||t===0?0:CD(t)}});var Id=h((M7,ub)=>{"use strict";var kD=Ao(),xD=Math.min;ub.exports=function(e){var t=kD(e);return t>0?xD(t,9007199254740991):0}});var ui=h((F7,db)=>{"use strict";var TD=Id();db.exports=function(e){return TD(e.length)}});var Co=h((j7,pb)=>{"use strict";var PD=br();pb.exports=Array.isArray||function(t){return PD(t)==="Array"}});var xs=h((B7,mb)=>{"use strict";var OD=tt(),RD=OD("toStringTag"),fb={};fb[RD]="z";mb.exports=String(fb)==="[object z]"});var di=h((G7,hb)=>{"use strict";var ND=xs(),DD=We(),Ts=br(),LD=tt(),qD=LD("toStringTag"),UD=Object,MD=Ts(function(){return arguments}())==="Arguments",FD=function(e,t){try{return e[t]}catch(r){}};hb.exports=ND?Ts:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=FD(t=UD(e),qD))=="string"?r:MD?Ts(t):(n=Ts(t))==="Object"&&DD(t.callee)?"Arguments":n}});var vb=h((J7,gb)=>{"use strict";var jD=Re(),BD=We(),Ed=wo(),GD=jD(Function.toString);BD(Ed.inspectSource)||(Ed.inspectSource=function(e){return GD(e)});gb.exports=Ed.inspectSource});var Cd=h((H7,Sb)=>{"use strict";var JD=Re(),HD=Ie(),yb=We(),VD=di(),$D=ii(),WD=vb(),bb=function(){},_b=$D("Reflect","construct"),Ad=/^\s*(?:class|function)\b/,zD=JD(Ad.exec),KD=!Ad.test(bb),ko=function(t){if(!yb(t))return!1;try{return _b(bb,[],t),!0}catch(r){return!1}},wb=function(t){if(!yb(t))return!1;switch(VD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return KD||!!zD(Ad,WD(t))}catch(r){return!0}};wb.sham=!0;Sb.exports=!_b||HD(function(){var e;return ko(ko.call)||!ko(Object)||!ko(function(){e=!0})||e})?wb:ko});var Cb=h((V7,Ab)=>{"use strict";var Ib=Co(),YD=Cd(),XD=Me(),QD=tt(),ZD=QD("species"),Eb=Array;Ab.exports=function(e){var t;return Ib(e)&&(t=e.constructor,YD(t)&&(t===Eb||Ib(t.prototype))?t=void 0:XD(t)&&(t=t[ZD],t===null&&(t=void 0))),t===void 0?Eb:t}});var kd=h(($7,kb)=>{"use strict";var eL=Cb();kb.exports=function(e,t){return new(eL(e))(t===0?0:t)}});var Kr=h((W7,Tb)=>{"use strict";var tL=Io(),rL=Re(),nL=ws(),iL=ai(),oL=ui(),aL=kd(),xb=rL([].push),zr=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(c,l,d,u){for(var p=iL(c),f=nL(p),m=oL(f),v=tL(l,d),b=0,y=u||aL,_=t?y(c,m):r||a?y(c,0):void 0,E,C;m>b;b++)if((s||b in f)&&(E=f[b],C=v(E,b,p),e))if(t)_[b]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:xb(_,E)}else switch(e){case 4:return!1;case 7:xb(_,E)}return o?-1:n||i?i:_}};Tb.exports={forEach:zr(0),map:zr(1),filter:zr(2),some:zr(3),every:zr(4),find:zr(5),findIndex:zr(6),filterReject:zr(7)}});var xo=h((z7,Pb)=>{"use strict";var sL=Ie(),cL=tt(),lL=Es(),uL=cL("species");Pb.exports=function(e){return lL>=51||!sL(function(){var t=[],r=t.constructor={};return r[uL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ob=h(()=>{"use strict";var dL=ae(),pL=Kr().filter,fL=xo(),mL=fL("filter");dL({target:"Array",proto:!0,forced:!mL},{filter:function(t){return pL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Nt=h((X7,Rb)=>{"use strict";var hL=Ee(),gL=Xt();Rb.exports=function(e,t){var r=gL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=hL[e],o=i&&i.prototype;return o&&o[t]}});var Db=h((Q7,Nb)=>{"use strict";Ob();var vL=Nt();Nb.exports=vL("Array","filter")});var qb=h((Z7,Lb)=>{"use strict";var yL=ct(),bL=Db(),xd=Array.prototype;Lb.exports=function(e){var t=e.filter;return e===xd||yL(xd,e)&&t===xd.filter?bL:t}});var Mb=h((eY,Ub)=>{"use strict";var _L=qb();Ub.exports=_L});var jb=h((tY,Fb)=>{Fb.exports=Mb()});var To=h((rY,Bb)=>{"use strict";var wL=Ie();Bb.exports=function(e,t){var r=[][e];return!!r&&wL(function(){r.call(null,t||function(){return 1},1)})}});var Gb=h(()=>{"use strict";var SL=ae(),IL=Kr().every,EL=To(),AL=EL("every");SL({target:"Array",proto:!0,forced:!AL},{every:function(t){return IL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Hb=h((oY,Jb)=>{"use strict";Gb();var CL=Nt();Jb.exports=CL("Array","every")});var $b=h((aY,Vb)=>{"use strict";var kL=ct(),xL=Hb(),Td=Array.prototype;Vb.exports=function(e){var t=e.every;return e===Td||kL(Td,e)&&t===Td.every?xL:t}});var zb=h((sY,Wb)=>{"use strict";var TL=$b();Wb.exports=TL});var Yb=h((cY,Kb)=>{Kb.exports=zb()});var Qb=h((lY,Xb)=>{"use strict";var PL=Kr().forEach,OL=To(),RL=OL("forEach");Xb.exports=RL?[].forEach:function(t){return PL(this,t,arguments.length>1?arguments[1]:void 0)}});var e_=h(()=>{"use strict";var NL=ae(),Zb=Qb();NL({target:"Array",proto:!0,forced:[].forEach!==Zb},{forEach:Zb})});var r_=h((pY,t_)=>{"use strict";e_();var DL=Nt();t_.exports=DL("Array","forEach")});var i_=h((fY,n_)=>{"use strict";var LL=r_();n_.exports=LL});var o_=h(()=>{});var s_=h((gY,a_)=>{"use strict";var qL=di(),UL=At(),ML=ct(),FL=i_();o_();var Pd=Array.prototype,jL={DOMTokenList:!0,NodeList:!0};a_.exports=function(e){var t=e.forEach;return e===Pd||ML(Pd,e)&&t===Pd.forEach||UL(jL,qL(e))?FL:t}});var l_=h((vY,c_)=>{c_.exports=s_()});var d_=h((yY,u_)=>{"use strict";var BL=TypeError,GL=9007199254740991;u_.exports=function(e){if(e>GL)throw BL("Maximum allowed index exceeded");return e}});var Od=h((bY,p_)=>{"use strict";var JL=lt(),HL=wr(),VL=bo();p_.exports=function(e,t,r){JL?HL.f(e,t,VL(0,r)):e[t]=r}});var g_=h(()=>{"use strict";var $L=ae(),WL=Ie(),zL=Co(),KL=Me(),YL=ai(),XL=ui(),f_=d_(),m_=Od(),QL=kd(),ZL=xo(),eq=tt(),tq=Es(),h_=eq("isConcatSpreadable"),rq=tq>=51||!WL(function(){var e=[];return e[h_]=!1,e.concat()[0]!==e}),nq=function(e){if(!KL(e))return!1;var t=e[h_];return t!==void 0?!!t:zL(e)},iq=!rq||!ZL("concat");$L({target:"Array",proto:!0,arity:1,forced:iq},{concat:function(t){var r=YL(this),n=QL(r,0),i=0,o,a,s,c,l;for(o=-1,s=arguments.length;o<s;o++)if(l=o===-1?r:arguments[o],nq(l))for(c=XL(l),f_(i+c),a=0;a<c;a++,i++)a in l&&m_(n,i,l[a]);else f_(i+1),m_(n,i++,l);return n.length=i,n}})});var y_=h((SY,v_)=>{"use strict";g_();var oq=Nt();v_.exports=oq("Array","concat")});var __=h((IY,b_)=>{"use strict";var aq=ct(),sq=y_(),Rd=Array.prototype;b_.exports=function(e){var t=e.concat;return e===Rd||aq(Rd,e)&&t===Rd.concat?sq:t}});var S_=h((EY,w_)=>{"use strict";var cq=__();w_.exports=cq});var E_=h((AY,I_)=>{I_.exports=S_()});var A_=h(()=>{"use strict";var lq=ae(),uq=Kr().some,dq=To(),pq=dq("some");lq({target:"Array",proto:!0,forced:!pq},{some:function(t){return uq(this,t,arguments.length>1?arguments[1]:void 0)}})});var k_=h((xY,C_)=>{"use strict";A_();var fq=Nt();C_.exports=fq("Array","some")});var T_=h((TY,x_)=>{"use strict";var mq=ct(),hq=k_(),Nd=Array.prototype;x_.exports=function(e){var t=e.some;return e===Nd||mq(Nd,e)&&t===Nd.some?hq:t}});var O_=h((PY,P_)=>{"use strict";var gq=T_();P_.exports=gq});var N_=h((OY,R_)=>{R_.exports=O_()});var L_=h((RY,D_)=>{"use strict";var Po=Ee(),vq=Ss(),yq=br(),Ps=function(e){return vq.slice(0,e.length)===e};D_.exports=function(){return Ps("Bun/")?"BUN":Ps("Cloudflare-Workers")?"CLOUDFLARE":Ps("Deno/")?"DENO":Ps("Node.js/")?"NODE":Po.Bun&&typeof Bun.version=="string"?"BUN":Po.Deno&&typeof Deno.version=="object"?"DENO":yq(Po.process)==="process"?"NODE":Po.window&&Po.document?"BROWSER":"REST"}()});var Oo=h((NY,q_)=>{"use strict";var bq=Re();q_.exports=bq([].slice)});var M_=h((DY,U_)=>{"use strict";var _q=TypeError;U_.exports=function(e,t){if(e<t)throw new _q("Not enough arguments");return e}});var Dd=h((LY,j_)=>{"use strict";var F_=Ee(),wq=Qu(),Sq=We(),Iq=L_(),Eq=Ss(),Aq=Oo(),Cq=M_(),kq=F_.Function,xq=/MSIE .\./.test(Eq)||Iq==="BUN"&&function(){var e=F_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();j_.exports=function(e,t){var r=t?2:1;return xq?function(n,i){var o=Cq(arguments.length,1)>r,a=Sq(n)?n:kq(n),s=o?Aq(arguments,r):[],c=o?function(){wq(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var J_=h(()=>{"use strict";var Tq=ae(),G_=Ee(),Pq=Dd(),B_=Pq(G_.setInterval,!0);Tq({global:!0,bind:!0,forced:G_.setInterval!==B_},{setInterval:B_})});var $_=h(()=>{"use strict";var Oq=ae(),V_=Ee(),Rq=Dd(),H_=Rq(V_.setTimeout,!0);Oq({global:!0,bind:!0,forced:V_.setTimeout!==H_},{setTimeout:H_})});var W_=h(()=>{"use strict";J_();$_()});var K_=h((GY,z_)=>{"use strict";W_();var Nq=Xt();z_.exports=Nq.setTimeout});var X_=h((JY,Y_)=>{Y_.exports=K_()});function No(e,t){Te.__h&&Te.__h(pe,e,Ro||t),Ro=0;var r=pe.__H||(pe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Sr(e){return Ro=1,sw(cw,e)}function sw(e,t,r){var n=No(kn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):cw(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=pe,!pe.__f)){var i=function(s,c,l){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,c,l);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,c,l)||u};pe.__f=!0;var o=pe.shouldComponentUpdate,a=pe.componentWillUpdate;pe.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},pe.shouldComponentUpdate=i}return n.__N||n.__}function Yr(e,t){var r=No(kn++,3);!Te.__s&&Ud(r.__H,t)&&(r.__=e,r.u=t,pe.__H.__h.push(r))}function pi(e,t){var r=No(kn++,4);!Te.__s&&Ud(r.__H,t)&&(r.__=e,r.u=t,pe.__h.push(r))}function fi(e){return Ro=5,Do(function(){return{current:e}},[])}function Do(e,t){var r=No(kn++,7);return Ud(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Xr(e,t){return Ro=8,Do(function(){return e},t)}function mi(e){var t=pe.context[e.__c],r=No(kn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(pe)),t.props.value):e.__}function Dq(){for(var e;e=aw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Os),e.__H.__h.forEach(qd),e.__H.__h=[]}catch(t){e.__H.__h=[],Te.__e(t,e.__v)}}function Lq(e){var t,r=function(){clearTimeout(n),ow&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ow&&(t=requestAnimationFrame(r))}function Os(e){var t=pe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pe=t}function qd(e){var t=pe;e.__c=e.__(),pe=t}function Ud(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function cw(e,t){return typeof t=="function"?t(e):t}var kn,pe,Ld,Q_,Ro,aw,Te,Z_,ew,tw,rw,nw,iw,ow,Md=T(()=>{ri();Ro=0,aw=[],Te=q,Z_=Te.__b,ew=Te.__r,tw=Te.diffed,rw=Te.__c,nw=Te.unmount,iw=Te.__;Te.__b=function(e){pe=null,Z_&&Z_(e)},Te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),iw&&iw(e,t)},Te.__r=function(e){ew&&ew(e),kn=0;var t=(pe=e.__c).__H;t&&(Ld===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Os),t.__h.forEach(qd),t.__h=[],kn=0)),Ld=pe},Te.diffed=function(e){tw&&tw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(aw.push(t)!==1&&Q_===Te.requestAnimationFrame||((Q_=Te.requestAnimationFrame)||Lq)(Dq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ld=pe=null},Te.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Os),r.__h=r.__h.filter(function(n){return!n.__||qd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Te.__e(n,r.__v)}}),rw&&rw(e,t)},Te.unmount=function(e){nw&&nw(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Os(n)}catch(i){t=i}}),r.__H=void 0,t&&Te.__e(t,r.__v))};ow=typeof requestAnimationFrame=="function"});function vw(e,t){for(var r in t)e[r]=t[r];return e}function jd(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 lw(e,t){this.props=e,this.context=t}function Gd(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:jd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,et(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Jd(e){function t(r){var n=vw({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=qq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function yw(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=vw({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return yw(n,t,r)})),e}function bw(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return bw(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 Fd(){this.__u=0,this.o=null,this.__b=null}function _w(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Rs(){this.i=null,this.l=null}function Qt(e,t,r){return t.__k==null&&(t.textContent=""),$r(e,t),typeof r=="function"&&r(),e?e.__c:null}function Hq(){}function Vq(){return this.cancelBubble}function $q(){return this.defaultPrevented}var Bd,uw,qq,Uq,dw,pw,Mq,Fq,jq,Bq,Gq,Jq,fw,ww,Wq,mw,hw,gw,Ns=T(()=>{ri();ri();Md();Md();Bd=pi;(lw.prototype=new Et).isPureReactComponent=!0,lw.prototype.shouldComponentUpdate=function(e,t){return jd(this.props,e)||jd(this.state,t)};uw=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uw&&uw(e)};qq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Uq=q.__e;q.__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)}Uq(e,t,r,n)};dw=q.unmount;q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dw&&dw(e)},(Fd.prototype=new Et).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=_w(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 c=n.state.__a;n.__v.__k[0]=bw(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Fd.prototype.componentWillUnmount=function(){this.o=[]},Fd.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]=yw(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&et($e,null,e.fallback);return i&&(i.__u&=-33),[et($e,null,t.__a?null:e.children),i]};pw=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]}};(Rs.prototype=new Et).__a=function(e){var t=this,r=_w(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),pw(t,e,n)):i()};r?r(o):o()}},Rs.prototype.render=function(e){this.i=null,this.l=new Map;var t=go(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},Rs.prototype.componentDidUpdate=Rs.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){pw(e,r,t)})};Mq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Fq=/^(?: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]/,jq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bq=/[A-Z0-9]/g,Gq=typeof document!="undefined",Jq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});fw=q.event;q.event=function(e){return fw&&(e=fw(e)),e.persist=Hq,e.isPropagationStopped=Vq,e.isDefaultPrevented=$q,e.nativeEvent=e};Wq={enumerable:!1,configurable:!0,get:function(){return this.class}},mw=q.vnode;q.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||Gq&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Jq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":jq.test(a)&&(a=c):c=a="oninput":o&&Fq.test(a)?a=a.replace(Bq,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=go(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=go(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",Wq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Mq,mw&&mw(e)};hw=q.__r;q.__r=function(e){hw&&hw(e),ww=e.__c};gw=q.diffed;q.diffed=function(e){gw&&gw(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),ww=null}});var Vd=h(()=>{"use strict";var Kq=ae(),Hd=Ee();Kq({global:!0,forced:Hd.globalThis!==Hd},{globalThis:Hd})});var Sw=h(()=>{"use strict";Vd()});var Ew=h((oX,Iw)=>{"use strict";Vd();Iw.exports=Ee()});var Cw=h((aX,Aw)=>{"use strict";var Yq=Ew();Aw.exports=Yq});var xw=h((sX,kw)=>{"use strict";var Xq=Cw();kw.exports=Xq});var Pw=h((cX,Tw)=>{"use strict";Sw();var Qq=xw();Tw.exports=Qq});var Rw=h((lX,Ow)=>{"use strict";Ow.exports=Pw()});var Dw=h((uX,Nw)=>{Nw.exports=Rw()});var Lw=h(()=>{"use strict";var Zq=ae(),eU=Co();Zq({target:"Array",stat:!0},{isArray:eU})});var Uw=h((fX,qw)=>{"use strict";Lw();var tU=Xt();qw.exports=tU.Array.isArray});var Fw=h((mX,Mw)=>{"use strict";var rU=Uw();Mw.exports=rU});var Bw=h((hX,jw)=>{jw.exports=Fw()});var Jw=h((gX,Gw)=>{"use strict";Gw.exports=function(){}});var xn=h((vX,Hw)=>{"use strict";Hw.exports={}});var $d=h((yX,$w)=>{"use strict";var nU=Ee(),iU=We(),Vw=nU.WeakMap;$w.exports=iU(Vw)&&/native code/.test(String(Vw))});var Ds=h((bX,zw)=>{"use strict";var oU=dd(),aU=Cs(),Ww=oU("keys");zw.exports=function(e){return Ww[e]||(Ww[e]=aU(e))}});var Lo=h((_X,Kw)=>{"use strict";Kw.exports={}});var Pn=h((wX,Qw)=>{"use strict";var sU=$d(),Xw=Ee(),cU=Me(),lU=Cn(),Wd=At(),zd=wo(),uU=Ds(),dU=Lo(),Yw="Object already initialized",Kd=Xw.TypeError,pU=Xw.WeakMap,Ls,qo,qs,fU=function(e){return qs(e)?qo(e):Ls(e,{})},mU=function(e){return function(t){var r;if(!cU(t)||(r=qo(t)).type!==e)throw new Kd("Incompatible receiver, "+e+" required");return r}};sU||zd.state?(Gt=zd.state||(zd.state=new pU),Gt.get=Gt.get,Gt.has=Gt.has,Gt.set=Gt.set,Ls=function(e,t){if(Gt.has(e))throw new Kd(Yw);return t.facade=e,Gt.set(e,t),t},qo=function(e){return Gt.get(e)||{}},qs=function(e){return Gt.has(e)}):(Tn=uU("state"),dU[Tn]=!0,Ls=function(e,t){if(Wd(e,Tn))throw new Kd(Yw);return t.facade=e,lU(e,Tn,t),t},qo=function(e){return Wd(e,Tn)?e[Tn]:{}},qs=function(e){return Wd(e,Tn)});var Gt,Tn;Qw.exports={set:Ls,get:qo,has:qs,enforce:fU,getterFor:mU}});var Qd=h((SX,eS)=>{"use strict";var Yd=lt(),hU=At(),Zw=Function.prototype,gU=Yd&&Object.getOwnPropertyDescriptor,Xd=hU(Zw,"name"),vU=Xd&&(function(){}).name==="something",yU=Xd&&(!Yd||Yd&&gU(Zw,"name").configurable);eS.exports={EXISTS:Xd,PROPER:vU,CONFIGURABLE:yU}});var Zd=h((IX,tS)=>{"use strict";var bU=Ao(),_U=Math.max,wU=Math.min;tS.exports=function(e,t){var r=bU(e);return r<0?_U(r+t,0):wU(r,t)}});var ep=h((EX,nS)=>{"use strict";var SU=Wr(),IU=Zd(),EU=ui(),rS=function(e){return function(t,r,n){var i=SU(t),o=EU(i);if(o===0)return!e&&-1;var a=IU(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}};nS.exports={includes:rS(!0),indexOf:rS(!1)}});var rp=h((AX,oS)=>{"use strict";var AU=Re(),tp=At(),CU=Wr(),kU=ep().indexOf,xU=Lo(),iS=AU([].push);oS.exports=function(e,t){var r=CU(e),n=0,i=[],o;for(o in r)!tp(xU,o)&&tp(r,o)&&iS(i,o);for(;t.length>n;)tp(r,o=t[n++])&&(~kU(i,o)||iS(i,o));return i}});var Us=h((CX,aS)=>{"use strict";aS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var np=h((kX,sS)=>{"use strict";var TU=rp(),PU=Us();sS.exports=Object.keys||function(t){return TU(t,PU)}});var lS=h(cS=>{"use strict";var OU=lt(),RU=yd(),NU=wr(),DU=_r(),LU=Wr(),qU=np();cS.f=OU&&!RU?Object.defineProperties:function(t,r){DU(t);for(var n=LU(r),i=qU(r),o=i.length,a=0,s;o>a;)NU.f(t,s=i[a++],n[s]);return t}});var dS=h((TX,uS)=>{"use strict";var UU=ii();uS.exports=UU("document","documentElement")});var Uo=h((PX,yS)=>{"use strict";var MU=_r(),FU=lS(),pS=Us(),jU=Lo(),BU=dS(),GU=hd(),JU=Ds(),fS=">",mS="<",op="prototype",ap="script",gS=JU("IE_PROTO"),ip=function(){},vS=function(e){return mS+ap+fS+e+mS+"/"+ap+fS},hS=function(e){e.write(vS("")),e.close();var t=e.parentWindow.Object;return e=null,t},HU=function(){var e=GU("iframe"),t="java"+ap+":",r;return e.style.display="none",BU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(vS("document.F=Object")),r.close(),r.F},Ms,Fs=function(){try{Ms=new ActiveXObject("htmlfile")}catch(t){}Fs=typeof document!="undefined"?document.domain&&Ms?hS(Ms):HU():hS(Ms);for(var e=pS.length;e--;)delete Fs[op][pS[e]];return Fs()};jU[gS]=!0;yS.exports=Object.create||function(t,r){var n;return t!==null?(ip[op]=MU(t),n=new ip,ip[op]=null,n[gS]=t):n=Fs(),r===void 0?n:FU.f(n,r)}});var _S=h((OX,bS)=>{"use strict";var VU=Ie();bS.exports=!VU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var cp=h((RX,SS)=>{"use strict";var $U=At(),WU=We(),zU=ai(),KU=Ds(),YU=_S(),wS=KU("IE_PROTO"),sp=Object,XU=sp.prototype;SS.exports=YU?sp.getPrototypeOf:function(e){var t=zU(e);if($U(t,wS))return t[wS];var r=t.constructor;return WU(r)&&t instanceof r?r.prototype:t instanceof sp?XU:null}});var js=h((NX,IS)=>{"use strict";var QU=Cn();IS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:QU(e,t,r),e}});var pp=h((DX,CS)=>{"use strict";var ZU=Ie(),eM=We(),tM=Me(),rM=Uo(),ES=cp(),nM=js(),iM=tt(),oM=oi(),dp=iM("iterator"),AS=!1,Ir,lp,up;[].keys&&(up=[].keys(),"next"in up?(lp=ES(ES(up)),lp!==Object.prototype&&(Ir=lp)):AS=!0);var aM=!tM(Ir)||ZU(function(){var e={};return Ir[dp].call(e)!==e});aM?Ir={}:oM&&(Ir=rM(Ir));eM(Ir[dp])||nM(Ir,dp,function(){return this});CS.exports={IteratorPrototype:Ir,BUGGY_SAFARI_ITERATORS:AS}});var xS=h((LX,kS)=>{"use strict";var sM=xs(),cM=di();kS.exports=sM?{}.toString:function(){return"[object "+cM(this)+"]"}});var Mo=h((qX,PS)=>{"use strict";var lM=xs(),uM=wr().f,dM=Cn(),pM=At(),fM=xS(),mM=tt(),TS=mM("toStringTag");PS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(pM(i,TS)||uM(i,TS,{configurable:!0,value:t}),n&&!lM&&dM(i,"toString",fM))}});var RS=h((UX,OS)=>{"use strict";var hM=pp().IteratorPrototype,gM=Uo(),vM=bo(),yM=Mo(),bM=xn(),_M=function(){return this};OS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=gM(hM,{next:vM(+!n,r)}),yM(e,i,!1,!0),bM[i]=_M,e}});var DS=h((MX,NS)=>{"use strict";var wM=Re(),SM=An();NS.exports=function(e,t,r){try{return wM(SM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var qS=h((FX,LS)=>{"use strict";var IM=Me();LS.exports=function(e){return IM(e)||e===null}});var MS=h((jX,US)=>{"use strict";var EM=qS(),AM=String,CM=TypeError;US.exports=function(e){if(EM(e))return e;throw new CM("Can't set "+AM(e)+" as a prototype")}});var jS=h((BX,FS)=>{"use strict";var kM=DS(),xM=Me(),TM=En(),PM=MS();FS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=kM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return TM(i),PM(o),xM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Js=h((GX,YS)=>{"use strict";var OM=ae(),RM=jt(),Bs=oi(),zS=Qd(),NM=We(),DM=RS(),BS=cp(),GS=jS(),LM=Mo(),qM=Cn(),fp=js(),UM=tt(),JS=xn(),KS=pp(),MM=zS.PROPER,FM=zS.CONFIGURABLE,HS=KS.IteratorPrototype,Gs=KS.BUGGY_SAFARI_ITERATORS,Fo=UM("iterator"),VS="keys",jo="values",$S="entries",WS=function(){return this};YS.exports=function(e,t,r,n,i,o,a){DM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Gs&&y&&y in d)return d[y];switch(y){case VS:return function(){return new r(this,y)};case jo:return function(){return new r(this,y)};case $S:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Fo]||d["@@iterator"]||i&&d[i],p=!Gs&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=BS(f.call(new e)),m!==Object.prototype&&m.next&&(!Bs&&BS(m)!==HS&&(GS?GS(m,HS):NM(m[Fo])||fp(m,Fo,WS)),LM(m,c,!0,!0),Bs&&(JS[c]=WS))),MM&&i===jo&&u&&u.name!==jo&&(!Bs&&FM?qM(d,"name",jo):(l=!0,p=function(){return RM(u,this)})),i)if(v={values:s(jo),keys:o?p:s(VS),entries:s($S)},a)for(b in v)(Gs||l||!(b in d))&&fp(d,b,v[b]);else OM({target:t,proto:!0,forced:Gs||l},v);return(!Bs||a)&&d[Fo]!==p&&fp(d,Fo,p,{name:i}),JS[t]=p,v}});var Hs=h((JX,XS)=>{"use strict";XS.exports=function(e,t){return{value:e,done:t}}});var $s=h((HX,rI)=>{"use strict";var jM=Wr(),mp=Jw(),QS=xn(),eI=Pn(),BM=wr().f,GM=Js(),Vs=Hs(),JM=oi(),HM=lt(),tI="Array Iterator",VM=eI.set,$M=eI.getterFor(tI);rI.exports=GM(Array,"Array",function(e,t){VM(this,{type:tI,target:jM(e),index:0,kind:t})},function(){var e=$M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Vs(void 0,!0);switch(e.kind){case"keys":return Vs(r,!1);case"values":return Vs(t[r],!1)}return Vs([r,t[r]],!1)},"values");var ZS=QS.Arguments=QS.Array;mp("keys");mp("values");mp("entries");if(!JM&&HM&&ZS.name!=="values")try{BM(ZS,"name",{value:"values"})}catch(e){}});var hp=h(()=>{});var gp=h((WX,nI)=>{"use strict";var WM=Ie();nI.exports=!WM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ws=h((zX,iI)=>{"use strict";var zM=js();iI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:zM(e,n,t[n],r);return e}});var vp=h(oI=>{"use strict";var KM=rp(),YM=Us(),XM=YM.concat("length","prototype");oI.f=Object.getOwnPropertyNames||function(t){return KM(t,XM)}});var lI=h((YX,cI)=>{"use strict";var QM=br(),ZM=Wr(),aI=vp().f,eF=Oo(),sI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tF=function(e){try{return aI(e)}catch(t){return eF(sI)}};cI.exports.f=function(t){return sI&&QM(t)==="Window"?tF(t):aI(ZM(t))}});var dI=h((XX,uI)=>{"use strict";var rF=Ie();uI.exports=rF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var mI=h((QX,fI)=>{"use strict";var nF=Ie(),iF=Me(),oF=br(),pI=dI(),zs=Object.isExtensible,aF=nF(function(){zs(1)});fI.exports=aF||pI?function(t){return!iF(t)||pI&&oF(t)==="ArrayBuffer"?!1:zs?zs(t):!0}:zs});var Bo=h((ZX,vI)=>{"use strict";var sF=ae(),cF=Re(),lF=Lo(),uF=Me(),yp=At(),dF=wr().f,hI=vp(),pF=lI(),bp=mI(),fF=Cs(),mF=gp(),gI=!1,Er=fF("meta"),hF=0,_p=function(e){dF(e,Er,{value:{objectID:"O"+hF++,weakData:{}}})},gF=function(e,t){if(!uF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!yp(e,Er)){if(!bp(e))return"F";if(!t)return"E";_p(e)}return e[Er].objectID},vF=function(e,t){if(!yp(e,Er)){if(!bp(e))return!0;if(!t)return!1;_p(e)}return e[Er].weakData},yF=function(e){return mF&&gI&&bp(e)&&!yp(e,Er)&&_p(e),e},bF=function(){_F.enable=function(){},gI=!0;var e=hI.f,t=cF([].splice),r={};r[Er]=1,e(r).length&&(hI.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},sF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:pF.f}))},_F=vI.exports={enable:bF,fastKey:gF,getWeakData:vF,onFreeze:yF};lF[Er]=!0});var bI=h((eQ,yI)=>{"use strict";var wF=tt(),SF=xn(),IF=wF("iterator"),EF=Array.prototype;yI.exports=function(e){return e!==void 0&&(SF.Array===e||EF[IF]===e)}});var wp=h((tQ,wI)=>{"use strict";var AF=di(),_I=As(),CF=In(),kF=xn(),xF=tt(),TF=xF("iterator");wI.exports=function(e){if(!CF(e))return _I(e,TF)||_I(e,"@@iterator")||kF[AF(e)]}});var II=h((rQ,SI)=>{"use strict";var PF=jt(),OF=An(),RF=_r(),NF=_o(),DF=wp(),LF=TypeError;SI.exports=function(e,t){var r=arguments.length<2?DF(e):t;if(OF(r))return RF(PF(r,e));throw new LF(NF(e)+" is not iterable")}});var Ks=h((nQ,AI)=>{"use strict";var qF=jt(),EI=_r(),UF=As();AI.exports=function(e,t,r){var n,i;EI(e);try{if(n=UF(e,"return"),!n){if(t==="throw")throw r;return r}n=qF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return EI(n),r}});var Xs=h((iQ,TI)=>{"use strict";var MF=Io(),FF=jt(),jF=_r(),BF=_o(),GF=bI(),JF=ui(),CI=ct(),HF=II(),VF=wp(),kI=Ks(),$F=TypeError,Ys=function(e,t){this.stopped=e,this.result=t},xI=Ys.prototype;TI.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),c=MF(t,n),l,d,u,p,f,m,v,b=function(_){return l&&kI(l,"normal",_),new Ys(!0,_)},y=function(_){return i?(jF(_),s?c(_[0],_[1],b):c(_[0],_[1])):s?c(_,b):c(_)};if(o)l=e.iterator;else if(a)l=e;else{if(d=VF(e),!d)throw new $F(BF(e)+" is not iterable");if(GF(d)){for(u=0,p=JF(e);p>u;u++)if(f=y(e[u]),f&&CI(xI,f))return f;return new Ys(!1)}l=HF(e,d)}for(m=o?e.next:l.next;!(v=FF(m,l)).done;){try{f=y(v.value)}catch(_){kI(l,"throw",_)}if(typeof f=="object"&&f&&CI(xI,f))return f}return new Ys(!1)}});var Qs=h((oQ,PI)=>{"use strict";var WF=ct(),zF=TypeError;PI.exports=function(e,t){if(WF(t,e))return e;throw new zF("Incorrect invocation")}});var Sp=h((aQ,RI)=>{"use strict";var KF=ae(),YF=Ee(),XF=Bo(),QF=Ie(),ZF=Cn(),ej=Xs(),tj=Qs(),rj=We(),nj=Me(),ij=In(),oj=Mo(),aj=wr().f,sj=Kr().forEach,cj=lt(),OI=Pn(),lj=OI.set,uj=OI.getterFor;RI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=YF[e],s=a&&a.prototype,c={},l;if(!cj||!rj(a)||!(i||s.forEach&&!QF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),XF.enable();else{l=t(function(p,f){lj(tj(p,d),{type:e,collection:new a}),ij(f)||ej(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=uj(e);sj(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&ZF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!nj(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||aj(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return oj(l,e,!1,!0),c[e]=l,KF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var FI=h((sQ,MI)=>{"use strict";var dj=Re(),NI=Ws(),Zs=Bo().getWeakData,pj=Qs(),fj=_r(),mj=In(),Ip=Me(),hj=Xs(),LI=Kr(),DI=At(),qI=Pn(),gj=qI.set,vj=qI.getterFor,yj=LI.find,bj=LI.findIndex,_j=dj([].splice),wj=0,ec=function(e){return e.frozen||(e.frozen=new UI)},UI=function(){this.entries=[]},Ep=function(e,t){return yj(e.entries,function(r){return r[0]===t})};UI.prototype={get:function(e){var t=Ep(this,e);if(t)return t[1]},has:function(e){return!!Ep(this,e)},set:function(e,t){var r=Ep(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=bj(this.entries,function(r){return r[0]===e});return~t&&_j(this.entries,t,1),!!~t}};MI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){pj(c,o),gj(c,{type:t,id:wj++,frozen:null}),mj(l)||hj(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=vj(t),s=function(c,l,d){var u=a(c),p=Zs(fj(l),!0);return p===!0?ec(u).set(l,d):p[u.id]=d,c};return NI(o,{delete:function(c){var l=a(this);if(!Ip(c))return!1;var d=Zs(c);return d===!0?ec(l).delete(c):d&&DI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Ip(l))return!1;var u=Zs(l);return u===!0?ec(d).has(l):u&&DI(u,d.id)}}),NI(o,r?{get:function(l){var d=a(this);if(Ip(l)){var u=Zs(l);if(u===!0)return ec(d).get(l);if(u)return u[d.id]}},set:function(l,d){return s(this,l,d)}}:{add:function(l){return s(this,l,!0)}}),i}}});var WI=h(()=>{"use strict";var Sj=gp(),jI=Ee(),ic=Re(),BI=Ws(),Ij=Bo(),Ej=Sp(),GI=FI(),tc=Me(),rc=Pn().enforce,Aj=Ie(),Cj=$d(),Ho=Object,kj=Array.isArray,nc=Ho.isExtensible,JI=Ho.isFrozen,xj=Ho.isSealed,HI=Ho.freeze,Tj=Ho.seal,Pj=!jI.ActiveXObject&&"ActiveXObject"in jI,Go,VI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$I=Ej("WeakMap",VI,GI),hi=$I.prototype,oc=ic(hi.set),Oj=function(){return Sj&&Aj(function(){var e=HI([]);return oc(new $I,e,1),!JI(e)})};Cj&&(Pj?(Go=GI.getConstructor(VI,"WeakMap",!0),Ij.enable(),Ap=ic(hi.delete),Jo=ic(hi.has),Cp=ic(hi.get),BI(hi,{delete:function(e){if(tc(e)&&!nc(e)){var t=rc(this);return t.frozen||(t.frozen=new Go),Ap(this,e)||t.frozen.delete(e)}return Ap(this,e)},has:function(t){if(tc(t)&&!nc(t)){var r=rc(this);return r.frozen||(r.frozen=new Go),Jo(this,t)||r.frozen.has(t)}return Jo(this,t)},get:function(t){if(tc(t)&&!nc(t)){var r=rc(this);return r.frozen||(r.frozen=new Go),Jo(this,t)?Cp(this,t):r.frozen.get(t)}return Cp(this,t)},set:function(t,r){if(tc(t)&&!nc(t)){var n=rc(this);n.frozen||(n.frozen=new Go),Jo(this,t)?oc(this,t,r):n.frozen.set(t,r)}else oc(this,t,r);return this}})):Oj()&&BI(hi,{set:function(t,r){var n;return kj(t)&&(JI(t)?n=HI:xj(t)&&(n=Tj)),oc(this,t,r),n&&n(t),this}}));var Ap,Jo,Cp});var zI=h(()=>{"use strict";WI()});var YI=h((pQ,KI)=>{"use strict";$s();hp();zI();var Rj=Xt();KI.exports=Rj.WeakMap});var QI=h((fQ,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 kp=h(()=>{"use strict";$s();var Nj=QI(),Dj=Ee(),Lj=Mo(),ZI=xn();for(ac in Nj)Lj(Dj[ac],ac),ZI[ac]=ZI.Array;var ac});var tE=h((gQ,eE)=>{"use strict";var qj=YI();kp();eE.exports=qj});var nE=h((vQ,rE)=>{rE.exports=tE()});var oE=h(()=>{"use strict";var Uj=ae(),Mj=yo(),Fj=ep().indexOf,jj=To(),xp=Mj([].indexOf),iE=!!xp&&1/xp([1],1,-0)<0,Bj=iE||!jj("indexOf");Uj({target:"Array",proto:!0,forced:Bj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return iE?xp(this,t,r)||0:Fj(this,t,r)}})});var sE=h((_Q,aE)=>{"use strict";oE();var Gj=Nt();aE.exports=Gj("Array","indexOf")});var lE=h((wQ,cE)=>{"use strict";var Jj=ct(),Hj=sE(),Tp=Array.prototype;cE.exports=function(e){var t=e.indexOf;return e===Tp||Jj(Tp,e)&&t===Tp.indexOf?Hj:t}});var dE=h((SQ,uE)=>{"use strict";var Vj=lE();uE.exports=Vj});var fE=h((IQ,pE)=>{pE.exports=dE()});var mE=h(()=>{"use strict";var $j=ae(),Wj=Kr().map,zj=xo(),Kj=zj("map");$j({target:"Array",proto:!0,forced:!Kj},{map:function(t){return Wj(this,t,arguments.length>1?arguments[1]:void 0)}})});var gE=h((CQ,hE)=>{"use strict";mE();var Yj=Nt();hE.exports=Yj("Array","map")});var yE=h((kQ,vE)=>{"use strict";var Xj=ct(),Qj=gE(),Pp=Array.prototype;vE.exports=function(e){var t=e.map;return e===Pp||Xj(Pp,e)&&t===Pp.map?Qj:t}});var _E=h((xQ,bE)=>{"use strict";var Zj=yE();bE.exports=Zj});var SE=h((TQ,wE)=>{wE.exports=_E()});var IE=h(()=>{"use strict";var eB=ae(),tB=lt(),rB=Uo();eB({target:"Object",stat:!0,sham:!tB},{create:rB})});var AE=h((RQ,EE)=>{"use strict";IE();var nB=Xt(),iB=nB.Object;EE.exports=function(t,r){return iB.create(t,r)}});var kE=h((NQ,CE)=>{"use strict";var oB=AE();CE.exports=oB});var TE=h((DQ,xE)=>{xE.exports=kE()});var Op=h((LQ,PE)=>{"use strict";var aB=wr();PE.exports=function(e,t,r){return aB.f(e,t,r)}});var NE=h((qQ,RE)=>{"use strict";var sB=ii(),cB=Op(),lB=tt(),uB=lt(),OE=lB("species");RE.exports=function(e){var t=sB(e);uB&&t&&!t[OE]&&cB(t,OE,{configurable:!0,get:function(){return this}})}});var jE=h((UQ,FE)=>{"use strict";var DE=Uo(),dB=Op(),LE=Ws(),pB=Io(),fB=Qs(),mB=In(),hB=Xs(),gB=Js(),sc=Hs(),vB=NE(),Vo=lt(),qE=Bo().fastKey,ME=Pn(),UE=ME.set,Rp=ME.getterFor;FE.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){fB(l,o),UE(l,{type:t,index:DE(null),first:null,last:null,size:0}),Vo||(l.size=0),mB(d)||hB(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Rp(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,v;return f?f.value=u:(p.last=f={index:v=qE(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Vo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=qE(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return LE(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=DE(null),Vo?u.size=0:d.size=0},delete:function(l){var d=this,u=a(d),p=c(d,l);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),Vo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=pB(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!!c(this,d)}}),LE(o,r?{get:function(d){var u=c(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)}}),Vo&&dB(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Rp(t),o=Rp(n);gB(e,t,function(a,s){UE(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,c=a.last;c&&c.removed;)c=c.previous;return!a.target||!(a.last=c=c?c.next:a.state.first)?(a.target=null,sc(void 0,!0)):sc(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),vB(t)}}});var BE=h(()=>{"use strict";var yB=Sp(),bB=jE();yB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bB)});var GE=h(()=>{"use strict";BE()});var Qr=h((GQ,JE)=>{"use strict";var _B=_o(),wB=TypeError;JE.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 wB(_B(e)+" is not a set")}});var VE=h((JQ,HE)=>{"use strict";HE.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Zr=h((HQ,WE)=>{"use strict";var SB=ii(),Np=VE(),$E=SB("Set"),IB=$E.prototype;WE.exports={Set:$E,add:Np("add",1),has:Np("has",1),remove:Np("delete",1),proto:IB}});var en=h((VQ,zE)=>{"use strict";var EB=jt();zE.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=EB(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var gi=h(($Q,KE)=>{"use strict";var AB=en();KE.exports=function(e,t,r){return r?AB(e.keys(),t,!0):e.forEach(t)}});var cc=h((WQ,XE)=>{"use strict";var YE=Zr(),CB=gi(),kB=YE.Set,xB=YE.add;XE.exports=function(e){var t=new kB;return CB(e,function(r){xB(t,r)}),t}});var yi=h((zQ,QE)=>{"use strict";QE.exports=function(e){return e.size}});var e0=h((KQ,ZE)=>{"use strict";ZE.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var tn=h((YQ,a0)=>{"use strict";var t0=An(),i0=_r(),r0=jt(),TB=Ao(),PB=e0(),n0="Invalid size",OB=RangeError,RB=TypeError,NB=Math.max,o0=function(e,t){this.set=e,this.size=NB(t,0),this.has=t0(e.has),this.keys=t0(e.keys)};o0.prototype={getIterator:function(){return PB(i0(r0(this.keys,this.set)))},includes:function(e){return r0(this.has,this.set,e)}};a0.exports=function(e){i0(e);var t=+e.size;if(t!==t)throw new RB(n0);var r=TB(t);if(r<0)throw new OB(n0);return new o0(e,r)}});var u0=h((XQ,l0)=>{"use strict";var DB=Qr(),c0=Zr(),LB=cc(),qB=yi(),UB=tn(),MB=gi(),FB=en(),jB=c0.has,s0=c0.remove;l0.exports=function(t){var r=DB(this),n=UB(t),i=LB(r);return qB(r)<=n.size?MB(r,function(o){n.includes(o)&&s0(i,o)}):FB(n.getIterator(),function(o){jB(r,o)&&s0(i,o)}),i}});var rn=h((QQ,d0)=>{"use strict";d0.exports=function(){return!1}});var p0=h(()=>{"use strict";var BB=ae(),GB=u0(),JB=rn(),HB=!JB("difference",function(e){return e.size===0});BB({target:"Set",proto:!0,real:!0,forced:HB},{difference:GB})});var h0=h((tZ,m0)=>{"use strict";var VB=Qr(),Dp=Zr(),$B=yi(),WB=tn(),zB=gi(),KB=en(),YB=Dp.Set,f0=Dp.add,XB=Dp.has;m0.exports=function(t){var r=VB(this),n=WB(t),i=new YB;return $B(r)>n.size?KB(n.getIterator(),function(o){XB(r,o)&&f0(i,o)}):zB(r,function(o){n.includes(o)&&f0(i,o)}),i}});var g0=h(()=>{"use strict";var QB=ae(),ZB=Ie(),eG=h0(),tG=rn(),rG=!tG("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||ZB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});QB({target:"Set",proto:!0,real:!0,forced:rG},{intersection:eG})});var y0=h((iZ,v0)=>{"use strict";var nG=Qr(),iG=Zr().has,oG=yi(),aG=tn(),sG=gi(),cG=en(),lG=Ks();v0.exports=function(t){var r=nG(this),n=aG(t);if(oG(r)<=n.size)return sG(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return cG(i,function(o){if(iG(r,o))return lG(i,"normal",!1)})!==!1}});var b0=h(()=>{"use strict";var uG=ae(),dG=y0(),pG=rn(),fG=!pG("isDisjointFrom",function(e){return!e});uG({target:"Set",proto:!0,real:!0,forced:fG},{isDisjointFrom:dG})});var w0=h((sZ,_0)=>{"use strict";var mG=Qr(),hG=yi(),gG=gi(),vG=tn();_0.exports=function(t){var r=mG(this),n=vG(t);return hG(r)>n.size?!1:gG(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var S0=h(()=>{"use strict";var yG=ae(),bG=w0(),_G=rn(),wG=!_G("isSubsetOf",function(e){return e});yG({target:"Set",proto:!0,real:!0,forced:wG},{isSubsetOf:bG})});var E0=h((uZ,I0)=>{"use strict";var SG=Qr(),IG=Zr().has,EG=yi(),AG=tn(),CG=en(),kG=Ks();I0.exports=function(t){var r=SG(this),n=AG(t);if(EG(r)<n.size)return!1;var i=n.getIterator();return CG(i,function(o){if(!IG(r,o))return kG(i,"normal",!1)})!==!1}});var A0=h(()=>{"use strict";var xG=ae(),TG=E0(),PG=rn(),OG=!PG("isSupersetOf",function(e){return!e});xG({target:"Set",proto:!0,real:!0,forced:OG},{isSupersetOf:TG})});var k0=h((fZ,C0)=>{"use strict";var RG=Qr(),Lp=Zr(),NG=cc(),DG=tn(),LG=en(),qG=Lp.add,UG=Lp.has,MG=Lp.remove;C0.exports=function(t){var r=RG(this),n=DG(t).getIterator(),i=NG(r);return LG(n,function(o){UG(r,o)?MG(i,o):qG(i,o)}),i}});var x0=h(()=>{"use strict";var FG=ae(),jG=k0(),BG=rn();FG({target:"Set",proto:!0,real:!0,forced:!BG("symmetricDifference")},{symmetricDifference:jG})});var P0=h((gZ,T0)=>{"use strict";var GG=Qr(),JG=Zr().add,HG=cc(),VG=tn(),$G=en();T0.exports=function(t){var r=GG(this),n=VG(t).getIterator(),i=HG(r);return $G(n,function(o){JG(i,o)}),i}});var O0=h(()=>{"use strict";var WG=ae(),zG=P0(),KG=rn();WG({target:"Set",proto:!0,real:!0,forced:!KG("union")},{union:zG})});var $o=h((bZ,R0)=>{"use strict";var YG=di(),XG=String;R0.exports=function(e){if(YG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return XG(e)}});var q0=h((_Z,L0)=>{"use strict";var qp=Re(),QG=Ao(),ZG=$o(),eJ=En(),tJ=qp("".charAt),N0=qp("".charCodeAt),rJ=qp("".slice),D0=function(e){return function(t,r){var n=ZG(eJ(t)),i=QG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=N0(n,i),a<55296||a>56319||i+1===o||(s=N0(n,i+1))<56320||s>57343?e?tJ(n,i):a:e?rJ(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};L0.exports={codeAt:D0(!1),charAt:D0(!0)}});var j0=h(()=>{"use strict";var nJ=q0().charAt,iJ=$o(),M0=Pn(),oJ=Js(),U0=Hs(),F0="String Iterator",aJ=M0.set,sJ=M0.getterFor(F0);oJ(String,"String",function(e){aJ(this,{type:F0,string:iJ(e),index:0})},function(){var t=sJ(this),r=t.string,n=t.index,i;return n>=r.length?U0(void 0,!0):(i=nJ(r,n),t.index+=i.length,U0(i,!1))})});var G0=h((IZ,B0)=>{"use strict";$s();hp();GE();p0();g0();b0();S0();A0();x0();O0();j0();var cJ=Xt();B0.exports=cJ.Set});var H0=h((EZ,J0)=>{"use strict";var lJ=G0();kp();J0.exports=lJ});var $0=h((AZ,V0)=>{V0.exports=H0()});var z0=h(W0=>{"use strict";W0.f=Object.getOwnPropertySymbols});var Q0=h((kZ,X0)=>{"use strict";var K0=lt(),uJ=Re(),dJ=jt(),pJ=Ie(),Up=np(),fJ=z0(),mJ=ed(),hJ=ai(),gJ=ws(),bi=Object.assign,Y0=Object.defineProperty,vJ=uJ([].concat);X0.exports=!bi||pJ(function(){if(K0&&bi({b:1},bi(Y0({},"a",{enumerable:!0,get:function(){Y0(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}),bi({},e)[r]!==7||Up(bi({},t)).join("")!==n})?function(t,r){for(var n=hJ(t),i=arguments.length,o=1,a=fJ.f,s=mJ.f;i>o;)for(var c=gJ(arguments[o++]),l=a?vJ(Up(c),a(c)):Up(c),d=l.length,u=0,p;d>u;)p=l[u++],(!K0||dJ(s,c,p))&&(n[p]=c[p]);return n}:bi});var eA=h(()=>{"use strict";var yJ=ae(),Z0=Q0();yJ({target:"Object",stat:!0,arity:2,forced:Object.assign!==Z0},{assign:Z0})});var rA=h((PZ,tA)=>{"use strict";eA();var bJ=Xt();tA.exports=bJ.Object.assign});var iA=h((OZ,nA)=>{"use strict";var _J=rA();nA.exports=_J});var aA=h((RZ,oA)=>{oA.exports=iA()});var Mp=h((NZ,sA)=>{"use strict";sA.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 uA=h((DZ,lA)=>{"use strict";var wJ=Re(),SJ=En(),IJ=$o(),jp=Mp(),cA=wJ("".replace),EJ=RegExp("^["+jp+"]+"),AJ=RegExp("(^|[^"+jp+"])["+jp+"]+$"),Fp=function(e){return function(t){var r=IJ(SJ(t));return e&1&&(r=cA(r,EJ,"")),e&2&&(r=cA(r,AJ,"$1")),r}};lA.exports={start:Fp(1),end:Fp(2),trim:Fp(3)}});var mA=h((LZ,fA)=>{"use strict";var CJ=Qd().PROPER,kJ=Ie(),dA=Mp(),pA="\u200B\x85\u180E";fA.exports=function(e){return kJ(function(){return!!dA[e]()||pA[e]()!==pA||CJ&&dA[e].name!==e})}});var hA=h(()=>{"use strict";var xJ=ae(),TJ=uA().trim,PJ=mA();xJ({target:"String",proto:!0,forced:PJ("trim")},{trim:function(){return TJ(this)}})});var vA=h((MZ,gA)=>{"use strict";hA();var OJ=Nt();gA.exports=OJ("String","trim")});var bA=h((FZ,yA)=>{"use strict";var RJ=ct(),NJ=vA(),Bp=String.prototype;yA.exports=function(e){var t=e.trim;return typeof e=="string"||e===Bp||RJ(Bp,e)&&t===Bp.trim?NJ:t}});var wA=h((jZ,_A)=>{"use strict";var DJ=bA();_A.exports=DJ});var IA=h((BZ,SA)=>{SA.exports=wA()});var CA=h(()=>{"use strict";var LJ=ae(),EA=Co(),qJ=Cd(),UJ=Me(),AA=Zd(),MJ=ui(),FJ=Wr(),jJ=Od(),BJ=tt(),GJ=xo(),JJ=Oo(),HJ=GJ("slice"),VJ=BJ("species"),Gp=Array,$J=Math.max;LJ({target:"Array",proto:!0,forced:!HJ},{slice:function(t,r){var n=FJ(this),i=MJ(n),o=AA(t,i),a=AA(r===void 0?i:r,i),s,c,l;if(EA(n)&&(s=n.constructor,qJ(s)&&(s===Gp||EA(s.prototype))?s=void 0:UJ(s)&&(s=s[VJ],s===null&&(s=void 0)),s===Gp||s===void 0))return JJ(n,o,a);for(c=new(s===void 0?Gp:s)($J(a-o,0)),l=0;o<a;o++,l++)o in n&&jJ(c,l,n[o]);return c.length=l,c}})});var xA=h((HZ,kA)=>{"use strict";CA();var WJ=Nt();kA.exports=WJ("Array","slice")});var PA=h((VZ,TA)=>{"use strict";var zJ=ct(),KJ=xA(),Jp=Array.prototype;TA.exports=function(e){var t=e.slice;return e===Jp||zJ(Jp,e)&&t===Jp.slice?KJ:t}});var RA=h(($Z,OA)=>{"use strict";var YJ=PA();OA.exports=YJ});var DA=h((WZ,NA)=>{NA.exports=RA()});var Hp=T(()=>{});var qA=h((KZ,LA)=>{"use strict";var XJ=Me(),QJ=br(),ZJ=tt(),e2=ZJ("match");LA.exports=function(e){var t;return XJ(e)&&((t=e[e2])!==void 0?!!t:QJ(e)==="RegExp")}});var MA=h((YZ,UA)=>{"use strict";var t2=qA(),r2=TypeError;UA.exports=function(e){if(t2(e))throw new r2("The method doesn't accept regular expressions");return e}});var jA=h((XZ,FA)=>{"use strict";var n2=tt(),i2=n2("match");FA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i2]=!1,"/./"[e](t)}catch(n){}}return!1}});var JA=h(()=>{"use strict";var o2=ae(),a2=yo(),s2=vd().f,c2=Id(),BA=$o(),l2=MA(),u2=En(),d2=jA(),p2=oi(),f2=a2("".slice),m2=Math.min,GA=d2("startsWith"),h2=!p2&&!GA&&!!function(){var e=s2(String.prototype,"startsWith");return e&&!e.writable}();o2({target:"String",proto:!0,forced:!h2&&!GA},{startsWith:function(t){var r=BA(u2(this));l2(t);var n=c2(m2(arguments.length>1?arguments[1]:void 0,r.length)),i=BA(t);return f2(r,n,n+i.length)===i}})});var VA=h((eee,HA)=>{"use strict";JA();var g2=Nt();HA.exports=g2("String","startsWith")});var WA=h((tee,$A)=>{"use strict";var v2=ct(),y2=VA(),Vp=String.prototype;$A.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Vp||v2(Vp,e)&&t===Vp.startsWith?y2:t}});var KA=h((ree,zA)=>{"use strict";var b2=WA();zA.exports=b2});var XA=h((nee,YA)=>{YA.exports=KA()});var rC=h((iee,tC)=>{"use strict";var ZA=Re(),_2=An(),w2=Me(),S2=At(),QA=Oo(),I2=ni(),eC=Function,E2=ZA([].concat),A2=ZA([].join),$p={},C2=function(e,t,r){if(!S2($p,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";$p[t]=eC("C,a","return new C("+A2(n,",")+")")}return $p[t](e,r)};tC.exports=I2?eC.bind:function(t){var r=_2(this),n=r.prototype,i=QA(arguments,1),o=function(){var s=E2(i,QA(arguments));return this instanceof o?C2(r,s.length,s):r.apply(t,s)};return w2(n)&&(o.prototype=n),o}});var iC=h(()=>{"use strict";var k2=ae(),nC=rC();k2({target:"Function",proto:!0,forced:Function.bind!==nC},{bind:nC})});var aC=h((see,oC)=>{"use strict";iC();var x2=Nt();oC.exports=x2("Function","bind")});var cC=h((cee,sC)=>{"use strict";var T2=ct(),P2=aC(),Wp=Function.prototype;sC.exports=function(e){var t=e.bind;return e===Wp||T2(Wp,e)&&t===Wp.bind?P2:t}});var uC=h((lee,lC)=>{"use strict";var O2=cC();lC.exports=O2});var pC=h((uee,dC)=>{dC.exports=uC()});function kc(e,t){Ne.__h&&Ne.__h(be,e,Zo||t),Zo=0;var r=be.__H||(be.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function or(e){return Zo=1,R2(ek,e)}function R2(e,t,r){var n=kc(Ii++,2);if(n.t=e,!n.__c&&(n.__=[ek(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=be,!be.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,hf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,KC.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,c,l);var p=n.__c.props!==s;return(0,Fe.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,c,l)||p};be.__f=!0;var o=be.shouldComponentUpdate,a=be.componentWillUpdate;be.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},be.shouldComponentUpdate=i}return n.__N||n.__}function Rn(e,t){var r=kc(Ii++,3);!Ne.__s&&ZC(r.__H,t)&&(r.__=e,r.u=t,be.__H.__h.push(r))}function Ko(e){return Zo=5,Cr(function(){return{current:e}},[])}function Cr(e,t){var r=kc(Ii++,7);return ZC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Dt(e,t){return Zo=8,Cr(function(){return e},t)}function N2(e){var t=be.context[e.__c],r=kc(Ii++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(be)),t.props.value):e.__}function D2(){for(var e;e=QC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Fe.default)(t=e.__H.__h).call(t,fc),(0,Fe.default)(r=e.__H.__h).call(r,rf),e.__H.__h=[]}catch(n){e.__H.__h=[],Ne.__e(n,e.__v)}}function L2(e){var t,r=function(){clearTimeout(n),_C&&cancelAnimationFrame(t),(0,ir.default)(e)},n=(0,ir.default)(r,100);_C&&(t=requestAnimationFrame(r))}function fc(e){var t=be,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),be=t}function rf(e){var t=be;e.__c=e.__(),be=t}function ZC(e,t){return!e||e.length!==t.length||(0,wc.default)(t).call(t,function(r,n){return r!==e[n]})}function ek(e,t){return typeof t=="function"?t(e):t}function q2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nf(){throw new Error("setTimeout has not been defined")}function of(){throw new Error("clearTimeout has not been defined")}function rk(e){if(Zt===ir.default)return(0,ir.default)(e,0);if((Zt===nf||!Zt)&&ir.default)return Zt=ir.default,(0,ir.default)(e,0);try{return Zt(e,0)}catch(t){try{return Zt.call(null,e,0)}catch(r){return Zt.call(this,e,0)}}}function U2(e){if(er===clearTimeout)return clearTimeout(e);if((er===of||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(e);try{return er(e)}catch(t){try{return er.call(null,e)}catch(r){return er.call(this,e)}}}function M2(){!_i||!on||(_i=!1,on.length?Ar=(0,Cc.default)(on).call(on,Ar):mc=-1,Ar.length&&nk())}function nk(){if(!_i){var e=rk(M2);_i=!0;for(var t=Ar.length;t;){for(on=Ar,Ar=[];++mc<t;)on&&on[mc].run();mc=-1,t=Ar.length}on=null,_i=!1,U2(e)}}function ik(e,t){this.fun=e,this.array=t}function xr(){}function B2(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 G2(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 $2(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function sk(e){return(0,yf.default)(e).call(e)}function W2(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function af(e,t){return(0,kr.default)(e).call(e,t)}function ze(e,t){return e.charCodeAt(t)|0}function ea(e,t,r){return(0,bf.default)(e).call(e,t,r)}function tr(e){return e.length}function If(e){return e.length}function lc(e,t){return t.push(e),e}function z2(e,t){return(0,Qo.default)(e).call(e,t).join("")}function Pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Tc,column:Ei,length:a,return:""}}function Wo(e,t){return V2(Pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function K2(){return De}function Y2(){return De=mt>0?ze(Ci,--mt):0,Ei--,De===10&&(Ei=1,Tc--),De}function Ct(){return De=mt<ck?ze(Ci,mt++):0,Ei++,De===10&&(Ei=1,Tc++),De}function ar(){return ze(Ci,mt)}function hc(){return mt}function aa(e,t){return ea(Ci,e,t)}function ta(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 lk(e){return Tc=Ei=1,ck=tr(Ci=e),mt=0,[]}function uk(e){return Ci="",e}function gc(e){return sk(aa(mt-1,sf(e===91?e+2:e===40?e+1:e)))}function X2(e){for(;(De=ar())&&De<33;)Ct();return ta(e)>2||ta(De)>3?"":" "}function Q2(e,t){for(;--t&&Ct()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return aa(e,hc()+(t<6&&ar()==32&&Ct()==32))}function sf(e){for(;Ct();)switch(De){case e:return mt;case 34:case 39:e!==34&&e!==39&&sf(De);break;case 40:e===41&&sf(e);break;case 92:Ct();break}return mt}function Z2(e,t){for(;Ct()&&e+De!==57&&!(e+De===84&&ar()===47););return"/*"+aa(t,mt-1)+"*"+xc(e===47?e:Ct())}function eH(e){for(;!ta(ar());)Ct();return aa(e,mt)}function tH(e){return uk(vc("",null,null,null,[""],e=lk(e),0,[0],e))}function vc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=Ct()){case 40:if(m!=108&&ze(A,u-1)==58){af(A+=ie(gc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=gc(_);break;case 9:case 10:case 13:case 32:A+=X2(m);break;case 92:A+=Q2(hc()-1,7);continue;case 47:switch(ar()){case 42:case 47:lc(rH(Z2(Ct(),hc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=tr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&tr(A)-u&&lc(f>32?SC(A+";",n,r,u-1):SC(ie(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(lc(k=wC(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)vc(A,t,k,k,C,o,u,s,x);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 109:case 115:vc(e,k,k,n&&lc(wC(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:vc(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+tr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&Y2()==125)continue}switch(A+=xc(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(tr(A)-1)*y,y=1;break;case 64:ar()===45&&(A+=gc(Ct())),p=ar(),d=u=tr(E=A+=eH(hc())),_++;break;case 45:m===45&&tr(A)==2&&(v=0)}}return o}function wC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=If(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ea(e,u+1,u=H2(v=a[m])),E=e;y<f;++y)(E=sk(v>0?p[y]+" "+_:ie(_,/&\f/g,p[y])))&&(c[b++]=E);return Pc(e,t,r,i===0?wf:s,c,l,d)}function rH(e,t,r){return Pc(e,t,r,_f,xc(K2()),ea(e,2,-2),0)}function SC(e,t,r,n){return Pc(e,t,r,Sf,ea(e,0,n),ea(e,n+1,-1),n)}function wi(e,t){for(var r="",n=If(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function nH(e,t,r,n){switch(e.type){case J2:case Sf:return e.return=e.return||e.value;case _f:return"";case ak:return e.return=e.value+"{"+wi(e.children,n)+"}";case wf:e.value=e.props.join(",")}return tr(r=wi(e.children,n))?e.return=e.value+"{"+r+"}":""}function iH(e){var t=If(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 oH(e){return function(t){t.root||(t=t.return)&&e(t)}}function pk(e,t){switch($2(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+Ic+e+rt+e+e;case 6828:case 4268:return Z+e+rt+e+e;case 6165:return Z+e+rt+"flex-"+e+e;case 5187:return Z+e+ie(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return Z+e+rt+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return Z+e+rt+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+rt+ie(e,"shrink","negative")+e;case 5292:return Z+e+rt+ie(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ie(e,"-grow","")+Z+e+rt+ie(e,"grow","positive")+e;case 4554:return Z+ie(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ie(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(tr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+Ic+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~af(e,"stretch")?pk(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,tr(e)-3-(~af(e,"!important")&&10))){case 107:return ie(e,":",":"+Z)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(ze(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+rt+e+e}return e}function mk(){if(AC)return uc.exports;AC=1;let e=mk();return uc.exports={default:e},uc.exports.default=e,uc.exports}function ra(e,t,r){var n,i="";return(0,Fe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function bH(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 wH(e){var t=(0,YC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function na(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 rr={name:i.name,styles:i.styles,next:rr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var s=o.styles+";";return s}return EH(e,t,r)}case"function":{if(e!==void 0){var c=rr,l=r(e);return rr=c,na(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function EH(e,t,r){var n="";if((0,Xo.default)(r))for(var i=0;i<r.length;i++)n+=na(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]+"}":CC(s)&&(n+=Kp(o)+":"+kC(o,s)+";")}else if((0,Xo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)CC(a[c])&&(n+=Kp(o)+":"+kC(o,a[c])+";");else{var l=na(e,t,a);switch(o){case"animation":case"animationName":{n+=Kp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function an(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="";rr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=na(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=na(r,t,e[s]),n){var c=o;i+=c[s]}xC.lastIndex=0;for(var l="",d;(d=xC.exec(i))!==null;)l+="-"+d[1];var u=bH(i)+l;return{name:u,styles:i,next:rr}}function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return an(t)}function LH(e,t,r){var n=[],i=ra(e,n,r);return n.length<2?r:i+t(n)}function w(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--MH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return q.vnode&&q.vnode(l),l}function sa(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=or(e());return Rn(()=>{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 r3(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 Ak(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=r3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function n3(e){let t=()=>Ak(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function a3(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Qe(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=o3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:et("img",B(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",B(P({},a),{ref:l,className:i,children:r}))}function s3(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?et(i.type,B(P({},i.props),{style:B(P({},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?et(e.type,B(P({},e.props),{style:B(P({},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 p3(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 jC(e,t,r){return Rc.call(t,"css")?w(kf,bk(e,t),r):w(e,t,r)}function y3(e,t,r){return Rc.call(t,"css")?w(kf,bk(e,t),r):w(e,t,r)}function pf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("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?w($e,{children:t[s]},o):null}return w($e,{children:i},o)})})}function w3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=or(!1);return a?null:w("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function E3({children:e,style:t}){return w("div",{style:`${S3.styles} ${t}`,children:[e,w("svg",{style:`${I3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function F3(e,t){return Ke(e,0)^45?(((t<<2^Ke(e,0))<<2^Ke(e,1))<<2^Ke(e,2))<<2^Ke(e,3):0}function Fk(e){return(0,yf.default)(e).call(e)}function j3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function ff(e,t){return(0,kr.default)(e).call(e,t)}function Ke(e,t){return e.charCodeAt(t)|0}function ia(e,t,r){return(0,bf.default)(e).call(e,t,r)}function nr(e){return e.length}function Rf(e){return e.length}function pc(e,t){return t.push(e),e}function B3(e,t){return(0,Qo.default)(e).call(e,t).join("")}function Mc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Uc,column:Ai,length:a,return:""}}function zo(e,t){return M3(Mc("",null,null,"",null,null,0),e,{length:-e.length},t)}function G3(){return Le}function J3(){return Le=ht>0?Ke(xi,--ht):0,Ai--,Le===10&&(Ai=1,Uc--),Le}function kt(){return Le=ht<jk?Ke(xi,ht++):0,Ai++,Le===10&&(Ai=1,Uc++),Le}function sr(){return Ke(xi,ht)}function yc(){return ht}function ca(e,t){return ia(xi,e,t)}function oa(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 Bk(e){return Uc=Ai=1,jk=nr(xi=e),ht=0,[]}function Gk(e){return xi="",e}function bc(e){return Fk(ca(ht-1,mf(e===91?e+2:e===40?e+1:e)))}function H3(e){for(;(Le=sr())&&Le<33;)kt();return oa(e)>2||oa(Le)>3?"":" "}function V3(e,t){for(;--t&&kt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return ca(e,yc()+(t<6&&sr()==32&&kt()==32))}function mf(e){for(;kt();)switch(Le){case e:return ht;case 34:case 39:e!==34&&e!==39&&mf(Le);break;case 40:e===41&&mf(e);break;case 92:kt();break}return ht}function $3(e,t){for(;kt()&&e+Le!==57&&!(e+Le===84&&sr()===47););return"/*"+ca(t,ht-1)+"*"+qc(e===47?e:kt())}function W3(e){for(;!oa(sr());)kt();return ca(e,ht)}function z3(e){return Gk(_c("",null,null,null,[""],e=Bk(e),0,[0],e))}function _c(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=kt()){case 40:if(m!=108&&Ke(A,u-1)==58){ff(A+=te(bc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=bc(_);break;case 9:case 10:case 13:case 32:A+=H3(m);break;case 92:A+=V3(yc()-1,7);continue;case 47:switch(sr()){case 42:case 47:pc(K3($3(kt(),yc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=nr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(A=te(A,/\f/g,"")),f>0&&nr(A)-u&&pc(f>32?GC(A+";",n,r,u-1):GC(te(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(pc(k=BC(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)_c(A,t,k,k,C,o,u,s,x);else switch(p===99&&Ke(A,3)===110?100:p){case 100:case 108:case 109:case 115:_c(e,k,k,n&&pc(BC(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:_c(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+nr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&J3()==125)continue}switch(A+=qc(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(nr(A)-1)*y,y=1;break;case 64:sr()===45&&(A+=bc(kt())),p=sr(),d=u=nr(E=A+=W3(yc())),_++;break;case 45:m===45&&nr(A)==2&&(v=0)}}return o}function BC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Rf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ia(e,u+1,u=U3(v=a[m])),E=e;y<f;++y)(E=Fk(v>0?p[y]+" "+_:te(_,/&\f/g,p[y])))&&(c[b++]=E);return Mc(e,t,r,i===0?Pf:s,c,l,d)}function K3(e,t,r){return Mc(e,t,r,Uk,qc(G3()),ia(e,2,-2),0)}function GC(e,t,r,n){return Mc(e,t,r,Of,ia(e,0,n),ia(e,n+1,-1),n)}function Si(e,t){for(var r="",n=Rf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Y3(e,t,r,n){switch(e.type){case q3:if(e.children.length)break;case L3:case Of:return e.return=e.return||e.value;case Uk:return"";case Mk:return e.return=e.value+"{"+Si(e.children,n)+"}";case Pf:e.value=e.props.join(",")}return nr(r=Si(e.children,n))?e.return=e.value+"{"+r+"}":""}function X3(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 Q3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jk(e,t){switch(F3(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Ac+e+nt+e+e;case 6828:case 4268:return ee+e+nt+e+e;case 6165:return ee+e+nt+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return ee+e+nt+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+nt+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+nt+te(e,"shrink","negative")+e;case 5292:return ee+e+nt+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+nt+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$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(nr(e)-1-t>6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Ac+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ff(e,"stretch")?Jk(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,nr(e)-3-(~ff(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Ke(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+nt+e+e}return e}function HC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ef(e,t,r){var n=[],i=ra(e,n,r);return n.length<2?r:i+t(n)}function WC(e){if(e==="top"){let t=0;Hk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${VC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${VC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+$C)})}else if(e==="center"){let t=0;Vk.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+$C)})}}function Nn(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield Yo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),$r(w(h4,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Yo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let c=setTimeout(()=>{o(),n.delete(c)},a.duration);n.add(c)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&($r(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Yo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var hf,KC,Fe,Cc,wc,ir,Sc,Xo,gf,kr,Qo,YC,XC,vf,yf,bf,hee,tf,Ii,be,zp,fC,Zo,QC,Ne,mC,hC,gC,vC,yC,bC,_C,tk,Pe,Zt,er,Ar,_i,on,mc,F2,je,j2,ok,rt,Ic,Z,_f,wf,Sf,J2,ak,H2,xc,V2,Tc,Ei,ck,mt,De,Ci,aH,sH,cH,IC,lH,uH,dH,pH,fH,dk,mH,EC,hH,gH,vH,fk,uc,AC,yH,Ef,Oc,_H,SH,IH,hk,CC,Kp,kC,xC,rr,AH,gk,vk,TC,Rc,Af,yk,Cf,Nc,CH,kH,xH,TH,PH,cf,lf,bk,OH,kf,RH,PC,NH,DH,qH,UH,Yp,OC,Xp,Qp,MH,Zp,FH,jH,BH,GH,JH,HH,VH,RC,$H,WH,zH,NC,KH,YH,XH,DC,QH,ZH,e5,LC,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,qC,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,UC,I5,E5,A5,C5,k5,x5,T5,P5,O5,R5,N5,D5,L5,q5,U5,M5,F5,j5,B5,G5,J5,H5,V5,$5,W5,z5,K5,Y5,X5,Q5,Z5,e3,_k,wk,Sk,uf,t3,Ik,Ek,Ec,Yo,MC,i3,Dc,o3,Ck,kk,xk,c3,l3,u3,df,d3,Tk,Pk,Lc,xf,ki,FC,nn,Ok,On,f3,m3,h3,g3,v3,dc,Rk,Tf,Ae,b3,_3,S3,I3,Jt,A3,C3,Nk,Dk,Lk,qk,sn,k3,x3,T3,P3,O3,R3,N3,D3,nt,Ac,ee,Uk,Pf,Of,L3,Mk,q3,U3,qc,M3,Uc,Ai,jk,ht,Le,xi,Z3,e4,t4,JC,r4,n4,i4,o4,a4,s4,c4,l4,u4,d4,p4,f4,VC,$C,Hk,Vk,Tr,zC,m4,h4,gee,cr=T(()=>{"use strict";ri();hf=se(jb(),1),KC=se(Yb(),1),Fe=se(l_(),1),Cc=se(E_(),1),wc=se(N_(),1),ir=se(X_(),1);Ns();Ns();Sc=se(Dw(),1),Xo=se(Bw(),1),gf=se(nE(),1),kr=se(fE(),1),Qo=se(SE(),1),YC=se(TE(),1),XC=se($0(),1),vf=se(aA(),1),yf=se(IA(),1),bf=se(DA(),1);Hp();Hp();hee=se(XA(),1),tf=se(pC(),1),Zo=0,QC=[],Ne=q,mC=Ne.__b,hC=Ne.__r,gC=Ne.diffed,vC=Ne.__c,yC=Ne.unmount,bC=Ne.__;Ne.__b=function(e){be=null,mC&&mC(e)},Ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bC&&bC(e,t)},Ne.__r=function(e){var t,r,n;hC&&hC(e),Ii=0;var i=(be=e.__c).__H;i&&(zp===be?(i.__h=[],be.__h=[],(0,Fe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Fe.default)(r=i.__h).call(r,fc),(0,Fe.default)(n=i.__h).call(n,rf),i.__h=[],Ii=0)),zp=be},Ne.diffed=function(e){var t;gC&&gC(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(QC.push(r)!==1&&fC===Ne.requestAnimationFrame||((fC=Ne.requestAnimationFrame)||L2)(D2)),(0,Fe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),zp=be=null},Ne.__c=function(e,t){(0,wc.default)(t).call(t,function(r){try{var n,i;(0,Fe.default)(n=r.__h).call(n,fc),r.__h=(0,hf.default)(i=r.__h).call(i,function(o){return!o.__||rf(o)})}catch(o){(0,wc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ne.__e(o,r.__v)}}),vC&&vC(e,t)},Ne.unmount=function(e){var t;yC&&yC(e);var r,n=e.__c;n&&n.__H&&((0,Fe.default)(t=n.__H.__).call(t,function(i){try{fc(i)}catch(o){r=o}}),n.__H=void 0,r&&Ne.__e(r,n.__v))};_C=typeof requestAnimationFrame=="function";tk={exports:{}},Pe=tk.exports={};(function(){try{typeof ir.default=="function"?Zt=ir.default:Zt=nf}catch(e){Zt=nf}try{typeof clearTimeout=="function"?er=clearTimeout:er=of}catch(e){er=of}})();Ar=[],_i=!1,mc=-1;Pe.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];Ar.push(new ik(e,t)),Ar.length===1&&!_i&&rk(nk)};ik.prototype.run=function(){this.fun.apply(null,this.array)};Pe.title="browser";Pe.browser=!0;Pe.env={};Pe.argv=[];Pe.version="";Pe.versions={};Pe.on=xr;Pe.addListener=xr;Pe.once=xr;Pe.off=xr;Pe.removeListener=xr;Pe.removeAllListeners=xr;Pe.emit=xr;Pe.prependListener=xr;Pe.prependOnceListener=xr;Pe.listeners=function(e){return[]};Pe.binding=function(e){throw new Error("process.binding is not supported")};Pe.cwd=function(){return"/"};Pe.chdir=function(e){throw new Error("process.chdir is not supported")};Pe.umask=function(){return 0};F2=tk.exports,je=q2(F2),j2=Sc.default||void 0||self;ok=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,Fe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(G2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=B2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Fe.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}(),rt="-ms-",Ic="-moz-",Z="-webkit-",_f="comm",wf="rule",Sf="decl",J2="@import",ak="@keyframes",H2=Math.abs,xc=String.fromCharCode,V2=vf.default;Tc=1,Ei=1,ck=0,mt=0,De=0,Ci="";aH=function(e,t,r){for(var n=0,i=0;n=i,i=ar(),n===38&&i===12&&(t[r]=1),!ta(i);)Ct();return aa(e,mt)},sH=function(e,t){var r=-1,n=44;do switch(ta(n)){case 0:n===38&&ar()===12&&(t[r]=1),e[r]+=aH(mt-1,t,r);break;case 2:e[r]+=gc(n);break;case 4:if(n===44){e[++r]=ar()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=xc(n)}while(n=Ct());return e},cH=function(e,t){return uk(sH(lk(e),t))},IC=new gf.default,lH=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&&!IC.get(r))&&!n){IC.set(e,!0);for(var i=[],o=cH(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},uH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},dH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",pH=function(e){var t;return e.type==="comm"&&(0,kr.default)(t=e.children).call(t,dH)>-1},fH=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 c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(pH(c))return;break}}(0,Fe.default)(i).call(i,function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},dk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},mH=function(e,t){for(var r=e-1;r>=0;r--)if(!dk(t[r]))return!0;return!1},EC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},hH=function(e,t,r){dk(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."),EC(e)):mH(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),EC(e)))};gH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Sf:e.return=pk(e.value,e.length);break;case ak:return wi([Wo(e,{value:ie(e.value,"@","@"+Z)})],n);case wf:if(e.length)return z2(e.props,function(i){switch(W2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Wo(e,{props:[ie(i,/:(read-\w+)/,":"+Ic+"$1")]})],n);case"::placeholder":return wi([Wo(e,{props:[ie(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Wo(e,{props:[ie(i,/:(plac\w+)/,":"+Ic+"$1")]}),Wo(e,{props:[ie(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},vH=[gH],fk=function(e){var t=e.key;if(je.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,Fe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,kr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||vH;if(je.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,Fe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[lH,uH];je.env.NODE_ENV!=="production"&&c.push(fH({get compat(){return f.compat}}),hH);{var l,d=[nH,je.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==_f&&l.insert(m.value+"{}"))}:oH(function(m){l.insert(m)})],u=iH((0,Cc.default)(c).call(c,n,d)),p=function(m){return
|
|
24
|
-
`),r=0;r<t.length;r++){var n=kH(t[r]);if(n){if(xH.has(n))break;if(/^[A-Z]/.test(n))return TH(n)}}},cf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lf="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",bk=function(e,t){var r,n;if(je.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,kr.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)Rc.call(t,o)&&(i[o]=t[o]);if(i[cf]=e,je.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,kr.default)(n=t.css.name).call(n,"-")===-1)){var a=PH(new Error().stack);a&&(i[lf]=a)}return i},OH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ef(t,r,n),vk(function(){return Oc(t,r,n)}),null},kf=Cf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[cf],a=[i],s="";typeof e.className=="string"?s=ra(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=an(a,void 0,
|
|
21
|
+
`;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return g(this,null,function*(){let d=l instanceof URL?l.href:l,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 c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,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 mv=T(()=>{"use strict";$()});var hv=T(()=>{"use strict"});var gv=T(()=>{"use strict";R();Iu()});var vv=T(()=>{"use strict";$()});var bn,hs=T(()=>{"use strict";hv();gv();$();vv();R();bn=new Yt});function yr(e,t){for(var r in t)e[r]=t[r];return e}function Wu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function et(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?bs.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 vs(e,a,n,i,null)}function vs(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?++wv:i,__i:-1,__u:0};return i==null&&q.vnode!=null&&q.vnode(o),o}function ho(){return{current:null}}function $e(e){return e.children}function Et(e,t){this.props=e,this.context=t}function ei(e,t){if(t==null)return e.__?ei(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"?ei(e):null}function kv(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 kv(e)}}function Hu(e){(!e.__d&&(e.__d=!0)&&_n.push(e)&&!ys.__r++||yv!==q.debounceRendering)&&((yv=q.debounceRendering)||Sv)(ys)}function ys(){for(var e,t,r,n,i,o,a,s=1;_n.length;)_n.length>s&&_n.sort(Iv),e=_n.shift(),s=_n.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=yr({},n)).__v=n.__v+1,q.vnode&&q.vnode(r),zu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ei(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Pv(o,r,a),r.__e!=i&&kv(r)));ys.__r=0}function xv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||Cv,_=t.length;for(c=_1(r,t,y,c,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?fo:y[f.__i]||fo,f.__i=u,b=zu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ku(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?c=Tv(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=v,c}function _1(e,t,r,n,i){var o,a,s,c,l,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"?(c=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?vs(null,a,null,null,null):mo(a)?vs($e,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?vs(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=w1(a,r,c,u))!==-1&&(u--,(s=r[l])&&(s.__u|=2)),s==null||s.__v===null?(l==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?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=ei(s)),Rv(s,s));return n}function Tv(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=Tv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ei(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function go(e,t){return t=t||[],e==null||typeof e=="boolean"||(mo(e)?e.some(function(r){go(r,t)}):t.push(e)),t}function w1(e,t,r,n){var i,o,a=e.key,s=e.type,c=t[r];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return r;if(n>(c!=null&&!(2&c.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function bv(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||b1.test(t)?r:r+"px"}function gs(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||bv(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||bv(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Ev,"$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=$u,e.addEventListener(t,o?Ju:Gu,o)):e.removeEventListener(t,o?Ju:Gu,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 _v(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=$u++;else if(t.u<r.t)return;return r(q.event?q.event(t):t)}}}function zu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,_,E,C,x,k,A,H,ue,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=q.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,_="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],C=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new O(y,C):(t.__c=u=new Et(y,C),u.constructor=O,u.render=I1),E&&E.sub(u),u.props=y,u.state||(u.state={}),u.context=C,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=yr({},u.__s)),yr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&O.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=C,u.props=y,u.__P=e,u.__e=!1,k=q.__r,A=0,_){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),H=0;H<u._sb.length;H++)u.__h.push(u._sb[H]);u._sb=[]}else do u.__d=!1,k&&k(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=yr(yr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),ue=d,d!=null&&d.type===$e&&d.key==null&&(ue=Ov(d.props.children)),s=xv(e,mo(ue)?ue:[ue],t,r,n,i,o,a,s,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(F){if(t.__v=null,c||o!=null)if(F.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(N=o.length;N--;)Wu(o[N]);else t.__e=r.__e,t.__k=r.__k;q.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=S1(r.__e,t,r,n,i,o,a,c,l);return(d=q.diffed)&&d(t),128&t.__u?void 0:s}function Pv(e,t,r){for(var n=0;n<r.length;n++)Ku(r[n],r[++n],r[++n]);q.__c&&q.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){q.__e(o,i.__v)}})}function Ov(e){return typeof e!="object"||e==null?e:mo(e)?e.map(Ov):yr({},e)}function S1(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(q.__m&&q.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&bs.call(e.childNodes),b=r.props||fo,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;gs(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||gs(e,l,f,b[l],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),xv(t.type==="template"?e.content:e,mo(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ei(r,0),s,c),o!=null)for(l=o.length;l--;)Wu(o[l]);s||(l="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||_=="progress"&&!m||_=="option"&&m!==b[l])&&gs(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&gs(e,l,v,b[l],i))}return e}function Ku(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){q.__e(i,r)}}function Rv(e,t,r){var n,i;if(q.unmount&&q.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ku(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){q.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Rv(n[i],t,r||typeof e.type!="function");r||Wu(e.__e),e.__c=e.__=e.__e=void 0}function I1(e,t,r){return this.constructor(e,r)}function $r(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),q.__&&q.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],zu(t,e=(!n&&r||t).__k=et($e,null,[e]),i||fo,fo,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?bs.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Pv(o,e,a)}function wn(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,Hu(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"+Av++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var bs,q,wv,Vu,_n,yv,Sv,Iv,Ev,$u,Gu,Ju,Av,fo,Cv,b1,mo,ti=T(()=>{fo={},Cv=[],b1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mo=Array.isArray;bs=Cv.slice,q={__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}},wv=0,Vu=function(e){return e!=null&&e.constructor==null},Et.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=yr({},this.state),typeof e=="function"&&(e=e(yr({},r),this.props)),e&&yr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hu(this))},Et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hu(this))},Et.prototype.render=$e,_n=[],Sv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Iv=function(e,t){return e.__v.__b-t.__v.__b},ys.__r=0,Ev=/(PointerCapture)$|Capture$/i,$u=0,Gu=_v(!1),Ju=_v(!0),Av=0});var Ie=h((G8,Nv)=>{"use strict";Nv.exports=function(e){try{return!!e()}catch(t){return!0}}});var ri=h((J8,Dv)=>{"use strict";var E1=Ie();Dv.exports=!E1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Re=h((H8,Uv)=>{"use strict";var Lv=ri(),qv=Function.prototype,Yu=qv.call,A1=Lv&&qv.bind.bind(Yu,Yu);Uv.exports=Lv?A1:function(e){return function(){return Yu.apply(e,arguments)}}});var ct=h((V8,Mv)=>{"use strict";var C1=Re();Mv.exports=C1({}.isPrototypeOf)});var Ee=h((Xu,Fv)=>{"use strict";var vo=function(e){return e&&e.Math===Math&&e};Fv.exports=vo(typeof globalThis=="object"&&globalThis)||vo(typeof window=="object"&&window)||vo(typeof self=="object"&&self)||vo(typeof global=="object"&&global)||vo(typeof Xu=="object"&&Xu)||function(){return this}()||Function("return this")()});var Qu=h(($8,Jv)=>{"use strict";var k1=ri(),Gv=Function.prototype,jv=Gv.apply,Bv=Gv.call;Jv.exports=typeof Reflect=="object"&&Reflect.apply||(k1?Bv.bind(jv):function(){return Bv.apply(jv,arguments)})});var br=h((W8,Vv)=>{"use strict";var Hv=Re(),x1=Hv({}.toString),T1=Hv("".slice);Vv.exports=function(e){return T1(x1(e),8,-1)}});var yo=h((z8,$v)=>{"use strict";var P1=br(),O1=Re();$v.exports=function(e){if(P1(e)==="Function")return O1(e)}});var We=h((K8,Wv)=>{"use strict";var Zu=typeof document=="object"&&document.all;Wv.exports=typeof Zu=="undefined"&&Zu!==void 0?function(e){return typeof e=="function"||e===Zu}:function(e){return typeof e=="function"}});var lt=h((Y8,zv)=>{"use strict";var R1=Ie();zv.exports=!R1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var jt=h((X8,Kv)=>{"use strict";var N1=ri(),_s=Function.prototype.call;Kv.exports=N1?_s.bind(_s):function(){return _s.apply(_s,arguments)}});var ed=h(Qv=>{"use strict";var Yv={}.propertyIsEnumerable,Xv=Object.getOwnPropertyDescriptor,D1=Xv&&!Yv.call({1:2},1);Qv.f=D1?function(t){var r=Xv(this,t);return!!r&&r.enumerable}:Yv});var bo=h((Z8,Zv)=>{"use strict";Zv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var ws=h((e7,ey)=>{"use strict";var L1=Re(),q1=Ie(),U1=br(),td=Object,M1=L1("".split);ey.exports=q1(function(){return!td("z").propertyIsEnumerable(0)})?function(e){return U1(e)==="String"?M1(e,""):td(e)}:td});var Sn=h((t7,ty)=>{"use strict";ty.exports=function(e){return e==null}});var In=h((r7,ry)=>{"use strict";var F1=Sn(),j1=TypeError;ry.exports=function(e){if(F1(e))throw new j1("Can't call method on "+e);return e}});var Wr=h((n7,ny)=>{"use strict";var B1=ws(),G1=In();ny.exports=function(e){return B1(G1(e))}});var Me=h((i7,iy)=>{"use strict";var J1=We();iy.exports=function(e){return typeof e=="object"?e!==null:J1(e)}});var Xt=h((o7,oy)=>{"use strict";oy.exports={}});var ni=h((a7,sy)=>{"use strict";var rd=Xt(),nd=Ee(),H1=We(),ay=function(e){return H1(e)?e:void 0};sy.exports=function(e,t){return arguments.length<2?ay(rd[e])||ay(nd[e]):rd[e]&&rd[e][t]||nd[e]&&nd[e][t]}});var Ss=h((s7,uy)=>{"use strict";var V1=Ee(),cy=V1.navigator,ly=cy&&cy.userAgent;uy.exports=ly?String(ly):""});var Es=h((c7,gy)=>{"use strict";var hy=Ee(),id=Ss(),dy=hy.process,py=hy.Deno,fy=dy&&dy.versions||py&&py.version,my=fy&&fy.v8,Bt,Is;my&&(Bt=my.split("."),Is=Bt[0]>0&&Bt[0]<4?1:+(Bt[0]+Bt[1]));!Is&&id&&(Bt=id.match(/Edge\/(\d+)/),(!Bt||Bt[1]>=74)&&(Bt=id.match(/Chrome\/(\d+)/),Bt&&(Is=+Bt[1])));gy.exports=Is});var od=h((l7,yy)=>{"use strict";var vy=Es(),$1=Ie(),W1=Ee(),z1=W1.String;yy.exports=!!Object.getOwnPropertySymbols&&!$1(function(){var e=Symbol("symbol detection");return!z1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vy&&vy<41})});var ad=h((u7,by)=>{"use strict";var K1=od();by.exports=K1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var sd=h((d7,_y)=>{"use strict";var Y1=ni(),X1=We(),Q1=ct(),Z1=ad(),eN=Object;_y.exports=Z1?function(e){return typeof e=="symbol"}:function(e){var t=Y1("Symbol");return X1(t)&&Q1(t.prototype,eN(e))}});var _o=h((p7,wy)=>{"use strict";var tN=String;wy.exports=function(e){try{return tN(e)}catch(t){return"Object"}}});var En=h((f7,Sy)=>{"use strict";var rN=We(),nN=_o(),iN=TypeError;Sy.exports=function(e){if(rN(e))return e;throw new iN(nN(e)+" is not a function")}});var As=h((m7,Iy)=>{"use strict";var oN=En(),aN=Sn();Iy.exports=function(e,t){var r=e[t];return aN(r)?void 0:oN(r)}});var Ay=h((h7,Ey)=>{"use strict";var cd=jt(),ld=We(),ud=Me(),sN=TypeError;Ey.exports=function(e,t){var r,n;if(t==="string"&&ld(r=e.toString)&&!ud(n=cd(r,e))||ld(r=e.valueOf)&&!ud(n=cd(r,e))||t!=="string"&&ld(r=e.toString)&&!ud(n=cd(r,e)))return n;throw new sN("Can't convert object to primitive value")}});var ii=h((g7,Cy)=>{"use strict";Cy.exports=!0});var Ty=h((v7,xy)=>{"use strict";var ky=Ee(),cN=Object.defineProperty;xy.exports=function(e,t){try{cN(ky,e,{value:t,configurable:!0,writable:!0})}catch(r){ky[e]=t}return t}});var wo=h((y7,Ry)=>{"use strict";var lN=ii(),uN=Ee(),dN=Ty(),Py="__core-js_shared__",Oy=Ry.exports=uN[Py]||dN(Py,{});(Oy.versions||(Oy.versions=[])).push({version:"3.41.0",mode:lN?"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 dd=h((b7,Dy)=>{"use strict";var Ny=wo();Dy.exports=function(e,t){return Ny[e]||(Ny[e]=t||{})}});var oi=h((_7,Ly)=>{"use strict";var pN=In(),fN=Object;Ly.exports=function(e){return fN(pN(e))}});var At=h((w7,qy)=>{"use strict";var mN=Re(),hN=oi(),gN=mN({}.hasOwnProperty);qy.exports=Object.hasOwn||function(t,r){return gN(hN(t),r)}});var Cs=h((S7,Uy)=>{"use strict";var vN=Re(),yN=0,bN=Math.random(),_N=vN(1 .toString);Uy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_N(++yN+bN,36)}});var tt=h((I7,Fy)=>{"use strict";var wN=Ee(),SN=dd(),My=At(),IN=Cs(),EN=od(),AN=ad(),ai=wN.Symbol,pd=SN("wks"),CN=AN?ai.for||ai:ai&&ai.withoutSetter||IN;Fy.exports=function(e){return My(pd,e)||(pd[e]=EN&&My(ai,e)?ai[e]:CN("Symbol."+e)),pd[e]}});var Jy=h((E7,Gy)=>{"use strict";var kN=jt(),jy=Me(),By=sd(),xN=As(),TN=Ay(),PN=tt(),ON=TypeError,RN=PN("toPrimitive");Gy.exports=function(e,t){if(!jy(e)||By(e))return e;var r=xN(e,RN),n;if(r){if(t===void 0&&(t="default"),n=kN(r,e,t),!jy(n)||By(n))return n;throw new ON("Can't convert object to primitive value")}return t===void 0&&(t="number"),TN(e,t)}});var fd=h((A7,Hy)=>{"use strict";var NN=Jy(),DN=sd();Hy.exports=function(e){var t=NN(e,"string");return DN(t)?t:t+""}});var hd=h((C7,$y)=>{"use strict";var LN=Ee(),Vy=Me(),md=LN.document,qN=Vy(md)&&Vy(md.createElement);$y.exports=function(e){return qN?md.createElement(e):{}}});var gd=h((k7,Wy)=>{"use strict";var UN=lt(),MN=Ie(),FN=hd();Wy.exports=!UN&&!MN(function(){return Object.defineProperty(FN("div"),"a",{get:function(){return 7}}).a!==7})});var vd=h(Ky=>{"use strict";var jN=lt(),BN=jt(),GN=ed(),JN=bo(),HN=Wr(),VN=fd(),$N=At(),WN=gd(),zy=Object.getOwnPropertyDescriptor;Ky.f=jN?zy:function(t,r){if(t=HN(t),r=VN(r),WN)try{return zy(t,r)}catch(n){}if($N(t,r))return JN(!BN(GN.f,t,r),t[r])}});var Xy=h((T7,Yy)=>{"use strict";var zN=Ie(),KN=We(),YN=/#|\.prototype\./,So=function(e,t){var r=QN[XN(e)];return r===eD?!0:r===ZN?!1:KN(t)?zN(t):!!t},XN=So.normalize=function(e){return String(e).replace(YN,".").toLowerCase()},QN=So.data={},ZN=So.NATIVE="N",eD=So.POLYFILL="P";Yy.exports=So});var Io=h((P7,Zy)=>{"use strict";var Qy=yo(),tD=En(),rD=ri(),nD=Qy(Qy.bind);Zy.exports=function(e,t){return tD(e),t===void 0?e:rD?nD(e,t):function(){return e.apply(t,arguments)}}});var yd=h((O7,eb)=>{"use strict";var iD=lt(),oD=Ie();eb.exports=iD&&oD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var _r=h((R7,tb)=>{"use strict";var aD=Me(),sD=String,cD=TypeError;tb.exports=function(e){if(aD(e))return e;throw new cD(sD(e)+" is not an object")}});var wr=h(nb=>{"use strict";var lD=lt(),uD=gd(),dD=yd(),ks=_r(),rb=fd(),pD=TypeError,bd=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,_d="enumerable",wd="configurable",Sd="writable";nb.f=lD?dD?function(t,r,n){if(ks(t),r=rb(r),ks(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Sd in n&&!n[Sd]){var i=fD(t,r);i&&i[Sd]&&(t[r]=n.value,n={configurable:wd in n?n[wd]:i[wd],enumerable:_d in n?n[_d]:i[_d],writable:!1})}return bd(t,r,n)}:bd:function(t,r,n){if(ks(t),r=rb(r),ks(n),uD)try{return bd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new pD("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var An=h((D7,ib)=>{"use strict";var mD=lt(),hD=wr(),gD=bo();ib.exports=mD?function(e,t,r){return hD.f(e,t,gD(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((L7,ab)=>{"use strict";var Eo=Ee(),vD=Qu(),yD=yo(),bD=We(),_D=vd().f,wD=Xy(),si=Xt(),SD=Io(),ci=An(),ob=At();wo();var ID=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 vD(e,this,arguments)};return t.prototype=e.prototype,t};ab.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Eo:i?Eo[r]:Eo[r]&&Eo[r].prototype,s=n?si:si[r]||ci(si,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=wD(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&ob(a,p),m=s[p],d&&(e.dontCallGetSet?(y=_D(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=SD(f,Eo):e.wrap&&d?b=ID(f):o&&bD(f)?b=yD(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&ci(b,"sham",!0),ci(s,p,b),o&&(u=r+"Prototype",ob(si,u)||ci(si,u,{}),ci(si[u],p,f),e.real&&c&&(l||!c[p])&&ci(c,p,f)))}});var cb=h((q7,sb)=>{"use strict";var ED=Math.ceil,AD=Math.floor;sb.exports=Math.trunc||function(t){var r=+t;return(r>0?AD:ED)(r)}});var Ao=h((U7,lb)=>{"use strict";var CD=cb();lb.exports=function(e){var t=+e;return t!==t||t===0?0:CD(t)}});var Id=h((M7,ub)=>{"use strict";var kD=Ao(),xD=Math.min;ub.exports=function(e){var t=kD(e);return t>0?xD(t,9007199254740991):0}});var li=h((F7,db)=>{"use strict";var TD=Id();db.exports=function(e){return TD(e.length)}});var Co=h((j7,pb)=>{"use strict";var PD=br();pb.exports=Array.isArray||function(t){return PD(t)==="Array"}});var xs=h((B7,mb)=>{"use strict";var OD=tt(),RD=OD("toStringTag"),fb={};fb[RD]="z";mb.exports=String(fb)==="[object z]"});var ui=h((G7,hb)=>{"use strict";var ND=xs(),DD=We(),Ts=br(),LD=tt(),qD=LD("toStringTag"),UD=Object,MD=Ts(function(){return arguments}())==="Arguments",FD=function(e,t){try{return e[t]}catch(r){}};hb.exports=ND?Ts:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=FD(t=UD(e),qD))=="string"?r:MD?Ts(t):(n=Ts(t))==="Object"&&DD(t.callee)?"Arguments":n}});var vb=h((J7,gb)=>{"use strict";var jD=Re(),BD=We(),Ed=wo(),GD=jD(Function.toString);BD(Ed.inspectSource)||(Ed.inspectSource=function(e){return GD(e)});gb.exports=Ed.inspectSource});var Cd=h((H7,Sb)=>{"use strict";var JD=Re(),HD=Ie(),yb=We(),VD=ui(),$D=ni(),WD=vb(),bb=function(){},_b=$D("Reflect","construct"),Ad=/^\s*(?:class|function)\b/,zD=JD(Ad.exec),KD=!Ad.test(bb),ko=function(t){if(!yb(t))return!1;try{return _b(bb,[],t),!0}catch(r){return!1}},wb=function(t){if(!yb(t))return!1;switch(VD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return KD||!!zD(Ad,WD(t))}catch(r){return!0}};wb.sham=!0;Sb.exports=!_b||HD(function(){var e;return ko(ko.call)||!ko(Object)||!ko(function(){e=!0})||e})?wb:ko});var Cb=h((V7,Ab)=>{"use strict";var Ib=Co(),YD=Cd(),XD=Me(),QD=tt(),ZD=QD("species"),Eb=Array;Ab.exports=function(e){var t;return Ib(e)&&(t=e.constructor,YD(t)&&(t===Eb||Ib(t.prototype))?t=void 0:XD(t)&&(t=t[ZD],t===null&&(t=void 0))),t===void 0?Eb:t}});var kd=h(($7,kb)=>{"use strict";var eL=Cb();kb.exports=function(e,t){return new(eL(e))(t===0?0:t)}});var Kr=h((W7,Tb)=>{"use strict";var tL=Io(),rL=Re(),nL=ws(),iL=oi(),oL=li(),aL=kd(),xb=rL([].push),zr=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(c,l,d,u){for(var p=iL(c),f=nL(p),m=oL(f),v=tL(l,d),b=0,y=u||aL,_=t?y(c,m):r||a?y(c,0):void 0,E,C;m>b;b++)if((s||b in f)&&(E=f[b],C=v(E,b,p),e))if(t)_[b]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:xb(_,E)}else switch(e){case 4:return!1;case 7:xb(_,E)}return o?-1:n||i?i:_}};Tb.exports={forEach:zr(0),map:zr(1),filter:zr(2),some:zr(3),every:zr(4),find:zr(5),findIndex:zr(6),filterReject:zr(7)}});var xo=h((z7,Pb)=>{"use strict";var sL=Ie(),cL=tt(),lL=Es(),uL=cL("species");Pb.exports=function(e){return lL>=51||!sL(function(){var t=[],r=t.constructor={};return r[uL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ob=h(()=>{"use strict";var dL=ae(),pL=Kr().filter,fL=xo(),mL=fL("filter");dL({target:"Array",proto:!0,forced:!mL},{filter:function(t){return pL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Nt=h((X7,Rb)=>{"use strict";var hL=Ee(),gL=Xt();Rb.exports=function(e,t){var r=gL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=hL[e],o=i&&i.prototype;return o&&o[t]}});var Db=h((Q7,Nb)=>{"use strict";Ob();var vL=Nt();Nb.exports=vL("Array","filter")});var qb=h((Z7,Lb)=>{"use strict";var yL=ct(),bL=Db(),xd=Array.prototype;Lb.exports=function(e){var t=e.filter;return e===xd||yL(xd,e)&&t===xd.filter?bL:t}});var Mb=h((eY,Ub)=>{"use strict";var _L=qb();Ub.exports=_L});var jb=h((tY,Fb)=>{Fb.exports=Mb()});var To=h((rY,Bb)=>{"use strict";var wL=Ie();Bb.exports=function(e,t){var r=[][e];return!!r&&wL(function(){r.call(null,t||function(){return 1},1)})}});var Gb=h(()=>{"use strict";var SL=ae(),IL=Kr().every,EL=To(),AL=EL("every");SL({target:"Array",proto:!0,forced:!AL},{every:function(t){return IL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Hb=h((oY,Jb)=>{"use strict";Gb();var CL=Nt();Jb.exports=CL("Array","every")});var $b=h((aY,Vb)=>{"use strict";var kL=ct(),xL=Hb(),Td=Array.prototype;Vb.exports=function(e){var t=e.every;return e===Td||kL(Td,e)&&t===Td.every?xL:t}});var zb=h((sY,Wb)=>{"use strict";var TL=$b();Wb.exports=TL});var Yb=h((cY,Kb)=>{Kb.exports=zb()});var Qb=h((lY,Xb)=>{"use strict";var PL=Kr().forEach,OL=To(),RL=OL("forEach");Xb.exports=RL?[].forEach:function(t){return PL(this,t,arguments.length>1?arguments[1]:void 0)}});var e_=h(()=>{"use strict";var NL=ae(),Zb=Qb();NL({target:"Array",proto:!0,forced:[].forEach!==Zb},{forEach:Zb})});var r_=h((pY,t_)=>{"use strict";e_();var DL=Nt();t_.exports=DL("Array","forEach")});var i_=h((fY,n_)=>{"use strict";var LL=r_();n_.exports=LL});var o_=h(()=>{});var s_=h((gY,a_)=>{"use strict";var qL=ui(),UL=At(),ML=ct(),FL=i_();o_();var Pd=Array.prototype,jL={DOMTokenList:!0,NodeList:!0};a_.exports=function(e){var t=e.forEach;return e===Pd||ML(Pd,e)&&t===Pd.forEach||UL(jL,qL(e))?FL:t}});var l_=h((vY,c_)=>{c_.exports=s_()});var d_=h((yY,u_)=>{"use strict";var BL=TypeError,GL=9007199254740991;u_.exports=function(e){if(e>GL)throw BL("Maximum allowed index exceeded");return e}});var Od=h((bY,p_)=>{"use strict";var JL=lt(),HL=wr(),VL=bo();p_.exports=function(e,t,r){JL?HL.f(e,t,VL(0,r)):e[t]=r}});var g_=h(()=>{"use strict";var $L=ae(),WL=Ie(),zL=Co(),KL=Me(),YL=oi(),XL=li(),f_=d_(),m_=Od(),QL=kd(),ZL=xo(),eq=tt(),tq=Es(),h_=eq("isConcatSpreadable"),rq=tq>=51||!WL(function(){var e=[];return e[h_]=!1,e.concat()[0]!==e}),nq=function(e){if(!KL(e))return!1;var t=e[h_];return t!==void 0?!!t:zL(e)},iq=!rq||!ZL("concat");$L({target:"Array",proto:!0,arity:1,forced:iq},{concat:function(t){var r=YL(this),n=QL(r,0),i=0,o,a,s,c,l;for(o=-1,s=arguments.length;o<s;o++)if(l=o===-1?r:arguments[o],nq(l))for(c=XL(l),f_(i+c),a=0;a<c;a++,i++)a in l&&m_(n,i,l[a]);else f_(i+1),m_(n,i++,l);return n.length=i,n}})});var y_=h((SY,v_)=>{"use strict";g_();var oq=Nt();v_.exports=oq("Array","concat")});var __=h((IY,b_)=>{"use strict";var aq=ct(),sq=y_(),Rd=Array.prototype;b_.exports=function(e){var t=e.concat;return e===Rd||aq(Rd,e)&&t===Rd.concat?sq:t}});var S_=h((EY,w_)=>{"use strict";var cq=__();w_.exports=cq});var E_=h((AY,I_)=>{I_.exports=S_()});var A_=h(()=>{"use strict";var lq=ae(),uq=Kr().some,dq=To(),pq=dq("some");lq({target:"Array",proto:!0,forced:!pq},{some:function(t){return uq(this,t,arguments.length>1?arguments[1]:void 0)}})});var k_=h((xY,C_)=>{"use strict";A_();var fq=Nt();C_.exports=fq("Array","some")});var T_=h((TY,x_)=>{"use strict";var mq=ct(),hq=k_(),Nd=Array.prototype;x_.exports=function(e){var t=e.some;return e===Nd||mq(Nd,e)&&t===Nd.some?hq:t}});var O_=h((PY,P_)=>{"use strict";var gq=T_();P_.exports=gq});var N_=h((OY,R_)=>{R_.exports=O_()});var L_=h((RY,D_)=>{"use strict";var Po=Ee(),vq=Ss(),yq=br(),Ps=function(e){return vq.slice(0,e.length)===e};D_.exports=function(){return Ps("Bun/")?"BUN":Ps("Cloudflare-Workers")?"CLOUDFLARE":Ps("Deno/")?"DENO":Ps("Node.js/")?"NODE":Po.Bun&&typeof Bun.version=="string"?"BUN":Po.Deno&&typeof Deno.version=="object"?"DENO":yq(Po.process)==="process"?"NODE":Po.window&&Po.document?"BROWSER":"REST"}()});var Oo=h((NY,q_)=>{"use strict";var bq=Re();q_.exports=bq([].slice)});var M_=h((DY,U_)=>{"use strict";var _q=TypeError;U_.exports=function(e,t){if(e<t)throw new _q("Not enough arguments");return e}});var Dd=h((LY,j_)=>{"use strict";var F_=Ee(),wq=Qu(),Sq=We(),Iq=L_(),Eq=Ss(),Aq=Oo(),Cq=M_(),kq=F_.Function,xq=/MSIE .\./.test(Eq)||Iq==="BUN"&&function(){var e=F_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();j_.exports=function(e,t){var r=t?2:1;return xq?function(n,i){var o=Cq(arguments.length,1)>r,a=Sq(n)?n:kq(n),s=o?Aq(arguments,r):[],c=o?function(){wq(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var J_=h(()=>{"use strict";var Tq=ae(),G_=Ee(),Pq=Dd(),B_=Pq(G_.setInterval,!0);Tq({global:!0,bind:!0,forced:G_.setInterval!==B_},{setInterval:B_})});var $_=h(()=>{"use strict";var Oq=ae(),V_=Ee(),Rq=Dd(),H_=Rq(V_.setTimeout,!0);Oq({global:!0,bind:!0,forced:V_.setTimeout!==H_},{setTimeout:H_})});var W_=h(()=>{"use strict";J_();$_()});var K_=h((GY,z_)=>{"use strict";W_();var Nq=Xt();z_.exports=Nq.setTimeout});var X_=h((JY,Y_)=>{Y_.exports=K_()});function No(e,t){Te.__h&&Te.__h(pe,e,Ro||t),Ro=0;var r=pe.__H||(pe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Sr(e){return Ro=1,sw(cw,e)}function sw(e,t,r){var n=No(Cn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):cw(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=pe,!pe.__f)){var i=function(s,c,l){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,c,l);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,c,l)||u};pe.__f=!0;var o=pe.shouldComponentUpdate,a=pe.componentWillUpdate;pe.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},pe.shouldComponentUpdate=i}return n.__N||n.__}function Yr(e,t){var r=No(Cn++,3);!Te.__s&&Ud(r.__H,t)&&(r.__=e,r.u=t,pe.__H.__h.push(r))}function di(e,t){var r=No(Cn++,4);!Te.__s&&Ud(r.__H,t)&&(r.__=e,r.u=t,pe.__h.push(r))}function pi(e){return Ro=5,Do(function(){return{current:e}},[])}function Do(e,t){var r=No(Cn++,7);return Ud(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Xr(e,t){return Ro=8,Do(function(){return e},t)}function fi(e){var t=pe.context[e.__c],r=No(Cn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(pe)),t.props.value):e.__}function Dq(){for(var e;e=aw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Os),e.__H.__h.forEach(qd),e.__H.__h=[]}catch(t){e.__H.__h=[],Te.__e(t,e.__v)}}function Lq(e){var t,r=function(){clearTimeout(n),ow&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ow&&(t=requestAnimationFrame(r))}function Os(e){var t=pe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pe=t}function qd(e){var t=pe;e.__c=e.__(),pe=t}function Ud(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function cw(e,t){return typeof t=="function"?t(e):t}var Cn,pe,Ld,Q_,Ro,aw,Te,Z_,ew,tw,rw,nw,iw,ow,Md=T(()=>{ti();Ro=0,aw=[],Te=q,Z_=Te.__b,ew=Te.__r,tw=Te.diffed,rw=Te.__c,nw=Te.unmount,iw=Te.__;Te.__b=function(e){pe=null,Z_&&Z_(e)},Te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),iw&&iw(e,t)},Te.__r=function(e){ew&&ew(e),Cn=0;var t=(pe=e.__c).__H;t&&(Ld===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Os),t.__h.forEach(qd),t.__h=[],Cn=0)),Ld=pe},Te.diffed=function(e){tw&&tw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(aw.push(t)!==1&&Q_===Te.requestAnimationFrame||((Q_=Te.requestAnimationFrame)||Lq)(Dq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ld=pe=null},Te.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Os),r.__h=r.__h.filter(function(n){return!n.__||qd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Te.__e(n,r.__v)}}),rw&&rw(e,t)},Te.unmount=function(e){nw&&nw(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Os(n)}catch(i){t=i}}),r.__H=void 0,t&&Te.__e(t,r.__v))};ow=typeof requestAnimationFrame=="function"});function vw(e,t){for(var r in t)e[r]=t[r];return e}function jd(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 lw(e,t){this.props=e,this.context=t}function Gd(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:jd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,et(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Jd(e){function t(r){var n=vw({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=qq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function yw(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=vw({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return yw(n,t,r)})),e}function bw(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return bw(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 Fd(){this.__u=0,this.o=null,this.__b=null}function _w(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Rs(){this.i=null,this.l=null}function Qt(e,t,r){return t.__k==null&&(t.textContent=""),$r(e,t),typeof r=="function"&&r(),e?e.__c:null}function Hq(){}function Vq(){return this.cancelBubble}function $q(){return this.defaultPrevented}var Bd,uw,qq,Uq,dw,pw,Mq,Fq,jq,Bq,Gq,Jq,fw,ww,Wq,mw,hw,gw,Ns=T(()=>{ti();ti();Md();Md();Bd=di;(lw.prototype=new Et).isPureReactComponent=!0,lw.prototype.shouldComponentUpdate=function(e,t){return jd(this.props,e)||jd(this.state,t)};uw=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uw&&uw(e)};qq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Uq=q.__e;q.__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)}Uq(e,t,r,n)};dw=q.unmount;q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dw&&dw(e)},(Fd.prototype=new Et).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=_w(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 c=n.state.__a;n.__v.__k[0]=bw(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Fd.prototype.componentWillUnmount=function(){this.o=[]},Fd.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]=yw(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&et($e,null,e.fallback);return i&&(i.__u&=-33),[et($e,null,t.__a?null:e.children),i]};pw=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]}};(Rs.prototype=new Et).__a=function(e){var t=this,r=_w(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),pw(t,e,n)):i()};r?r(o):o()}},Rs.prototype.render=function(e){this.i=null,this.l=new Map;var t=go(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},Rs.prototype.componentDidUpdate=Rs.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){pw(e,r,t)})};Mq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Fq=/^(?: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]/,jq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bq=/[A-Z0-9]/g,Gq=typeof document!="undefined",Jq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});fw=q.event;q.event=function(e){return fw&&(e=fw(e)),e.persist=Hq,e.isPropagationStopped=Vq,e.isDefaultPrevented=$q,e.nativeEvent=e};Wq={enumerable:!1,configurable:!0,get:function(){return this.class}},mw=q.vnode;q.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||Gq&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Jq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":jq.test(a)&&(a=c):c=a="oninput":o&&Fq.test(a)?a=a.replace(Bq,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=go(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=go(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",Wq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Mq,mw&&mw(e)};hw=q.__r;q.__r=function(e){hw&&hw(e),ww=e.__c};gw=q.diffed;q.diffed=function(e){gw&&gw(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),ww=null}});var Vd=h(()=>{"use strict";var Kq=ae(),Hd=Ee();Kq({global:!0,forced:Hd.globalThis!==Hd},{globalThis:Hd})});var Sw=h(()=>{"use strict";Vd()});var Ew=h((oX,Iw)=>{"use strict";Vd();Iw.exports=Ee()});var Cw=h((aX,Aw)=>{"use strict";var Yq=Ew();Aw.exports=Yq});var xw=h((sX,kw)=>{"use strict";var Xq=Cw();kw.exports=Xq});var Pw=h((cX,Tw)=>{"use strict";Sw();var Qq=xw();Tw.exports=Qq});var Rw=h((lX,Ow)=>{"use strict";Ow.exports=Pw()});var Dw=h((uX,Nw)=>{Nw.exports=Rw()});var Lw=h(()=>{"use strict";var Zq=ae(),eU=Co();Zq({target:"Array",stat:!0},{isArray:eU})});var Uw=h((fX,qw)=>{"use strict";Lw();var tU=Xt();qw.exports=tU.Array.isArray});var Fw=h((mX,Mw)=>{"use strict";var rU=Uw();Mw.exports=rU});var Bw=h((hX,jw)=>{jw.exports=Fw()});var Jw=h((gX,Gw)=>{"use strict";Gw.exports=function(){}});var kn=h((vX,Hw)=>{"use strict";Hw.exports={}});var $d=h((yX,$w)=>{"use strict";var nU=Ee(),iU=We(),Vw=nU.WeakMap;$w.exports=iU(Vw)&&/native code/.test(String(Vw))});var Ds=h((bX,zw)=>{"use strict";var oU=dd(),aU=Cs(),Ww=oU("keys");zw.exports=function(e){return Ww[e]||(Ww[e]=aU(e))}});var Lo=h((_X,Kw)=>{"use strict";Kw.exports={}});var Tn=h((wX,Qw)=>{"use strict";var sU=$d(),Xw=Ee(),cU=Me(),lU=An(),Wd=At(),zd=wo(),uU=Ds(),dU=Lo(),Yw="Object already initialized",Kd=Xw.TypeError,pU=Xw.WeakMap,Ls,qo,qs,fU=function(e){return qs(e)?qo(e):Ls(e,{})},mU=function(e){return function(t){var r;if(!cU(t)||(r=qo(t)).type!==e)throw new Kd("Incompatible receiver, "+e+" required");return r}};sU||zd.state?(Gt=zd.state||(zd.state=new pU),Gt.get=Gt.get,Gt.has=Gt.has,Gt.set=Gt.set,Ls=function(e,t){if(Gt.has(e))throw new Kd(Yw);return t.facade=e,Gt.set(e,t),t},qo=function(e){return Gt.get(e)||{}},qs=function(e){return Gt.has(e)}):(xn=uU("state"),dU[xn]=!0,Ls=function(e,t){if(Wd(e,xn))throw new Kd(Yw);return t.facade=e,lU(e,xn,t),t},qo=function(e){return Wd(e,xn)?e[xn]:{}},qs=function(e){return Wd(e,xn)});var Gt,xn;Qw.exports={set:Ls,get:qo,has:qs,enforce:fU,getterFor:mU}});var Qd=h((SX,eS)=>{"use strict";var Yd=lt(),hU=At(),Zw=Function.prototype,gU=Yd&&Object.getOwnPropertyDescriptor,Xd=hU(Zw,"name"),vU=Xd&&(function(){}).name==="something",yU=Xd&&(!Yd||Yd&&gU(Zw,"name").configurable);eS.exports={EXISTS:Xd,PROPER:vU,CONFIGURABLE:yU}});var Zd=h((IX,tS)=>{"use strict";var bU=Ao(),_U=Math.max,wU=Math.min;tS.exports=function(e,t){var r=bU(e);return r<0?_U(r+t,0):wU(r,t)}});var ep=h((EX,nS)=>{"use strict";var SU=Wr(),IU=Zd(),EU=li(),rS=function(e){return function(t,r,n){var i=SU(t),o=EU(i);if(o===0)return!e&&-1;var a=IU(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}};nS.exports={includes:rS(!0),indexOf:rS(!1)}});var rp=h((AX,oS)=>{"use strict";var AU=Re(),tp=At(),CU=Wr(),kU=ep().indexOf,xU=Lo(),iS=AU([].push);oS.exports=function(e,t){var r=CU(e),n=0,i=[],o;for(o in r)!tp(xU,o)&&tp(r,o)&&iS(i,o);for(;t.length>n;)tp(r,o=t[n++])&&(~kU(i,o)||iS(i,o));return i}});var Us=h((CX,aS)=>{"use strict";aS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var np=h((kX,sS)=>{"use strict";var TU=rp(),PU=Us();sS.exports=Object.keys||function(t){return TU(t,PU)}});var lS=h(cS=>{"use strict";var OU=lt(),RU=yd(),NU=wr(),DU=_r(),LU=Wr(),qU=np();cS.f=OU&&!RU?Object.defineProperties:function(t,r){DU(t);for(var n=LU(r),i=qU(r),o=i.length,a=0,s;o>a;)NU.f(t,s=i[a++],n[s]);return t}});var dS=h((TX,uS)=>{"use strict";var UU=ni();uS.exports=UU("document","documentElement")});var Uo=h((PX,yS)=>{"use strict";var MU=_r(),FU=lS(),pS=Us(),jU=Lo(),BU=dS(),GU=hd(),JU=Ds(),fS=">",mS="<",op="prototype",ap="script",gS=JU("IE_PROTO"),ip=function(){},vS=function(e){return mS+ap+fS+e+mS+"/"+ap+fS},hS=function(e){e.write(vS("")),e.close();var t=e.parentWindow.Object;return e=null,t},HU=function(){var e=GU("iframe"),t="java"+ap+":",r;return e.style.display="none",BU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(vS("document.F=Object")),r.close(),r.F},Ms,Fs=function(){try{Ms=new ActiveXObject("htmlfile")}catch(t){}Fs=typeof document!="undefined"?document.domain&&Ms?hS(Ms):HU():hS(Ms);for(var e=pS.length;e--;)delete Fs[op][pS[e]];return Fs()};jU[gS]=!0;yS.exports=Object.create||function(t,r){var n;return t!==null?(ip[op]=MU(t),n=new ip,ip[op]=null,n[gS]=t):n=Fs(),r===void 0?n:FU.f(n,r)}});var _S=h((OX,bS)=>{"use strict";var VU=Ie();bS.exports=!VU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var cp=h((RX,SS)=>{"use strict";var $U=At(),WU=We(),zU=oi(),KU=Ds(),YU=_S(),wS=KU("IE_PROTO"),sp=Object,XU=sp.prototype;SS.exports=YU?sp.getPrototypeOf:function(e){var t=zU(e);if($U(t,wS))return t[wS];var r=t.constructor;return WU(r)&&t instanceof r?r.prototype:t instanceof sp?XU:null}});var js=h((NX,IS)=>{"use strict";var QU=An();IS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:QU(e,t,r),e}});var pp=h((DX,CS)=>{"use strict";var ZU=Ie(),eM=We(),tM=Me(),rM=Uo(),ES=cp(),nM=js(),iM=tt(),oM=ii(),dp=iM("iterator"),AS=!1,Ir,lp,up;[].keys&&(up=[].keys(),"next"in up?(lp=ES(ES(up)),lp!==Object.prototype&&(Ir=lp)):AS=!0);var aM=!tM(Ir)||ZU(function(){var e={};return Ir[dp].call(e)!==e});aM?Ir={}:oM&&(Ir=rM(Ir));eM(Ir[dp])||nM(Ir,dp,function(){return this});CS.exports={IteratorPrototype:Ir,BUGGY_SAFARI_ITERATORS:AS}});var xS=h((LX,kS)=>{"use strict";var sM=xs(),cM=ui();kS.exports=sM?{}.toString:function(){return"[object "+cM(this)+"]"}});var Mo=h((qX,PS)=>{"use strict";var lM=xs(),uM=wr().f,dM=An(),pM=At(),fM=xS(),mM=tt(),TS=mM("toStringTag");PS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(pM(i,TS)||uM(i,TS,{configurable:!0,value:t}),n&&!lM&&dM(i,"toString",fM))}});var RS=h((UX,OS)=>{"use strict";var hM=pp().IteratorPrototype,gM=Uo(),vM=bo(),yM=Mo(),bM=kn(),_M=function(){return this};OS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=gM(hM,{next:vM(+!n,r)}),yM(e,i,!1,!0),bM[i]=_M,e}});var DS=h((MX,NS)=>{"use strict";var wM=Re(),SM=En();NS.exports=function(e,t,r){try{return wM(SM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var qS=h((FX,LS)=>{"use strict";var IM=Me();LS.exports=function(e){return IM(e)||e===null}});var MS=h((jX,US)=>{"use strict";var EM=qS(),AM=String,CM=TypeError;US.exports=function(e){if(EM(e))return e;throw new CM("Can't set "+AM(e)+" as a prototype")}});var jS=h((BX,FS)=>{"use strict";var kM=DS(),xM=Me(),TM=In(),PM=MS();FS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=kM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return TM(i),PM(o),xM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Js=h((GX,YS)=>{"use strict";var OM=ae(),RM=jt(),Bs=ii(),zS=Qd(),NM=We(),DM=RS(),BS=cp(),GS=jS(),LM=Mo(),qM=An(),fp=js(),UM=tt(),JS=kn(),KS=pp(),MM=zS.PROPER,FM=zS.CONFIGURABLE,HS=KS.IteratorPrototype,Gs=KS.BUGGY_SAFARI_ITERATORS,Fo=UM("iterator"),VS="keys",jo="values",$S="entries",WS=function(){return this};YS.exports=function(e,t,r,n,i,o,a){DM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Gs&&y&&y in d)return d[y];switch(y){case VS:return function(){return new r(this,y)};case jo:return function(){return new r(this,y)};case $S:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Fo]||d["@@iterator"]||i&&d[i],p=!Gs&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=BS(f.call(new e)),m!==Object.prototype&&m.next&&(!Bs&&BS(m)!==HS&&(GS?GS(m,HS):NM(m[Fo])||fp(m,Fo,WS)),LM(m,c,!0,!0),Bs&&(JS[c]=WS))),MM&&i===jo&&u&&u.name!==jo&&(!Bs&&FM?qM(d,"name",jo):(l=!0,p=function(){return RM(u,this)})),i)if(v={values:s(jo),keys:o?p:s(VS),entries:s($S)},a)for(b in v)(Gs||l||!(b in d))&&fp(d,b,v[b]);else OM({target:t,proto:!0,forced:Gs||l},v);return(!Bs||a)&&d[Fo]!==p&&fp(d,Fo,p,{name:i}),JS[t]=p,v}});var Hs=h((JX,XS)=>{"use strict";XS.exports=function(e,t){return{value:e,done:t}}});var $s=h((HX,rI)=>{"use strict";var jM=Wr(),mp=Jw(),QS=kn(),eI=Tn(),BM=wr().f,GM=Js(),Vs=Hs(),JM=ii(),HM=lt(),tI="Array Iterator",VM=eI.set,$M=eI.getterFor(tI);rI.exports=GM(Array,"Array",function(e,t){VM(this,{type:tI,target:jM(e),index:0,kind:t})},function(){var e=$M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Vs(void 0,!0);switch(e.kind){case"keys":return Vs(r,!1);case"values":return Vs(t[r],!1)}return Vs([r,t[r]],!1)},"values");var ZS=QS.Arguments=QS.Array;mp("keys");mp("values");mp("entries");if(!JM&&HM&&ZS.name!=="values")try{BM(ZS,"name",{value:"values"})}catch(e){}});var hp=h(()=>{});var gp=h((WX,nI)=>{"use strict";var WM=Ie();nI.exports=!WM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ws=h((zX,iI)=>{"use strict";var zM=js();iI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:zM(e,n,t[n],r);return e}});var vp=h(oI=>{"use strict";var KM=rp(),YM=Us(),XM=YM.concat("length","prototype");oI.f=Object.getOwnPropertyNames||function(t){return KM(t,XM)}});var lI=h((YX,cI)=>{"use strict";var QM=br(),ZM=Wr(),aI=vp().f,eF=Oo(),sI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tF=function(e){try{return aI(e)}catch(t){return eF(sI)}};cI.exports.f=function(t){return sI&&QM(t)==="Window"?tF(t):aI(ZM(t))}});var dI=h((XX,uI)=>{"use strict";var rF=Ie();uI.exports=rF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var mI=h((QX,fI)=>{"use strict";var nF=Ie(),iF=Me(),oF=br(),pI=dI(),zs=Object.isExtensible,aF=nF(function(){zs(1)});fI.exports=aF||pI?function(t){return!iF(t)||pI&&oF(t)==="ArrayBuffer"?!1:zs?zs(t):!0}:zs});var Bo=h((ZX,vI)=>{"use strict";var sF=ae(),cF=Re(),lF=Lo(),uF=Me(),yp=At(),dF=wr().f,hI=vp(),pF=lI(),bp=mI(),fF=Cs(),mF=gp(),gI=!1,Er=fF("meta"),hF=0,_p=function(e){dF(e,Er,{value:{objectID:"O"+hF++,weakData:{}}})},gF=function(e,t){if(!uF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!yp(e,Er)){if(!bp(e))return"F";if(!t)return"E";_p(e)}return e[Er].objectID},vF=function(e,t){if(!yp(e,Er)){if(!bp(e))return!0;if(!t)return!1;_p(e)}return e[Er].weakData},yF=function(e){return mF&&gI&&bp(e)&&!yp(e,Er)&&_p(e),e},bF=function(){_F.enable=function(){},gI=!0;var e=hI.f,t=cF([].splice),r={};r[Er]=1,e(r).length&&(hI.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},sF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:pF.f}))},_F=vI.exports={enable:bF,fastKey:gF,getWeakData:vF,onFreeze:yF};lF[Er]=!0});var bI=h((eQ,yI)=>{"use strict";var wF=tt(),SF=kn(),IF=wF("iterator"),EF=Array.prototype;yI.exports=function(e){return e!==void 0&&(SF.Array===e||EF[IF]===e)}});var wp=h((tQ,wI)=>{"use strict";var AF=ui(),_I=As(),CF=Sn(),kF=kn(),xF=tt(),TF=xF("iterator");wI.exports=function(e){if(!CF(e))return _I(e,TF)||_I(e,"@@iterator")||kF[AF(e)]}});var II=h((rQ,SI)=>{"use strict";var PF=jt(),OF=En(),RF=_r(),NF=_o(),DF=wp(),LF=TypeError;SI.exports=function(e,t){var r=arguments.length<2?DF(e):t;if(OF(r))return RF(PF(r,e));throw new LF(NF(e)+" is not iterable")}});var Ks=h((nQ,AI)=>{"use strict";var qF=jt(),EI=_r(),UF=As();AI.exports=function(e,t,r){var n,i;EI(e);try{if(n=UF(e,"return"),!n){if(t==="throw")throw r;return r}n=qF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return EI(n),r}});var Xs=h((iQ,TI)=>{"use strict";var MF=Io(),FF=jt(),jF=_r(),BF=_o(),GF=bI(),JF=li(),CI=ct(),HF=II(),VF=wp(),kI=Ks(),$F=TypeError,Ys=function(e,t){this.stopped=e,this.result=t},xI=Ys.prototype;TI.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),c=MF(t,n),l,d,u,p,f,m,v,b=function(_){return l&&kI(l,"normal",_),new Ys(!0,_)},y=function(_){return i?(jF(_),s?c(_[0],_[1],b):c(_[0],_[1])):s?c(_,b):c(_)};if(o)l=e.iterator;else if(a)l=e;else{if(d=VF(e),!d)throw new $F(BF(e)+" is not iterable");if(GF(d)){for(u=0,p=JF(e);p>u;u++)if(f=y(e[u]),f&&CI(xI,f))return f;return new Ys(!1)}l=HF(e,d)}for(m=o?e.next:l.next;!(v=FF(m,l)).done;){try{f=y(v.value)}catch(_){kI(l,"throw",_)}if(typeof f=="object"&&f&&CI(xI,f))return f}return new Ys(!1)}});var Qs=h((oQ,PI)=>{"use strict";var WF=ct(),zF=TypeError;PI.exports=function(e,t){if(WF(t,e))return e;throw new zF("Incorrect invocation")}});var Sp=h((aQ,RI)=>{"use strict";var KF=ae(),YF=Ee(),XF=Bo(),QF=Ie(),ZF=An(),ej=Xs(),tj=Qs(),rj=We(),nj=Me(),ij=Sn(),oj=Mo(),aj=wr().f,sj=Kr().forEach,cj=lt(),OI=Tn(),lj=OI.set,uj=OI.getterFor;RI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=YF[e],s=a&&a.prototype,c={},l;if(!cj||!rj(a)||!(i||s.forEach&&!QF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),XF.enable();else{l=t(function(p,f){lj(tj(p,d),{type:e,collection:new a}),ij(f)||ej(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=uj(e);sj(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&ZF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!nj(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||aj(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return oj(l,e,!1,!0),c[e]=l,KF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var FI=h((sQ,MI)=>{"use strict";var dj=Re(),NI=Ws(),Zs=Bo().getWeakData,pj=Qs(),fj=_r(),mj=Sn(),Ip=Me(),hj=Xs(),LI=Kr(),DI=At(),qI=Tn(),gj=qI.set,vj=qI.getterFor,yj=LI.find,bj=LI.findIndex,_j=dj([].splice),wj=0,ec=function(e){return e.frozen||(e.frozen=new UI)},UI=function(){this.entries=[]},Ep=function(e,t){return yj(e.entries,function(r){return r[0]===t})};UI.prototype={get:function(e){var t=Ep(this,e);if(t)return t[1]},has:function(e){return!!Ep(this,e)},set:function(e,t){var r=Ep(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=bj(this.entries,function(r){return r[0]===e});return~t&&_j(this.entries,t,1),!!~t}};MI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){pj(c,o),gj(c,{type:t,id:wj++,frozen:null}),mj(l)||hj(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=vj(t),s=function(c,l,d){var u=a(c),p=Zs(fj(l),!0);return p===!0?ec(u).set(l,d):p[u.id]=d,c};return NI(o,{delete:function(c){var l=a(this);if(!Ip(c))return!1;var d=Zs(c);return d===!0?ec(l).delete(c):d&&DI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Ip(l))return!1;var u=Zs(l);return u===!0?ec(d).has(l):u&&DI(u,d.id)}}),NI(o,r?{get:function(l){var d=a(this);if(Ip(l)){var u=Zs(l);if(u===!0)return ec(d).get(l);if(u)return u[d.id]}},set:function(l,d){return s(this,l,d)}}:{add:function(l){return s(this,l,!0)}}),i}}});var WI=h(()=>{"use strict";var Sj=gp(),jI=Ee(),ic=Re(),BI=Ws(),Ij=Bo(),Ej=Sp(),GI=FI(),tc=Me(),rc=Tn().enforce,Aj=Ie(),Cj=$d(),Ho=Object,kj=Array.isArray,nc=Ho.isExtensible,JI=Ho.isFrozen,xj=Ho.isSealed,HI=Ho.freeze,Tj=Ho.seal,Pj=!jI.ActiveXObject&&"ActiveXObject"in jI,Go,VI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$I=Ej("WeakMap",VI,GI),mi=$I.prototype,oc=ic(mi.set),Oj=function(){return Sj&&Aj(function(){var e=HI([]);return oc(new $I,e,1),!JI(e)})};Cj&&(Pj?(Go=GI.getConstructor(VI,"WeakMap",!0),Ij.enable(),Ap=ic(mi.delete),Jo=ic(mi.has),Cp=ic(mi.get),BI(mi,{delete:function(e){if(tc(e)&&!nc(e)){var t=rc(this);return t.frozen||(t.frozen=new Go),Ap(this,e)||t.frozen.delete(e)}return Ap(this,e)},has:function(t){if(tc(t)&&!nc(t)){var r=rc(this);return r.frozen||(r.frozen=new Go),Jo(this,t)||r.frozen.has(t)}return Jo(this,t)},get:function(t){if(tc(t)&&!nc(t)){var r=rc(this);return r.frozen||(r.frozen=new Go),Jo(this,t)?Cp(this,t):r.frozen.get(t)}return Cp(this,t)},set:function(t,r){if(tc(t)&&!nc(t)){var n=rc(this);n.frozen||(n.frozen=new Go),Jo(this,t)?oc(this,t,r):n.frozen.set(t,r)}else oc(this,t,r);return this}})):Oj()&&BI(mi,{set:function(t,r){var n;return kj(t)&&(JI(t)?n=HI:xj(t)&&(n=Tj)),oc(this,t,r),n&&n(t),this}}));var Ap,Jo,Cp});var zI=h(()=>{"use strict";WI()});var YI=h((pQ,KI)=>{"use strict";$s();hp();zI();var Rj=Xt();KI.exports=Rj.WeakMap});var QI=h((fQ,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 kp=h(()=>{"use strict";$s();var Nj=QI(),Dj=Ee(),Lj=Mo(),ZI=kn();for(ac in Nj)Lj(Dj[ac],ac),ZI[ac]=ZI.Array;var ac});var tE=h((gQ,eE)=>{"use strict";var qj=YI();kp();eE.exports=qj});var nE=h((vQ,rE)=>{rE.exports=tE()});var oE=h(()=>{"use strict";var Uj=ae(),Mj=yo(),Fj=ep().indexOf,jj=To(),xp=Mj([].indexOf),iE=!!xp&&1/xp([1],1,-0)<0,Bj=iE||!jj("indexOf");Uj({target:"Array",proto:!0,forced:Bj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return iE?xp(this,t,r)||0:Fj(this,t,r)}})});var sE=h((_Q,aE)=>{"use strict";oE();var Gj=Nt();aE.exports=Gj("Array","indexOf")});var lE=h((wQ,cE)=>{"use strict";var Jj=ct(),Hj=sE(),Tp=Array.prototype;cE.exports=function(e){var t=e.indexOf;return e===Tp||Jj(Tp,e)&&t===Tp.indexOf?Hj:t}});var dE=h((SQ,uE)=>{"use strict";var Vj=lE();uE.exports=Vj});var fE=h((IQ,pE)=>{pE.exports=dE()});var mE=h(()=>{"use strict";var $j=ae(),Wj=Kr().map,zj=xo(),Kj=zj("map");$j({target:"Array",proto:!0,forced:!Kj},{map:function(t){return Wj(this,t,arguments.length>1?arguments[1]:void 0)}})});var gE=h((CQ,hE)=>{"use strict";mE();var Yj=Nt();hE.exports=Yj("Array","map")});var yE=h((kQ,vE)=>{"use strict";var Xj=ct(),Qj=gE(),Pp=Array.prototype;vE.exports=function(e){var t=e.map;return e===Pp||Xj(Pp,e)&&t===Pp.map?Qj:t}});var _E=h((xQ,bE)=>{"use strict";var Zj=yE();bE.exports=Zj});var SE=h((TQ,wE)=>{wE.exports=_E()});var IE=h(()=>{"use strict";var eB=ae(),tB=lt(),rB=Uo();eB({target:"Object",stat:!0,sham:!tB},{create:rB})});var AE=h((RQ,EE)=>{"use strict";IE();var nB=Xt(),iB=nB.Object;EE.exports=function(t,r){return iB.create(t,r)}});var kE=h((NQ,CE)=>{"use strict";var oB=AE();CE.exports=oB});var TE=h((DQ,xE)=>{xE.exports=kE()});var Op=h((LQ,PE)=>{"use strict";var aB=wr();PE.exports=function(e,t,r){return aB.f(e,t,r)}});var NE=h((qQ,RE)=>{"use strict";var sB=ni(),cB=Op(),lB=tt(),uB=lt(),OE=lB("species");RE.exports=function(e){var t=sB(e);uB&&t&&!t[OE]&&cB(t,OE,{configurable:!0,get:function(){return this}})}});var jE=h((UQ,FE)=>{"use strict";var DE=Uo(),dB=Op(),LE=Ws(),pB=Io(),fB=Qs(),mB=Sn(),hB=Xs(),gB=Js(),sc=Hs(),vB=NE(),Vo=lt(),qE=Bo().fastKey,ME=Tn(),UE=ME.set,Rp=ME.getterFor;FE.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){fB(l,o),UE(l,{type:t,index:DE(null),first:null,last:null,size:0}),Vo||(l.size=0),mB(d)||hB(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Rp(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,v;return f?f.value=u:(p.last=f={index:v=qE(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Vo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=qE(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return LE(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=DE(null),Vo?u.size=0:d.size=0},delete:function(l){var d=this,u=a(d),p=c(d,l);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),Vo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=pB(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!!c(this,d)}}),LE(o,r?{get:function(d){var u=c(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)}}),Vo&&dB(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Rp(t),o=Rp(n);gB(e,t,function(a,s){UE(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,c=a.last;c&&c.removed;)c=c.previous;return!a.target||!(a.last=c=c?c.next:a.state.first)?(a.target=null,sc(void 0,!0)):sc(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),vB(t)}}});var BE=h(()=>{"use strict";var yB=Sp(),bB=jE();yB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bB)});var GE=h(()=>{"use strict";BE()});var Qr=h((GQ,JE)=>{"use strict";var _B=_o(),wB=TypeError;JE.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 wB(_B(e)+" is not a set")}});var VE=h((JQ,HE)=>{"use strict";HE.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Zr=h((HQ,WE)=>{"use strict";var SB=ni(),Np=VE(),$E=SB("Set"),IB=$E.prototype;WE.exports={Set:$E,add:Np("add",1),has:Np("has",1),remove:Np("delete",1),proto:IB}});var en=h((VQ,zE)=>{"use strict";var EB=jt();zE.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=EB(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var hi=h(($Q,KE)=>{"use strict";var AB=en();KE.exports=function(e,t,r){return r?AB(e.keys(),t,!0):e.forEach(t)}});var cc=h((WQ,XE)=>{"use strict";var YE=Zr(),CB=hi(),kB=YE.Set,xB=YE.add;XE.exports=function(e){var t=new kB;return CB(e,function(r){xB(t,r)}),t}});var gi=h((zQ,QE)=>{"use strict";QE.exports=function(e){return e.size}});var e0=h((KQ,ZE)=>{"use strict";ZE.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var tn=h((YQ,a0)=>{"use strict";var t0=En(),i0=_r(),r0=jt(),TB=Ao(),PB=e0(),n0="Invalid size",OB=RangeError,RB=TypeError,NB=Math.max,o0=function(e,t){this.set=e,this.size=NB(t,0),this.has=t0(e.has),this.keys=t0(e.keys)};o0.prototype={getIterator:function(){return PB(i0(r0(this.keys,this.set)))},includes:function(e){return r0(this.has,this.set,e)}};a0.exports=function(e){i0(e);var t=+e.size;if(t!==t)throw new RB(n0);var r=TB(t);if(r<0)throw new OB(n0);return new o0(e,r)}});var u0=h((XQ,l0)=>{"use strict";var DB=Qr(),c0=Zr(),LB=cc(),qB=gi(),UB=tn(),MB=hi(),FB=en(),jB=c0.has,s0=c0.remove;l0.exports=function(t){var r=DB(this),n=UB(t),i=LB(r);return qB(r)<=n.size?MB(r,function(o){n.includes(o)&&s0(i,o)}):FB(n.getIterator(),function(o){jB(r,o)&&s0(i,o)}),i}});var rn=h((QQ,d0)=>{"use strict";d0.exports=function(){return!1}});var p0=h(()=>{"use strict";var BB=ae(),GB=u0(),JB=rn(),HB=!JB("difference",function(e){return e.size===0});BB({target:"Set",proto:!0,real:!0,forced:HB},{difference:GB})});var h0=h((tZ,m0)=>{"use strict";var VB=Qr(),Dp=Zr(),$B=gi(),WB=tn(),zB=hi(),KB=en(),YB=Dp.Set,f0=Dp.add,XB=Dp.has;m0.exports=function(t){var r=VB(this),n=WB(t),i=new YB;return $B(r)>n.size?KB(n.getIterator(),function(o){XB(r,o)&&f0(i,o)}):zB(r,function(o){n.includes(o)&&f0(i,o)}),i}});var g0=h(()=>{"use strict";var QB=ae(),ZB=Ie(),eG=h0(),tG=rn(),rG=!tG("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||ZB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});QB({target:"Set",proto:!0,real:!0,forced:rG},{intersection:eG})});var y0=h((iZ,v0)=>{"use strict";var nG=Qr(),iG=Zr().has,oG=gi(),aG=tn(),sG=hi(),cG=en(),lG=Ks();v0.exports=function(t){var r=nG(this),n=aG(t);if(oG(r)<=n.size)return sG(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return cG(i,function(o){if(iG(r,o))return lG(i,"normal",!1)})!==!1}});var b0=h(()=>{"use strict";var uG=ae(),dG=y0(),pG=rn(),fG=!pG("isDisjointFrom",function(e){return!e});uG({target:"Set",proto:!0,real:!0,forced:fG},{isDisjointFrom:dG})});var w0=h((sZ,_0)=>{"use strict";var mG=Qr(),hG=gi(),gG=hi(),vG=tn();_0.exports=function(t){var r=mG(this),n=vG(t);return hG(r)>n.size?!1:gG(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var S0=h(()=>{"use strict";var yG=ae(),bG=w0(),_G=rn(),wG=!_G("isSubsetOf",function(e){return e});yG({target:"Set",proto:!0,real:!0,forced:wG},{isSubsetOf:bG})});var E0=h((uZ,I0)=>{"use strict";var SG=Qr(),IG=Zr().has,EG=gi(),AG=tn(),CG=en(),kG=Ks();I0.exports=function(t){var r=SG(this),n=AG(t);if(EG(r)<n.size)return!1;var i=n.getIterator();return CG(i,function(o){if(!IG(r,o))return kG(i,"normal",!1)})!==!1}});var A0=h(()=>{"use strict";var xG=ae(),TG=E0(),PG=rn(),OG=!PG("isSupersetOf",function(e){return!e});xG({target:"Set",proto:!0,real:!0,forced:OG},{isSupersetOf:TG})});var k0=h((fZ,C0)=>{"use strict";var RG=Qr(),Lp=Zr(),NG=cc(),DG=tn(),LG=en(),qG=Lp.add,UG=Lp.has,MG=Lp.remove;C0.exports=function(t){var r=RG(this),n=DG(t).getIterator(),i=NG(r);return LG(n,function(o){UG(r,o)?MG(i,o):qG(i,o)}),i}});var x0=h(()=>{"use strict";var FG=ae(),jG=k0(),BG=rn();FG({target:"Set",proto:!0,real:!0,forced:!BG("symmetricDifference")},{symmetricDifference:jG})});var P0=h((gZ,T0)=>{"use strict";var GG=Qr(),JG=Zr().add,HG=cc(),VG=tn(),$G=en();T0.exports=function(t){var r=GG(this),n=VG(t).getIterator(),i=HG(r);return $G(n,function(o){JG(i,o)}),i}});var O0=h(()=>{"use strict";var WG=ae(),zG=P0(),KG=rn();WG({target:"Set",proto:!0,real:!0,forced:!KG("union")},{union:zG})});var $o=h((bZ,R0)=>{"use strict";var YG=ui(),XG=String;R0.exports=function(e){if(YG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return XG(e)}});var q0=h((_Z,L0)=>{"use strict";var qp=Re(),QG=Ao(),ZG=$o(),eJ=In(),tJ=qp("".charAt),N0=qp("".charCodeAt),rJ=qp("".slice),D0=function(e){return function(t,r){var n=ZG(eJ(t)),i=QG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=N0(n,i),a<55296||a>56319||i+1===o||(s=N0(n,i+1))<56320||s>57343?e?tJ(n,i):a:e?rJ(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};L0.exports={codeAt:D0(!1),charAt:D0(!0)}});var j0=h(()=>{"use strict";var nJ=q0().charAt,iJ=$o(),M0=Tn(),oJ=Js(),U0=Hs(),F0="String Iterator",aJ=M0.set,sJ=M0.getterFor(F0);oJ(String,"String",function(e){aJ(this,{type:F0,string:iJ(e),index:0})},function(){var t=sJ(this),r=t.string,n=t.index,i;return n>=r.length?U0(void 0,!0):(i=nJ(r,n),t.index+=i.length,U0(i,!1))})});var G0=h((IZ,B0)=>{"use strict";$s();hp();GE();p0();g0();b0();S0();A0();x0();O0();j0();var cJ=Xt();B0.exports=cJ.Set});var H0=h((EZ,J0)=>{"use strict";var lJ=G0();kp();J0.exports=lJ});var $0=h((AZ,V0)=>{V0.exports=H0()});var z0=h(W0=>{"use strict";W0.f=Object.getOwnPropertySymbols});var Q0=h((kZ,X0)=>{"use strict";var K0=lt(),uJ=Re(),dJ=jt(),pJ=Ie(),Up=np(),fJ=z0(),mJ=ed(),hJ=oi(),gJ=ws(),yi=Object.assign,Y0=Object.defineProperty,vJ=uJ([].concat);X0.exports=!yi||pJ(function(){if(K0&&yi({b:1},yi(Y0({},"a",{enumerable:!0,get:function(){Y0(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}),yi({},e)[r]!==7||Up(yi({},t)).join("")!==n})?function(t,r){for(var n=hJ(t),i=arguments.length,o=1,a=fJ.f,s=mJ.f;i>o;)for(var c=gJ(arguments[o++]),l=a?vJ(Up(c),a(c)):Up(c),d=l.length,u=0,p;d>u;)p=l[u++],(!K0||dJ(s,c,p))&&(n[p]=c[p]);return n}:yi});var eA=h(()=>{"use strict";var yJ=ae(),Z0=Q0();yJ({target:"Object",stat:!0,arity:2,forced:Object.assign!==Z0},{assign:Z0})});var rA=h((PZ,tA)=>{"use strict";eA();var bJ=Xt();tA.exports=bJ.Object.assign});var iA=h((OZ,nA)=>{"use strict";var _J=rA();nA.exports=_J});var aA=h((RZ,oA)=>{oA.exports=iA()});var Mp=h((NZ,sA)=>{"use strict";sA.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 uA=h((DZ,lA)=>{"use strict";var wJ=Re(),SJ=In(),IJ=$o(),jp=Mp(),cA=wJ("".replace),EJ=RegExp("^["+jp+"]+"),AJ=RegExp("(^|[^"+jp+"])["+jp+"]+$"),Fp=function(e){return function(t){var r=IJ(SJ(t));return e&1&&(r=cA(r,EJ,"")),e&2&&(r=cA(r,AJ,"$1")),r}};lA.exports={start:Fp(1),end:Fp(2),trim:Fp(3)}});var mA=h((LZ,fA)=>{"use strict";var CJ=Qd().PROPER,kJ=Ie(),dA=Mp(),pA="\u200B\x85\u180E";fA.exports=function(e){return kJ(function(){return!!dA[e]()||pA[e]()!==pA||CJ&&dA[e].name!==e})}});var hA=h(()=>{"use strict";var xJ=ae(),TJ=uA().trim,PJ=mA();xJ({target:"String",proto:!0,forced:PJ("trim")},{trim:function(){return TJ(this)}})});var vA=h((MZ,gA)=>{"use strict";hA();var OJ=Nt();gA.exports=OJ("String","trim")});var bA=h((FZ,yA)=>{"use strict";var RJ=ct(),NJ=vA(),Bp=String.prototype;yA.exports=function(e){var t=e.trim;return typeof e=="string"||e===Bp||RJ(Bp,e)&&t===Bp.trim?NJ:t}});var wA=h((jZ,_A)=>{"use strict";var DJ=bA();_A.exports=DJ});var IA=h((BZ,SA)=>{SA.exports=wA()});var CA=h(()=>{"use strict";var LJ=ae(),EA=Co(),qJ=Cd(),UJ=Me(),AA=Zd(),MJ=li(),FJ=Wr(),jJ=Od(),BJ=tt(),GJ=xo(),JJ=Oo(),HJ=GJ("slice"),VJ=BJ("species"),Gp=Array,$J=Math.max;LJ({target:"Array",proto:!0,forced:!HJ},{slice:function(t,r){var n=FJ(this),i=MJ(n),o=AA(t,i),a=AA(r===void 0?i:r,i),s,c,l;if(EA(n)&&(s=n.constructor,qJ(s)&&(s===Gp||EA(s.prototype))?s=void 0:UJ(s)&&(s=s[VJ],s===null&&(s=void 0)),s===Gp||s===void 0))return JJ(n,o,a);for(c=new(s===void 0?Gp:s)($J(a-o,0)),l=0;o<a;o++,l++)o in n&&jJ(c,l,n[o]);return c.length=l,c}})});var xA=h((HZ,kA)=>{"use strict";CA();var WJ=Nt();kA.exports=WJ("Array","slice")});var PA=h((VZ,TA)=>{"use strict";var zJ=ct(),KJ=xA(),Jp=Array.prototype;TA.exports=function(e){var t=e.slice;return e===Jp||zJ(Jp,e)&&t===Jp.slice?KJ:t}});var RA=h(($Z,OA)=>{"use strict";var YJ=PA();OA.exports=YJ});var DA=h((WZ,NA)=>{NA.exports=RA()});var Hp=T(()=>{});var qA=h((KZ,LA)=>{"use strict";var XJ=Me(),QJ=br(),ZJ=tt(),e2=ZJ("match");LA.exports=function(e){var t;return XJ(e)&&((t=e[e2])!==void 0?!!t:QJ(e)==="RegExp")}});var MA=h((YZ,UA)=>{"use strict";var t2=qA(),r2=TypeError;UA.exports=function(e){if(t2(e))throw new r2("The method doesn't accept regular expressions");return e}});var jA=h((XZ,FA)=>{"use strict";var n2=tt(),i2=n2("match");FA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i2]=!1,"/./"[e](t)}catch(n){}}return!1}});var JA=h(()=>{"use strict";var o2=ae(),a2=yo(),s2=vd().f,c2=Id(),BA=$o(),l2=MA(),u2=In(),d2=jA(),p2=ii(),f2=a2("".slice),m2=Math.min,GA=d2("startsWith"),h2=!p2&&!GA&&!!function(){var e=s2(String.prototype,"startsWith");return e&&!e.writable}();o2({target:"String",proto:!0,forced:!h2&&!GA},{startsWith:function(t){var r=BA(u2(this));l2(t);var n=c2(m2(arguments.length>1?arguments[1]:void 0,r.length)),i=BA(t);return f2(r,n,n+i.length)===i}})});var VA=h((eee,HA)=>{"use strict";JA();var g2=Nt();HA.exports=g2("String","startsWith")});var WA=h((tee,$A)=>{"use strict";var v2=ct(),y2=VA(),Vp=String.prototype;$A.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Vp||v2(Vp,e)&&t===Vp.startsWith?y2:t}});var KA=h((ree,zA)=>{"use strict";var b2=WA();zA.exports=b2});var XA=h((nee,YA)=>{YA.exports=KA()});var rC=h((iee,tC)=>{"use strict";var ZA=Re(),_2=En(),w2=Me(),S2=At(),QA=Oo(),I2=ri(),eC=Function,E2=ZA([].concat),A2=ZA([].join),$p={},C2=function(e,t,r){if(!S2($p,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";$p[t]=eC("C,a","return new C("+A2(n,",")+")")}return $p[t](e,r)};tC.exports=I2?eC.bind:function(t){var r=_2(this),n=r.prototype,i=QA(arguments,1),o=function(){var s=E2(i,QA(arguments));return this instanceof o?C2(r,s.length,s):r.apply(t,s)};return w2(n)&&(o.prototype=n),o}});var iC=h(()=>{"use strict";var k2=ae(),nC=rC();k2({target:"Function",proto:!0,forced:Function.bind!==nC},{bind:nC})});var aC=h((see,oC)=>{"use strict";iC();var x2=Nt();oC.exports=x2("Function","bind")});var cC=h((cee,sC)=>{"use strict";var T2=ct(),P2=aC(),Wp=Function.prototype;sC.exports=function(e){var t=e.bind;return e===Wp||T2(Wp,e)&&t===Wp.bind?P2:t}});var uC=h((lee,lC)=>{"use strict";var O2=cC();lC.exports=O2});var pC=h((uee,dC)=>{dC.exports=uC()});function kc(e,t){Ne.__h&&Ne.__h(be,e,Zo||t),Zo=0;var r=be.__H||(be.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function or(e){return Zo=1,R2(ek,e)}function R2(e,t,r){var n=kc(Si++,2);if(n.t=e,!n.__c&&(n.__=[ek(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=be,!be.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,hf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,KC.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,c,l);var p=n.__c.props!==s;return(0,Fe.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,c,l)||p};be.__f=!0;var o=be.shouldComponentUpdate,a=be.componentWillUpdate;be.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},be.shouldComponentUpdate=i}return n.__N||n.__}function On(e,t){var r=kc(Si++,3);!Ne.__s&&ZC(r.__H,t)&&(r.__=e,r.u=t,be.__H.__h.push(r))}function Ko(e){return Zo=5,Cr(function(){return{current:e}},[])}function Cr(e,t){var r=kc(Si++,7);return ZC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Dt(e,t){return Zo=8,Cr(function(){return e},t)}function N2(e){var t=be.context[e.__c],r=kc(Si++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(be)),t.props.value):e.__}function D2(){for(var e;e=QC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Fe.default)(t=e.__H.__h).call(t,fc),(0,Fe.default)(r=e.__H.__h).call(r,rf),e.__H.__h=[]}catch(n){e.__H.__h=[],Ne.__e(n,e.__v)}}function L2(e){var t,r=function(){clearTimeout(n),_C&&cancelAnimationFrame(t),(0,ir.default)(e)},n=(0,ir.default)(r,100);_C&&(t=requestAnimationFrame(r))}function fc(e){var t=be,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),be=t}function rf(e){var t=be;e.__c=e.__(),be=t}function ZC(e,t){return!e||e.length!==t.length||(0,wc.default)(t).call(t,function(r,n){return r!==e[n]})}function ek(e,t){return typeof t=="function"?t(e):t}function q2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nf(){throw new Error("setTimeout has not been defined")}function of(){throw new Error("clearTimeout has not been defined")}function rk(e){if(Zt===ir.default)return(0,ir.default)(e,0);if((Zt===nf||!Zt)&&ir.default)return Zt=ir.default,(0,ir.default)(e,0);try{return Zt(e,0)}catch(t){try{return Zt.call(null,e,0)}catch(r){return Zt.call(this,e,0)}}}function U2(e){if(er===clearTimeout)return clearTimeout(e);if((er===of||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(e);try{return er(e)}catch(t){try{return er.call(null,e)}catch(r){return er.call(this,e)}}}function M2(){!bi||!on||(bi=!1,on.length?Ar=(0,Cc.default)(on).call(on,Ar):mc=-1,Ar.length&&nk())}function nk(){if(!bi){var e=rk(M2);bi=!0;for(var t=Ar.length;t;){for(on=Ar,Ar=[];++mc<t;)on&&on[mc].run();mc=-1,t=Ar.length}on=null,bi=!1,U2(e)}}function ik(e,t){this.fun=e,this.array=t}function xr(){}function B2(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 G2(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 $2(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function sk(e){return(0,yf.default)(e).call(e)}function W2(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function af(e,t){return(0,kr.default)(e).call(e,t)}function ze(e,t){return e.charCodeAt(t)|0}function ea(e,t,r){return(0,bf.default)(e).call(e,t,r)}function tr(e){return e.length}function If(e){return e.length}function lc(e,t){return t.push(e),e}function z2(e,t){return(0,Qo.default)(e).call(e,t).join("")}function Pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Tc,column:Ii,length:a,return:""}}function Wo(e,t){return V2(Pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function K2(){return De}function Y2(){return De=mt>0?ze(Ai,--mt):0,Ii--,De===10&&(Ii=1,Tc--),De}function Ct(){return De=mt<ck?ze(Ai,mt++):0,Ii++,De===10&&(Ii=1,Tc++),De}function ar(){return ze(Ai,mt)}function hc(){return mt}function aa(e,t){return ea(Ai,e,t)}function ta(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 lk(e){return Tc=Ii=1,ck=tr(Ai=e),mt=0,[]}function uk(e){return Ai="",e}function gc(e){return sk(aa(mt-1,sf(e===91?e+2:e===40?e+1:e)))}function X2(e){for(;(De=ar())&&De<33;)Ct();return ta(e)>2||ta(De)>3?"":" "}function Q2(e,t){for(;--t&&Ct()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return aa(e,hc()+(t<6&&ar()==32&&Ct()==32))}function sf(e){for(;Ct();)switch(De){case e:return mt;case 34:case 39:e!==34&&e!==39&&sf(De);break;case 40:e===41&&sf(e);break;case 92:Ct();break}return mt}function Z2(e,t){for(;Ct()&&e+De!==57&&!(e+De===84&&ar()===47););return"/*"+aa(t,mt-1)+"*"+xc(e===47?e:Ct())}function eH(e){for(;!ta(ar());)Ct();return aa(e,mt)}function tH(e){return uk(vc("",null,null,null,[""],e=lk(e),0,[0],e))}function vc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=Ct()){case 40:if(m!=108&&ze(A,u-1)==58){af(A+=ie(gc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=gc(_);break;case 9:case 10:case 13:case 32:A+=X2(m);break;case 92:A+=Q2(hc()-1,7);continue;case 47:switch(ar()){case 42:case 47:lc(rH(Z2(Ct(),hc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=tr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&tr(A)-u&&lc(f>32?SC(A+";",n,r,u-1):SC(ie(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(lc(k=wC(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)vc(A,t,k,k,C,o,u,s,x);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 109:case 115:vc(e,k,k,n&&lc(wC(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:vc(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+tr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&Y2()==125)continue}switch(A+=xc(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(tr(A)-1)*y,y=1;break;case 64:ar()===45&&(A+=gc(Ct())),p=ar(),d=u=tr(E=A+=eH(hc())),_++;break;case 45:m===45&&tr(A)==2&&(v=0)}}return o}function wC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=If(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ea(e,u+1,u=H2(v=a[m])),E=e;y<f;++y)(E=sk(v>0?p[y]+" "+_:ie(_,/&\f/g,p[y])))&&(c[b++]=E);return Pc(e,t,r,i===0?wf:s,c,l,d)}function rH(e,t,r){return Pc(e,t,r,_f,xc(K2()),ea(e,2,-2),0)}function SC(e,t,r,n){return Pc(e,t,r,Sf,ea(e,0,n),ea(e,n+1,-1),n)}function _i(e,t){for(var r="",n=If(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function nH(e,t,r,n){switch(e.type){case J2:case Sf:return e.return=e.return||e.value;case _f:return"";case ak:return e.return=e.value+"{"+_i(e.children,n)+"}";case wf:e.value=e.props.join(",")}return tr(r=_i(e.children,n))?e.return=e.value+"{"+r+"}":""}function iH(e){var t=If(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 oH(e){return function(t){t.root||(t=t.return)&&e(t)}}function pk(e,t){switch($2(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+Ic+e+rt+e+e;case 6828:case 4268:return Z+e+rt+e+e;case 6165:return Z+e+rt+"flex-"+e+e;case 5187:return Z+e+ie(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return Z+e+rt+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return Z+e+rt+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+rt+ie(e,"shrink","negative")+e;case 5292:return Z+e+rt+ie(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ie(e,"-grow","")+Z+e+rt+ie(e,"grow","positive")+e;case 4554:return Z+ie(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ie(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(tr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+Ic+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~af(e,"stretch")?pk(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,tr(e)-3-(~af(e,"!important")&&10))){case 107:return ie(e,":",":"+Z)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(ze(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+rt+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+rt+e+e}return e}function mk(){if(AC)return uc.exports;AC=1;let e=mk();return uc.exports={default:e},uc.exports.default=e,uc.exports}function ra(e,t,r){var n,i="";return(0,Fe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function bH(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 wH(e){var t=(0,YC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function na(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 rr={name:i.name,styles:i.styles,next:rr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var s=o.styles+";";return s}return EH(e,t,r)}case"function":{if(e!==void 0){var c=rr,l=r(e);return rr=c,na(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function EH(e,t,r){var n="";if((0,Xo.default)(r))for(var i=0;i<r.length;i++)n+=na(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]+"}":CC(s)&&(n+=Kp(o)+":"+kC(o,s)+";")}else if((0,Xo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)CC(a[c])&&(n+=Kp(o)+":"+kC(o,a[c])+";");else{var l=na(e,t,a);switch(o){case"animation":case"animationName":{n+=Kp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function an(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="";rr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=na(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=na(r,t,e[s]),n){var c=o;i+=c[s]}xC.lastIndex=0;for(var l="",d;(d=xC.exec(i))!==null;)l+="-"+d[1];var u=bH(i)+l;return{name:u,styles:i,next:rr}}function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return an(t)}function LH(e,t,r){var n=[],i=ra(e,n,r);return n.length<2?r:i+t(n)}function w(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--MH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return q.vnode&&q.vnode(l),l}function sa(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=or(e());return On(()=>{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 r3(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 Ak(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=r3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function n3(e){let t=()=>Ak(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function a3(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Qe(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=o3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:et("img",B(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",B(P({},a),{ref:l,className:i,children:r}))}function s3(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?et(i.type,B(P({},i.props),{style:B(P({},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?et(e.type,B(P({},e.props),{style:B(P({},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 p3(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 jC(e,t,r){return Rc.call(t,"css")?w(kf,bk(e,t),r):w(e,t,r)}function y3(e,t,r){return Rc.call(t,"css")?w(kf,bk(e,t),r):w(e,t,r)}function pf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("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?w($e,{children:t[s]},o):null}return w($e,{children:i},o)})})}function w3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=or(!1);return a?null:w("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function E3({children:e,style:t}){return w("div",{style:`${S3.styles} ${t}`,children:[e,w("svg",{style:`${I3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function F3(e,t){return Ke(e,0)^45?(((t<<2^Ke(e,0))<<2^Ke(e,1))<<2^Ke(e,2))<<2^Ke(e,3):0}function Fk(e){return(0,yf.default)(e).call(e)}function j3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function ff(e,t){return(0,kr.default)(e).call(e,t)}function Ke(e,t){return e.charCodeAt(t)|0}function ia(e,t,r){return(0,bf.default)(e).call(e,t,r)}function nr(e){return e.length}function Rf(e){return e.length}function pc(e,t){return t.push(e),e}function B3(e,t){return(0,Qo.default)(e).call(e,t).join("")}function Mc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Uc,column:Ei,length:a,return:""}}function zo(e,t){return M3(Mc("",null,null,"",null,null,0),e,{length:-e.length},t)}function G3(){return Le}function J3(){return Le=ht>0?Ke(ki,--ht):0,Ei--,Le===10&&(Ei=1,Uc--),Le}function kt(){return Le=ht<jk?Ke(ki,ht++):0,Ei++,Le===10&&(Ei=1,Uc++),Le}function sr(){return Ke(ki,ht)}function yc(){return ht}function ca(e,t){return ia(ki,e,t)}function oa(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 Bk(e){return Uc=Ei=1,jk=nr(ki=e),ht=0,[]}function Gk(e){return ki="",e}function bc(e){return Fk(ca(ht-1,mf(e===91?e+2:e===40?e+1:e)))}function H3(e){for(;(Le=sr())&&Le<33;)kt();return oa(e)>2||oa(Le)>3?"":" "}function V3(e,t){for(;--t&&kt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return ca(e,yc()+(t<6&&sr()==32&&kt()==32))}function mf(e){for(;kt();)switch(Le){case e:return ht;case 34:case 39:e!==34&&e!==39&&mf(Le);break;case 40:e===41&&mf(e);break;case 92:kt();break}return ht}function $3(e,t){for(;kt()&&e+Le!==57&&!(e+Le===84&&sr()===47););return"/*"+ca(t,ht-1)+"*"+qc(e===47?e:kt())}function W3(e){for(;!oa(sr());)kt();return ca(e,ht)}function z3(e){return Gk(_c("",null,null,null,[""],e=Bk(e),0,[0],e))}function _c(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=kt()){case 40:if(m!=108&&Ke(A,u-1)==58){ff(A+=te(bc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=bc(_);break;case 9:case 10:case 13:case 32:A+=H3(m);break;case 92:A+=V3(yc()-1,7);continue;case 47:switch(sr()){case 42:case 47:pc(K3($3(kt(),yc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=nr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(A=te(A,/\f/g,"")),f>0&&nr(A)-u&&pc(f>32?GC(A+";",n,r,u-1):GC(te(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(pc(k=BC(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)_c(A,t,k,k,C,o,u,s,x);else switch(p===99&&Ke(A,3)===110?100:p){case 100:case 108:case 109:case 115:_c(e,k,k,n&&pc(BC(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:_c(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+nr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&J3()==125)continue}switch(A+=qc(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(nr(A)-1)*y,y=1;break;case 64:sr()===45&&(A+=bc(kt())),p=sr(),d=u=nr(E=A+=W3(yc())),_++;break;case 45:m===45&&nr(A)==2&&(v=0)}}return o}function BC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Rf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ia(e,u+1,u=U3(v=a[m])),E=e;y<f;++y)(E=Fk(v>0?p[y]+" "+_:te(_,/&\f/g,p[y])))&&(c[b++]=E);return Mc(e,t,r,i===0?Pf:s,c,l,d)}function K3(e,t,r){return Mc(e,t,r,Uk,qc(G3()),ia(e,2,-2),0)}function GC(e,t,r,n){return Mc(e,t,r,Of,ia(e,0,n),ia(e,n+1,-1),n)}function wi(e,t){for(var r="",n=Rf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Y3(e,t,r,n){switch(e.type){case q3:if(e.children.length)break;case L3:case Of:return e.return=e.return||e.value;case Uk:return"";case Mk:return e.return=e.value+"{"+wi(e.children,n)+"}";case Pf:e.value=e.props.join(",")}return nr(r=wi(e.children,n))?e.return=e.value+"{"+r+"}":""}function X3(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 Q3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jk(e,t){switch(F3(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Ac+e+nt+e+e;case 6828:case 4268:return ee+e+nt+e+e;case 6165:return ee+e+nt+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return ee+e+nt+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+nt+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+nt+te(e,"shrink","negative")+e;case 5292:return ee+e+nt+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+nt+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$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(nr(e)-1-t>6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Ac+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ff(e,"stretch")?Jk(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,nr(e)-3-(~ff(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Ke(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+nt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+nt+e+e}return e}function HC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ef(e,t,r){var n=[],i=ra(e,n,r);return n.length<2?r:i+t(n)}function WC(e){if(e==="top"){let t=0;Hk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${VC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${VC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+$C)})}else if(e==="center"){let t=0;Vk.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+$C)})}}function Rn(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield Yo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),$r(w(h4,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Yo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let c=setTimeout(()=>{o(),n.delete(c)},a.duration);n.add(c)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&($r(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Yo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var hf,KC,Fe,Cc,wc,ir,Sc,Xo,gf,kr,Qo,YC,XC,vf,yf,bf,hee,tf,Si,be,zp,fC,Zo,QC,Ne,mC,hC,gC,vC,yC,bC,_C,tk,Pe,Zt,er,Ar,bi,on,mc,F2,je,j2,ok,rt,Ic,Z,_f,wf,Sf,J2,ak,H2,xc,V2,Tc,Ii,ck,mt,De,Ai,aH,sH,cH,IC,lH,uH,dH,pH,fH,dk,mH,EC,hH,gH,vH,fk,uc,AC,yH,Ef,Oc,_H,SH,IH,hk,CC,Kp,kC,xC,rr,AH,gk,vk,TC,Rc,Af,yk,Cf,Nc,CH,kH,xH,TH,PH,cf,lf,bk,OH,kf,RH,PC,NH,DH,qH,UH,Yp,OC,Xp,Qp,MH,Zp,FH,jH,BH,GH,JH,HH,VH,RC,$H,WH,zH,NC,KH,YH,XH,DC,QH,ZH,e5,LC,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,qC,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,UC,I5,E5,A5,C5,k5,x5,T5,P5,O5,R5,N5,D5,L5,q5,U5,M5,F5,j5,B5,G5,J5,H5,V5,$5,W5,z5,K5,Y5,X5,Q5,Z5,e3,_k,wk,Sk,uf,t3,Ik,Ek,Ec,Yo,MC,i3,Dc,o3,Ck,kk,xk,c3,l3,u3,df,d3,Tk,Pk,Lc,xf,Ci,FC,nn,Ok,Pn,f3,m3,h3,g3,v3,dc,Rk,Tf,Ae,b3,_3,S3,I3,Jt,A3,C3,Nk,Dk,Lk,qk,sn,k3,x3,T3,P3,O3,R3,N3,D3,nt,Ac,ee,Uk,Pf,Of,L3,Mk,q3,U3,qc,M3,Uc,Ei,jk,ht,Le,ki,Z3,e4,t4,JC,r4,n4,i4,o4,a4,s4,c4,l4,u4,d4,p4,f4,VC,$C,Hk,Vk,Tr,zC,m4,h4,gee,cr=T(()=>{"use strict";ti();hf=se(jb(),1),KC=se(Yb(),1),Fe=se(l_(),1),Cc=se(E_(),1),wc=se(N_(),1),ir=se(X_(),1);Ns();Ns();Sc=se(Dw(),1),Xo=se(Bw(),1),gf=se(nE(),1),kr=se(fE(),1),Qo=se(SE(),1),YC=se(TE(),1),XC=se($0(),1),vf=se(aA(),1),yf=se(IA(),1),bf=se(DA(),1);Hp();Hp();hee=se(XA(),1),tf=se(pC(),1),Zo=0,QC=[],Ne=q,mC=Ne.__b,hC=Ne.__r,gC=Ne.diffed,vC=Ne.__c,yC=Ne.unmount,bC=Ne.__;Ne.__b=function(e){be=null,mC&&mC(e)},Ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bC&&bC(e,t)},Ne.__r=function(e){var t,r,n;hC&&hC(e),Si=0;var i=(be=e.__c).__H;i&&(zp===be?(i.__h=[],be.__h=[],(0,Fe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Fe.default)(r=i.__h).call(r,fc),(0,Fe.default)(n=i.__h).call(n,rf),i.__h=[],Si=0)),zp=be},Ne.diffed=function(e){var t;gC&&gC(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(QC.push(r)!==1&&fC===Ne.requestAnimationFrame||((fC=Ne.requestAnimationFrame)||L2)(D2)),(0,Fe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),zp=be=null},Ne.__c=function(e,t){(0,wc.default)(t).call(t,function(r){try{var n,i;(0,Fe.default)(n=r.__h).call(n,fc),r.__h=(0,hf.default)(i=r.__h).call(i,function(o){return!o.__||rf(o)})}catch(o){(0,wc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ne.__e(o,r.__v)}}),vC&&vC(e,t)},Ne.unmount=function(e){var t;yC&&yC(e);var r,n=e.__c;n&&n.__H&&((0,Fe.default)(t=n.__H.__).call(t,function(i){try{fc(i)}catch(o){r=o}}),n.__H=void 0,r&&Ne.__e(r,n.__v))};_C=typeof requestAnimationFrame=="function";tk={exports:{}},Pe=tk.exports={};(function(){try{typeof ir.default=="function"?Zt=ir.default:Zt=nf}catch(e){Zt=nf}try{typeof clearTimeout=="function"?er=clearTimeout:er=of}catch(e){er=of}})();Ar=[],bi=!1,mc=-1;Pe.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];Ar.push(new ik(e,t)),Ar.length===1&&!bi&&rk(nk)};ik.prototype.run=function(){this.fun.apply(null,this.array)};Pe.title="browser";Pe.browser=!0;Pe.env={};Pe.argv=[];Pe.version="";Pe.versions={};Pe.on=xr;Pe.addListener=xr;Pe.once=xr;Pe.off=xr;Pe.removeListener=xr;Pe.removeAllListeners=xr;Pe.emit=xr;Pe.prependListener=xr;Pe.prependOnceListener=xr;Pe.listeners=function(e){return[]};Pe.binding=function(e){throw new Error("process.binding is not supported")};Pe.cwd=function(){return"/"};Pe.chdir=function(e){throw new Error("process.chdir is not supported")};Pe.umask=function(){return 0};F2=tk.exports,je=q2(F2),j2=Sc.default||void 0||self;ok=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,Fe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(G2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=B2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Fe.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}(),rt="-ms-",Ic="-moz-",Z="-webkit-",_f="comm",wf="rule",Sf="decl",J2="@import",ak="@keyframes",H2=Math.abs,xc=String.fromCharCode,V2=vf.default;Tc=1,Ii=1,ck=0,mt=0,De=0,Ai="";aH=function(e,t,r){for(var n=0,i=0;n=i,i=ar(),n===38&&i===12&&(t[r]=1),!ta(i);)Ct();return aa(e,mt)},sH=function(e,t){var r=-1,n=44;do switch(ta(n)){case 0:n===38&&ar()===12&&(t[r]=1),e[r]+=aH(mt-1,t,r);break;case 2:e[r]+=gc(n);break;case 4:if(n===44){e[++r]=ar()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=xc(n)}while(n=Ct());return e},cH=function(e,t){return uk(sH(lk(e),t))},IC=new gf.default,lH=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&&!IC.get(r))&&!n){IC.set(e,!0);for(var i=[],o=cH(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},uH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},dH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",pH=function(e){var t;return e.type==="comm"&&(0,kr.default)(t=e.children).call(t,dH)>-1},fH=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 c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(pH(c))return;break}}(0,Fe.default)(i).call(i,function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},dk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},mH=function(e,t){for(var r=e-1;r>=0;r--)if(!dk(t[r]))return!0;return!1},EC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},hH=function(e,t,r){dk(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."),EC(e)):mH(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),EC(e)))};gH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Sf:e.return=pk(e.value,e.length);break;case ak:return _i([Wo(e,{value:ie(e.value,"@","@"+Z)})],n);case wf:if(e.length)return z2(e.props,function(i){switch(W2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _i([Wo(e,{props:[ie(i,/:(read-\w+)/,":"+Ic+"$1")]})],n);case"::placeholder":return _i([Wo(e,{props:[ie(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Wo(e,{props:[ie(i,/:(plac\w+)/,":"+Ic+"$1")]}),Wo(e,{props:[ie(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},vH=[gH],fk=function(e){var t=e.key;if(je.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,Fe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,kr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||vH;if(je.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,Fe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[lH,uH];je.env.NODE_ENV!=="production"&&c.push(fH({get compat(){return f.compat}}),hH);{var l,d=[nH,je.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==_f&&l.insert(m.value+"{}"))}:oH(function(m){l.insert(m)})],u=iH((0,Cc.default)(c).call(c,n,d)),p=function(m){return _i(tH(m),u)};s=function(m,v,b,y){l=b,je.env.NODE_ENV!=="production"&&(0,Qo.default)(v)!==void 0&&(l={insert:function(_){b.insert(_+(0,Qo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new ok({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},uc={exports:{}};mk();yH=!0;Ef=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||yH===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Oc=function(e,t,r){Ef(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)}};_H={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};SH=/[A-Z]|^ms/g,IH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hk=function(e){return e.charCodeAt(1)===45},CC=function(e){return e!=null&&typeof e!="boolean"},Kp=wH(function(e){return hk(e)?e:e.replace(SH,"-$&").toLowerCase()}),kC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IH,function(r,n,i){return rr={name:n,styles:i,next:rr},n})}return _H[e]!==1&&!hk(e)&&typeof t=="number"&&t!==0?t+"px":t};xC=/label:\s*([^\s;{]+)\s*(;|$)/g;AH=function(e){return e()},gk=Bd?Bd:!1,vk=gk||AH,TC=gk||di,Rc={}.hasOwnProperty,Af=wn(typeof HTMLElement<"u"?fk({key:"css"}):null);je.env.NODE_ENV!=="production"&&(Af.displayName="EmotionCacheContext");yk=Af.Provider,Cf=function(e){return Jd(function(t,r){var n=fi(Af);return e(t,n,r)})},Nc=wn({});je.env.NODE_ENV!=="production"&&(Nc.displayName="EmotionThemeContext");CH=function(e){var t=e.split(".");return t[t.length-1]},kH=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 CH(t[1])},xH=new XC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),TH=function(e){return e.replace(/\$/g,"-")},PH=function(e){if(e)for(var t=e.split(`
|
|
24
|
+
`),r=0;r<t.length;r++){var n=kH(t[r]);if(n){if(xH.has(n))break;if(/^[A-Z]/.test(n))return TH(n)}}},cf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lf="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",bk=function(e,t){var r,n;if(je.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,kr.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)Rc.call(t,o)&&(i[o]=t[o]);if(i[cf]=e,je.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,kr.default)(n=t.css.name).call(n,"-")===-1)){var a=PH(new Error().stack);a&&(i[lf]=a)}return i},OH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ef(t,r,n),vk(function(){return Oc(t,r,n)}),null},kf=Cf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[cf],a=[i],s="";typeof e.className=="string"?s=ra(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=an(a,void 0,fi(Nc));if(je.env.NODE_ENV!=="production"&&(0,kr.default)(n=c.name).call(n,"-")===-1){var l=e[lf];l&&(c=an([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)Rc.call(e,u)&&u!=="css"&&u!==cf&&(je.env.NODE_ENV==="production"||u!==lf)&&(d[u]=e[u]);return d.ref=r,d.className=s,et($e,null,et(OH,{cache:t,serialized:c,isStringTag:typeof o=="string"}),et(o,d))});je.env.NODE_ENV!=="production"&&(kf.displayName="EmotionCssPropInternal");RH={version:"11.10.5"},PC=!1,NH=Cf(function(e,t){je.env.NODE_ENV!=="production"&&!PC&&(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?"),PC=!0);var r=e.styles,n=an([r],void 0,fi(Nc)),i=pi();return TC(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,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),TC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Oc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});je.env.NODE_ENV!=="production"&&(NH.displayName="EmotionGlobal");DH=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,Xo.default)(o))a=e(o);else{je.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};qH=function(e){var t=e.cache,r=e.serializedArr;return vk(function(){for(var n=0;n<r.length;n++)Oc(t,r[n],!1)}),null},UH=Cf(function(e,t){var r=!1,n=[],i=function(){if(r&&je.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var u=an(l,t.registered);return n.push(u),Ef(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&je.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];return LH(t.registered,i,DH(l))},a={css:i,cx:o,theme:fi(Nc)},s=e.children(a);return r=!0,et($e,null,et(qH,{cache:t,serializedArr:n}),s)});je.env.NODE_ENV!=="production"&&(UH.displayName="EmotionClassNames");je.env.NODE_ENV!=="production"&&(Yp=!0,OC=typeof jest<"u"||typeof vi<"u",Yp&&!OC&&(Xp=typeof Sc.default<"u"?Sc.default:Yp?window:j2,Qp="__EMOTION_REACT_"+RH.version.split(".")[0]+"__",Xp[Qp]&&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."),Xp[Qp]=!0));MH=0;Zp={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"}},FH=U`
|
|
25
25
|
width: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
27
|
margin: 0 auto;
|
|
@@ -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
|
-
`,BH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=or(!1),[l,d]=or(null),[u,p]=or(!1),f=Ko(null),m=Ko(null),v=Ko(!1);Rn(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=jH,O.head.appendChild(F);let J={overflow:O.body.style.overflow,position:O.body.style.position,width:O.body.style.width};return O.body.style.overflow="hidden",O.body.style.position="fixed",O.body.style.width="100%",()=>{O.head.contains(F)&&O.head.removeChild(F),O.body.style.overflow=J.overflow,O.body.style.position=J.position,O.body.style.width=J.width}}},[s]),Rn(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Dt(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Dt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),_=Dt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),E=Dt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Dt(()=>s&&!v.current,[s]);if(Rn(()=>{if(a){let O={show:E,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[E,y,C,a]),!s)return null;let x=o==="center",k=B(P({},Zp.drawerBackdrop),{alignItems:x?"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:l==="enter"||u?1:0,transition:"opacity 0.3s"},H=x?B(P({},Zp.centerDrawer),{pointerEvents:"auto"}):B(P({},Zp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!x&&(H.transform="translateY(100%)");let ue=l?x?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return w("div",{ref:f,style:k,children:[w("div",{style:A,className:N,onClick:_}),w("div",{ref:m,style:B(P({},H),{opacity:x&&l===null&&!u?0:1}),className:`${x&&l==="leave"?"fadeOut":ue} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:w("div",{style:FH.styles,children:e})})]})},GH=Jd(BH);JH={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"},HH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},VH={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!"},RC={jolicoin:JH,joligem:HH,loginGuide:VH},$H={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"},WH={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"},zH={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"},NC={jolicoin:$H,joligem:WH,loginGuide:zH},KH={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"},YH={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"},XH={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!"},DC={jolicoin:KH,joligem:YH,loginGuide:XH},QH={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"},ZH={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"},e5={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!"},LC={jolicoin:QH,joligem:ZH,loginGuide:e5},t5={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"},r5={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"},n5={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!"},i5={jolicoin:t5,joligem:r5,loginGuide:n5},o5={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"},a5={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"},s5={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!"},c5={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},u5={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"},d5={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!"},qC={jolicoin:l5,joligem:u5,loginGuide:d5},p5={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"},f5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},m5={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!"},h5={jolicoin:p5,joligem:f5,loginGuide:m5},g5={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"},v5={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"},y5={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"},b5={jolicoin:g5,joligem:v5,loginGuide:y5},_5={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"},w5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},S5={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!"},UC={jolicoin:_5,joligem:w5,loginGuide:S5},I5={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"},E5={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"},A5={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!"},C5={jolicoin:I5,joligem:E5,loginGuide:A5},k5={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"},x5={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"},T5={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"},P5={jolicoin:k5,joligem:x5,loginGuide:T5},O5={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"},R5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},N5={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!"},D5={jolicoin:O5,joligem:R5,loginGuide:N5},L5={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"},q5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},U5={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 !"},M5={jolicoin:L5,joligem:q5,loginGuide:U5},F5={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"},j5={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"},B5={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!"},G5={jolicoin:F5,joligem:j5,loginGuide:B5},J5={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"},H5={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"},V5={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!"},$5={jolicoin:J5,joligem:H5,loginGuide:V5},W5={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"},z5={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"},K5={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!"},Y5={jolicoin:W5,joligem:z5,loginGuide:K5},X5={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"},Q5={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"},Z5={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!"},e3={jolicoin:X5,joligem:Q5,loginGuide:Z5},_k={en:{translations:RC},en_GB:{translations:RC},zh:{translations:NC},"zh-Hans":{translations:NC},"zh-Hant":{translations:P5},id:{translations:DC},in:{translations:DC},ms:{translations:LC},my:{translations:LC},th:{translations:i5},vi:{translations:c5},fil:{translations:qC},tl:{translations:qC},es:{translations:h5},ja:{translations:b5},pt:{translations:UC},pt_PT:{translations:UC},ko:{translations:C5},de:{translations:D5},fr:{translations:M5},hi:{translations:G5},ru:{translations:$5},bn:{translations:Y5},tr:{translations:e3}},wk=Sn(void 0),Sk=({definition:e,children:t})=>{let r={translations:e};return w(wk.Provider,{value:r,children:t})},uf=null,t3={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"},Ik=e=>{uf=e},Ek=()=>{var e;if(typeof uf!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=uf();return(e=t3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ec=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=fk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=n3(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 g(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"&&(Ak(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"))}},Yo=new Ec(99999998,"auto"),MC=new Ec(99999999,"none"),i3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=sa(),c={container:U`
|
|
72
|
+
`,BH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=or(!1),[l,d]=or(null),[u,p]=or(!1),f=Ko(null),m=Ko(null),v=Ko(!1);On(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=jH,O.head.appendChild(F);let J={overflow:O.body.style.overflow,position:O.body.style.position,width:O.body.style.width};return O.body.style.overflow="hidden",O.body.style.position="fixed",O.body.style.width="100%",()=>{O.head.contains(F)&&O.head.removeChild(F),O.body.style.overflow=J.overflow,O.body.style.position=J.position,O.body.style.width=J.width}}},[s]),On(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Dt(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Dt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),_=Dt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),E=Dt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Dt(()=>s&&!v.current,[s]);if(On(()=>{if(a){let O={show:E,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[E,y,C,a]),!s)return null;let x=o==="center",k=B(P({},Zp.drawerBackdrop),{alignItems:x?"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:l==="enter"||u?1:0,transition:"opacity 0.3s"},H=x?B(P({},Zp.centerDrawer),{pointerEvents:"auto"}):B(P({},Zp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!x&&(H.transform="translateY(100%)");let ue=l?x?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return w("div",{ref:f,style:k,children:[w("div",{style:A,className:N,onClick:_}),w("div",{ref:m,style:B(P({},H),{opacity:x&&l===null&&!u?0:1}),className:`${x&&l==="leave"?"fadeOut":ue} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:w("div",{style:FH.styles,children:e})})]})},GH=Jd(BH);JH={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"},HH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},VH={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!"},RC={jolicoin:JH,joligem:HH,loginGuide:VH},$H={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"},WH={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"},zH={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"},NC={jolicoin:$H,joligem:WH,loginGuide:zH},KH={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"},YH={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"},XH={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!"},DC={jolicoin:KH,joligem:YH,loginGuide:XH},QH={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"},ZH={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"},e5={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!"},LC={jolicoin:QH,joligem:ZH,loginGuide:e5},t5={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"},r5={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"},n5={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!"},i5={jolicoin:t5,joligem:r5,loginGuide:n5},o5={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"},a5={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"},s5={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!"},c5={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},u5={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"},d5={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!"},qC={jolicoin:l5,joligem:u5,loginGuide:d5},p5={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"},f5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},m5={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!"},h5={jolicoin:p5,joligem:f5,loginGuide:m5},g5={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"},v5={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"},y5={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"},b5={jolicoin:g5,joligem:v5,loginGuide:y5},_5={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"},w5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},S5={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!"},UC={jolicoin:_5,joligem:w5,loginGuide:S5},I5={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"},E5={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"},A5={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!"},C5={jolicoin:I5,joligem:E5,loginGuide:A5},k5={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"},x5={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"},T5={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"},P5={jolicoin:k5,joligem:x5,loginGuide:T5},O5={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"},R5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},N5={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!"},D5={jolicoin:O5,joligem:R5,loginGuide:N5},L5={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"},q5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},U5={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 !"},M5={jolicoin:L5,joligem:q5,loginGuide:U5},F5={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"},j5={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"},B5={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!"},G5={jolicoin:F5,joligem:j5,loginGuide:B5},J5={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"},H5={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"},V5={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!"},$5={jolicoin:J5,joligem:H5,loginGuide:V5},W5={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"},z5={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"},K5={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!"},Y5={jolicoin:W5,joligem:z5,loginGuide:K5},X5={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"},Q5={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"},Z5={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!"},e3={jolicoin:X5,joligem:Q5,loginGuide:Z5},_k={en:{translations:RC},en_GB:{translations:RC},zh:{translations:NC},"zh-Hans":{translations:NC},"zh-Hant":{translations:P5},id:{translations:DC},in:{translations:DC},ms:{translations:LC},my:{translations:LC},th:{translations:i5},vi:{translations:c5},fil:{translations:qC},tl:{translations:qC},es:{translations:h5},ja:{translations:b5},pt:{translations:UC},pt_PT:{translations:UC},ko:{translations:C5},de:{translations:D5},fr:{translations:M5},hi:{translations:G5},ru:{translations:$5},bn:{translations:Y5},tr:{translations:e3}},wk=wn(void 0),Sk=({definition:e,children:t})=>{let r={translations:e};return w(wk.Provider,{value:r,children:t})},uf=null,t3={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"},Ik=e=>{uf=e},Ek=()=>{var e;if(typeof uf!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=uf();return(e=t3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ec=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=fk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=n3(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 g(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"&&(Ak(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"))}},Yo=new Ec(99999998,"auto"),MC=new Ec(99999999,"none"),i3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=sa(),c={container:U`
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
height: 100%;
|
|
@@ -106,7 +106,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
106
106
|
${c.button}
|
|
107
107
|
background-color: ${l.variant==="primary"?"#1677ff":"#fff"};
|
|
108
108
|
color: ${l.variant==="primary"?"#fff":"#333"};
|
|
109
|
-
`.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},Dc=e=>{let t=!1,r=Ek(),n=_k[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function c(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)),$r(w(yk,{value:a,children:w(Sk,{definition:n,children:w(GH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:w(i3,B(P({},e),{onClose:u}))})})}),s)}function l(){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))}Yo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Yo.acquire();o=p.iframe,a=p.emotionCache,t=!0,c(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&c(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},o3=(e,t={threshold:.6})=>{let r=Ko(null),n=Ko(!1),i=Dt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return
|
|
109
|
+
`.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},Dc=e=>{let t=!1,r=Ek(),n=_k[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function c(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)),$r(w(yk,{value:a,children:w(Sk,{definition:n,children:w(GH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:w(i3,B(P({},e),{onClose:u}))})})}),s)}function l(){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))}Yo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Yo.acquire();o=p.iframe,a=p.emotionCache,t=!0,c(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&c(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},o3=(e,t={threshold:.6})=>{let r=Ko(null),n=Ko(!1),i=Dt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return On(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};Ck=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Qe(a,["children","fluid","className","style"]);let s=P({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",B(P({className:r,style:s},i),{children:e}))},kk=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=Qe(c,["children","gutter","justify","align","className","style"]);let l={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=P({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:l[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?s3(e,t):e;return w("div",B(P({className:i,style:u},a),{children:p}))};xk=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:c="",style:l={}}=p,d=Qe(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=P({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},l);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}%`),w("div",B(P({className:c,style:f},d),{children:e}))},c3=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Xr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Xr(()=>{},[e,t]);return w(xk,{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:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(a3,{src:(c=(s=e.logo)!=null?s:e.cover)!=null?c:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),w("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)},l3=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Qe(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(Ck,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(kk,{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(c=>w(c3,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},u3=Gd(l3),df=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(df||{}),d3=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=or(null),s=Dt(u=>{i==null||i({type:u.type===df.Quit?"quit":"dismiss"})},[i]),c=Dt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=sa();if(!t.length)return w($e,{});let d=Dt(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 On(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&$r(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(u3,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===df.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),w("div",{ref:d})},Tk=e=>{let t=Dc({title:e.title,content:w(d3,{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},Pk="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=",Lc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",xf="https://fe-oss.jolibox.com/static/coin/gem.png";Ci=()=>{let e=N2(wk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=p3(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}},FC=({text:e,initialFontSize:t,styles:r})=>w("span",{style:r,children:w("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})}),nn={coinInfo:U`
|
|
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
|
-
`},Ok=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Lc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=
|
|
291
|
+
`},Ok=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Lc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=Ci(),l=14,d=Cr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return w("div",{style:nn.coinInfo.styles,children:[!i&&w("div",{style:nn.coinAmount.styles,children:[w(FC,{text:c("jolicoin.price"),initialFontSize:l,styles:nn.coinLabelContainer.styles}),w("div",{style:nn.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?nn.gemIcon.styles:nn.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:nn.coinAmountBalance.styles,children:w(FC,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:nn.coinValueText.styles})})]})},Pn={card:U`
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
294
294
|
align-items: center;
|
|
@@ -334,7 +334,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
334
334
|
flex-direction: column;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
-webkit-tap-highlight-color: transparent;
|
|
337
|
-
`,h3=e=>w("div",{style:f3.styles,children:w("div",{style:m3.styles,children:w("div",{style:`${
|
|
337
|
+
`,h3=e=>w("div",{style:f3.styles,children:w("div",{style:m3.styles,children:w("div",{style:`${Pn.card.styles} ${e.option.id===e.selectedId?Pn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Pn.coinContainer.styles,children:[w("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Pn.gemIcon.styles:Pn.coinIcon.styles}),w("span",{style:Pn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),w("div",{style:Pn.price.styles,children:e.option.price})]})})}),g3=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Lc})=>{let o=sa(),a=s=>{r==null||r(s)};return w(Ck,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(kk,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>w(xk,{span:o==="landscape"?4:8,children:w(h3,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},v3=Gd(g3);dc={toggleSwitch:U`
|
|
338
338
|
position: relative;
|
|
339
339
|
display: inline-block;
|
|
340
340
|
width: 33px;
|
|
@@ -459,12 +459,12 @@ 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
|
-
`},b3=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:c})=>{let[l,d]=or(r),u=sa(),{t:p}=
|
|
462
|
+
`},b3=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:c})=>{let[l,d]=or(r),u=sa(),{t:p}=Ci(),f=()=>{i(l)},m=Cr(()=>n==="JOLI_GEM"?xf:Lc,[n]),v=Cr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=Cr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Dt(()=>{d(!l),a(!l)},[l]);return w("div",{style:`${Ae.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:Ae.header.styles,children:[w(Ok,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),w("button",{style:Ae.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w(Tf,{})})]}),w("div",{style:Ae.content.styles,children:[w("h2",{style:Ae.title.styles,children:p(v)}),!r&&w("div",{style:Ae.autoDeductOption.styles,children:[w("span",{style:U`
|
|
463
463
|
font-size: 12px;
|
|
464
464
|
font-weight: 400;
|
|
465
465
|
line-height: 1.2;
|
|
466
466
|
color: #979797;
|
|
467
|
-
`.styles,children:p(b)}),w(Rk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),w("section",{style:`${Ae.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ae.confirmButton.styles} ${Ae.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${Ae.cancelButton.styles} ${Ae.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},_3=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:c,confirmButtonKey:l,cancelButtonKey:d})=>{let[u,p]=or(r),{t:f}=
|
|
467
|
+
`.styles,children:p(b)}),w(Rk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),w("section",{style:`${Ae.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ae.confirmButton.styles} ${Ae.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${Ae.cancelButton.styles} ${Ae.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},_3=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:c,confirmButtonKey:l,cancelButtonKey:d})=>{let[u,p]=or(r),{t:f}=Ci(),[m,v]=or(()=>{var k,A;return((k=n.find(H=>H.defaultSelected))==null?void 0:k.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),b=sa(),y=()=>{o(m)},_=Dt(k=>{console.log(k),v(k),c(k)},[]),E=Dt(()=>{p(!u),s(!u)},[u]),C=Cr(()=>i==="JOLI_GEM"?xf:Lc,[i]),x=Cr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),w("div",{style:Ae.modal.styles,children:[w("div",{style:Ae.header.styles,children:[w(Ok,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),w("button",{style:Ae.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:w(Tf,{})})]}),w("div",{style:Ae.content.styles,children:[w("div",{style:U`
|
|
468
468
|
padding: 16px 0px;
|
|
469
469
|
`.styles,children:w(v3,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:C,selectedId:m,currency:i,onSelect:k=>_(k.id)})}),!r&&w("div",{style:Ae.autoDeductOption.styles,children:[w("span",{style:U`
|
|
470
470
|
font-size: 12px;
|
|
@@ -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
|
-
`}),A3={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()},C3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=ki(),l=A3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${Jt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(w3,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:Jt.header.styles,children:w("button",{style:`${Jt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Tf,{})})}),w("div",{style:Jt.introduct.styles,children:[s?w("span",{style:Jt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,w("span",{style:Jt.introductTitle.styles,children:w(pf,{children:c("loginGuide.introduct"),values:{coin:w("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${Jt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(E3,{children:w(pf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:w($e,{children:[w("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${Jt.confirmButton.styles} ${Jt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),w("button",{style:`${Jt.cancelButton.styles} ${Jt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},Nk=e=>{let t=Dc({title:"",content:w(b3,{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},Dk=e=>{let t=Dc({title:"",content:w(_3,{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},Lk=e=>{let t=Dc({title:"",content:w(C3,{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},qk=new Map,sn=(e,t)=>{qk.set(e,t)};sn(/^\{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 w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});sn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Pk;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});sn(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:xf,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});k3=/^\{slot-i18n-(.+?)\}/,x3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ki(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};sn(k3,(e,t)=>{var n;let r=e[1];return r?w(x3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});T3=/^\{slot-i18ntran-(.+?)\}/,P3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=ki(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return w(pf,{children:o||n,values:P(P({},t),a)})},O3={coin:e=>w($e,{children:[w("img",{src:Pk,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};sn(T3,(e,t)=>{var n,i;let r=e[1];return r?w(P3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:O3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});R3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";sn(/^\{slot-success\}/,(e,t)=>w("img",{src:R3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));N3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";sn(/^\{slot-error\}/,(e,t)=>w("img",{src:N3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));D3="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=";sn(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=D3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});nt="-ms-",Ac="-moz-",ee="-webkit-",Uk="comm",Pf="rule",Of="decl",L3="@import",Mk="@keyframes",q3="@layer",U3=Math.abs,qc=String.fromCharCode,M3=vf.default;Uc=1,Ai=1,jk=0,ht=0,Le=0,xi="";Z3=function(e,t,r){for(var n=0,i=0;n=i,i=sr(),n===38&&i===12&&(t[r]=1),!oa(i);)kt();return ca(e,ht)},e4=function(e,t){var r=-1,n=44;do switch(oa(n)){case 0:n===38&&sr()===12&&(t[r]=1),e[r]+=Z3(ht-1,t,r);break;case 2:e[r]+=bc(n);break;case 4:if(n===44){e[++r]=sr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qc(n)}while(n=kt());return e},t4=function(e,t){return Gk(e4(Bk(e),t))},JC=new gf.default,r4=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&&!JC.get(r))&&!n){JC.set(e,!0);for(var i=[],o=t4(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},n4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};i4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Of:e.return=Jk(e.value,e.length);break;case Mk:return Si([zo(e,{value:te(e.value,"@","@"+ee)})],n);case Pf:if(e.length)return B3(e.props,function(i){switch(j3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Si([zo(e,{props:[te(i,/:(read-\w+)/,":"+Ac+"$1")]})],n);case"::placeholder":return Si([zo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),zo(e,{props:[te(i,/:(plac\w+)/,":"+Ac+"$1")]}),zo(e,{props:[te(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},o4=[i4],a4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Fe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,kr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||o4,i={},o,a=[];o=e.container||document.head,(0,Fe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[r4,n4];{var l,d=[Y3,Q3(function(m){l.insert(m)})],u=X3((0,Cc.default)(c).call(c,n,d)),p=function(m){return Si(z3(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new ok({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};s4=function(e){var t=a4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered,void 0);return Oc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered),d="animation-"+l.name;return HC(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered);HC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return ef(t.registered,r,c4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Fe.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,tf.default)(ra).call(ra,null,t.registered),merge:(0,tf.default)(ef).call(ef,null,t.registered,r)}},c4=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,Xo.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},l4=s4({key:"css"}),u4=l4.css,d4=(e,t)=>{var a;let r=P({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 w("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of qk.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<c&&(s=m,c=m.index,l=u)}if(s&&l){if(c>i){let d=e.substring(i,c);n.push(w("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=u4`
|
|
552
|
+
`}),A3={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()},C3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=Ci(),l=A3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${Jt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(w3,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:Jt.header.styles,children:w("button",{style:`${Jt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Tf,{})})}),w("div",{style:Jt.introduct.styles,children:[s?w("span",{style:Jt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,w("span",{style:Jt.introductTitle.styles,children:w(pf,{children:c("loginGuide.introduct"),values:{coin:w("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${Jt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(E3,{children:w(pf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:w($e,{children:[w("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${Jt.confirmButton.styles} ${Jt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),w("button",{style:`${Jt.cancelButton.styles} ${Jt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},Nk=e=>{let t=Dc({title:"",content:w(b3,{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},Dk=e=>{let t=Dc({title:"",content:w(_3,{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},Lk=e=>{let t=Dc({title:"",content:w(C3,{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},qk=new Map,sn=(e,t)=>{qk.set(e,t)};sn(/^\{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 w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});sn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Pk;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});sn(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:xf,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});k3=/^\{slot-i18n-(.+?)\}/,x3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ci(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};sn(k3,(e,t)=>{var n;let r=e[1];return r?w(x3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});T3=/^\{slot-i18ntran-(.+?)\}/,P3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Ci(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return w(pf,{children:o||n,values:P(P({},t),a)})},O3={coin:e=>w($e,{children:[w("img",{src:Pk,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};sn(T3,(e,t)=>{var n,i;let r=e[1];return r?w(P3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:O3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});R3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";sn(/^\{slot-success\}/,(e,t)=>w("img",{src:R3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));N3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";sn(/^\{slot-error\}/,(e,t)=>w("img",{src:N3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));D3="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=";sn(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=D3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});nt="-ms-",Ac="-moz-",ee="-webkit-",Uk="comm",Pf="rule",Of="decl",L3="@import",Mk="@keyframes",q3="@layer",U3=Math.abs,qc=String.fromCharCode,M3=vf.default;Uc=1,Ei=1,jk=0,ht=0,Le=0,ki="";Z3=function(e,t,r){for(var n=0,i=0;n=i,i=sr(),n===38&&i===12&&(t[r]=1),!oa(i);)kt();return ca(e,ht)},e4=function(e,t){var r=-1,n=44;do switch(oa(n)){case 0:n===38&&sr()===12&&(t[r]=1),e[r]+=Z3(ht-1,t,r);break;case 2:e[r]+=bc(n);break;case 4:if(n===44){e[++r]=sr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qc(n)}while(n=kt());return e},t4=function(e,t){return Gk(e4(Bk(e),t))},JC=new gf.default,r4=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&&!JC.get(r))&&!n){JC.set(e,!0);for(var i=[],o=t4(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},n4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};i4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Of:e.return=Jk(e.value,e.length);break;case Mk:return wi([zo(e,{value:te(e.value,"@","@"+ee)})],n);case Pf:if(e.length)return B3(e.props,function(i){switch(j3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([zo(e,{props:[te(i,/:(read-\w+)/,":"+Ac+"$1")]})],n);case"::placeholder":return wi([zo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),zo(e,{props:[te(i,/:(plac\w+)/,":"+Ac+"$1")]}),zo(e,{props:[te(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},o4=[i4],a4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Fe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,kr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||o4,i={},o,a=[];o=e.container||document.head,(0,Fe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[r4,n4];{var l,d=[Y3,Q3(function(m){l.insert(m)})],u=X3((0,Cc.default)(c).call(c,n,d)),p=function(m){return wi(z3(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new ok({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};s4=function(e){var t=a4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered,void 0);return Oc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered),d="animation-"+l.name;return HC(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=an(s,t.registered);HC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return ef(t.registered,r,c4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Fe.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,tf.default)(ra).call(ra,null,t.registered),merge:(0,tf.default)(ef).call(ef,null,t.registered,r)}},c4=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,Xo.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},l4=s4({key:"css"}),u4=l4.css,d4=(e,t)=>{var a;let r=P({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 w("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of qk.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<c&&(s=m,c=m.index,l=u)}if(s&&l){if(c>i){let d=e.substring(i,c);n.push(w("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=u4`
|
|
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]:w("div",{className:o,children:n})},p4=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=or(!0);
|
|
563
|
+
`;return n.length===1?n[0]:w("div",{className:o,children:n})},p4=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=or(!0);On(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=Cr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=U`
|
|
564
564
|
position: fixed;
|
|
565
565
|
left: 50%;
|
|
566
566
|
padding: 10px 16px;
|
|
@@ -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
|
-
`,h4=()=>w("div",{style:zC.container,children:[w("style",{children:m4}),w("div",{style:zC.spinner})]});gee=Nn()});function $k(){return g(this,null,function*(){if(Nf)return Nf;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield X(t);return Nf=r,r})}function Wk(){return g(this,null,function*(){let e=new pt;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(Df)return e.resolve(!0),e.promise;let t=yield $k();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Df=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:K.View},o));let a=Tk({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(Df=!1,s.type){case"quit":j("RecommendedGuide",{eventType:K.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:K.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;g4(l),j("GameItem",{eventType:K.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:K.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Nf,g4,Df,zk=T(()=>{"use strict";$();ce();R();cr();ft();wt();Nf=null;$k();g4=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:o})},Df=!1});function y4(e){let t=P(P({},v4),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:c}=t,l=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:_,containerTransition:E,iframeTransition:C}=p();fe=document.createElement("div"),fe.id="jolibox-modal-overlay",fe.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:${_}; opacity:0; visibility:hidden;`,oe=document.createElement("div"),oe.id="jolibox-modal-container",oe.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:${E};`;let x=document.createElement("div");x.id="jolibox-modal-loading",x.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 k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);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;",Lt=document.createElement("iframe"),Lt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Lt.src=r,Lt.onload=()=>{x.parentNode&&x.parentNode.removeChild(x),Lt.style.opacity="1",v(),c==null||c(),Se.emit("onModalIframeLoaded",{url:r})},A.appendChild(Lt),A.appendChild(x),oe.appendChild(A),i){let H=document.createElement("div");H.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;",H.innerHTML="\u2715",H.onclick=y,oe.appendChild(H)}fe.appendChild(oe),document.body.appendChild(fe),fe.addEventListener("click",function(H){H.target===fe&&y()}),o&&b()}function v(){!fe||!oe||u||(fe.style.visibility="visible",a?requestAnimationFrame(()=>{fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!oe)return;let _=x=>{l=x.touches[0].clientY},E=x=>{if(!u)return;d=x.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),x.preventDefault())},C=()=>{!u||!oe||(oe.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():oe.style.transform="translateY(0)")};oe.addEventListener("touchstart",_),oe.addEventListener("touchmove",E),oe.addEventListener("touchend",C)}function y(){!fe||!oe||!u||(a?(oe.style.transform="translateY(100%)",fe.style.opacity="0"):fe.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{fe&&(fe.remove(),fe=null,oe=null,Lt=null,s==null||s(),Se.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function Kk(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:y4}),()=>{window.joliboxUI=void 0,fe&&fe.parentNode&&fe.parentNode.removeChild(fe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Lt&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),fe=null,oe=null,Lt=null}}var v4,fe,oe,Lt,Yk=T(()=>{"use strict";ce();$();R();v4={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},fe=null,oe=null,Lt=null});var rx,jc,qf,Bc,Pi,nx,Oi,ix,ox,ax,Ti,Xk,Fc,Qk,b4,sx,Uf,Zk,cx,_4,ex,Lf,lx,tx,w4,ux,dx=T(()=>{rx=-1,jc=function(e){addEventListener("pageshow",function(t){t.persisted&&(rx=t.timeStamp,e(t))},!0)},qf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Bc=function(){var e=qf();return e&&e.activationStart||0},Pi=function(e,t){var r=qf(),n="navigate";return rx>=0?n="back-forward-cache":r&&(document.prerendering||Bc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},nx=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Oi=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},ix=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ox=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},ax=function(e){var t=!1;return function(){t||(e(),t=!0)}},Ti=-1,Xk=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Fc=function(e){document.visibilityState==="hidden"&&Ti>-1&&(Ti=e.type==="visibilitychange"?e.timeStamp:0,b4())},Qk=function(){addEventListener("visibilitychange",Fc,!0),addEventListener("prerenderingchange",Fc,!0)},b4=function(){removeEventListener("visibilitychange",Fc,!0),removeEventListener("prerenderingchange",Fc,!0)},sx=function(){return Ti<0&&(Ti=Xk(),Qk(),jc(function(){setTimeout(function(){Ti=Xk(),Qk()},0)})),{get firstHiddenTime(){return Ti}}},Uf=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Zk=[1800,3e3],cx=function(e,t){t=t||{},Uf(function(){var r,n=sx(),i=Pi("FCP"),o=nx("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Bc(),0),i.entries.push(s),r(!0)))})});o&&(r=Oi(e,i,Zk,t.reportAllChanges),jc(function(a){i=Pi("FCP"),r=Oi(e,i,Zk,t.reportAllChanges),ix(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},_4=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=ax(e),document.visibilityState==="hidden"?e():(r=t(e),ox(e)),r},ex=[2500,4e3],Lf={},lx=function(e,t){t=t||{},Uf(function(){var r,n=sx(),i=Pi("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Bc(),0),i.entries=[l],r())})},a=nx("largest-contentful-paint",o);if(a){r=Oi(e,i,ex,t.reportAllChanges);var s=ax(function(){Lf[i.id]||(o(a.takeRecords()),a.disconnect(),Lf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return _4(s)},{once:!0,capture:!0})}),ox(s),jc(function(c){i=Pi("LCP"),r=Oi(e,i,ex,t.reportAllChanges),ix(function(){i.value=performance.now()-c.timeStamp,Lf[i.id]=!0,r(!0)})})}})},tx=[800,1800],w4=function e(t){document.prerendering?Uf(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},ux=function(e,t){t=t||{};var r=Pi("TTFB"),n=Oi(e,r,tx,t.reportAllChanges);w4(function(){var i=qf();i&&(r.value=Math.max(i.responseStart-Bc(),0),r.entries=[i],n(!0),jc(function(){r=Pi("TTFB",0),(n=Oi(e,r,tx,t.reportAllChanges))(!0)}))})}});var gx={};Bh(gx,{config:()=>R4});function I4(){_n.on("isAdShowing",e=>{Hc=e,Jr(Hc)&&I.mpType==="game"&&L("updateContainerConfigSync",{displayCapsuleButton:!Hc,webviewId:I.webviewId})})}function E4(){Se.on("onInterceptSystemExit",({intercept:e})=>{fx=e})}function A4(){Se.on("onInterceptBackPress",({intercept:e})=>{S4=e}),we("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;hx(t),Se.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function C4(){Se.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:$c,timestamp:Date.now()})})}function k4(){we("onI18nChanged",({language:e})=>{Se.emit("onI18nChanged",{i18n:e})})}function px(e){I.mpType==="game"&&It.start(e)}function x4(){we("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),Se.emit("LifecycleEvent.onReady",P({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:$c,timestamp:Date.now()}),ye("onJoliboxHideLoading")||px(t),Ik(()=>I.language)}),we("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;hx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),we("onJoliboxHideLoading",({duration:e})=>{px(e)})}function T4(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Gc==null||Gc(),Jc==null||Jc(),It.close(Date.now()-$c)},t=()=>Hc||fx;Rt.onDoExit(()=>g(this,null,function*(){return t()?!0:Jr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):Vc!=null&&Vc.canShowRecommended&&!mx&&(yield Wk())?!0:(e(),!1)})),Rt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function P4(){cx(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),lx(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),ux(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function O4(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield X(e);t&&(Vc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function R4(){$c=Date.now(),x4(),I4(),E4(),A4(),T4(),C4(),k4(),O4(),P4(),Jc=Kk(),Gc=fv()}var Gc,Jc,$c,Hc,Vc,fx,S4,mx,hx,vx=T(()=>{"use strict";ce();$();R();wt();mv();hs();zk();ft();cr();Yk();dx();ps();Hc=!1,Vc=null,fx=!1,S4=!1,mx=!1,hx=e=>{Jr(e)&&(mx=e)};Rt.onReady(()=>{})});var yx,N4,D4,L4,q4,bx=T(()=>{"use strict";R();Ve();ce();$();yx=Y(),N4="env",D4="getSystemInfoSync",L4=Q(D4,{implement:()=>{var r;let e=L("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:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),q4=Q(N4,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});yx.registerCommand("API.getSystemInfoSync",L4);yx.registerCommand("API.env",q4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var _x=h(Mf=>{"use strict";R();Ve();_t();ce();wt();$();var U4="exitGame",M4="onReady",F4="onJoliboxShow",j4="onJoliboxHide",Wc=Y(),zc=Xn(ke),B4=z(U4,{paramsSchema:S.tuple(S.function(),S.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Mf,null,function*(){zc(e).call(Mf),Jr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&ug("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield de("exitAppAsync")})}),G4=Q(F4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);we("onJoliboxEnterForeground",()=>{t.call(this),po.emit("visible",!0)})}}),J4=Q(j4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);we("onJoliboxEnterBackground",()=>{t.call(this),po.emit("visible",!1)})}}),H4=Q(M4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);Se.on("LifecycleEvent.onReady",r=>{t(r)})}});Wc.registerCommand("LifecycleSDK.exit",B4);Wc.registerCommand("LifecycleSDK.onReady",H4);Wc.registerCommand("LifecycleSDK.onJoliboxShow",G4);Wc.registerCommand("LifecycleSDK.onJoliboxHide",J4);D("lifeCycle.exit",{version:"1.0.0"});D("lifeCycle.onReady",{version:"1.0.0"});D("lifeCycle.onJoliboxShow",{version:"1.0.0"});D("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function wx(e){let t={};if(!yn(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 Sx(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 Ix(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Ex(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!yn(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,c]of Object.entries(r))c!=null&&o.append(s,String(c));let a=o.toString();return a?`${n}?${a}`:n}var Ax=T(()=>{"use strict";R()});var V4,$4,Ff,jf,Cx,W4,z4,K4,kx=T(()=>{"use strict";Hr();Nu();Ve();Ax();R();_t();$();V4=15,$4=Wa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),Ff=0,jf=[],Cx=Xn(ke),W4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},z4=e=>{let t=new pt,r=()=>{};return Q("request",{paramsSchema:S.tuple(S.object({url:S.string(),method:S.string(),headers:S.object().optional(),data:S.or(S.object(),S.array()).optional(),query:S.object().optional(),dataType:S.string().default("json"),responseType:S.string().default("text"),enableCache:S.boolean().default(!1),appendHostCookie:S.boolean().default(!0),timeout:S.number().default(3e4),success:S.function(),fail:S.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=Cx(i.fail);try{if(Ff+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=wx((s=i.headers)!=null?s:{}),b=Sx(i.method),y=Ix(i.timeout),_=Ex(i.url,b,d),E=Cx(i.success),C=Object.assign({},i,{method:b,header:m?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});y&&(C.timeout=y);let x=$4(_,C);{let{response:k}=yield x,{code:A,data:H,message:ue}=k;if(H&&typeof H=="object"&&"status"in H&&H.status!==200)throw xe({code:H.status||-1,msg:`request:fail status ${H.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:H,message:ue!=null?ue:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:H})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Ff-=1,(l=jf.shift())==null||l()}});return Ff>=V4?(r=()=>{W4(jf,a=>a===o)},jf.push(o)):o(),t.promise}})(e),{abort(){t.reject(xe({code:-1,msg:"request:fail abort"})),r()}}},K4=Y();K4.registerCommand("HttpSDK.request",z4);D("request",{version:"1.0.0"})});var Y4,X4,Q4,Bf,xx=T(()=>{"use strict";R();ce();Ve();Y4=Q("showKeyboard",{paramsSchema:S.tuple(S.object({defaultValue:S.string().optional().default(""),multiple:S.boolean().optional().default(!1),maxLength:S.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)),L("showKeyboardSync",B(P({},e),{defaultValue:r,maxLength:t}))}});D("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"}});X4=Q("updateKeyboard",{paramsSchema:S.tuple(S.object({value:S.string()})),implement(e){L("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});Q4=Q("hideKeyboard",{implement(){L("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});Bf=Y();Bf.registerCommand("KeyboardSDK.showKeyboard",Y4);Bf.registerCommand("KeyboardSDK.updateKeyboard",X4);Bf.registerCommand("KeyboardSDK.hideKeyboard",Q4)});var Ox=h(Ri=>{"use strict";R();Ve();wt();ce();$();var la=Y(),Kc=null,Gf=!1,Tx=0,Z4=200;function eV(e){gn("cpUpdateScoreEvent",e,I.webviewId)}function Px(e){Kc=e,Gf||(Gf=!0,requestAnimationFrame(function t(){let r=Date.now();r-Tx>=Z4?(Kc!==null&&(eV(Kc),Tx=r,Kc=null),Gf=!1):requestAnimationFrame(t)}))}function Jf(e,t){return ye("notifyTaskGameInfoAsync")?L("notifyTaskGameInfoAsync",{event:e,inGameInfo:t}):It.reporter({event:e,extraParams:{inGameInfo:t}})}var tV=z("levelFinished",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),duration:S.number().optional(),rating:S.number().optional(),score:S.number().optional(),variation:S.string().optional()})),implement:e=>g(Ri,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(Jf("COMPLETE_GAME_LEVEL",{levelId:t,duration:r,rating:n,score:i})),Px({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),rV=z("gamePlayEnded",{paramsSchema:S.tuple(S.object({duration:S.number().optional(),rating:S.number().optional(),score:S.number(),variation:S.string().optional()})),implement:e=>g(Ri,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(Jf("GAME_ENDED",{duration:t,rating:r,score:n})),Px({duration:t,rating:r,score:n}),yield Promise.all(o)})}),nV=z("levelUpgrade",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),name:S.string().optional()})),implement:r=>g(Ri,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Jf("GAME_LEVEL_UP",{levelId:e,levelName:t})),gn("cpUpdateScoreEvent",{levelId:e},I.webviewId),yield Promise.all(n)})}),iV=z("levelStart",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number())})),implement:e=>g(Ri,null,function*(){let{levelId:t}=e;yield It.tracker("LevelStart",{levelId:t})})}),oV=z("levelFailed",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),score:S.number().optional(),rating:S.number().optional(),duration:S.number().optional()})),implement:e=>g(Ri,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield It.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});la.registerCommand("TaskTrackerSDK.levelFinished",tV);la.registerCommand("TaskTrackerSDK.gamePlayEnded",rV);la.registerCommand("TaskTrackerSDK.levelUpgrade",nV);la.registerCommand("TaskTrackerSDK.levelStart",iV);la.registerCommand("TaskTrackerSDK.levelFailed",oV);D("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"}}});D("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});D("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});D("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});D("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var Hf,Vf,$f,aV,Rx,Yc=T(()=>{"use strict";$();ce();Ve();R();Hr();D("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"}});D("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Hf=new Map;we("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Hf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Hf.delete(r))});Vf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield de("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=L("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw xe({code:-1,msg:"login failed"});let s=new pt;Hf.set(a,s);let c=yield s.promise,l=L("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:B(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return Se.emit("onLoginComplete",f),t?c:f}),$f=z("login",{paramsSchema:S.tuple(S.object({skipLogin:S.boolean().optional(),triggerFrom:S.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Vf(e!=null?e:{})})}}),aV=z("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield de("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Rx=Y();Rx.registerCommand("API.login",$f);Rx.registerCommand("API.checkSession",aV)});var Nx,Dx=T(()=>{"use strict";Nx=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 Dn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Vr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Lx(i.data),a=Nx(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-((c=a==null?void 0:a[0])!=null?c:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function Ln(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Vr(e),n=Lx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield St(e,JSON.stringify(n))})}var Lx,qx,Ux,Mx,Fx,jx,Bx,Gx,Jx,Hx,Vx,$x,Wx,zx,Kx,ua=T(()=>{"use strict";uo();Dx();Lx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};qx=Dn("joli_coin_use_modal_frequency"),Ux=Dn("joli_coin_payment_frequency"),Mx=Dn("joli_coin_unlogin_modal_frequency"),Fx=Dn("joli_gem_use_modal_frequency"),jx=Dn("joli_gem_payment_frequency"),Bx=Dn("joli_gem_unlogin_modal_frequency"),Gx=Dn("subscription_frequency");Jx=Ln("joli_coin_use_modal_frequency"),Hx=Ln("joli_coin_payment_frequency"),Vx=Ln("joli_coin_unlogin_modal_frequency"),$x=Ln("joli_gem_use_modal_frequency"),Wx=Ln("joli_gem_payment_frequency"),zx=Ln("joli_gem_unlogin_modal_frequency"),Kx=Ln("subscription_frequency")});var Wf,Xc,zf=T(()=>{"use strict";ft();Wf=Promise.resolve(),Xc=(e,t)=>g(void 0,null,function*(){Wf=Wf.then(()=>g(void 0,null,function*(){yield X(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Wf})});var Qc,Zc,Ht,el,qn,Vt,Pr,tl,rl,Un,Ni,sV,M,Or,Rr,Je=T(()=>{"use strict";R();Qc="UNLOCK_OPTIONS_CHANGED",Zc="INVOKE_PAYMENT",Ht="ON_PAYMENT_RESULT",el="ON_USE_MODAL_EVENT",qn="ON_USE_MODAL_RESULT",Vt="ON_USE_MODAL_FREQUENCY",Pr="ON_USE_UNLOGIN_MODAL_EVENT",tl="INVOKE_UNLOGIN_MODAL_EVENT",rl="INVOKE_SUBSCRIPTION_EVENT",Un="ON_USE_SUBSCRIPTION_RESULT",Ni=new Yt,sV=()=>({on:Ni.on.bind(Ni),off:Ni.off.bind(Ni),emit:Ni.emit.bind(Ni)}),M=sV(),Or={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Rr={show:!0,minInterval:8*60*60*1e3}});function He(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=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var lr=T(()=>{"use strict"});var Qx=h(Kf=>{"use strict";ua();zf();Je();Je();cr();wt();R();lr();var cV={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:qx,frequencyUpdater:Jx,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:Fx,frequencyUpdater:$x,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Yx=Nn(),Xx=He(M,Vt);Xx.getData();M.on(el,(e,t)=>g(Kf,null,function*(){let r=t.currency,n=cV[r];if(e.includes("ADS-")){yield Yx.show({duration:3e3});let c=yield Xx.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),Yx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){M.emit(qn,{useModalResult:"CONFIRM"});return}if(!l){M.emit(qn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:K.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=Nk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:K.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),M.emit(qn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:K.Click,currency:r}),M.emit(qn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Kf,null,function*(){yield Xc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Zx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(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 ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var eT=T(()=>{"use strict";_t()});var da=T(()=>{"use strict"});var lV,Di,xt,uV,Mn,nl=T(()=>{"use strict";da();R();$();ft();lV=()=>{let[e,t]=[Ha,Va].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Di,createPaymentInternalError:xt}=lV(),uV=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Mn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Di(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield X(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Di((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${uV}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Xf,tT,rT=T(()=>{"use strict";ft();nl();da();Xf=class extends Mn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield X("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Di((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),xt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},tT=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new Xf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var nT,iT=T(()=>{"use strict";nT={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 Qf,oT,Zf,em,dV,tm,aT=T(()=>{"use strict";ft();nl();da();ce();R();$();cr();iT();Qf=new Map;we("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Qf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Ja(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw xt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=nT[r];a&&Tr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Qf.delete(t)}});oT=e=>g(void 0,null,function*(){var n,i;let t=new pt,r;try{let o=yield de("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw xt("orderUUID is null",1002);Qf.set(r,t)}catch(o){throw xt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Zf=class extends Mn{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=()=>g(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},em=class extends Mn{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=()=>g(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield X("/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 xt("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"}})}},dV={android:Zf,ios:em},tm=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=dV[I.platform];if(!s)throw xt("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 Di(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Fn,rm=T(()=>{"use strict";eT();rT();aT();Fn=Zx();Fn.registerPaymentHandler("JOLI_COIN",tT());Fn.registerPaymentHandler("JOLI_COIN_IAP",tm());Fn.registerPaymentHandler("JOLI_GEM_IAP",tm())});function sT(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield St(a,c),yield St(s,l.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return c}catch(c){throw console.warn("[Cache] Executor failed for key:",e,c),c}})}function il(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Vr(s),{data:u}=yield Vr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),v=Date.now();yield St(s,m),yield St(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield St(s,null),yield St(c,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield St(s,d),yield St(c,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var nm=T(()=>{"use strict";uo()});function pV(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=>!oo(r.totalAmountStr))}var cn,im,ur,sl,om,am,ol,al,cT,cl,sm=T(()=>{"use strict";rm();R();ce();ft();R();nm();cn=class cn{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield X(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=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&pV(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return il(r,()=>g(this,null,function*(){try{let{data:n}=yield de("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(cn.nativePriceCache.set(r,n),cn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:cn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}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")}};cn.nativePriceCache=new Map,cn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,cn.nativePriceCacheTimestamp=new Map;im=cn,ur=class ur extends Ft{constructor(r,n){super(new im,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ur.failureCounters.get(this.apiEndpoint)||0;if(r>=ur.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ur.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ur.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ur.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ur.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(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 Fn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ur.failureCounters=new Map,ur.MAX_FAILURE_COUNT=2;sl=ur,om=class extends sl{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},am=class extends sl{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},ol=null,al=null,cT=()=>ol||(ol=new om,ol),cl=()=>al||(al=new am,al)});var dT=h(ll=>{"use strict";Je();cr();$();Yc();R();ua();rm();cr();Ve();wt();zf();lr();sm();var fV={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:Ux,frequencyUpdater:Hx,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:jx,frequencyUpdater:Wx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Li=Nn(),lT=cT(),uT=cl(),mV=He(M,Vt);M.on(Zc,(e,t)=>g(ll,null,function*(){var r,n,i;try{let o=t.currency,a=fV[o];if(!ye("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{M.emit(Ht,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Li.show({duration:3e3});let d=yield mV.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Li.hide(),!u){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Li.show({duration:3e3});let s=o==="JOLI_COIN"?lT:uT,c=yield s.getProductsInfo();if(Li.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:K.View,currency:o});let l=Dk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return B(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(ll,null,function*(){var f,m,v,b,y,_,E,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:K.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(x=>x.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=I.hostUserInfo)!=null&&v.isLogin)){let{data:x}=yield $f({skipLogin:!0});if(!(x!=null&&x.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(x=>x.productId===d))==null?void 0:_.appStoreProductId;if(!u){M.emit(Ht,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Li.show({duration:3e3});let{code:p}=yield Fn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Li.hide(),j(a.trackEvents.payResult,{eventType:K.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(E=c.paymentChoices.find(x=>x.productId===d))==null?void 0:E.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Tr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{M.emit(Ht,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:K.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(ll,null,function*(){yield Xc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:K.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=c.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),M.emit(Ht,{paymentResult:"FAILED",currency:t.currency})}}));lT.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});uT.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var fT=h(ul=>{"use strict";Je();lr();ua();ft();_t();R();Yc();cr();wt();var hV={JOLI_COIN:{frequencyChecker:Mx,frequencyUpdater:Vx,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:Bx,frequencyUpdater:zx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},pT=He(M,Vt);pT.getData();M.on(tl,(e,t)=>g(ul,null,function*(){var r;try{let n=t.currency,i=hV[n];if(e.includes("ADS-")){let s=yield pT.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){M.emit(Pr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){M.emit(Pr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield gV())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),M.emit(Pr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:K.Expose,currency:n},K.Expose);let a=Lk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(ul,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:K.Click,currency:n},K.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Vf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:K.Click,currency:n},K.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Tr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}M.emit(Pr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=c==null?void 0:c.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:l!=null?l:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{j(i.trackEvents.modalHide,{eventType:K.Hide,currency:n},K.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:K.Click,currency:n},K.Click),M.emit(Pr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){ke(new Eg(n)),M.emit(Pr,{result:"FAILED"})}}));var gV=()=>g(ul,null,function*(){var t;let{response:e}=yield X("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function vV(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return ke(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var pa,cm=T(()=>{"use strict";_t();pa=vV()});var jn,dl=T(()=>{"use strict";jn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var yV,mT,pl,bV,fa,lm=T(()=>{"use strict";dl();R();$();yV=()=>{let[e,t]=[Ha,Va].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:mT,createSubscriptionInternalError:pl}=yV(),bV=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",fa=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw mT(n,jn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${bV}/subscription/callback?${t.toString()}`};this.createSubscriptionError=mT;this.createSubscriptionInternalError=pl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function _V(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(c=>c.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!oo(r.amountStr))}var Bn,ml,um,dm,fl,hT,pm=T(()=>{"use strict";R();ce();ft();R();nm();cm();ce();lm();dl();Bn=class Bn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield X(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&_V(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Bn.nativePriceCache.set(r,n),Bn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?sT:il)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};Bn.nativePriceCache=new Map,Bn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Bn.nativePriceCacheTimestamp=new Map;ml=Bn,um=class extends Ft{constructor(r){super(new ml,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",pa);let n=new AbortController,i=pa.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield X("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield Ga(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new pt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=L("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw pl("orderUUID is null",jn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw pl((o=JSON.stringify(a))!=null?o:"subscription panel failed",jn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=ml.getNativePriceCache((n!=null?n:[]).map(c=>{var l;return(l=c.appStoreProductId)!=null?l:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){we("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},dm=class extends um{constructor(){super("/api/subs/pricing")}},fl=null,hT=()=>fl||(fl=new dm,fl)});var gT=T(()=>{"use strict"});function yT(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=wV[I.platform];if(!a)throw new Error(`Platform ${I.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var fm,vT,mm,hm,wV,bT=T(()=>{"use strict";$();lm();da();nl();R();ce();R();dl();we("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});fm=new Map;we("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=fm.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&Ja(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw xt(`subscription failed: ${n==null?void 0:n.errMsg}`,jn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}fm.delete(t)}});vT=e=>g(void 0,null,function*(){var n,i;let t=new pt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=L("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw xt("subUUID is null",1002);fm.set(r,t)}catch(o){throw xt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),mm=class extends fa{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield vT(r)})}},hm=class extends fa{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=L("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw xt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield vT(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},wV={android:mm,ios:hm}});var Gn,gm=T(()=>{"use strict";pm();gT();cm();bT();pm();Gn=hT();pa.registerSubscriptionHandler("SUB_APP",yT())});var IT=h(ST=>{"use strict";ua();Je();lr();Ve();gm();cr();var SV={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Gx,frequencyUpdater:Kx}},_T=Nn(),wT=He(M,Vt);wT.getData();M.on(rl,e=>g(ST,null,function*(){let t=SV.SUBSCRIPTION;if(!ye("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{M.emit(Un,{result:"FAILED"})},0);return}yield _T.show({duration:3e3});let r=yield wT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(_T.hide(),!n){M.emit(Un,{result:"FAILED"});return}let{data:o,code:a}=yield Gn.invokeSubscriptionPanel();a=="SUCCESS"?M.emit(Un,{result:"SUCCESS"}):M.emit(Un,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Iie,Eie,Aie,Cie,ET=T(()=>{"use strict";Iie=se(Qx()),Eie=se(dT()),Aie=se(fT()),Cie=se(IT())});var qi,vm=T(()=>{"use strict";qi=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function qV(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function UV(e){return typeof e=="string"}function MV(e){return typeof e=="undefined"}function FV(e){return MV(e)||e===null}function jV(e){return typeof e=="function"}function nP(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 ma(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function bl(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 WV(e){let t=e.location?bl(e.location,PT):null,r=e.target?bl(e.target,PT):null;return bl(NV(RV({},e),{location:t,target:r}),VV)}function zV(e){let t=e.events.map(n=>WV(n)),r=bl(e.device,$V);return[e.protocolVersion,t,r,e.project]}function KV(){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 e$(e){return new Promise(t=>sP(e)(t))}function sP(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 t$(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new _a(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 n$(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)i$(e[n],t[n])}function i$(e,t){if(UV(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jV(t)){try{if(e instanceof t)return}catch(r){}if(!FV(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 gt(e,t,r){return(t=o$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=a$(e,"string");return typeof t=="symbol"?t:t+""}function a$(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 hl(e,t,r){return(t=s$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s$(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 gl(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=u$(e,"string");return typeof t=="symbol"?t:t+""}function u$(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 Nr(e,t,r){return(t=d$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return typeof t=="symbol"?t:t+""}function p$(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 f$(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 m$(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 _$(e,t){return Ye(e,0)^45?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}function uP(e){return e.trim()}function w$(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function Dm(e,t){return e.indexOf(t)}function Ye(e,t){return e.charCodeAt(t)|0}function wa(e,t,r){return e.slice(t,r)}function fr(e){return e.length}function ah(e){return e.length}function vl(e,t){return t.push(e),e}function S$(e,t){return e.map(t).join("")}function Ml(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ul,column:Gi,length:a,return:""}}function ga(e,t){return b$(Ml("",null,null,"",null,null,0),e,{length:-e.length},t)}function I$(){return qe}function E$(){return qe=yt>0?Ye(Hi,--yt):0,Gi--,qe===10&&(Gi=1,Ul--),qe}function Pt(){return qe=yt<dP?Ye(Hi,yt++):0,Gi++,qe===10&&(Gi=1,Ul++),qe}function mr(){return Ye(Hi,yt)}function _l(){return yt}function Ea(e,t){return wa(Hi,e,t)}function Sa(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 pP(e){return Ul=Gi=1,dP=fr(Hi=e),yt=0,[]}function fP(e){return Hi="",e}function wl(e){return uP(Ea(yt-1,Lm(e===91?e+2:e===40?e+1:e)))}function A$(e){for(;(qe=mr())&&qe<33;)Pt();return Sa(e)>2||Sa(qe)>3?"":" "}function C$(e,t){for(;--t&&Pt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return Ea(e,_l()+(t<6&&mr()==32&&Pt()==32))}function Lm(e){for(;Pt();)switch(qe){case e:return yt;case 34:case 39:e!==34&&e!==39&&Lm(qe);break;case 40:e===41&&Lm(e);break;case 92:Pt();break}return yt}function k$(e,t){for(;Pt()&&e+qe!==57&&!(e+qe===84&&mr()===47););return"/*"+Ea(t,yt-1)+"*"+ql(e===47?e:Pt())}function x$(e){for(;!Sa(mr());)Pt();return Ea(e,yt)}function T$(e){return fP(Sl("",null,null,null,[""],e=pP(e),0,[0],e))}function Sl(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=Pt()){case 40:if(m!=108&&Ye(A,u-1)==58){Dm(A+=ne(wl(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=wl(_);break;case 9:case 10:case 13:case 32:A+=A$(m);break;case 92:A+=C$(_l()-1,7);continue;case 47:switch(mr()){case 42:case 47:vl(P$(k$(Pt(),_l()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=fr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(A=ne(A,/\f/g,"")),f>0&&fr(A)-u&&vl(f>32?NT(A+";",n,r,u-1):NT(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(vl(k=RT(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)Sl(A,t,k,k,C,o,u,s,x);else switch(p===99&&Ye(A,3)===110?100:p){case 100:case 108:case 109:case 115:Sl(e,k,k,n&&vl(RT(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:Sl(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+fr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&E$()==125)continue}switch(A+=ql(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(fr(A)-1)*y,y=1;break;case 64:mr()===45&&(A+=wl(Pt())),p=mr(),d=u=fr(E=A+=x$(_l())),_++;break;case 45:m===45&&fr(A)==2&&(v=0)}}return o}function RT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=ah(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=wa(e,u+1,u=y$(v=a[m])),E=e;y<f;++y)(E=uP(v>0?p[y]+" "+_:ne(_,/&\f/g,p[y])))&&(c[b++]=E);return Ml(e,t,r,i===0?ih:s,c,l,d)}function P$(e,t,r){return Ml(e,t,r,cP,ql(I$()),wa(e,2,-2),0)}function NT(e,t,r,n){return Ml(e,t,r,oh,wa(e,0,n),wa(e,n+1,-1),n)}function Bi(e,t){for(var r="",n=ah(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function O$(e,t,r,n){switch(e.type){case v$:if(e.children.length)break;case g$:case oh:return e.return=e.return||e.value;case cP:return"";case lP:return e.return=e.value+"{"+Bi(e.children,n)+"}";case ih:e.value=e.props.join(",")}return fr(r=Bi(e.children,n))?e.return=e.value+"{"+r+"}":""}function R$(e){var t=ah(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 N$(e){return function(t){t.root||(t=t.return)&&e(t)}}function D$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function mP(e,t){switch(_$(e,t)){case 5103:return re+"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 re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+Tl+e+ot+e+e;case 6828:case 4268:return re+e+ot+e+e;case 6165:return re+e+ot+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return re+e+ot+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+ot+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+ot+ne(e,"shrink","negative")+e;case 5292:return re+e+ot+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+ot+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$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(fr(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Tl+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dm(e,"stretch")?mP(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,fr(e)-3-(~Dm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(Ye(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+ot+e+e}return e}function J$(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 dn={name:i.name,styles:i.styles,next:dn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)dn={name:a.name,styles:a.styles,next:dn},a=a.next;var s=o.styles+";";return s}return W$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function W$(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]+"}":LT(s)&&(n+=bm(o)+":"+qT(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)LT(a[c])&&(n+=bm(o)+":"+qT(o,a[c])+";");else{var l=Pl(e,t,a);switch(o){case"animation":case"animationName":{n+=bm(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function _m(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="";dn=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 c=o;i+=c[s]}UT.lastIndex=0;for(var l="",d;(d=UT.exec(i))!==null;)l+="-"+d[1];var u=J$(i)+l;return{name:u,styles:i,next:dn}}function gP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function MT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function FT(e,t,r){var n=[],i=gP(e,n,r);return n.length<2?r:i+t(n)}function Z$(e,t){Be.__h&&Be.__h(Tt,e,BT||t),BT=0;var r=Tt.__H||(Tt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yP(e,t){var r=Z$(qm++,7);return r9(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function e9(){for(var e;e=vP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Il),e.__H.__h.forEach(Um),e.__H.__h=[]}catch(t){e.__H.__h=[],Be.__e(t,e.__v)}}function t9(e){var t,r=function(){clearTimeout(n),zT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);zT&&(t=requestAnimationFrame(r))}function Il(e){var t=Tt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Tt=t}function Um(e){var t=Tt;e.__c=e.__(),Tt=t}function r9(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Fl(){if(pn>1)pn--;else{for(var e,t=!1;ya!==void 0;){var r=ya;for(ya=void 0,Mm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&_P(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Mm=0,pn--,t)throw e}}function Ce(e){if(pn>0)return e();pn++;try{return e()}finally{Fl()}}function bP(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Xe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Xe(e)}function _P(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 wP(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 SP(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 Vi(e){Xe.call(this,void 0),this.x=e,this.s=void 0,this.g=Ol-1,this.f=4}function ba(e){return new Vi(e)}function IP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){pn++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,sh(e),n}finally{le=r,Fl()}}}function sh(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,IP(e)}function i9(e){if(le!==this)throw new Error("Out-of-order effect");SP(this),le=e,this.f&=-2,8&this.f&&sh(this),Fl()}function Aa(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ca(e){var t=new Aa(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function $i(e,t){q[e]=t.bind(null,q[e]||function(){})}function Rl(e){Sm&&Sm(),Sm=e&&e.S()}function CP(e){var t=this,r=e.data,n=kP(r);n.value=r;var i=yP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ba(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ba(function(){return!Array.isArray(l.value)&&!Vu(l.value)}),u=Ca(function(){if(this.N=xP,d.value){var f=l.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,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function o9(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:Ca(function(){this.N=xP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function kP(e){return yP(function(){return W(e)},[])}function s9(){Ce(function(){for(var e;e=AP.shift();)EP.call(e)})}function xP(){AP.push(this)===1&&(q.requestAnimationFrame||a9)(s9)}function c9(e,t){let r=fi(e);pi(()=>{r.current=e},[e]),Yr(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function G(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--l9,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return q.vnode&&q.vnode(l),l}function Dr(e,t,r){return(t=b9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b9(e){var t=_9(e,"string");return typeof t=="symbol"?t:t+""}function _9(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 ut(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=N9(e,"string");return typeof t=="symbol"?t:t+""}function N9(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 Lr(e,t,r){return(t=L9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=q9(e,"string");return typeof t=="symbol"?t:t+""}function q9(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 it(e,t,r){return(t=U9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U9(e){var t=M9(e,"string");return typeof t=="symbol"?t:t+""}function M9(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 vt(e,t,r){return(t=F9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F9(e){var t=j9(e,"string");return typeof t=="symbol"?t:t+""}function j9(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 Jn(e,t,r){return(t=B9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9(e){var t=G9(e,"string");return typeof t=="symbol"?t:t+""}function G9(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 Im(e,t,r){return(t=J9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J9(e){var t=H9(e,"string");return typeof t=="symbol"?t:t+""}function H9(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 dt(e,t,r){return(t=V9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=$9(e,"string");return typeof t=="symbol"?t:t+""}function $9(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 W9(e,t,r){return(t=z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=K9(e,"string");return typeof t=="symbol"?t:t+""}function K9(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 qr(e,t,r){return(t=X9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X9(e){var t=Q9(e,"string");return typeof t=="symbol"?t:t+""}function Q9(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 Ur(e,t,r){return(t=Z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z9(e){var t=eW(e,"string");return typeof t=="symbol"?t:t+""}function eW(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 va(e,t,r){return(t=tW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=rW(e,"string");return typeof t=="symbol"?t:t+""}function rW(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 iW(e,t){return t==="call"&&e.join(".")==="GameSDK.showRewardAd"?0:15e3}function YT(e,t,r,n){return new Promise((i,o)=>{if(!window.parent||window.parent===window){o(new Error("[ParentProxy] No parent window"));return}let a=`${Em}-${++nW}`,s=d=>{let u=d.data;(u==null?void 0:u.type)===`${Em}:response`&&u.id===a&&(window.removeEventListener("message",s),l&&clearTimeout(l),u.error?o(new Error(u.error)):i(u.result))},c=iW(e,t),l=c>0?window.setTimeout(()=>{window.removeEventListener("message",s),o(new Error(`[ParentProxy] Timeout after ${c}ms: ${e.join(".")}.${t}`))},c):null;window.addEventListener("message",s),window.parent.postMessage({type:`${Em}:request`,id:a,path:e,action:t,args:r,value:n},"*")})}function LP(e){return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:",e),new Proxy(()=>{},{get(t,r){if(console.log("[JoliboxSDK] NewsBreak createProxyForPath get:",r),!(r==="then"||r==="toJSON"||typeof r=="symbol"))return LP([...e,r])},set(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:",r),YT([...e,r],"set",void 0,n).catch(i=>{console.warn(`[ParentProxy] set ${[...e,r].join(".")} failed:`,i)}),!0},apply(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:",n),YT(e,"call",n)}})}function oW(e){return LP([e])}function ln(e,t,r){return(t=aW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=sW(e,"string");return typeof t=="symbol"?t:t+""}function sW(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 XT(e,t,r){return(t=cW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cW(e){var t=lW(e,"string");return typeof t=="symbol"?t:t+""}function lW(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 $t(e,t,r){return(t=uW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uW(e){var t=dW(e,"string");return typeof t=="symbol"?t:t+""}function dW(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 yl(e,t,r){return(t=pW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pW(e){var t=fW(e,"string");return typeof t=="symbol"?t:t+""}function fW(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 Am(e,t,r){return(t=mW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mW(e){var t=hW(e,"string");return typeof t=="symbol"?t:t+""}function hW(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 me(e,t,r){return(t=gW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gW(e){var t=vW(e,"string");return typeof t=="symbol"?t:t+""}function vW(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=wW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wW(e){var t=SW(e,"string");return typeof t=="symbol"?t:t+""}function SW(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 dr(e,t,r){return(t=IW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IW(e){var t=EW(e,"string");return typeof t=="symbol"?t:t+""}function EW(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 Wt(e,t,r){return(t=AW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AW(e){var t=CW(e,"string");return typeof t=="symbol"?t:t+""}function CW(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=kW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kW(e){var t=xW(e,"string");return typeof t=="symbol"?t:t+""}function xW(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 pr(e,t,r){return(t=TW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TW(e){var t=PW(e,"string");return typeof t=="symbol"?t:t+""}function PW(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 IV,EV,AV,kl,QT,ZT,AT,eP,CV,kV,tP,xV,TV,CT,PV,OV,kT,RV,NV,DV,rP,LV,BV,GV,xT,JV,TT,HV,iP,oP,aP,PT,VV,$V,Fi,xl,Cm,_e,YV,XV,ha,_a,QV,xm,ZV,ym,r$,Tm,OT,Ui,Pm,Om,Rm,Nm,h$,ot,Tl,re,cP,ih,oh,g$,lP,v$,y$,ql,b$,Ul,Gi,dP,yt,qe,Hi,L$,q$,U$,DT,M$,F$,j$,B$,G$,H$,V$,$$,hP,LT,bm,qT,UT,dn,z$,K$,Y$,X$,Q$,st,qm,Tt,wm,jT,BT,vP,Be,GT,JT,HT,VT,$T,WT,zT,n9,le,ya,pn,Mm,Ol,EP,Sm,AP,a9,Ge,l9,u9,Fr,Fm,jm,El,d9,p9,f9,m9,h9,g9,v9,TP,y9,PP,Bm,w9,S9,I9,E9,A9,C9,k9,KT,x9,T9,P9,O9,Gm,ji,Mi,OP,D9,RP,Jm,NP,DP,Hm,Vm,$m,Ia,Nl,Y9,Dl,Wm,zm,Km,Em,nW,Al,Ym,Xm,Ji,Qm,at,Zm,Cl,yW,bW,_W,eh,th,rh,nh,Ll,ch=T(()=>{"use strict";ri();Ns();ce();IV=Object.defineProperty,EV=Object.defineProperties,AV=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,QT=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable,AT=(e,t,r)=>t in e?IV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eP=(e,t)=>{for(var r in t||(t={}))QT.call(t,r)&&AT(e,r,t[r]);if(kl)for(var r of kl(t))ZT.call(t,r)&&AT(e,r,t[r]);return e},CV=(e,t)=>EV(e,AV(t)),kV=(e,t)=>{var r={};for(var n in e)QT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&kl)for(var n of kl(e))t.indexOf(n)<0&&ZT.call(e,n)&&(r[n]=e[n]);return r},tP=Object.defineProperty,xV=Object.defineProperties,TV=Object.getOwnPropertyDescriptors,CT=Object.getOwnPropertySymbols,PV=Object.prototype.hasOwnProperty,OV=Object.prototype.propertyIsEnumerable,kT=(e,t,r)=>t in e?tP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RV=(e,t)=>{for(var r in t||(t={}))PV.call(t,r)&&kT(e,r,t[r]);if(CT)for(var r of CT(t))OV.call(t,r)&&kT(e,r,t[r]);return e},NV=(e,t)=>xV(e,TV(t)),DV=(e,t)=>{for(var r in t)tP(e,r,{get:t[r],enumerable:!0})},rP=(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},LV=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}BV=(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))(BV||{});GV={log:ma("log"),warn:ma("warn"),info:ma("info"),error:ma("error"),debug:ma("debug")};Object.assign(globalThis,{logger:GV});xT=Symbol.for("Jolibox.canIUseMap"),JV={};globalThis[xT]||(globalThis[xT]=JV);TT=Symbol.for("Jolibox.canIUseMap.native"),HV={};globalThis[TT]||(globalThis[TT]=HV);iP=(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))(iP||{}),oP=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(oP||{}),aP=(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))(aP||{}),PT=["name","params"],VV=["name","type","location","target","extra","timestamp","userId"],$V=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];KV();Fi=typeof window=="undefined",xl=()=>!Fi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Fi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Fi&&navigator.userAgent.includes("Android"),!Fi&&navigator.userAgent.includes("Mac"),!Fi&&navigator.userAgent.includes("FB_IAB"),!Fi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Cm=class km{constructor(t){this.element=t,this.next=km.Undefined,this.prev=km.Undefined}};Cm.Undefined=new Cm(void 0);_e=Cm,YV=class{constructor(){this._first=_e.Undefined,this._last=_e.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_e.Undefined}clear(){let e=this._first;for(;e!==_e.Undefined;){let t=e.next;e.prev=_e.Undefined,e.next=_e.Undefined,e=t}this._first=_e.Undefined,this._last=_e.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new _e(e);if(this._first===_e.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!==_e.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==_e.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==_e.Undefined&&e.next!==_e.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===_e.Undefined&&e.next===_e.Undefined?(this._first=_e.Undefined,this._last=_e.Undefined):e.next===_e.Undefined?(this._last=this._last.prev,this._last.next=_e.Undefined):e.prev===_e.Undefined&&(this._first=this._first.next,this._first.prev=_e.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==_e.Undefined;)yield e.element,e=e.next}},XV=0,ha=class{constructor(e){this.value=e,this.id=XV++}},_a=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 ha&&(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 c=new ha(e);return this._listeners?this._listeners instanceof ha?this._listeners=[this._listeners,c]:this._listeners.push(c):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=c,(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 l,d,u,p;if(!this._disposed){if(this._listeners instanceof ha)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(d=(l=this.options)==null?void 0:l.onDidRemoveLastListener)==null||d.call(l));else if(this._listeners){let f=this._listeners.indexOf(c);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 ha?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},QV=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 _a,o=c=>t(...c.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 c of s)t(...c.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 YV,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)}},xm={};DV(xm,{None:()=>ZV,filter:()=>t$,once:()=>sP,toPromise:()=>e$});ZV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ym=Symbol.for("Jolibox.hostEmitter"),r$=()=>{let e=new QV;return globalThis[ym]||(globalThis[ym]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ym]};r$();Tm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new _a,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 n$(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}};Tm=rP([nP],Tm);OT=class{constructor(){this._onWillExecuteCommand=new _a,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new _a,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Tm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=qV(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 LV(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),xm.toPromise(xm.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{}}};OT=rP([nP],OT);Ui=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")},Pm=class{constructor(t){gt(this,"context",void 0),gt(this,"continueCallback",void 0),gt(this,"adIsShowingCallback",void 0),gt(this,"isBeforeAdCalled",!1),gt(this,"isBeforeRewardCalled",!1),gt(this,"isAdDismissedCalled",!1),gt(this,"isAdViewedCalled",!1),gt(this,"isAfterAdCalled",!1),gt(this,"currentProvider",void 0),gt(this,"currentClientParams",void 0),gt(this,"adsHasResponse",!1),gt(this,"videoChecker",window.document.createElement("video")),gt(this,"contextInfo",void 0),gt(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",eP({userEvent:a},this.paramsToTrack)),xl()&&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=Ui(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=Ui(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),xl()&&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=Ui(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ui(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=Ui(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,c,l,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:(c=r.breakName)!=null?c:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Ui(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.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 g(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,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.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")})})}};Om=class{constructor(t){hl(this,"context",void 0),hl(this,"adBreakIsShowing",!1),hl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),hl(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()})}};Rm=class{constructor(t){gl(this,"configs",null),gl(this,"firstRun",!0),gl(this,"context",void 0),gl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(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}};Nm=class{constructor(t,r){Nr(this,"name","ADSENSE"),Nr(this,"context",void 0),Nr(this,"contextInfo",void 0),Nr(this,"configured",!1),Nr(this,"initParams",void 0),Nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=kV(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Nr(this,"adUnit",n=>g(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:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let E=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"null"})}})}).observe(b,{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 g(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(m$(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=f$(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}(),ot="-ms-",Tl="-moz-",re="-webkit-",cP="comm",ih="rule",oh="decl",g$="@import",lP="@keyframes",v$="@layer",y$=Math.abs,ql=String.fromCharCode,b$=Object.assign;Ul=1,Gi=1,dP=0,yt=0,qe=0,Hi="";L$=function(e,t,r){for(var n=0,i=0;n=i,i=mr(),n===38&&i===12&&(t[r]=1),!Sa(i);)Pt();return Ea(e,yt)},q$=function(e,t){var r=-1,n=44;do switch(Sa(n)){case 0:n===38&&mr()===12&&(t[r]=1),e[r]+=L$(yt-1,t,r);break;case 2:e[r]+=wl(n);break;case 4:if(n===44){e[++r]=mr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ql(n)}while(n=Pt());return e},U$=function(e,t){return fP(q$(pP(e),t))},DT=new WeakMap,M$=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&&!DT.get(r))&&!n){DT.set(e,!0);for(var i=[],o=U$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},F$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};j$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case oh:e.return=mP(e.value,e.length);break;case lP:return Bi([ga(e,{value:ne(e.value,"@","@"+re)})],n);case ih:if(e.length)return S$(e.props,function(i){switch(w$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bi([ga(e,{props:[ne(i,/:(read-\w+)/,":"+Tl+"$1")]})],n);case"::placeholder":return Bi([ga(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),ga(e,{props:[ne(i,/:(plac\w+)/,":"+Tl+"$1")]}),ga(e,{props:[ne(i,/:(plac\w+)/,ot+"input-$1")]})],n)}return""})}},B$=[j$],G$=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||B$,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(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[M$,F$];{var l,d=[O$,N$(function(m){l.insert(m)})],u=R$(c.concat(n,d)),p=function(m){return Bi(T$(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(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};H$={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},V$=/[A-Z]|^ms/g,$$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hP=function(e){return e.charCodeAt(1)===45},LT=function(e){return e!=null&&typeof e!="boolean"},bm=D$(function(e){return hP(e)?e:e.replace(V$,"-$&").toLowerCase()}),qT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($$,function(r,n,i){return dn={name:n,styles:i,next:dn},n})}return H$[e]!==1&&!hP(e)&&typeof t=="number"&&t!==0?t+"px":t};UT=/label:\s*([^\s;{]+)\s*(;|$)/g;z$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},K$=function(e,t,r){z$(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)}};Y$=function(e){var t=G$(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered,void 0);return K$(t,l),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered),d="animation-"+l.name;return MT(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered);MT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return FT(t.registered,r,X$(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:gP.bind(null,t.registered),merge:FT.bind(null,t.registered,r)}},X$=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},Q$=Y$({key:"css"}),st=Q$.css,BT=0,vP=[],Be=q,GT=Be.__b,JT=Be.__r,HT=Be.diffed,VT=Be.__c,$T=Be.unmount,WT=Be.__;Be.__b=function(e){Tt=null,GT&>(e)},Be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),WT&&WT(e,t)},Be.__r=function(e){JT&&JT(e),qm=0;var t=(Tt=e.__c).__H;t&&(wm===Tt?(t.__h=[],Tt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Il),t.__h.forEach(Um),t.__h=[],qm=0)),wm=Tt},Be.diffed=function(e){HT&&HT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(vP.push(t)!==1&&jT===Be.requestAnimationFrame||((jT=Be.requestAnimationFrame)||t9)(e9)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),wm=Tt=null},Be.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Il),r.__h=r.__h.filter(function(n){return!n.__||Um(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Be.__e(n,r.__v)}}),VT&&VT(e,t)},Be.unmount=function(e){$T&&$T(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Il(n)}catch(i){t=i}}),r.__H=void 0,t&&Be.__e(t,r.__v))};zT=typeof requestAnimationFrame=="function";n9=Symbol.for("preact-signals");le=void 0,ya=void 0,pn=0,Mm=0,Ol=0;Xe.prototype.brand=n9;Xe.prototype.h=function(){return!0};Xe.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)};Xe.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)}};Xe.prototype.subscribe=function(e){var t=this;return Ca(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}})};Xe.prototype.valueOf=function(){return this.value};Xe.prototype.toString=function(){return this.value+""};Xe.prototype.toJSON=function(){return this.value};Xe.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Xe.prototype,"value",{get:function(){var e=bP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Mm>100)throw new Error("Cycle detected");this.v=e,this.i++,Ol++,pn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fl()}}}});(Vi.prototype=new Xe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ol))return!0;if(this.g=Ol,this.f|=1,this.i>0&&!_P(this))return this.f&=-2,!0;var e=le;try{wP(this),le=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 le=e,SP(this),this.f&=-2,!0};Vi.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)}Xe.prototype.S.call(this,e)};Vi.prototype.U=function(e){if(this.t!==void 0&&(Xe.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)}};Vi.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(Vi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=bP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Aa.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()}};Aa.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,IP(this),wP(this),pn++;var e=le;return le=this,i9.bind(this,e)};Aa.prototype.N=function(){2&this.f||(this.f|=2,this.o=ya,ya=this)};Aa.prototype.d=function(){this.f|=8,1&this.f||sh(this)};AP=[];Ca(function(){EP=this.N})();CP.displayName="_st";Object.defineProperties(Xe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:CP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});$i("__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 Xe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});$i("__r",function(e,t){Rl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ca(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Rl(r),e(t)});$i("__e",function(e,t,r,n){Rl(),e(t,r,n)});$i("diffed",function(e,t){Rl();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 c in n){var l=o[c],d=n[c];l===void 0?(l=o9(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});$i("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)});$i("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Et.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};a9=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ge=st`
|
|
622
|
+
`,h4=()=>w("div",{style:zC.container,children:[w("style",{children:m4}),w("div",{style:zC.spinner})]});gee=Rn()});function $k(){return g(this,null,function*(){if(Nf)return Nf;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield X(t);return Nf=r,r})}function Wk(){return g(this,null,function*(){let e=new pt;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(Df)return e.resolve(!0),e.promise;let t=yield $k();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Df=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:K.View},o));let a=Tk({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(Df=!1,s.type){case"quit":j("RecommendedGuide",{eventType:K.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:K.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;g4(l),j("GameItem",{eventType:K.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:K.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Nf,g4,Df,zk=T(()=>{"use strict";$();ce();R();cr();ft();wt();Nf=null;$k();g4=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:o})},Df=!1});function y4(e){let t=P(P({},v4),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:c}=t,l=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:_,containerTransition:E,iframeTransition:C}=p();fe=document.createElement("div"),fe.id="jolibox-modal-overlay",fe.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:${_}; opacity:0; visibility:hidden;`,oe=document.createElement("div"),oe.id="jolibox-modal-container",oe.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:${E};`;let x=document.createElement("div");x.id="jolibox-modal-loading",x.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 k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);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;",Lt=document.createElement("iframe"),Lt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Lt.src=r,Lt.onload=()=>{x.parentNode&&x.parentNode.removeChild(x),Lt.style.opacity="1",v(),c==null||c(),Se.emit("onModalIframeLoaded",{url:r})},A.appendChild(Lt),A.appendChild(x),oe.appendChild(A),i){let H=document.createElement("div");H.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;",H.innerHTML="\u2715",H.onclick=y,oe.appendChild(H)}fe.appendChild(oe),document.body.appendChild(fe),fe.addEventListener("click",function(H){H.target===fe&&y()}),o&&b()}function v(){!fe||!oe||u||(fe.style.visibility="visible",a?requestAnimationFrame(()=>{fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!oe)return;let _=x=>{l=x.touches[0].clientY},E=x=>{if(!u)return;d=x.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),x.preventDefault())},C=()=>{!u||!oe||(oe.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():oe.style.transform="translateY(0)")};oe.addEventListener("touchstart",_),oe.addEventListener("touchmove",E),oe.addEventListener("touchend",C)}function y(){!fe||!oe||!u||(a?(oe.style.transform="translateY(100%)",fe.style.opacity="0"):fe.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{fe&&(fe.remove(),fe=null,oe=null,Lt=null,s==null||s(),Se.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function Kk(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:y4}),()=>{window.joliboxUI=void 0,fe&&fe.parentNode&&fe.parentNode.removeChild(fe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Lt&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),fe=null,oe=null,Lt=null}}var v4,fe,oe,Lt,Yk=T(()=>{"use strict";ce();$();R();v4={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},fe=null,oe=null,Lt=null});var rx,jc,qf,Bc,Ti,nx,Pi,ix,ox,ax,xi,Xk,Fc,Qk,b4,sx,Uf,Zk,cx,_4,ex,Lf,lx,tx,w4,ux,dx=T(()=>{rx=-1,jc=function(e){addEventListener("pageshow",function(t){t.persisted&&(rx=t.timeStamp,e(t))},!0)},qf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Bc=function(){var e=qf();return e&&e.activationStart||0},Ti=function(e,t){var r=qf(),n="navigate";return rx>=0?n="back-forward-cache":r&&(document.prerendering||Bc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},nx=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Pi=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},ix=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ox=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},ax=function(e){var t=!1;return function(){t||(e(),t=!0)}},xi=-1,Xk=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Fc=function(e){document.visibilityState==="hidden"&&xi>-1&&(xi=e.type==="visibilitychange"?e.timeStamp:0,b4())},Qk=function(){addEventListener("visibilitychange",Fc,!0),addEventListener("prerenderingchange",Fc,!0)},b4=function(){removeEventListener("visibilitychange",Fc,!0),removeEventListener("prerenderingchange",Fc,!0)},sx=function(){return xi<0&&(xi=Xk(),Qk(),jc(function(){setTimeout(function(){xi=Xk(),Qk()},0)})),{get firstHiddenTime(){return xi}}},Uf=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Zk=[1800,3e3],cx=function(e,t){t=t||{},Uf(function(){var r,n=sx(),i=Ti("FCP"),o=nx("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Bc(),0),i.entries.push(s),r(!0)))})});o&&(r=Pi(e,i,Zk,t.reportAllChanges),jc(function(a){i=Ti("FCP"),r=Pi(e,i,Zk,t.reportAllChanges),ix(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},_4=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=ax(e),document.visibilityState==="hidden"?e():(r=t(e),ox(e)),r},ex=[2500,4e3],Lf={},lx=function(e,t){t=t||{},Uf(function(){var r,n=sx(),i=Ti("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Bc(),0),i.entries=[l],r())})},a=nx("largest-contentful-paint",o);if(a){r=Pi(e,i,ex,t.reportAllChanges);var s=ax(function(){Lf[i.id]||(o(a.takeRecords()),a.disconnect(),Lf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return _4(s)},{once:!0,capture:!0})}),ox(s),jc(function(c){i=Ti("LCP"),r=Pi(e,i,ex,t.reportAllChanges),ix(function(){i.value=performance.now()-c.timeStamp,Lf[i.id]=!0,r(!0)})})}})},tx=[800,1800],w4=function e(t){document.prerendering?Uf(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},ux=function(e,t){t=t||{};var r=Ti("TTFB"),n=Pi(e,r,tx,t.reportAllChanges);w4(function(){var i=qf();i&&(r.value=Math.max(i.responseStart-Bc(),0),r.entries=[i],n(!0),jc(function(){r=Ti("TTFB",0),(n=Pi(e,r,tx,t.reportAllChanges))(!0)}))})}});var gx={};Bh(gx,{config:()=>R4});function I4(){bn.on("isAdShowing",e=>{Hc=e,Jr(Hc)&&I.mpType==="game"&&L("updateContainerConfigSync",{displayCapsuleButton:!Hc,webviewId:I.webviewId})})}function E4(){Se.on("onInterceptSystemExit",({intercept:e})=>{fx=e})}function A4(){Se.on("onInterceptBackPress",({intercept:e})=>{S4=e}),we("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;hx(t),Se.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function C4(){Se.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:$c,timestamp:Date.now()})})}function k4(){we("onI18nChanged",({language:e})=>{Se.emit("onI18nChanged",{i18n:e})})}function px(e){I.mpType==="game"&&It.start(e)}function x4(){we("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),Se.emit("LifecycleEvent.onReady",P({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:$c,timestamp:Date.now()}),ye("onJoliboxHideLoading")||px(t),Ik(()=>I.language)}),we("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;hx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),we("onJoliboxHideLoading",({duration:e})=>{px(e)})}function T4(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Gc==null||Gc(),Jc==null||Jc(),It.close(Date.now()-$c)},t=()=>Hc||fx;Rt.onDoExit(()=>g(this,null,function*(){return t()?!0:Jr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):Vc!=null&&Vc.canShowRecommended&&!mx&&(yield Wk())?!0:(e(),!1)})),Rt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function P4(){cx(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),lx(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),ux(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function O4(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield X(e);t&&(Vc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function R4(){$c=Date.now(),x4(),I4(),E4(),A4(),T4(),C4(),k4(),O4(),P4(),Jc=Kk(),Gc=fv()}var Gc,Jc,$c,Hc,Vc,fx,S4,mx,hx,vx=T(()=>{"use strict";ce();$();R();wt();mv();hs();zk();ft();cr();Yk();dx();ps();Hc=!1,Vc=null,fx=!1,S4=!1,mx=!1,hx=e=>{Jr(e)&&(mx=e)};Rt.onReady(()=>{})});var yx,N4,D4,L4,q4,bx=T(()=>{"use strict";R();Ve();ce();$();yx=Y(),N4="env",D4="getSystemInfoSync",L4=Q(D4,{implement:()=>{var r;let e=L("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:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),q4=Q(N4,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});yx.registerCommand("API.getSystemInfoSync",L4);yx.registerCommand("API.env",q4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var _x=h(Mf=>{"use strict";R();Ve();_t();ce();wt();$();var U4="exitGame",M4="onReady",F4="onJoliboxShow",j4="onJoliboxHide",Wc=Y(),zc=Yn(ke),B4=z(U4,{paramsSchema:S.tuple(S.function(),S.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Mf,null,function*(){zc(e).call(Mf),Jr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&ug("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield de("exitAppAsync")})}),G4=Q(F4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);we("onJoliboxEnterForeground",()=>{t.call(this),po.emit("visible",!0)})}}),J4=Q(j4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);we("onJoliboxEnterBackground",()=>{t.call(this),po.emit("visible",!1)})}}),H4=Q(M4,{paramsSchema:S.tuple(S.function()),implement(e){let t=zc(e);Se.on("LifecycleEvent.onReady",r=>{t(r)})}});Wc.registerCommand("LifecycleSDK.exit",B4);Wc.registerCommand("LifecycleSDK.onReady",H4);Wc.registerCommand("LifecycleSDK.onJoliboxShow",G4);Wc.registerCommand("LifecycleSDK.onJoliboxHide",J4);D("lifeCycle.exit",{version:"1.0.0"});D("lifeCycle.onReady",{version:"1.0.0"});D("lifeCycle.onJoliboxShow",{version:"1.0.0"});D("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function wx(e){let t={};if(!vn(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 Sx(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 Ix(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Ex(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!vn(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,c]of Object.entries(r))c!=null&&o.append(s,String(c));let a=o.toString();return a?`${n}?${a}`:n}var Ax=T(()=>{"use strict";R()});var V4,$4,Ff,jf,Cx,W4,z4,K4,kx=T(()=>{"use strict";Hr();Nu();Ve();Ax();R();_t();$();V4=15,$4=Wa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),Ff=0,jf=[],Cx=Yn(ke),W4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},z4=e=>{let t=new pt,r=()=>{};return Q("request",{paramsSchema:S.tuple(S.object({url:S.string(),method:S.string(),headers:S.object().optional(),data:S.or(S.object(),S.array()).optional(),query:S.object().optional(),dataType:S.string().default("json"),responseType:S.string().default("text"),enableCache:S.boolean().default(!1),appendHostCookie:S.boolean().default(!0),timeout:S.number().default(3e4),success:S.function(),fail:S.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=Cx(i.fail);try{if(Ff+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=wx((s=i.headers)!=null?s:{}),b=Sx(i.method),y=Ix(i.timeout),_=Ex(i.url,b,d),E=Cx(i.success),C=Object.assign({},i,{method:b,header:m?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});y&&(C.timeout=y);let x=$4(_,C);{let{response:k}=yield x,{code:A,data:H,message:ue}=k;if(H&&typeof H=="object"&&"status"in H&&H.status!==200)throw xe({code:H.status||-1,msg:`request:fail status ${H.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:H,message:ue!=null?ue:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:H})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Ff-=1,(l=jf.shift())==null||l()}});return Ff>=V4?(r=()=>{W4(jf,a=>a===o)},jf.push(o)):o(),t.promise}})(e),{abort(){t.reject(xe({code:-1,msg:"request:fail abort"})),r()}}},K4=Y();K4.registerCommand("HttpSDK.request",z4);D("request",{version:"1.0.0"})});var Y4,X4,Q4,Bf,xx=T(()=>{"use strict";R();ce();Ve();Y4=Q("showKeyboard",{paramsSchema:S.tuple(S.object({defaultValue:S.string().optional().default(""),multiple:S.boolean().optional().default(!1),maxLength:S.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)),L("showKeyboardSync",B(P({},e),{defaultValue:r,maxLength:t}))}});D("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"}});X4=Q("updateKeyboard",{paramsSchema:S.tuple(S.object({value:S.string()})),implement(e){L("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});Q4=Q("hideKeyboard",{implement(){L("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});Bf=Y();Bf.registerCommand("KeyboardSDK.showKeyboard",Y4);Bf.registerCommand("KeyboardSDK.updateKeyboard",X4);Bf.registerCommand("KeyboardSDK.hideKeyboard",Q4)});var Ox=h(Oi=>{"use strict";R();Ve();wt();ce();$();var la=Y(),Kc=null,Gf=!1,Tx=0,Z4=200;function eV(e){hn("cpUpdateScoreEvent",e,I.webviewId)}function Px(e){Kc=e,Gf||(Gf=!0,requestAnimationFrame(function t(){let r=Date.now();r-Tx>=Z4?(Kc!==null&&(eV(Kc),Tx=r,Kc=null),Gf=!1):requestAnimationFrame(t)}))}function Jf(e,t){return ye("notifyTaskGameInfoAsync")?L("notifyTaskGameInfoAsync",{event:e,inGameInfo:t}):It.reporter({event:e,extraParams:{inGameInfo:t}})}var tV=z("levelFinished",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),duration:S.number().optional(),rating:S.number().optional(),score:S.number().optional(),variation:S.string().optional()})),implement:e=>g(Oi,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(Jf("COMPLETE_GAME_LEVEL",{levelId:t,duration:r,rating:n,score:i})),Px({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),rV=z("gamePlayEnded",{paramsSchema:S.tuple(S.object({duration:S.number().optional(),rating:S.number().optional(),score:S.number(),variation:S.string().optional()})),implement:e=>g(Oi,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(Jf("GAME_ENDED",{duration:t,rating:r,score:n})),Px({duration:t,rating:r,score:n}),yield Promise.all(o)})}),nV=z("levelUpgrade",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),name:S.string().optional()})),implement:r=>g(Oi,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Jf("GAME_LEVEL_UP",{levelId:e,levelName:t})),hn("cpUpdateScoreEvent",{levelId:e},I.webviewId),yield Promise.all(n)})}),iV=z("levelStart",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number())})),implement:e=>g(Oi,null,function*(){let{levelId:t}=e;yield It.tracker("LevelStart",{levelId:t})})}),oV=z("levelFailed",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),score:S.number().optional(),rating:S.number().optional(),duration:S.number().optional()})),implement:e=>g(Oi,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield It.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});la.registerCommand("TaskTrackerSDK.levelFinished",tV);la.registerCommand("TaskTrackerSDK.gamePlayEnded",rV);la.registerCommand("TaskTrackerSDK.levelUpgrade",nV);la.registerCommand("TaskTrackerSDK.levelStart",iV);la.registerCommand("TaskTrackerSDK.levelFailed",oV);D("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"}}});D("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});D("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});D("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});D("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var Hf,Vf,$f,aV,Rx,Yc=T(()=>{"use strict";$();ce();Ve();R();Hr();D("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"}});D("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Hf=new Map;we("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Hf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Hf.delete(r))});Vf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield de("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=L("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw xe({code:-1,msg:"login failed"});let s=new pt;Hf.set(a,s);let c=yield s.promise,l=L("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:B(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return Se.emit("onLoginComplete",f),t?c:f}),$f=z("login",{paramsSchema:S.tuple(S.object({skipLogin:S.boolean().optional(),triggerFrom:S.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Vf(e!=null?e:{})})}}),aV=z("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield de("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Rx=Y();Rx.registerCommand("API.login",$f);Rx.registerCommand("API.checkSession",aV)});var Nx,Dx=T(()=>{"use strict";Nx=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 Nn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Vr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Lx(i.data),a=Nx(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-((c=a==null?void 0:a[0])!=null?c:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function Dn(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Vr(e),n=Lx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield St(e,JSON.stringify(n))})}var Lx,qx,Ux,Mx,Fx,jx,Bx,Gx,Jx,Hx,Vx,$x,Wx,zx,Kx,ua=T(()=>{"use strict";uo();Dx();Lx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};qx=Nn("joli_coin_use_modal_frequency"),Ux=Nn("joli_coin_payment_frequency"),Mx=Nn("joli_coin_unlogin_modal_frequency"),Fx=Nn("joli_gem_use_modal_frequency"),jx=Nn("joli_gem_payment_frequency"),Bx=Nn("joli_gem_unlogin_modal_frequency"),Gx=Nn("subscription_frequency");Jx=Dn("joli_coin_use_modal_frequency"),Hx=Dn("joli_coin_payment_frequency"),Vx=Dn("joli_coin_unlogin_modal_frequency"),$x=Dn("joli_gem_use_modal_frequency"),Wx=Dn("joli_gem_payment_frequency"),zx=Dn("joli_gem_unlogin_modal_frequency"),Kx=Dn("subscription_frequency")});var Wf,Xc,zf=T(()=>{"use strict";ft();Wf=Promise.resolve(),Xc=(e,t)=>g(void 0,null,function*(){Wf=Wf.then(()=>g(void 0,null,function*(){yield X(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Wf})});var Qc,Zc,Ht,el,Ln,Vt,Pr,tl,rl,qn,Ri,sV,M,Or,Rr,Je=T(()=>{"use strict";R();Qc="UNLOCK_OPTIONS_CHANGED",Zc="INVOKE_PAYMENT",Ht="ON_PAYMENT_RESULT",el="ON_USE_MODAL_EVENT",Ln="ON_USE_MODAL_RESULT",Vt="ON_USE_MODAL_FREQUENCY",Pr="ON_USE_UNLOGIN_MODAL_EVENT",tl="INVOKE_UNLOGIN_MODAL_EVENT",rl="INVOKE_SUBSCRIPTION_EVENT",qn="ON_USE_SUBSCRIPTION_RESULT",Ri=new Yt,sV=()=>({on:Ri.on.bind(Ri),off:Ri.off.bind(Ri),emit:Ri.emit.bind(Ri)}),M=sV(),Or={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Rr={show:!0,minInterval:8*60*60*1e3}});function He(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=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var lr=T(()=>{"use strict"});var Qx=h(Kf=>{"use strict";ua();zf();Je();Je();cr();wt();R();lr();var cV={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:qx,frequencyUpdater:Jx,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:Fx,frequencyUpdater:$x,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Yx=Rn(),Xx=He(M,Vt);Xx.getData();M.on(el,(e,t)=>g(Kf,null,function*(){let r=t.currency,n=cV[r];if(e.includes("ADS-")){yield Yx.show({duration:3e3});let c=yield Xx.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),Yx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){M.emit(Ln,{useModalResult:"CONFIRM"});return}if(!l){M.emit(Ln,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:K.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=Nk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:K.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),M.emit(Ln,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:K.Click,currency:r}),M.emit(Ln,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Kf,null,function*(){yield Xc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Zx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(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 ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var eT=T(()=>{"use strict";_t()});var da=T(()=>{"use strict"});var lV,Ni,xt,uV,Un,nl=T(()=>{"use strict";da();R();$();ft();lV=()=>{let[e,t]=[Ha,Va].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Ni,createPaymentInternalError:xt}=lV(),uV=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Un=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Ni(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield X(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Ni((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${uV}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Xf,tT,rT=T(()=>{"use strict";ft();nl();da();Xf=class extends Un{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield X("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Ni((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),xt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},tT=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new Xf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var nT,iT=T(()=>{"use strict";nT={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 Qf,oT,Zf,em,dV,tm,aT=T(()=>{"use strict";ft();nl();da();ce();R();$();cr();iT();Qf=new Map;we("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Qf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Ja(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw xt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=nT[r];a&&Tr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Qf.delete(t)}});oT=e=>g(void 0,null,function*(){var n,i;let t=new pt,r;try{let o=yield de("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw xt("orderUUID is null",1002);Qf.set(r,t)}catch(o){throw xt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Zf=class extends Un{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=()=>g(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},em=class extends Un{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=()=>g(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield X("/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 xt("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"}})}},dV={android:Zf,ios:em},tm=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=dV[I.platform];if(!s)throw xt("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 Ni(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Mn,rm=T(()=>{"use strict";eT();rT();aT();Mn=Zx();Mn.registerPaymentHandler("JOLI_COIN",tT());Mn.registerPaymentHandler("JOLI_COIN_IAP",tm());Mn.registerPaymentHandler("JOLI_GEM_IAP",tm())});function sT(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield St(a,c),yield St(s,l.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return c}catch(c){throw console.warn("[Cache] Executor failed for key:",e,c),c}})}function il(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Vr(s),{data:u}=yield Vr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),v=Date.now();yield St(s,m),yield St(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield St(s,null),yield St(c,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield St(s,d),yield St(c,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var nm=T(()=>{"use strict";uo()});function pV(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=>!oo(r.totalAmountStr))}var cn,im,ur,sl,om,am,ol,al,cT,cl,sm=T(()=>{"use strict";rm();R();ce();ft();R();nm();cn=class cn{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield X(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=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&pV(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return il(r,()=>g(this,null,function*(){try{let{data:n}=yield de("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(cn.nativePriceCache.set(r,n),cn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:cn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}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")}};cn.nativePriceCache=new Map,cn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,cn.nativePriceCacheTimestamp=new Map;im=cn,ur=class ur extends Ft{constructor(r,n){super(new im,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ur.failureCounters.get(this.apiEndpoint)||0;if(r>=ur.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ur.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ur.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ur.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ur.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(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 Mn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ur.failureCounters=new Map,ur.MAX_FAILURE_COUNT=2;sl=ur,om=class extends sl{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},am=class extends sl{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},ol=null,al=null,cT=()=>ol||(ol=new om,ol),cl=()=>al||(al=new am,al)});var dT=h(ll=>{"use strict";Je();cr();$();Yc();R();ua();rm();cr();Ve();wt();zf();lr();sm();var fV={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:Ux,frequencyUpdater:Hx,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:jx,frequencyUpdater:Wx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Di=Rn(),lT=cT(),uT=cl(),mV=He(M,Vt);M.on(Zc,(e,t)=>g(ll,null,function*(){var r,n,i;try{let o=t.currency,a=fV[o];if(!ye("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{M.emit(Ht,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Di.show({duration:3e3});let d=yield mV.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Di.hide(),!u){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Di.show({duration:3e3});let s=o==="JOLI_COIN"?lT:uT,c=yield s.getProductsInfo();if(Di.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:K.View,currency:o});let l=Dk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return B(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(ll,null,function*(){var f,m,v,b,y,_,E,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:K.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(x=>x.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=I.hostUserInfo)!=null&&v.isLogin)){let{data:x}=yield $f({skipLogin:!0});if(!(x!=null&&x.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(x=>x.productId===d))==null?void 0:_.appStoreProductId;if(!u){M.emit(Ht,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Di.show({duration:3e3});let{code:p}=yield Mn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Di.hide(),j(a.trackEvents.payResult,{eventType:K.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(E=c.paymentChoices.find(x=>x.productId===d))==null?void 0:E.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Tr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{M.emit(Ht,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:K.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(ll,null,function*(){yield Xc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:K.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=c.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),M.emit(Ht,{paymentResult:"FAILED",currency:t.currency})}}));lT.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});uT.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var fT=h(ul=>{"use strict";Je();lr();ua();ft();_t();R();Yc();cr();wt();var hV={JOLI_COIN:{frequencyChecker:Mx,frequencyUpdater:Vx,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:Bx,frequencyUpdater:zx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},pT=He(M,Vt);pT.getData();M.on(tl,(e,t)=>g(ul,null,function*(){var r;try{let n=t.currency,i=hV[n];if(e.includes("ADS-")){let s=yield pT.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){M.emit(Pr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){M.emit(Pr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield gV())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),M.emit(Pr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:K.Expose,currency:n},K.Expose);let a=Lk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(ul,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:K.Click,currency:n},K.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Vf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:K.Click,currency:n},K.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Tr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}M.emit(Pr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=c==null?void 0:c.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:l!=null?l:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{j(i.trackEvents.modalHide,{eventType:K.Hide,currency:n},K.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:K.Click,currency:n},K.Click),M.emit(Pr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){ke(new Eg(n)),M.emit(Pr,{result:"FAILED"})}}));var gV=()=>g(ul,null,function*(){var t;let{response:e}=yield X("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function vV(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return ke(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var pa,cm=T(()=>{"use strict";_t();pa=vV()});var Fn,dl=T(()=>{"use strict";Fn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var yV,mT,pl,bV,fa,lm=T(()=>{"use strict";dl();R();$();yV=()=>{let[e,t]=[Ha,Va].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:mT,createSubscriptionInternalError:pl}=yV(),bV=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",fa=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw mT(n,Fn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${bV}/subscription/callback?${t.toString()}`};this.createSubscriptionError=mT;this.createSubscriptionInternalError=pl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function _V(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(c=>c.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!oo(r.amountStr))}var jn,ml,um,dm,fl,hT,pm=T(()=>{"use strict";R();ce();ft();R();nm();cm();ce();lm();dl();jn=class jn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield X(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&_V(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(jn.nativePriceCache.set(r,n),jn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?sT:il)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};jn.nativePriceCache=new Map,jn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,jn.nativePriceCacheTimestamp=new Map;ml=jn,um=class extends Ft{constructor(r){super(new ml,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",pa);let n=new AbortController,i=pa.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield X("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield Ga(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new pt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=L("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw pl("orderUUID is null",Fn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw pl((o=JSON.stringify(a))!=null?o:"subscription panel failed",Fn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=ml.getNativePriceCache((n!=null?n:[]).map(c=>{var l;return(l=c.appStoreProductId)!=null?l:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){we("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},dm=class extends um{constructor(){super("/api/subs/pricing")}},fl=null,hT=()=>fl||(fl=new dm,fl)});var gT=T(()=>{"use strict"});function yT(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=wV[I.platform];if(!a)throw new Error(`Platform ${I.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var fm,vT,mm,hm,wV,bT=T(()=>{"use strict";$();lm();da();nl();R();ce();R();dl();we("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});fm=new Map;we("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=fm.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&Ja(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw xt(`subscription failed: ${n==null?void 0:n.errMsg}`,Fn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}fm.delete(t)}});vT=e=>g(void 0,null,function*(){var n,i;let t=new pt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=L("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw xt("subUUID is null",1002);fm.set(r,t)}catch(o){throw xt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),mm=class extends fa{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield vT(r)})}},hm=class extends fa{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=L("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw xt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield vT(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},wV={android:mm,ios:hm}});var Bn,gm=T(()=>{"use strict";pm();gT();cm();bT();pm();Bn=hT();pa.registerSubscriptionHandler("SUB_APP",yT())});var IT=h(ST=>{"use strict";ua();Je();lr();Ve();gm();cr();var SV={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Gx,frequencyUpdater:Kx}},_T=Rn(),wT=He(M,Vt);wT.getData();M.on(rl,e=>g(ST,null,function*(){let t=SV.SUBSCRIPTION;if(!ye("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{M.emit(qn,{result:"FAILED"})},0);return}yield _T.show({duration:3e3});let r=yield wT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(_T.hide(),!n){M.emit(qn,{result:"FAILED"});return}let{data:o,code:a}=yield Bn.invokeSubscriptionPanel();a=="SUCCESS"?M.emit(qn,{result:"SUCCESS"}):M.emit(qn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Iie,Eie,Aie,Cie,ET=T(()=>{"use strict";Iie=se(Qx()),Eie=se(dT()),Aie=se(fT()),Cie=se(IT())});var Li,vm=T(()=>{"use strict";Li=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function qV(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function UV(e){return typeof e=="string"}function MV(e){return typeof e=="undefined"}function FV(e){return MV(e)||e===null}function jV(e){return typeof e=="function"}function nP(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 ma(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function bl(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 WV(e){let t=e.location?bl(e.location,PT):null,r=e.target?bl(e.target,PT):null;return bl(NV(RV({},e),{location:t,target:r}),VV)}function zV(e){let t=e.events.map(n=>WV(n)),r=bl(e.device,$V);return[e.protocolVersion,t,r,e.project]}function KV(){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 e$(e){return new Promise(t=>sP(e)(t))}function sP(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 t$(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new _a(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 n$(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)i$(e[n],t[n])}function i$(e,t){if(UV(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jV(t)){try{if(e instanceof t)return}catch(r){}if(!FV(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 gt(e,t,r){return(t=o$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=a$(e,"string");return typeof t=="symbol"?t:t+""}function a$(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 hl(e,t,r){return(t=s$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s$(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 gl(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=u$(e,"string");return typeof t=="symbol"?t:t+""}function u$(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 Nr(e,t,r){return(t=d$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return typeof t=="symbol"?t:t+""}function p$(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 f$(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 m$(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 _$(e,t){return Ye(e,0)^45?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}function uP(e){return e.trim()}function w$(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function Dm(e,t){return e.indexOf(t)}function Ye(e,t){return e.charCodeAt(t)|0}function wa(e,t,r){return e.slice(t,r)}function fr(e){return e.length}function ah(e){return e.length}function vl(e,t){return t.push(e),e}function S$(e,t){return e.map(t).join("")}function Ml(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ul,column:Gi,length:a,return:""}}function ga(e,t){return b$(Ml("",null,null,"",null,null,0),e,{length:-e.length},t)}function I$(){return qe}function E$(){return qe=yt>0?Ye(Hi,--yt):0,Gi--,qe===10&&(Gi=1,Ul--),qe}function Pt(){return qe=yt<dP?Ye(Hi,yt++):0,Gi++,qe===10&&(Gi=1,Ul++),qe}function mr(){return Ye(Hi,yt)}function _l(){return yt}function Ea(e,t){return wa(Hi,e,t)}function Sa(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 pP(e){return Ul=Gi=1,dP=fr(Hi=e),yt=0,[]}function fP(e){return Hi="",e}function wl(e){return uP(Ea(yt-1,Lm(e===91?e+2:e===40?e+1:e)))}function A$(e){for(;(qe=mr())&&qe<33;)Pt();return Sa(e)>2||Sa(qe)>3?"":" "}function C$(e,t){for(;--t&&Pt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return Ea(e,_l()+(t<6&&mr()==32&&Pt()==32))}function Lm(e){for(;Pt();)switch(qe){case e:return yt;case 34:case 39:e!==34&&e!==39&&Lm(qe);break;case 40:e===41&&Lm(e);break;case 92:Pt();break}return yt}function k$(e,t){for(;Pt()&&e+qe!==57&&!(e+qe===84&&mr()===47););return"/*"+Ea(t,yt-1)+"*"+ql(e===47?e:Pt())}function x$(e){for(;!Sa(mr());)Pt();return Ea(e,yt)}function T$(e){return fP(Sl("",null,null,null,[""],e=pP(e),0,[0],e))}function Sl(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,E="",C=i,x=o,k=n,A=E;b;)switch(m=_,_=Pt()){case 40:if(m!=108&&Ye(A,u-1)==58){Dm(A+=ne(wl(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=wl(_);break;case 9:case 10:case 13:case 32:A+=A$(m);break;case 92:A+=C$(_l()-1,7);continue;case 47:switch(mr()){case 42:case 47:vl(P$(k$(Pt(),_l()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=fr(A)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(A=ne(A,/\f/g,"")),f>0&&fr(A)-u&&vl(f>32?NT(A+";",n,r,u-1):NT(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(vl(k=RT(A,t,r,l,d,i,s,E,C=[],x=[],u),o),_===123)if(d===0)Sl(A,t,k,k,C,o,u,s,x);else switch(p===99&&Ye(A,3)===110?100:p){case 100:case 108:case 109:case 115:Sl(e,k,k,n&&vl(RT(e,k,k,0,0,i,s,E,i,C=[],u),x),i,x,u,s,n?C:x);break;default:Sl(A,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+fr(A),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&E$()==125)continue}switch(A+=ql(_),_*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(fr(A)-1)*y,y=1;break;case 64:mr()===45&&(A+=wl(Pt())),p=mr(),d=u=fr(E=A+=x$(_l())),_++;break;case 45:m===45&&fr(A)==2&&(v=0)}}return o}function RT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=ah(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=wa(e,u+1,u=y$(v=a[m])),E=e;y<f;++y)(E=uP(v>0?p[y]+" "+_:ne(_,/&\f/g,p[y])))&&(c[b++]=E);return Ml(e,t,r,i===0?ih:s,c,l,d)}function P$(e,t,r){return Ml(e,t,r,cP,ql(I$()),wa(e,2,-2),0)}function NT(e,t,r,n){return Ml(e,t,r,oh,wa(e,0,n),wa(e,n+1,-1),n)}function Bi(e,t){for(var r="",n=ah(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function O$(e,t,r,n){switch(e.type){case v$:if(e.children.length)break;case g$:case oh:return e.return=e.return||e.value;case cP:return"";case lP:return e.return=e.value+"{"+Bi(e.children,n)+"}";case ih:e.value=e.props.join(",")}return fr(r=Bi(e.children,n))?e.return=e.value+"{"+r+"}":""}function R$(e){var t=ah(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 N$(e){return function(t){t.root||(t=t.return)&&e(t)}}function D$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function mP(e,t){switch(_$(e,t)){case 5103:return re+"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 re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+Tl+e+ot+e+e;case 6828:case 4268:return re+e+ot+e+e;case 6165:return re+e+ot+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return re+e+ot+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+ot+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+ot+ne(e,"shrink","negative")+e;case 5292:return re+e+ot+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+ot+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$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(fr(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Tl+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dm(e,"stretch")?mP(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,fr(e)-3-(~Dm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(Ye(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+ot+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+ot+e+e}return e}function J$(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 un={name:i.name,styles:i.styles,next:un},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)un={name:a.name,styles:a.styles,next:un},a=a.next;var s=o.styles+";";return s}return W$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function W$(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]+"}":LT(s)&&(n+=bm(o)+":"+qT(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)LT(a[c])&&(n+=bm(o)+":"+qT(o,a[c])+";");else{var l=Pl(e,t,a);switch(o){case"animation":case"animationName":{n+=bm(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function _m(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="";un=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 c=o;i+=c[s]}UT.lastIndex=0;for(var l="",d;(d=UT.exec(i))!==null;)l+="-"+d[1];var u=J$(i)+l;return{name:u,styles:i,next:un}}function gP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function MT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function FT(e,t,r){var n=[],i=gP(e,n,r);return n.length<2?r:i+t(n)}function Z$(e,t){Be.__h&&Be.__h(Tt,e,BT||t),BT=0;var r=Tt.__H||(Tt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yP(e,t){var r=Z$(qm++,7);return r9(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function e9(){for(var e;e=vP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Il),e.__H.__h.forEach(Um),e.__H.__h=[]}catch(t){e.__H.__h=[],Be.__e(t,e.__v)}}function t9(e){var t,r=function(){clearTimeout(n),zT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);zT&&(t=requestAnimationFrame(r))}function Il(e){var t=Tt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Tt=t}function Um(e){var t=Tt;e.__c=e.__(),Tt=t}function r9(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Fl(){if(dn>1)dn--;else{for(var e,t=!1;ya!==void 0;){var r=ya;for(ya=void 0,Mm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&_P(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Mm=0,dn--,t)throw e}}function Ce(e){if(dn>0)return e();dn++;try{return e()}finally{Fl()}}function bP(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Xe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Xe(e)}function _P(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 wP(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 SP(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 Vi(e){Xe.call(this,void 0),this.x=e,this.s=void 0,this.g=Ol-1,this.f=4}function ba(e){return new Vi(e)}function IP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){dn++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,sh(e),n}finally{le=r,Fl()}}}function sh(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,IP(e)}function i9(e){if(le!==this)throw new Error("Out-of-order effect");SP(this),le=e,this.f&=-2,8&this.f&&sh(this),Fl()}function Aa(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ca(e){var t=new Aa(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function $i(e,t){q[e]=t.bind(null,q[e]||function(){})}function Rl(e){Sm&&Sm(),Sm=e&&e.S()}function CP(e){var t=this,r=e.data,n=kP(r);n.value=r;var i=yP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ba(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ba(function(){return!Array.isArray(l.value)&&!Vu(l.value)}),u=Ca(function(){if(this.N=xP,d.value){var f=l.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,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function o9(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:Ca(function(){this.N=xP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function kP(e){return yP(function(){return W(e)},[])}function s9(){Ce(function(){for(var e;e=AP.shift();)EP.call(e)})}function xP(){AP.push(this)===1&&(q.requestAnimationFrame||a9)(s9)}function c9(e,t){let r=pi(e);di(()=>{r.current=e},[e]),Yr(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function G(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--l9,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return q.vnode&&q.vnode(l),l}function Dr(e,t,r){return(t=b9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b9(e){var t=_9(e,"string");return typeof t=="symbol"?t:t+""}function _9(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 ut(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=N9(e,"string");return typeof t=="symbol"?t:t+""}function N9(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 Lr(e,t,r){return(t=L9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=q9(e,"string");return typeof t=="symbol"?t:t+""}function q9(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 it(e,t,r){return(t=U9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U9(e){var t=M9(e,"string");return typeof t=="symbol"?t:t+""}function M9(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 vt(e,t,r){return(t=F9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F9(e){var t=j9(e,"string");return typeof t=="symbol"?t:t+""}function j9(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 Gn(e,t,r){return(t=B9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9(e){var t=G9(e,"string");return typeof t=="symbol"?t:t+""}function G9(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 Im(e,t,r){return(t=J9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J9(e){var t=H9(e,"string");return typeof t=="symbol"?t:t+""}function H9(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 dt(e,t,r){return(t=V9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=$9(e,"string");return typeof t=="symbol"?t:t+""}function $9(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 W9(e,t,r){return(t=z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=K9(e,"string");return typeof t=="symbol"?t:t+""}function K9(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 qr(e,t,r){return(t=X9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X9(e){var t=Q9(e,"string");return typeof t=="symbol"?t:t+""}function Q9(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 Ur(e,t,r){return(t=Z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z9(e){var t=eW(e,"string");return typeof t=="symbol"?t:t+""}function eW(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 va(e,t,r){return(t=tW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=rW(e,"string");return typeof t=="symbol"?t:t+""}function rW(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 iW(e,t){return t==="call"&&e.join(".")==="GameSDK.showRewardAd"?0:15e3}function YT(e,t,r,n){return new Promise((i,o)=>{if(!window.parent||window.parent===window){o(new Error("[ParentProxy] No parent window"));return}let a=`${Em}-${++nW}`,s=d=>{let u=d.data;(u==null?void 0:u.type)===`${Em}:response`&&u.id===a&&(window.removeEventListener("message",s),l&&clearTimeout(l),u.error?o(new Error(u.error)):i(u.result))},c=iW(e,t),l=c>0?window.setTimeout(()=>{window.removeEventListener("message",s),o(new Error(`[ParentProxy] Timeout after ${c}ms: ${e.join(".")}.${t}`))},c):null;window.addEventListener("message",s),window.parent.postMessage({type:`${Em}:request`,id:a,path:e,action:t,args:r,value:n},"*")})}function LP(e){return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:",e),new Proxy(()=>{},{get(t,r){if(console.log("[JoliboxSDK] NewsBreak createProxyForPath get:",r),!(r==="then"||r==="toJSON"||typeof r=="symbol"))return LP([...e,r])},set(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:",r),YT([...e,r],"set",void 0,n).catch(i=>{console.warn(`[ParentProxy] set ${[...e,r].join(".")} failed:`,i)}),!0},apply(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:",n),YT(e,"call",n)}})}function oW(e){return LP([e])}function Mi(e,t,r){return(t=aW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=sW(e,"string");return typeof t=="symbol"?t:t+""}function sW(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 XT(e,t,r){return(t=cW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cW(e){var t=lW(e,"string");return typeof t=="symbol"?t:t+""}function lW(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 $t(e,t,r){return(t=uW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uW(e){var t=dW(e,"string");return typeof t=="symbol"?t:t+""}function dW(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 yl(e,t,r){return(t=pW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pW(e){var t=fW(e,"string");return typeof t=="symbol"?t:t+""}function fW(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 Am(e,t,r){return(t=mW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mW(e){var t=hW(e,"string");return typeof t=="symbol"?t:t+""}function hW(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 me(e,t,r){return(t=gW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gW(e){var t=vW(e,"string");return typeof t=="symbol"?t:t+""}function vW(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=wW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wW(e){var t=SW(e,"string");return typeof t=="symbol"?t:t+""}function SW(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 dr(e,t,r){return(t=IW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IW(e){var t=EW(e,"string");return typeof t=="symbol"?t:t+""}function EW(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 Wt(e,t,r){return(t=AW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AW(e){var t=CW(e,"string");return typeof t=="symbol"?t:t+""}function CW(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 ln(e,t,r){return(t=kW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kW(e){var t=xW(e,"string");return typeof t=="symbol"?t:t+""}function xW(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 pr(e,t,r){return(t=TW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TW(e){var t=PW(e,"string");return typeof t=="symbol"?t:t+""}function PW(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 IV,EV,AV,kl,QT,ZT,AT,eP,CV,kV,tP,xV,TV,CT,PV,OV,kT,RV,NV,DV,rP,LV,BV,GV,xT,JV,TT,HV,iP,oP,aP,PT,VV,$V,Fi,xl,Cm,_e,YV,XV,ha,_a,QV,xm,ZV,ym,r$,Tm,OT,qi,Pm,Om,Rm,Nm,h$,ot,Tl,re,cP,ih,oh,g$,lP,v$,y$,ql,b$,Ul,Gi,dP,yt,qe,Hi,L$,q$,U$,DT,M$,F$,j$,B$,G$,H$,V$,$$,hP,LT,bm,qT,UT,un,z$,K$,Y$,X$,Q$,st,qm,Tt,wm,jT,BT,vP,Be,GT,JT,HT,VT,$T,WT,zT,n9,le,ya,dn,Mm,Ol,EP,Sm,AP,a9,Ge,l9,u9,Fr,Fm,jm,El,d9,p9,f9,m9,h9,g9,v9,TP,y9,PP,Bm,w9,S9,I9,E9,A9,C9,k9,KT,x9,T9,P9,O9,Gm,ji,Ui,OP,D9,RP,Jm,NP,DP,Hm,Vm,$m,Ia,Nl,Y9,Dl,Wm,zm,Km,Em,nW,Al,Ym,Xm,Ji,Qm,at,Zm,Cl,yW,bW,_W,eh,th,rh,nh,Ll,ch=T(()=>{"use strict";ti();Ns();ce();IV=Object.defineProperty,EV=Object.defineProperties,AV=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,QT=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable,AT=(e,t,r)=>t in e?IV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eP=(e,t)=>{for(var r in t||(t={}))QT.call(t,r)&&AT(e,r,t[r]);if(kl)for(var r of kl(t))ZT.call(t,r)&&AT(e,r,t[r]);return e},CV=(e,t)=>EV(e,AV(t)),kV=(e,t)=>{var r={};for(var n in e)QT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&kl)for(var n of kl(e))t.indexOf(n)<0&&ZT.call(e,n)&&(r[n]=e[n]);return r},tP=Object.defineProperty,xV=Object.defineProperties,TV=Object.getOwnPropertyDescriptors,CT=Object.getOwnPropertySymbols,PV=Object.prototype.hasOwnProperty,OV=Object.prototype.propertyIsEnumerable,kT=(e,t,r)=>t in e?tP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RV=(e,t)=>{for(var r in t||(t={}))PV.call(t,r)&&kT(e,r,t[r]);if(CT)for(var r of CT(t))OV.call(t,r)&&kT(e,r,t[r]);return e},NV=(e,t)=>xV(e,TV(t)),DV=(e,t)=>{for(var r in t)tP(e,r,{get:t[r],enumerable:!0})},rP=(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},LV=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.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}BV=(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))(BV||{});GV={log:ma("log"),warn:ma("warn"),info:ma("info"),error:ma("error"),debug:ma("debug")};Object.assign(globalThis,{logger:GV});xT=Symbol.for("Jolibox.canIUseMap"),JV={};globalThis[xT]||(globalThis[xT]=JV);TT=Symbol.for("Jolibox.canIUseMap.native"),HV={};globalThis[TT]||(globalThis[TT]=HV);iP=(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))(iP||{}),oP=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(oP||{}),aP=(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))(aP||{}),PT=["name","params"],VV=["name","type","location","target","extra","timestamp","userId"],$V=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];KV();Fi=typeof window=="undefined",xl=()=>!Fi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Fi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Fi&&navigator.userAgent.includes("Android"),!Fi&&navigator.userAgent.includes("Mac"),!Fi&&navigator.userAgent.includes("FB_IAB"),!Fi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Cm=class km{constructor(t){this.element=t,this.next=km.Undefined,this.prev=km.Undefined}};Cm.Undefined=new Cm(void 0);_e=Cm,YV=class{constructor(){this._first=_e.Undefined,this._last=_e.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_e.Undefined}clear(){let e=this._first;for(;e!==_e.Undefined;){let t=e.next;e.prev=_e.Undefined,e.next=_e.Undefined,e=t}this._first=_e.Undefined,this._last=_e.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new _e(e);if(this._first===_e.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!==_e.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==_e.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==_e.Undefined&&e.next!==_e.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===_e.Undefined&&e.next===_e.Undefined?(this._first=_e.Undefined,this._last=_e.Undefined):e.next===_e.Undefined?(this._last=this._last.prev,this._last.next=_e.Undefined):e.prev===_e.Undefined&&(this._first=this._first.next,this._first.prev=_e.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==_e.Undefined;)yield e.element,e=e.next}},XV=0,ha=class{constructor(e){this.value=e,this.id=XV++}},_a=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 ha&&(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 c=new ha(e);return this._listeners?this._listeners instanceof ha?this._listeners=[this._listeners,c]:this._listeners.push(c):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=c,(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 l,d,u,p;if(!this._disposed){if(this._listeners instanceof ha)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(d=(l=this.options)==null?void 0:l.onDidRemoveLastListener)==null||d.call(l));else if(this._listeners){let f=this._listeners.indexOf(c);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 ha?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},QV=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 _a,o=c=>t(...c.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 c of s)t(...c.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 YV,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)}},xm={};DV(xm,{None:()=>ZV,filter:()=>t$,once:()=>sP,toPromise:()=>e$});ZV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ym=Symbol.for("Jolibox.hostEmitter"),r$=()=>{let e=new QV;return globalThis[ym]||(globalThis[ym]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ym]};r$();Tm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new _a,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 n$(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}};Tm=rP([nP],Tm);OT=class{constructor(){this._onWillExecuteCommand=new _a,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new _a,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Tm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=qV(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 LV(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),xm.toPromise(xm.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{}}};OT=rP([nP],OT);qi=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")},Pm=class{constructor(t){gt(this,"context",void 0),gt(this,"continueCallback",void 0),gt(this,"adIsShowingCallback",void 0),gt(this,"isBeforeAdCalled",!1),gt(this,"isBeforeRewardCalled",!1),gt(this,"isAdDismissedCalled",!1),gt(this,"isAdViewedCalled",!1),gt(this,"isAfterAdCalled",!1),gt(this,"currentProvider",void 0),gt(this,"currentClientParams",void 0),gt(this,"adsHasResponse",!1),gt(this,"videoChecker",window.document.createElement("video")),gt(this,"contextInfo",void 0),gt(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",eP({userEvent:a},this.paramsToTrack)),xl()&&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=qi(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=qi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),xl()&&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=qi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=qi(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=qi(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,c,l,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:(c=r.breakName)!=null?c:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=qi(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.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 g(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,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.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")})})}};Om=class{constructor(t){hl(this,"context",void 0),hl(this,"adBreakIsShowing",!1),hl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),hl(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()})}};Rm=class{constructor(t){gl(this,"configs",null),gl(this,"firstRun",!0),gl(this,"context",void 0),gl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(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}};Nm=class{constructor(t,r){Nr(this,"name","ADSENSE"),Nr(this,"context",void 0),Nr(this,"contextInfo",void 0),Nr(this,"configured",!1),Nr(this,"initParams",void 0),Nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=kV(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Nr(this,"adUnit",n=>g(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:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let E=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"null"})}})}).observe(b,{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 g(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(m$(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=f$(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}(),ot="-ms-",Tl="-moz-",re="-webkit-",cP="comm",ih="rule",oh="decl",g$="@import",lP="@keyframes",v$="@layer",y$=Math.abs,ql=String.fromCharCode,b$=Object.assign;Ul=1,Gi=1,dP=0,yt=0,qe=0,Hi="";L$=function(e,t,r){for(var n=0,i=0;n=i,i=mr(),n===38&&i===12&&(t[r]=1),!Sa(i);)Pt();return Ea(e,yt)},q$=function(e,t){var r=-1,n=44;do switch(Sa(n)){case 0:n===38&&mr()===12&&(t[r]=1),e[r]+=L$(yt-1,t,r);break;case 2:e[r]+=wl(n);break;case 4:if(n===44){e[++r]=mr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ql(n)}while(n=Pt());return e},U$=function(e,t){return fP(q$(pP(e),t))},DT=new WeakMap,M$=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&&!DT.get(r))&&!n){DT.set(e,!0);for(var i=[],o=U$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},F$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};j$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case oh:e.return=mP(e.value,e.length);break;case lP:return Bi([ga(e,{value:ne(e.value,"@","@"+re)})],n);case ih:if(e.length)return S$(e.props,function(i){switch(w$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bi([ga(e,{props:[ne(i,/:(read-\w+)/,":"+Tl+"$1")]})],n);case"::placeholder":return Bi([ga(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),ga(e,{props:[ne(i,/:(plac\w+)/,":"+Tl+"$1")]}),ga(e,{props:[ne(i,/:(plac\w+)/,ot+"input-$1")]})],n)}return""})}},B$=[j$],G$=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||B$,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(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[M$,F$];{var l,d=[O$,N$(function(m){l.insert(m)})],u=R$(c.concat(n,d)),p=function(m){return Bi(T$(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(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};H$={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},V$=/[A-Z]|^ms/g,$$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hP=function(e){return e.charCodeAt(1)===45},LT=function(e){return e!=null&&typeof e!="boolean"},bm=D$(function(e){return hP(e)?e:e.replace(V$,"-$&").toLowerCase()}),qT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($$,function(r,n,i){return un={name:n,styles:i,next:un},n})}return H$[e]!==1&&!hP(e)&&typeof t=="number"&&t!==0?t+"px":t};UT=/label:\s*([^\s;{]+)\s*(;|$)/g;z$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},K$=function(e,t,r){z$(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)}};Y$=function(e){var t=G$(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered,void 0);return K$(t,l),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered),d="animation-"+l.name;return MT(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=_m(s,t.registered);MT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return FT(t.registered,r,X$(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:gP.bind(null,t.registered),merge:FT.bind(null,t.registered,r)}},X$=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},Q$=Y$({key:"css"}),st=Q$.css,BT=0,vP=[],Be=q,GT=Be.__b,JT=Be.__r,HT=Be.diffed,VT=Be.__c,$T=Be.unmount,WT=Be.__;Be.__b=function(e){Tt=null,GT&>(e)},Be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),WT&&WT(e,t)},Be.__r=function(e){JT&&JT(e),qm=0;var t=(Tt=e.__c).__H;t&&(wm===Tt?(t.__h=[],Tt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Il),t.__h.forEach(Um),t.__h=[],qm=0)),wm=Tt},Be.diffed=function(e){HT&&HT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(vP.push(t)!==1&&jT===Be.requestAnimationFrame||((jT=Be.requestAnimationFrame)||t9)(e9)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),wm=Tt=null},Be.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Il),r.__h=r.__h.filter(function(n){return!n.__||Um(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Be.__e(n,r.__v)}}),VT&&VT(e,t)},Be.unmount=function(e){$T&&$T(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Il(n)}catch(i){t=i}}),r.__H=void 0,t&&Be.__e(t,r.__v))};zT=typeof requestAnimationFrame=="function";n9=Symbol.for("preact-signals");le=void 0,ya=void 0,dn=0,Mm=0,Ol=0;Xe.prototype.brand=n9;Xe.prototype.h=function(){return!0};Xe.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)};Xe.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)}};Xe.prototype.subscribe=function(e){var t=this;return Ca(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}})};Xe.prototype.valueOf=function(){return this.value};Xe.prototype.toString=function(){return this.value+""};Xe.prototype.toJSON=function(){return this.value};Xe.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Xe.prototype,"value",{get:function(){var e=bP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Mm>100)throw new Error("Cycle detected");this.v=e,this.i++,Ol++,dn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fl()}}}});(Vi.prototype=new Xe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ol))return!0;if(this.g=Ol,this.f|=1,this.i>0&&!_P(this))return this.f&=-2,!0;var e=le;try{wP(this),le=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 le=e,SP(this),this.f&=-2,!0};Vi.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)}Xe.prototype.S.call(this,e)};Vi.prototype.U=function(e){if(this.t!==void 0&&(Xe.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)}};Vi.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(Vi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=bP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Aa.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()}};Aa.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,IP(this),wP(this),dn++;var e=le;return le=this,i9.bind(this,e)};Aa.prototype.N=function(){2&this.f||(this.f|=2,this.o=ya,ya=this)};Aa.prototype.d=function(){this.f|=8,1&this.f||sh(this)};AP=[];Ca(function(){EP=this.N})();CP.displayName="_st";Object.defineProperties(Xe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:CP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});$i("__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 Xe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});$i("__r",function(e,t){Rl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ca(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Rl(r),e(t)});$i("__e",function(e,t,r,n){Rl(),e(t,r,n)});$i("diffed",function(e,t){Rl();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 c in n){var l=o[c],d=n[c];l===void 0?(l=o9(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});$i("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)});$i("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Et.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};a9=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ge=st`
|
|
623
623
|
inset: 0;
|
|
624
624
|
clear: none;
|
|
625
625
|
float: none;
|
|
@@ -847,7 +847,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
847
847
|
font-size: 14px;
|
|
848
848
|
font-weight: 500;
|
|
849
849
|
cursor: pointer;
|
|
850
|
-
`,O9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=Sr(!1),[p,f]=Sr(0),[m,v]=Sr(!1),[b,y]=Sr(!1),[_,E]=Sr("Loading next content..."),C=
|
|
850
|
+
`,O9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=Sr(!1),[p,f]=Sr(0),[m,v]=Sr(!1),[b,y]=Sr(!1),[_,E]=Sr("Loading next content..."),C=pi(null),x=l.value,k=Xr(N=>{var O,F,J,V;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(F=i.value)==null||F.call(i),(J=r.value)==null||J.call(r),(V=o.value)==null||V.call(o)},[c,n,i,r,o]),A=Xr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(Yr(()=>{var N;if(!c.value||!x){f(0),v(!1),y(!1),E("Loading next content...");return}let O=x.mode==="reward"?15:0,F=Math.max(Math.floor((N=x.countdown)!=null?N:O),0);if(f(F),y(x.mode==="reward"?F===0:!0),v(x.mode==="interstitial"?F===0:!1),F===0)return;let J=F,V=window.setInterval(()=>{J-=1,f(Math.max(J,0)),J<=0&&(window.clearInterval(V),x.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(V)}},[c.value,x,k]),Yr(()=>{var N;if(!c.value||!x)return;let O=C.current;if(!O)return;if(O.innerHTML="",E("Loading next content..."),u(!1),x.testMode){let V=document.createElement("div");V.className=KT,V.innerText="Preview slot placeholder",O.appendChild(V),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){A();return}let F=document.createElement("ins");F.className="adsbygoogle",F.style.display="block",F.style.width="100%",F.style.height="100%",F.setAttribute("data-ad-client",x.clientId),F.setAttribute("data-ad-slot",x.unitId),F.setAttribute("data-ad-format","auto"),F.setAttribute("data-full-width-responsive","true"),x.channelId&&F.setAttribute("data-ad-channel",x.channelId),O.appendChild(F);let J=new MutationObserver(()=>{var V;let Mt=F.getAttribute("data-ad-status");Mt==="filled"?(u(!0),E(""),(V=a.value)==null||V.call(a),J.disconnect()):Mt==="unfilled"&&(E("Slot currently unavailable."),u(!1),J.disconnect())});J.observe(F,{attributes:!0,attributeFilter:["data-ad-status"]});try{let V=window;V.adsbygoogle=V.adsbygoogle||[],V.adsbygoogle.push({})}catch(V){J.disconnect(),A()}return()=>{J.disconnect(),O.innerHTML=""}},[c.value,x,a,A]),!c.value||!x)return null;let H=x.mode==="reward"?"Next content unlocking":"Content paused",ue=p>0?`Content resumes in ${p}s`:"Content ready";return G("div",{className:S9,children:G("div",{className:I9,children:[G("div",{className:E9,children:[G("div",{className:A9,children:H}),G("div",{className:C9,children:ue})]}),G("div",{className:k9,ref:C,children:!d&&G("div",{className:KT,children:_})}),G("div",{className:x9,children:x.mode==="reward"?G("button",{className:T9,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&G("button",{className:P9,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Gm=class{constructor(t,r){if(ut(this,"name","ADSENSE_BANNER_AS_AFG"),ut(this,"initialized",!1),ut(this,"initCompleter",null),ut(this,"context",void 0),ut(this,"contextInfo",void 0),ut(this,"initParams",void 0),ut(this,"defaultCountdown",5),ut(this,"adsOverlay",null),ut(this,"adsIsShowing",!1),ut(this,"lastUnDisplayedAdBreak",null),ut(this,"requestCounter",0),ut(this,"scriptPromise",null),ut(this,"scriptReady",!1),ut(this,"scriptFailed",!1),ut(this,"state",w9()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return g(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),Qt(G(O9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}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)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,c,l,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let m=this.resolveOverlayConfig(r);if(!this.canDisplay(m.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},y=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,v)},_=()=>{var E,C;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(E=t.afterAd)==null||E.call(t),(C=t.adBreakDone)==null||C.call(t,v)};Ce(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=_,this.showBannerOverlay("interstitial",m)});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(c=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(c,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(d=t.beforeAd)==null||d.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,v.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},_=()=>{var k;this.adsIsShowing=!1,v.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},E=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,v)},C=()=>{var k,A;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(k=t.afterAd)==null||k.call(t),(A=t.adBreakDone)==null||A.call(t,v)};Ce(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=_,this.state.adBreakDone.value=E,this.state.adError.value=C});let x=()=>{var k,A;if(!this.canDisplay(m.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(k=t.afterAd)==null||k.call(t),(A=t.adBreakDone)==null||A.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,Ce(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,x);break}}}},ji={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||ji[e.data.type]&&ji[e.data.type].forEach(t=>{t(e.data.data)})});Ui=(e,t)=>{Yr(()=>(ji[e]||(ji[e]=new Set),ji[e].add(t),()=>{ji[e].delete(t)}),[e,t])},OP=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(),a=W(),s=W(!1),c=W("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},D9=st`
|
|
851
851
|
${Ge}
|
|
852
852
|
position: fixed;
|
|
853
853
|
z-index: 2147483647;
|
|
@@ -866,7 +866,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
866
866
|
width: 100%;
|
|
867
867
|
height: 100%;
|
|
868
868
|
}
|
|
869
|
-
`,RP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=Sr(!1),p=m=>{var v,b,y,_;u(!1),c.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Mi("appsrockets_ad_dismissed",()=>p("dismiss")),Mi("appsrockets_ad_rewarded",()=>p("viewed")),Mi("appsrockets_ad_completed",()=>p("viewed")),Mi("appsrockets_ad_skipped",()=>p("viewed")),Mi("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Mi("appsrockets_ad_loaded",()=>u(!0)),c.value?G("div",{className:D9,style:{display:d?"flex":"none"},children:c.value&&G("iframe",{src:l.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};Jm=class{constructor(t,r){Lr(this,"name","APPSROCKETS"),Lr(this,"initialized",!1),Lr(this,"initCompleter",null),Lr(this,"context",void 0),Lr(this,"adsOverlay",null),Lr(this,"adsIsShowing",!1),Lr(this,"lastUnDisplayedAdBreak",null),Lr(this,"state",OP()),Lr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Qt(G(RP,{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,c,l,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=f=>{var m,v;(v=(m=this.context).handleLinkClicked)==null||v.call(m,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";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 f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},m=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ce(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=m,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.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),(l=t.beforeAd)==null||l.call(t);let f=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},m={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var C;this.adsIsShowing=!1,m.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},b=()=>{var C;this.adsIsShowing=!1,m.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,m)},_=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ce(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let E=()=>{var C;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ce(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,E);break}}}},NP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};DP=class{constructor(e,t,r){it(this,"adUnit",void 0),it(this,"project",void 0),it(this,"keyValue",void 0),it(this,"adsContext",null),it(this,"rewardedSlot",null),it(this,"rewardedPayload",null),it(this,"readyEvent",null),it(this,"withCommand",function(){googletag.cmd.push(...arguments)}),it(this,"init",()=>{var n;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(i=>{var o;(o=this.rewardedSlot)==null||o.setTargeting(i,this.keyValue[i])}),Object.keys(this.keyValue).includes("project")||(n=this.rewardedSlot)==null||n.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),it(this,"destroy",n=>{var i,o;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),(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),it(this,"reinit",n=>{this.destroy(n),this.init()}),it(this,"handleSlotReady",n=>{n.slot===this.rewardedSlot&&(this.readyEvent=n)}),it(this,"handleSlotClosed",n=>{var i,o;if(this.adsContext&&n.slot===this.rewardedSlot){let a=this.rewardedPayload?"viewed":"dismissed";a==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(o=(i=this.adsContext).afterAd)==null||o.call(i),this.withCommand(()=>{this.reinit(a)})}}),it(this,"handleSlotGranted",n=>{this.adsContext&&n.slot===this.rewardedSlot&&(this.rewardedPayload=n.payload)}),it(this,"handleSlotRenderEnded",n=>{n.slot===this.rewardedSlot&&n.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),it(this,"requestAds",n=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=n,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var i,o,a;(o=(i=this.adsContext)==null?void 0:i.beforeAd)==null||o.call(i),(a=this.readyEvent)==null||a.makeRewardedVisible()});else{let i=o=>{o.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",i),this.readyEvent=o,this.adsContext.beforeReward(()=>{var a,s,c;(s=(a=this.adsContext)==null?void 0:a.beforeAd)==null||s.call(a),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",i),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",i))},500)}})}),this.adUnit=e,this.project=t,this.keyValue=r,NP(),this.withCommand(()=>{this.init()})}};Hm=class{constructor(t,r,n){var i=this;vt(this,"adUnit",void 0),vt(this,"project",void 0),vt(this,"keyValue",void 0),vt(this,"adsContext",null),vt(this,"gamingInterstitialSlot",null),vt(this,"readyEvent",null),vt(this,"isRetrying",!1),vt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),vt(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))}),vt(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),o!=="ignored"&&(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)}),vt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),vt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),vt(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")}))}),vt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(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()):((c=(s=this.adsContext).onEnd)==null||c.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)))})}),NP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Vm=class{constructor(t,r){Jn(this,"name","GOOGLE_GPT"),Jn(this,"context",void 0),Jn(this,"contextInfo",void 0),Jn(this,"initParams",void 0),Jn(this,"rewardAdManager",void 0),Jn(this,"interstitialManager",void 0),Jn(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 g(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 DP(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Hm(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}}}};$m=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Im(this,"context",void 0),Im(this,"placement","GAME"),Im(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:aP.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:iP.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:oP.WebSDK};return zV(i)}};Ia=class{constructor(t){dt(this,"context",void 0),dt(this,"adsTrackSerializer",void 0),dt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new $m(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}}},Nl=class{constructor(t,r){var n=this;dt(this,"context",void 0),dt(this,"contextInfo",void 0),dt(this,"requestContext",void 0),dt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),dt(this,"pendingAFVAdsInfo",Promise.resolve(null)),dt(this,"doFetchAdsInfo",i=>g(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{a=["INTERSTITIAL"];break}}let s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),dt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),dt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),dt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),dt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),dt(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),dt(this,"getAFVAdsInfo",function(){return g(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 Ia(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};Y9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Dl=class{constructor(t){this.context=t,W9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=ja(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return g(this,null,function*(){try{let{errNo:r,errMsg:n}=yield L("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return xl()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield L("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{lg("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&Y9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};we("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=L("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Wm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){qr(this,"providers",void 0),qr(this,"helper",void 0),qr(this,"adsContext",null),qr(this,"_isAdsReady",!1),qr(this,"init",()=>g(this,null,function*(){this.helper.canIUse()?(yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1:this._isAdsReady=!1})),qr(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),qr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),qr(this,"requestAds",(n,i)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),qr(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=l=>{var d,u,p;i||(i=!0,l==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var l;n=!0,(l=this.adsContext)==null||l.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new Dl(t),this.init()}};zm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Ur(this,"providers",void 0),Ur(this,"helper",void 0),Ur(this,"adsContext",null),Ur(this,"_isAdsReady",!1),Ur(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Ur(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Ur(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Ur(this,"requestAds",(i,o)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Ur(this,"showAd",()=>g(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=l=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new Dl(t),this.init()}};Km=class{constructor(t,r){va(this,"name","INTERNAL_NATIVE"),va(this,"context",void 0),va(this,"rewardAdManager",void 0),va(this,"interstitialManager",void 0),va(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new Wm(this.context,n)),i.length>0&&(this.interstitialManager=new zm(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),a==="NATIVE"&&(s=o.params.adUnitId.nativeAds),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return g(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:c=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c})}},s);break}}}},Em="jolibox-nb-proxy",nW=0;Al=()=>{try{if(window.parent&&window.parent!==window)return oW("GameSDK")}catch(e){}};Ym=class{constructor(){ln(this,"adsContext",null),ln(this,"_isReady",!1),ln(this,"_isAvailable",!1),ln(this,"init",()=>g(this,null,function*(){this._isReady=!1;let t=Al();if(t)try{if(this._isAvailable=yield t.isAvailable("rewarded"),console.log("[JoliboxSDK] NewsBreak init isAvailable",this._isAvailable),!this._isAvailable)return;let r=yield t.createRewardAd({platform:"jolibox"});console.log("[JoliboxSDK] NewsBreak init createRewardAd result:",r),this._isReady=r.success&&r.ready}catch(r){this._isReady=!1}})),ln(this,"destroy",t=>{var r,n;this._isReady=!1,(n=(r=this.adsContext)==null?void 0:r.adBreakDone)==null||n.call(r,t),t!=="ignored"&&(this.adsContext=null)}),ln(this,"reinit",t=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak reinit breakStatus:",t),this.destroy(t),yield this.init()})),ln(this,"requestAds",t=>g(this,null,function*(){if(console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext",this.adsContext),this.adsContext){this.destroy("ignored");return}this.adsContext=t;let r=Al();if(console.log("[JoliboxSDK] NewsBreak newsbreak sdk",r),!r){this.destroy("notReady");return}if(this._isReady){console.log("[JoliboxSDK] NewsBreak requestAds isReady from cache"),this.showAd();return}let n=yield r.isRewardReady();console.log("[JoliboxSDK] NewsBreak requestAds sdk.isRewardReady",n),n?(this._isReady=!0,this.showAd()):(yield r.createRewardAd({platform:"jolibox"}),this.showAd())})),ln(this,"showAd",()=>{if(console.log("[JoliboxSDK] NewsBreak showAd"),!this.adsContext){this.destroy("error");return}this.adsContext.beforeReward(()=>g(this,null,function*(){var t,r,n,i,o,a,s,c,l,d,u,p,f,m;(r=(t=this.adsContext)==null?void 0:t.beforeAd)==null||r.call(t);let v=Al();if(!v){(i=(n=this.adsContext)==null?void 0:n.afterAd)==null||i.call(n),this.reinit("error");return}try{let b=yield v.showRewardAd();if(console.log("[JoliboxSDK] NewsBreak showRewardAd result:",b),!b.success){(a=(o=this.adsContext)==null?void 0:o.afterAd)==null||a.call(o),this.reinit("error");return}b.rewardGranted?((s=this.adsContext)==null||s.adViewed(),(l=(c=this.adsContext)==null?void 0:c.afterAd)==null||l.call(c),this.reinit("viewed")):((d=this.adsContext)==null||d.adDismissed(),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit("dismissed"))}catch(b){console.error("[JoliboxSDK] NewsBreak showRewardAd failed:",b),(m=(f=this.adsContext)==null?void 0:f.afterAd)==null||m.call(f),this.reinit("error")}}))}),this.init()}};Xm=class{constructor(){XT(this,"name","NEWSBREAK"),XT(this,"rewardAdManager",void 0)}init(){return g(this,null,function*(){let t=Al();if(!t){console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");return}t.onEnter(),this.rewardAdManager=new Ym})}adConfig(t,r){}adBreak(t,r){var n,i;if(t.type!=="reward"){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o})}})}};Ji=class{constructor(t){if($t(this,"context",void 0),$t(this,"contextInfo",void 0),$t(this,"providers",{}),$t(this,"channelPolicy",void 0),$t(this,"adsActionDetection",void 0),$t(this,"requestContext",void 0),$t(this,"adsRequest",void 0),$t(this,"initialized",!1),$t(this,"adsIsShowing",!1),$t(this,"lastAdBreak",void 0),$t(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Rm(this.context),this.adsActionDetection=new Om(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Nl(t),this.requestContext=new Ia(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let c=new Vm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new Nm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new Bm(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Jm(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Gm(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Km(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=c;break}case"NEWSBREAK":{console.log("[JoliboxSDK] NewsBreak Provider",s);let c=new Xm;yield c.init(),this.providers.NEWSBREAK=c;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 g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,v,b,y;let _=Date.now();if(_-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&&_-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=_,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()&&!this.providers.NEWSBREAK){(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 E=yield this.adsRequest.getAFGAdsInfo(t.type),C=E==null?void 0:E.data,x=E==null?void 0:E.code;if(x==="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 k,A,H,ue;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(H=t.afterAd)==null||H.call(t),(ue=t.adBreakDone)==null||ue.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(c=t.beforeAd)==null||c.call(t),(l=t.afterAd)==null||l.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!C||x!=="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{if(C.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 k=!0,A=null,H=new Pm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let ue=C.filter(J=>J.isNative).sort((J,V)=>J.seq-V.seq),N=C.filter(J=>!J.isNative).sort((J,V)=>J.seq-V.seq),O={seq:(m=(f=ue[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:ue},F;for(ue.length>0?F=[O].concat(N):F=N,F=F.sort((J,V)=>J.seq-V.seq).map((J,V)=>CV(eP({},J),{seq:V}));F.length>0;){let J=F.shift(),V=this.providers[J.provider];if(V){let[Mt,Mh]=yield H.callAdBreakAndContinue(V,t,J,Wl=>{var Oa;this.adsIsShowing=Wl,(Oa=this.context.eventEmitter)==null||Oa.emit("isAdShowing",Wl)});k=Mt,A=Mh}else k=!0,A={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!k)break}k&&A&&((v=t.adBreakDone)==null||v.call(t,A))}}catch(E){(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}};Qm=class{constructor(t){yl(this,"context",void 0),yl(this,"currentProvider",void 0),yl(this,"continueCallback",void 0),yl(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null}}wrapAdRequested(t){return()=>{this.context.track("CallAFVRequest",this.paramsToTrack),t==null||t()}}wrapAdLoaded(t){return r=>{this.context.track("CallAFVLoad",this.paramsToTrack),t==null||t(r)}}wrapAdPlaying(t){return r=>{var n,i;this.context.track("CallAFVPlaying",this.paramsToTrack),xl()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"AFV",module:"drama",game_id:this.contextInfo.objectId}),t==null||t(r)}}wrapAdCompleted(t){return r=>{var n;this.context.track("CallAFVCompleted",this.paramsToTrack),t==null||t(r),(n=this.continueCallback)==null||n.call(this,[!1,null])}}wrapAdError(t){return r=>{var n;this.context.track("CallAFVError",this.paramsToTrack),(n=this.continueCallback)==null||n.call(this,[!0,r])}}callAdRequestAndContinue(t,r,n){return g(this,null,function*(){return this.currentProvider=t,new Promise(i=>{this.continueCallback=i;let o=Object.assign({},r);o.onAdRequested=this.wrapAdRequested(r.onAdRequested),o.onAdLoaded=this.wrapAdLoaded(r.onAdLoaded),o.onAdPlaying=this.wrapAdPlaying(r.onAdPlaying),o.onAdCompleted=this.wrapAdCompleted(r.onAdCompleted),o.onAdError=this.wrapAdError(r.onAdError),t.requestAd(o,n)})})}};at=class e extends Error{constructor(t,r){super(t.message),Am(this,"name",void 0),Am(this,"type",void 0),Am(this,"raw",void 0),this.name="AFVRequestError",this.type=r,this.raw=t,this.stack=t.stack,this.message=t.message}static from(t,r){switch(r){case"GOOGLE_IMA_ERROR":return new e(t,r);case"JOLIBOX_IMA_ERROR":return new e(t,r)}}};Zm=class{constructor(t,r,n){me(this,"adsLoader",void 0),me(this,"adDisplayContainer",void 0),me(this,"isAdPlaying",!1),me(this,"isContentFinished",!1),me(this,"videoContent",void 0),me(this,"adContainer",void 0),me(this,"adsManager",void 0),me(this,"intervalTimer",void 0),me(this,"completed",!1),me(this,"adTagUrl",void 0),me(this,"notifyRequestAd",void 0),me(this,"notifyLoaded",void 0),me(this,"notifyPlayingAd",void 0),me(this,"notifyCompleted",void 0),me(this,"notifyError",void 0),me(this,"destroy",()=>{var i,o,a,s,c,l,d,u,p,f,m;this.intervalTimer&&clearInterval(this.intervalTimer),(i=this.adsManager)==null||i.stop(),(o=this.adDisplayContainer)==null||o.destroy(),(a=this.adsLoader)==null||a.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),(s=this.adsLoader)==null||s.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(c=this.adsManager)==null||c.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(l=this.adsManager)==null||l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),(d=this.adsManager)==null||d.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),(u=this.adsManager)==null||u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),(p=this.adsManager)==null||p.removeEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),(f=this.adsManager)==null||f.removeEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),(m=this.adsManager)==null||m.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent)}),me(this,"requestAds",(i,o)=>g(this,null,function*(){var a;this.createAdDisplayContainer(),this.notifyRequestAd=i.onAdRequested,this.notifyLoaded=i.onAdLoaded,this.notifyPlayingAd=i.onAdPlaying,this.notifyCompleted=i.onAdCompleted,this.notifyError=u=>{var p;return(p=i.onAdError)==null?void 0:p.call(i,at.from(u,"GOOGLE_IMA_ERROR"))},this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1);let s=()=>{var u;this.isAdPlaying||(this.isContentFinished=!0,(u=this.adsLoader)==null||u.contentComplete())};this.videoContent.onended=s;let c=new window.google.ima.AdsRequest;c.vastLoadTimeout=1e4;let l="";Object.keys(o.params).forEach(u=>{let p=window.encodeURIComponent(o.params[u]);l+=`&${u}=${p}`});let d=`${this.adTagUrl}${l}`;c.adTagUrl=d,c.linearAdSlotWidth=640,c.linearAdSlotHeight=400,c.nonLinearAdSlotWidth=640,c.nonLinearAdSlotHeight=150,this.adsLoader.requestAds(c),(a=this.notifyRequestAd)==null||a.call(this)})),me(this,"createAdDisplayContainer",()=>{this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adContainer,this.videoContent)}),me(this,"playAds",()=>{var i,o;this.videoContent.load(),this.adDisplayContainer.initialize(),this.completed=!1;try{(i=this.adsManager)==null||i.init(window.document.body.clientWidth,window.document.body.clientHeight,window.google.ima.ViewMode.NORMAL),(o=this.adsManager)==null||o.start()}catch(a){console.error("[JoliboxAFV] Google IMA Error: ",a),this.videoContent.play()}}),me(this,"onAdsManagerLoaded",i=>{let o=new window.google.ima.AdsRenderingSettings;o.restoreCustomPlaybackStateOnAdBreakComplete=!0,o.loadVideoTimeout=1e4,this.adsManager=i.getAdsManager(this.videoContent,o),this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent),i.type==="adsManagerLoaded"&&this.playAds()}),me(this,"onAdEvent",i=>{var o,a,s,c;let l=i.getAd();switch(i.type){case window.google.ima.AdEvent.Type.LOADED:l!=null&&l.isLinear()||this.videoContent.play(),(o=this.notifyLoaded)==null||o.call(this,i);break;case window.google.ima.AdEvent.Type.STARTED:l!=null&&l.isLinear()&&(this.intervalTimer=window.setInterval(function(){},300)),(a=this.notifyPlayingAd)==null||a.call(this,i);break;case window.google.ima.AdEvent.Type.COMPLETE:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(s=this.notifyCompleted)==null||s.call(this,i));break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(c=this.notifyCompleted)==null||c.call(this,i));break}}),me(this,"onAdError",i=>{var o,a;(o=this.notifyError)==null||o.call(this,i.getError()),(a=this.adsManager)==null||a.destroy()}),me(this,"onContentPauseRequested",()=>{this.isAdPlaying=!0,this.videoContent.pause()}),me(this,"onContentResumeRequested",()=>{this.isAdPlaying=!1}),this.adTagUrl=t,this.videoContent=r,this.adContainer=n}},Cl=(e=>(e[e.ADS_REQUEST_NETWORK_ERROR=1012]="ADS_REQUEST_NETWORK_ERROR",e[e.ASSET_FALLBACK_FAILED=1021]="ASSET_FALLBACK_FAILED",e[e.AUTOPLAY_DISALLOWED=1205]="AUTOPLAY_DISALLOWED",e[e.COMPANION_AD_LOADING_FAILED=603]="COMPANION_AD_LOADING_FAILED",e[e.COMPANION_REQUIRED_ERROR=602]="COMPANION_REQUIRED_ERROR",e[e.FAILED_TO_REQUEST_ADS=1005]="FAILED_TO_REQUEST_ADS",e[e.INVALID_AD_TAG=1013]="INVALID_AD_TAG",e[e.INVALID_ADX_EXTENSION=1105]="INVALID_ADX_EXTENSION",e[e.INVALID_ARGUMENTS=1101]="INVALID_ARGUMENTS",e[e.NONLINEAR_DIMENSIONS_ERROR=501]="NONLINEAR_DIMENSIONS_ERROR",e[e.OVERLAY_AD_LOADING_FAILED=502]="OVERLAY_AD_LOADING_FAILED",e[e.OVERLAY_AD_PLAYING_FAILED=500]="OVERLAY_AD_PLAYING_FAILED",e[e.STREAM_INITIALIZATION_FAILED=1020]="STREAM_INITIALIZATION_FAILED",e[e.UNKNOWN_AD_RESPONSE=1010]="UNKNOWN_AD_RESPONSE",e[e.UNKNOWN_ERROR=900]="UNKNOWN_ERROR",e[e.UNSUPPORTED_LOCALE=1011]="UNSUPPORTED_LOCALE",e[e.VAST_ASSET_NOT_FOUND=1007]="VAST_ASSET_NOT_FOUND",e[e.VAST_EMPTY_RESPONSE=1009]="VAST_EMPTY_RESPONSE",e[e.VAST_LINEAR_ASSET_MISMATCH=403]="VAST_LINEAR_ASSET_MISMATCH",e[e.VAST_LOAD_TIMEOUT=301]="VAST_LOAD_TIMEOUT",e[e.VAST_MALFORMED_RESPONSE=100]="VAST_MALFORMED_RESPONSE",e[e.VAST_MEDIA_LOAD_TIMEOUT=402]="VAST_MEDIA_LOAD_TIMEOUT",e[e.VAST_NO_ADS_AFTER_WRAPPER=303]="VAST_NO_ADS_AFTER_WRAPPER",e[e.VAST_NONLINEAR_ASSET_MISMATCH=503]="VAST_NONLINEAR_ASSET_MISMATCH",e[e.VAST_PROBLEM_DISPLAYING_MEDIA_FILE=405]="VAST_PROBLEM_DISPLAYING_MEDIA_FILE",e[e.VAST_SCHEMA_VALIDATION_ERROR=101]="VAST_SCHEMA_VALIDATION_ERROR",e[e.VAST_TOO_MANY_REDIRECTS=302]="VAST_TOO_MANY_REDIRECTS",e[e.VAST_TRAFFICKING_ERROR=200]="VAST_TRAFFICKING_ERROR",e[e.VAST_UNEXPECTED_DURATION_ERROR=202]="VAST_UNEXPECTED_DURATION_ERROR",e[e.VAST_UNEXPECTED_LINEARITY=201]="VAST_UNEXPECTED_LINEARITY",e[e.VAST_UNSUPPORTED_VERSION=102]="VAST_UNSUPPORTED_VERSION",e[e.VAST_WRAPPER_ERROR=300]="VAST_WRAPPER_ERROR",e[e.VIDEO_PLAY_ERROR=400]="VIDEO_PLAY_ERROR",e[e.VPAID_ERROR=901]="VPAID_ERROR",e))(Cl||{}),yW=()=>{let e=W(!1),t=W(!1),r=W(null),n=ho(),i=ho();return{visible:e,canRetry:t,retry:r,videoRef:n,adContainerRef:i}},bW=st`
|
|
869
|
+
`,RP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=Sr(!1),p=m=>{var v,b,y,_;u(!1),c.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Ui("appsrockets_ad_dismissed",()=>p("dismiss")),Ui("appsrockets_ad_rewarded",()=>p("viewed")),Ui("appsrockets_ad_completed",()=>p("viewed")),Ui("appsrockets_ad_skipped",()=>p("viewed")),Ui("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Ui("appsrockets_ad_loaded",()=>u(!0)),c.value?G("div",{className:D9,style:{display:d?"flex":"none"},children:c.value&&G("iframe",{src:l.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};Jm=class{constructor(t,r){Lr(this,"name","APPSROCKETS"),Lr(this,"initialized",!1),Lr(this,"initCompleter",null),Lr(this,"context",void 0),Lr(this,"adsOverlay",null),Lr(this,"adsIsShowing",!1),Lr(this,"lastUnDisplayedAdBreak",null),Lr(this,"state",OP()),Lr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Qt(G(RP,{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,c,l,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=f=>{var m,v;(v=(m=this.context).handleLinkClicked)==null||v.call(m,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";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 f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},m=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ce(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=m,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.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),(l=t.beforeAd)==null||l.call(t);let f=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},m={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var C;this.adsIsShowing=!1,m.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},b=()=>{var C;this.adsIsShowing=!1,m.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,m)},_=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ce(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let E=()=>{var C;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ce(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,E);break}}}},NP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};DP=class{constructor(e,t,r){it(this,"adUnit",void 0),it(this,"project",void 0),it(this,"keyValue",void 0),it(this,"adsContext",null),it(this,"rewardedSlot",null),it(this,"rewardedPayload",null),it(this,"readyEvent",null),it(this,"withCommand",function(){googletag.cmd.push(...arguments)}),it(this,"init",()=>{var n;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(i=>{var o;(o=this.rewardedSlot)==null||o.setTargeting(i,this.keyValue[i])}),Object.keys(this.keyValue).includes("project")||(n=this.rewardedSlot)==null||n.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),it(this,"destroy",n=>{var i,o;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),(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),it(this,"reinit",n=>{this.destroy(n),this.init()}),it(this,"handleSlotReady",n=>{n.slot===this.rewardedSlot&&(this.readyEvent=n)}),it(this,"handleSlotClosed",n=>{var i,o;if(this.adsContext&&n.slot===this.rewardedSlot){let a=this.rewardedPayload?"viewed":"dismissed";a==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(o=(i=this.adsContext).afterAd)==null||o.call(i),this.withCommand(()=>{this.reinit(a)})}}),it(this,"handleSlotGranted",n=>{this.adsContext&&n.slot===this.rewardedSlot&&(this.rewardedPayload=n.payload)}),it(this,"handleSlotRenderEnded",n=>{n.slot===this.rewardedSlot&&n.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),it(this,"requestAds",n=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=n,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var i,o,a;(o=(i=this.adsContext)==null?void 0:i.beforeAd)==null||o.call(i),(a=this.readyEvent)==null||a.makeRewardedVisible()});else{let i=o=>{o.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",i),this.readyEvent=o,this.adsContext.beforeReward(()=>{var a,s,c;(s=(a=this.adsContext)==null?void 0:a.beforeAd)==null||s.call(a),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",i),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",i))},500)}})}),this.adUnit=e,this.project=t,this.keyValue=r,NP(),this.withCommand(()=>{this.init()})}};Hm=class{constructor(t,r,n){var i=this;vt(this,"adUnit",void 0),vt(this,"project",void 0),vt(this,"keyValue",void 0),vt(this,"adsContext",null),vt(this,"gamingInterstitialSlot",null),vt(this,"readyEvent",null),vt(this,"isRetrying",!1),vt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),vt(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))}),vt(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),o!=="ignored"&&(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)}),vt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),vt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),vt(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")}))}),vt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(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()):((c=(s=this.adsContext).onEnd)==null||c.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)))})}),NP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Vm=class{constructor(t,r){Gn(this,"name","GOOGLE_GPT"),Gn(this,"context",void 0),Gn(this,"contextInfo",void 0),Gn(this,"initParams",void 0),Gn(this,"rewardAdManager",void 0),Gn(this,"interstitialManager",void 0),Gn(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 g(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 DP(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Hm(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}}}};$m=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Im(this,"context",void 0),Im(this,"placement","GAME"),Im(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:aP.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:iP.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:oP.WebSDK};return zV(i)}};Ia=class{constructor(t){dt(this,"context",void 0),dt(this,"adsTrackSerializer",void 0),dt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new $m(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}}},Nl=class{constructor(t,r){var n=this;dt(this,"context",void 0),dt(this,"contextInfo",void 0),dt(this,"requestContext",void 0),dt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),dt(this,"pendingAFVAdsInfo",Promise.resolve(null)),dt(this,"doFetchAdsInfo",i=>g(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{a=["INTERSTITIAL"];break}}let s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),dt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),dt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),dt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),dt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),dt(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),dt(this,"getAFVAdsInfo",function(){return g(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 Ia(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};Y9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Dl=class{constructor(t){this.context=t,W9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=ja(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return g(this,null,function*(){try{let{errNo:r,errMsg:n}=yield L("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return xl()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield L("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{lg("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&Y9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};we("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=L("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Wm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){qr(this,"providers",void 0),qr(this,"helper",void 0),qr(this,"adsContext",null),qr(this,"_isAdsReady",!1),qr(this,"init",()=>g(this,null,function*(){this.helper.canIUse()?(yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1:this._isAdsReady=!1})),qr(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),qr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),qr(this,"requestAds",(n,i)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),qr(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=l=>{var d,u,p;i||(i=!0,l==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var l;n=!0,(l=this.adsContext)==null||l.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new Dl(t),this.init()}};zm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Ur(this,"providers",void 0),Ur(this,"helper",void 0),Ur(this,"adsContext",null),Ur(this,"_isAdsReady",!1),Ur(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Ur(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Ur(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Ur(this,"requestAds",(i,o)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Ur(this,"showAd",()=>g(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=l=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new Dl(t),this.init()}};Km=class{constructor(t,r){va(this,"name","INTERNAL_NATIVE"),va(this,"context",void 0),va(this,"rewardAdManager",void 0),va(this,"interstitialManager",void 0),va(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new Wm(this.context,n)),i.length>0&&(this.interstitialManager=new zm(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),a==="NATIVE"&&(s=o.params.adUnitId.nativeAds),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return g(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:c=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c})}},s);break}}}},Em="jolibox-nb-proxy",nW=0;Al=()=>{try{if(window.parent&&window.parent!==window)return oW("GameSDK")}catch(e){}};Ym=class{constructor(){Mi(this,"adsContext",null),Mi(this,"init",()=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak init");let t=Al();if(t)try{let r=yield t.createRewardAd({platform:"jolibox"});console.log("[JoliboxSDK] NewsBreak init createRewardAd result:",r)}catch(r){console.log("[JoliboxSDK] NewsBreak init createRewardAd error:",r)}})),Mi(this,"destroy",t=>{var r,n;(n=(r=this.adsContext)==null?void 0:r.adBreakDone)==null||n.call(r,t),t!=="ignored"&&(this.adsContext=null)}),Mi(this,"reinit",t=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak reinit breakStatus:",t),this.destroy(t),yield this.init()})),Mi(this,"requestAds",t=>g(this,null,function*(){if(console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext",this.adsContext),this.adsContext){this.destroy("ignored");return}this.adsContext=t;let r=Al();if(console.log("[JoliboxSDK] NewsBreak newsbreak sdk",r),!r){this.destroy("notReady");return}this.showAd()})),Mi(this,"showAd",()=>{if(console.log("[JoliboxSDK] NewsBreak showAd"),!this.adsContext){this.destroy("error");return}this.adsContext.beforeReward(()=>g(this,null,function*(){var t,r,n,i,o,a,s,c,l,d,u,p,f,m;(r=(t=this.adsContext)==null?void 0:t.beforeAd)==null||r.call(t);let v=Al();if(!v){(i=(n=this.adsContext)==null?void 0:n.afterAd)==null||i.call(n),this.reinit("error");return}try{let b=yield v.showRewardAd();if(console.log("[JoliboxSDK] NewsBreak showRewardAd result:",b),!b.success){(a=(o=this.adsContext)==null?void 0:o.afterAd)==null||a.call(o),this.reinit("error");return}b.rewardGranted?((s=this.adsContext)==null||s.adViewed(),(l=(c=this.adsContext)==null?void 0:c.afterAd)==null||l.call(c),this.reinit("viewed")):((d=this.adsContext)==null||d.adDismissed(),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit("dismissed"))}catch(b){console.error("[JoliboxSDK] NewsBreak showRewardAd failed:",b),(m=(f=this.adsContext)==null?void 0:f.afterAd)==null||m.call(f),this.reinit("error")}}))}),this.init()}};Xm=class{constructor(){XT(this,"name","NEWSBREAK"),XT(this,"rewardAdManager",void 0)}init(){return g(this,null,function*(){let t=Al();if(!t){console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");return}t.onEnter(),this.rewardAdManager=new Ym})}adConfig(t,r){}adBreak(t,r){var n,i;if(t.type!=="reward"){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o})}})}};Ji=class{constructor(t){if($t(this,"context",void 0),$t(this,"contextInfo",void 0),$t(this,"providers",{}),$t(this,"channelPolicy",void 0),$t(this,"adsActionDetection",void 0),$t(this,"requestContext",void 0),$t(this,"adsRequest",void 0),$t(this,"initialized",!1),$t(this,"adsIsShowing",!1),$t(this,"lastAdBreak",void 0),$t(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Rm(this.context),this.adsActionDetection=new Om(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Nl(t),this.requestContext=new Ia(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let c=new Vm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new Nm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new Bm(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Jm(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Gm(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Km(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=c;break}case"NEWSBREAK":{console.log("[JoliboxSDK] NewsBreak Provider",s);let c=new Xm;yield c.init(),this.providers.NEWSBREAK=c;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 g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,v,b,y;let _=Date.now();if(_-this.initializedTimeStamp<3e3){console.log("[Jolibox SDK Ads] too soon"),(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&&_-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=_,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()&&!this.providers.NEWSBREAK){console.log("[Jolibox SDK Ads] net not ready"),(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 E=yield this.adsRequest.getAFGAdsInfo(t.type),C=E==null?void 0:E.data,x=E==null?void 0:E.code;if(x==="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 k,A,H,ue;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(H=t.afterAd)==null||H.call(t),(ue=t.adBreakDone)==null||ue.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(c=t.beforeAd)==null||c.call(t),(l=t.afterAd)==null||l.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!C||x!=="SUCCESS"){console.log("[Jolibox SDK Ads] not 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{if(C.length===0){console.log("[Jolibox SDK Ads] ads info empty"),(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 k=!0,A=null,H=new Pm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let ue=C.filter(J=>J.isNative).sort((J,V)=>J.seq-V.seq),N=C.filter(J=>!J.isNative).sort((J,V)=>J.seq-V.seq),O={seq:(m=(f=ue[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:ue},F;for(ue.length>0?F=[O].concat(N):F=N,F=F.sort((J,V)=>J.seq-V.seq).map((J,V)=>CV(eP({},J),{seq:V}));F.length>0;){let J=F.shift(),V=this.providers[J.provider];if(V){let[Mt,Mh]=yield H.callAdBreakAndContinue(V,t,J,Wl=>{var Oa;this.adsIsShowing=Wl,(Oa=this.context.eventEmitter)==null||Oa.emit("isAdShowing",Wl)});k=Mt,A=Mh}else k=!0,A={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!k)break}k&&A&&((v=t.adBreakDone)==null||v.call(t,A))}}catch(E){console.log("[Jolibox SDK Ads] error:",E),(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}};Qm=class{constructor(t){yl(this,"context",void 0),yl(this,"currentProvider",void 0),yl(this,"continueCallback",void 0),yl(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null}}wrapAdRequested(t){return()=>{this.context.track("CallAFVRequest",this.paramsToTrack),t==null||t()}}wrapAdLoaded(t){return r=>{this.context.track("CallAFVLoad",this.paramsToTrack),t==null||t(r)}}wrapAdPlaying(t){return r=>{var n,i;this.context.track("CallAFVPlaying",this.paramsToTrack),xl()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"AFV",module:"drama",game_id:this.contextInfo.objectId}),t==null||t(r)}}wrapAdCompleted(t){return r=>{var n;this.context.track("CallAFVCompleted",this.paramsToTrack),t==null||t(r),(n=this.continueCallback)==null||n.call(this,[!1,null])}}wrapAdError(t){return r=>{var n;this.context.track("CallAFVError",this.paramsToTrack),(n=this.continueCallback)==null||n.call(this,[!0,r])}}callAdRequestAndContinue(t,r,n){return g(this,null,function*(){return this.currentProvider=t,new Promise(i=>{this.continueCallback=i;let o=Object.assign({},r);o.onAdRequested=this.wrapAdRequested(r.onAdRequested),o.onAdLoaded=this.wrapAdLoaded(r.onAdLoaded),o.onAdPlaying=this.wrapAdPlaying(r.onAdPlaying),o.onAdCompleted=this.wrapAdCompleted(r.onAdCompleted),o.onAdError=this.wrapAdError(r.onAdError),t.requestAd(o,n)})})}};at=class e extends Error{constructor(t,r){super(t.message),Am(this,"name",void 0),Am(this,"type",void 0),Am(this,"raw",void 0),this.name="AFVRequestError",this.type=r,this.raw=t,this.stack=t.stack,this.message=t.message}static from(t,r){switch(r){case"GOOGLE_IMA_ERROR":return new e(t,r);case"JOLIBOX_IMA_ERROR":return new e(t,r)}}};Zm=class{constructor(t,r,n){me(this,"adsLoader",void 0),me(this,"adDisplayContainer",void 0),me(this,"isAdPlaying",!1),me(this,"isContentFinished",!1),me(this,"videoContent",void 0),me(this,"adContainer",void 0),me(this,"adsManager",void 0),me(this,"intervalTimer",void 0),me(this,"completed",!1),me(this,"adTagUrl",void 0),me(this,"notifyRequestAd",void 0),me(this,"notifyLoaded",void 0),me(this,"notifyPlayingAd",void 0),me(this,"notifyCompleted",void 0),me(this,"notifyError",void 0),me(this,"destroy",()=>{var i,o,a,s,c,l,d,u,p,f,m;this.intervalTimer&&clearInterval(this.intervalTimer),(i=this.adsManager)==null||i.stop(),(o=this.adDisplayContainer)==null||o.destroy(),(a=this.adsLoader)==null||a.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),(s=this.adsLoader)==null||s.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(c=this.adsManager)==null||c.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(l=this.adsManager)==null||l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),(d=this.adsManager)==null||d.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),(u=this.adsManager)==null||u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),(p=this.adsManager)==null||p.removeEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),(f=this.adsManager)==null||f.removeEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),(m=this.adsManager)==null||m.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent)}),me(this,"requestAds",(i,o)=>g(this,null,function*(){var a;this.createAdDisplayContainer(),this.notifyRequestAd=i.onAdRequested,this.notifyLoaded=i.onAdLoaded,this.notifyPlayingAd=i.onAdPlaying,this.notifyCompleted=i.onAdCompleted,this.notifyError=u=>{var p;return(p=i.onAdError)==null?void 0:p.call(i,at.from(u,"GOOGLE_IMA_ERROR"))},this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1);let s=()=>{var u;this.isAdPlaying||(this.isContentFinished=!0,(u=this.adsLoader)==null||u.contentComplete())};this.videoContent.onended=s;let c=new window.google.ima.AdsRequest;c.vastLoadTimeout=1e4;let l="";Object.keys(o.params).forEach(u=>{let p=window.encodeURIComponent(o.params[u]);l+=`&${u}=${p}`});let d=`${this.adTagUrl}${l}`;c.adTagUrl=d,c.linearAdSlotWidth=640,c.linearAdSlotHeight=400,c.nonLinearAdSlotWidth=640,c.nonLinearAdSlotHeight=150,this.adsLoader.requestAds(c),(a=this.notifyRequestAd)==null||a.call(this)})),me(this,"createAdDisplayContainer",()=>{this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adContainer,this.videoContent)}),me(this,"playAds",()=>{var i,o;this.videoContent.load(),this.adDisplayContainer.initialize(),this.completed=!1;try{(i=this.adsManager)==null||i.init(window.document.body.clientWidth,window.document.body.clientHeight,window.google.ima.ViewMode.NORMAL),(o=this.adsManager)==null||o.start()}catch(a){console.error("[JoliboxAFV] Google IMA Error: ",a),this.videoContent.play()}}),me(this,"onAdsManagerLoaded",i=>{let o=new window.google.ima.AdsRenderingSettings;o.restoreCustomPlaybackStateOnAdBreakComplete=!0,o.loadVideoTimeout=1e4,this.adsManager=i.getAdsManager(this.videoContent,o),this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent),i.type==="adsManagerLoaded"&&this.playAds()}),me(this,"onAdEvent",i=>{var o,a,s,c;let l=i.getAd();switch(i.type){case window.google.ima.AdEvent.Type.LOADED:l!=null&&l.isLinear()||this.videoContent.play(),(o=this.notifyLoaded)==null||o.call(this,i);break;case window.google.ima.AdEvent.Type.STARTED:l!=null&&l.isLinear()&&(this.intervalTimer=window.setInterval(function(){},300)),(a=this.notifyPlayingAd)==null||a.call(this,i);break;case window.google.ima.AdEvent.Type.COMPLETE:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(s=this.notifyCompleted)==null||s.call(this,i));break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(c=this.notifyCompleted)==null||c.call(this,i));break}}),me(this,"onAdError",i=>{var o,a;(o=this.notifyError)==null||o.call(this,i.getError()),(a=this.adsManager)==null||a.destroy()}),me(this,"onContentPauseRequested",()=>{this.isAdPlaying=!0,this.videoContent.pause()}),me(this,"onContentResumeRequested",()=>{this.isAdPlaying=!1}),this.adTagUrl=t,this.videoContent=r,this.adContainer=n}},Cl=(e=>(e[e.ADS_REQUEST_NETWORK_ERROR=1012]="ADS_REQUEST_NETWORK_ERROR",e[e.ASSET_FALLBACK_FAILED=1021]="ASSET_FALLBACK_FAILED",e[e.AUTOPLAY_DISALLOWED=1205]="AUTOPLAY_DISALLOWED",e[e.COMPANION_AD_LOADING_FAILED=603]="COMPANION_AD_LOADING_FAILED",e[e.COMPANION_REQUIRED_ERROR=602]="COMPANION_REQUIRED_ERROR",e[e.FAILED_TO_REQUEST_ADS=1005]="FAILED_TO_REQUEST_ADS",e[e.INVALID_AD_TAG=1013]="INVALID_AD_TAG",e[e.INVALID_ADX_EXTENSION=1105]="INVALID_ADX_EXTENSION",e[e.INVALID_ARGUMENTS=1101]="INVALID_ARGUMENTS",e[e.NONLINEAR_DIMENSIONS_ERROR=501]="NONLINEAR_DIMENSIONS_ERROR",e[e.OVERLAY_AD_LOADING_FAILED=502]="OVERLAY_AD_LOADING_FAILED",e[e.OVERLAY_AD_PLAYING_FAILED=500]="OVERLAY_AD_PLAYING_FAILED",e[e.STREAM_INITIALIZATION_FAILED=1020]="STREAM_INITIALIZATION_FAILED",e[e.UNKNOWN_AD_RESPONSE=1010]="UNKNOWN_AD_RESPONSE",e[e.UNKNOWN_ERROR=900]="UNKNOWN_ERROR",e[e.UNSUPPORTED_LOCALE=1011]="UNSUPPORTED_LOCALE",e[e.VAST_ASSET_NOT_FOUND=1007]="VAST_ASSET_NOT_FOUND",e[e.VAST_EMPTY_RESPONSE=1009]="VAST_EMPTY_RESPONSE",e[e.VAST_LINEAR_ASSET_MISMATCH=403]="VAST_LINEAR_ASSET_MISMATCH",e[e.VAST_LOAD_TIMEOUT=301]="VAST_LOAD_TIMEOUT",e[e.VAST_MALFORMED_RESPONSE=100]="VAST_MALFORMED_RESPONSE",e[e.VAST_MEDIA_LOAD_TIMEOUT=402]="VAST_MEDIA_LOAD_TIMEOUT",e[e.VAST_NO_ADS_AFTER_WRAPPER=303]="VAST_NO_ADS_AFTER_WRAPPER",e[e.VAST_NONLINEAR_ASSET_MISMATCH=503]="VAST_NONLINEAR_ASSET_MISMATCH",e[e.VAST_PROBLEM_DISPLAYING_MEDIA_FILE=405]="VAST_PROBLEM_DISPLAYING_MEDIA_FILE",e[e.VAST_SCHEMA_VALIDATION_ERROR=101]="VAST_SCHEMA_VALIDATION_ERROR",e[e.VAST_TOO_MANY_REDIRECTS=302]="VAST_TOO_MANY_REDIRECTS",e[e.VAST_TRAFFICKING_ERROR=200]="VAST_TRAFFICKING_ERROR",e[e.VAST_UNEXPECTED_DURATION_ERROR=202]="VAST_UNEXPECTED_DURATION_ERROR",e[e.VAST_UNEXPECTED_LINEARITY=201]="VAST_UNEXPECTED_LINEARITY",e[e.VAST_UNSUPPORTED_VERSION=102]="VAST_UNSUPPORTED_VERSION",e[e.VAST_WRAPPER_ERROR=300]="VAST_WRAPPER_ERROR",e[e.VIDEO_PLAY_ERROR=400]="VIDEO_PLAY_ERROR",e[e.VPAID_ERROR=901]="VPAID_ERROR",e))(Cl||{}),yW=()=>{let e=W(!1),t=W(!1),r=W(null),n=ho(),i=ho();return{visible:e,canRetry:t,retry:r,videoRef:n,adContainerRef:i}},bW=st`
|
|
870
870
|
${Ge}
|
|
871
871
|
position: fixed;
|
|
872
872
|
left: 0;
|
|
@@ -911,4 +911,4 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
911
911
|
cursor: pointer;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
`,_W=e=>{let{onReady:t,state:r}=e,{visible:n,retry:i,canRetry:o,videoRef:a,adContainerRef:s}=r,c=()=>{i.value&&(i.value(),Ce(()=>{i.value=null,o.value=!1}))};return Yr(()=>{t()},[t]),G("div",{className:bW,style:{display:n.value?"block":"none"},children:G("div",{className:"ads-wrapper",children:[G("video",{ref:a,width:"100%",height:"100%",playsInline:!0,"webkit-playsinline":"true",poster:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVR4AQEEAPv/AAAAAAAEAAFlScNgAAAAAElFTkSuQmCC",style:{transition:"none !important",transform:"none !important",animation:"none !important",objectFit:"contain"}}),G("div",{id:"ad-container",ref:s}),o.value?G("div",{className:"retry-button",onClick:c,children:G("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G("circle",{cx:"32",cy:"32",r:"32",fill:"#141416",fillOpacity:"0.3"}),G("path",{d:"M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",fill:"white"})]})}):null]})})};eh=class{constructor(t){Mr(this,"name","GOOGLE_IMA"),Mr(this,"context",void 0),Mr(this,"adsOverlay",null),Mr(this,"initialized",!1),Mr(this,"ima",null),Mr(this,"state",yW()),Mr(this,"init",r=>g(this,null,function*(){if(this.initialized)return;let n="//imasdk.googleapis.com/js/sdkloader/ima3.js";yield new Promise((i,o)=>{if(document.querySelector("#google-ima-sdk")){i();return}else{let a=document.createElement("script");a.id="google-ima-sdk",a.src=n,a.onload=()=>{var s;(s=window.google)!=null&&s.ima?i():setTimeout(i,100)},a.onerror=o,document.head.appendChild(a)}}),this.adsOverlay=document.createElement("div"),this.adsOverlay.id="jolibox-ima-overlay",document.documentElement.appendChild(this.adsOverlay),yield new Promise((i,o)=>{Qt(G(_W,{state:this.state,onReady:()=>{this.ima=new Zm(r.params.url,this.state.videoRef.current,this.state.adContainerRef.current),i()}}),this.adsOverlay)}),this.initialized=!0})),Mr(this,"destroy",()=>{this.adsOverlay&&(Qt(null,this.adsOverlay),this.adsOverlay.remove()),this.ima&&this.ima.destroy(),this.initialized=!1}),Mr(this,"requestAd",(r,n)=>{var i;if(!this.adsOverlay||!this.ima||!this.initialized){let d=at.from(new Error("IMA not initialized"),"JOLIBOX_IMA_ERROR");(i=r.onAdError)==null||i.call(r,d);return}let o=d=>{var u;this.ima.destroy(),this.state.visible.value=!1,(u=r.onAdCompleted)==null||u.call(r,d)},a=d=>{var u;let p=!1;switch(d.raw.getErrorCode()){case Cl.AUTOPLAY_DISALLOWED:case Cl.VIDEO_PLAY_ERROR:case Cl.ADS_REQUEST_NETWORK_ERROR:{p=!0;break}default:{p=!1;break}}if(!p)this.ima.destroy(),Ce(()=>{this.state.canRetry.value=!1,this.state.retry.value=null,this.state.visible.value=!1}),(u=r.onAdError)==null||u.call(r,d);else{let f=()=>{this.ima.destroy(),this.requestAd(r,n)};Ce(()=>{this.state.canRetry.value=!0,this.state.retry.value=f})}},s=d=>{var u;this.state.visible.value=!0,(u=r.onAdLoaded)==null||u.call(r,d)},c=d=>{var u;(u=r.onAdPlaying)==null||u.call(r,d)},l=Object.assign({},r);l.onAdCompleted=o,l.onAdError=a,l.onAdLoaded=s,l.onAdPlaying=c,this.ima.requestAds(l,n)}),this.context=t}};th=class{constructor(t){dr(this,"name","OKSPIN"),dr(this,"initialized",!1),dr(this,"initCompleter",null),dr(this,"context",void 0),dr(this,"adsOverlay",null),dr(this,"adsIsShowing",!1),dr(this,"state",TP()),dr(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv"),Qt(G(PP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),dr(this,"destroy",()=>{var r;this.adsOverlay&&(Qt(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),dr(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,at.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,at.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var d;this.adsIsShowing=!1,(d=r.onAdCompleted)==null||d.call(r,void 0)},l=()=>{var d;(d=r.onAdLoaded)==null||d.call(r,void 0)};this.adsIsShowing=!0,Ce(()=>{var d;this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.countdown.value=(d=n.params.countdown)!=null?d:15,this.state.src.value=n.params.url,this.state.mode.value="rewarded_insterstitial",this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};rh=class{constructor(t){Wt(this,"name","APPSROCKETS"),Wt(this,"initialized",!1),Wt(this,"initCompleter",null),Wt(this,"context",void 0),Wt(this,"adsOverlay",null),Wt(this,"adsIsShowing",!1),Wt(this,"state",OP()),Wt(this,"processUrl",r=>{var n;let i=this.context.getContextInfo(),o=new URL(r),a=new URLSearchParams(o.search);return a.has("joliSource")||a.set("joliSource",i.joliSource),a.get("osType")||a.set("osType",i.osType),a.get("runtimeType")||a.set("runtimeType",i.runtimeType),a.get("mode")||a.set("mode","AFV"),a.get("deviceId")||a.set("deviceId",i.deviceId),a.get("statusBarHeight")||a.set("statusBarHeight",((n=this.context.getWindowInfo().statusBarHeight)!=null?n:0).toString()),a.get("adsType")||a.set("adsType","REWARD_INTERSTITIAL"),o.search=a.toString(),o.toString()}),Wt(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv-appsrockets"),Qt(G(RP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),Wt(this,"destroy",()=>{var r;this.adsOverlay&&(Qt(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),Wt(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,at.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,at.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var p;this.adsIsShowing=!1,(p=r.onAdCompleted)==null||p.call(r,void 0)},l=()=>{var p;(p=r.onAdLoaded)==null||p.call(r,void 0)},d=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)},u=()=>{var p;(p=r.onAdError)==null||p.call(r,at.from(new Error("Ads load error"),"JOLIBOX_IMA_ERROR"))};this.adsIsShowing=!0,Ce(()=>{this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.adLinkClicked.value=d,this.state.adError.value=u,this.state.src.value=this.processUrl(n.params.url),this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};nh=class{constructor(t){un(this,"name","GOOGLE_GPT"),un(this,"context",void 0),un(this,"contextInfo",void 0),un(this,"rewardAdManager",void 0),un(this,"init",r=>g(this,null,function*(){if(!this.rewardAdManager){let n=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":r.params.rewardedSlot,i=`minidrama-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;this.rewardAdManager=new DP(n,i,r.params.keyValue)}})),un(this,"insertScript",()=>{let r="jolibox-google-gpt",n=document.getElementById(r);n||(n=window.document.createElement("script"),n.id=r,n.async=!0,n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.crossOrigin="anonymous",document.head.appendChild(n))}),un(this,"destroy",()=>{var r;(r=this.rewardAdManager)==null||r.withCommand(()=>{var n;(n=this.rewardAdManager)==null||n.destroy("ignored")})}),un(this,"requestAd",(r,n)=>{var i;if(!this.rewardAdManager){(i=r.onAdError)==null||i.call(r,at.from(new Error("rewardAdManager not initialized"),"JOLIBOX_IMA_ERROR"));return}this.rewardAdManager.requestAds({beforeAd:r.onAdRequested,beforeReward:o=>{var a,s;(a=r.onAdLoaded)==null||a.call(r,void 0),o(),(s=r.onAdPlaying)==null||s.call(r,void 0)},adDismissed:()=>{},adViewed:()=>{},adBreakDone:o=>{var a,s;switch(o){case"viewed":{(a=r.onAdCompleted)==null||a.call(r,void 0);break}case"ignored":break;default:{(s=r.onAdError)==null||s.call(r,at.from(new Error(o),"JOLIBOX_IMA_ERROR"));break}}}})}),this.context=t,this.contextInfo=t.getContextInfo(),this.insertScript()}};Ll=class e{constructor(t){if(pr(this,"context",void 0),pr(this,"contextInfo",void 0),pr(this,"providers",{}),pr(this,"requestContext",void 0),pr(this,"adsRequest",void 0),pr(this,"initialized",!1),pr(this,"preloadedAd",null),pr(this,"shouldCache",!1),t)this.context=t,this.requestContext=new Ia(t),this.adsRequest=new Nl(t,{reward:!1,interstitial:!1,afv:!1}),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForVideo requires a configuration object")}init(){return g(this,arguments,function*(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r,n=sessionStorage.getItem(e.STORAGE_KEY_INIT);if(n){sessionStorage.removeItem(e.STORAGE_KEY_INIT);try{r=JSON.parse(n)}catch(i){}}if(r!=null&&r.length||(r=(yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}})).data),t&&r!=null&&r.length)try{sessionStorage.setItem(e.STORAGE_KEY_INIT,JSON.stringify(r))}catch(i){}if((r==null?void 0:r.length)>0)for(let i of r)switch(i.provider){case"GOOGLE_GPT":{let o=new nh(this.context);yield o.init(i),this.providers.GOOGLE_GPT=o;break}case"GOOGLE_IMA":{let o=new eh(this.context);yield o.init(i),this.providers.GOOGLE_IMA=o;break}case"OKSPIN":{let o=new th(this.context);yield o.init(i),this.providers.OKSPIN=o;break}case"APPSROCKETS":{let o=new rh(this.context);yield o.init(i),this.providers.APPSROCKETS=o;break}}this.adsRequest.cacheAFVInfo(),this.initialized=!0,this.shouldCache=t,this.preload()})}preload(){let t=sessionStorage.getItem(e.STORAGE_KEY_INFO);if(t){sessionStorage.removeItem(e.STORAGE_KEY_INFO);try{this.preloadedAd=JSON.parse(t);return}catch(r){}}this.adsRequest.getAFVAdsInfo(!0).then(r=>{if(console.log("[JoliboxSDK] afv preload adsInfo:",r),this.preloadedAd=r,this.shouldCache&&r)try{sessionStorage.setItem(e.STORAGE_KEY_INFO,JSON.stringify(r))}catch(n){}}).catch(()=>{this.preloadedAd=null})}destroy(){let t=Object.values(this.providers);for(let r of t)r.destroy();this.initialized=!1,this.preloadedAd=null}requestAd(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f;if((r=this.context.eventEmitter)==null||r.emit("isAdShowing",!0),this.initialized||(yield this.init()),!this.context.checkNetwork()){let m=at.from(new Error("No network connection"),"JOLIBOX_IMA_ERROR");(n=t.onAdError)==null||n.call(t,m);return}try{console.log("[JoliboxSDK] requestAd this.preloadedAd:",this.preloadedAd);let m=(i=this.preloadedAd)!=null?i:yield this.adsRequest.getAFVAdsInfo(!0);this.preloadedAd=null;let v=m==null?void 0:m.code,b=m==null?void 0:m.data;if(v==="BYPASS_ADS"){(o=t.onAdRequested)==null||o.call(t),(a=t.onAdLoaded)==null||a.call(t,void 0),(s=t.onAdPlaying)==null||s.call(t,void 0),(c=t.onAdCompleted)==null||c.call(t,void 0);return}if(b){let y=b.sort((x,k)=>x.seq-k.seq);if(y.length===0){let x=at.from(new Error("No ads available"),"JOLIBOX_IMA_ERROR");(d=t.onAdError)==null||d.call(t,x);return}let _=!0,E=null,C=new Qm(this.context);for(;y.length>0;){let x=y.shift(),k=this.providers[x.provider];if(k){let[A,H]=yield C.callAdRequestAndContinue(k,t,x);_=A,E=H}else _=!0,E=at.from(new Error("No provider available"),"JOLIBOX_IMA_ERROR");if(!_)break}_&&E&&((u=t.onAdError)==null||u.call(t,E))}else{let y=at.from(new Error("Unknown error"),"JOLIBOX_IMA_ERROR");(l=t.onAdError)==null||l.call(t,y);return}}catch(m){let v=at.from(new Error("Failed to request ad"),"JOLIBOX_IMA_ERROR");(p=t.onAdError)==null||p.call(t,v)}finally{(f=this.context.eventEmitter)==null||f.emit("isAdShowing",!1),this.preload()}})}};pr(Ll,"STORAGE_KEY_INIT","jolibox_afv_init_data");pr(Ll,"STORAGE_KEY_INFO","jolibox_afv_info_data")});function UP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;qP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return qP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Or,loginGuide:Rr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Or,loginGuide:Rr}})}}}var qP,MP=T(()=>{"use strict";$();Je();qP=I.testMode});var lh,uh,jl,FP=T(()=>{"use strict";R();lh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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)||{balance:0,enableAutoDeduct:!1},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||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},uh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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 P({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}}},jl=class{constructor(t){this.unlockOptionsService=new Ft(new lh(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,c;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((c=a.joliGemChoice)==null?void 0:c.joliGemQuantity)})}),this.globalConfigService=new Ft(new uh(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(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 g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(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 g(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 ph(e){return dh||(dh=new jl(e)),dh}var OW,RW,NW,dh,fh,mh,hh,gh=T(()=>{"use strict";FP();Je();R();OW=()=>(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]},RW=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],NW=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(OW())},dh=null;fh=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=ph(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;M.emit(Qc,{options:((i=l.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=l.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=l.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((c=(s=l.data)==null?void 0:s.unlockOptions)==null?void 0:c.map(u=>u.type))||Array.from(r);return NW(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},mh=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=ph(t);try{let s=yield r.getGlobalConfig();return M.emit(Vt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Or,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Rr}),s.data&&Se.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Or,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Rr}}catch(s){return console.error("getGlobalConfig error (cached):",s),M.emit(Vt,{joliCoinUseAndCharge:Or,loginGuide:Rr}),Se.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Or,loginGuide:Rr,supportedHostMethods:RW}}),{joliCoinUseAndCharge:Or,loginGuide:Rr}}}))},hh=e=>g(void 0,null,function*(){yield ph(e).warmupCache(),console.log("Reward cache warmed up")})});var vh=T(()=>{"use strict";gh();gh()});var jP,BP=T(()=>{"use strict";jP=e=>t=>g(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 Ue,Wi,Ot=T(()=>{"use strict";Je();lr();Je();Ue=He(M,Qc),Wi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Bl,yh=T(()=>{"use strict";Bl={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 bt,fn=T(()=>{"use strict";R();bt=Y()});function GP(e){return bh||(bh=new wh(e)),bh}var _h,wh,bh,Sh,Hn,zi=T(()=>{"use strict";R();_h=class{constructor(t){this.httpClient=t}execute(t,r){return g(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}}}},wh=class{constructor(t){this.balanceService=new Ft(new _h(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 g(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 g(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 g(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()}},bh=null;Sh=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield GP(e).getBalance(t)}),Hn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield GP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var JP=T(()=>{"use strict";zi()});function Ch(e){return Ih||(Ih=new Ah(e)),Ih}var Eh,Ah,Ih,kh,Vn,Gl,Ki=T(()=>{"use strict";R();Eh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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}}}},Ah=class{constructor(t){this.gemBalanceService=new Ft(new Eh(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 g(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 g(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 g(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()}},Ih=null;kh=(e,t="GEM")=>g(void 0,null,function*(){return yield Ch(e).getGemBalance(t)}),Vn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield Ch(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Gl=(e,t="GEM")=>g(void 0,null,function*(){yield Ch(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var HP=T(()=>{"use strict";Ki()});var qt,$n=T(()=>{"use strict";JP();HP();qt={JOLI_COIN:{fetchBalance:Sh,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:kh,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 ka,jr,xh=T(()=>{"use strict";fn();Ot();lr();Je();Je();$n();ka=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;bt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Ue.getData(),o=qt[t],a=o.getCurrentUser(i),s=o.getQuantity(i),c=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,c,s),(yield n({enableAutoDeduct:c,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},jr=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,qn);return M.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 xa,Br,VP=T(()=>{"use strict";fn();Ot();Je();lr();Je();$n();Ki();zi();xa=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;bt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Ue.getData(),a=qt[t],s=yield a.fetchBalance(n),c=a.getQuantity(o),l=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,l.enableAutoDeduct),u=a.getUpdateKey();if(Ue.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,c,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:c,currency:t});return t==="JOLI_GEM"?Vn(n):Hn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Br=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,Ht);return M.emit(Zc,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,Gr,$P=T(()=>{"use strict";$();fn();lr();Je();Je();R();Ot();$n();Th=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;bt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Ue.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}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield Ga(3e3));let f=qt[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Ue.updateData({[_]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Gr=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,Pr);return M.emit(tl,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Wn=T(()=>{"use strict";xh();VP();$P()});var LW,Jl,Ph=T(()=>{"use strict";$();R();yh();Wn();fn();zi();$n();Ot();LW=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{xa(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ka(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,m,v;try{let b=yield o.getData();if(Wi(b,l)){let C=qt.JOLI_COIN,x=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=x==null?void 0:x.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let x of d){let k=yield bt.executeCommand(x);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let _=Bl[r],E=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",E),E.code=="SUCCESS"){try{(m=u.adBreakDone)==null||m.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((v=u.adViewed)==null||v.call(u)),Hn(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}return n==null||n({quantity:E.data.quantity,balance:E.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},Jl=(e,t,r)=>LW(e,t,"JOLI_COIN",r)});var WP,zP=T(()=>{"use strict";Ot();Ph();Wn();WP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=jr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Br("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Gr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Jl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var KP,YP=T(()=>{"use strict";Ph();Ot();Wn();KP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=jr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Br("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Gr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Jl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Hl,Oh=T(()=>{"use strict";$();R();yh();Wn();xh();fn();Ki();$n();Ot();Hl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Th(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),xa(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ka(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,m;try{let v=yield i.getData(),b=Wi(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let E=qt.JOLI_GEM,C=yield E.fetchBalance(t),x=E.getCurrentUser(v),k=E.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,x.enableAutoDeduct);if(!E.isEnough(v,k))return n==null||n(d),!1}else{let E=!0;for(let C of l){let x=yield bt.executeCommand(C);if(console.log("[GemHandler] command result",x,C),E=E&&x.result!=="FAILED",x.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let y=Bl.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((m=d.adViewed)==null||m.call(d)),Vn(t)}catch(E){console.error("-----unlockWithGem adBreakDone error-----",E)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var XP,QP=T(()=>{"use strict";Ot();Oh();Wn();XP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=jr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Br("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Gr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Hl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var ZP,eO=T(()=>{"use strict";Oh();Ot();Wn();ZP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=jr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Br("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Gr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Hl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var tO,rO,Rh=T(()=>{"use strict";$n();fn();Ot();lr();Je();Je();tO=e=>{let{showSubscriptionModal:t}=e;bt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Ue.getData(),n=(c=(s=r==null?void 0:r.options)==null?void 0:s.find(l=>l.type==="JOLI_GEM"))==null?void 0:c.type,i=qt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},rO=e=>()=>g(void 0,null,function*(){let t=He(M,Un);return M.emit(rl,e),(yield t.getFreshData()).result})});var nO=T(()=>{"use strict";Rh()});var iO,oO=T(()=>{"use strict";fn();nO();$();Ot();zi();Ki();iO=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{tO({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,m;try{let v=yield i.getData();if(!Wi(v,a))return!1;let y=!0;for(let _ of s){let E=yield bt.executeCommand(_);if(y=y&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(Hn(t),Vn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:B(P({},(p=I.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(c),!1}catch(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var aO,sO=T(()=>{"use strict";Ot();oO();Rh();aO=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=rO("SUBSCRIPTION");return iO("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Ue,showSubscriptionModal:o,hasSubscription:n}})}});var Ut,cO=T(()=>{"use strict";MP();vh();BP();zP();YP();QP();eO();sO();zi();Ki();Ut=UP();fh(Ut);mh(Ut)});var Vl,qW,hr,UW,Ta,MW,lO,uO,FW,jW,Nh,BW,GW,JW,dO=T(()=>{"use strict";R();Ve();cr();ET();vm();ch();wt();$();ft();ce();cO();hs();vh();Vl=Y(),qW=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},hr={get:(e,t)=>X(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>X(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},UW={httpClient:hr,checkNetwork:qW,track:j,eventEmitter:_n,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,c,l;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Ta=new Ji(UW);Ut.getRewardFrequencyConfig(hr).then(e=>{console.log("getRewardFrequencyConfig",e)});Ut.registerRewardHandler("ADS",jP(Ta));Ut.registerRewardHandler("JOLI_COIN",WP(hr,{onUnlockSuccess:e=>{lO(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_COIN_ONLY",KP(hr,{onUnlockSuccess:e=>{lO(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM",XP(hr,{onUnlockSuccess:e=>{uO(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM_ONLY",ZP(hr,{onUnlockSuccess:e=>{uO(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));MW=()=>{j("subscription_unlock_success",{})};Ut.registerRewardHandler("SUBSCRIPTION",aO(hr,{onSubSuccess:MW.bind(void 0),hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));lO=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"}})};hh(hr);Gl(hr);_n.on("isAdShowing",e=>{qi("JOLIBOX_ADS_EVENT",{isAdShowing:e})});uO=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"}}})},FW=Q("adInit",{implement:e=>{Ta.init(e)}}),jW=Q("adConfig",{implement:e=>{Ta.adConfig(e)}}),Nh=!1,BW=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},GW=Q("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){BW(e);return}if(e.type==="reward"){if(Nh)return;Nh=!0,Ut.getRewardsTypes(hr).then(n=>{Ut.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Nh=!1})})}else Ta.adBreak(e)}}),JW=Q("adUnit",{implement:e=>{Ta.adUnit(e)}});Vl.registerCommand("AdsSDK.init",FW);Vl.registerCommand("AdsSDK.adConfig",jW);Vl.registerCommand("AdsSDK.adBreak",GW);Vl.registerCommand("AdsSDK.adUnit",JW);D("AdsSDK.init",{version:"1.0.0"});D("AdsSDK.adConfig",{version:"1.0.0"});D("AdsSDK.adBreak",{version:"1.0.0"});D("AdsSDK.adUnit",{version:"1.0.0"})});var Pa,HW,VW,$W,WW,zW,pO=T(()=>{"use strict";R();ce();Ve();$();Pa=Y(),HW=Q("openSchemaSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new zt(r.errMsg,r.errNo)}}),VW=Q("openPageSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new zt(r,t);return{webviewId:n.webviewId}}}),$W=Q("closePageSync",{paramsSchema:S.tuple(S.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new zt(r,t)}}),WW=Q("interceptSystemExitSync",{paramsSchema:S.tuple(S.boolean()),implement:e=>{Se.emit("onInterceptSystemExit",{intercept:e}),Se.emit("onInterceptBackPress",{intercept:e})}}),zW=Q("navigateToNativePage",{paramsSchema:S.tuple(S.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),S.object()),implement:(e,t)=>{L("callHostMethodAsync",{method:e,params:P({},t)})}});Pa.registerCommand("RouterSDK.openSchema",HW);Pa.registerCommand("RouterSDK.openPage",VW);Pa.registerCommand("RouterSDK.closePage",$W);Pa.registerCommand("RouterSDK.interceptSystemExit",WW);Pa.registerCommand("RouterSDK.navigateToNativePage",zW);D("router.openSchema",{version:"1.1.10"});D("router.openPage",{version:"1.1.10"});D("router.closePage",{version:"1.1.10"});D("router.interceptSystemExit",{version:"1.1.18"});D("router.navigateToNativePage",{version:"1.1.19"})});function XW(e){gn("cpLoadProgressEvent",{progress:e},I.webviewId,!0),qi("CP_LOAD_PROGRESS",{progress:e})}var Lh,KW,$l,Dh,fO,YW,QW,ZW,mO=T(()=>{"use strict";R();Ve();ce();$();wt();vm();Lh=Y(),KW=Q("onLoadFinished",{implement:()=>{gn("cpLoadFinishEvent",{},I.webviewId,!0),qi("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),$l=null,Dh=!1,fO=0,YW=200;QW=Q("onLoadProgress",{paramsSchema:S.tuple(S.number()),implement:e=>{$l=e,Dh||(Dh=!0,requestAnimationFrame(function t(){let r=Date.now();r-fO>=YW?($l!==null&&(XW($l),fO=r,$l=null),Dh=!1):requestAnimationFrame(t)}))}}),ZW=Q("onGameTTI",{paramsSchema:S.tuple(S.number().optional()),implement:()=>{gn("cpGameTTIEvent",{duration:performance.now()},I.webviewId,!0),qi("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});Lh.registerCommand("RuntimeSDK.loadFinishedEvent",KW);Lh.registerCommand("RuntimeSDK.loadProgressEvent",QW);Lh.registerCommand("RuntimeSDK.gameTTIEvent",ZW)});var ez,tz,rz,hO=T(()=>{"use strict";R();Ve();$();ez=Y(),tz="isNativeSupport",rz=Q(tz,{paramsSchema:S.tuple(S.object({version:S.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Cg(Bu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});ez.registerCommand("API.isNativeSupport",rz);D("isNativeSupport",{version:"1.1.46"})});var vO=h(qh=>{"use strict";Ve();ce();R();R();$();var gO=Y(),nz=z("callHostMethod",{paramsSchema:S.tuple(S.object({method:S.string(),params:S.object().optional().default({})})),implement:r=>g(qh,[r],function*({method:e,params:t}){if(!ye(e))throw new zt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield L("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new zt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});gO.registerCommand("API.callHostMethod",nz);D("callHostMethod",{version:"1.1.49"});var iz=z("userTrackAsync",{paramsSchema:S.tuple(S.object({event:S.string(),eventType:S.number(),params:S.object().optional().default({})})),implement:n=>g(qh,[n],function*({event:e,eventType:t,params:r}){if(!ye("userTrackAsync"))throw new zt("Method not supported",10001);let{errNo:i,errMsg:o}=yield L("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:I.webviewId});if(i!==0)throw new zt(o,i)})});gO.registerCommand("API.track",iz);D("track",{version:"1.1.53"})});var _O=h(mn=>{"use strict";R();Ve();sm();Hr();gm();ce();var zn=Y(),yO=cl(),oz=z("purchaseGem",{paramsSchema:S.tuple(S.object({productId:S.string()})),implement:e=>g(mn,null,function*(){var r,n;let t=yield yO.purchase(e.productId);if(t.code!=="SUCCESS")throw xe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),az=z("getGemProducts",{paramsSchema:S.tuple(),implement:()=>g(mn,null,function*(){var t,r;let e=(r=(t=yield yO.getProductsInfoWithBalance())==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}})}})}),sz=z("getSubscriptionPlans",{paramsSchema:S.tuple(),implement:()=>g(mn,null,function*(){let e=yield Gn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw xe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),cz=z("flushSubInfoCache",{paramsSchema:S.tuple(),implement:()=>g(mn,null,function*(){yield Gn.updateAllNativePriceCache()})}),bO=e=>g(mn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Gn.getTierByProductId(e.productId);if(!s)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Gn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),lz=z("subscribe",{paramsSchema:S.tuple(S.object({productId:S.string(),appStoreProductId:S.string().optional()})),implement:bO}),uz=z("subscribeSpin",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string().optional()})),implement:e=>g(mn,null,function*(){return bO(B(P({},e),{productId:"jolibox_app_spin_sub"}))})});zn.registerCommand("PaymentSDK.purchaseGem",oz);zn.registerCommand("PaymentSDK.getGemProducts",az);zn.registerCommand("PaymentSDK.getSubscriptionPlans",sz);zn.registerCommand("PaymentSDK.subscribe",lz);zn.registerCommand("PaymentSDK.subscribeSpin",uz);var dz=z("getSpinSubscriptionPrice",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string()})),implement:e=>g(mn,null,function*(){let{data:t}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:[e.appStoreProductId],type:"SPIN"});if(!t)throw xe({code:-1,msg:"[JoliboxSDK]: get spin subscription price failed"});return{plans:Object.values(t).map(n=>{var i,o;return{basePlanId:n.basePlanId,productId:n.productId,formattedPrice:n.pricing.formattedPrice,originalPrice:n.pricing.originalPrice,trialDay:(o=(i=n.trial)==null?void 0:i.duration)!=null?o:0}})}})});zn.registerCommand("PaymentSDK.flushSubInfoCache",cz);zn.registerCommand("PaymentSDK.getSpinSubscriptionPrice",dz);D("payment.purchaseGem",{version:"1.2.9"});D("payment.getGemProducts",{version:"1.2.9"});D("payment.getSubscriptionPlans",{version:"1.2.9"});D("payment.subscribe",{version:"1.2.9"});D("payment.flushSubInfoCache",{version:"1.2.9"});D("payment.subscribeSpin",{version:"1.3.7"});D("payment.getSpinSubscriptionPrice",{version:"1.4.3"})});var SO=h(hn=>{"use strict";R();Ve();$();Hr();ce();hs();wt();ch();ft();var pz=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},fz={get:(e,t)=>X(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>X(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},mz={httpClient:fz,checkNetwork:pz,track:j,eventEmitter:_n,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,c,l;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Uh=Y(),wO=Xn(reportError),hz=z("getCoinDetails",{paramsSchema:S.tuple(S.function().optional()),implement:e=>g(hn,null,function*(){try{if(I.mpType!=="miniApp")return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!ye("requestCoinDetailsSync"))return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?wO(e):(()=>{console.log("default update function called")}).bind(hn),{errNo:n,errMsg:i,data:o}=L("requestCoinDetailsSync");if(n!==0)throw xe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),L("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});Uh.registerCommand("RewardsSDK.getCoinDetails",hz);D("rewards.getCoinDetails",{version:"1.3.2"});var gz=z("createRewardsAdsManager",{implement:()=>g(hn,null,function*(){try{let e=new Ji(mz);if(I.mpType!=="miniApp")throw xe({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(hn,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:(t,r=!1)=>g(hn,null,function*(){e.adBreak({type:"reward",beforeReward:n=>{var i;n(),(i=t.onAdLoaded)==null||i.call(t)},adDismissed:()=>{var n;(n=t.onAdDismissed)==null||n.call(t)},adViewed:()=>{},adBreakDone:n=>{var a,s;let i=n.breakStatus,o=i==="frequencyCapped"||i==="other"||i==="error"||i==="noAdPreloaded";i==="viewed"&&(console.log("-----> complete watch ads"),!r&&It.reporter({event:"COMPLETE_WATCH_ADS"}),(a=t.onAdRewarded)==null||a.call(t)),o&&(console.log("-----> no ad preloaded or error occurred",i),(s=t.onAdError)==null||s.call(t,new Error("No ad preloaded or error occurred: "+i)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});Uh.registerCommand("Rewards.createRewardsAdsManager",gz);D("rewards.createRewardsAdsManager",{version:"1.3.4"});var vz=z("getLeaderBoardData",{paramsSchema:S.tuple(S.object({gameId:S.string(),onUpdate:S.function().optional()})),implement:e=>g(hn,null,function*(){try{if(!ye("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?wO(e.onUpdate):(()=>{console.log("default update function called")}).bind(hn),{errNo:r,errMsg:n,data:i}=L("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw xe({code:r!=null?r:-1,msg:n});return L("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw xe({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});Uh.registerCommand("RewardsSDK.getLeaderBoardData",vz);D("rewards.getLeaderBoardData",{version:"1.3.9"})});var yz={};var ale,ule,gle,vle,yle,IO=T(()=>{"use strict";bx();ale=se(_x());kx();uo();xx();ule=se(Ox());Yc();dO();pO();mO();hO();gle=se(vO()),vle=se(_O()),yle=se(SO())});var EO=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[EO])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[EO]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(vx(),gx)),Promise.resolve().then(()=>(IO(),yz)),Promise.resolve().then(()=>(wt(),pv))]);e()});
|
|
914
|
+
`,_W=e=>{let{onReady:t,state:r}=e,{visible:n,retry:i,canRetry:o,videoRef:a,adContainerRef:s}=r,c=()=>{i.value&&(i.value(),Ce(()=>{i.value=null,o.value=!1}))};return Yr(()=>{t()},[t]),G("div",{className:bW,style:{display:n.value?"block":"none"},children:G("div",{className:"ads-wrapper",children:[G("video",{ref:a,width:"100%",height:"100%",playsInline:!0,"webkit-playsinline":"true",poster:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVR4AQEEAPv/AAAAAAAEAAFlScNgAAAAAElFTkSuQmCC",style:{transition:"none !important",transform:"none !important",animation:"none !important",objectFit:"contain"}}),G("div",{id:"ad-container",ref:s}),o.value?G("div",{className:"retry-button",onClick:c,children:G("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G("circle",{cx:"32",cy:"32",r:"32",fill:"#141416",fillOpacity:"0.3"}),G("path",{d:"M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",fill:"white"})]})}):null]})})};eh=class{constructor(t){Mr(this,"name","GOOGLE_IMA"),Mr(this,"context",void 0),Mr(this,"adsOverlay",null),Mr(this,"initialized",!1),Mr(this,"ima",null),Mr(this,"state",yW()),Mr(this,"init",r=>g(this,null,function*(){if(this.initialized)return;let n="//imasdk.googleapis.com/js/sdkloader/ima3.js";yield new Promise((i,o)=>{if(document.querySelector("#google-ima-sdk")){i();return}else{let a=document.createElement("script");a.id="google-ima-sdk",a.src=n,a.onload=()=>{var s;(s=window.google)!=null&&s.ima?i():setTimeout(i,100)},a.onerror=o,document.head.appendChild(a)}}),this.adsOverlay=document.createElement("div"),this.adsOverlay.id="jolibox-ima-overlay",document.documentElement.appendChild(this.adsOverlay),yield new Promise((i,o)=>{Qt(G(_W,{state:this.state,onReady:()=>{this.ima=new Zm(r.params.url,this.state.videoRef.current,this.state.adContainerRef.current),i()}}),this.adsOverlay)}),this.initialized=!0})),Mr(this,"destroy",()=>{this.adsOverlay&&(Qt(null,this.adsOverlay),this.adsOverlay.remove()),this.ima&&this.ima.destroy(),this.initialized=!1}),Mr(this,"requestAd",(r,n)=>{var i;if(!this.adsOverlay||!this.ima||!this.initialized){let d=at.from(new Error("IMA not initialized"),"JOLIBOX_IMA_ERROR");(i=r.onAdError)==null||i.call(r,d);return}let o=d=>{var u;this.ima.destroy(),this.state.visible.value=!1,(u=r.onAdCompleted)==null||u.call(r,d)},a=d=>{var u;let p=!1;switch(d.raw.getErrorCode()){case Cl.AUTOPLAY_DISALLOWED:case Cl.VIDEO_PLAY_ERROR:case Cl.ADS_REQUEST_NETWORK_ERROR:{p=!0;break}default:{p=!1;break}}if(!p)this.ima.destroy(),Ce(()=>{this.state.canRetry.value=!1,this.state.retry.value=null,this.state.visible.value=!1}),(u=r.onAdError)==null||u.call(r,d);else{let f=()=>{this.ima.destroy(),this.requestAd(r,n)};Ce(()=>{this.state.canRetry.value=!0,this.state.retry.value=f})}},s=d=>{var u;this.state.visible.value=!0,(u=r.onAdLoaded)==null||u.call(r,d)},c=d=>{var u;(u=r.onAdPlaying)==null||u.call(r,d)},l=Object.assign({},r);l.onAdCompleted=o,l.onAdError=a,l.onAdLoaded=s,l.onAdPlaying=c,this.ima.requestAds(l,n)}),this.context=t}};th=class{constructor(t){dr(this,"name","OKSPIN"),dr(this,"initialized",!1),dr(this,"initCompleter",null),dr(this,"context",void 0),dr(this,"adsOverlay",null),dr(this,"adsIsShowing",!1),dr(this,"state",TP()),dr(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv"),Qt(G(PP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),dr(this,"destroy",()=>{var r;this.adsOverlay&&(Qt(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),dr(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,at.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,at.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var d;this.adsIsShowing=!1,(d=r.onAdCompleted)==null||d.call(r,void 0)},l=()=>{var d;(d=r.onAdLoaded)==null||d.call(r,void 0)};this.adsIsShowing=!0,Ce(()=>{var d;this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.countdown.value=(d=n.params.countdown)!=null?d:15,this.state.src.value=n.params.url,this.state.mode.value="rewarded_insterstitial",this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};rh=class{constructor(t){Wt(this,"name","APPSROCKETS"),Wt(this,"initialized",!1),Wt(this,"initCompleter",null),Wt(this,"context",void 0),Wt(this,"adsOverlay",null),Wt(this,"adsIsShowing",!1),Wt(this,"state",OP()),Wt(this,"processUrl",r=>{var n;let i=this.context.getContextInfo(),o=new URL(r),a=new URLSearchParams(o.search);return a.has("joliSource")||a.set("joliSource",i.joliSource),a.get("osType")||a.set("osType",i.osType),a.get("runtimeType")||a.set("runtimeType",i.runtimeType),a.get("mode")||a.set("mode","AFV"),a.get("deviceId")||a.set("deviceId",i.deviceId),a.get("statusBarHeight")||a.set("statusBarHeight",((n=this.context.getWindowInfo().statusBarHeight)!=null?n:0).toString()),a.get("adsType")||a.set("adsType","REWARD_INTERSTITIAL"),o.search=a.toString(),o.toString()}),Wt(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv-appsrockets"),Qt(G(RP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),Wt(this,"destroy",()=>{var r;this.adsOverlay&&(Qt(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),Wt(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,at.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,at.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var p;this.adsIsShowing=!1,(p=r.onAdCompleted)==null||p.call(r,void 0)},l=()=>{var p;(p=r.onAdLoaded)==null||p.call(r,void 0)},d=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)},u=()=>{var p;(p=r.onAdError)==null||p.call(r,at.from(new Error("Ads load error"),"JOLIBOX_IMA_ERROR"))};this.adsIsShowing=!0,Ce(()=>{this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.adLinkClicked.value=d,this.state.adError.value=u,this.state.src.value=this.processUrl(n.params.url),this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};nh=class{constructor(t){ln(this,"name","GOOGLE_GPT"),ln(this,"context",void 0),ln(this,"contextInfo",void 0),ln(this,"rewardAdManager",void 0),ln(this,"init",r=>g(this,null,function*(){if(!this.rewardAdManager){let n=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":r.params.rewardedSlot,i=`minidrama-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;this.rewardAdManager=new DP(n,i,r.params.keyValue)}})),ln(this,"insertScript",()=>{let r="jolibox-google-gpt",n=document.getElementById(r);n||(n=window.document.createElement("script"),n.id=r,n.async=!0,n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.crossOrigin="anonymous",document.head.appendChild(n))}),ln(this,"destroy",()=>{var r;(r=this.rewardAdManager)==null||r.withCommand(()=>{var n;(n=this.rewardAdManager)==null||n.destroy("ignored")})}),ln(this,"requestAd",(r,n)=>{var i;if(!this.rewardAdManager){(i=r.onAdError)==null||i.call(r,at.from(new Error("rewardAdManager not initialized"),"JOLIBOX_IMA_ERROR"));return}this.rewardAdManager.requestAds({beforeAd:r.onAdRequested,beforeReward:o=>{var a,s;(a=r.onAdLoaded)==null||a.call(r,void 0),o(),(s=r.onAdPlaying)==null||s.call(r,void 0)},adDismissed:()=>{},adViewed:()=>{},adBreakDone:o=>{var a,s;switch(o){case"viewed":{(a=r.onAdCompleted)==null||a.call(r,void 0);break}case"ignored":break;default:{(s=r.onAdError)==null||s.call(r,at.from(new Error(o),"JOLIBOX_IMA_ERROR"));break}}}})}),this.context=t,this.contextInfo=t.getContextInfo(),this.insertScript()}};Ll=class e{constructor(t){if(pr(this,"context",void 0),pr(this,"contextInfo",void 0),pr(this,"providers",{}),pr(this,"requestContext",void 0),pr(this,"adsRequest",void 0),pr(this,"initialized",!1),pr(this,"preloadedAd",null),pr(this,"shouldCache",!1),t)this.context=t,this.requestContext=new Ia(t),this.adsRequest=new Nl(t,{reward:!1,interstitial:!1,afv:!1}),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForVideo requires a configuration object")}init(){return g(this,arguments,function*(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r,n=sessionStorage.getItem(e.STORAGE_KEY_INIT);if(n){sessionStorage.removeItem(e.STORAGE_KEY_INIT);try{r=JSON.parse(n)}catch(i){}}if(r!=null&&r.length||(r=(yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}})).data),t&&r!=null&&r.length)try{sessionStorage.setItem(e.STORAGE_KEY_INIT,JSON.stringify(r))}catch(i){}if((r==null?void 0:r.length)>0)for(let i of r)switch(i.provider){case"GOOGLE_GPT":{let o=new nh(this.context);yield o.init(i),this.providers.GOOGLE_GPT=o;break}case"GOOGLE_IMA":{let o=new eh(this.context);yield o.init(i),this.providers.GOOGLE_IMA=o;break}case"OKSPIN":{let o=new th(this.context);yield o.init(i),this.providers.OKSPIN=o;break}case"APPSROCKETS":{let o=new rh(this.context);yield o.init(i),this.providers.APPSROCKETS=o;break}}this.adsRequest.cacheAFVInfo(),this.initialized=!0,this.shouldCache=t,this.preload()})}preload(){let t=sessionStorage.getItem(e.STORAGE_KEY_INFO);if(t){sessionStorage.removeItem(e.STORAGE_KEY_INFO);try{this.preloadedAd=JSON.parse(t);return}catch(r){}}this.adsRequest.getAFVAdsInfo(!0).then(r=>{if(console.log("[JoliboxSDK] afv preload adsInfo:",r),this.preloadedAd=r,this.shouldCache&&r)try{sessionStorage.setItem(e.STORAGE_KEY_INFO,JSON.stringify(r))}catch(n){}}).catch(()=>{this.preloadedAd=null})}destroy(){let t=Object.values(this.providers);for(let r of t)r.destroy();this.initialized=!1,this.preloadedAd=null}requestAd(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f;if((r=this.context.eventEmitter)==null||r.emit("isAdShowing",!0),this.initialized||(yield this.init()),!this.context.checkNetwork()){let m=at.from(new Error("No network connection"),"JOLIBOX_IMA_ERROR");(n=t.onAdError)==null||n.call(t,m);return}try{console.log("[JoliboxSDK] requestAd this.preloadedAd:",this.preloadedAd);let m=(i=this.preloadedAd)!=null?i:yield this.adsRequest.getAFVAdsInfo(!0);this.preloadedAd=null;let v=m==null?void 0:m.code,b=m==null?void 0:m.data;if(v==="BYPASS_ADS"){(o=t.onAdRequested)==null||o.call(t),(a=t.onAdLoaded)==null||a.call(t,void 0),(s=t.onAdPlaying)==null||s.call(t,void 0),(c=t.onAdCompleted)==null||c.call(t,void 0);return}if(b){let y=b.sort((x,k)=>x.seq-k.seq);if(y.length===0){let x=at.from(new Error("No ads available"),"JOLIBOX_IMA_ERROR");(d=t.onAdError)==null||d.call(t,x);return}let _=!0,E=null,C=new Qm(this.context);for(;y.length>0;){let x=y.shift(),k=this.providers[x.provider];if(k){let[A,H]=yield C.callAdRequestAndContinue(k,t,x);_=A,E=H}else _=!0,E=at.from(new Error("No provider available"),"JOLIBOX_IMA_ERROR");if(!_)break}_&&E&&((u=t.onAdError)==null||u.call(t,E))}else{let y=at.from(new Error("Unknown error"),"JOLIBOX_IMA_ERROR");(l=t.onAdError)==null||l.call(t,y);return}}catch(m){let v=at.from(new Error("Failed to request ad"),"JOLIBOX_IMA_ERROR");(p=t.onAdError)==null||p.call(t,v)}finally{(f=this.context.eventEmitter)==null||f.emit("isAdShowing",!1),this.preload()}})}};pr(Ll,"STORAGE_KEY_INIT","jolibox_afv_init_data");pr(Ll,"STORAGE_KEY_INFO","jolibox_afv_info_data")});function UP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;qP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return qP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Or,loginGuide:Rr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Or,loginGuide:Rr}})}}}var qP,MP=T(()=>{"use strict";$();Je();qP=I.testMode});var lh,uh,jl,FP=T(()=>{"use strict";R();lh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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)||{balance:0,enableAutoDeduct:!1},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||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},uh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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 P({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}}},jl=class{constructor(t){this.unlockOptionsService=new Ft(new lh(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,c;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((c=a.joliGemChoice)==null?void 0:c.joliGemQuantity)})}),this.globalConfigService=new Ft(new uh(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(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 g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(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 g(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 ph(e){return dh||(dh=new jl(e)),dh}var OW,RW,NW,dh,fh,mh,hh,gh=T(()=>{"use strict";FP();Je();R();OW=()=>(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]},RW=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],NW=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(OW())},dh=null;fh=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=ph(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;M.emit(Qc,{options:((i=l.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=l.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=l.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((c=(s=l.data)==null?void 0:s.unlockOptions)==null?void 0:c.map(u=>u.type))||Array.from(r);return NW(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},mh=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=ph(t);try{let s=yield r.getGlobalConfig();return M.emit(Vt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Or,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Rr}),s.data&&Se.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Or,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Rr}}catch(s){return console.error("getGlobalConfig error (cached):",s),M.emit(Vt,{joliCoinUseAndCharge:Or,loginGuide:Rr}),Se.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Or,loginGuide:Rr,supportedHostMethods:RW}}),{joliCoinUseAndCharge:Or,loginGuide:Rr}}}))},hh=e=>g(void 0,null,function*(){yield ph(e).warmupCache(),console.log("Reward cache warmed up")})});var vh=T(()=>{"use strict";gh();gh()});var jP,BP=T(()=>{"use strict";jP=e=>t=>g(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 Ue,Wi,Ot=T(()=>{"use strict";Je();lr();Je();Ue=He(M,Qc),Wi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Bl,yh=T(()=>{"use strict";Bl={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 bt,pn=T(()=>{"use strict";R();bt=Y()});function GP(e){return bh||(bh=new wh(e)),bh}var _h,wh,bh,Sh,Jn,zi=T(()=>{"use strict";R();_h=class{constructor(t){this.httpClient=t}execute(t,r){return g(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}}}},wh=class{constructor(t){this.balanceService=new Ft(new _h(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 g(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 g(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 g(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()}},bh=null;Sh=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield GP(e).getBalance(t)}),Jn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield GP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var JP=T(()=>{"use strict";zi()});function Ch(e){return Ih||(Ih=new Ah(e)),Ih}var Eh,Ah,Ih,kh,Hn,Gl,Ki=T(()=>{"use strict";R();Eh=class{constructor(t){this.httpClient=t}execute(t,r){return g(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}}}},Ah=class{constructor(t){this.gemBalanceService=new Ft(new Eh(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 g(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 g(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 g(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()}},Ih=null;kh=(e,t="GEM")=>g(void 0,null,function*(){return yield Ch(e).getGemBalance(t)}),Hn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield Ch(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Gl=(e,t="GEM")=>g(void 0,null,function*(){yield Ch(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var HP=T(()=>{"use strict";Ki()});var qt,Vn=T(()=>{"use strict";JP();HP();qt={JOLI_COIN:{fetchBalance:Sh,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:kh,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 ka,jr,xh=T(()=>{"use strict";pn();Ot();lr();Je();Je();Vn();ka=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;bt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Ue.getData(),o=qt[t],a=o.getCurrentUser(i),s=o.getQuantity(i),c=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,c,s),(yield n({enableAutoDeduct:c,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},jr=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,Ln);return M.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 xa,Br,VP=T(()=>{"use strict";pn();Ot();Je();lr();Je();Vn();Ki();zi();xa=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;bt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Ue.getData(),a=qt[t],s=yield a.fetchBalance(n),c=a.getQuantity(o),l=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,l.enableAutoDeduct),u=a.getUpdateKey();if(Ue.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,c,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:c,currency:t});return t==="JOLI_GEM"?Hn(n):Jn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Br=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,Ht);return M.emit(Zc,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,Gr,$P=T(()=>{"use strict";$();pn();lr();Je();Je();R();Ot();Vn();Th=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;bt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Ue.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}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield Ga(3e3));let f=qt[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Ue.updateData({[_]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Gr=(e,t)=>r=>g(void 0,null,function*(){let n=He(M,Pr);return M.emit(tl,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var $n=T(()=>{"use strict";xh();VP();$P()});var LW,Jl,Ph=T(()=>{"use strict";$();R();yh();$n();pn();zi();Vn();Ot();LW=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{xa(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ka(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,m,v;try{let b=yield o.getData();if(Wi(b,l)){let C=qt.JOLI_COIN,x=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=x==null?void 0:x.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let x of d){let k=yield bt.executeCommand(x);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let _=Bl[r],E=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Xn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",E),E.code=="SUCCESS"){try{(m=u.adBreakDone)==null||m.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((v=u.adViewed)==null||v.call(u)),Jn(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}return n==null||n({quantity:E.data.quantity,balance:E.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},Jl=(e,t,r)=>LW(e,t,"JOLI_COIN",r)});var WP,zP=T(()=>{"use strict";Ot();Ph();$n();WP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=jr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Br("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Gr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Jl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var KP,YP=T(()=>{"use strict";Ph();Ot();$n();KP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=jr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Br("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Gr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Jl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Hl,Oh=T(()=>{"use strict";$();R();yh();$n();xh();pn();Ki();Vn();Ot();Hl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Th(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),xa(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ka(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,m;try{let v=yield i.getData(),b=Wi(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let E=qt.JOLI_GEM,C=yield E.fetchBalance(t),x=E.getCurrentUser(v),k=E.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,x.enableAutoDeduct);if(!E.isEnough(v,k))return n==null||n(d),!1}else{let E=!0;for(let C of l){let x=yield bt.executeCommand(C);if(console.log("[GemHandler] command result",x,C),E=E&&x.result!=="FAILED",x.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let y=Bl.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Xn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((m=d.adViewed)==null||m.call(d)),Hn(t)}catch(E){console.error("-----unlockWithGem adBreakDone error-----",E)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var XP,QP=T(()=>{"use strict";Ot();Oh();$n();XP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=jr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Br("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Gr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Hl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var ZP,eO=T(()=>{"use strict";Oh();Ot();$n();ZP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=jr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Br("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Gr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Hl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ue,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var tO,rO,Rh=T(()=>{"use strict";Vn();pn();Ot();lr();Je();Je();tO=e=>{let{showSubscriptionModal:t}=e;bt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Ue.getData(),n=(c=(s=r==null?void 0:r.options)==null?void 0:s.find(l=>l.type==="JOLI_GEM"))==null?void 0:c.type,i=qt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},rO=e=>()=>g(void 0,null,function*(){let t=He(M,qn);return M.emit(rl,e),(yield t.getFreshData()).result})});var nO=T(()=>{"use strict";Rh()});var iO,oO=T(()=>{"use strict";pn();nO();$();Ot();zi();Ki();iO=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{tO({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,m;try{let v=yield i.getData();if(!Wi(v,a))return!1;let y=!0;for(let _ of s){let E=yield bt.executeCommand(_);if(y=y&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(Jn(t),Hn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:B(P({},(p=I.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(c),!1}catch(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var aO,sO=T(()=>{"use strict";Ot();oO();Rh();aO=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=rO("SUBSCRIPTION");return iO("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Ue,showSubscriptionModal:o,hasSubscription:n}})}});var Ut,cO=T(()=>{"use strict";MP();vh();BP();zP();YP();QP();eO();sO();zi();Ki();Ut=UP();fh(Ut);mh(Ut)});var Vl,qW,hr,UW,Ta,MW,lO,uO,FW,jW,Nh,BW,GW,JW,dO=T(()=>{"use strict";R();Ve();cr();ET();vm();ch();wt();$();ft();ce();cO();hs();vh();Vl=Y(),qW=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},hr={get:(e,t)=>X(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>X(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},UW={httpClient:hr,checkNetwork:qW,track:j,eventEmitter:bn,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,c,l;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Ta=new Ji(UW);Ut.getRewardFrequencyConfig(hr).then(e=>{console.log("getRewardFrequencyConfig",e)});Ut.registerRewardHandler("ADS",jP(Ta));Ut.registerRewardHandler("JOLI_COIN",WP(hr,{onUnlockSuccess:e=>{lO(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_COIN_ONLY",KP(hr,{onUnlockSuccess:e=>{lO(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM",XP(hr,{onUnlockSuccess:e=>{uO(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM_ONLY",ZP(hr,{onUnlockSuccess:e=>{uO(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));MW=()=>{j("subscription_unlock_success",{})};Ut.registerRewardHandler("SUBSCRIPTION",aO(hr,{onSubSuccess:MW.bind(void 0),hasSubscription:()=>ye("invokeSubscriptionPanelSync")}));lO=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"}})};hh(hr);Gl(hr);bn.on("isAdShowing",e=>{Li("JOLIBOX_ADS_EVENT",{isAdShowing:e})});uO=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"}}})},FW=Q("adInit",{implement:e=>{Ta.init(e)}}),jW=Q("adConfig",{implement:e=>{Ta.adConfig(e)}}),Nh=!1,BW=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},GW=Q("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){BW(e);return}if(e.type==="reward"){if(Nh)return;Nh=!0,Ut.getRewardsTypes(hr).then(n=>{Ut.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Nh=!1})})}else Ta.adBreak(e)}}),JW=Q("adUnit",{implement:e=>{Ta.adUnit(e)}});Vl.registerCommand("AdsSDK.init",FW);Vl.registerCommand("AdsSDK.adConfig",jW);Vl.registerCommand("AdsSDK.adBreak",GW);Vl.registerCommand("AdsSDK.adUnit",JW);D("AdsSDK.init",{version:"1.0.0"});D("AdsSDK.adConfig",{version:"1.0.0"});D("AdsSDK.adBreak",{version:"1.0.0"});D("AdsSDK.adUnit",{version:"1.0.0"})});var Pa,HW,VW,$W,WW,zW,pO=T(()=>{"use strict";R();ce();Ve();$();Pa=Y(),HW=Q("openSchemaSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new zt(r.errMsg,r.errNo)}}),VW=Q("openPageSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new zt(r,t);return{webviewId:n.webviewId}}}),$W=Q("closePageSync",{paramsSchema:S.tuple(S.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new zt(r,t)}}),WW=Q("interceptSystemExitSync",{paramsSchema:S.tuple(S.boolean()),implement:e=>{Se.emit("onInterceptSystemExit",{intercept:e}),Se.emit("onInterceptBackPress",{intercept:e})}}),zW=Q("navigateToNativePage",{paramsSchema:S.tuple(S.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),S.object()),implement:(e,t)=>{L("callHostMethodAsync",{method:e,params:P({},t)})}});Pa.registerCommand("RouterSDK.openSchema",HW);Pa.registerCommand("RouterSDK.openPage",VW);Pa.registerCommand("RouterSDK.closePage",$W);Pa.registerCommand("RouterSDK.interceptSystemExit",WW);Pa.registerCommand("RouterSDK.navigateToNativePage",zW);D("router.openSchema",{version:"1.1.10"});D("router.openPage",{version:"1.1.10"});D("router.closePage",{version:"1.1.10"});D("router.interceptSystemExit",{version:"1.1.18"});D("router.navigateToNativePage",{version:"1.1.19"})});function XW(e){hn("cpLoadProgressEvent",{progress:e},I.webviewId,!0),Li("CP_LOAD_PROGRESS",{progress:e})}var Lh,KW,$l,Dh,fO,YW,QW,ZW,mO=T(()=>{"use strict";R();Ve();ce();$();wt();vm();Lh=Y(),KW=Q("onLoadFinished",{implement:()=>{hn("cpLoadFinishEvent",{},I.webviewId,!0),Li("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),$l=null,Dh=!1,fO=0,YW=200;QW=Q("onLoadProgress",{paramsSchema:S.tuple(S.number()),implement:e=>{$l=e,Dh||(Dh=!0,requestAnimationFrame(function t(){let r=Date.now();r-fO>=YW?($l!==null&&(XW($l),fO=r,$l=null),Dh=!1):requestAnimationFrame(t)}))}}),ZW=Q("onGameTTI",{paramsSchema:S.tuple(S.number().optional()),implement:()=>{hn("cpGameTTIEvent",{duration:performance.now()},I.webviewId,!0),Li("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});Lh.registerCommand("RuntimeSDK.loadFinishedEvent",KW);Lh.registerCommand("RuntimeSDK.loadProgressEvent",QW);Lh.registerCommand("RuntimeSDK.gameTTIEvent",ZW)});var ez,tz,rz,hO=T(()=>{"use strict";R();Ve();$();ez=Y(),tz="isNativeSupport",rz=Q(tz,{paramsSchema:S.tuple(S.object({version:S.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Cg(Bu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});ez.registerCommand("API.isNativeSupport",rz);D("isNativeSupport",{version:"1.1.46"})});var vO=h(qh=>{"use strict";Ve();ce();R();R();$();var gO=Y(),nz=z("callHostMethod",{paramsSchema:S.tuple(S.object({method:S.string(),params:S.object().optional().default({})})),implement:r=>g(qh,[r],function*({method:e,params:t}){if(!ye(e))throw new zt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield L("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new zt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});gO.registerCommand("API.callHostMethod",nz);D("callHostMethod",{version:"1.1.49"});var iz=z("userTrackAsync",{paramsSchema:S.tuple(S.object({event:S.string(),eventType:S.number(),params:S.object().optional().default({})})),implement:n=>g(qh,[n],function*({event:e,eventType:t,params:r}){if(!ye("userTrackAsync"))throw new zt("Method not supported",10001);let{errNo:i,errMsg:o}=yield L("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:I.webviewId});if(i!==0)throw new zt(o,i)})});gO.registerCommand("API.track",iz);D("track",{version:"1.1.53"})});var _O=h(fn=>{"use strict";R();Ve();sm();Hr();gm();ce();var Wn=Y(),yO=cl(),oz=z("purchaseGem",{paramsSchema:S.tuple(S.object({productId:S.string()})),implement:e=>g(fn,null,function*(){var r,n;let t=yield yO.purchase(e.productId);if(t.code!=="SUCCESS")throw xe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),az=z("getGemProducts",{paramsSchema:S.tuple(),implement:()=>g(fn,null,function*(){var t,r;let e=(r=(t=yield yO.getProductsInfoWithBalance())==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}})}})}),sz=z("getSubscriptionPlans",{paramsSchema:S.tuple(),implement:()=>g(fn,null,function*(){let e=yield Bn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw xe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),cz=z("flushSubInfoCache",{paramsSchema:S.tuple(),implement:()=>g(fn,null,function*(){yield Bn.updateAllNativePriceCache()})}),bO=e=>g(fn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Bn.getTierByProductId(e.productId);if(!s)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Bn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),lz=z("subscribe",{paramsSchema:S.tuple(S.object({productId:S.string(),appStoreProductId:S.string().optional()})),implement:bO}),uz=z("subscribeSpin",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string().optional()})),implement:e=>g(fn,null,function*(){return bO(B(P({},e),{productId:"jolibox_app_spin_sub"}))})});Wn.registerCommand("PaymentSDK.purchaseGem",oz);Wn.registerCommand("PaymentSDK.getGemProducts",az);Wn.registerCommand("PaymentSDK.getSubscriptionPlans",sz);Wn.registerCommand("PaymentSDK.subscribe",lz);Wn.registerCommand("PaymentSDK.subscribeSpin",uz);var dz=z("getSpinSubscriptionPrice",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string()})),implement:e=>g(fn,null,function*(){let{data:t}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:[e.appStoreProductId],type:"SPIN"});if(!t)throw xe({code:-1,msg:"[JoliboxSDK]: get spin subscription price failed"});return{plans:Object.values(t).map(n=>{var i,o;return{basePlanId:n.basePlanId,productId:n.productId,formattedPrice:n.pricing.formattedPrice,originalPrice:n.pricing.originalPrice,trialDay:(o=(i=n.trial)==null?void 0:i.duration)!=null?o:0}})}})});Wn.registerCommand("PaymentSDK.flushSubInfoCache",cz);Wn.registerCommand("PaymentSDK.getSpinSubscriptionPrice",dz);D("payment.purchaseGem",{version:"1.2.9"});D("payment.getGemProducts",{version:"1.2.9"});D("payment.getSubscriptionPlans",{version:"1.2.9"});D("payment.subscribe",{version:"1.2.9"});D("payment.flushSubInfoCache",{version:"1.2.9"});D("payment.subscribeSpin",{version:"1.3.7"});D("payment.getSpinSubscriptionPrice",{version:"1.4.3"})});var SO=h(mn=>{"use strict";R();Ve();$();Hr();ce();hs();wt();ch();ft();var pz=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},fz={get:(e,t)=>X(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>X(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},mz={httpClient:fz,checkNetwork:pz,track:j,eventEmitter:bn,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,c,l;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Uh=Y(),wO=Yn(reportError),hz=z("getCoinDetails",{paramsSchema:S.tuple(S.function().optional()),implement:e=>g(mn,null,function*(){try{if(I.mpType!=="miniApp")return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!ye("requestCoinDetailsSync"))return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?wO(e):(()=>{console.log("default update function called")}).bind(mn),{errNo:n,errMsg:i,data:o}=L("requestCoinDetailsSync");if(n!==0)throw xe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),L("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});Uh.registerCommand("RewardsSDK.getCoinDetails",hz);D("rewards.getCoinDetails",{version:"1.3.2"});var gz=z("createRewardsAdsManager",{implement:()=>g(mn,null,function*(){try{let e=new Ji(mz);if(I.mpType!=="miniApp")throw xe({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(mn,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:(t,r=!1)=>g(mn,null,function*(){e.adBreak({type:"reward",beforeReward:n=>{var i;n(),(i=t.onAdLoaded)==null||i.call(t)},adDismissed:()=>{var n;(n=t.onAdDismissed)==null||n.call(t)},adViewed:()=>{},adBreakDone:n=>{var a,s;let i=n.breakStatus,o=i==="frequencyCapped"||i==="other"||i==="error"||i==="noAdPreloaded";i==="viewed"&&(console.log("-----> complete watch ads"),!r&&It.reporter({event:"COMPLETE_WATCH_ADS"}),(a=t.onAdRewarded)==null||a.call(t)),o&&(console.log("-----> no ad preloaded or error occurred",i),(s=t.onAdError)==null||s.call(t,new Error("No ad preloaded or error occurred: "+i)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});Uh.registerCommand("Rewards.createRewardsAdsManager",gz);D("rewards.createRewardsAdsManager",{version:"1.3.4"});var vz=z("getLeaderBoardData",{paramsSchema:S.tuple(S.object({gameId:S.string(),onUpdate:S.function().optional()})),implement:e=>g(mn,null,function*(){try{if(!ye("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?wO(e.onUpdate):(()=>{console.log("default update function called")}).bind(mn),{errNo:r,errMsg:n,data:i}=L("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw xe({code:r!=null?r:-1,msg:n});return L("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw xe({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});Uh.registerCommand("RewardsSDK.getLeaderBoardData",vz);D("rewards.getLeaderBoardData",{version:"1.3.9"})});var yz={};var ale,ule,gle,vle,yle,IO=T(()=>{"use strict";bx();ale=se(_x());kx();uo();xx();ule=se(Ox());Yc();dO();pO();mO();hO();gle=se(vO()),vle=se(_O()),yle=se(SO())});var EO=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[EO])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[EO]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(vx(),gx)),Promise.resolve().then(()=>(IO(),yz)),Promise.resolve().then(()=>(wt(),pv))]);e()});
|