@jolibox/implement 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var JP=Object.create;var ba=Object.defineProperty,HP=Object.defineProperties,VP=Object.getOwnPropertyDescriptor,$P=Object.getOwnPropertyDescriptors,WP=Object.getOwnPropertyNames,ya=Object.getOwnPropertySymbols,zP=Object.getPrototypeOf,Ol=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable;var fh=(e,t,r)=>t in e?ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Ol.call(t,r)&&fh(e,r,t[r]);if(ya)for(var r of ya(t))mh.call(t,r)&&fh(e,r,t[r]);return e},G=(e,t)=>HP(e,$P(t));var Qe=(e,t)=>{var r={};for(var n in e)Ol.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&mh.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hh=(e,t)=>{for(var r in t)ba(e,r,{get:t[r],enumerable:!0})},KP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of WP(t))!Ol.call(e,i)&&i!==r&&ba(e,i,{get:()=>t[i],enumerable:!(n=VP(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?JP(zP(e)):{},KP(t||!e||!e.__esModule?ba(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 tO(e){return!!(e!=null&&e.__nativeBuffers__)}function Ml(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!tO(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=rO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function iO(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:nO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function cO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function xh(e){return typeof e=="string"}function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function vh(e){return typeof e=="number"&&!isNaN(e)}function uO(e){return typeof e=="undefined"}function dO(e){return uO(e)||e===null}function Th(e){return typeof e=="function"}function pO(e){return Un(e)&&Th(e.then)}function Ph(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Mi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function bO(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 EO(){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 TO(e){return new Promise(t=>Oh(e)(t))}function Oh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function PO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Bi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function RO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)NO(e[n],t[n])}function NO(e,t){if(xh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Th(t)){try{if(e instanceof t)return}catch(r){}if(!dO(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 vt(e,t){if(jl.config[e]){Aa.warn(`[can i use] ${e} already registered`);return}jl.config[e]=ur({},t)}function _h(e,t){return`[${e}]:${t}`}function jO(e,t){wh||(Dl=new wa({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ll=new wa({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ql=new wa({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Dl.flush(),Ll.flush(),ql.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";Dl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(Ll.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),ql.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 HO(e,t){let r=0,n=!0,i=JO.resolveMap,o=jO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ul.forEach(c=>Ia(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),Ul.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=Ml(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new lO;if(i.set(r,m.resolve),!n&&qO.includes(c))return new Promise(C=>{Ul.push({method:c,args:l,resolve:C})});let v=ZP(ur({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!BO&&LO.includes(c),y=iO(l,b),w=b?y:JSON.stringify(y),I;if(c.endsWith("Sync")||UO.includes(c)?I=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof w=="string"?I=e.invoke(c,w,r):I=(u=e.call)==null?void 0:u.call(e,c,w,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=Ml(I)}catch(C){Aa.error(C)}return i.delete(r),I.errorCode&&(I.errorCode=_h(c,I.errorCode)),o(ur(ur({},v),I)),I}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=_h(c,C.errorCode)),o(ur(ur({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return pO(d)?d.then(u=>Sh(c,u)):Sh(c,d)},invokeHandler:a}}function Sh(e,t){if(!Un(t)){Aa.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=eO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new gO(n,i,o,a);return s}function VO(e){if(globalThis[_a])return globalThis[_a];let t=new Jl,r=new Jl,n=new wa({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[_a]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Ml(o),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===Rh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(ji.length),u,a)}catch(p){}});return}if(i.startsWith(ji)){r.emit(i.slice(ji.length),c,a);return}t.emit(i,c,a)}},globalThis[_a]}function $O(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(`${ji}${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(Rh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${ji}${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(MO,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 WO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=VO(e),{invokeNative:a,invokeHandler:s,applyNative:c}=HO(e,r),{publish:l,emitNative:d}=$O(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function Nh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var YP,QP,XP,Sa,Eh,Ah,gh,ur,ZP,eO,Ia,rO,nO,Ch,oO,aO,kh,sO,lO,fO,mO,Ea,hO,gO,vO,Rl,Aa,yh,yO,Fl,_O,jl,wO,SO,IO,qn,AO,uW,Bl,fe,CO,kO,Fi,Bi,Jl,Hl,xO,Nl,OO,dW,Vl,bh,pW,Ca,DO,ji,LO,qO,UO,Rh,MO,FO,wa,wh,Dl,Ll,ql,Ul,BO,$l,GO,JO,_a,Wl,Pt,Dh,Lh,zO,qh,Ih,me,M,be,Uh,KO,Mh,ka,fW,mW,ue=x(()=>{"use strict";YP=Object.defineProperty,QP=Object.defineProperties,XP=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Eh=Object.prototype.hasOwnProperty,Ah=Object.prototype.propertyIsEnumerable,gh=(e,t,r)=>t in e?YP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))Eh.call(t,r)&&gh(e,r,t[r]);if(Sa)for(var r of Sa(t))Ah.call(t,r)&&gh(e,r,t[r]);return e},ZP=(e,t)=>QP(e,XP(t)),eO=(e,t)=>{var r={};for(var n in e)Eh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&Ah.call(e,n)&&(r[n]=e[n]);return r},Ia=(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())});rO=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};nO=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)};Ch=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,aO=(e,t)=>{for(var r in t)Ch(e,r,{get:t[r],enumerable:!0})},kh=(e,t,r,n)=>{for(var i=n>1?void 0:n?oO(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&&Ch(t,r,i),i},sO=(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}lO=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))}})}};fO=(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))(fO||{}),mO=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}},Ea=class extends mO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},hO=class extends Ea{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},gO=class extends Ea{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},vO=class extends Ea{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Rl=class extends Ea{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Aa={log:Mi("log"),warn:Mi("warn"),info:Mi("info"),error:Mi("error"),debug:Mi("debug")};Object.assign(globalThis,{logger:Aa});yh=Symbol.for("Jolibox.canIUseMap"),yO={};globalThis[yh]||(globalThis[yh]=yO);Fl=Symbol.for("Jolibox.canIUseMap.native"),_O={};globalThis[Fl]||(globalThis[Fl]=_O);jl={get config(){return globalThis[Fl]}},wO=(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))(wO||{}),SO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(SO||{}),IO=(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))(IO||{});EO();qn=typeof window=="undefined",AO=()=>!qn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),uW={isiOS:!qn&&(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:!qn&&navigator.userAgent.includes("Android"),isMac:!qn&&navigator.userAgent.includes("Mac"),isFacebook:!qn&&navigator.userAgent.includes("FB_IAB"),isPC:!qn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Bl=class Gl{constructor(t){this.element=t,this.next=Gl.Undefined,this.prev=Gl.Undefined}};Bl.Undefined=new Bl(void 0);fe=Bl,CO=class{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){let t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new fe(e);if(this._first===fe.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!==fe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==fe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}},kO=0,Fi=class{constructor(e){this.value=e,this.id=kO++}},Bi=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 Fi&&(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 Fi(t);return this._listeners?this._listeners instanceof Fi?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 Fi)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 Fi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Jl=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new Bi,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 CO,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)}},Hl={};aO(Hl,{None:()=>xO,filter:()=>PO,once:()=>Oh,toPromise:()=>TO});xO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Nl=Symbol.for("Jolibox.hostEmitter"),OO=()=>{let e=new Jl;return globalThis[Nl]||(globalThis[Nl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Nl]},dW=OO();Vl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Bi,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 RO(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}};Vl=kh([Ph],Vl);bh=class{constructor(){this._onWillExecuteCommand=new Bi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Bi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Vl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=cO(3e4)),this._starActivation}executeCommand(e,...t){return sO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Hl.toPromise(Hl.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}}};bh=kh([Ph],bh);pW=Symbol.for("Jolibox.commands");vt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});vt("requestProductDetailsAsync",{version:102e4});vt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});vt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});vt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});vt("userTrackAsync",{version:1e6});vt("openMiniapp",{version:1050100});vt("requestCoinDetailsSync",{version:1070100});vt("requestCoinDetailsAsync",{version:1070100});vt("sendServerEventAsync",{version:1070100});vt("loadAdsAsync",{version:1070200});vt("showAdAsync",{version:1070200});vt("onJoliboxHideLoading",{version:1070300});Ca=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=jl.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=bO(i,o);if(!s)return!1;if(Un(s)){let c=s.version;return vh(c)?typeof a=="number"&&a>=c:!0}return vh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};DO=()=>AO(),ji="custom_event_",LO=[],qO=[],UO=["env","createRequestTask","login"],Rh="__batch_event__",MO="__native_batch_event__",FO=e=>e==="pv"?e:"default",wa=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=FO(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&&Un(a))throw new Rl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Un(a))c.push(...Object.keys(a));else if(xh(a)){if(i.length>0)throw new Rl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Rl(`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=Un(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;Ul=[],BO=!1,$l=Symbol.for("Jolibox.invokeResolverInstance"),GO=new Map;globalThis[$l]||(globalThis[$l]=GO);JO={get resolveMap(){return globalThis[$l]}};_a=Symbol.for("Jolibox.subscribeInstance");Pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Pt.trigger=e},onDoExit(e){Pt.exit=e},onDoBackPress(e){Pt.backPress=e}},Dh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new hO("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="")=>{Pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ia(void 0,null,function*(){let o=yield Pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Wl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Nh(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:Dh,doExit:r};globalThis.joliboxJSCore=ur({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ia(void 0,null,function*(){let a=yield Pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Wl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=Nh(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 Ia(this,null,function*(){let a=yield Pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Dh,doExit:n};globalThis.joliboxJSCore=ur({},i)}Lh=Wl;if(!Lh&&DO())throw new vO("No joliboxJScore is found, native bridge not found.");zO=ur({},Lh),qh=WO(zO),{invokeHandler:Ih}=qh,{applyNative:me,invokeNative:M,onNative:be,offNative:Uh,subscribeHandler:KO,publish:Mh,emitNative:ka,subscribe:fW,unsubscribe:mW}=qh;globalThis.joliboxJSBridge={callHandler:Ih,invokeHandler:Ih,subscribeHandler:KO}});function eR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ta(e){return new Promise(t=>setTimeout(t,e))}function $i(e){return typeof e=="string"}function on(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Vh(e){return typeof e=="object"&&Array.isArray(e)}function Pa(e){return typeof e=="number"&&!isNaN(e)}function qr(e){return e===!0||e===!1}function $h(e){return typeof e=="undefined"}function Wi(e){return $h(e)||e===null}function tR(e){return typeof e=="function"}function Wh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function zh(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:Bh(c)&&Bh(s)?i[a]=n(Jh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function Bh(e){return e&&typeof e=="object"&&e.constructor===Object}function Kh(e,t){if(Array.isArray(e))return e.concat(t)}function zi(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 nR(e,t){return(...r)=>t(e,...r)}function Mn(e){return t=>nR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vt(`${i}`))}})}function Gi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function eg(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 au(){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 lR(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 su(e){return lR("app","stg-app",e)}function jn(e){return`https://${su(e)}`}function fR(e){return new Promise(t=>ig(e)(t))}function ig(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function mR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Vi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function gR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)vR(e[n],t[n])}function vR(e,t){if($i(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(tR(t)){try{if(e instanceof t)return}catch(r){}if(!Wi(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 yR(){return typeof globalThis!="undefined"?globalThis[og]:void 0}function bR(e){typeof globalThis!="undefined"&&(globalThis[og]=e)}function z(e=!1){let t=yR();if(!e&&t)return t;let r=new xa,n=new Zl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return bR(i),i}var eu,YO,Fh,QO,XO,jh,Jh,ZO,Hh,nn,lt,rR,tu,Ki,ru,Yh,Vt,Oa,Qh,Ra,Xh,Zh,Yi,nu,$t,Kl,iR,iu,Gh,oR,W,ou,aR,Fn,Ji,Qi,sR,cR,tg,rg,ng,Ut,Yl,he,uR,dR,Hi,Vi,Wt,Xl,pR,zl,hR,_e,xa,Zl,og,R=x(()=>{"use strict";eu=Object.defineProperty,YO=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertySymbols,QO=Object.prototype.hasOwnProperty,XO=Object.prototype.propertyIsEnumerable,jh=(e,t,r)=>t in e?eu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jh=(e,t)=>{for(var r in t||(t={}))QO.call(t,r)&&jh(e,r,t[r]);if(Fh)for(var r of Fh(t))XO.call(t,r)&&jh(e,r,t[r]);return e},ZO=(e,t)=>{for(var r in t)eu(e,r,{get:t[r],enumerable:!0})},Hh=(e,t,r,n)=>{for(var i=n>1?void 0:n?YO(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&&eu(t,r,i),i},nn=(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}lt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};rR=(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))(rR||{}),tu=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}},Ki=class extends tu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ru=class extends tu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Yh=class extends ru{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vt=class extends ru{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))}},Oa=class extends ru{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Qh=class extends Ki{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Ra=class extends Ki{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))}},Xh=class extends Ki{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Zh=class extends Ki{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Yi=class extends tu{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}}},nu=class extends Ki{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};$t={log:Gi("log"),warn:Gi("warn"),info:Gi("info"),error:Gi("error"),debug:Gi("debug")};Object.assign(globalThis,{logger:$t});Kl=Symbol.for("Jolibox.canIUseMap"),iR={};globalThis[Kl]||(globalThis[Kl]=iR);iu={get config(){return globalThis[Kl]}},Gh=Symbol.for("Jolibox.canIUseMap.native"),oR={};globalThis[Gh]||(globalThis[Gh]=oR);W=(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))(W||{}),ou=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(ou||{}),aR=(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))(aR||{}),Fn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});au();Ji=typeof window=="undefined",Qi={isiOS:!Ji&&(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:!Ji&&navigator.userAgent.includes("Android"),isMac:!Ji&&navigator.userAgent.includes("Mac"),isFacebook:!Ji&&navigator.userAgent.includes("FB_IAB"),isPC:!Ji&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},sR="device_id",cR="advertising_id",tg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Fn()),window.__joliboxLocalStorage__.getItem(e)),rg=()=>new URLSearchParams(window.location.search).get("deviceId")||tg(sR),ng=()=>new URLSearchParams(window.location.search).get("advertisingId")||tg(cR);Ut=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=Jh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return nn(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=>nn(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 nn(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 nn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return nn(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 nn(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)}},Yl=class Ql{constructor(t){this.element=t,this.next=Ql.Undefined,this.prev=Ql.Undefined}};Yl.Undefined=new Yl(void 0);he=Yl,uR=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}},dR=0,Hi=class{constructor(e){this.value=e,this.id=dR++}},Vi=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 Hi&&(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 Hi(t);return this._listeners?this._listeners instanceof Hi?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 Hi)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 Hi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Wt=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 Vi,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 uR,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Xl={};ZO(Xl,{None:()=>pR,filter:()=>mR,once:()=>ig,toPromise:()=>fR});pR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});zl=Symbol.for("Jolibox.hostEmitter"),hR=()=>{let e=new Wt;return globalThis[zl]||(globalThis[zl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[zl]},_e=hR();xa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Vi,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 gR(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}};xa=Hh([Wh],xa);Zl=class{constructor(){this._onWillExecuteCommand=new Vi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Vi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new xa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=eR(3e4)),this._starActivation}executeCommand(e,...t){return nn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Xl.toPromise(Xl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Zl=Hh([Wh],Zl);og=Symbol.for("Jolibox.commands")});function Ee(e,t={}){cu.emit("ERROR_REPORT",{error:e,options:t})}var cu,an,yt=x(()=>{"use strict";R();R();cu=new Wt,an=new Wt;Ee.debounce=zi(Ee,50,{leading:!0})});var lu,_R,ag,sg,cg=x(()=>{"use strict";R();yt();lu=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{}}},_R=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ag=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:lu(o),payloadJson:lu(a),signature:lu(s)}}else throw"joli_source is missing"}catch(r){return Ee(new Qh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},sg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=_R(e),o=r[2];return`${n}.${i}.${o}`}return t}});var wR,uu,lg=x(()=>{"use strict";R();wR="1.3.8",uu=()=>wR});function pu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var SR,ug,du,dg,ge,IR,S,V=x(()=>{"use strict";R();cg();lg();R();SR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:rg(),adId:ng(),pixelRatio:window.devicePixelRatio||1,platform:Qi.isAndroid?"android":Qi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:uu()},schema:window.location.href,platform:Qi.isAndroid?"android":Qi.isiOS?"ios":"h5"},du=(ug=globalThis.joliboxJSCore)==null?void 0:ug.env,ge=Object.assign({},(dg=du==null?void 0:du())!=null?dg:SR);IR=()=>{var v,b,y,w,I,C,T,k,A,J,le;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?ag(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.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=(I=(w=ge.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?I:o.get("sessionId"))!=null?C:n,c=!!((k=(T=e==null?void 0:e.testAdsMode)!=null?T:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(le=(J=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?J:o.get("joliboxEnv"))!=null?le:"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:uu()},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=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,O;return(O=(N=ge.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return su(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return pu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":pu("gamedistribution","jolibox")?"gamedistribution":pu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var B,H,qt;let N=(B=ge.deviceInfo.pixelRatio)!=null?B:1,O=(H=ge.deviceInfo.statusBarHeight)!=null?H:e==null?void 0:e.__androidStatusBarHeight,F=(qt=ge.deviceInfo.navigationBarHeight)!=null?qt: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=ge.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{zh(ge,N,Kh)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?sg(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},S=IR()});var fu,fg,ER,AR,pg,CR,mg=x(()=>{"use strict";R();yt();V();R();fu=!1,fg=(e,t)=>e==null?!1:t in e,ER=e=>fg(e,"kind"),AR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},pg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:AR(e.name)},i=G(P({},n),{env:t.environment,isFromUser:r});r?an.emit("GLOBAL_USER_ERROR",e,i):an.emit("GLOBAL_ERROR",e,i)},CR=e=>fg(e,"kind")&&e.kind==="USER_ERROR";cu.on("ERROR_REPORT",({error:e,options:t})=>{if(fu)return;fu=!0;let r=ER(e)&&e.raw?e.raw:e;try{let n=CR(e);pg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new nu(`${i}, origin error: ${r.message}`);$t.error(o),pg(new nu(o.message),{environment:t.environment},!1)}finally{fu=!1}})});var Ge,mu,Ur=x(()=>{"use strict";yt();R();yt();Ge=(e,t)=>{var r,n;return new Yi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},mu=e=>new Yh(e)});var hg=x(()=>{"use strict";mg();Ur();R();ue();an.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};M("trackAsync",{event:"reportJsError",data:r})});an.on("GLOBAL_USER_ERROR",(e,t)=>{$t.log("UserError",e,t)})});var hu=x(()=>{"use strict"});function gg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Qe(l,["eventType"]),c=G(P({tag:n,eventType:o!=null?o:a!=null?a:W.Other},t),{extra:P({},s)});n=="globalJsError"?Ee(new Zh(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=zi(r,500,{leading:!0}),r}function vg(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=zi(t,500,{leading:!0}),t}var yg=x(()=>{"use strict";R();R();yt();V()});function bg(e,t){let r=gg(e,t),n=vg(r);return{track:r,trackPerformance:n}}var _g=x(()=>{"use strict";yg()});var wg=x(()=>{"use strict";V();R();R()});var Sg=x(()=>{"use strict";_g();hu();wg()});var Na,Ig=x(()=>{"use strict";Na=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 Da(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:jn(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return be("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 $t.warn("onRequestTaskStateChange unknown event",u)}),_e.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=kR(u,G(P({},p),{baseUrl:i})),{method:y="GET",responseType:w="text",dataType:I="json",timeout:C,enableCache:T=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),J={url:b,method:y,header:A,enableCache:T,responseType:w,appendHostCookie:k};if(y=="POST"||y=="PUT"){let B=TR(p.data,A["content-type"]);J.data=B}C&&Object.assign(J,{timeout:C});let{data:{requestTaskId:le}}=M(e,J);if(typeof le!="string")throw Ge({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new lt;n.set(le,{resolve:N,reject:O});try{let B=yield F,{data:H}=B;return I==="json"&&typeof H=="string"&&(H=xR(H)),{url:b,timeout:C,method:y,response:G(P({},B),{data:H})}}catch(B){let H=B;if(on(H)){let{errMsg:qt,prefetchDetail:ph,isPrefetch:Pl,errNo:va}=H;$i(qt)&&Ee(Ge({code:-1,msg:qt},{errNo:va,errMsg:qt}))}throw B}})}function xR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function TR(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 kR,gu=x(()=>{"use strict";R();ue();yt();Ur();V();kR=(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 vu,Eg,K,ut=x(()=>{"use strict";gu();V();R();vu={};(Eg=S.hostUserInfo)!=null&&Eg.token&&(vu["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(vu["x-joli-source"]=S.joliSource);K=Da("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:jn(S.testMode),defaultHeaders:vu})});function Ag(e){let t=iu.config[e];return t||(t={},iu.config[e]=t),(r,n)=>{if(t[r]){$t.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Cg=x(()=>{"use strict";R()});function yu(e){kg=e}function La(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>La(t)):Object.keys(e).reduce((t,r)=>(t[r]=La(e[r]),t),{})}function dr(e){return typeof e=="number"}function bu(e){let t=_u(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function _u(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var kg,ke,qa,Ua,Ma,Fa,Bn,ja,Ba,Ga,Ja,Ha,Va,$a,Wa,za,Ka,Ya,Qa,wu=x(()=>{"use strict";kg=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(kg)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 ${bu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return La(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:La(this._default)}optional(){return this._optional=!0,this}};qa=class extends ke{validate(t){return this._optional&&t===void 0?!0:dr(t)?dr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):dr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):dr(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}},Ua=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ma=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(dr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(dr(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}},Fa=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Bn=class extends ke{validate(t){return!0}},ja=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ba=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ga=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ja=class extends ke{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 ${bu(t)}`)}return!0}},Ha=class extends ke{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(dr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(dr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(dr(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}},Va=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(_u(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}},$a=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(_u(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}},Wa=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:bu(this.value),actual:r}):!0}},za=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
- or `);this.errors.push(o)}return n}},Ka=class extends ke{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}},Ya=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Qa=class extends ke{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 Su(e,t,r="param"){if(e.errors=[],e.path=r,yu(!0),!e.validate(t)){let n=e.errors.join(`
3
- `);throw e.errors.length=0,yu(!1),new TypeError(n)}}var E,Iu=x(()=>{"use strict";wu();wu();E={object(e){return new $a(e)},array(e){return new Ha(e)},tuple(...e){return new Ka(...e)},literal(e){return new Wa(e)},or(...e){return new za(...e)},symbol(){return new Fa},record(e){return new Va(e)},function(){return new Ga},boolean(){return new Ua},string(){return new Ma},number(){return new qa},undefined(){return new ja},null(){return new Ba},unknown(){return new Bn},any(){return new Bn},as(){return new Bn},arraybuffer(){return new Ya},enum(...e){return new Ja(...e)},typedarray(e){return new Qa(e)}}});var Xa,xg,Tg=x(()=>{"use strict";R();yt();Iu();Ur();Xa=1,xg=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Xa};Xa+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Su(i.paramsSchema,o,"params")}catch(w){throw mu(`${n}:fail ${w.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:w,data:I,message:C}=v;c=w,b=I,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?/,"")}`,Ee(new Yi(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=Vh(o)?o:[o],s=Date.now(),c={method:n,trace_id:Xa};Xa+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{Su(i.paramsSchema,a,"params")}catch(w){throw mu(w.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:w,data:I,message:C}=y;d=w,l=C,y=I}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,w=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let I=(v=(m=y.message)!=null?m:y.errMsg)!=null?v:`${b}`,C=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:C}),Ee(new Yi(C,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var xe,Za=x(()=>{"use strict";V();ue();({canIUseNative:xe}=Ca(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform))});function Eu(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 Pg=x(()=>{"use strict"});var ie,Y,D,Je=x(()=>{"use strict";Cg();bt();Tg();Iu();Za();Pg();({createAPI:ie,createSyncAPI:Y}=xg(j)),D=Ag("native")});function Og(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),LR.includes(t)?t:""}function Rg(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 Ng(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 es,OR,RR,NR,DR,G6,J6,LR,Mr,_t,Xi=x(()=>{"use strict";Je();ue();R();ut();V();es=z(),OR=ie("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return g(this,null,function*(){let{response:t}=yield K(`/api/games/user-storage/${S.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 me("getLocalStorageAsync",{key:e}),s=Rg(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}}})}});es.registerCommand("StorageSDK.getItem",OR);D("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});RR=ie("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return g(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield K(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Og(t),c=Ng(t,s);return yield me("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});es.registerCommand("StorageSDK.setItem",RR);D("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});NR=ie("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return g(this,null,function*(){let t=S.mpId,{response:r}=yield K(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});es.registerCommand("StorageSDK.removeItem",NR);D("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});DR=ie("clearStorage",{implement(){return g(this,null,function*(){let e=S.mpId,{response:t}=yield K(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});me("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});es.registerCommand("StorageSDK.clear",DR);D("storage.clear",{version:"1.0.0"});G6=ie("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});D("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});J6=Y("getStorageInfoSync",{implement(){return M("getStorageInfoSync")}}),LR=["string","number","boolean","object",""];Mr=ie("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Rg(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),_t=ie("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return g(this,null,function*(){try{let r=Og(t),n=Ng(t,r);return yield me("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 Dg,ts,Lg=x(()=>{"use strict";V();Ig();R();ut();ue();Xi();Za();Dg="REPORT_FIRST_OPEN_GAME",ts=class extends Na{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r,this.taskUrl=jn(S.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 me("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(){Mr(Dg).then(r=>{qr(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),_t(Dg,!0)})}createTask(r){return xe("sendServerEventAsync")?me("sendServerEventAsync",{payload:r}):S.platform==="android"?K("/api/base/app-event",{method:"POST",data:r}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var jg={};hh(jg,{nativeTaskEmitter:()=>Zi,taskTracker:()=>wt,track:()=>j,trackPerformance:()=>Mg});var qR,qg,Ug,j,Mg,Fg,Zi,wt,bt=x(()=>{"use strict";hg();R();hu();Sg();V();Lg();ue();qR=(e,t,r)=>{var l,d,u,p,f,m,v;let n=t,i=on(n.extra)?n.extra:$i(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=S.mpInfo)!=null?l:{},s=P(P(G(P({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:W.Other;M("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:Mg}=bg(qR,{type:ou.AppSDK,platform:"native",jssdk_version:(Ug=(qg=S.sdkInfo)==null?void 0:qg.jssdkVersion)!=null?Ug:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Fg=z();Fg.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Mg(e,t,r)});Fg.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});Zi=new Wt,wt=new ts(j,Zi)});function Bg(){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=`
1
+ var HP=Object.create;var wa=Object.defineProperty,VP=Object.defineProperties,$P=Object.getOwnPropertyDescriptor,WP=Object.getOwnPropertyDescriptors,zP=Object.getOwnPropertyNames,_a=Object.getOwnPropertySymbols,KP=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable;var fh=(e,t,r)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Rl.call(t,r)&&fh(e,r,t[r]);if(_a)for(var r of _a(t))mh.call(t,r)&&fh(e,r,t[r]);return e},B=(e,t)=>VP(e,WP(t));var Qe=(e,t)=>{var r={};for(var n in e)Rl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&mh.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hh=(e,t)=>{for(var r in t)wa(e,r,{get:t[r],enumerable:!0})},YP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zP(t))!Rl.call(e,i)&&i!==r&&wa(e,i,{get:()=>t[i],enumerable:!(n=$P(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?HP(KP(e)):{},YP(t||!e||!e.__esModule?wa(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 rO(e){return!!(e!=null&&e.__nativeBuffers__)}function Fl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!rO(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=nO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function oO(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:iO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function lO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function xh(e){return typeof e=="string"}function Mn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function vh(e){return typeof e=="number"&&!isNaN(e)}function dO(e){return typeof e=="undefined"}function pO(e){return dO(e)||e===null}function Th(e){return typeof e=="function"}function fO(e){return Mn(e)&&Th(e.then)}function Ph(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ji(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function _O(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 AO(){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 PO(e){return new Promise(t=>Oh(e)(t))}function Oh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function OO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ji(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function NO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)DO(e[n],t[n])}function DO(e,t){if(xh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Th(t)){try{if(e instanceof t)return}catch(r){}if(!pO(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 yt(e,t){if(Bl.config[e]){ka.warn(`[can i use] ${e} already registered`);return}Bl.config[e]=ur({},t)}function _h(e,t){return`[${e}]:${t}`}function BO(e,t){wh||(Ll=new Ia({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 Ia({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ul=new Ia({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ll.flush(),ql.flush(),Ul.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";Ll.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))}),Ul.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 VO(e,t){let r=0,n=!0,i=HO.resolveMap,o=BO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ml.forEach(c=>Aa(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),Ml.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=Fl(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new uO;if(i.set(r,m.resolve),!n&&UO.includes(c))return new Promise(C=>{Ml.push({method:c,args:l,resolve:C})});let v=eO(ur({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!GO&&qO.includes(c),y=oO(l,b),w=b?y:JSON.stringify(y),E;if(c.endsWith("Sync")||MO.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof w=="string"?E=e.invoke(c,w,r):E=(u=e.call)==null?void 0:u.call(e,c,w,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=Fl(E)}catch(C){ka.error(C)}return i.delete(r),E.errorCode&&(E.errorCode=_h(c,E.errorCode)),o(ur(ur({},v),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=_h(c,C.errorCode)),o(ur(ur({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return fO(d)?d.then(u=>Sh(c,u)):Sh(c,d)},invokeHandler:a}}function Sh(e,t){if(!Mn(t)){ka.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=tO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new vO(n,i,o,a);return s}function $O(e){if(globalThis[Sa])return globalThis[Sa];let t=new Hl,r=new Hl,n=new Ia({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[Sa]={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=Fl(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===Rh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Gi.length),u,a)}catch(p){}});return}if(i.startsWith(Gi)){r.emit(i.slice(Gi.length),c,a);return}t.emit(i,c,a)}},globalThis[Sa]}function WO(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(`${Gi}${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(Rh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Gi}${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(FO,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 zO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=$O(e),{invokeNative:a,invokeHandler:s,applyNative:c}=VO(e,r),{publish:l,emitNative:d}=WO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function Nh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var QP,XP,ZP,Ea,Eh,Ah,gh,ur,eO,tO,Aa,nO,iO,Ch,aO,sO,kh,cO,uO,mO,hO,Ca,gO,vO,yO,Nl,ka,yh,bO,jl,wO,Bl,SO,IO,EO,Un,CO,mW,Gl,fe,kO,xO,Bi,Ji,Hl,Vl,TO,Dl,RO,hW,$l,bh,gW,xa,LO,Gi,qO,UO,MO,Rh,FO,jO,Ia,wh,Ll,ql,Ul,Ml,GO,Wl,JO,HO,Sa,zl,Pt,Dh,Lh,KO,qh,Ih,me,M,be,Uh,YO,Mh,Ta,vW,yW,ue=x(()=>{"use strict";QP=Object.defineProperty,XP=Object.defineProperties,ZP=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Eh=Object.prototype.hasOwnProperty,Ah=Object.prototype.propertyIsEnumerable,gh=(e,t,r)=>t in e?QP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))Eh.call(t,r)&&gh(e,r,t[r]);if(Ea)for(var r of Ea(t))Ah.call(t,r)&&gh(e,r,t[r]);return e},eO=(e,t)=>XP(e,ZP(t)),tO=(e,t)=>{var r={};for(var n in e)Eh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ea)for(var n of Ea(e))t.indexOf(n)<0&&Ah.call(e,n)&&(r[n]=e[n]);return r},Aa=(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())});nO=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};iO=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)};Ch=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,sO=(e,t)=>{for(var r in t)Ch(e,r,{get:t[r],enumerable:!0})},kh=(e,t,r,n)=>{for(var i=n>1?void 0:n?aO(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&&Ch(t,r,i),i},cO=(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}uO=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))}})}};mO=(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))(mO||{}),hO=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}},Ca=class extends hO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},gO=class extends Ca{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},vO=class extends Ca{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},yO=class extends Ca{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Nl=class extends Ca{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ka={log:ji("log"),warn:ji("warn"),info:ji("info"),error:ji("error"),debug:ji("debug")};Object.assign(globalThis,{logger:ka});yh=Symbol.for("Jolibox.canIUseMap"),bO={};globalThis[yh]||(globalThis[yh]=bO);jl=Symbol.for("Jolibox.canIUseMap.native"),wO={};globalThis[jl]||(globalThis[jl]=wO);Bl={get config(){return globalThis[jl]}},SO=(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))(SO||{}),IO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(IO||{}),EO=(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))(EO||{});AO();Un=typeof window=="undefined",CO=()=>!Un&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),mW={isiOS:!Un&&(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:!Un&&navigator.userAgent.includes("Android"),isMac:!Un&&navigator.userAgent.includes("Mac"),isFacebook:!Un&&navigator.userAgent.includes("FB_IAB"),isPC:!Un&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Gl=class Jl{constructor(t){this.element=t,this.next=Jl.Undefined,this.prev=Jl.Undefined}};Gl.Undefined=new Gl(void 0);fe=Gl,kO=class{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){let t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new fe(e);if(this._first===fe.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!==fe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==fe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}},xO=0,Bi=class{constructor(e){this.value=e,this.id=xO++}},Ji=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 Bi&&(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 Bi(t);return this._listeners?this._listeners instanceof Bi?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 Bi)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 Bi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Hl=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 Ji,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 kO,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)}},Vl={};sO(Vl,{None:()=>TO,filter:()=>OO,once:()=>Oh,toPromise:()=>PO});TO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Dl=Symbol.for("Jolibox.hostEmitter"),RO=()=>{let e=new Hl;return globalThis[Dl]||(globalThis[Dl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Dl]},hW=RO();$l=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ji,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 NO(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}};$l=kh([Ph],$l);bh=class{constructor(){this._onWillExecuteCommand=new Ji,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ji,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new $l,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=lO(3e4)),this._starActivation}executeCommand(e,...t){return cO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Vl.toPromise(Vl.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}}};bh=kh([Ph],bh);gW=Symbol.for("Jolibox.commands");yt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});yt("requestProductDetailsAsync",{version:102e4});yt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});yt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});yt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});yt("userTrackAsync",{version:1e6});yt("openMiniapp",{version:1050100});yt("requestCoinDetailsSync",{version:1070100});yt("requestCoinDetailsAsync",{version:1070100});yt("sendServerEventAsync",{version:1070100});yt("loadAdsAsync",{version:1070200});yt("showAdAsync",{version:1070200});yt("onJoliboxHideLoading",{version:1070300});xa=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Bl.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=_O(i,o);if(!s)return!1;if(Mn(s)){let c=s.version;return vh(c)?typeof a=="number"&&a>=c:!0}return vh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};LO=()=>CO(),Gi="custom_event_",qO=[],UO=[],MO=["env","createRequestTask","login"],Rh="__batch_event__",FO="__native_batch_event__",jO=e=>e==="pv"?e:"default",Ia=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=jO(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&&Mn(a))throw new Nl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Mn(a))c.push(...Object.keys(a));else if(xh(a)){if(i.length>0)throw new Nl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Nl(`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=Mn(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;Ml=[],GO=!1,Wl=Symbol.for("Jolibox.invokeResolverInstance"),JO=new Map;globalThis[Wl]||(globalThis[Wl]=JO);HO={get resolveMap(){return globalThis[Wl]}};Sa=Symbol.for("Jolibox.subscribeInstance");Pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Pt.trigger=e},onDoExit(e){Pt.exit=e},onDoBackPress(e){Pt.backPress=e}},Dh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new gO("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="")=>{Pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Aa(void 0,null,function*(){let o=yield Pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});zl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Nh(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:Dh,doExit:r};globalThis.joliboxJSCore=ur({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Aa(void 0,null,function*(){let a=yield Pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});zl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=Nh(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 Aa(this,null,function*(){let a=yield Pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Dh,doExit:n};globalThis.joliboxJSCore=ur({},i)}Lh=zl;if(!Lh&&LO())throw new yO("No joliboxJScore is found, native bridge not found.");KO=ur({},Lh),qh=zO(KO),{invokeHandler:Ih}=qh,{applyNative:me,invokeNative:M,onNative:be,offNative:Uh,subscribeHandler:YO,publish:Mh,emitNative:Ta,subscribe:vW,unsubscribe:yW}=qh;globalThis.joliboxJSBridge={callHandler:Ih,invokeHandler:Ih,subscribeHandler:YO}});function tR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Oa(e){return new Promise(t=>setTimeout(t,e))}function zi(e){return typeof e=="string"}function on(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Vh(e){return typeof e=="object"&&Array.isArray(e)}function Ra(e){return typeof e=="number"&&!isNaN(e)}function qr(e){return e===!0||e===!1}function $h(e){return typeof e=="undefined"}function Ki(e){return $h(e)||e===null}function rR(e){return typeof e=="function"}function Wh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function zh(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:Bh(c)&&Bh(s)?i[a]=n(Jh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function Bh(e){return e&&typeof e=="object"&&e.constructor===Object}function Kh(e,t){if(Array.isArray(e))return e.concat(t)}function Yi(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 iR(e,t){return(...r)=>t(e,...r)}function Fn(e){return t=>iR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vt(`${i}`))}})}function Hi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function eg(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 su(){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 uR(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 cu(e){return uR("app","stg-app",e)}function Bn(e){return`https://${cu(e)}`}function mR(e){return new Promise(t=>ig(e)(t))}function ig(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function hR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Wi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function vR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)yR(e[n],t[n])}function yR(e,t){if(zi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(rR(t)){try{if(e instanceof t)return}catch(r){}if(!Ki(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 bR(){return typeof globalThis!="undefined"?globalThis[og]:void 0}function _R(e){typeof globalThis!="undefined"&&(globalThis[og]=e)}function z(e=!1){let t=bR();if(!e&&t)return t;let r=new Pa,n=new eu,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 _R(i),i}var tu,QO,Fh,XO,ZO,jh,Jh,eR,Hh,nn,ut,nR,ru,Qi,nu,Yh,Vt,Na,Qh,Da,Xh,Zh,Xi,iu,$t,Yl,oR,ou,Gh,aR,W,au,sR,jn,Vi,Zi,cR,lR,tg,rg,ng,Ut,Ql,he,dR,pR,$i,Wi,Wt,Zl,fR,Kl,gR,_e,Pa,eu,og,R=x(()=>{"use strict";tu=Object.defineProperty,QO=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertySymbols,XO=Object.prototype.hasOwnProperty,ZO=Object.prototype.propertyIsEnumerable,jh=(e,t,r)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jh=(e,t)=>{for(var r in t||(t={}))XO.call(t,r)&&jh(e,r,t[r]);if(Fh)for(var r of Fh(t))ZO.call(t,r)&&jh(e,r,t[r]);return e},eR=(e,t)=>{for(var r in t)tu(e,r,{get:t[r],enumerable:!0})},Hh=(e,t,r,n)=>{for(var i=n>1?void 0:n?QO(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&&tu(t,r,i),i},nn=(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}ut=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))}})}};nR=(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))(nR||{}),ru=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}},Qi=class extends ru{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},nu=class extends ru{constructor(){super(...arguments),this.kind="USER_ERROR"}},Yh=class extends nu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vt=class extends nu{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))}},Na=class extends nu{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Qh=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Da=class extends Qi{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))}},Xh=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Zh=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Xi=class extends ru{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}}},iu=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};$t={log:Hi("log"),warn:Hi("warn"),info:Hi("info"),error:Hi("error"),debug:Hi("debug")};Object.assign(globalThis,{logger:$t});Yl=Symbol.for("Jolibox.canIUseMap"),oR={};globalThis[Yl]||(globalThis[Yl]=oR);ou={get config(){return globalThis[Yl]}},Gh=Symbol.for("Jolibox.canIUseMap.native"),aR={};globalThis[Gh]||(globalThis[Gh]=aR);W=(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))(W||{}),au=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(au||{}),sR=(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))(sR||{}),jn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});su();Vi=typeof window=="undefined",Zi={isiOS:!Vi&&(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:!Vi&&navigator.userAgent.includes("Android"),isMac:!Vi&&navigator.userAgent.includes("Mac"),isFacebook:!Vi&&navigator.userAgent.includes("FB_IAB"),isPC:!Vi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},cR="device_id",lR="advertising_id",tg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,jn()),window.__joliboxLocalStorage__.getItem(e)),rg=()=>new URLSearchParams(window.location.search).get("deviceId")||tg(cR),ng=()=>new URLSearchParams(window.location.search).get("advertisingId")||tg(lR);Ut=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=Jh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return nn(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=>nn(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 nn(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 nn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return nn(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 nn(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)}},Ql=class Xl{constructor(t){this.element=t,this.next=Xl.Undefined,this.prev=Xl.Undefined}};Ql.Undefined=new Ql(void 0);he=Ql,dR=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}},pR=0,$i=class{constructor(e){this.value=e,this.id=pR++}},Wi=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 $i&&(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 $i(t);return this._listeners?this._listeners instanceof $i?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 $i)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 $i?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Wt=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 Wi,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 dR,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)}},Zl={};eR(Zl,{None:()=>fR,filter:()=>hR,once:()=>ig,toPromise:()=>mR});fR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Kl=Symbol.for("Jolibox.hostEmitter"),gR=()=>{let e=new Wt;return globalThis[Kl]||(globalThis[Kl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Kl]},_e=gR();Pa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Wi,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 vR(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}};Pa=Hh([Wh],Pa);eu=class{constructor(){this._onWillExecuteCommand=new Wi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Wi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Pa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=tR(3e4)),this._starActivation}executeCommand(e,...t){return nn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Zl.toPromise(Zl.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}}};eu=Hh([Wh],eu);og=Symbol.for("Jolibox.commands")});function Ee(e,t={}){lu.emit("ERROR_REPORT",{error:e,options:t})}var lu,an,bt=x(()=>{"use strict";R();R();lu=new Wt,an=new Wt;Ee.debounce=Yi(Ee,50,{leading:!0})});var uu,wR,ag,sg,cg=x(()=>{"use strict";R();bt();uu=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{}}},wR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ag=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:uu(o),payloadJson:uu(a),signature:uu(s)}}else throw"joli_source is missing"}catch(r){return Ee(new Qh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},sg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=wR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var SR,du,lg=x(()=>{"use strict";R();SR="1.3.9",du=()=>SR});function fu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var IR,ug,pu,dg,ge,ER,S,V=x(()=>{"use strict";R();cg();lg();R();IR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:rg(),adId:ng(),pixelRatio:window.devicePixelRatio||1,platform:Zi.isAndroid?"android":Zi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:du()},schema:window.location.href,platform:Zi.isAndroid?"android":Zi.isiOS?"ios":"h5"},pu=(ug=globalThis.joliboxJSCore)==null?void 0:ug.env,ge=Object.assign({},(dg=pu==null?void 0:pu())!=null?dg:IR);ER=()=>{var v,b,y,w,E,C,T,k,A,J,le;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?ag(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.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=(w=ge.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?C:n,c=!!((k=(T=e==null?void 0:e.testAdsMode)!=null?T:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(le=(J=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?J:o.get("joliboxEnv"))!=null?le:"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:du()},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=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,O;return(O=(N=ge.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return cu(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return fu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":fu("gamedistribution","jolibox")?"gamedistribution":fu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var G,H,qt;let N=(G=ge.deviceInfo.pixelRatio)!=null?G:1,O=(H=ge.deviceInfo.statusBarHeight)!=null?H:e==null?void 0:e.__androidStatusBarHeight,F=(qt=ge.deviceInfo.navigationBarHeight)!=null?qt: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=ge.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{zh(ge,N,Kh)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?sg(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},S=ER()});var mu,fg,AR,CR,pg,kR,mg=x(()=>{"use strict";R();bt();V();R();mu=!1,fg=(e,t)=>e==null?!1:t in e,AR=e=>fg(e,"kind"),CR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},pg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:CR(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?an.emit("GLOBAL_USER_ERROR",e,i):an.emit("GLOBAL_ERROR",e,i)},kR=e=>fg(e,"kind")&&e.kind==="USER_ERROR";lu.on("ERROR_REPORT",({error:e,options:t})=>{if(mu)return;mu=!0;let r=AR(e)&&e.raw?e.raw:e;try{let n=kR(e);pg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new iu(`${i}, origin error: ${r.message}`);$t.error(o),pg(new iu(o.message),{environment:t.environment},!1)}finally{mu=!1}})});var je,hu,Ur=x(()=>{"use strict";bt();R();bt();je=(e,t)=>{var r,n;return new Xi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},hu=e=>new Yh(e)});var hg=x(()=>{"use strict";mg();Ur();R();ue();an.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};M("trackAsync",{event:"reportJsError",data:r})});an.on("GLOBAL_USER_ERROR",(e,t)=>{$t.log("UserError",e,t)})});var gu=x(()=>{"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:W.Other},t),{extra:P({},s)});n=="globalJsError"?Ee(new Zh(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=Yi(r,500,{leading:!0}),r}function vg(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=Yi(t,500,{leading:!0}),t}var yg=x(()=>{"use strict";R();R();bt();V()});function bg(e,t){let r=gg(e,t),n=vg(r);return{track:r,trackPerformance:n}}var _g=x(()=>{"use strict";yg()});var wg=x(()=>{"use strict";V();R();R()});var Sg=x(()=>{"use strict";_g();gu();wg()});var La,Ig=x(()=>{"use strict";La=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 qa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Bn(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return be("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 $t.warn("onRequestTaskStateChange unknown event",u)}),_e.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=xR(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:w="text",dataType:E="json",timeout:C,enableCache:T=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),J={url:b,method:y,header:A,enableCache:T,responseType:w,appendHostCookie:k};if(y=="POST"||y=="PUT"){let G=PR(p.data,A["content-type"]);J.data=G}C&&Object.assign(J,{timeout:C});let{data:{requestTaskId:le}}=M(e,J);if(typeof le!="string")throw je({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new ut;n.set(le,{resolve:N,reject:O});try{let G=yield F,{data:H}=G;return E==="json"&&typeof H=="string"&&(H=TR(H)),{url:b,timeout:C,method:y,response:B(P({},G),{data:H})}}catch(G){let H=G;if(on(H)){let{errMsg:qt,prefetchDetail:ph,isPrefetch:Ol,errNo:ba}=H;zi(qt)&&Ee(je({code:-1,msg:qt},{errNo:ba,errMsg:qt}))}throw G}})}function TR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function PR(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 xR,vu=x(()=>{"use strict";R();ue();bt();Ur();V();xR=(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 yu,Eg,K,dt=x(()=>{"use strict";vu();V();R();yu={};(Eg=S.hostUserInfo)!=null&&Eg.token&&(yu["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(yu["x-joli-source"]=S.joliSource);K=qa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Bn(S.testMode),defaultHeaders:yu})});function Ag(e){let t=ou.config[e];return t||(t={},ou.config[e]=t),(r,n)=>{if(t[r]){$t.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Cg=x(()=>{"use strict";R()});function bu(e){kg=e}function Ua(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ua(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ua(e[r]),t),{})}function dr(e){return typeof e=="number"}function _u(e){let t=wu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function wu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var kg,ke,Ma,Fa,ja,Ba,Gn,Ga,Ja,Ha,Va,$a,Wa,za,Ka,Ya,Qa,Xa,Za,Su=x(()=>{"use strict";kg=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(kg)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 ${_u(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ua(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ua(this._default)}optional(){return this._optional=!0,this}};Ma=class extends ke{validate(t){return this._optional&&t===void 0?!0:dr(t)?dr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):dr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):dr(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}},Fa=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ja=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(dr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(dr(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}},Ba=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Gn=class extends ke{validate(t){return!0}},Ga=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ja=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ha=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Va=class extends ke{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 ${_u(t)}`)}return!0}},$a=class extends ke{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(dr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(dr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(dr(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}},Wa=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(wu(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}},za=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(wu(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}},Ka=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:_u(this.value),actual:r}):!0}},Ya=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
+ or `);this.errors.push(o)}return n}},Qa=class extends ke{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}},Xa=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Za=class extends ke{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 Iu(e,t,r="param"){if(e.errors=[],e.path=r,bu(!0),!e.validate(t)){let n=e.errors.join(`
3
+ `);throw e.errors.length=0,bu(!1),new TypeError(n)}}var I,Eu=x(()=>{"use strict";Su();Su();I={object(e){return new za(e)},array(e){return new $a(e)},tuple(...e){return new Qa(...e)},literal(e){return new Ka(e)},or(...e){return new Ya(...e)},symbol(){return new Ba},record(e){return new Wa(e)},function(){return new Ha},boolean(){return new Fa},string(){return new ja},number(){return new Ma},undefined(){return new Ga},null(){return new Ja},unknown(){return new Gn},any(){return new Gn},as(){return new Gn},arraybuffer(){return new Xa},enum(...e){return new Va(...e)},typedarray(e){return new Za(e)}}});var es,xg,Tg=x(()=>{"use strict";R();bt();Eu();Ur();es=1,xg=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:es};es+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Iu(i.paramsSchema,o,"params")}catch(w){throw hu(`${n}:fail ${w.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:w,data:E,message:C}=v;c=w,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?/,"")}`,Ee(new Xi(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=Vh(o)?o:[o],s=Date.now(),c={method:n,trace_id:es};es+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{Iu(i.paramsSchema,a,"params")}catch(w){throw hu(w.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:w,data:E,message:C}=y;d=w,l=C,y=E}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,w=(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}),Ee(new Xi(C,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var xe,ts=x(()=>{"use strict";V();ue();({canIUseNative:xe}=xa(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform))});function Au(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 Pg=x(()=>{"use strict"});var Y,Q,D,Je=x(()=>{"use strict";Cg();_t();Tg();Eu();ts();Pg();({createAPI:Y,createSyncAPI:Q}=xg(j)),D=Ag("native")});function Og(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),qR.includes(t)?t:""}function Rg(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 Ng(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 rs,RR,NR,DR,LR,$6,W6,qR,Mr,wt,eo=x(()=>{"use strict";Je();ue();R();dt();V();rs=z(),RR=Y("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let{response:t}=yield K(`/api/games/user-storage/${S.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 me("getLocalStorageAsync",{key:e}),s=Rg(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}}})}});rs.registerCommand("StorageSDK.getItem",RR);D("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});NR=Y("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return g(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield K(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Og(t),c=Ng(t,s);return yield me("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});rs.registerCommand("StorageSDK.setItem",NR);D("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});DR=Y("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let t=S.mpId,{response:r}=yield K(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});rs.registerCommand("StorageSDK.removeItem",DR);D("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});LR=Y("clearStorage",{implement(){return g(this,null,function*(){let e=S.mpId,{response:t}=yield K(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});me("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});rs.registerCommand("StorageSDK.clear",LR);D("storage.clear",{version:"1.0.0"});$6=Y("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});D("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});W6=Q("getStorageInfoSync",{implement(){return M("getStorageInfoSync")}}),qR=["string","number","boolean","object",""];Mr=Y("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Rg(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),wt=Y("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return g(this,null,function*(){try{let r=Og(t),n=Ng(t,r);return yield me("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 Dg,ns,Lg=x(()=>{"use strict";V();Ig();R();dt();ue();eo();ts();Dg="REPORT_FIRST_OPEN_GAME",ns=class extends La{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r,this.taskUrl=Bn(S.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 me("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(){Mr(Dg).then(r=>{qr(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),wt(Dg,!0)})}createTask(r){return xe("sendServerEventAsync")?me("sendServerEventAsync",{payload:r}):S.platform==="android"?K("/api/base/app-event",{method:"POST",data:r}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var jg={};hh(jg,{nativeTaskEmitter:()=>to,taskTracker:()=>ot,track:()=>j,trackPerformance:()=>Mg});var UR,qg,Ug,j,Mg,Fg,to,ot,_t=x(()=>{"use strict";hg();R();gu();Sg();V();Lg();ue();UR=(e,t,r)=>{var l,d,u,p,f,m,v;let n=t,i=on(n.extra)?n.extra:zi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=S.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:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:W.Other;M("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:Mg}=bg(UR,{type:au.AppSDK,platform:"native",jssdk_version:(Ug=(qg=S.sdkInfo)==null?void 0:qg.jssdkVersion)!=null?Ug:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Fg=z();Fg.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Mg(e,t,r)});Fg.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});to=new Wt,ot=new ns(j,to)});function Bg(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
4
4
  html[data-jolibox-root] {
5
5
  height: 100%;
6
6
  margin: 0;
@@ -18,14 +18,14 @@ or `);this.errors.push(o)}return n}},Ka=class extends ke{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}=S.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 Gg=x(()=>{"use strict";V()});var Jg=x(()=>{"use strict"});var Hg=x(()=>{"use strict";R();au()});var Vg=x(()=>{"use strict";V()});var sn,rs=x(()=>{"use strict";Jg();Hg();V();Vg();R();sn=new Wt});function pr(e,t){for(var r in t)e[r]=t[r];return e}function Pu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Xe(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?as.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 is(e,a,n,i,null)}function is(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?++Kg:i,__i:-1,__u:0};return i==null&&L.vnode!=null&&L.vnode(o),o}function He(e){return e.children}function St(e,t){this.props=e,this.context=t}function Gn(e,t){if(t==null)return e.__?Gn(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"?Gn(e):null}function tv(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 tv(e)}}function ku(e){(!e.__d&&(e.__d=!0)&&cn.push(e)&&!os.__r++||$g!==L.debounceRendering)&&(($g=L.debounceRendering)||Yg)(os)}function os(){for(var e,t,r,n,i,o,a,s=1;cn.length;)cn.length>s&&cn.sort(Qg),e=cn.shift(),s=cn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,L.vnode&&L.vnode(r),Ou(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Gn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,iv(o,r,a),r.__e!=i&&tv(r)));os.__r=0}function rv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||ev,w=t.length;for(c=MR(r,t,y,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?eo:y[f.__i]||eo,f.__i=u,b=Ou(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ru(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=nv(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 MR(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?is(null,a,null,null,null):to(a)?is(He,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?is(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=FR(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=Gn(s)),av(s,s));return n}function nv(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=nv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Gn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ro(e,t){return t=t||[],e==null||typeof e=="boolean"||(to(e)?e.some(function(r){ro(r,t)}):t.push(e)),t}function FR(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 Wg(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||UR.test(t)?r:r+"px"}function ns(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||Wg(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wg(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Xg,"$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=Tu,e.addEventListener(t,o?Cu:Au,o)):e.removeEventListener(t,o?Cu:Au,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 zg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Tu++;else if(t.u<r.t)return;return r(L.event?L.event(t):t)}}}function Ou(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,w,I,C,T,k,A,J,le,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=L.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,w="prototype"in O&&O.prototype.render,I=(d=O.contextType)&&n[d.__c],C=d?I?I.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new O(y,C):(t.__c=u=new St(y,C),u.constructor=O,u.render=BR),I&&I.sub(u),u.props=y,u.state||(u.state={}),u.context=C,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=pr({},u.__s)),pr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&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)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),w&&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=L.__r,A=0,w){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);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=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===He&&d.key==null&&(le=ov(d.props.children)),s=rv(e,to(le)?le:[le],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--;)Pu(o[N]);else t.__e=r.__e,t.__k=r.__k;L.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=jR(r.__e,t,r,n,i,o,a,c,l);return(d=L.diffed)&&d(t),128&t.__u?void 0:s}function iv(e,t,r){for(var n=0;n<r.length;n++)Ru(r[n],r[++n],r[++n]);L.__c&&L.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){L.__e(o,i.__v)}})}function ov(e){return typeof e!="object"||e==null?e:to(e)?e.map(ov):pr({},e)}function jR(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(y);e=document.createElementNS(i,w,y.is&&y),s&&(L.__m&&L.__m(t,o),s=!1),o=null}if(w===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&as.call(e.childNodes),b=r.props||eo,!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;ns(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||ns(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=""),rv(t.type==="template"?e.content:e,to(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Gn(r,0),s,c),o!=null)for(l=o.length;l--;)Pu(o[l]);s||(l="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||w=="progress"&&!m||w=="option"&&m!==b[l])&&ns(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&ns(e,l,v,b[l],i))}return e}function Ru(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){L.__e(i,r)}}function av(e,t,r){var n,i;if(L.unmount&&L.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ru(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){L.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&av(n[i],t,r||typeof e.type!="function");r||Pu(e.__e),e.__c=e.__=e.__e=void 0}function BR(e,t,r){return this.constructor(e,r)}function Fr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),L.__&&L.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ou(t,e=(!n&&r||t).__k=Xe(He,null,[e]),i||eo,eo,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?as.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),iv(o,e,a)}function ln(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,ku(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"+Zg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var as,L,Kg,xu,cn,$g,Yg,Qg,Xg,Tu,Au,Cu,Zg,eo,ev,UR,to,Jn=x(()=>{eo={},ev=[],UR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,to=Array.isArray;as=ev.slice,L={__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}},Kg=0,xu=function(e){return e!=null&&e.constructor==null},St.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pr({},this.state),typeof e=="function"&&(e=e(pr({},r),this.props)),e&&pr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ku(this))},St.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ku(this))},St.prototype.render=He,cn=[],Yg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qg=function(e,t){return e.__v.__b-t.__v.__b},os.__r=0,Xg=/(PointerCapture)$|Capture$/i,Tu=0,Au=zg(!1),Cu=zg(!0),Zg=0});var we=h((RK,sv)=>{"use strict";sv.exports=function(e){try{return!!e()}catch(t){return!0}}});var Hn=h((NK,cv)=>{"use strict";var GR=we();cv.exports=!GR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Te=h((DK,dv)=>{"use strict";var lv=Hn(),uv=Function.prototype,Nu=uv.call,JR=lv&&uv.bind.bind(Nu,Nu);dv.exports=lv?JR:function(e){return function(){return Nu.apply(e,arguments)}}});var ot=h((LK,pv)=>{"use strict";var HR=Te();pv.exports=HR({}.isPrototypeOf)});var Se=h((Du,fv)=>{"use strict";var no=function(e){return e&&e.Math===Math&&e};fv.exports=no(typeof globalThis=="object"&&globalThis)||no(typeof window=="object"&&window)||no(typeof self=="object"&&self)||no(typeof global=="object"&&global)||no(typeof Du=="object"&&Du)||function(){return this}()||Function("return this")()});var Lu=h((qK,vv)=>{"use strict";var VR=Hn(),gv=Function.prototype,mv=gv.apply,hv=gv.call;vv.exports=typeof Reflect=="object"&&Reflect.apply||(VR?hv.bind(mv):function(){return hv.apply(mv,arguments)})});var fr=h((UK,bv)=>{"use strict";var yv=Te(),$R=yv({}.toString),WR=yv("".slice);bv.exports=function(e){return WR($R(e),8,-1)}});var io=h((MK,_v)=>{"use strict";var zR=fr(),KR=Te();_v.exports=function(e){if(zR(e)==="Function")return KR(e)}});var Ve=h((FK,wv)=>{"use strict";var qu=typeof document=="object"&&document.all;wv.exports=typeof qu=="undefined"&&qu!==void 0?function(e){return typeof e=="function"||e===qu}:function(e){return typeof e=="function"}});var at=h((jK,Sv)=>{"use strict";var YR=we();Sv.exports=!YR(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Mt=h((BK,Iv)=>{"use strict";var QR=Hn(),ss=Function.prototype.call;Iv.exports=QR?ss.bind(ss):function(){return ss.apply(ss,arguments)}});var Uu=h(Cv=>{"use strict";var Ev={}.propertyIsEnumerable,Av=Object.getOwnPropertyDescriptor,XR=Av&&!Ev.call({1:2},1);Cv.f=XR?function(t){var r=Av(this,t);return!!r&&r.enumerable}:Ev});var oo=h((JK,kv)=>{"use strict";kv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var cs=h((HK,xv)=>{"use strict";var ZR=Te(),e1=we(),t1=fr(),Mu=Object,r1=ZR("".split);xv.exports=e1(function(){return!Mu("z").propertyIsEnumerable(0)})?function(e){return t1(e)==="String"?r1(e,""):Mu(e)}:Mu});var un=h((VK,Tv)=>{"use strict";Tv.exports=function(e){return e==null}});var dn=h(($K,Pv)=>{"use strict";var n1=un(),i1=TypeError;Pv.exports=function(e){if(n1(e))throw new i1("Can't call method on "+e);return e}});var jr=h((WK,Ov)=>{"use strict";var o1=cs(),a1=dn();Ov.exports=function(e){return o1(a1(e))}});var Le=h((zK,Rv)=>{"use strict";var s1=Ve();Rv.exports=function(e){return typeof e=="object"?e!==null:s1(e)}});var zt=h((KK,Nv)=>{"use strict";Nv.exports={}});var Vn=h((YK,Lv)=>{"use strict";var Fu=zt(),ju=Se(),c1=Ve(),Dv=function(e){return c1(e)?e:void 0};Lv.exports=function(e,t){return arguments.length<2?Dv(Fu[e])||Dv(ju[e]):Fu[e]&&Fu[e][t]||ju[e]&&ju[e][t]}});var ls=h((QK,Mv)=>{"use strict";var l1=Se(),qv=l1.navigator,Uv=qv&&qv.userAgent;Mv.exports=Uv?String(Uv):""});var ds=h((XK,Hv)=>{"use strict";var Jv=Se(),Bu=ls(),Fv=Jv.process,jv=Jv.Deno,Bv=Fv&&Fv.versions||jv&&jv.version,Gv=Bv&&Bv.v8,Ft,us;Gv&&(Ft=Gv.split("."),us=Ft[0]>0&&Ft[0]<4?1:+(Ft[0]+Ft[1]));!us&&Bu&&(Ft=Bu.match(/Edge\/(\d+)/),(!Ft||Ft[1]>=74)&&(Ft=Bu.match(/Chrome\/(\d+)/),Ft&&(us=+Ft[1])));Hv.exports=us});var Gu=h((ZK,$v)=>{"use strict";var Vv=ds(),u1=we(),d1=Se(),p1=d1.String;$v.exports=!!Object.getOwnPropertySymbols&&!u1(function(){var e=Symbol("symbol detection");return!p1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vv&&Vv<41})});var Ju=h((e8,Wv)=>{"use strict";var f1=Gu();Wv.exports=f1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Hu=h((t8,zv)=>{"use strict";var m1=Vn(),h1=Ve(),g1=ot(),v1=Ju(),y1=Object;zv.exports=v1?function(e){return typeof e=="symbol"}:function(e){var t=m1("Symbol");return h1(t)&&g1(t.prototype,y1(e))}});var ao=h((r8,Kv)=>{"use strict";var b1=String;Kv.exports=function(e){try{return b1(e)}catch(t){return"Object"}}});var pn=h((n8,Yv)=>{"use strict";var _1=Ve(),w1=ao(),S1=TypeError;Yv.exports=function(e){if(_1(e))return e;throw new S1(w1(e)+" is not a function")}});var ps=h((i8,Qv)=>{"use strict";var I1=pn(),E1=un();Qv.exports=function(e,t){var r=e[t];return E1(r)?void 0:I1(r)}});var Zv=h((o8,Xv)=>{"use strict";var Vu=Mt(),$u=Ve(),Wu=Le(),A1=TypeError;Xv.exports=function(e,t){var r,n;if(t==="string"&&$u(r=e.toString)&&!Wu(n=Vu(r,e))||$u(r=e.valueOf)&&!Wu(n=Vu(r,e))||t!=="string"&&$u(r=e.toString)&&!Wu(n=Vu(r,e)))return n;throw new A1("Can't convert object to primitive value")}});var $n=h((a8,ey)=>{"use strict";ey.exports=!0});var ny=h((s8,ry)=>{"use strict";var ty=Se(),C1=Object.defineProperty;ry.exports=function(e,t){try{C1(ty,e,{value:t,configurable:!0,writable:!0})}catch(r){ty[e]=t}return t}});var so=h((c8,ay)=>{"use strict";var k1=$n(),x1=Se(),T1=ny(),iy="__core-js_shared__",oy=ay.exports=x1[iy]||T1(iy,{});(oy.versions||(oy.versions=[])).push({version:"3.41.0",mode:k1?"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 zu=h((l8,cy)=>{"use strict";var sy=so();cy.exports=function(e,t){return sy[e]||(sy[e]=t||{})}});var Wn=h((u8,ly)=>{"use strict";var P1=dn(),O1=Object;ly.exports=function(e){return O1(P1(e))}});var It=h((d8,uy)=>{"use strict";var R1=Te(),N1=Wn(),D1=R1({}.hasOwnProperty);uy.exports=Object.hasOwn||function(t,r){return D1(N1(t),r)}});var fs=h((p8,dy)=>{"use strict";var L1=Te(),q1=0,U1=Math.random(),M1=L1(1 .toString);dy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+M1(++q1+U1,36)}});var Ze=h((f8,fy)=>{"use strict";var F1=Se(),j1=zu(),py=It(),B1=fs(),G1=Gu(),J1=Ju(),zn=F1.Symbol,Ku=j1("wks"),H1=J1?zn.for||zn:zn&&zn.withoutSetter||B1;fy.exports=function(e){return py(Ku,e)||(Ku[e]=G1&&py(zn,e)?zn[e]:H1("Symbol."+e)),Ku[e]}});var vy=h((m8,gy)=>{"use strict";var V1=Mt(),my=Le(),hy=Hu(),$1=ps(),W1=Zv(),z1=Ze(),K1=TypeError,Y1=z1("toPrimitive");gy.exports=function(e,t){if(!my(e)||hy(e))return e;var r=$1(e,Y1),n;if(r){if(t===void 0&&(t="default"),n=V1(r,e,t),!my(n)||hy(n))return n;throw new K1("Can't convert object to primitive value")}return t===void 0&&(t="number"),W1(e,t)}});var Yu=h((h8,yy)=>{"use strict";var Q1=vy(),X1=Hu();yy.exports=function(e){var t=Q1(e,"string");return X1(t)?t:t+""}});var Xu=h((g8,_y)=>{"use strict";var Z1=Se(),by=Le(),Qu=Z1.document,eN=by(Qu)&&by(Qu.createElement);_y.exports=function(e){return eN?Qu.createElement(e):{}}});var Zu=h((v8,wy)=>{"use strict";var tN=at(),rN=we(),nN=Xu();wy.exports=!tN&&!rN(function(){return Object.defineProperty(nN("div"),"a",{get:function(){return 7}}).a!==7})});var ed=h(Iy=>{"use strict";var iN=at(),oN=Mt(),aN=Uu(),sN=oo(),cN=jr(),lN=Yu(),uN=It(),dN=Zu(),Sy=Object.getOwnPropertyDescriptor;Iy.f=iN?Sy:function(t,r){if(t=cN(t),r=lN(r),dN)try{return Sy(t,r)}catch(n){}if(uN(t,r))return sN(!oN(aN.f,t,r),t[r])}});var Ay=h((b8,Ey)=>{"use strict";var pN=we(),fN=Ve(),mN=/#|\.prototype\./,co=function(e,t){var r=gN[hN(e)];return r===yN?!0:r===vN?!1:fN(t)?pN(t):!!t},hN=co.normalize=function(e){return String(e).replace(mN,".").toLowerCase()},gN=co.data={},vN=co.NATIVE="N",yN=co.POLYFILL="P";Ey.exports=co});var lo=h((_8,ky)=>{"use strict";var Cy=io(),bN=pn(),_N=Hn(),wN=Cy(Cy.bind);ky.exports=function(e,t){return bN(e),t===void 0?e:_N?wN(e,t):function(){return e.apply(t,arguments)}}});var td=h((w8,xy)=>{"use strict";var SN=at(),IN=we();xy.exports=SN&&IN(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((S8,Ty)=>{"use strict";var EN=Le(),AN=String,CN=TypeError;Ty.exports=function(e){if(EN(e))return e;throw new CN(AN(e)+" is not an object")}});var hr=h(Oy=>{"use strict";var kN=at(),xN=Zu(),TN=td(),ms=mr(),Py=Yu(),PN=TypeError,rd=Object.defineProperty,ON=Object.getOwnPropertyDescriptor,nd="enumerable",id="configurable",od="writable";Oy.f=kN?TN?function(t,r,n){if(ms(t),r=Py(r),ms(n),typeof t=="function"&&r==="prototype"&&"value"in n&&od in n&&!n[od]){var i=ON(t,r);i&&i[od]&&(t[r]=n.value,n={configurable:id in n?n[id]:i[id],enumerable:nd in n?n[nd]:i[nd],writable:!1})}return rd(t,r,n)}:rd:function(t,r,n){if(ms(t),r=Py(r),ms(n),xN)try{return rd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new PN("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var fn=h((E8,Ry)=>{"use strict";var RN=at(),NN=hr(),DN=oo();Ry.exports=RN?function(e,t,r){return NN.f(e,t,DN(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((A8,Dy)=>{"use strict";var uo=Se(),LN=Lu(),qN=io(),UN=Ve(),MN=ed().f,FN=Ay(),Kn=zt(),jN=lo(),Yn=fn(),Ny=It();so();var BN=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 LN(e,this,arguments)};return t.prototype=e.prototype,t};Dy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?uo:i?uo[r]:uo[r]&&uo[r].prototype,s=n?Kn:Kn[r]||Yn(Kn,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=FN(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&Ny(a,p),m=s[p],d&&(e.dontCallGetSet?(y=MN(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=jN(f,uo):e.wrap&&d?b=BN(f):o&&UN(f)?b=qN(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Yn(b,"sham",!0),Yn(s,p,b),o&&(u=r+"Prototype",Ny(Kn,u)||Yn(Kn,u,{}),Yn(Kn[u],p,f),e.real&&c&&(l||!c[p])&&Yn(c,p,f)))}});var qy=h((C8,Ly)=>{"use strict";var GN=Math.ceil,JN=Math.floor;Ly.exports=Math.trunc||function(t){var r=+t;return(r>0?JN:GN)(r)}});var po=h((k8,Uy)=>{"use strict";var HN=qy();Uy.exports=function(e){var t=+e;return t!==t||t===0?0:HN(t)}});var ad=h((x8,My)=>{"use strict";var VN=po(),$N=Math.min;My.exports=function(e){var t=VN(e);return t>0?$N(t,9007199254740991):0}});var Qn=h((T8,Fy)=>{"use strict";var WN=ad();Fy.exports=function(e){return WN(e.length)}});var fo=h((P8,jy)=>{"use strict";var zN=fr();jy.exports=Array.isArray||function(t){return zN(t)==="Array"}});var hs=h((O8,Gy)=>{"use strict";var KN=Ze(),YN=KN("toStringTag"),By={};By[YN]="z";Gy.exports=String(By)==="[object z]"});var Xn=h((R8,Jy)=>{"use strict";var QN=hs(),XN=Ve(),gs=fr(),ZN=Ze(),eD=ZN("toStringTag"),tD=Object,rD=gs(function(){return arguments}())==="Arguments",nD=function(e,t){try{return e[t]}catch(r){}};Jy.exports=QN?gs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=nD(t=tD(e),eD))=="string"?r:rD?gs(t):(n=gs(t))==="Object"&&XN(t.callee)?"Arguments":n}});var Vy=h((N8,Hy)=>{"use strict";var iD=Te(),oD=Ve(),sd=so(),aD=iD(Function.toString);oD(sd.inspectSource)||(sd.inspectSource=function(e){return aD(e)});Hy.exports=sd.inspectSource});var ld=h((D8,Yy)=>{"use strict";var sD=Te(),cD=we(),$y=Ve(),lD=Xn(),uD=Vn(),dD=Vy(),Wy=function(){},zy=uD("Reflect","construct"),cd=/^\s*(?:class|function)\b/,pD=sD(cd.exec),fD=!cd.test(Wy),mo=function(t){if(!$y(t))return!1;try{return zy(Wy,[],t),!0}catch(r){return!1}},Ky=function(t){if(!$y(t))return!1;switch(lD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fD||!!pD(cd,dD(t))}catch(r){return!0}};Ky.sham=!0;Yy.exports=!zy||cD(function(){var e;return mo(mo.call)||!mo(Object)||!mo(function(){e=!0})||e})?Ky:mo});var eb=h((L8,Zy)=>{"use strict";var Qy=fo(),mD=ld(),hD=Le(),gD=Ze(),vD=gD("species"),Xy=Array;Zy.exports=function(e){var t;return Qy(e)&&(t=e.constructor,mD(t)&&(t===Xy||Qy(t.prototype))?t=void 0:hD(t)&&(t=t[vD],t===null&&(t=void 0))),t===void 0?Xy:t}});var ud=h((q8,tb)=>{"use strict";var yD=eb();tb.exports=function(e,t){return new(yD(e))(t===0?0:t)}});var Gr=h((U8,nb)=>{"use strict";var bD=lo(),_D=Te(),wD=cs(),SD=Wn(),ID=Qn(),ED=ud(),rb=_D([].push),Br=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=SD(c),f=wD(p),m=ID(f),v=bD(l,d),b=0,y=u||ED,w=t?y(c,m):r||a?y(c,0):void 0,I,C;m>b;b++)if((s||b in f)&&(I=f[b],C=v(I,b,p),e))if(t)w[b]=C;else if(C)switch(e){case 3:return!0;case 5:return I;case 6:return b;case 2:rb(w,I)}else switch(e){case 4:return!1;case 7:rb(w,I)}return o?-1:n||i?i:w}};nb.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var ho=h((M8,ib)=>{"use strict";var AD=we(),CD=Ze(),kD=ds(),xD=CD("species");ib.exports=function(e){return kD>=51||!AD(function(){var t=[],r=t.constructor={};return r[xD]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var ob=h(()=>{"use strict";var TD=ae(),PD=Gr().filter,OD=ho(),RD=OD("filter");TD({target:"Array",proto:!0,forced:!RD},{filter:function(t){return PD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ot=h((B8,ab)=>{"use strict";var ND=Se(),DD=zt();ab.exports=function(e,t){var r=DD[e+"Prototype"],n=r&&r[t];if(n)return n;var i=ND[e],o=i&&i.prototype;return o&&o[t]}});var cb=h((G8,sb)=>{"use strict";ob();var LD=Ot();sb.exports=LD("Array","filter")});var ub=h((J8,lb)=>{"use strict";var qD=ot(),UD=cb(),dd=Array.prototype;lb.exports=function(e){var t=e.filter;return e===dd||qD(dd,e)&&t===dd.filter?UD:t}});var pb=h((H8,db)=>{"use strict";var MD=ub();db.exports=MD});var mb=h((V8,fb)=>{fb.exports=pb()});var go=h(($8,hb)=>{"use strict";var FD=we();hb.exports=function(e,t){var r=[][e];return!!r&&FD(function(){r.call(null,t||function(){return 1},1)})}});var gb=h(()=>{"use strict";var jD=ae(),BD=Gr().every,GD=go(),JD=GD("every");jD({target:"Array",proto:!0,forced:!JD},{every:function(t){return BD(this,t,arguments.length>1?arguments[1]:void 0)}})});var yb=h((K8,vb)=>{"use strict";gb();var HD=Ot();vb.exports=HD("Array","every")});var _b=h((Y8,bb)=>{"use strict";var VD=ot(),$D=yb(),pd=Array.prototype;bb.exports=function(e){var t=e.every;return e===pd||VD(pd,e)&&t===pd.every?$D:t}});var Sb=h((Q8,wb)=>{"use strict";var WD=_b();wb.exports=WD});var Eb=h((X8,Ib)=>{Ib.exports=Sb()});var Cb=h((Z8,Ab)=>{"use strict";var zD=Gr().forEach,KD=go(),YD=KD("forEach");Ab.exports=YD?[].forEach:function(t){return zD(this,t,arguments.length>1?arguments[1]:void 0)}});var xb=h(()=>{"use strict";var QD=ae(),kb=Cb();QD({target:"Array",proto:!0,forced:[].forEach!==kb},{forEach:kb})});var Pb=h((r7,Tb)=>{"use strict";xb();var XD=Ot();Tb.exports=XD("Array","forEach")});var Rb=h((n7,Ob)=>{"use strict";var ZD=Pb();Ob.exports=ZD});var Nb=h(()=>{});var Lb=h((a7,Db)=>{"use strict";var eL=Xn(),tL=It(),rL=ot(),nL=Rb();Nb();var fd=Array.prototype,iL={DOMTokenList:!0,NodeList:!0};Db.exports=function(e){var t=e.forEach;return e===fd||rL(fd,e)&&t===fd.forEach||tL(iL,eL(e))?nL:t}});var Ub=h((s7,qb)=>{qb.exports=Lb()});var Fb=h((c7,Mb)=>{"use strict";var oL=TypeError,aL=9007199254740991;Mb.exports=function(e){if(e>aL)throw oL("Maximum allowed index exceeded");return e}});var md=h((l7,jb)=>{"use strict";var sL=at(),cL=hr(),lL=oo();jb.exports=function(e,t,r){sL?cL.f(e,t,lL(0,r)):e[t]=r}});var Hb=h(()=>{"use strict";var uL=ae(),dL=we(),pL=fo(),fL=Le(),mL=Wn(),hL=Qn(),Bb=Fb(),Gb=md(),gL=ud(),vL=ho(),yL=Ze(),bL=ds(),Jb=yL("isConcatSpreadable"),_L=bL>=51||!dL(function(){var e=[];return e[Jb]=!1,e.concat()[0]!==e}),wL=function(e){if(!fL(e))return!1;var t=e[Jb];return t!==void 0?!!t:pL(e)},SL=!_L||!vL("concat");uL({target:"Array",proto:!0,arity:1,forced:SL},{concat:function(t){var r=mL(this),n=gL(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],wL(l))for(c=hL(l),Bb(i+c),a=0;a<c;a++,i++)a in l&&Gb(n,i,l[a]);else Bb(i+1),Gb(n,i++,l);return n.length=i,n}})});var $b=h((p7,Vb)=>{"use strict";Hb();var IL=Ot();Vb.exports=IL("Array","concat")});var zb=h((f7,Wb)=>{"use strict";var EL=ot(),AL=$b(),hd=Array.prototype;Wb.exports=function(e){var t=e.concat;return e===hd||EL(hd,e)&&t===hd.concat?AL:t}});var Yb=h((m7,Kb)=>{"use strict";var CL=zb();Kb.exports=CL});var Xb=h((h7,Qb)=>{Qb.exports=Yb()});var Zb=h(()=>{"use strict";var kL=ae(),xL=Gr().some,TL=go(),PL=TL("some");kL({target:"Array",proto:!0,forced:!PL},{some:function(t){return xL(this,t,arguments.length>1?arguments[1]:void 0)}})});var t_=h((y7,e_)=>{"use strict";Zb();var OL=Ot();e_.exports=OL("Array","some")});var n_=h((b7,r_)=>{"use strict";var RL=ot(),NL=t_(),gd=Array.prototype;r_.exports=function(e){var t=e.some;return e===gd||RL(gd,e)&&t===gd.some?NL:t}});var o_=h((_7,i_)=>{"use strict";var DL=n_();i_.exports=DL});var s_=h((w7,a_)=>{a_.exports=o_()});var l_=h((S7,c_)=>{"use strict";var vo=Se(),LL=ls(),qL=fr(),vs=function(e){return LL.slice(0,e.length)===e};c_.exports=function(){return vs("Bun/")?"BUN":vs("Cloudflare-Workers")?"CLOUDFLARE":vs("Deno/")?"DENO":vs("Node.js/")?"NODE":vo.Bun&&typeof Bun.version=="string"?"BUN":vo.Deno&&typeof Deno.version=="object"?"DENO":qL(vo.process)==="process"?"NODE":vo.window&&vo.document?"BROWSER":"REST"}()});var yo=h((I7,u_)=>{"use strict";var UL=Te();u_.exports=UL([].slice)});var p_=h((E7,d_)=>{"use strict";var ML=TypeError;d_.exports=function(e,t){if(e<t)throw new ML("Not enough arguments");return e}});var vd=h((A7,m_)=>{"use strict";var f_=Se(),FL=Lu(),jL=Ve(),BL=l_(),GL=ls(),JL=yo(),HL=p_(),VL=f_.Function,$L=/MSIE .\./.test(GL)||BL==="BUN"&&function(){var e=f_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();m_.exports=function(e,t){var r=t?2:1;return $L?function(n,i){var o=HL(arguments.length,1)>r,a=jL(n)?n:VL(n),s=o?JL(arguments,r):[],c=o?function(){FL(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var v_=h(()=>{"use strict";var WL=ae(),g_=Se(),zL=vd(),h_=zL(g_.setInterval,!0);WL({global:!0,bind:!0,forced:g_.setInterval!==h_},{setInterval:h_})});var __=h(()=>{"use strict";var KL=ae(),b_=Se(),YL=vd(),y_=YL(b_.setTimeout,!0);KL({global:!0,bind:!0,forced:b_.setTimeout!==y_},{setTimeout:y_})});var w_=h(()=>{"use strict";v_();__()});var I_=h((R7,S_)=>{"use strict";w_();var QL=zt();S_.exports=QL.setTimeout});var A_=h((N7,E_)=>{E_.exports=I_()});function _o(e,t){Ae.__h&&Ae.__h(de,e,bo||t),bo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return bo=1,L_(q_,e)}function L_(e,t,r){var n=_o(mn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):q_(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=de,!de.__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};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.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)},de.shouldComponentUpdate=i}return n.__N||n.__}function hn(e,t){var r=_o(mn++,3);!Ae.__s&&_d(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function Zn(e,t){var r=_o(mn++,4);!Ae.__s&&_d(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function ei(e){return bo=5,wo(function(){return{current:e}},[])}function wo(e,t){var r=_o(mn++,7);return _d(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Jr(e,t){return bo=8,wo(function(){return e},t)}function ti(e){var t=de.context[e.__c],r=_o(mn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function XL(){for(var e;e=D_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ys),e.__H.__h.forEach(bd),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function ZL(e){var t,r=function(){clearTimeout(n),N_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);N_&&(t=requestAnimationFrame(r))}function ys(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function bd(e){var t=de;e.__c=e.__(),de=t}function _d(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function q_(e,t){return typeof t=="function"?t(e):t}var mn,de,yd,C_,bo,D_,Ae,k_,x_,T_,P_,O_,R_,N_,wd=x(()=>{Jn();bo=0,D_=[],Ae=L,k_=Ae.__b,x_=Ae.__r,T_=Ae.diffed,P_=Ae.__c,O_=Ae.unmount,R_=Ae.__;Ae.__b=function(e){de=null,k_&&k_(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),R_&&R_(e,t)},Ae.__r=function(e){x_&&x_(e),mn=0;var t=(de=e.__c).__H;t&&(yd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ys),t.__h.forEach(bd),t.__h=[],mn=0)),yd=de},Ae.diffed=function(e){T_&&T_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(D_.push(t)!==1&&C_===Ae.requestAnimationFrame||((C_=Ae.requestAnimationFrame)||ZL)(XL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),yd=de=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ys),r.__h=r.__h.filter(function(n){return!n.__||bd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),P_&&P_(e,t)},Ae.unmount=function(e){O_&&O_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ys(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};N_=typeof requestAnimationFrame=="function"});function $_(e,t){for(var r in t)e[r]=t[r];return e}function Id(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 U_(e,t){this.props=e,this.context=t}function Ad(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:Id(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Xe(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Cd(e){function t(r){var n=$_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=eq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function W_(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=$_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return W_(n,t,r)})),e}function z_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return z_(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 Sd(){this.__u=0,this.o=null,this.__b=null}function K_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function bs(){this.i=null,this.l=null}function _s(e,t,r){return t.__k==null&&(t.textContent=""),Fr(e,t),typeof r=="function"&&r(),e?e.__c:null}function cq(){}function lq(){return this.cancelBubble}function uq(){return this.defaultPrevented}var Ed,M_,eq,tq,F_,j_,rq,nq,iq,oq,aq,sq,B_,Y_,dq,G_,J_,H_,ws=x(()=>{Jn();Jn();wd();wd();Ed=Zn;(U_.prototype=new St).isPureReactComponent=!0,U_.prototype.shouldComponentUpdate=function(e,t){return Id(this.props,e)||Id(this.state,t)};M_=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),M_&&M_(e)};eq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;tq=L.__e;L.__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)}tq(e,t,r,n)};F_=L.unmount;L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),F_&&F_(e)},(Sd.prototype=new St).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=K_(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]=z_(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)},Sd.prototype.componentWillUnmount=function(){this.o=[]},Sd.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]=W_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Xe(He,null,e.fallback);return i&&(i.__u&=-33),[Xe(He,null,t.__a?null:e.children),i]};j_=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]}};(bs.prototype=new St).__a=function(e){var t=this,r=K_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),j_(t,e,n)):i()};r?r(o):o()}},bs.prototype.render=function(e){this.i=null,this.l=new Map;var t=ro(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},bs.prototype.componentDidUpdate=bs.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){j_(e,r,t)})};rq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,nq=/^(?: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]/,iq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oq=/[A-Z0-9]/g,aq=typeof document!="undefined",sq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};St.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});B_=L.event;L.event=function(e){return B_&&(e=B_(e)),e.persist=cq,e.isPropagationStopped=lq,e.isDefaultPrevented=uq,e.nativeEvent=e};dq={enumerable:!1,configurable:!0,get:function(){return this.class}},G_=L.vnode;L.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||aq&&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"||sq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":iq.test(a)&&(a=c):c=a="oninput":o&&nq.test(a)?a=a.replace(oq,"-$&").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=ro(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ro(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",dq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=rq,G_&&G_(e)};J_=L.__r;L.__r=function(e){J_&&J_(e),Y_=e.__c};H_=L.diffed;L.diffed=function(e){H_&&H_(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),Y_=null}});var xd=h(()=>{"use strict";var fq=ae(),kd=Se();fq({global:!0,forced:kd.globalThis!==kd},{globalThis:kd})});var Q_=h(()=>{"use strict";xd()});var Z_=h((K7,X_)=>{"use strict";xd();X_.exports=Se()});var tw=h((Y7,ew)=>{"use strict";var mq=Z_();ew.exports=mq});var nw=h((Q7,rw)=>{"use strict";var hq=tw();rw.exports=hq});var ow=h((X7,iw)=>{"use strict";Q_();var gq=nw();iw.exports=gq});var sw=h((Z7,aw)=>{"use strict";aw.exports=ow()});var lw=h((eY,cw)=>{cw.exports=sw()});var uw=h(()=>{"use strict";var vq=ae(),yq=fo();vq({target:"Array",stat:!0},{isArray:yq})});var pw=h((nY,dw)=>{"use strict";uw();var bq=zt();dw.exports=bq.Array.isArray});var mw=h((iY,fw)=>{"use strict";var _q=pw();fw.exports=_q});var gw=h((oY,hw)=>{hw.exports=mw()});var yw=h((aY,vw)=>{"use strict";vw.exports=function(){}});var gn=h((sY,bw)=>{"use strict";bw.exports={}});var Td=h((cY,ww)=>{"use strict";var wq=Se(),Sq=Ve(),_w=wq.WeakMap;ww.exports=Sq(_w)&&/native code/.test(String(_w))});var Ss=h((lY,Iw)=>{"use strict";var Iq=zu(),Eq=fs(),Sw=Iq("keys");Iw.exports=function(e){return Sw[e]||(Sw[e]=Eq(e))}});var So=h((uY,Ew)=>{"use strict";Ew.exports={}});var yn=h((dY,kw)=>{"use strict";var Aq=Td(),Cw=Se(),Cq=Le(),kq=fn(),Pd=It(),Od=so(),xq=Ss(),Tq=So(),Aw="Object already initialized",Rd=Cw.TypeError,Pq=Cw.WeakMap,Is,Io,Es,Oq=function(e){return Es(e)?Io(e):Is(e,{})},Rq=function(e){return function(t){var r;if(!Cq(t)||(r=Io(t)).type!==e)throw new Rd("Incompatible receiver, "+e+" required");return r}};Aq||Od.state?(jt=Od.state||(Od.state=new Pq),jt.get=jt.get,jt.has=jt.has,jt.set=jt.set,Is=function(e,t){if(jt.has(e))throw new Rd(Aw);return t.facade=e,jt.set(e,t),t},Io=function(e){return jt.get(e)||{}},Es=function(e){return jt.has(e)}):(vn=xq("state"),Tq[vn]=!0,Is=function(e,t){if(Pd(e,vn))throw new Rd(Aw);return t.facade=e,kq(e,vn,t),t},Io=function(e){return Pd(e,vn)?e[vn]:{}},Es=function(e){return Pd(e,vn)});var jt,vn;kw.exports={set:Is,get:Io,has:Es,enforce:Oq,getterFor:Rq}});var Ld=h((pY,Tw)=>{"use strict";var Nd=at(),Nq=It(),xw=Function.prototype,Dq=Nd&&Object.getOwnPropertyDescriptor,Dd=Nq(xw,"name"),Lq=Dd&&(function(){}).name==="something",qq=Dd&&(!Nd||Nd&&Dq(xw,"name").configurable);Tw.exports={EXISTS:Dd,PROPER:Lq,CONFIGURABLE:qq}});var qd=h((fY,Pw)=>{"use strict";var Uq=po(),Mq=Math.max,Fq=Math.min;Pw.exports=function(e,t){var r=Uq(e);return r<0?Mq(r+t,0):Fq(r,t)}});var Ud=h((mY,Rw)=>{"use strict";var jq=jr(),Bq=qd(),Gq=Qn(),Ow=function(e){return function(t,r,n){var i=jq(t),o=Gq(i);if(o===0)return!e&&-1;var a=Bq(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}};Rw.exports={includes:Ow(!0),indexOf:Ow(!1)}});var Fd=h((hY,Dw)=>{"use strict";var Jq=Te(),Md=It(),Hq=jr(),Vq=Ud().indexOf,$q=So(),Nw=Jq([].push);Dw.exports=function(e,t){var r=Hq(e),n=0,i=[],o;for(o in r)!Md($q,o)&&Md(r,o)&&Nw(i,o);for(;t.length>n;)Md(r,o=t[n++])&&(~Vq(i,o)||Nw(i,o));return i}});var As=h((gY,Lw)=>{"use strict";Lw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var jd=h((vY,qw)=>{"use strict";var Wq=Fd(),zq=As();qw.exports=Object.keys||function(t){return Wq(t,zq)}});var Mw=h(Uw=>{"use strict";var Kq=at(),Yq=td(),Qq=hr(),Xq=mr(),Zq=jr(),eU=jd();Uw.f=Kq&&!Yq?Object.defineProperties:function(t,r){Xq(t);for(var n=Zq(r),i=eU(r),o=i.length,a=0,s;o>a;)Qq.f(t,s=i[a++],n[s]);return t}});var jw=h((bY,Fw)=>{"use strict";var tU=Vn();Fw.exports=tU("document","documentElement")});var Eo=h((_Y,Ww)=>{"use strict";var rU=mr(),nU=Mw(),Bw=As(),iU=So(),oU=jw(),aU=Xu(),sU=Ss(),Gw=">",Jw="<",Gd="prototype",Jd="script",Vw=sU("IE_PROTO"),Bd=function(){},$w=function(e){return Jw+Jd+Gw+e+Jw+"/"+Jd+Gw},Hw=function(e){e.write($w("")),e.close();var t=e.parentWindow.Object;return e=null,t},cU=function(){var e=aU("iframe"),t="java"+Jd+":",r;return e.style.display="none",oU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write($w("document.F=Object")),r.close(),r.F},Cs,ks=function(){try{Cs=new ActiveXObject("htmlfile")}catch(t){}ks=typeof document!="undefined"?document.domain&&Cs?Hw(Cs):cU():Hw(Cs);for(var e=Bw.length;e--;)delete ks[Gd][Bw[e]];return ks()};iU[Vw]=!0;Ww.exports=Object.create||function(t,r){var n;return t!==null?(Bd[Gd]=rU(t),n=new Bd,Bd[Gd]=null,n[Vw]=t):n=ks(),r===void 0?n:nU.f(n,r)}});var Kw=h((wY,zw)=>{"use strict";var lU=we();zw.exports=!lU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Vd=h((SY,Qw)=>{"use strict";var uU=It(),dU=Ve(),pU=Wn(),fU=Ss(),mU=Kw(),Yw=fU("IE_PROTO"),Hd=Object,hU=Hd.prototype;Qw.exports=mU?Hd.getPrototypeOf:function(e){var t=pU(e);if(uU(t,Yw))return t[Yw];var r=t.constructor;return dU(r)&&t instanceof r?r.prototype:t instanceof Hd?hU:null}});var xs=h((IY,Xw)=>{"use strict";var gU=fn();Xw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:gU(e,t,r),e}});var Kd=h((EY,tS)=>{"use strict";var vU=we(),yU=Ve(),bU=Le(),_U=Eo(),Zw=Vd(),wU=xs(),SU=Ze(),IU=$n(),zd=SU("iterator"),eS=!1,vr,$d,Wd;[].keys&&(Wd=[].keys(),"next"in Wd?($d=Zw(Zw(Wd)),$d!==Object.prototype&&(vr=$d)):eS=!0);var EU=!bU(vr)||vU(function(){var e={};return vr[zd].call(e)!==e});EU?vr={}:IU&&(vr=_U(vr));yU(vr[zd])||wU(vr,zd,function(){return this});tS.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:eS}});var nS=h((AY,rS)=>{"use strict";var AU=hs(),CU=Xn();rS.exports=AU?{}.toString:function(){return"[object "+CU(this)+"]"}});var Ao=h((CY,oS)=>{"use strict";var kU=hs(),xU=hr().f,TU=fn(),PU=It(),OU=nS(),RU=Ze(),iS=RU("toStringTag");oS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(PU(i,iS)||xU(i,iS,{configurable:!0,value:t}),n&&!kU&&TU(i,"toString",OU))}});var sS=h((kY,aS)=>{"use strict";var NU=Kd().IteratorPrototype,DU=Eo(),LU=oo(),qU=Ao(),UU=gn(),MU=function(){return this};aS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=DU(NU,{next:LU(+!n,r)}),qU(e,i,!1,!0),UU[i]=MU,e}});var lS=h((xY,cS)=>{"use strict";var FU=Te(),jU=pn();cS.exports=function(e,t,r){try{return FU(jU(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var dS=h((TY,uS)=>{"use strict";var BU=Le();uS.exports=function(e){return BU(e)||e===null}});var fS=h((PY,pS)=>{"use strict";var GU=dS(),JU=String,HU=TypeError;pS.exports=function(e){if(GU(e))return e;throw new HU("Can't set "+JU(e)+" as a prototype")}});var hS=h((OY,mS)=>{"use strict";var VU=lS(),$U=Le(),WU=dn(),zU=fS();mS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=VU(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return WU(i),zU(o),$U(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Os=h((RY,AS)=>{"use strict";var KU=ae(),YU=Mt(),Ts=$n(),IS=Ld(),QU=Ve(),XU=sS(),gS=Vd(),vS=hS(),ZU=Ao(),eM=fn(),Yd=xs(),tM=Ze(),yS=gn(),ES=Kd(),rM=IS.PROPER,nM=IS.CONFIGURABLE,bS=ES.IteratorPrototype,Ps=ES.BUGGY_SAFARI_ITERATORS,Co=tM("iterator"),_S="keys",ko="values",wS="entries",SS=function(){return this};AS.exports=function(e,t,r,n,i,o,a){XU(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Ps&&y&&y in d)return d[y];switch(y){case _S:return function(){return new r(this,y)};case ko:return function(){return new r(this,y)};case wS:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Co]||d["@@iterator"]||i&&d[i],p=!Ps&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=gS(f.call(new e)),m!==Object.prototype&&m.next&&(!Ts&&gS(m)!==bS&&(vS?vS(m,bS):QU(m[Co])||Yd(m,Co,SS)),ZU(m,c,!0,!0),Ts&&(yS[c]=SS))),rM&&i===ko&&u&&u.name!==ko&&(!Ts&&nM?eM(d,"name",ko):(l=!0,p=function(){return YU(u,this)})),i)if(v={values:s(ko),keys:o?p:s(_S),entries:s(wS)},a)for(b in v)(Ps||l||!(b in d))&&Yd(d,b,v[b]);else KU({target:t,proto:!0,forced:Ps||l},v);return(!Ts||a)&&d[Co]!==p&&Yd(d,Co,p,{name:i}),yS[t]=p,v}});var Rs=h((NY,CS)=>{"use strict";CS.exports=function(e,t){return{value:e,done:t}}});var Ds=h((DY,OS)=>{"use strict";var iM=jr(),Qd=yw(),kS=gn(),TS=yn(),oM=hr().f,aM=Os(),Ns=Rs(),sM=$n(),cM=at(),PS="Array Iterator",lM=TS.set,uM=TS.getterFor(PS);OS.exports=aM(Array,"Array",function(e,t){lM(this,{type:PS,target:iM(e),index:0,kind:t})},function(){var e=uM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ns(void 0,!0);switch(e.kind){case"keys":return Ns(r,!1);case"values":return Ns(t[r],!1)}return Ns([r,t[r]],!1)},"values");var xS=kS.Arguments=kS.Array;Qd("keys");Qd("values");Qd("entries");if(!sM&&cM&&xS.name!=="values")try{oM(xS,"name",{value:"values"})}catch(e){}});var Xd=h(()=>{});var Zd=h((UY,RS)=>{"use strict";var dM=we();RS.exports=!dM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ls=h((MY,NS)=>{"use strict";var pM=xs();NS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:pM(e,n,t[n],r);return e}});var ep=h(DS=>{"use strict";var fM=Fd(),mM=As(),hM=mM.concat("length","prototype");DS.f=Object.getOwnPropertyNames||function(t){return fM(t,hM)}});var MS=h((jY,US)=>{"use strict";var gM=fr(),vM=jr(),LS=ep().f,yM=yo(),qS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bM=function(e){try{return LS(e)}catch(t){return yM(qS)}};US.exports.f=function(t){return qS&&gM(t)==="Window"?bM(t):LS(vM(t))}});var jS=h((BY,FS)=>{"use strict";var _M=we();FS.exports=_M(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var JS=h((GY,GS)=>{"use strict";var wM=we(),SM=Le(),IM=fr(),BS=jS(),qs=Object.isExtensible,EM=wM(function(){qs(1)});GS.exports=EM||BS?function(t){return!SM(t)||BS&&IM(t)==="ArrayBuffer"?!1:qs?qs(t):!0}:qs});var xo=h((JY,$S)=>{"use strict";var AM=ae(),CM=Te(),kM=So(),xM=Le(),tp=It(),TM=hr().f,HS=ep(),PM=MS(),rp=JS(),OM=fs(),RM=Zd(),VS=!1,yr=OM("meta"),NM=0,np=function(e){TM(e,yr,{value:{objectID:"O"+NM++,weakData:{}}})},DM=function(e,t){if(!xM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!tp(e,yr)){if(!rp(e))return"F";if(!t)return"E";np(e)}return e[yr].objectID},LM=function(e,t){if(!tp(e,yr)){if(!rp(e))return!0;if(!t)return!1;np(e)}return e[yr].weakData},qM=function(e){return RM&&VS&&rp(e)&&!tp(e,yr)&&np(e),e},UM=function(){MM.enable=function(){},VS=!0;var e=HS.f,t=CM([].splice),r={};r[yr]=1,e(r).length&&(HS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===yr){t(i,o,1);break}return i},AM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:PM.f}))},MM=$S.exports={enable:UM,fastKey:DM,getWeakData:LM,onFreeze:qM};kM[yr]=!0});var zS=h((HY,WS)=>{"use strict";var FM=Ze(),jM=gn(),BM=FM("iterator"),GM=Array.prototype;WS.exports=function(e){return e!==void 0&&(jM.Array===e||GM[BM]===e)}});var ip=h((VY,YS)=>{"use strict";var JM=Xn(),KS=ps(),HM=un(),VM=gn(),$M=Ze(),WM=$M("iterator");YS.exports=function(e){if(!HM(e))return KS(e,WM)||KS(e,"@@iterator")||VM[JM(e)]}});var XS=h(($Y,QS)=>{"use strict";var zM=Mt(),KM=pn(),YM=mr(),QM=ao(),XM=ip(),ZM=TypeError;QS.exports=function(e,t){var r=arguments.length<2?XM(e):t;if(KM(r))return YM(zM(r,e));throw new ZM(QM(e)+" is not iterable")}});var Us=h((WY,eI)=>{"use strict";var eF=Mt(),ZS=mr(),tF=ps();eI.exports=function(e,t,r){var n,i;ZS(e);try{if(n=tF(e,"return"),!n){if(t==="throw")throw r;return r}n=eF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ZS(n),r}});var Fs=h((zY,iI)=>{"use strict";var rF=lo(),nF=Mt(),iF=mr(),oF=ao(),aF=zS(),sF=Qn(),tI=ot(),cF=XS(),lF=ip(),rI=Us(),uF=TypeError,Ms=function(e,t){this.stopped=e,this.result=t},nI=Ms.prototype;iI.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=rF(t,n),l,d,u,p,f,m,v,b=function(w){return l&&rI(l,"normal",w),new Ms(!0,w)},y=function(w){return i?(iF(w),s?c(w[0],w[1],b):c(w[0],w[1])):s?c(w,b):c(w)};if(o)l=e.iterator;else if(a)l=e;else{if(d=lF(e),!d)throw new uF(oF(e)+" is not iterable");if(aF(d)){for(u=0,p=sF(e);p>u;u++)if(f=y(e[u]),f&&tI(nI,f))return f;return new Ms(!1)}l=cF(e,d)}for(m=o?e.next:l.next;!(v=nF(m,l)).done;){try{f=y(v.value)}catch(w){rI(l,"throw",w)}if(typeof f=="object"&&f&&tI(nI,f))return f}return new Ms(!1)}});var js=h((KY,oI)=>{"use strict";var dF=ot(),pF=TypeError;oI.exports=function(e,t){if(dF(t,e))return e;throw new pF("Incorrect invocation")}});var op=h((YY,sI)=>{"use strict";var fF=ae(),mF=Se(),hF=xo(),gF=we(),vF=fn(),yF=Fs(),bF=js(),_F=Ve(),wF=Le(),SF=un(),IF=Ao(),EF=hr().f,AF=Gr().forEach,CF=at(),aI=yn(),kF=aI.set,xF=aI.getterFor;sI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=mF[e],s=a&&a.prototype,c={},l;if(!CF||!_F(a)||!(i||s.forEach&&!gF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),hF.enable();else{l=t(function(p,f){kF(bF(p,d),{type:e,collection:new a}),SF(f)||yF(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=xF(e);AF(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&vF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!wF(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||EF(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return IF(l,e,!1,!0),c[e]=l,fF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var mI=h((QY,fI)=>{"use strict";var TF=Te(),cI=Ls(),Bs=xo().getWeakData,PF=js(),OF=mr(),RF=un(),ap=Le(),NF=Fs(),uI=Gr(),lI=It(),dI=yn(),DF=dI.set,LF=dI.getterFor,qF=uI.find,UF=uI.findIndex,MF=TF([].splice),FF=0,Gs=function(e){return e.frozen||(e.frozen=new pI)},pI=function(){this.entries=[]},sp=function(e,t){return qF(e.entries,function(r){return r[0]===t})};pI.prototype={get:function(e){var t=sp(this,e);if(t)return t[1]},has:function(e){return!!sp(this,e)},set:function(e,t){var r=sp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=UF(this.entries,function(r){return r[0]===e});return~t&&MF(this.entries,t,1),!!~t}};fI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){PF(c,o),DF(c,{type:t,id:FF++,frozen:null}),RF(l)||NF(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=LF(t),s=function(c,l,d){var u=a(c),p=Bs(OF(l),!0);return p===!0?Gs(u).set(l,d):p[u.id]=d,c};return cI(o,{delete:function(c){var l=a(this);if(!ap(c))return!1;var d=Bs(c);return d===!0?Gs(l).delete(c):d&&lI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!ap(l))return!1;var u=Bs(l);return u===!0?Gs(d).has(l):u&&lI(u,d.id)}}),cI(o,r?{get:function(l){var d=a(this);if(ap(l)){var u=Bs(l);if(u===!0)return Gs(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 SI=h(()=>{"use strict";var jF=Zd(),hI=Se(),$s=Te(),gI=Ls(),BF=xo(),GF=op(),vI=mI(),Js=Le(),Hs=yn().enforce,JF=we(),HF=Td(),Oo=Object,VF=Array.isArray,Vs=Oo.isExtensible,yI=Oo.isFrozen,$F=Oo.isSealed,bI=Oo.freeze,WF=Oo.seal,zF=!hI.ActiveXObject&&"ActiveXObject"in hI,To,_I=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wI=GF("WeakMap",_I,vI),ri=wI.prototype,Ws=$s(ri.set),KF=function(){return jF&&JF(function(){var e=bI([]);return Ws(new wI,e,1),!yI(e)})};HF&&(zF?(To=vI.getConstructor(_I,"WeakMap",!0),BF.enable(),cp=$s(ri.delete),Po=$s(ri.has),lp=$s(ri.get),gI(ri,{delete:function(e){if(Js(e)&&!Vs(e)){var t=Hs(this);return t.frozen||(t.frozen=new To),cp(this,e)||t.frozen.delete(e)}return cp(this,e)},has:function(t){if(Js(t)&&!Vs(t)){var r=Hs(this);return r.frozen||(r.frozen=new To),Po(this,t)||r.frozen.has(t)}return Po(this,t)},get:function(t){if(Js(t)&&!Vs(t)){var r=Hs(this);return r.frozen||(r.frozen=new To),Po(this,t)?lp(this,t):r.frozen.get(t)}return lp(this,t)},set:function(t,r){if(Js(t)&&!Vs(t)){var n=Hs(this);n.frozen||(n.frozen=new To),Po(this,t)?Ws(this,t,r):n.frozen.set(t,r)}else Ws(this,t,r);return this}})):KF()&&gI(ri,{set:function(t,r){var n;return VF(t)&&(yI(t)?n=bI:$F(t)&&(n=WF)),Ws(this,t,r),n&&n(t),this}}));var cp,Po,lp});var II=h(()=>{"use strict";SI()});var AI=h((rQ,EI)=>{"use strict";Ds();Xd();II();var YF=zt();EI.exports=YF.WeakMap});var kI=h((nQ,CI)=>{"use strict";CI.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 up=h(()=>{"use strict";Ds();var QF=kI(),XF=Se(),ZF=Ao(),xI=gn();for(zs in QF)ZF(XF[zs],zs),xI[zs]=xI.Array;var zs});var PI=h((aQ,TI)=>{"use strict";var ej=AI();up();TI.exports=ej});var RI=h((sQ,OI)=>{OI.exports=PI()});var DI=h(()=>{"use strict";var tj=ae(),rj=io(),nj=Ud().indexOf,ij=go(),dp=rj([].indexOf),NI=!!dp&&1/dp([1],1,-0)<0,oj=NI||!ij("indexOf");tj({target:"Array",proto:!0,forced:oj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return NI?dp(this,t,r)||0:nj(this,t,r)}})});var qI=h((uQ,LI)=>{"use strict";DI();var aj=Ot();LI.exports=aj("Array","indexOf")});var MI=h((dQ,UI)=>{"use strict";var sj=ot(),cj=qI(),pp=Array.prototype;UI.exports=function(e){var t=e.indexOf;return e===pp||sj(pp,e)&&t===pp.indexOf?cj:t}});var jI=h((pQ,FI)=>{"use strict";var lj=MI();FI.exports=lj});var GI=h((fQ,BI)=>{BI.exports=jI()});var JI=h(()=>{"use strict";var uj=ae(),dj=Gr().map,pj=ho(),fj=pj("map");uj({target:"Array",proto:!0,forced:!fj},{map:function(t){return dj(this,t,arguments.length>1?arguments[1]:void 0)}})});var VI=h((gQ,HI)=>{"use strict";JI();var mj=Ot();HI.exports=mj("Array","map")});var WI=h((vQ,$I)=>{"use strict";var hj=ot(),gj=VI(),fp=Array.prototype;$I.exports=function(e){var t=e.map;return e===fp||hj(fp,e)&&t===fp.map?gj:t}});var KI=h((yQ,zI)=>{"use strict";var vj=WI();zI.exports=vj});var QI=h((bQ,YI)=>{YI.exports=KI()});var XI=h(()=>{"use strict";var yj=ae(),bj=at(),_j=Eo();yj({target:"Object",stat:!0,sham:!bj},{create:_j})});var e0=h((SQ,ZI)=>{"use strict";XI();var wj=zt(),Sj=wj.Object;ZI.exports=function(t,r){return Sj.create(t,r)}});var r0=h((IQ,t0)=>{"use strict";var Ij=e0();t0.exports=Ij});var i0=h((EQ,n0)=>{n0.exports=r0()});var mp=h((AQ,o0)=>{"use strict";var Ej=hr();o0.exports=function(e,t,r){return Ej.f(e,t,r)}});var c0=h((CQ,s0)=>{"use strict";var Aj=Vn(),Cj=mp(),kj=Ze(),xj=at(),a0=kj("species");s0.exports=function(e){var t=Aj(e);xj&&t&&!t[a0]&&Cj(t,a0,{configurable:!0,get:function(){return this}})}});var h0=h((kQ,m0)=>{"use strict";var l0=Eo(),Tj=mp(),u0=Ls(),Pj=lo(),Oj=js(),Rj=un(),Nj=Fs(),Dj=Os(),Ks=Rs(),Lj=c0(),Ro=at(),d0=xo().fastKey,f0=yn(),p0=f0.set,hp=f0.getterFor;m0.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){Oj(l,o),p0(l,{type:t,index:l0(null),first:null,last:null,size:0}),Ro||(l.size=0),Rj(d)||Nj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=hp(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=d0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ro?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=d0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return u0(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=l0(null),Ro?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),Ro?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=Pj(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)}}),u0(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)}}),Ro&&Tj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=hp(t),o=hp(n);Dj(e,t,function(a,s){p0(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,Ks(void 0,!0)):Ks(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),Lj(t)}}});var g0=h(()=>{"use strict";var qj=op(),Uj=h0();qj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Uj)});var v0=h(()=>{"use strict";g0()});var Hr=h((RQ,y0)=>{"use strict";var Mj=ao(),Fj=TypeError;y0.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 Fj(Mj(e)+" is not a set")}});var _0=h((NQ,b0)=>{"use strict";b0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Vr=h((DQ,S0)=>{"use strict";var jj=Vn(),gp=_0(),w0=jj("Set"),Bj=w0.prototype;S0.exports={Set:w0,add:gp("add",1),has:gp("has",1),remove:gp("delete",1),proto:Bj}});var $r=h((LQ,I0)=>{"use strict";var Gj=Mt();I0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=Gj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ni=h((qQ,E0)=>{"use strict";var Jj=$r();E0.exports=function(e,t,r){return r?Jj(e.keys(),t,!0):e.forEach(t)}});var Ys=h((UQ,C0)=>{"use strict";var A0=Vr(),Hj=ni(),Vj=A0.Set,$j=A0.add;C0.exports=function(e){var t=new Vj;return Hj(e,function(r){$j(t,r)}),t}});var ii=h((MQ,k0)=>{"use strict";k0.exports=function(e){return e.size}});var T0=h((FQ,x0)=>{"use strict";x0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Wr=h((jQ,L0)=>{"use strict";var P0=pn(),N0=mr(),O0=Mt(),Wj=po(),zj=T0(),R0="Invalid size",Kj=RangeError,Yj=TypeError,Qj=Math.max,D0=function(e,t){this.set=e,this.size=Qj(t,0),this.has=P0(e.has),this.keys=P0(e.keys)};D0.prototype={getIterator:function(){return zj(N0(O0(this.keys,this.set)))},includes:function(e){return O0(this.has,this.set,e)}};L0.exports=function(e){N0(e);var t=+e.size;if(t!==t)throw new Yj(R0);var r=Wj(t);if(r<0)throw new Kj(R0);return new D0(e,r)}});var F0=h((BQ,M0)=>{"use strict";var Xj=Hr(),U0=Vr(),Zj=Ys(),eB=ii(),tB=Wr(),rB=ni(),nB=$r(),iB=U0.has,q0=U0.remove;M0.exports=function(t){var r=Xj(this),n=tB(t),i=Zj(r);return eB(r)<=n.size?rB(r,function(o){n.includes(o)&&q0(i,o)}):nB(n.getIterator(),function(o){iB(r,o)&&q0(i,o)}),i}});var zr=h((GQ,j0)=>{"use strict";j0.exports=function(){return!1}});var B0=h(()=>{"use strict";var oB=ae(),aB=F0(),sB=zr(),cB=!sB("difference",function(e){return e.size===0});oB({target:"Set",proto:!0,real:!0,forced:cB},{difference:aB})});var H0=h((VQ,J0)=>{"use strict";var lB=Hr(),vp=Vr(),uB=ii(),dB=Wr(),pB=ni(),fB=$r(),mB=vp.Set,G0=vp.add,hB=vp.has;J0.exports=function(t){var r=lB(this),n=dB(t),i=new mB;return uB(r)>n.size?fB(n.getIterator(),function(o){hB(r,o)&&G0(i,o)}):pB(r,function(o){n.includes(o)&&G0(i,o)}),i}});var V0=h(()=>{"use strict";var gB=ae(),vB=we(),yB=H0(),bB=zr(),_B=!bB("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||vB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});gB({target:"Set",proto:!0,real:!0,forced:_B},{intersection:yB})});var W0=h((zQ,$0)=>{"use strict";var wB=Hr(),SB=Vr().has,IB=ii(),EB=Wr(),AB=ni(),CB=$r(),kB=Us();$0.exports=function(t){var r=wB(this),n=EB(t);if(IB(r)<=n.size)return AB(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return CB(i,function(o){if(SB(r,o))return kB(i,"normal",!1)})!==!1}});var z0=h(()=>{"use strict";var xB=ae(),TB=W0(),PB=zr(),OB=!PB("isDisjointFrom",function(e){return!e});xB({target:"Set",proto:!0,real:!0,forced:OB},{isDisjointFrom:TB})});var Y0=h((QQ,K0)=>{"use strict";var RB=Hr(),NB=ii(),DB=ni(),LB=Wr();K0.exports=function(t){var r=RB(this),n=LB(t);return NB(r)>n.size?!1:DB(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Q0=h(()=>{"use strict";var qB=ae(),UB=Y0(),MB=zr(),FB=!MB("isSubsetOf",function(e){return e});qB({target:"Set",proto:!0,real:!0,forced:FB},{isSubsetOf:UB})});var Z0=h((eX,X0)=>{"use strict";var jB=Hr(),BB=Vr().has,GB=ii(),JB=Wr(),HB=$r(),VB=Us();X0.exports=function(t){var r=jB(this),n=JB(t);if(GB(r)<n.size)return!1;var i=n.getIterator();return HB(i,function(o){if(!BB(r,o))return VB(i,"normal",!1)})!==!1}});var eE=h(()=>{"use strict";var $B=ae(),WB=Z0(),zB=zr(),KB=!zB("isSupersetOf",function(e){return!e});$B({target:"Set",proto:!0,real:!0,forced:KB},{isSupersetOf:WB})});var rE=h((nX,tE)=>{"use strict";var YB=Hr(),yp=Vr(),QB=Ys(),XB=Wr(),ZB=$r(),eG=yp.add,tG=yp.has,rG=yp.remove;tE.exports=function(t){var r=YB(this),n=XB(t).getIterator(),i=QB(r);return ZB(n,function(o){tG(r,o)?rG(i,o):eG(i,o)}),i}});var nE=h(()=>{"use strict";var nG=ae(),iG=rE(),oG=zr();nG({target:"Set",proto:!0,real:!0,forced:!oG("symmetricDifference")},{symmetricDifference:iG})});var oE=h((aX,iE)=>{"use strict";var aG=Hr(),sG=Vr().add,cG=Ys(),lG=Wr(),uG=$r();iE.exports=function(t){var r=aG(this),n=lG(t).getIterator(),i=cG(r);return uG(n,function(o){sG(i,o)}),i}});var aE=h(()=>{"use strict";var dG=ae(),pG=oE(),fG=zr();dG({target:"Set",proto:!0,real:!0,forced:!fG("union")},{union:pG})});var No=h((lX,sE)=>{"use strict";var mG=Xn(),hG=String;sE.exports=function(e){if(mG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return hG(e)}});var dE=h((uX,uE)=>{"use strict";var bp=Te(),gG=po(),vG=No(),yG=dn(),bG=bp("".charAt),cE=bp("".charCodeAt),_G=bp("".slice),lE=function(e){return function(t,r){var n=vG(yG(t)),i=gG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=cE(n,i),a<55296||a>56319||i+1===o||(s=cE(n,i+1))<56320||s>57343?e?bG(n,i):a:e?_G(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};uE.exports={codeAt:lE(!1),charAt:lE(!0)}});var hE=h(()=>{"use strict";var wG=dE().charAt,SG=No(),fE=yn(),IG=Os(),pE=Rs(),mE="String Iterator",EG=fE.set,AG=fE.getterFor(mE);IG(String,"String",function(e){EG(this,{type:mE,string:SG(e),index:0})},function(){var t=AG(this),r=t.string,n=t.index,i;return n>=r.length?pE(void 0,!0):(i=wG(r,n),t.index+=i.length,pE(i,!1))})});var vE=h((fX,gE)=>{"use strict";Ds();Xd();v0();B0();V0();z0();Q0();eE();nE();aE();hE();var CG=zt();gE.exports=CG.Set});var bE=h((mX,yE)=>{"use strict";var kG=vE();up();yE.exports=kG});var wE=h((hX,_E)=>{_E.exports=bE()});var IE=h(SE=>{"use strict";SE.f=Object.getOwnPropertySymbols});var kE=h((vX,CE)=>{"use strict";var EE=at(),xG=Te(),TG=Mt(),PG=we(),_p=jd(),OG=IE(),RG=Uu(),NG=Wn(),DG=cs(),oi=Object.assign,AE=Object.defineProperty,LG=xG([].concat);CE.exports=!oi||PG(function(){if(EE&&oi({b:1},oi(AE({},"a",{enumerable:!0,get:function(){AE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),oi({},e)[r]!==7||_p(oi({},t)).join("")!==n})?function(t,r){for(var n=NG(t),i=arguments.length,o=1,a=OG.f,s=RG.f;i>o;)for(var c=DG(arguments[o++]),l=a?LG(_p(c),a(c)):_p(c),d=l.length,u=0,p;d>u;)p=l[u++],(!EE||TG(s,c,p))&&(n[p]=c[p]);return n}:oi});var TE=h(()=>{"use strict";var qG=ae(),xE=kE();qG({target:"Object",stat:!0,arity:2,forced:Object.assign!==xE},{assign:xE})});var OE=h((_X,PE)=>{"use strict";TE();var UG=zt();PE.exports=UG.Object.assign});var NE=h((wX,RE)=>{"use strict";var MG=OE();RE.exports=MG});var LE=h((SX,DE)=>{DE.exports=NE()});var wp=h((IX,qE)=>{"use strict";qE.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 FE=h((EX,ME)=>{"use strict";var FG=Te(),jG=dn(),BG=No(),Ip=wp(),UE=FG("".replace),GG=RegExp("^["+Ip+"]+"),JG=RegExp("(^|[^"+Ip+"])["+Ip+"]+$"),Sp=function(e){return function(t){var r=BG(jG(t));return e&1&&(r=UE(r,GG,"")),e&2&&(r=UE(r,JG,"$1")),r}};ME.exports={start:Sp(1),end:Sp(2),trim:Sp(3)}});var JE=h((AX,GE)=>{"use strict";var HG=Ld().PROPER,VG=we(),jE=wp(),BE="\u200B\x85\u180E";GE.exports=function(e){return VG(function(){return!!jE[e]()||BE[e]()!==BE||HG&&jE[e].name!==e})}});var HE=h(()=>{"use strict";var $G=ae(),WG=FE().trim,zG=JE();$G({target:"String",proto:!0,forced:zG("trim")},{trim:function(){return WG(this)}})});var $E=h((xX,VE)=>{"use strict";HE();var KG=Ot();VE.exports=KG("String","trim")});var zE=h((TX,WE)=>{"use strict";var YG=ot(),QG=$E(),Ep=String.prototype;WE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Ep||YG(Ep,e)&&t===Ep.trim?QG:t}});var YE=h((PX,KE)=>{"use strict";var XG=zE();KE.exports=XG});var XE=h((OX,QE)=>{QE.exports=YE()});var tA=h(()=>{"use strict";var ZG=ae(),ZE=fo(),eJ=ld(),tJ=Le(),eA=qd(),rJ=Qn(),nJ=jr(),iJ=md(),oJ=Ze(),aJ=ho(),sJ=yo(),cJ=aJ("slice"),lJ=oJ("species"),Ap=Array,uJ=Math.max;ZG({target:"Array",proto:!0,forced:!cJ},{slice:function(t,r){var n=nJ(this),i=rJ(n),o=eA(t,i),a=eA(r===void 0?i:r,i),s,c,l;if(ZE(n)&&(s=n.constructor,eJ(s)&&(s===Ap||ZE(s.prototype))?s=void 0:tJ(s)&&(s=s[lJ],s===null&&(s=void 0)),s===Ap||s===void 0))return sJ(n,o,a);for(c=new(s===void 0?Ap:s)(uJ(a-o,0)),l=0;o<a;o++,l++)o in n&&iJ(c,l,n[o]);return c.length=l,c}})});var nA=h((DX,rA)=>{"use strict";tA();var dJ=Ot();rA.exports=dJ("Array","slice")});var oA=h((LX,iA)=>{"use strict";var pJ=ot(),fJ=nA(),Cp=Array.prototype;iA.exports=function(e){var t=e.slice;return e===Cp||pJ(Cp,e)&&t===Cp.slice?fJ:t}});var sA=h((qX,aA)=>{"use strict";var mJ=oA();aA.exports=mJ});var lA=h((UX,cA)=>{cA.exports=sA()});var kp=x(()=>{});var dA=h((FX,uA)=>{"use strict";var hJ=Le(),gJ=fr(),vJ=Ze(),yJ=vJ("match");uA.exports=function(e){var t;return hJ(e)&&((t=e[yJ])!==void 0?!!t:gJ(e)==="RegExp")}});var fA=h((jX,pA)=>{"use strict";var bJ=dA(),_J=TypeError;pA.exports=function(e){if(bJ(e))throw new _J("The method doesn't accept regular expressions");return e}});var hA=h((BX,mA)=>{"use strict";var wJ=Ze(),SJ=wJ("match");mA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[SJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var yA=h(()=>{"use strict";var IJ=ae(),EJ=io(),AJ=ed().f,CJ=ad(),gA=No(),kJ=fA(),xJ=dn(),TJ=hA(),PJ=$n(),OJ=EJ("".slice),RJ=Math.min,vA=TJ("startsWith"),NJ=!PJ&&!vA&&!!function(){var e=AJ(String.prototype,"startsWith");return e&&!e.writable}();IJ({target:"String",proto:!0,forced:!NJ&&!vA},{startsWith:function(t){var r=gA(xJ(this));kJ(t);var n=CJ(RJ(arguments.length>1?arguments[1]:void 0,r.length)),i=gA(t);return OJ(r,n,n+i.length)===i}})});var _A=h((HX,bA)=>{"use strict";yA();var DJ=Ot();bA.exports=DJ("String","startsWith")});var SA=h((VX,wA)=>{"use strict";var LJ=ot(),qJ=_A(),xp=String.prototype;wA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===xp||LJ(xp,e)&&t===xp.startsWith?qJ:t}});var EA=h(($X,IA)=>{"use strict";var UJ=SA();IA.exports=UJ});var CA=h((WX,AA)=>{AA.exports=EA()});var OA=h((zX,PA)=>{"use strict";var xA=Te(),MJ=pn(),FJ=Le(),jJ=It(),kA=yo(),BJ=Hn(),TA=Function,GJ=xA([].concat),JJ=xA([].join),Tp={},HJ=function(e,t,r){if(!jJ(Tp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Tp[t]=TA("C,a","return new C("+JJ(n,",")+")")}return Tp[t](e,r)};PA.exports=BJ?TA.bind:function(t){var r=MJ(this),n=r.prototype,i=kA(arguments,1),o=function(){var s=GJ(i,kA(arguments));return this instanceof o?HJ(r,s.length,s):r.apply(t,s)};return FJ(n)&&(o.prototype=n),o}});var NA=h(()=>{"use strict";var VJ=ae(),RA=OA();VJ({target:"Function",proto:!0,forced:Function.bind!==RA},{bind:RA})});var LA=h((QX,DA)=>{"use strict";NA();var $J=Ot();DA.exports=$J("Function","bind")});var UA=h((XX,qA)=>{"use strict";var WJ=ot(),zJ=LA(),Pp=Function.prototype;qA.exports=function(e){var t=e.bind;return e===Pp||WJ(Pp,e)&&t===Pp.bind?zJ:t}});var FA=h((ZX,MA)=>{"use strict";var KJ=UA();MA.exports=KJ});var BA=h((eZ,jA)=>{jA.exports=FA()});function hc(e,t){Pe.__h&&Pe.__h(ve,e,jo||t),jo=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tr(e){return jo=1,YJ(TC,e)}function YJ(e,t,r){var n=hc(li++,2);if(n.t=e,!n.__c&&(n.__=[TC(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=ve,!ve.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Qp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,EC.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,qe.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};ve.__f=!0;var o=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.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)},ve.shouldComponentUpdate=i}return n.__N||n.__}function _n(e,t){var r=hc(li++,3);!Pe.__s&&xC(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function qo(e){return jo=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=hc(li++,7);return xC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return jo=8,_r(function(){return e},t)}function QJ(e){var t=ve.context[e.__c],r=hc(li++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function XJ(){for(var e;e=kC.shift();)if(e.__P&&e.__H)try{var t,r;(0,qe.default)(t=e.__H.__h).call(t,tc),(0,qe.default)(r=e.__H.__h).call(r,Fp),e.__H.__h=[]}catch(n){e.__H.__h=[],Pe.__e(n,e.__v)}}function ZJ(e){var t,r=function(){clearTimeout(n),KA&&cancelAnimationFrame(t),(0,er.default)(e)},n=(0,er.default)(r,100);KA&&(t=requestAnimationFrame(r))}function tc(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Fp(e){var t=ve;e.__c=e.__(),ve=t}function xC(e,t){return!e||e.length!==t.length||(0,lc.default)(t).call(t,function(r,n){return r!==e[n]})}function TC(e,t){return typeof t=="function"?t(e):t}function e2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jp(){throw new Error("setTimeout has not been defined")}function Bp(){throw new Error("clearTimeout has not been defined")}function OC(e){if(Kt===er.default)return(0,er.default)(e,0);if((Kt===jp||!Kt)&&er.default)return Kt=er.default,(0,er.default)(e,0);try{return Kt(e,0)}catch(t){try{return Kt.call(null,e,0)}catch(r){return Kt.call(this,e,0)}}}function t2(e){if(Yt===clearTimeout)return clearTimeout(e);if((Yt===Bp||!Yt)&&clearTimeout)return Yt=clearTimeout,clearTimeout(e);try{return Yt(e)}catch(t){try{return Yt.call(null,e)}catch(r){return Yt.call(this,e)}}}function r2(){!ai||!Yr||(ai=!1,Yr.length?br=(0,mc.default)(Yr).call(Yr,br):rc=-1,br.length&&RC())}function RC(){if(!ai){var e=OC(r2);ai=!0;for(var t=br.length;t;){for(Yr=br,br=[];++rc<t;)Yr&&Yr[rc].run();rc=-1,t=br.length}Yr=null,ai=!1,t2(e)}}function NC(e,t){this.fun=e,this.array=t}function Sr(){}function o2(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 a2(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 u2(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function qC(e){return(0,ef.default)(e).call(e)}function d2(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function Gp(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function Bo(e,t,r){return(0,tf.default)(e).call(e,t,r)}function Qt(e){return e.length}function af(e){return e.length}function Qs(e,t){return t.push(e),e}function p2(e,t){return(0,Fo.default)(e).call(e,t).join("")}function yc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:vc,column:ui,length:a,return:""}}function Do(e,t){return l2(yc("",null,null,"",null,null,0),e,{length:-e.length},t)}function f2(){return Oe}function m2(){return Oe=dt>0?$e(pi,--dt):0,ui--,Oe===10&&(ui=1,vc--),Oe}function Et(){return Oe=dt<UC?$e(pi,dt++):0,ui++,Oe===10&&(ui=1,vc++),Oe}function rr(){return $e(pi,dt)}function nc(){return dt}function Wo(e,t){return Bo(pi,e,t)}function Go(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function MC(e){return vc=ui=1,UC=Qt(pi=e),dt=0,[]}function FC(e){return pi="",e}function ic(e){return qC(Wo(dt-1,Jp(e===91?e+2:e===40?e+1:e)))}function h2(e){for(;(Oe=rr())&&Oe<33;)Et();return Go(e)>2||Go(Oe)>3?"":" "}function g2(e,t){for(;--t&&Et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Wo(e,nc()+(t<6&&rr()==32&&Et()==32))}function Jp(e){for(;Et();)switch(Oe){case e:return dt;case 34:case 39:e!==34&&e!==39&&Jp(Oe);break;case 40:e===41&&Jp(e);break;case 92:Et();break}return dt}function v2(e,t){for(;Et()&&e+Oe!==57&&!(e+Oe===84&&rr()===47););return"/*"+Wo(t,dt-1)+"*"+gc(e===47?e:Et())}function y2(e){for(;!Go(rr());)Et();return Wo(e,dt)}function b2(e){return FC(oc("",null,null,null,[""],e=MC(e),0,[0],e))}function oc(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,w=0,I="",C=i,T=o,k=n,A=I;b;)switch(m=w,w=Et()){case 40:if(m!=108&&$e(A,u-1)==58){Gp(A+=ne(ic(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ic(w);break;case 9:case 10:case 13:case 32:A+=h2(m);break;case 92:A+=g2(nc()-1,7);continue;case 47:switch(rr()){case 42:case 47:Qs(_2(v2(Et(),nc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Qt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Qt(A)-u&&Qs(f>32?QA(A+";",n,r,u-1):QA(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(Qs(k=YA(A,t,r,l,d,i,s,I,C=[],T=[],u),o),w===123)if(d===0)oc(A,t,k,k,C,o,u,s,T);else switch(p===99&&$e(A,3)===110?100:p){case 100:case 109:case 115:oc(e,k,k,n&&Qs(YA(e,k,k,0,0,i,s,I,i,C=[],u),T),i,T,u,s,n?C:T);break;default:oc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,I=A="",u=a;break;case 58:u=1+Qt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&m2()==125)continue}switch(A+=gc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Qt(A)-1)*y,y=1;break;case 64:rr()===45&&(A+=ic(Et())),p=rr(),d=u=Qt(I=A+=y2(nc())),w++;break;case 45:m===45&&Qt(A)==2&&(v=0)}}return o}function YA(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=af(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Bo(e,u+1,u=c2(v=a[m])),I=e;y<f;++y)(I=qC(v>0?p[y]+" "+w:ne(w,/&\f/g,p[y])))&&(c[b++]=I);return yc(e,t,r,i===0?nf:s,c,l,d)}function _2(e,t,r){return yc(e,t,r,rf,gc(f2()),Bo(e,2,-2),0)}function QA(e,t,r,n){return yc(e,t,r,of,Bo(e,0,n),Bo(e,n+1,-1),n)}function si(e,t){for(var r="",n=af(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function w2(e,t,r,n){switch(e.type){case s2:case of:return e.return=e.return||e.value;case rf:return"";case LC:return e.return=e.value+"{"+si(e.children,n)+"}";case nf:e.value=e.props.join(",")}return Qt(r=si(e.children,n))?e.return=e.value+"{"+r+"}":""}function S2(e){var t=af(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 I2(e){return function(t){t.root||(t=t.return)&&e(t)}}function BC(e,t){switch(u2(e,t)){case 5103:return X+"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 X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+dc+e+et+e+e;case 6828:case 4268:return X+e+et+e+e;case 6165:return X+e+et+"flex-"+e+e;case 5187:return X+e+ne(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return X+e+et+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return X+e+et+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+et+ne(e,"shrink","negative")+e;case 5292:return X+e+et+ne(e,"basis","preferred-size")+e;case 6060:return X+"box-"+ne(e,"-grow","")+X+e+et+ne(e,"grow","positive")+e;case 4554:return X+ne(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,X+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+dc+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gp(e,"stretch")?BC(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,Qt(e)-3-(~Gp(e,"!important")&&10))){case 107:return ne(e,":",":"+X)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+($e(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return X+e+et+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+et+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+et+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+et+e+e}return e}function JC(){if(eC)return Xs.exports;eC=1;let e=JC();return Xs.exports={default:e},Xs.exports.default=e,Xs.exports}function Jo(e,t,r){var n,i="";return(0,qe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function U2(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 F2(e){var t=(0,AC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ho(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Xt={name:i.name,styles:i.styles,next:Xt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xt={name:a.name,styles:a.styles,next:Xt},a=a.next;var s=o.styles+";";return s}return G2(e,t,r)}case"function":{if(e!==void 0){var c=Xt,l=r(e);return Xt=c,Ho(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function G2(e,t,r){var n="";if((0,Mo.default)(r))for(var i=0;i<r.length;i++)n+=Ho(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":tC(s)&&(n+=Rp(o)+":"+rC(o,s)+";")}else if((0,Mo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)tC(a[c])&&(n+=Rp(o)+":"+rC(o,a[c])+";");else{var l=Ho(e,t,a);switch(o){case"animation":case"animationName":{n+=Rp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Qr(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="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ho(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ho(r,t,e[s]),n){var c=o;i+=c[s]}nC.lastIndex=0;for(var l="",d;(d=nC.exec(i))!==null;)l+="-"+d[1];var u=U2(i)+l;return{name:u,styles:i,next:Xt}}function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t)}function Z2(e,t,r){var n=[],i=Jo(e,n,r);return n.length<2?r:i+t(n)}function _(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:--rH,__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 L.vnode&&L.vnode(l),l}function zo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=tr(e());return _n(()=>{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 _5(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 ek(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=_5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function w5(e){let t=()=>ek(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function E5(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=I5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Xe("img",G(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||{})}))}):_("div",G(P({},a),{ref:l,className:i,children:r}))}function A5(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?Xe(i.type,G(P({},i.props),{style:G(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?Xe(e.type,G(P({},e.props),{style:G(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 P5(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 hC(e,t,r){return _c.call(t,"css")?_(uf,zC(e,t),r):_(e,t,r)}function q5(e,t,r){return _c.call(t,"css")?_(uf,zC(e,t),r):_(e,t,r)}function zp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(He,{children:t[s]},o):null}return _(He,{children:i},o)})})}function F5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=tr(!1);return a?null:_("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function G5({children:e,style:t}){return _("div",{style:`${j5.styles} ${t}`,children:[e,_("svg",{style:`${B5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function n3(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function mk(e){return(0,ef.default)(e).call(e)}function i3(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,r){return e.replace(t,r)}function Kp(e,t){return(0,wr.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function Vo(e,t,r){return(0,tf.default)(e).call(e,t,r)}function Zt(e){return e.length}function hf(e){return e.length}function ec(e,t){return t.push(e),e}function o3(e,t){return(0,Fo.default)(e).call(e,t).join("")}function Cc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ac,column:di,length:a,return:""}}function Lo(e,t){return r3(Cc("",null,null,"",null,null,0),e,{length:-e.length},t)}function a3(){return Re}function s3(){return Re=pt>0?We(mi,--pt):0,di--,Re===10&&(di=1,Ac--),Re}function At(){return Re=pt<hk?We(mi,pt++):0,di++,Re===10&&(di=1,Ac++),Re}function nr(){return We(mi,pt)}function ac(){return pt}function Ko(e,t){return Vo(mi,e,t)}function $o(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 gk(e){return Ac=di=1,hk=Zt(mi=e),pt=0,[]}function vk(e){return mi="",e}function sc(e){return mk(Ko(pt-1,Yp(e===91?e+2:e===40?e+1:e)))}function c3(e){for(;(Re=nr())&&Re<33;)At();return $o(e)>2||$o(Re)>3?"":" "}function l3(e,t){for(;--t&&At()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Ko(e,ac()+(t<6&&nr()==32&&At()==32))}function Yp(e){for(;At();)switch(Re){case e:return pt;case 34:case 39:e!==34&&e!==39&&Yp(Re);break;case 40:e===41&&Yp(e);break;case 92:At();break}return pt}function u3(e,t){for(;At()&&e+Re!==57&&!(e+Re===84&&nr()===47););return"/*"+Ko(t,pt-1)+"*"+Ec(e===47?e:At())}function d3(e){for(;!$o(nr());)At();return Ko(e,pt)}function p3(e){return vk(cc("",null,null,null,[""],e=gk(e),0,[0],e))}function cc(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,w=0,I="",C=i,T=o,k=n,A=I;b;)switch(m=w,w=At()){case 40:if(m!=108&&We(A,u-1)==58){Kp(A+=ee(sc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=sc(w);break;case 9:case 10:case 13:case 32:A+=c3(m);break;case 92:A+=l3(ac()-1,7);continue;case 47:switch(nr()){case 42:case 47:ec(f3(u3(At(),ac()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Zt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=ee(A,/\f/g,"")),f>0&&Zt(A)-u&&ec(f>32?vC(A+";",n,r,u-1):vC(ee(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(ec(k=gC(A,t,r,l,d,i,s,I,C=[],T=[],u),o),w===123)if(d===0)cc(A,t,k,k,C,o,u,s,T);else switch(p===99&&We(A,3)===110?100:p){case 100:case 108:case 109:case 115:cc(e,k,k,n&&ec(gC(e,k,k,0,0,i,s,I,i,C=[],u),T),i,T,u,s,n?C:T);break;default:cc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,I=A="",u=a;break;case 58:u=1+Zt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&s3()==125)continue}switch(A+=Ec(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Zt(A)-1)*y,y=1;break;case 64:nr()===45&&(A+=sc(At())),p=nr(),d=u=Zt(I=A+=d3(ac())),w++;break;case 45:m===45&&Zt(A)==2&&(v=0)}}return o}function gC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=hf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Vo(e,u+1,u=t3(v=a[m])),I=e;y<f;++y)(I=mk(v>0?p[y]+" "+w:ee(w,/&\f/g,p[y])))&&(c[b++]=I);return Cc(e,t,r,i===0?ff:s,c,l,d)}function f3(e,t,r){return Cc(e,t,r,pk,Ec(a3()),Vo(e,2,-2),0)}function vC(e,t,r,n){return Cc(e,t,r,mf,Vo(e,0,n),Vo(e,n+1,-1),n)}function ci(e,t){for(var r="",n=hf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function m3(e,t,r,n){switch(e.type){case e3:if(e.children.length)break;case Z5:case mf:return e.return=e.return||e.value;case pk:return"";case fk:return e.return=e.value+"{"+ci(e.children,n)+"}";case ff:e.value=e.props.join(",")}return Zt(r=ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function h3(e){var t=hf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function g3(e){return function(t){t.root||(t=t.return)&&e(t)}}function yk(e,t){switch(n3(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+fc+e+tt+e+e;case 6828:case 4268:return Z+e+tt+e+e;case 6165:return Z+e+tt+"flex-"+e+e;case 5187:return Z+e+ee(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Z+e+tt+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Z+e+tt+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+tt+ee(e,"shrink","negative")+e;case 5292:return Z+e+tt+ee(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ee(e,"-grow","")+Z+e+tt+ee(e,"grow","positive")+e;case 4554:return Z+ee(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+fc+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kp(e,"stretch")?yk(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Zt(e)-3-(~Kp(e,"!important")&&10))){case 107:return ee(e,":",":"+Z)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(We(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return Z+e+tt+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+tt+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+tt+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+tt+e+e}return e}function bC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Up(e,t,r){var n=[],i=Jo(e,n,r);return n.length<2?r:i+t(n)}function SC(e){if(e==="top"){let t=0;bk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${_C}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${_C}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+wC)})}else if(e==="center"){let t=0;_k.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+wC)})}}function wn(){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 Uo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Fr(_(N3,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Uo.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&&(Fr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Uo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Qp,EC,qe,mc,lc,er,uc,Mo,Xp,wr,Fo,AC,CC,Zp,ef,tf,oZ,Mp,li,ve,Op,GA,jo,kC,Pe,JA,HA,VA,$A,WA,zA,KA,PC,Ce,Kt,Yt,br,ai,Yr,rc,n2,Ue,i2,DC,et,dc,X,rf,nf,of,s2,LC,c2,gc,l2,vc,ui,UC,dt,Oe,pi,E2,A2,C2,XA,k2,x2,T2,P2,O2,jC,R2,ZA,N2,D2,L2,GC,Xs,eC,q2,sf,bc,M2,j2,B2,HC,tC,Rp,rC,nC,Xt,J2,VC,$C,iC,_c,cf,WC,lf,wc,H2,V2,$2,W2,z2,Hp,Vp,zC,K2,uf,Y2,oC,Q2,X2,eH,tH,Np,aC,Dp,Lp,rH,qp,nH,iH,oH,aH,sH,cH,lH,sC,uH,dH,pH,cC,fH,mH,hH,lC,gH,vH,yH,uC,bH,_H,wH,SH,IH,EH,AH,CH,kH,xH,TH,dC,PH,OH,RH,NH,DH,LH,qH,UH,MH,FH,jH,pC,BH,GH,JH,HH,VH,$H,WH,zH,KH,YH,QH,XH,ZH,e5,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,KC,YC,QC,$p,b5,XC,ZC,pc,Uo,fC,S5,Sc,I5,tk,rk,nk,C5,k5,x5,Wp,T5,ik,ok,Ic,df,fi,mC,Kr,ak,bn,O5,R5,N5,D5,L5,Zs,sk,pf,Ie,U5,M5,j5,B5,Bt,J5,H5,ck,lk,uk,dk,Xr,V5,$5,W5,z5,K5,Y5,Q5,X5,tt,fc,Z,pk,ff,mf,Z5,fk,e3,t3,Ec,r3,Ac,di,hk,pt,Re,mi,v3,y3,b3,yC,_3,w3,S3,I3,E3,A3,C3,k3,x3,T3,P3,O3,_C,wC,bk,_k,Ir,IC,R3,N3,aZ,ir=x(()=>{"use strict";Jn();Qp=se(mb(),1),EC=se(Eb(),1),qe=se(Ub(),1),mc=se(Xb(),1),lc=se(s_(),1),er=se(A_(),1);ws();ws();uc=se(lw(),1),Mo=se(gw(),1),Xp=se(RI(),1),wr=se(GI(),1),Fo=se(QI(),1),AC=se(i0(),1),CC=se(wE(),1),Zp=se(LE(),1),ef=se(XE(),1),tf=se(lA(),1);kp();kp();oZ=se(CA(),1),Mp=se(BA(),1),jo=0,kC=[],Pe=L,JA=Pe.__b,HA=Pe.__r,VA=Pe.diffed,$A=Pe.__c,WA=Pe.unmount,zA=Pe.__;Pe.__b=function(e){ve=null,JA&&JA(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zA&&zA(e,t)},Pe.__r=function(e){var t,r,n;HA&&HA(e),li=0;var i=(ve=e.__c).__H;i&&(Op===ve?(i.__h=[],ve.__h=[],(0,qe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,qe.default)(r=i.__h).call(r,tc),(0,qe.default)(n=i.__h).call(n,Fp),i.__h=[],li=0)),Op=ve},Pe.diffed=function(e){var t;VA&&VA(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(kC.push(r)!==1&&GA===Pe.requestAnimationFrame||((GA=Pe.requestAnimationFrame)||ZJ)(XJ)),(0,qe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Op=ve=null},Pe.__c=function(e,t){(0,lc.default)(t).call(t,function(r){try{var n,i;(0,qe.default)(n=r.__h).call(n,tc),r.__h=(0,Qp.default)(i=r.__h).call(i,function(o){return!o.__||Fp(o)})}catch(o){(0,lc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Pe.__e(o,r.__v)}}),$A&&$A(e,t)},Pe.unmount=function(e){var t;WA&&WA(e);var r,n=e.__c;n&&n.__H&&((0,qe.default)(t=n.__H.__).call(t,function(i){try{tc(i)}catch(o){r=o}}),n.__H=void 0,r&&Pe.__e(r,n.__v))};KA=typeof requestAnimationFrame=="function";PC={exports:{}},Ce=PC.exports={};(function(){try{typeof er.default=="function"?Kt=er.default:Kt=jp}catch(e){Kt=jp}try{typeof clearTimeout=="function"?Yt=clearTimeout:Yt=Bp}catch(e){Yt=Bp}})();br=[],ai=!1,rc=-1;Ce.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];br.push(new NC(e,t)),br.length===1&&!ai&&OC(RC)};NC.prototype.run=function(){this.fun.apply(null,this.array)};Ce.title="browser";Ce.browser=!0;Ce.env={};Ce.argv=[];Ce.version="";Ce.versions={};Ce.on=Sr;Ce.addListener=Sr;Ce.once=Sr;Ce.off=Sr;Ce.removeListener=Sr;Ce.removeAllListeners=Sr;Ce.emit=Sr;Ce.prependListener=Sr;Ce.prependOnceListener=Sr;Ce.listeners=function(e){return[]};Ce.binding=function(e){throw new Error("process.binding is not supported")};Ce.cwd=function(){return"/"};Ce.chdir=function(e){throw new Error("process.chdir is not supported")};Ce.umask=function(){return 0};n2=PC.exports,Ue=e2(n2),i2=uc.default||void 0||self;DC=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,qe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(a2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=o2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,qe.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}(),et="-ms-",dc="-moz-",X="-webkit-",rf="comm",nf="rule",of="decl",s2="@import",LC="@keyframes",c2=Math.abs,gc=String.fromCharCode,l2=Zp.default;vc=1,ui=1,UC=0,dt=0,Oe=0,pi="";E2=function(e,t,r){for(var n=0,i=0;n=i,i=rr(),n===38&&i===12&&(t[r]=1),!Go(i);)Et();return Wo(e,dt)},A2=function(e,t){var r=-1,n=44;do switch(Go(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=E2(dt-1,t,r);break;case 2:e[r]+=ic(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=gc(n)}while(n=Et());return e},C2=function(e,t){return FC(A2(MC(e),t))},XA=new Xp.default,k2=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&&!XA.get(r))&&!n){XA.set(e,!0);for(var i=[],o=C2(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]}}},x2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},T2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",P2=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,T2)>-1},O2=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(P2(c))return;break}}(0,qe.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".')})}}}},jC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},R2=function(e,t){for(var r=e-1;r>=0;r--)if(!jC(t[r]))return!0;return!1},ZA=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},N2=function(e,t,r){jC(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."),ZA(e)):R2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ZA(e)))};D2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case of:e.return=BC(e.value,e.length);break;case LC:return si([Do(e,{value:ne(e.value,"@","@"+X)})],n);case nf:if(e.length)return p2(e.props,function(i){switch(d2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return si([Do(e,{props:[ne(i,/:(read-\w+)/,":"+dc+"$1")]})],n);case"::placeholder":return si([Do(e,{props:[ne(i,/:(plac\w+)/,":"+X+"input-$1")]}),Do(e,{props:[ne(i,/:(plac\w+)/,":"+dc+"$1")]}),Do(e,{props:[ne(i,/:(plac\w+)/,et+"input-$1")]})],n)}return""})}},L2=[D2],GC=function(e){var t=e.key;if(Ue.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,qe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||L2;if(Ue.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,qe.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=[k2,x2];Ue.env.NODE_ENV!=="production"&&c.push(O2({get compat(){return f.compat}}),N2);{var l,d=[w2,Ue.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==rf&&l.insert(m.value+"{}"))}:I2(function(m){l.insert(m)})],u=S2((0,mc.default)(c).call(c,n,d)),p=function(m){return si(b2(m),u)};s=function(m,v,b,y){l=b,Ue.env.NODE_ENV!=="production"&&(0,Fo.default)(v)!==void 0&&(l={insert:function(w){b.insert(w+(0,Fo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new DC({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},Xs={exports:{}};JC();q2=!0;sf=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||q2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},bc=function(e,t,r){sf(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)}};M2={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};j2=/[A-Z]|^ms/g,B2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HC=function(e){return e.charCodeAt(1)===45},tC=function(e){return e!=null&&typeof e!="boolean"},Rp=F2(function(e){return HC(e)?e:e.replace(j2,"-$&").toLowerCase()}),rC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(B2,function(r,n,i){return Xt={name:n,styles:i,next:Xt},n})}return M2[e]!==1&&!HC(e)&&typeof t=="number"&&t!==0?t+"px":t};nC=/label:\s*([^\s;{]+)\s*(;|$)/g;J2=function(e){return e()},VC=Ed?Ed:!1,$C=VC||J2,iC=VC||Zn,_c={}.hasOwnProperty,cf=ln(typeof HTMLElement<"u"?GC({key:"css"}):null);Ue.env.NODE_ENV!=="production"&&(cf.displayName="EmotionCacheContext");WC=cf.Provider,lf=function(e){return Cd(function(t,r){var n=ti(cf);return e(t,n,r)})},wc=ln({});Ue.env.NODE_ENV!=="production"&&(wc.displayName="EmotionThemeContext");H2=function(e){var t=e.split(".");return t[t.length-1]},V2=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 H2(t[1])},$2=new CC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),W2=function(e){return e.replace(/\$/g,"-")},z2=function(e){if(e)for(var t=e.split(`
24
- `),r=0;r<t.length;r++){var n=V2(t[r]);if(n){if($2.has(n))break;if(/^[A-Z]/.test(n))return W2(n)}}},Hp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",zC=function(e,t){var r,n;if(Ue.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,wr.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)_c.call(t,o)&&(i[o]=t[o]);if(i[Hp]=e,Ue.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,wr.default)(n=t.css.name).call(n,"-")===-1)){var a=z2(new Error().stack);a&&(i[Vp]=a)}return i},K2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return sf(t,r,n),$C(function(){return bc(t,r,n)}),null},uf=lf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Hp],a=[i],s="";typeof e.className=="string"?s=Jo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Qr(a,void 0,ti(wc));if(Ue.env.NODE_ENV!=="production"&&(0,wr.default)(n=c.name).call(n,"-")===-1){var l=e[Vp];l&&(c=Qr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)_c.call(e,u)&&u!=="css"&&u!==Hp&&(Ue.env.NODE_ENV==="production"||u!==Vp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Xe(He,null,Xe(K2,{cache:t,serialized:c,isStringTag:typeof o=="string"}),Xe(o,d))});Ue.env.NODE_ENV!=="production"&&(uf.displayName="EmotionCssPropInternal");Y2={version:"11.10.5"},oC=!1,Q2=lf(function(e,t){Ue.env.NODE_ENV!=="production"&&!oC&&(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?"),oC=!0);var r=e.styles,n=Qr([r],void 0,ti(wc)),i=ei();return iC(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]),iC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&bc(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});Ue.env.NODE_ENV!=="production"&&(Q2.displayName="EmotionGlobal");X2=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,Mo.default)(o))a=e(o);else{Ue.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};eH=function(e){var t=e.cache,r=e.serializedArr;return $C(function(){for(var n=0;n<r.length;n++)bc(t,r[n],!1)}),null},tH=lf(function(e,t){var r=!1,n=[],i=function(){if(r&&Ue.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=Qr(l,t.registered);return n.push(u),sf(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ue.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 Z2(t.registered,i,X2(l))},a={css:i,cx:o,theme:ti(wc)},s=e.children(a);return r=!0,Xe(He,null,Xe(eH,{cache:t,serializedArr:n}),s)});Ue.env.NODE_ENV!=="production"&&(tH.displayName="EmotionClassNames");Ue.env.NODE_ENV!=="production"&&(Np=!0,aC=typeof jest<"u"||typeof vi<"u",Np&&!aC&&(Dp=typeof uc.default<"u"?uc.default:Np?window:i2,Lp="__EMOTION_REACT_"+Y2.version.split(".")[0]+"__",Dp[Lp]&&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."),Dp[Lp]=!0));rH=0;qp={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"}},nH=q`
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}=S.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 Gg=x(()=>{"use strict";V()});var Jg=x(()=>{"use strict"});var Hg=x(()=>{"use strict";R();su()});var Vg=x(()=>{"use strict";V()});var sn,is=x(()=>{"use strict";Jg();Hg();V();Vg();R();sn=new Wt});function pr(e,t){for(var r in t)e[r]=t[r];return e}function Ou(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Xe(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?cs.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 as(e,a,n,i,null)}function as(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?++Kg:i,__i:-1,__u:0};return i==null&&L.vnode!=null&&L.vnode(o),o}function He(e){return e.children}function St(e,t){this.props=e,this.context=t}function Jn(e,t){if(t==null)return e.__?Jn(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"?Jn(e):null}function tv(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 tv(e)}}function xu(e){(!e.__d&&(e.__d=!0)&&cn.push(e)&&!ss.__r++||$g!==L.debounceRendering)&&(($g=L.debounceRendering)||Yg)(ss)}function ss(){for(var e,t,r,n,i,o,a,s=1;cn.length;)cn.length>s&&cn.sort(Qg),e=cn.shift(),s=cn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,L.vnode&&L.vnode(r),Ru(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Jn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,iv(o,r,a),r.__e!=i&&tv(r)));ss.__r=0}function rv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||ev,w=t.length;for(c=FR(r,t,y,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?ro:y[f.__i]||ro,f.__i=u,b=Ru(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Nu(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=nv(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 FR(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?as(null,a,null,null,null):no(a)?as(He,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?as(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=jR(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=Jn(s)),av(s,s));return n}function nv(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=nv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Jn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function io(e,t){return t=t||[],e==null||typeof e=="boolean"||(no(e)?e.some(function(r){io(r,t)}):t.push(e)),t}function jR(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 Wg(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||MR.test(t)?r:r+"px"}function os(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||Wg(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wg(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Xg,"$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=Pu,e.addEventListener(t,o?ku:Cu,o)):e.removeEventListener(t,o?ku:Cu,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 zg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Pu++;else if(t.u<r.t)return;return r(L.event?L.event(t):t)}}}function Ru(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,w,E,C,T,k,A,J,le,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=L.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,w="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:(w?t.__c=u=new O(y,C):(t.__c=u=new St(y,C),u.constructor=O,u.render=GR),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=[]),w&&u.__s==null&&(u.__s=u.state),w&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=pr({},u.__s)),pr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&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)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),w&&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=L.__r,A=0,w){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);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=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===He&&d.key==null&&(le=ov(d.props.children)),s=rv(e,no(le)?le:[le],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--;)Ou(o[N]);else t.__e=r.__e,t.__k=r.__k;L.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=BR(r.__e,t,r,n,i,o,a,c,l);return(d=L.diffed)&&d(t),128&t.__u?void 0:s}function iv(e,t,r){for(var n=0;n<r.length;n++)Nu(r[n],r[++n],r[++n]);L.__c&&L.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){L.__e(o,i.__v)}})}function ov(e){return typeof e!="object"||e==null?e:no(e)?e.map(ov):pr({},e)}function BR(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(y);e=document.createElementNS(i,w,y.is&&y),s&&(L.__m&&L.__m(t,o),s=!1),o=null}if(w===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&cs.call(e.childNodes),b=r.props||ro,!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;os(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||os(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=""),rv(t.type==="template"?e.content:e,no(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Jn(r,0),s,c),o!=null)for(l=o.length;l--;)Ou(o[l]);s||(l="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||w=="progress"&&!m||w=="option"&&m!==b[l])&&os(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&os(e,l,v,b[l],i))}return e}function Nu(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){L.__e(i,r)}}function av(e,t,r){var n,i;if(L.unmount&&L.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Nu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){L.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&av(n[i],t,r||typeof e.type!="function");r||Ou(e.__e),e.__c=e.__=e.__e=void 0}function GR(e,t,r){return this.constructor(e,r)}function Fr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),L.__&&L.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ru(t,e=(!n&&r||t).__k=Xe(He,null,[e]),i||ro,ro,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?cs.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),iv(o,e,a)}function ln(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,xu(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"+Zg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var cs,L,Kg,Tu,cn,$g,Yg,Qg,Xg,Pu,Cu,ku,Zg,ro,ev,MR,no,Hn=x(()=>{ro={},ev=[],MR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,no=Array.isArray;cs=ev.slice,L={__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}},Kg=0,Tu=function(e){return e!=null&&e.constructor==null},St.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pr({},this.state),typeof e=="function"&&(e=e(pr({},r),this.props)),e&&pr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),xu(this))},St.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xu(this))},St.prototype.render=He,cn=[],Yg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qg=function(e,t){return e.__v.__b-t.__v.__b},ss.__r=0,Xg=/(PointerCapture)$|Capture$/i,Pu=0,Cu=zg(!1),ku=zg(!0),Zg=0});var we=h((qK,sv)=>{"use strict";sv.exports=function(e){try{return!!e()}catch(t){return!0}}});var Vn=h((UK,cv)=>{"use strict";var JR=we();cv.exports=!JR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Te=h((MK,dv)=>{"use strict";var lv=Vn(),uv=Function.prototype,Du=uv.call,HR=lv&&uv.bind.bind(Du,Du);dv.exports=lv?HR:function(e){return function(){return Du.apply(e,arguments)}}});var at=h((FK,pv)=>{"use strict";var VR=Te();pv.exports=VR({}.isPrototypeOf)});var Se=h((Lu,fv)=>{"use strict";var oo=function(e){return e&&e.Math===Math&&e};fv.exports=oo(typeof globalThis=="object"&&globalThis)||oo(typeof window=="object"&&window)||oo(typeof self=="object"&&self)||oo(typeof global=="object"&&global)||oo(typeof Lu=="object"&&Lu)||function(){return this}()||Function("return this")()});var qu=h((jK,vv)=>{"use strict";var $R=Vn(),gv=Function.prototype,mv=gv.apply,hv=gv.call;vv.exports=typeof Reflect=="object"&&Reflect.apply||($R?hv.bind(mv):function(){return hv.apply(mv,arguments)})});var fr=h((BK,bv)=>{"use strict";var yv=Te(),WR=yv({}.toString),zR=yv("".slice);bv.exports=function(e){return zR(WR(e),8,-1)}});var ao=h((GK,_v)=>{"use strict";var KR=fr(),YR=Te();_v.exports=function(e){if(KR(e)==="Function")return YR(e)}});var Ve=h((JK,wv)=>{"use strict";var Uu=typeof document=="object"&&document.all;wv.exports=typeof Uu=="undefined"&&Uu!==void 0?function(e){return typeof e=="function"||e===Uu}:function(e){return typeof e=="function"}});var st=h((HK,Sv)=>{"use strict";var QR=we();Sv.exports=!QR(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Mt=h((VK,Iv)=>{"use strict";var XR=Vn(),ls=Function.prototype.call;Iv.exports=XR?ls.bind(ls):function(){return ls.apply(ls,arguments)}});var Mu=h(Cv=>{"use strict";var Ev={}.propertyIsEnumerable,Av=Object.getOwnPropertyDescriptor,ZR=Av&&!Ev.call({1:2},1);Cv.f=ZR?function(t){var r=Av(this,t);return!!r&&r.enumerable}:Ev});var so=h((WK,kv)=>{"use strict";kv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var us=h((zK,xv)=>{"use strict";var e1=Te(),t1=we(),r1=fr(),Fu=Object,n1=e1("".split);xv.exports=t1(function(){return!Fu("z").propertyIsEnumerable(0)})?function(e){return r1(e)==="String"?n1(e,""):Fu(e)}:Fu});var un=h((KK,Tv)=>{"use strict";Tv.exports=function(e){return e==null}});var dn=h((YK,Pv)=>{"use strict";var i1=un(),o1=TypeError;Pv.exports=function(e){if(i1(e))throw new o1("Can't call method on "+e);return e}});var jr=h((QK,Ov)=>{"use strict";var a1=us(),s1=dn();Ov.exports=function(e){return a1(s1(e))}});var Le=h((XK,Rv)=>{"use strict";var c1=Ve();Rv.exports=function(e){return typeof e=="object"?e!==null:c1(e)}});var zt=h((ZK,Nv)=>{"use strict";Nv.exports={}});var $n=h((e8,Lv)=>{"use strict";var ju=zt(),Bu=Se(),l1=Ve(),Dv=function(e){return l1(e)?e:void 0};Lv.exports=function(e,t){return arguments.length<2?Dv(ju[e])||Dv(Bu[e]):ju[e]&&ju[e][t]||Bu[e]&&Bu[e][t]}});var ds=h((t8,Mv)=>{"use strict";var u1=Se(),qv=u1.navigator,Uv=qv&&qv.userAgent;Mv.exports=Uv?String(Uv):""});var fs=h((r8,Hv)=>{"use strict";var Jv=Se(),Gu=ds(),Fv=Jv.process,jv=Jv.Deno,Bv=Fv&&Fv.versions||jv&&jv.version,Gv=Bv&&Bv.v8,Ft,ps;Gv&&(Ft=Gv.split("."),ps=Ft[0]>0&&Ft[0]<4?1:+(Ft[0]+Ft[1]));!ps&&Gu&&(Ft=Gu.match(/Edge\/(\d+)/),(!Ft||Ft[1]>=74)&&(Ft=Gu.match(/Chrome\/(\d+)/),Ft&&(ps=+Ft[1])));Hv.exports=ps});var Ju=h((n8,$v)=>{"use strict";var Vv=fs(),d1=we(),p1=Se(),f1=p1.String;$v.exports=!!Object.getOwnPropertySymbols&&!d1(function(){var e=Symbol("symbol detection");return!f1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vv&&Vv<41})});var Hu=h((i8,Wv)=>{"use strict";var m1=Ju();Wv.exports=m1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Vu=h((o8,zv)=>{"use strict";var h1=$n(),g1=Ve(),v1=at(),y1=Hu(),b1=Object;zv.exports=y1?function(e){return typeof e=="symbol"}:function(e){var t=h1("Symbol");return g1(t)&&v1(t.prototype,b1(e))}});var co=h((a8,Kv)=>{"use strict";var _1=String;Kv.exports=function(e){try{return _1(e)}catch(t){return"Object"}}});var pn=h((s8,Yv)=>{"use strict";var w1=Ve(),S1=co(),I1=TypeError;Yv.exports=function(e){if(w1(e))return e;throw new I1(S1(e)+" is not a function")}});var ms=h((c8,Qv)=>{"use strict";var E1=pn(),A1=un();Qv.exports=function(e,t){var r=e[t];return A1(r)?void 0:E1(r)}});var Zv=h((l8,Xv)=>{"use strict";var $u=Mt(),Wu=Ve(),zu=Le(),C1=TypeError;Xv.exports=function(e,t){var r,n;if(t==="string"&&Wu(r=e.toString)&&!zu(n=$u(r,e))||Wu(r=e.valueOf)&&!zu(n=$u(r,e))||t!=="string"&&Wu(r=e.toString)&&!zu(n=$u(r,e)))return n;throw new C1("Can't convert object to primitive value")}});var Wn=h((u8,ey)=>{"use strict";ey.exports=!0});var ny=h((d8,ry)=>{"use strict";var ty=Se(),k1=Object.defineProperty;ry.exports=function(e,t){try{k1(ty,e,{value:t,configurable:!0,writable:!0})}catch(r){ty[e]=t}return t}});var lo=h((p8,ay)=>{"use strict";var x1=Wn(),T1=Se(),P1=ny(),iy="__core-js_shared__",oy=ay.exports=T1[iy]||P1(iy,{});(oy.versions||(oy.versions=[])).push({version:"3.41.0",mode:x1?"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 Ku=h((f8,cy)=>{"use strict";var sy=lo();cy.exports=function(e,t){return sy[e]||(sy[e]=t||{})}});var zn=h((m8,ly)=>{"use strict";var O1=dn(),R1=Object;ly.exports=function(e){return R1(O1(e))}});var It=h((h8,uy)=>{"use strict";var N1=Te(),D1=zn(),L1=N1({}.hasOwnProperty);uy.exports=Object.hasOwn||function(t,r){return L1(D1(t),r)}});var hs=h((g8,dy)=>{"use strict";var q1=Te(),U1=0,M1=Math.random(),F1=q1(1 .toString);dy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+F1(++U1+M1,36)}});var Ze=h((v8,fy)=>{"use strict";var j1=Se(),B1=Ku(),py=It(),G1=hs(),J1=Ju(),H1=Hu(),Kn=j1.Symbol,Yu=B1("wks"),V1=H1?Kn.for||Kn:Kn&&Kn.withoutSetter||G1;fy.exports=function(e){return py(Yu,e)||(Yu[e]=J1&&py(Kn,e)?Kn[e]:V1("Symbol."+e)),Yu[e]}});var vy=h((y8,gy)=>{"use strict";var $1=Mt(),my=Le(),hy=Vu(),W1=ms(),z1=Zv(),K1=Ze(),Y1=TypeError,Q1=K1("toPrimitive");gy.exports=function(e,t){if(!my(e)||hy(e))return e;var r=W1(e,Q1),n;if(r){if(t===void 0&&(t="default"),n=$1(r,e,t),!my(n)||hy(n))return n;throw new Y1("Can't convert object to primitive value")}return t===void 0&&(t="number"),z1(e,t)}});var Qu=h((b8,yy)=>{"use strict";var X1=vy(),Z1=Vu();yy.exports=function(e){var t=X1(e,"string");return Z1(t)?t:t+""}});var Zu=h((_8,_y)=>{"use strict";var eN=Se(),by=Le(),Xu=eN.document,tN=by(Xu)&&by(Xu.createElement);_y.exports=function(e){return tN?Xu.createElement(e):{}}});var ed=h((w8,wy)=>{"use strict";var rN=st(),nN=we(),iN=Zu();wy.exports=!rN&&!nN(function(){return Object.defineProperty(iN("div"),"a",{get:function(){return 7}}).a!==7})});var td=h(Iy=>{"use strict";var oN=st(),aN=Mt(),sN=Mu(),cN=so(),lN=jr(),uN=Qu(),dN=It(),pN=ed(),Sy=Object.getOwnPropertyDescriptor;Iy.f=oN?Sy:function(t,r){if(t=lN(t),r=uN(r),pN)try{return Sy(t,r)}catch(n){}if(dN(t,r))return cN(!aN(sN.f,t,r),t[r])}});var Ay=h((I8,Ey)=>{"use strict";var fN=we(),mN=Ve(),hN=/#|\.prototype\./,uo=function(e,t){var r=vN[gN(e)];return r===bN?!0:r===yN?!1:mN(t)?fN(t):!!t},gN=uo.normalize=function(e){return String(e).replace(hN,".").toLowerCase()},vN=uo.data={},yN=uo.NATIVE="N",bN=uo.POLYFILL="P";Ey.exports=uo});var po=h((E8,ky)=>{"use strict";var Cy=ao(),_N=pn(),wN=Vn(),SN=Cy(Cy.bind);ky.exports=function(e,t){return _N(e),t===void 0?e:wN?SN(e,t):function(){return e.apply(t,arguments)}}});var rd=h((A8,xy)=>{"use strict";var IN=st(),EN=we();xy.exports=IN&&EN(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((C8,Ty)=>{"use strict";var AN=Le(),CN=String,kN=TypeError;Ty.exports=function(e){if(AN(e))return e;throw new kN(CN(e)+" is not an object")}});var hr=h(Oy=>{"use strict";var xN=st(),TN=ed(),PN=rd(),gs=mr(),Py=Qu(),ON=TypeError,nd=Object.defineProperty,RN=Object.getOwnPropertyDescriptor,id="enumerable",od="configurable",ad="writable";Oy.f=xN?PN?function(t,r,n){if(gs(t),r=Py(r),gs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ad in n&&!n[ad]){var i=RN(t,r);i&&i[ad]&&(t[r]=n.value,n={configurable:od in n?n[od]:i[od],enumerable:id in n?n[id]:i[id],writable:!1})}return nd(t,r,n)}:nd:function(t,r,n){if(gs(t),r=Py(r),gs(n),TN)try{return nd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new ON("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var fn=h((x8,Ry)=>{"use strict";var NN=st(),DN=hr(),LN=so();Ry.exports=NN?function(e,t,r){return DN.f(e,t,LN(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((T8,Dy)=>{"use strict";var fo=Se(),qN=qu(),UN=ao(),MN=Ve(),FN=td().f,jN=Ay(),Yn=zt(),BN=po(),Qn=fn(),Ny=It();lo();var GN=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 qN(e,this,arguments)};return t.prototype=e.prototype,t};Dy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?fo:i?fo[r]:fo[r]&&fo[r].prototype,s=n?Yn:Yn[r]||Qn(Yn,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=jN(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&Ny(a,p),m=s[p],d&&(e.dontCallGetSet?(y=FN(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=BN(f,fo):e.wrap&&d?b=GN(f):o&&MN(f)?b=UN(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Qn(b,"sham",!0),Qn(s,p,b),o&&(u=r+"Prototype",Ny(Yn,u)||Qn(Yn,u,{}),Qn(Yn[u],p,f),e.real&&c&&(l||!c[p])&&Qn(c,p,f)))}});var qy=h((P8,Ly)=>{"use strict";var JN=Math.ceil,HN=Math.floor;Ly.exports=Math.trunc||function(t){var r=+t;return(r>0?HN:JN)(r)}});var mo=h((O8,Uy)=>{"use strict";var VN=qy();Uy.exports=function(e){var t=+e;return t!==t||t===0?0:VN(t)}});var sd=h((R8,My)=>{"use strict";var $N=mo(),WN=Math.min;My.exports=function(e){var t=$N(e);return t>0?WN(t,9007199254740991):0}});var Xn=h((N8,Fy)=>{"use strict";var zN=sd();Fy.exports=function(e){return zN(e.length)}});var ho=h((D8,jy)=>{"use strict";var KN=fr();jy.exports=Array.isArray||function(t){return KN(t)==="Array"}});var vs=h((L8,Gy)=>{"use strict";var YN=Ze(),QN=YN("toStringTag"),By={};By[QN]="z";Gy.exports=String(By)==="[object z]"});var Zn=h((q8,Jy)=>{"use strict";var XN=vs(),ZN=Ve(),ys=fr(),eD=Ze(),tD=eD("toStringTag"),rD=Object,nD=ys(function(){return arguments}())==="Arguments",iD=function(e,t){try{return e[t]}catch(r){}};Jy.exports=XN?ys:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=iD(t=rD(e),tD))=="string"?r:nD?ys(t):(n=ys(t))==="Object"&&ZN(t.callee)?"Arguments":n}});var Vy=h((U8,Hy)=>{"use strict";var oD=Te(),aD=Ve(),cd=lo(),sD=oD(Function.toString);aD(cd.inspectSource)||(cd.inspectSource=function(e){return sD(e)});Hy.exports=cd.inspectSource});var ud=h((M8,Yy)=>{"use strict";var cD=Te(),lD=we(),$y=Ve(),uD=Zn(),dD=$n(),pD=Vy(),Wy=function(){},zy=dD("Reflect","construct"),ld=/^\s*(?:class|function)\b/,fD=cD(ld.exec),mD=!ld.test(Wy),go=function(t){if(!$y(t))return!1;try{return zy(Wy,[],t),!0}catch(r){return!1}},Ky=function(t){if(!$y(t))return!1;switch(uD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mD||!!fD(ld,pD(t))}catch(r){return!0}};Ky.sham=!0;Yy.exports=!zy||lD(function(){var e;return go(go.call)||!go(Object)||!go(function(){e=!0})||e})?Ky:go});var eb=h((F8,Zy)=>{"use strict";var Qy=ho(),hD=ud(),gD=Le(),vD=Ze(),yD=vD("species"),Xy=Array;Zy.exports=function(e){var t;return Qy(e)&&(t=e.constructor,hD(t)&&(t===Xy||Qy(t.prototype))?t=void 0:gD(t)&&(t=t[yD],t===null&&(t=void 0))),t===void 0?Xy:t}});var dd=h((j8,tb)=>{"use strict";var bD=eb();tb.exports=function(e,t){return new(bD(e))(t===0?0:t)}});var Gr=h((B8,nb)=>{"use strict";var _D=po(),wD=Te(),SD=us(),ID=zn(),ED=Xn(),AD=dd(),rb=wD([].push),Br=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=ID(c),f=SD(p),m=ED(f),v=_D(l,d),b=0,y=u||AD,w=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)w[b]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:rb(w,E)}else switch(e){case 4:return!1;case 7:rb(w,E)}return o?-1:n||i?i:w}};nb.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var vo=h((G8,ib)=>{"use strict";var CD=we(),kD=Ze(),xD=fs(),TD=kD("species");ib.exports=function(e){return xD>=51||!CD(function(){var t=[],r=t.constructor={};return r[TD]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var ob=h(()=>{"use strict";var PD=ae(),OD=Gr().filter,RD=vo(),ND=RD("filter");PD({target:"Array",proto:!0,forced:!ND},{filter:function(t){return OD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ot=h((V8,ab)=>{"use strict";var DD=Se(),LD=zt();ab.exports=function(e,t){var r=LD[e+"Prototype"],n=r&&r[t];if(n)return n;var i=DD[e],o=i&&i.prototype;return o&&o[t]}});var cb=h(($8,sb)=>{"use strict";ob();var qD=Ot();sb.exports=qD("Array","filter")});var ub=h((W8,lb)=>{"use strict";var UD=at(),MD=cb(),pd=Array.prototype;lb.exports=function(e){var t=e.filter;return e===pd||UD(pd,e)&&t===pd.filter?MD:t}});var pb=h((z8,db)=>{"use strict";var FD=ub();db.exports=FD});var mb=h((K8,fb)=>{fb.exports=pb()});var yo=h((Y8,hb)=>{"use strict";var jD=we();hb.exports=function(e,t){var r=[][e];return!!r&&jD(function(){r.call(null,t||function(){return 1},1)})}});var gb=h(()=>{"use strict";var BD=ae(),GD=Gr().every,JD=yo(),HD=JD("every");BD({target:"Array",proto:!0,forced:!HD},{every:function(t){return GD(this,t,arguments.length>1?arguments[1]:void 0)}})});var yb=h((Z8,vb)=>{"use strict";gb();var VD=Ot();vb.exports=VD("Array","every")});var _b=h((e7,bb)=>{"use strict";var $D=at(),WD=yb(),fd=Array.prototype;bb.exports=function(e){var t=e.every;return e===fd||$D(fd,e)&&t===fd.every?WD:t}});var Sb=h((t7,wb)=>{"use strict";var zD=_b();wb.exports=zD});var Eb=h((r7,Ib)=>{Ib.exports=Sb()});var Cb=h((n7,Ab)=>{"use strict";var KD=Gr().forEach,YD=yo(),QD=YD("forEach");Ab.exports=QD?[].forEach:function(t){return KD(this,t,arguments.length>1?arguments[1]:void 0)}});var xb=h(()=>{"use strict";var XD=ae(),kb=Cb();XD({target:"Array",proto:!0,forced:[].forEach!==kb},{forEach:kb})});var Pb=h((a7,Tb)=>{"use strict";xb();var ZD=Ot();Tb.exports=ZD("Array","forEach")});var Rb=h((s7,Ob)=>{"use strict";var eL=Pb();Ob.exports=eL});var Nb=h(()=>{});var Lb=h((u7,Db)=>{"use strict";var tL=Zn(),rL=It(),nL=at(),iL=Rb();Nb();var md=Array.prototype,oL={DOMTokenList:!0,NodeList:!0};Db.exports=function(e){var t=e.forEach;return e===md||nL(md,e)&&t===md.forEach||rL(oL,tL(e))?iL:t}});var Ub=h((d7,qb)=>{qb.exports=Lb()});var Fb=h((p7,Mb)=>{"use strict";var aL=TypeError,sL=9007199254740991;Mb.exports=function(e){if(e>sL)throw aL("Maximum allowed index exceeded");return e}});var hd=h((f7,jb)=>{"use strict";var cL=st(),lL=hr(),uL=so();jb.exports=function(e,t,r){cL?lL.f(e,t,uL(0,r)):e[t]=r}});var Hb=h(()=>{"use strict";var dL=ae(),pL=we(),fL=ho(),mL=Le(),hL=zn(),gL=Xn(),Bb=Fb(),Gb=hd(),vL=dd(),yL=vo(),bL=Ze(),_L=fs(),Jb=bL("isConcatSpreadable"),wL=_L>=51||!pL(function(){var e=[];return e[Jb]=!1,e.concat()[0]!==e}),SL=function(e){if(!mL(e))return!1;var t=e[Jb];return t!==void 0?!!t:fL(e)},IL=!wL||!yL("concat");dL({target:"Array",proto:!0,arity:1,forced:IL},{concat:function(t){var r=hL(this),n=vL(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],SL(l))for(c=gL(l),Bb(i+c),a=0;a<c;a++,i++)a in l&&Gb(n,i,l[a]);else Bb(i+1),Gb(n,i++,l);return n.length=i,n}})});var $b=h((g7,Vb)=>{"use strict";Hb();var EL=Ot();Vb.exports=EL("Array","concat")});var zb=h((v7,Wb)=>{"use strict";var AL=at(),CL=$b(),gd=Array.prototype;Wb.exports=function(e){var t=e.concat;return e===gd||AL(gd,e)&&t===gd.concat?CL:t}});var Yb=h((y7,Kb)=>{"use strict";var kL=zb();Kb.exports=kL});var Xb=h((b7,Qb)=>{Qb.exports=Yb()});var Zb=h(()=>{"use strict";var xL=ae(),TL=Gr().some,PL=yo(),OL=PL("some");xL({target:"Array",proto:!0,forced:!OL},{some:function(t){return TL(this,t,arguments.length>1?arguments[1]:void 0)}})});var t_=h((S7,e_)=>{"use strict";Zb();var RL=Ot();e_.exports=RL("Array","some")});var n_=h((I7,r_)=>{"use strict";var NL=at(),DL=t_(),vd=Array.prototype;r_.exports=function(e){var t=e.some;return e===vd||NL(vd,e)&&t===vd.some?DL:t}});var o_=h((E7,i_)=>{"use strict";var LL=n_();i_.exports=LL});var s_=h((A7,a_)=>{a_.exports=o_()});var l_=h((C7,c_)=>{"use strict";var bo=Se(),qL=ds(),UL=fr(),bs=function(e){return qL.slice(0,e.length)===e};c_.exports=function(){return bs("Bun/")?"BUN":bs("Cloudflare-Workers")?"CLOUDFLARE":bs("Deno/")?"DENO":bs("Node.js/")?"NODE":bo.Bun&&typeof Bun.version=="string"?"BUN":bo.Deno&&typeof Deno.version=="object"?"DENO":UL(bo.process)==="process"?"NODE":bo.window&&bo.document?"BROWSER":"REST"}()});var _o=h((k7,u_)=>{"use strict";var ML=Te();u_.exports=ML([].slice)});var p_=h((x7,d_)=>{"use strict";var FL=TypeError;d_.exports=function(e,t){if(e<t)throw new FL("Not enough arguments");return e}});var yd=h((T7,m_)=>{"use strict";var f_=Se(),jL=qu(),BL=Ve(),GL=l_(),JL=ds(),HL=_o(),VL=p_(),$L=f_.Function,WL=/MSIE .\./.test(JL)||GL==="BUN"&&function(){var e=f_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();m_.exports=function(e,t){var r=t?2:1;return WL?function(n,i){var o=VL(arguments.length,1)>r,a=BL(n)?n:$L(n),s=o?HL(arguments,r):[],c=o?function(){jL(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var v_=h(()=>{"use strict";var zL=ae(),g_=Se(),KL=yd(),h_=KL(g_.setInterval,!0);zL({global:!0,bind:!0,forced:g_.setInterval!==h_},{setInterval:h_})});var __=h(()=>{"use strict";var YL=ae(),b_=Se(),QL=yd(),y_=QL(b_.setTimeout,!0);YL({global:!0,bind:!0,forced:b_.setTimeout!==y_},{setTimeout:y_})});var w_=h(()=>{"use strict";v_();__()});var I_=h((q7,S_)=>{"use strict";w_();var XL=zt();S_.exports=XL.setTimeout});var A_=h((U7,E_)=>{E_.exports=I_()});function So(e,t){Ae.__h&&Ae.__h(de,e,wo||t),wo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return wo=1,L_(q_,e)}function L_(e,t,r){var n=So(mn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):q_(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=de,!de.__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};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.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)},de.shouldComponentUpdate=i}return n.__N||n.__}function hn(e,t){var r=So(mn++,3);!Ae.__s&&wd(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function ei(e,t){var r=So(mn++,4);!Ae.__s&&wd(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function ti(e){return wo=5,Io(function(){return{current:e}},[])}function Io(e,t){var r=So(mn++,7);return wd(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Jr(e,t){return wo=8,Io(function(){return e},t)}function ri(e){var t=de.context[e.__c],r=So(mn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function ZL(){for(var e;e=D_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(_s),e.__H.__h.forEach(_d),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function eq(e){var t,r=function(){clearTimeout(n),N_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);N_&&(t=requestAnimationFrame(r))}function _s(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function _d(e){var t=de;e.__c=e.__(),de=t}function wd(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function q_(e,t){return typeof t=="function"?t(e):t}var mn,de,bd,C_,wo,D_,Ae,k_,x_,T_,P_,O_,R_,N_,Sd=x(()=>{Hn();wo=0,D_=[],Ae=L,k_=Ae.__b,x_=Ae.__r,T_=Ae.diffed,P_=Ae.__c,O_=Ae.unmount,R_=Ae.__;Ae.__b=function(e){de=null,k_&&k_(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),R_&&R_(e,t)},Ae.__r=function(e){x_&&x_(e),mn=0;var t=(de=e.__c).__H;t&&(bd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(_s),t.__h.forEach(_d),t.__h=[],mn=0)),bd=de},Ae.diffed=function(e){T_&&T_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(D_.push(t)!==1&&C_===Ae.requestAnimationFrame||((C_=Ae.requestAnimationFrame)||eq)(ZL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),bd=de=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(_s),r.__h=r.__h.filter(function(n){return!n.__||_d(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),P_&&P_(e,t)},Ae.unmount=function(e){O_&&O_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{_s(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};N_=typeof requestAnimationFrame=="function"});function $_(e,t){for(var r in t)e[r]=t[r];return e}function Ed(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 U_(e,t){this.props=e,this.context=t}function Cd(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:Ed(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Xe(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function kd(e){function t(r){var n=$_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=tq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function W_(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=$_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return W_(n,t,r)})),e}function z_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return z_(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 Id(){this.__u=0,this.o=null,this.__b=null}function K_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ws(){this.i=null,this.l=null}function Ss(e,t,r){return t.__k==null&&(t.textContent=""),Fr(e,t),typeof r=="function"&&r(),e?e.__c:null}function lq(){}function uq(){return this.cancelBubble}function dq(){return this.defaultPrevented}var Ad,M_,tq,rq,F_,j_,nq,iq,oq,aq,sq,cq,B_,Y_,pq,G_,J_,H_,Is=x(()=>{Hn();Hn();Sd();Sd();Ad=ei;(U_.prototype=new St).isPureReactComponent=!0,U_.prototype.shouldComponentUpdate=function(e,t){return Ed(this.props,e)||Ed(this.state,t)};M_=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),M_&&M_(e)};tq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;rq=L.__e;L.__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)}rq(e,t,r,n)};F_=L.unmount;L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),F_&&F_(e)},(Id.prototype=new St).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=K_(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]=z_(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)},Id.prototype.componentWillUnmount=function(){this.o=[]},Id.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]=W_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Xe(He,null,e.fallback);return i&&(i.__u&=-33),[Xe(He,null,t.__a?null:e.children),i]};j_=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]}};(ws.prototype=new St).__a=function(e){var t=this,r=K_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),j_(t,e,n)):i()};r?r(o):o()}},ws.prototype.render=function(e){this.i=null,this.l=new Map;var t=io(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},ws.prototype.componentDidUpdate=ws.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){j_(e,r,t)})};nq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,iq=/^(?: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]/,oq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,aq=/[A-Z0-9]/g,sq=typeof document!="undefined",cq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};St.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});B_=L.event;L.event=function(e){return B_&&(e=B_(e)),e.persist=lq,e.isPropagationStopped=uq,e.isDefaultPrevented=dq,e.nativeEvent=e};pq={enumerable:!1,configurable:!0,get:function(){return this.class}},G_=L.vnode;L.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||sq&&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"||cq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":oq.test(a)&&(a=c):c=a="oninput":o&&iq.test(a)?a=a.replace(aq,"-$&").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=io(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=io(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",pq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=nq,G_&&G_(e)};J_=L.__r;L.__r=function(e){J_&&J_(e),Y_=e.__c};H_=L.diffed;L.diffed=function(e){H_&&H_(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),Y_=null}});var Td=h(()=>{"use strict";var mq=ae(),xd=Se();mq({global:!0,forced:xd.globalThis!==xd},{globalThis:xd})});var Q_=h(()=>{"use strict";Td()});var Z_=h((Z7,X_)=>{"use strict";Td();X_.exports=Se()});var tw=h((eY,ew)=>{"use strict";var hq=Z_();ew.exports=hq});var nw=h((tY,rw)=>{"use strict";var gq=tw();rw.exports=gq});var ow=h((rY,iw)=>{"use strict";Q_();var vq=nw();iw.exports=vq});var sw=h((nY,aw)=>{"use strict";aw.exports=ow()});var lw=h((iY,cw)=>{cw.exports=sw()});var uw=h(()=>{"use strict";var yq=ae(),bq=ho();yq({target:"Array",stat:!0},{isArray:bq})});var pw=h((sY,dw)=>{"use strict";uw();var _q=zt();dw.exports=_q.Array.isArray});var mw=h((cY,fw)=>{"use strict";var wq=pw();fw.exports=wq});var gw=h((lY,hw)=>{hw.exports=mw()});var yw=h((uY,vw)=>{"use strict";vw.exports=function(){}});var gn=h((dY,bw)=>{"use strict";bw.exports={}});var Pd=h((pY,ww)=>{"use strict";var Sq=Se(),Iq=Ve(),_w=Sq.WeakMap;ww.exports=Iq(_w)&&/native code/.test(String(_w))});var Es=h((fY,Iw)=>{"use strict";var Eq=Ku(),Aq=hs(),Sw=Eq("keys");Iw.exports=function(e){return Sw[e]||(Sw[e]=Aq(e))}});var Eo=h((mY,Ew)=>{"use strict";Ew.exports={}});var yn=h((hY,kw)=>{"use strict";var Cq=Pd(),Cw=Se(),kq=Le(),xq=fn(),Od=It(),Rd=lo(),Tq=Es(),Pq=Eo(),Aw="Object already initialized",Nd=Cw.TypeError,Oq=Cw.WeakMap,As,Ao,Cs,Rq=function(e){return Cs(e)?Ao(e):As(e,{})},Nq=function(e){return function(t){var r;if(!kq(t)||(r=Ao(t)).type!==e)throw new Nd("Incompatible receiver, "+e+" required");return r}};Cq||Rd.state?(jt=Rd.state||(Rd.state=new Oq),jt.get=jt.get,jt.has=jt.has,jt.set=jt.set,As=function(e,t){if(jt.has(e))throw new Nd(Aw);return t.facade=e,jt.set(e,t),t},Ao=function(e){return jt.get(e)||{}},Cs=function(e){return jt.has(e)}):(vn=Tq("state"),Pq[vn]=!0,As=function(e,t){if(Od(e,vn))throw new Nd(Aw);return t.facade=e,xq(e,vn,t),t},Ao=function(e){return Od(e,vn)?e[vn]:{}},Cs=function(e){return Od(e,vn)});var jt,vn;kw.exports={set:As,get:Ao,has:Cs,enforce:Rq,getterFor:Nq}});var qd=h((gY,Tw)=>{"use strict";var Dd=st(),Dq=It(),xw=Function.prototype,Lq=Dd&&Object.getOwnPropertyDescriptor,Ld=Dq(xw,"name"),qq=Ld&&(function(){}).name==="something",Uq=Ld&&(!Dd||Dd&&Lq(xw,"name").configurable);Tw.exports={EXISTS:Ld,PROPER:qq,CONFIGURABLE:Uq}});var Ud=h((vY,Pw)=>{"use strict";var Mq=mo(),Fq=Math.max,jq=Math.min;Pw.exports=function(e,t){var r=Mq(e);return r<0?Fq(r+t,0):jq(r,t)}});var Md=h((yY,Rw)=>{"use strict";var Bq=jr(),Gq=Ud(),Jq=Xn(),Ow=function(e){return function(t,r,n){var i=Bq(t),o=Jq(i);if(o===0)return!e&&-1;var a=Gq(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}};Rw.exports={includes:Ow(!0),indexOf:Ow(!1)}});var jd=h((bY,Dw)=>{"use strict";var Hq=Te(),Fd=It(),Vq=jr(),$q=Md().indexOf,Wq=Eo(),Nw=Hq([].push);Dw.exports=function(e,t){var r=Vq(e),n=0,i=[],o;for(o in r)!Fd(Wq,o)&&Fd(r,o)&&Nw(i,o);for(;t.length>n;)Fd(r,o=t[n++])&&(~$q(i,o)||Nw(i,o));return i}});var ks=h((_Y,Lw)=>{"use strict";Lw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Bd=h((wY,qw)=>{"use strict";var zq=jd(),Kq=ks();qw.exports=Object.keys||function(t){return zq(t,Kq)}});var Mw=h(Uw=>{"use strict";var Yq=st(),Qq=rd(),Xq=hr(),Zq=mr(),eU=jr(),tU=Bd();Uw.f=Yq&&!Qq?Object.defineProperties:function(t,r){Zq(t);for(var n=eU(r),i=tU(r),o=i.length,a=0,s;o>a;)Xq.f(t,s=i[a++],n[s]);return t}});var jw=h((IY,Fw)=>{"use strict";var rU=$n();Fw.exports=rU("document","documentElement")});var Co=h((EY,Ww)=>{"use strict";var nU=mr(),iU=Mw(),Bw=ks(),oU=Eo(),aU=jw(),sU=Zu(),cU=Es(),Gw=">",Jw="<",Jd="prototype",Hd="script",Vw=cU("IE_PROTO"),Gd=function(){},$w=function(e){return Jw+Hd+Gw+e+Jw+"/"+Hd+Gw},Hw=function(e){e.write($w("")),e.close();var t=e.parentWindow.Object;return e=null,t},lU=function(){var e=sU("iframe"),t="java"+Hd+":",r;return e.style.display="none",aU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write($w("document.F=Object")),r.close(),r.F},xs,Ts=function(){try{xs=new ActiveXObject("htmlfile")}catch(t){}Ts=typeof document!="undefined"?document.domain&&xs?Hw(xs):lU():Hw(xs);for(var e=Bw.length;e--;)delete Ts[Jd][Bw[e]];return Ts()};oU[Vw]=!0;Ww.exports=Object.create||function(t,r){var n;return t!==null?(Gd[Jd]=nU(t),n=new Gd,Gd[Jd]=null,n[Vw]=t):n=Ts(),r===void 0?n:iU.f(n,r)}});var Kw=h((AY,zw)=>{"use strict";var uU=we();zw.exports=!uU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var $d=h((CY,Qw)=>{"use strict";var dU=It(),pU=Ve(),fU=zn(),mU=Es(),hU=Kw(),Yw=mU("IE_PROTO"),Vd=Object,gU=Vd.prototype;Qw.exports=hU?Vd.getPrototypeOf:function(e){var t=fU(e);if(dU(t,Yw))return t[Yw];var r=t.constructor;return pU(r)&&t instanceof r?r.prototype:t instanceof Vd?gU:null}});var Ps=h((kY,Xw)=>{"use strict";var vU=fn();Xw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:vU(e,t,r),e}});var Yd=h((xY,tS)=>{"use strict";var yU=we(),bU=Ve(),_U=Le(),wU=Co(),Zw=$d(),SU=Ps(),IU=Ze(),EU=Wn(),Kd=IU("iterator"),eS=!1,vr,Wd,zd;[].keys&&(zd=[].keys(),"next"in zd?(Wd=Zw(Zw(zd)),Wd!==Object.prototype&&(vr=Wd)):eS=!0);var AU=!_U(vr)||yU(function(){var e={};return vr[Kd].call(e)!==e});AU?vr={}:EU&&(vr=wU(vr));bU(vr[Kd])||SU(vr,Kd,function(){return this});tS.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:eS}});var nS=h((TY,rS)=>{"use strict";var CU=vs(),kU=Zn();rS.exports=CU?{}.toString:function(){return"[object "+kU(this)+"]"}});var ko=h((PY,oS)=>{"use strict";var xU=vs(),TU=hr().f,PU=fn(),OU=It(),RU=nS(),NU=Ze(),iS=NU("toStringTag");oS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(OU(i,iS)||TU(i,iS,{configurable:!0,value:t}),n&&!xU&&PU(i,"toString",RU))}});var sS=h((OY,aS)=>{"use strict";var DU=Yd().IteratorPrototype,LU=Co(),qU=so(),UU=ko(),MU=gn(),FU=function(){return this};aS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=LU(DU,{next:qU(+!n,r)}),UU(e,i,!1,!0),MU[i]=FU,e}});var lS=h((RY,cS)=>{"use strict";var jU=Te(),BU=pn();cS.exports=function(e,t,r){try{return jU(BU(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var dS=h((NY,uS)=>{"use strict";var GU=Le();uS.exports=function(e){return GU(e)||e===null}});var fS=h((DY,pS)=>{"use strict";var JU=dS(),HU=String,VU=TypeError;pS.exports=function(e){if(JU(e))return e;throw new VU("Can't set "+HU(e)+" as a prototype")}});var hS=h((LY,mS)=>{"use strict";var $U=lS(),WU=Le(),zU=dn(),KU=fS();mS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=$U(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return zU(i),KU(o),WU(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ns=h((qY,AS)=>{"use strict";var YU=ae(),QU=Mt(),Os=Wn(),IS=qd(),XU=Ve(),ZU=sS(),gS=$d(),vS=hS(),eM=ko(),tM=fn(),Qd=Ps(),rM=Ze(),yS=gn(),ES=Yd(),nM=IS.PROPER,iM=IS.CONFIGURABLE,bS=ES.IteratorPrototype,Rs=ES.BUGGY_SAFARI_ITERATORS,xo=rM("iterator"),_S="keys",To="values",wS="entries",SS=function(){return this};AS.exports=function(e,t,r,n,i,o,a){ZU(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Rs&&y&&y in d)return d[y];switch(y){case _S:return function(){return new r(this,y)};case To:return function(){return new r(this,y)};case wS:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[xo]||d["@@iterator"]||i&&d[i],p=!Rs&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=gS(f.call(new e)),m!==Object.prototype&&m.next&&(!Os&&gS(m)!==bS&&(vS?vS(m,bS):XU(m[xo])||Qd(m,xo,SS)),eM(m,c,!0,!0),Os&&(yS[c]=SS))),nM&&i===To&&u&&u.name!==To&&(!Os&&iM?tM(d,"name",To):(l=!0,p=function(){return QU(u,this)})),i)if(v={values:s(To),keys:o?p:s(_S),entries:s(wS)},a)for(b in v)(Rs||l||!(b in d))&&Qd(d,b,v[b]);else YU({target:t,proto:!0,forced:Rs||l},v);return(!Os||a)&&d[xo]!==p&&Qd(d,xo,p,{name:i}),yS[t]=p,v}});var Ds=h((UY,CS)=>{"use strict";CS.exports=function(e,t){return{value:e,done:t}}});var qs=h((MY,OS)=>{"use strict";var oM=jr(),Xd=yw(),kS=gn(),TS=yn(),aM=hr().f,sM=Ns(),Ls=Ds(),cM=Wn(),lM=st(),PS="Array Iterator",uM=TS.set,dM=TS.getterFor(PS);OS.exports=sM(Array,"Array",function(e,t){uM(this,{type:PS,target:oM(e),index:0,kind:t})},function(){var e=dM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ls(void 0,!0);switch(e.kind){case"keys":return Ls(r,!1);case"values":return Ls(t[r],!1)}return Ls([r,t[r]],!1)},"values");var xS=kS.Arguments=kS.Array;Xd("keys");Xd("values");Xd("entries");if(!cM&&lM&&xS.name!=="values")try{aM(xS,"name",{value:"values"})}catch(e){}});var Zd=h(()=>{});var ep=h((BY,RS)=>{"use strict";var pM=we();RS.exports=!pM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Us=h((GY,NS)=>{"use strict";var fM=Ps();NS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:fM(e,n,t[n],r);return e}});var tp=h(DS=>{"use strict";var mM=jd(),hM=ks(),gM=hM.concat("length","prototype");DS.f=Object.getOwnPropertyNames||function(t){return mM(t,gM)}});var MS=h((HY,US)=>{"use strict";var vM=fr(),yM=jr(),LS=tp().f,bM=_o(),qS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_M=function(e){try{return LS(e)}catch(t){return bM(qS)}};US.exports.f=function(t){return qS&&vM(t)==="Window"?_M(t):LS(yM(t))}});var jS=h((VY,FS)=>{"use strict";var wM=we();FS.exports=wM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var JS=h(($Y,GS)=>{"use strict";var SM=we(),IM=Le(),EM=fr(),BS=jS(),Ms=Object.isExtensible,AM=SM(function(){Ms(1)});GS.exports=AM||BS?function(t){return!IM(t)||BS&&EM(t)==="ArrayBuffer"?!1:Ms?Ms(t):!0}:Ms});var Po=h((WY,$S)=>{"use strict";var CM=ae(),kM=Te(),xM=Eo(),TM=Le(),rp=It(),PM=hr().f,HS=tp(),OM=MS(),np=JS(),RM=hs(),NM=ep(),VS=!1,yr=RM("meta"),DM=0,ip=function(e){PM(e,yr,{value:{objectID:"O"+DM++,weakData:{}}})},LM=function(e,t){if(!TM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!rp(e,yr)){if(!np(e))return"F";if(!t)return"E";ip(e)}return e[yr].objectID},qM=function(e,t){if(!rp(e,yr)){if(!np(e))return!0;if(!t)return!1;ip(e)}return e[yr].weakData},UM=function(e){return NM&&VS&&np(e)&&!rp(e,yr)&&ip(e),e},MM=function(){FM.enable=function(){},VS=!0;var e=HS.f,t=kM([].splice),r={};r[yr]=1,e(r).length&&(HS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===yr){t(i,o,1);break}return i},CM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:OM.f}))},FM=$S.exports={enable:MM,fastKey:LM,getWeakData:qM,onFreeze:UM};xM[yr]=!0});var zS=h((zY,WS)=>{"use strict";var jM=Ze(),BM=gn(),GM=jM("iterator"),JM=Array.prototype;WS.exports=function(e){return e!==void 0&&(BM.Array===e||JM[GM]===e)}});var op=h((KY,YS)=>{"use strict";var HM=Zn(),KS=ms(),VM=un(),$M=gn(),WM=Ze(),zM=WM("iterator");YS.exports=function(e){if(!VM(e))return KS(e,zM)||KS(e,"@@iterator")||$M[HM(e)]}});var XS=h((YY,QS)=>{"use strict";var KM=Mt(),YM=pn(),QM=mr(),XM=co(),ZM=op(),eF=TypeError;QS.exports=function(e,t){var r=arguments.length<2?ZM(e):t;if(YM(r))return QM(KM(r,e));throw new eF(XM(e)+" is not iterable")}});var Fs=h((QY,eI)=>{"use strict";var tF=Mt(),ZS=mr(),rF=ms();eI.exports=function(e,t,r){var n,i;ZS(e);try{if(n=rF(e,"return"),!n){if(t==="throw")throw r;return r}n=tF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ZS(n),r}});var Bs=h((XY,iI)=>{"use strict";var nF=po(),iF=Mt(),oF=mr(),aF=co(),sF=zS(),cF=Xn(),tI=at(),lF=XS(),uF=op(),rI=Fs(),dF=TypeError,js=function(e,t){this.stopped=e,this.result=t},nI=js.prototype;iI.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=nF(t,n),l,d,u,p,f,m,v,b=function(w){return l&&rI(l,"normal",w),new js(!0,w)},y=function(w){return i?(oF(w),s?c(w[0],w[1],b):c(w[0],w[1])):s?c(w,b):c(w)};if(o)l=e.iterator;else if(a)l=e;else{if(d=uF(e),!d)throw new dF(aF(e)+" is not iterable");if(sF(d)){for(u=0,p=cF(e);p>u;u++)if(f=y(e[u]),f&&tI(nI,f))return f;return new js(!1)}l=lF(e,d)}for(m=o?e.next:l.next;!(v=iF(m,l)).done;){try{f=y(v.value)}catch(w){rI(l,"throw",w)}if(typeof f=="object"&&f&&tI(nI,f))return f}return new js(!1)}});var Gs=h((ZY,oI)=>{"use strict";var pF=at(),fF=TypeError;oI.exports=function(e,t){if(pF(t,e))return e;throw new fF("Incorrect invocation")}});var ap=h((eQ,sI)=>{"use strict";var mF=ae(),hF=Se(),gF=Po(),vF=we(),yF=fn(),bF=Bs(),_F=Gs(),wF=Ve(),SF=Le(),IF=un(),EF=ko(),AF=hr().f,CF=Gr().forEach,kF=st(),aI=yn(),xF=aI.set,TF=aI.getterFor;sI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=hF[e],s=a&&a.prototype,c={},l;if(!kF||!wF(a)||!(i||s.forEach&&!vF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),gF.enable();else{l=t(function(p,f){xF(_F(p,d),{type:e,collection:new a}),IF(f)||bF(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=TF(e);CF(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&yF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!SF(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||AF(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return EF(l,e,!1,!0),c[e]=l,mF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var mI=h((tQ,fI)=>{"use strict";var PF=Te(),cI=Us(),Js=Po().getWeakData,OF=Gs(),RF=mr(),NF=un(),sp=Le(),DF=Bs(),uI=Gr(),lI=It(),dI=yn(),LF=dI.set,qF=dI.getterFor,UF=uI.find,MF=uI.findIndex,FF=PF([].splice),jF=0,Hs=function(e){return e.frozen||(e.frozen=new pI)},pI=function(){this.entries=[]},cp=function(e,t){return UF(e.entries,function(r){return r[0]===t})};pI.prototype={get:function(e){var t=cp(this,e);if(t)return t[1]},has:function(e){return!!cp(this,e)},set:function(e,t){var r=cp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=MF(this.entries,function(r){return r[0]===e});return~t&&FF(this.entries,t,1),!!~t}};fI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){OF(c,o),LF(c,{type:t,id:jF++,frozen:null}),NF(l)||DF(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=qF(t),s=function(c,l,d){var u=a(c),p=Js(RF(l),!0);return p===!0?Hs(u).set(l,d):p[u.id]=d,c};return cI(o,{delete:function(c){var l=a(this);if(!sp(c))return!1;var d=Js(c);return d===!0?Hs(l).delete(c):d&&lI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!sp(l))return!1;var u=Js(l);return u===!0?Hs(d).has(l):u&&lI(u,d.id)}}),cI(o,r?{get:function(l){var d=a(this);if(sp(l)){var u=Js(l);if(u===!0)return Hs(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 SI=h(()=>{"use strict";var BF=ep(),hI=Se(),zs=Te(),gI=Us(),GF=Po(),JF=ap(),vI=mI(),Vs=Le(),$s=yn().enforce,HF=we(),VF=Pd(),No=Object,$F=Array.isArray,Ws=No.isExtensible,yI=No.isFrozen,WF=No.isSealed,bI=No.freeze,zF=No.seal,KF=!hI.ActiveXObject&&"ActiveXObject"in hI,Oo,_I=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wI=JF("WeakMap",_I,vI),ni=wI.prototype,Ks=zs(ni.set),YF=function(){return BF&&HF(function(){var e=bI([]);return Ks(new wI,e,1),!yI(e)})};VF&&(KF?(Oo=vI.getConstructor(_I,"WeakMap",!0),GF.enable(),lp=zs(ni.delete),Ro=zs(ni.has),up=zs(ni.get),gI(ni,{delete:function(e){if(Vs(e)&&!Ws(e)){var t=$s(this);return t.frozen||(t.frozen=new Oo),lp(this,e)||t.frozen.delete(e)}return lp(this,e)},has:function(t){if(Vs(t)&&!Ws(t)){var r=$s(this);return r.frozen||(r.frozen=new Oo),Ro(this,t)||r.frozen.has(t)}return Ro(this,t)},get:function(t){if(Vs(t)&&!Ws(t)){var r=$s(this);return r.frozen||(r.frozen=new Oo),Ro(this,t)?up(this,t):r.frozen.get(t)}return up(this,t)},set:function(t,r){if(Vs(t)&&!Ws(t)){var n=$s(this);n.frozen||(n.frozen=new Oo),Ro(this,t)?Ks(this,t,r):n.frozen.set(t,r)}else Ks(this,t,r);return this}})):YF()&&gI(ni,{set:function(t,r){var n;return $F(t)&&(yI(t)?n=bI:WF(t)&&(n=zF)),Ks(this,t,r),n&&n(t),this}}));var lp,Ro,up});var II=h(()=>{"use strict";SI()});var AI=h((aQ,EI)=>{"use strict";qs();Zd();II();var QF=zt();EI.exports=QF.WeakMap});var kI=h((sQ,CI)=>{"use strict";CI.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 dp=h(()=>{"use strict";qs();var XF=kI(),ZF=Se(),ej=ko(),xI=gn();for(Ys in XF)ej(ZF[Ys],Ys),xI[Ys]=xI.Array;var Ys});var PI=h((uQ,TI)=>{"use strict";var tj=AI();dp();TI.exports=tj});var RI=h((dQ,OI)=>{OI.exports=PI()});var DI=h(()=>{"use strict";var rj=ae(),nj=ao(),ij=Md().indexOf,oj=yo(),pp=nj([].indexOf),NI=!!pp&&1/pp([1],1,-0)<0,aj=NI||!oj("indexOf");rj({target:"Array",proto:!0,forced:aj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return NI?pp(this,t,r)||0:ij(this,t,r)}})});var qI=h((mQ,LI)=>{"use strict";DI();var sj=Ot();LI.exports=sj("Array","indexOf")});var MI=h((hQ,UI)=>{"use strict";var cj=at(),lj=qI(),fp=Array.prototype;UI.exports=function(e){var t=e.indexOf;return e===fp||cj(fp,e)&&t===fp.indexOf?lj:t}});var jI=h((gQ,FI)=>{"use strict";var uj=MI();FI.exports=uj});var GI=h((vQ,BI)=>{BI.exports=jI()});var JI=h(()=>{"use strict";var dj=ae(),pj=Gr().map,fj=vo(),mj=fj("map");dj({target:"Array",proto:!0,forced:!mj},{map:function(t){return pj(this,t,arguments.length>1?arguments[1]:void 0)}})});var VI=h((_Q,HI)=>{"use strict";JI();var hj=Ot();HI.exports=hj("Array","map")});var WI=h((wQ,$I)=>{"use strict";var gj=at(),vj=VI(),mp=Array.prototype;$I.exports=function(e){var t=e.map;return e===mp||gj(mp,e)&&t===mp.map?vj:t}});var KI=h((SQ,zI)=>{"use strict";var yj=WI();zI.exports=yj});var QI=h((IQ,YI)=>{YI.exports=KI()});var XI=h(()=>{"use strict";var bj=ae(),_j=st(),wj=Co();bj({target:"Object",stat:!0,sham:!_j},{create:wj})});var e0=h((CQ,ZI)=>{"use strict";XI();var Sj=zt(),Ij=Sj.Object;ZI.exports=function(t,r){return Ij.create(t,r)}});var r0=h((kQ,t0)=>{"use strict";var Ej=e0();t0.exports=Ej});var i0=h((xQ,n0)=>{n0.exports=r0()});var hp=h((TQ,o0)=>{"use strict";var Aj=hr();o0.exports=function(e,t,r){return Aj.f(e,t,r)}});var c0=h((PQ,s0)=>{"use strict";var Cj=$n(),kj=hp(),xj=Ze(),Tj=st(),a0=xj("species");s0.exports=function(e){var t=Cj(e);Tj&&t&&!t[a0]&&kj(t,a0,{configurable:!0,get:function(){return this}})}});var h0=h((OQ,m0)=>{"use strict";var l0=Co(),Pj=hp(),u0=Us(),Oj=po(),Rj=Gs(),Nj=un(),Dj=Bs(),Lj=Ns(),Qs=Ds(),qj=c0(),Do=st(),d0=Po().fastKey,f0=yn(),p0=f0.set,gp=f0.getterFor;m0.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){Rj(l,o),p0(l,{type:t,index:l0(null),first:null,last:null,size:0}),Do||(l.size=0),Nj(d)||Dj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=gp(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=d0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Do?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=d0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return u0(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=l0(null),Do?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),Do?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=Oj(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)}}),u0(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)}}),Do&&Pj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=gp(t),o=gp(n);Lj(e,t,function(a,s){p0(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,Qs(void 0,!0)):Qs(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),qj(t)}}});var g0=h(()=>{"use strict";var Uj=ap(),Mj=h0();Uj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Mj)});var v0=h(()=>{"use strict";g0()});var Hr=h((qQ,y0)=>{"use strict";var Fj=co(),jj=TypeError;y0.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 jj(Fj(e)+" is not a set")}});var _0=h((UQ,b0)=>{"use strict";b0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Vr=h((MQ,S0)=>{"use strict";var Bj=$n(),vp=_0(),w0=Bj("Set"),Gj=w0.prototype;S0.exports={Set:w0,add:vp("add",1),has:vp("has",1),remove:vp("delete",1),proto:Gj}});var $r=h((FQ,I0)=>{"use strict";var Jj=Mt();I0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=Jj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ii=h((jQ,E0)=>{"use strict";var Hj=$r();E0.exports=function(e,t,r){return r?Hj(e.keys(),t,!0):e.forEach(t)}});var Xs=h((BQ,C0)=>{"use strict";var A0=Vr(),Vj=ii(),$j=A0.Set,Wj=A0.add;C0.exports=function(e){var t=new $j;return Vj(e,function(r){Wj(t,r)}),t}});var oi=h((GQ,k0)=>{"use strict";k0.exports=function(e){return e.size}});var T0=h((JQ,x0)=>{"use strict";x0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Wr=h((HQ,L0)=>{"use strict";var P0=pn(),N0=mr(),O0=Mt(),zj=mo(),Kj=T0(),R0="Invalid size",Yj=RangeError,Qj=TypeError,Xj=Math.max,D0=function(e,t){this.set=e,this.size=Xj(t,0),this.has=P0(e.has),this.keys=P0(e.keys)};D0.prototype={getIterator:function(){return Kj(N0(O0(this.keys,this.set)))},includes:function(e){return O0(this.has,this.set,e)}};L0.exports=function(e){N0(e);var t=+e.size;if(t!==t)throw new Qj(R0);var r=zj(t);if(r<0)throw new Yj(R0);return new D0(e,r)}});var F0=h((VQ,M0)=>{"use strict";var Zj=Hr(),U0=Vr(),eB=Xs(),tB=oi(),rB=Wr(),nB=ii(),iB=$r(),oB=U0.has,q0=U0.remove;M0.exports=function(t){var r=Zj(this),n=rB(t),i=eB(r);return tB(r)<=n.size?nB(r,function(o){n.includes(o)&&q0(i,o)}):iB(n.getIterator(),function(o){oB(r,o)&&q0(i,o)}),i}});var zr=h(($Q,j0)=>{"use strict";j0.exports=function(){return!1}});var B0=h(()=>{"use strict";var aB=ae(),sB=F0(),cB=zr(),lB=!cB("difference",function(e){return e.size===0});aB({target:"Set",proto:!0,real:!0,forced:lB},{difference:sB})});var H0=h((KQ,J0)=>{"use strict";var uB=Hr(),yp=Vr(),dB=oi(),pB=Wr(),fB=ii(),mB=$r(),hB=yp.Set,G0=yp.add,gB=yp.has;J0.exports=function(t){var r=uB(this),n=pB(t),i=new hB;return dB(r)>n.size?mB(n.getIterator(),function(o){gB(r,o)&&G0(i,o)}):fB(r,function(o){n.includes(o)&&G0(i,o)}),i}});var V0=h(()=>{"use strict";var vB=ae(),yB=we(),bB=H0(),_B=zr(),wB=!_B("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||yB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});vB({target:"Set",proto:!0,real:!0,forced:wB},{intersection:bB})});var W0=h((XQ,$0)=>{"use strict";var SB=Hr(),IB=Vr().has,EB=oi(),AB=Wr(),CB=ii(),kB=$r(),xB=Fs();$0.exports=function(t){var r=SB(this),n=AB(t);if(EB(r)<=n.size)return CB(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return kB(i,function(o){if(IB(r,o))return xB(i,"normal",!1)})!==!1}});var z0=h(()=>{"use strict";var TB=ae(),PB=W0(),OB=zr(),RB=!OB("isDisjointFrom",function(e){return!e});TB({target:"Set",proto:!0,real:!0,forced:RB},{isDisjointFrom:PB})});var Y0=h((tX,K0)=>{"use strict";var NB=Hr(),DB=oi(),LB=ii(),qB=Wr();K0.exports=function(t){var r=NB(this),n=qB(t);return DB(r)>n.size?!1:LB(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Q0=h(()=>{"use strict";var UB=ae(),MB=Y0(),FB=zr(),jB=!FB("isSubsetOf",function(e){return e});UB({target:"Set",proto:!0,real:!0,forced:jB},{isSubsetOf:MB})});var Z0=h((iX,X0)=>{"use strict";var BB=Hr(),GB=Vr().has,JB=oi(),HB=Wr(),VB=$r(),$B=Fs();X0.exports=function(t){var r=BB(this),n=HB(t);if(JB(r)<n.size)return!1;var i=n.getIterator();return VB(i,function(o){if(!GB(r,o))return $B(i,"normal",!1)})!==!1}});var eE=h(()=>{"use strict";var WB=ae(),zB=Z0(),KB=zr(),YB=!KB("isSupersetOf",function(e){return!e});WB({target:"Set",proto:!0,real:!0,forced:YB},{isSupersetOf:zB})});var rE=h((sX,tE)=>{"use strict";var QB=Hr(),bp=Vr(),XB=Xs(),ZB=Wr(),eG=$r(),tG=bp.add,rG=bp.has,nG=bp.remove;tE.exports=function(t){var r=QB(this),n=ZB(t).getIterator(),i=XB(r);return eG(n,function(o){rG(r,o)?nG(i,o):tG(i,o)}),i}});var nE=h(()=>{"use strict";var iG=ae(),oG=rE(),aG=zr();iG({target:"Set",proto:!0,real:!0,forced:!aG("symmetricDifference")},{symmetricDifference:oG})});var oE=h((uX,iE)=>{"use strict";var sG=Hr(),cG=Vr().add,lG=Xs(),uG=Wr(),dG=$r();iE.exports=function(t){var r=sG(this),n=uG(t).getIterator(),i=lG(r);return dG(n,function(o){cG(i,o)}),i}});var aE=h(()=>{"use strict";var pG=ae(),fG=oE(),mG=zr();pG({target:"Set",proto:!0,real:!0,forced:!mG("union")},{union:fG})});var Lo=h((fX,sE)=>{"use strict";var hG=Zn(),gG=String;sE.exports=function(e){if(hG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return gG(e)}});var dE=h((mX,uE)=>{"use strict";var _p=Te(),vG=mo(),yG=Lo(),bG=dn(),_G=_p("".charAt),cE=_p("".charCodeAt),wG=_p("".slice),lE=function(e){return function(t,r){var n=yG(bG(t)),i=vG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=cE(n,i),a<55296||a>56319||i+1===o||(s=cE(n,i+1))<56320||s>57343?e?_G(n,i):a:e?wG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};uE.exports={codeAt:lE(!1),charAt:lE(!0)}});var hE=h(()=>{"use strict";var SG=dE().charAt,IG=Lo(),fE=yn(),EG=Ns(),pE=Ds(),mE="String Iterator",AG=fE.set,CG=fE.getterFor(mE);EG(String,"String",function(e){AG(this,{type:mE,string:IG(e),index:0})},function(){var t=CG(this),r=t.string,n=t.index,i;return n>=r.length?pE(void 0,!0):(i=SG(r,n),t.index+=i.length,pE(i,!1))})});var vE=h((vX,gE)=>{"use strict";qs();Zd();v0();B0();V0();z0();Q0();eE();nE();aE();hE();var kG=zt();gE.exports=kG.Set});var bE=h((yX,yE)=>{"use strict";var xG=vE();dp();yE.exports=xG});var wE=h((bX,_E)=>{_E.exports=bE()});var IE=h(SE=>{"use strict";SE.f=Object.getOwnPropertySymbols});var kE=h((wX,CE)=>{"use strict";var EE=st(),TG=Te(),PG=Mt(),OG=we(),wp=Bd(),RG=IE(),NG=Mu(),DG=zn(),LG=us(),ai=Object.assign,AE=Object.defineProperty,qG=TG([].concat);CE.exports=!ai||OG(function(){if(EE&&ai({b:1},ai(AE({},"a",{enumerable:!0,get:function(){AE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),ai({},e)[r]!==7||wp(ai({},t)).join("")!==n})?function(t,r){for(var n=DG(t),i=arguments.length,o=1,a=RG.f,s=NG.f;i>o;)for(var c=LG(arguments[o++]),l=a?qG(wp(c),a(c)):wp(c),d=l.length,u=0,p;d>u;)p=l[u++],(!EE||PG(s,c,p))&&(n[p]=c[p]);return n}:ai});var TE=h(()=>{"use strict";var UG=ae(),xE=kE();UG({target:"Object",stat:!0,arity:2,forced:Object.assign!==xE},{assign:xE})});var OE=h((EX,PE)=>{"use strict";TE();var MG=zt();PE.exports=MG.Object.assign});var NE=h((AX,RE)=>{"use strict";var FG=OE();RE.exports=FG});var LE=h((CX,DE)=>{DE.exports=NE()});var Sp=h((kX,qE)=>{"use strict";qE.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 FE=h((xX,ME)=>{"use strict";var jG=Te(),BG=dn(),GG=Lo(),Ep=Sp(),UE=jG("".replace),JG=RegExp("^["+Ep+"]+"),HG=RegExp("(^|[^"+Ep+"])["+Ep+"]+$"),Ip=function(e){return function(t){var r=GG(BG(t));return e&1&&(r=UE(r,JG,"")),e&2&&(r=UE(r,HG,"$1")),r}};ME.exports={start:Ip(1),end:Ip(2),trim:Ip(3)}});var JE=h((TX,GE)=>{"use strict";var VG=qd().PROPER,$G=we(),jE=Sp(),BE="\u200B\x85\u180E";GE.exports=function(e){return $G(function(){return!!jE[e]()||BE[e]()!==BE||VG&&jE[e].name!==e})}});var HE=h(()=>{"use strict";var WG=ae(),zG=FE().trim,KG=JE();WG({target:"String",proto:!0,forced:KG("trim")},{trim:function(){return zG(this)}})});var $E=h((RX,VE)=>{"use strict";HE();var YG=Ot();VE.exports=YG("String","trim")});var zE=h((NX,WE)=>{"use strict";var QG=at(),XG=$E(),Ap=String.prototype;WE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Ap||QG(Ap,e)&&t===Ap.trim?XG:t}});var YE=h((DX,KE)=>{"use strict";var ZG=zE();KE.exports=ZG});var XE=h((LX,QE)=>{QE.exports=YE()});var tA=h(()=>{"use strict";var eJ=ae(),ZE=ho(),tJ=ud(),rJ=Le(),eA=Ud(),nJ=Xn(),iJ=jr(),oJ=hd(),aJ=Ze(),sJ=vo(),cJ=_o(),lJ=sJ("slice"),uJ=aJ("species"),Cp=Array,dJ=Math.max;eJ({target:"Array",proto:!0,forced:!lJ},{slice:function(t,r){var n=iJ(this),i=nJ(n),o=eA(t,i),a=eA(r===void 0?i:r,i),s,c,l;if(ZE(n)&&(s=n.constructor,tJ(s)&&(s===Cp||ZE(s.prototype))?s=void 0:rJ(s)&&(s=s[uJ],s===null&&(s=void 0)),s===Cp||s===void 0))return cJ(n,o,a);for(c=new(s===void 0?Cp:s)(dJ(a-o,0)),l=0;o<a;o++,l++)o in n&&oJ(c,l,n[o]);return c.length=l,c}})});var nA=h((MX,rA)=>{"use strict";tA();var pJ=Ot();rA.exports=pJ("Array","slice")});var oA=h((FX,iA)=>{"use strict";var fJ=at(),mJ=nA(),kp=Array.prototype;iA.exports=function(e){var t=e.slice;return e===kp||fJ(kp,e)&&t===kp.slice?mJ:t}});var sA=h((jX,aA)=>{"use strict";var hJ=oA();aA.exports=hJ});var lA=h((BX,cA)=>{cA.exports=sA()});var xp=x(()=>{});var dA=h((JX,uA)=>{"use strict";var gJ=Le(),vJ=fr(),yJ=Ze(),bJ=yJ("match");uA.exports=function(e){var t;return gJ(e)&&((t=e[bJ])!==void 0?!!t:vJ(e)==="RegExp")}});var fA=h((HX,pA)=>{"use strict";var _J=dA(),wJ=TypeError;pA.exports=function(e){if(_J(e))throw new wJ("The method doesn't accept regular expressions");return e}});var hA=h((VX,mA)=>{"use strict";var SJ=Ze(),IJ=SJ("match");mA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[IJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var yA=h(()=>{"use strict";var EJ=ae(),AJ=ao(),CJ=td().f,kJ=sd(),gA=Lo(),xJ=fA(),TJ=dn(),PJ=hA(),OJ=Wn(),RJ=AJ("".slice),NJ=Math.min,vA=PJ("startsWith"),DJ=!OJ&&!vA&&!!function(){var e=CJ(String.prototype,"startsWith");return e&&!e.writable}();EJ({target:"String",proto:!0,forced:!DJ&&!vA},{startsWith:function(t){var r=gA(TJ(this));xJ(t);var n=kJ(NJ(arguments.length>1?arguments[1]:void 0,r.length)),i=gA(t);return RJ(r,n,n+i.length)===i}})});var _A=h((zX,bA)=>{"use strict";yA();var LJ=Ot();bA.exports=LJ("String","startsWith")});var SA=h((KX,wA)=>{"use strict";var qJ=at(),UJ=_A(),Tp=String.prototype;wA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Tp||qJ(Tp,e)&&t===Tp.startsWith?UJ:t}});var EA=h((YX,IA)=>{"use strict";var MJ=SA();IA.exports=MJ});var CA=h((QX,AA)=>{AA.exports=EA()});var OA=h((XX,PA)=>{"use strict";var xA=Te(),FJ=pn(),jJ=Le(),BJ=It(),kA=_o(),GJ=Vn(),TA=Function,JJ=xA([].concat),HJ=xA([].join),Pp={},VJ=function(e,t,r){if(!BJ(Pp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Pp[t]=TA("C,a","return new C("+HJ(n,",")+")")}return Pp[t](e,r)};PA.exports=GJ?TA.bind:function(t){var r=FJ(this),n=r.prototype,i=kA(arguments,1),o=function(){var s=JJ(i,kA(arguments));return this instanceof o?VJ(r,s.length,s):r.apply(t,s)};return jJ(n)&&(o.prototype=n),o}});var NA=h(()=>{"use strict";var $J=ae(),RA=OA();$J({target:"Function",proto:!0,forced:Function.bind!==RA},{bind:RA})});var LA=h((tZ,DA)=>{"use strict";NA();var WJ=Ot();DA.exports=WJ("Function","bind")});var UA=h((rZ,qA)=>{"use strict";var zJ=at(),KJ=LA(),Op=Function.prototype;qA.exports=function(e){var t=e.bind;return e===Op||zJ(Op,e)&&t===Op.bind?KJ:t}});var FA=h((nZ,MA)=>{"use strict";var YJ=UA();MA.exports=YJ});var BA=h((iZ,jA)=>{jA.exports=FA()});function vc(e,t){Pe.__h&&Pe.__h(ve,e,Go||t),Go=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tr(e){return Go=1,QJ(TC,e)}function QJ(e,t,r){var n=vc(ui++,2);if(n.t=e,!n.__c&&(n.__=[TC(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=ve,!ve.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Xp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,EC.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,qe.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};ve.__f=!0;var o=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.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)},ve.shouldComponentUpdate=i}return n.__N||n.__}function _n(e,t){var r=vc(ui++,3);!Pe.__s&&xC(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function Mo(e){return Go=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=vc(ui++,7);return xC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return Go=8,_r(function(){return e},t)}function XJ(e){var t=ve.context[e.__c],r=vc(ui++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function ZJ(){for(var e;e=kC.shift();)if(e.__P&&e.__H)try{var t,r;(0,qe.default)(t=e.__H.__h).call(t,nc),(0,qe.default)(r=e.__H.__h).call(r,jp),e.__H.__h=[]}catch(n){e.__H.__h=[],Pe.__e(n,e.__v)}}function e2(e){var t,r=function(){clearTimeout(n),KA&&cancelAnimationFrame(t),(0,er.default)(e)},n=(0,er.default)(r,100);KA&&(t=requestAnimationFrame(r))}function nc(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function jp(e){var t=ve;e.__c=e.__(),ve=t}function xC(e,t){return!e||e.length!==t.length||(0,dc.default)(t).call(t,function(r,n){return r!==e[n]})}function TC(e,t){return typeof t=="function"?t(e):t}function t2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bp(){throw new Error("setTimeout has not been defined")}function Gp(){throw new Error("clearTimeout has not been defined")}function OC(e){if(Kt===er.default)return(0,er.default)(e,0);if((Kt===Bp||!Kt)&&er.default)return Kt=er.default,(0,er.default)(e,0);try{return Kt(e,0)}catch(t){try{return Kt.call(null,e,0)}catch(r){return Kt.call(this,e,0)}}}function r2(e){if(Yt===clearTimeout)return clearTimeout(e);if((Yt===Gp||!Yt)&&clearTimeout)return Yt=clearTimeout,clearTimeout(e);try{return Yt(e)}catch(t){try{return Yt.call(null,e)}catch(r){return Yt.call(this,e)}}}function n2(){!si||!Yr||(si=!1,Yr.length?br=(0,gc.default)(Yr).call(Yr,br):ic=-1,br.length&&RC())}function RC(){if(!si){var e=OC(n2);si=!0;for(var t=br.length;t;){for(Yr=br,br=[];++ic<t;)Yr&&Yr[ic].run();ic=-1,t=br.length}Yr=null,si=!1,r2(e)}}function NC(e,t){this.fun=e,this.array=t}function Sr(){}function a2(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 s2(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 d2(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function qC(e){return(0,tf.default)(e).call(e)}function p2(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Jp(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function Jo(e,t,r){return(0,rf.default)(e).call(e,t,r)}function Qt(e){return e.length}function sf(e){return e.length}function Zs(e,t){return t.push(e),e}function f2(e,t){return(0,Bo.default)(e).call(e,t).join("")}function _c(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:bc,column:di,length:a,return:""}}function qo(e,t){return u2(_c("",null,null,"",null,null,0),e,{length:-e.length},t)}function m2(){return Oe}function h2(){return Oe=pt>0?$e(fi,--pt):0,di--,Oe===10&&(di=1,bc--),Oe}function Et(){return Oe=pt<UC?$e(fi,pt++):0,di++,Oe===10&&(di=1,bc++),Oe}function rr(){return $e(fi,pt)}function oc(){return pt}function Ko(e,t){return Jo(fi,e,t)}function Ho(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 MC(e){return bc=di=1,UC=Qt(fi=e),pt=0,[]}function FC(e){return fi="",e}function ac(e){return qC(Ko(pt-1,Hp(e===91?e+2:e===40?e+1:e)))}function g2(e){for(;(Oe=rr())&&Oe<33;)Et();return Ho(e)>2||Ho(Oe)>3?"":" "}function v2(e,t){for(;--t&&Et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Ko(e,oc()+(t<6&&rr()==32&&Et()==32))}function Hp(e){for(;Et();)switch(Oe){case e:return pt;case 34:case 39:e!==34&&e!==39&&Hp(Oe);break;case 40:e===41&&Hp(e);break;case 92:Et();break}return pt}function y2(e,t){for(;Et()&&e+Oe!==57&&!(e+Oe===84&&rr()===47););return"/*"+Ko(t,pt-1)+"*"+yc(e===47?e:Et())}function b2(e){for(;!Ho(rr());)Et();return Ko(e,pt)}function _2(e){return FC(sc("",null,null,null,[""],e=MC(e),0,[0],e))}function sc(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,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=Et()){case 40:if(m!=108&&$e(A,u-1)==58){Jp(A+=ie(ac(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ac(w);break;case 9:case 10:case 13:case 32:A+=g2(m);break;case 92:A+=v2(oc()-1,7);continue;case 47:switch(rr()){case 42:case 47:Zs(w2(y2(Et(),oc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Qt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Qt(A)-u&&Zs(f>32?QA(A+";",n,r,u-1):QA(ie(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(Zs(k=YA(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)sc(A,t,k,k,C,o,u,s,T);else switch(p===99&&$e(A,3)===110?100:p){case 100:case 109:case 115:sc(e,k,k,n&&Zs(YA(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:sc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Qt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&h2()==125)continue}switch(A+=yc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Qt(A)-1)*y,y=1;break;case 64:rr()===45&&(A+=ac(Et())),p=rr(),d=u=Qt(E=A+=b2(oc())),w++;break;case 45:m===45&&Qt(A)==2&&(v=0)}}return o}function YA(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=sf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Jo(e,u+1,u=l2(v=a[m])),E=e;y<f;++y)(E=qC(v>0?p[y]+" "+w:ie(w,/&\f/g,p[y])))&&(c[b++]=E);return _c(e,t,r,i===0?of:s,c,l,d)}function w2(e,t,r){return _c(e,t,r,nf,yc(m2()),Jo(e,2,-2),0)}function QA(e,t,r,n){return _c(e,t,r,af,Jo(e,0,n),Jo(e,n+1,-1),n)}function ci(e,t){for(var r="",n=sf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function S2(e,t,r,n){switch(e.type){case c2:case af:return e.return=e.return||e.value;case nf:return"";case LC:return e.return=e.value+"{"+ci(e.children,n)+"}";case of:e.value=e.props.join(",")}return Qt(r=ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function I2(e){var t=sf(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 E2(e){return function(t){t.root||(t=t.return)&&e(t)}}function BC(e,t){switch(d2(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+fc+e+et+e+e;case 6828:case 4268:return Z+e+et+e+e;case 6165:return Z+e+et+"flex-"+e+e;case 5187:return Z+e+ie(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return Z+e+et+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return Z+e+et+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+et+ie(e,"shrink","negative")+e;case 5292:return Z+e+et+ie(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ie(e,"-grow","")+Z+e+et+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"+et+"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(Qt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+fc+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jp(e,"stretch")?BC(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,Qt(e)-3-(~Jp(e,"!important")&&10))){case 107:return ie(e,":",":"+Z)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+($e(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+et+e+e}return e}function JC(){if(eC)return ec.exports;eC=1;let e=JC();return ec.exports={default:e},ec.exports.default=e,ec.exports}function Vo(e,t,r){var n,i="";return(0,qe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function M2(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 j2(e){var t=(0,AC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function $o(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 Xt={name:i.name,styles:i.styles,next:Xt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xt={name:a.name,styles:a.styles,next:Xt},a=a.next;var s=o.styles+";";return s}return J2(e,t,r)}case"function":{if(e!==void 0){var c=Xt,l=r(e);return Xt=c,$o(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function J2(e,t,r){var n="";if((0,jo.default)(r))for(var i=0;i<r.length;i++)n+=$o(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]+"}":tC(s)&&(n+=Np(o)+":"+rC(o,s)+";")}else if((0,jo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)tC(a[c])&&(n+=Np(o)+":"+rC(o,a[c])+";");else{var l=$o(e,t,a);switch(o){case"animation":case"animationName":{n+=Np(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Qr(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="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=$o(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=$o(r,t,e[s]),n){var c=o;i+=c[s]}nC.lastIndex=0;for(var l="",d;(d=nC.exec(i))!==null;)l+="-"+d[1];var u=M2(i)+l;return{name:u,styles:i,next:Xt}}function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t)}function eH(e,t,r){var n=[],i=Vo(e,n,r);return n.length<2?r:i+t(n)}function _(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:--nH,__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 L.vnode&&L.vnode(l),l}function Yo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=tr(e());return _n(()=>{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 w5(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 ek(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=w5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function S5(e){let t=()=>ek(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function A5(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=E5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Xe("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||{})}))}):_("div",B(P({},a),{ref:l,className:i,children:r}))}function C5(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?Xe(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?Xe(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 O5(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 hC(e,t,r){return Sc.call(t,"css")?_(df,zC(e,t),r):_(e,t,r)}function U5(e,t,r){return Sc.call(t,"css")?_(df,zC(e,t),r):_(e,t,r)}function Kp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(He,{children:t[s]},o):null}return _(He,{children:i},o)})})}function j5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=tr(!1);return a?null:_("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function J5({children:e,style:t}){return _("div",{style:`${B5.styles} ${t}`,children:[e,_("svg",{style:`${G5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function i3(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function mk(e){return(0,tf.default)(e).call(e)}function o3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Yp(e,t){return(0,wr.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function Wo(e,t,r){return(0,rf.default)(e).call(e,t,r)}function Zt(e){return e.length}function gf(e){return e.length}function rc(e,t){return t.push(e),e}function a3(e,t){return(0,Bo.default)(e).call(e,t).join("")}function xc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:kc,column:pi,length:a,return:""}}function Uo(e,t){return n3(xc("",null,null,"",null,null,0),e,{length:-e.length},t)}function s3(){return Re}function c3(){return Re=ft>0?We(hi,--ft):0,pi--,Re===10&&(pi=1,kc--),Re}function At(){return Re=ft<hk?We(hi,ft++):0,pi++,Re===10&&(pi=1,kc++),Re}function nr(){return We(hi,ft)}function cc(){return ft}function Qo(e,t){return Wo(hi,e,t)}function zo(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 gk(e){return kc=pi=1,hk=Zt(hi=e),ft=0,[]}function vk(e){return hi="",e}function lc(e){return mk(Qo(ft-1,Qp(e===91?e+2:e===40?e+1:e)))}function l3(e){for(;(Re=nr())&&Re<33;)At();return zo(e)>2||zo(Re)>3?"":" "}function u3(e,t){for(;--t&&At()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Qo(e,cc()+(t<6&&nr()==32&&At()==32))}function Qp(e){for(;At();)switch(Re){case e:return ft;case 34:case 39:e!==34&&e!==39&&Qp(Re);break;case 40:e===41&&Qp(e);break;case 92:At();break}return ft}function d3(e,t){for(;At()&&e+Re!==57&&!(e+Re===84&&nr()===47););return"/*"+Qo(t,ft-1)+"*"+Cc(e===47?e:At())}function p3(e){for(;!zo(nr());)At();return Qo(e,ft)}function f3(e){return vk(uc("",null,null,null,[""],e=gk(e),0,[0],e))}function uc(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,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=At()){case 40:if(m!=108&&We(A,u-1)==58){Yp(A+=te(lc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=lc(w);break;case 9:case 10:case 13:case 32:A+=l3(m);break;case 92:A+=u3(cc()-1,7);continue;case 47:switch(nr()){case 42:case 47:rc(m3(d3(At(),cc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Zt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=te(A,/\f/g,"")),f>0&&Zt(A)-u&&rc(f>32?vC(A+";",n,r,u-1):vC(te(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(rc(k=gC(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)uc(A,t,k,k,C,o,u,s,T);else switch(p===99&&We(A,3)===110?100:p){case 100:case 108:case 109:case 115:uc(e,k,k,n&&rc(gC(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:uc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Zt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&c3()==125)continue}switch(A+=Cc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Zt(A)-1)*y,y=1;break;case 64:nr()===45&&(A+=lc(At())),p=nr(),d=u=Zt(E=A+=p3(cc())),w++;break;case 45:m===45&&Zt(A)==2&&(v=0)}}return o}function gC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=gf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Wo(e,u+1,u=r3(v=a[m])),E=e;y<f;++y)(E=mk(v>0?p[y]+" "+w:te(w,/&\f/g,p[y])))&&(c[b++]=E);return xc(e,t,r,i===0?mf:s,c,l,d)}function m3(e,t,r){return xc(e,t,r,pk,Cc(s3()),Wo(e,2,-2),0)}function vC(e,t,r,n){return xc(e,t,r,hf,Wo(e,0,n),Wo(e,n+1,-1),n)}function li(e,t){for(var r="",n=gf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function h3(e,t,r,n){switch(e.type){case t3:if(e.children.length)break;case e3:case hf:return e.return=e.return||e.value;case pk:return"";case fk:return e.return=e.value+"{"+li(e.children,n)+"}";case mf:e.value=e.props.join(",")}return Zt(r=li(e.children,n))?e.return=e.value+"{"+r+"}":""}function g3(e){var t=gf(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 v3(e){return function(t){t.root||(t=t.return)&&e(t)}}function yk(e,t){switch(i3(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+hc+e+tt+e+e;case 6828:case 4268:return ee+e+tt+e+e;case 6165:return ee+e+tt+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return ee+e+tt+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+tt+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+tt+te(e,"shrink","negative")+e;case 5292:return ee+e+tt+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+tt+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"+tt+"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(Zt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+hc+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yp(e,"stretch")?yk(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Zt(e)-3-(~Yp(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(We(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+tt+e+e}return e}function bC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Mp(e,t,r){var n=[],i=Vo(e,n,r);return n.length<2?r:i+t(n)}function SC(e){if(e==="top"){let t=0;bk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${_C}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${_C}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+wC)})}else if(e==="center"){let t=0;_k.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+wC)})}}function wn(){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 Fo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Fr(_(D3,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Fo.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&&(Fr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Fo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Xp,EC,qe,gc,dc,er,pc,jo,Zp,wr,Bo,AC,CC,ef,tf,rf,lZ,Fp,ui,ve,Rp,GA,Go,kC,Pe,JA,HA,VA,$A,WA,zA,KA,PC,Ce,Kt,Yt,br,si,Yr,ic,i2,Ue,o2,DC,et,fc,Z,nf,of,af,c2,LC,l2,yc,u2,bc,di,UC,pt,Oe,fi,A2,C2,k2,XA,x2,T2,P2,O2,R2,jC,N2,ZA,D2,L2,q2,GC,ec,eC,U2,cf,wc,F2,B2,G2,HC,tC,Np,rC,nC,Xt,H2,VC,$C,iC,Sc,lf,WC,uf,Ic,V2,$2,W2,z2,K2,Vp,$p,zC,Y2,df,Q2,oC,X2,Z2,tH,rH,Dp,aC,Lp,qp,nH,Up,iH,oH,aH,sH,cH,lH,uH,sC,dH,pH,fH,cC,mH,hH,gH,lC,vH,yH,bH,uC,_H,wH,SH,IH,EH,AH,CH,kH,xH,TH,PH,dC,OH,RH,NH,DH,LH,qH,UH,MH,FH,jH,BH,pC,GH,JH,HH,VH,$H,WH,zH,KH,YH,QH,XH,ZH,e5,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,b5,KC,YC,QC,Wp,_5,XC,ZC,mc,Fo,fC,I5,Ec,E5,tk,rk,nk,k5,x5,T5,zp,P5,ik,ok,Ac,pf,mi,mC,Kr,ak,bn,R5,N5,D5,L5,q5,tc,sk,ff,Ie,M5,F5,B5,G5,Bt,H5,V5,ck,lk,uk,dk,Xr,$5,W5,z5,K5,Y5,Q5,X5,Z5,tt,hc,ee,pk,mf,hf,e3,fk,t3,r3,Cc,n3,kc,pi,hk,ft,Re,hi,y3,b3,_3,yC,w3,S3,I3,E3,A3,C3,k3,x3,T3,P3,O3,R3,_C,wC,bk,_k,Ir,IC,N3,D3,uZ,ir=x(()=>{"use strict";Hn();Xp=se(mb(),1),EC=se(Eb(),1),qe=se(Ub(),1),gc=se(Xb(),1),dc=se(s_(),1),er=se(A_(),1);Is();Is();pc=se(lw(),1),jo=se(gw(),1),Zp=se(RI(),1),wr=se(GI(),1),Bo=se(QI(),1),AC=se(i0(),1),CC=se(wE(),1),ef=se(LE(),1),tf=se(XE(),1),rf=se(lA(),1);xp();xp();lZ=se(CA(),1),Fp=se(BA(),1),Go=0,kC=[],Pe=L,JA=Pe.__b,HA=Pe.__r,VA=Pe.diffed,$A=Pe.__c,WA=Pe.unmount,zA=Pe.__;Pe.__b=function(e){ve=null,JA&&JA(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zA&&zA(e,t)},Pe.__r=function(e){var t,r,n;HA&&HA(e),ui=0;var i=(ve=e.__c).__H;i&&(Rp===ve?(i.__h=[],ve.__h=[],(0,qe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,qe.default)(r=i.__h).call(r,nc),(0,qe.default)(n=i.__h).call(n,jp),i.__h=[],ui=0)),Rp=ve},Pe.diffed=function(e){var t;VA&&VA(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(kC.push(r)!==1&&GA===Pe.requestAnimationFrame||((GA=Pe.requestAnimationFrame)||e2)(ZJ)),(0,qe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Rp=ve=null},Pe.__c=function(e,t){(0,dc.default)(t).call(t,function(r){try{var n,i;(0,qe.default)(n=r.__h).call(n,nc),r.__h=(0,Xp.default)(i=r.__h).call(i,function(o){return!o.__||jp(o)})}catch(o){(0,dc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Pe.__e(o,r.__v)}}),$A&&$A(e,t)},Pe.unmount=function(e){var t;WA&&WA(e);var r,n=e.__c;n&&n.__H&&((0,qe.default)(t=n.__H.__).call(t,function(i){try{nc(i)}catch(o){r=o}}),n.__H=void 0,r&&Pe.__e(r,n.__v))};KA=typeof requestAnimationFrame=="function";PC={exports:{}},Ce=PC.exports={};(function(){try{typeof er.default=="function"?Kt=er.default:Kt=Bp}catch(e){Kt=Bp}try{typeof clearTimeout=="function"?Yt=clearTimeout:Yt=Gp}catch(e){Yt=Gp}})();br=[],si=!1,ic=-1;Ce.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];br.push(new NC(e,t)),br.length===1&&!si&&OC(RC)};NC.prototype.run=function(){this.fun.apply(null,this.array)};Ce.title="browser";Ce.browser=!0;Ce.env={};Ce.argv=[];Ce.version="";Ce.versions={};Ce.on=Sr;Ce.addListener=Sr;Ce.once=Sr;Ce.off=Sr;Ce.removeListener=Sr;Ce.removeAllListeners=Sr;Ce.emit=Sr;Ce.prependListener=Sr;Ce.prependOnceListener=Sr;Ce.listeners=function(e){return[]};Ce.binding=function(e){throw new Error("process.binding is not supported")};Ce.cwd=function(){return"/"};Ce.chdir=function(e){throw new Error("process.chdir is not supported")};Ce.umask=function(){return 0};i2=PC.exports,Ue=t2(i2),o2=pc.default||void 0||self;DC=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,qe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(s2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=a2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,qe.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}(),et="-ms-",fc="-moz-",Z="-webkit-",nf="comm",of="rule",af="decl",c2="@import",LC="@keyframes",l2=Math.abs,yc=String.fromCharCode,u2=ef.default;bc=1,di=1,UC=0,pt=0,Oe=0,fi="";A2=function(e,t,r){for(var n=0,i=0;n=i,i=rr(),n===38&&i===12&&(t[r]=1),!Ho(i);)Et();return Ko(e,pt)},C2=function(e,t){var r=-1,n=44;do switch(Ho(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=A2(pt-1,t,r);break;case 2:e[r]+=ac(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=yc(n)}while(n=Et());return e},k2=function(e,t){return FC(C2(MC(e),t))},XA=new Zp.default,x2=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&&!XA.get(r))&&!n){XA.set(e,!0);for(var i=[],o=k2(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]}}},T2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},P2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",O2=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,P2)>-1},R2=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(O2(c))return;break}}(0,qe.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".')})}}}},jC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},N2=function(e,t){for(var r=e-1;r>=0;r--)if(!jC(t[r]))return!0;return!1},ZA=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},D2=function(e,t,r){jC(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."),ZA(e)):N2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ZA(e)))};L2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case af:e.return=BC(e.value,e.length);break;case LC:return ci([qo(e,{value:ie(e.value,"@","@"+Z)})],n);case of:if(e.length)return f2(e.props,function(i){switch(p2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ci([qo(e,{props:[ie(i,/:(read-\w+)/,":"+fc+"$1")]})],n);case"::placeholder":return ci([qo(e,{props:[ie(i,/:(plac\w+)/,":"+Z+"input-$1")]}),qo(e,{props:[ie(i,/:(plac\w+)/,":"+fc+"$1")]}),qo(e,{props:[ie(i,/:(plac\w+)/,et+"input-$1")]})],n)}return""})}},q2=[L2],GC=function(e){var t=e.key;if(Ue.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,qe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||q2;if(Ue.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,qe.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=[x2,T2];Ue.env.NODE_ENV!=="production"&&c.push(R2({get compat(){return f.compat}}),D2);{var l,d=[S2,Ue.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==nf&&l.insert(m.value+"{}"))}:E2(function(m){l.insert(m)})],u=I2((0,gc.default)(c).call(c,n,d)),p=function(m){return ci(_2(m),u)};s=function(m,v,b,y){l=b,Ue.env.NODE_ENV!=="production"&&(0,Bo.default)(v)!==void 0&&(l={insert:function(w){b.insert(w+(0,Bo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new DC({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},ec={exports:{}};JC();U2=!0;cf=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||U2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},wc=function(e,t,r){cf(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)}};F2={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};B2=/[A-Z]|^ms/g,G2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HC=function(e){return e.charCodeAt(1)===45},tC=function(e){return e!=null&&typeof e!="boolean"},Np=j2(function(e){return HC(e)?e:e.replace(B2,"-$&").toLowerCase()}),rC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(G2,function(r,n,i){return Xt={name:n,styles:i,next:Xt},n})}return F2[e]!==1&&!HC(e)&&typeof t=="number"&&t!==0?t+"px":t};nC=/label:\s*([^\s;{]+)\s*(;|$)/g;H2=function(e){return e()},VC=Ad?Ad:!1,$C=VC||H2,iC=VC||ei,Sc={}.hasOwnProperty,lf=ln(typeof HTMLElement<"u"?GC({key:"css"}):null);Ue.env.NODE_ENV!=="production"&&(lf.displayName="EmotionCacheContext");WC=lf.Provider,uf=function(e){return kd(function(t,r){var n=ri(lf);return e(t,n,r)})},Ic=ln({});Ue.env.NODE_ENV!=="production"&&(Ic.displayName="EmotionThemeContext");V2=function(e){var t=e.split(".");return t[t.length-1]},$2=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 V2(t[1])},W2=new CC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),z2=function(e){return e.replace(/\$/g,"-")},K2=function(e){if(e)for(var t=e.split(`
24
+ `),r=0;r<t.length;r++){var n=$2(t[r]);if(n){if(W2.has(n))break;if(/^[A-Z]/.test(n))return z2(n)}}},Vp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$p="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",zC=function(e,t){var r,n;if(Ue.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,wr.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)Sc.call(t,o)&&(i[o]=t[o]);if(i[Vp]=e,Ue.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,wr.default)(n=t.css.name).call(n,"-")===-1)){var a=K2(new Error().stack);a&&(i[$p]=a)}return i},Y2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return cf(t,r,n),$C(function(){return wc(t,r,n)}),null},df=uf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Vp],a=[i],s="";typeof e.className=="string"?s=Vo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Qr(a,void 0,ri(Ic));if(Ue.env.NODE_ENV!=="production"&&(0,wr.default)(n=c.name).call(n,"-")===-1){var l=e[$p];l&&(c=Qr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)Sc.call(e,u)&&u!=="css"&&u!==Vp&&(Ue.env.NODE_ENV==="production"||u!==$p)&&(d[u]=e[u]);return d.ref=r,d.className=s,Xe(He,null,Xe(Y2,{cache:t,serialized:c,isStringTag:typeof o=="string"}),Xe(o,d))});Ue.env.NODE_ENV!=="production"&&(df.displayName="EmotionCssPropInternal");Q2={version:"11.10.5"},oC=!1,X2=uf(function(e,t){Ue.env.NODE_ENV!=="production"&&!oC&&(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?"),oC=!0);var r=e.styles,n=Qr([r],void 0,ri(Ic)),i=ti();return iC(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]),iC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&wc(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});Ue.env.NODE_ENV!=="production"&&(X2.displayName="EmotionGlobal");Z2=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,jo.default)(o))a=e(o);else{Ue.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};tH=function(e){var t=e.cache,r=e.serializedArr;return $C(function(){for(var n=0;n<r.length;n++)wc(t,r[n],!1)}),null},rH=uf(function(e,t){var r=!1,n=[],i=function(){if(r&&Ue.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=Qr(l,t.registered);return n.push(u),cf(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ue.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 eH(t.registered,i,Z2(l))},a={css:i,cx:o,theme:ri(Ic)},s=e.children(a);return r=!0,Xe(He,null,Xe(tH,{cache:t,serializedArr:n}),s)});Ue.env.NODE_ENV!=="production"&&(rH.displayName="EmotionClassNames");Ue.env.NODE_ENV!=="production"&&(Dp=!0,aC=typeof jest<"u"||typeof vi<"u",Dp&&!aC&&(Lp=typeof pc.default<"u"?pc.default:Dp?window:o2,qp="__EMOTION_REACT_"+Q2.version.split(".")[0]+"__",Lp[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."),Lp[qp]=!0));nH=0;Up={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"}},iH=q`
25
25
  width: 100%;
26
26
  overflow: auto;
27
27
  margin: 0 auto;
28
- `,iH=`
28
+ `,oH=`
29
29
  @keyframes fadeIn {
30
30
  from { opacity: 0; }
31
31
  to { opacity: 1; }
@@ -69,7 +69,7 @@ If multiple caches share the same key they might "fight" for each other's style
69
69
  .fadeIn {
70
70
  animation: fadeIn 0.3s ease forwards;
71
71
  }
72
- `,oH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=tr(!1),[l,d]=tr(null),[u,p]=tr(!1),f=qo(null),m=qo(null),v=qo(!1);_n(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=iH,O.head.appendChild(F);let B={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=B.overflow,O.body.style.position=B.position,O.body.style.width=B.width}}},[s]),_n(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Rt(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=Rt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=Rt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),I=Rt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Rt(()=>s&&!v.current,[s]);if(_n(()=>{if(a){let O={show:I,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[I,y,C,a]),!s)return null;let T=o==="center",k=G(P({},qp.drawerBackdrop),{alignItems:T?"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"},J=T?G(P({},qp.centerDrawer),{pointerEvents:"auto"}):G(P({},qp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!T&&(J.transform="translateY(100%)");let le=l?T?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:k,children:[_("div",{style:A,className:N,onClick:w}),_("div",{ref:m,style:G(P({},J),{opacity:T&&l===null&&!u?0:1}),className:`${T&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:nH.styles,children:e})})]})},aH=Cd(oH);sH={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"},cH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},lH={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!"},sC={jolicoin:sH,joligem:cH,loginGuide:lH},uH={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"},dH={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"},pH={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"},cC={jolicoin:uH,joligem:dH,loginGuide:pH},fH={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"},mH={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"},hH={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:fH,joligem:mH,loginGuide:hH},gH={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"},vH={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"},yH={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!"},uC={jolicoin:gH,joligem:vH,loginGuide:yH},bH={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"},_H={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"},wH={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!"},SH={jolicoin:bH,joligem:_H,loginGuide:wH},IH={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"},EH={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"},AH={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!"},CH={jolicoin:IH,joligem:EH,loginGuide:AH},kH={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"},xH={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"},TH={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!"},dC={jolicoin:kH,joligem:xH,loginGuide:TH},PH={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"},OH={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},RH={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!"},NH={jolicoin:PH,joligem:OH,loginGuide:RH},DH={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"},LH={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"},qH={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"},UH={jolicoin:DH,joligem:LH,loginGuide:qH},MH={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"},FH={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},jH={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!"},pC={jolicoin:MH,joligem:FH,loginGuide:jH},BH={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"},GH={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"},JH={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!"},HH={jolicoin:BH,joligem:GH,loginGuide:JH},VH={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"},$H={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"},WH={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"},zH={jolicoin:VH,joligem:$H,loginGuide:WH},KH={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"},YH={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},QH={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!"},XH={jolicoin:KH,joligem:YH,loginGuide:QH},ZH={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"},e5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},t5={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 !"},r5={jolicoin:ZH,joligem:e5,loginGuide:t5},n5={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"},i5={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"},o5={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!"},a5={jolicoin:n5,joligem:i5,loginGuide:o5},s5={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"},c5={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"},l5={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!"},u5={jolicoin:s5,joligem:c5,loginGuide:l5},d5={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"},p5={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"},f5={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!"},m5={jolicoin:d5,joligem:p5,loginGuide:f5},h5={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"},g5={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"},v5={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!"},y5={jolicoin:h5,joligem:g5,loginGuide:v5},KC={en:{translations:sC},en_GB:{translations:sC},zh:{translations:cC},"zh-Hans":{translations:cC},"zh-Hant":{translations:zH},id:{translations:lC},in:{translations:lC},ms:{translations:uC},my:{translations:uC},th:{translations:SH},vi:{translations:CH},fil:{translations:dC},tl:{translations:dC},es:{translations:NH},ja:{translations:UH},pt:{translations:pC},pt_PT:{translations:pC},ko:{translations:HH},de:{translations:XH},fr:{translations:r5},hi:{translations:a5},ru:{translations:u5},bn:{translations:m5},tr:{translations:y5}},YC=ln(void 0),QC=({definition:e,children:t})=>{let r={translations:e};return _(YC.Provider,{value:r,children:t})},$p=null,b5={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"},XC=e=>{$p=e},ZC=()=>{var e;if(typeof $p!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=$p();return(e=b5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};pc=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=GC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=w5(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"&&(ek(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"))}},Uo=new pc(99999998,"auto"),fC=new pc(99999999,"none"),S5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=zo(),c={container:q`
72
+ `,aH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=tr(!1),[l,d]=tr(null),[u,p]=tr(!1),f=Mo(null),m=Mo(null),v=Mo(!1);_n(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=oH,O.head.appendChild(F);let G={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=G.overflow,O.body.style.position=G.position,O.body.style.width=G.width}}},[s]),_n(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Rt(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=Rt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=Rt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),E=Rt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Rt(()=>s&&!v.current,[s]);if(_n(()=>{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 T=o==="center",k=B(P({},Up.drawerBackdrop),{alignItems:T?"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"},J=T?B(P({},Up.centerDrawer),{pointerEvents:"auto"}):B(P({},Up.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!T&&(J.transform="translateY(100%)");let le=l?T?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:k,children:[_("div",{style:A,className:N,onClick:w}),_("div",{ref:m,style:B(P({},J),{opacity:T&&l===null&&!u?0:1}),className:`${T&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:iH.styles,children:e})})]})},sH=kd(aH);cH={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"},lH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},uH={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!"},sC={jolicoin:cH,joligem:lH,loginGuide:uH},dH={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"},pH={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"},fH={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"},cC={jolicoin:dH,joligem:pH,loginGuide:fH},mH={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"},hH={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"},gH={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:mH,joligem:hH,loginGuide:gH},vH={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"},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"},bH={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!"},uC={jolicoin:vH,joligem:yH,loginGuide:bH},_H={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"},wH={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"},SH={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!"},IH={jolicoin:_H,joligem:wH,loginGuide:SH},EH={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"},AH={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"},CH={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!"},kH={jolicoin:EH,joligem:AH,loginGuide:CH},xH={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"},TH={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"},PH={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!"},dC={jolicoin:xH,joligem:TH,loginGuide:PH},OH={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"},RH={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},NH={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!"},DH={jolicoin:OH,joligem:RH,loginGuide:NH},LH={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"},qH={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"},UH={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"},MH={jolicoin:LH,joligem:qH,loginGuide:UH},FH={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"},jH={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},BH={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!"},pC={jolicoin:FH,joligem:jH,loginGuide:BH},GH={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"},JH={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"},HH={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!"},VH={jolicoin:GH,joligem:JH,loginGuide:HH},$H={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"},WH={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"},zH={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"},KH={jolicoin:$H,joligem:WH,loginGuide:zH},YH={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"},QH={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},XH={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!"},ZH={jolicoin:YH,joligem:QH,loginGuide:XH},e5={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"},t5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},r5={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 !"},n5={jolicoin:e5,joligem:t5,loginGuide:r5},i5={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"},o5={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"},a5={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!"},s5={jolicoin:i5,joligem:o5,loginGuide:a5},c5={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"},l5={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"},u5={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!"},d5={jolicoin:c5,joligem:l5,loginGuide:u5},p5={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"},f5={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"},m5={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!"},h5={jolicoin:p5,joligem:f5,loginGuide:m5},g5={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"},v5={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"},y5={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!"},b5={jolicoin:g5,joligem:v5,loginGuide:y5},KC={en:{translations:sC},en_GB:{translations:sC},zh:{translations:cC},"zh-Hans":{translations:cC},"zh-Hant":{translations:KH},id:{translations:lC},in:{translations:lC},ms:{translations:uC},my:{translations:uC},th:{translations:IH},vi:{translations:kH},fil:{translations:dC},tl:{translations:dC},es:{translations:DH},ja:{translations:MH},pt:{translations:pC},pt_PT:{translations:pC},ko:{translations:VH},de:{translations:ZH},fr:{translations:n5},hi:{translations:s5},ru:{translations:d5},bn:{translations:h5},tr:{translations:b5}},YC=ln(void 0),QC=({definition:e,children:t})=>{let r={translations:e};return _(YC.Provider,{value:r,children:t})},Wp=null,_5={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"},XC=e=>{Wp=e},ZC=()=>{var e;if(typeof Wp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Wp();return(e=_5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};mc=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=GC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=S5(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"&&(ek(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"))}},Fo=new mc(99999998,"auto"),fC=new mc(99999999,"none"),I5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Yo(),c={container:q`
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))})]})},Sc=e=>{let t=!1,r=ZC(),n=KC[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)),Fr(_(WC,{value:a,children:_(QC,{definition:n,children:_(aH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(S5,G(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))}Uo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Uo.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.")}}},I5=(e,t={threshold:.6})=>{let r=qo(null),n=qo(!1),i=Rt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return _n(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};tk=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 _("div",G(P({className:r,style:s},i),{children:e}))},rk=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?A5(e,t):e;return _("div",G(P({className:i,style:u},a),{children:p}))};nk=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}%`),_("div",G(P({className:c,style:f},d),{children:e}))},C5=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Jr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Jr(()=>{},[e,t]);return _(nk,{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:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(E5,{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})}),_("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)},k5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Qe(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(rk,{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=>_(C5,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},x5=Ad(k5),Wp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Wp||{}),T5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=tr(null),s=Rt(u=>{i==null||i({type:u.type===Wp.Quit?"quit":"dismiss"})},[i]),c=Rt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=zo();if(!t.length)return _(He,{});let d=Rt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
109
+ `.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},Ec=e=>{let t=!1,r=ZC(),n=KC[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)),Fr(_(WC,{value:a,children:_(QC,{definition:n,children:_(sH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(I5,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))}Fo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Fo.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.")}}},E5=(e,t={threshold:.6})=>{let r=Mo(null),n=Mo(!1),i=Rt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return _n(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};tk=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 _("div",B(P({className:r,style:s},i),{children:e}))},rk=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?C5(e,t):e;return _("div",B(P({className:i,style:u},a),{children:p}))};nk=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}%`),_("div",B(P({className:c,style:f},d),{children:e}))},k5=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Jr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Jr(()=>{},[e,t]);return _(nk,{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:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(A5,{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})}),_("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)},x5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Qe(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(rk,{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=>_(k5,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},T5=Cd(x5),zp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(zp||{}),P5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=tr(null),s=Rt(u=>{i==null||i({type:u.type===zp.Quit?"quit":"dismiss"})},[i]),c=Rt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=Yo();if(!t.length)return _(He,{});let d=Rt(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 _n(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Fr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(x5,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Wp.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),_("div",{ref:d})},ik=e=>{let t=Sc({title:e.title,content:_(T5,{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},ok="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=",Ic="https://fe-oss.jolibox.com/static/coin/jolicoin.png",df="https://fe-oss.jolibox.com/static/coin/gem.png";fi=()=>{let e=QJ(YC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=P5(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}},mC=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("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})}),Kr={coinInfo:q`
231
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return _n(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Fr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(T5,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===zp.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),_("div",{ref:d})},ik=e=>{let t=Ec({title:e.title,content:_(P5,{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},ok="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=",Ac="https://fe-oss.jolibox.com/static/coin/jolicoin.png",pf="https://fe-oss.jolibox.com/static/coin/gem.png";mi=()=>{let e=XJ(YC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=O5(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}},mC=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("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})}),Kr={coinInfo:q`
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
- `},ak=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Ic,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=fi(),l=14,d=_r(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Kr.coinInfo.styles,children:[!i&&_("div",{style:Kr.coinAmount.styles,children:[_(mC,{text:c("jolicoin.price"),initialFontSize:l,styles:Kr.coinLabelContainer.styles}),_("div",{style:Kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Kr.coinAmountBalance.styles,children:_(mC,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:Kr.coinValueText.styles})})]})},bn={card:q`
291
+ `},ak=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Ac,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=mi(),l=14,d=_r(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Kr.coinInfo.styles,children:[!i&&_("div",{style:Kr.coinAmount.styles,children:[_(mC,{text:c("jolicoin.price"),initialFontSize:l,styles:Kr.coinLabelContainer.styles}),_("div",{style:Kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Kr.coinAmountBalance.styles,children:_(mC,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:Kr.coinValueText.styles})})]})},bn={card:q`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  align-items: center;
@@ -324,17 +324,17 @@ If multiple caches share the same key they might "fight" for each other's style
324
324
  font-size: 16px;
325
325
  color: #C093FF;
326
326
  font-weight: bold;
327
- `},O5=q`
327
+ `},R5=q`
328
328
  box-sizing: border-box;
329
329
  width: 100%;
330
330
  aspect-ratio: 1/1;
331
- `,R5=q`
331
+ `,N5=q`
332
332
  aspect-ratio: 1/1; // 强制 1:1 的宽高比
333
333
  display: flex;
334
334
  flex-direction: column;
335
335
  justify-content: center;
336
336
  -webkit-tap-highlight-color: transparent;
337
- `,N5=e=>_("div",{style:O5.styles,children:_("div",{style:R5.styles,children:_("div",{style:`${bn.card.styles} ${e.option.id===e.selectedId?bn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:bn.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?bn.gemIcon.styles:bn.coinIcon.styles}),_("span",{style:bn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:bn.price.styles,children:e.option.price})]})})}),D5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Ic})=>{let o=zo(),a=s=>{r==null||r(s)};return _(tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(rk,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(nk,{span:o==="landscape"?4:8,children:_(N5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},L5=Ad(D5);Zs={toggleSwitch:q`
337
+ `,D5=e=>_("div",{style:R5.styles,children:_("div",{style:N5.styles,children:_("div",{style:`${bn.card.styles} ${e.option.id===e.selectedId?bn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:bn.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?bn.gemIcon.styles:bn.coinIcon.styles}),_("span",{style:bn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:bn.price.styles,children:e.option.price})]})})}),L5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Ac})=>{let o=Yo(),a=s=>{r==null||r(s)};return _(tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(rk,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(nk,{span:o==="landscape"?4:8,children:_(D5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},q5=Cd(L5);tc={toggleSwitch:q`
338
338
  position: relative;
339
339
  display: inline-block;
340
340
  width: 33px;
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
371
371
  &:before {
372
372
  transform: translateX(18px);
373
373
  }
374
- `},sk=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>q5("label",{css:Zs.toggleSwitch,children:[hC("input",{css:Zs.toggleInput,type:"checkbox",checked:e,onChange:t}),hC("span",{css:[Zs.toggleSlider,e&&Zs.toggleSliderActive]})]}),pf=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Ie={modal:q`
374
+ `},sk=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>U5("label",{css:tc.toggleSwitch,children:[hC("input",{css:tc.toggleInput,type:"checkbox",checked:e,onChange:t}),hC("span",{css:[tc.toggleSlider,e&&tc.toggleSliderActive]})]}),ff=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Ie={modal:q`
375
375
  font-family: PingFangSC-Regular;
376
376
  background-color: #1a1a1a;
377
377
  color: white;
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
459
459
  border-radius: 2px;
460
460
  margin: 0 auto;
461
461
  -webkit-tap-highlight-color: transparent;
462
- `},U5=({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]=tr(r),u=zo(),{t:p}=fi(),f=()=>{i(l)},m=_r(()=>n==="JOLI_GEM"?df:Ic,[n]),v=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Rt(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${Ie.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:Ie.header.styles,children:[_(ak,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:Ie.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(pf,{})})]}),_("div",{style:Ie.content.styles,children:[_("h2",{style:Ie.title.styles,children:p(v)}),!r&&_("div",{style:Ie.autoDeductOption.styles,children:[_("span",{style:q`
462
+ `},M5=({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]=tr(r),u=Yo(),{t:p}=mi(),f=()=>{i(l)},m=_r(()=>n==="JOLI_GEM"?pf:Ac,[n]),v=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Rt(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${Ie.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:Ie.header.styles,children:[_(ak,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:Ie.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(ff,{})})]}),_("div",{style:Ie.content.styles,children:[_("h2",{style:Ie.title.styles,children:p(v)}),!r&&_("div",{style:Ie.autoDeductOption.styles,children:[_("span",{style:q`
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)}),_(sk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),_("section",{style:`${Ie.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},M5=({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]=tr(r),{t:f}=fi(),[m,v]=tr(()=>{var k,A;return((k=n.find(J=>J.defaultSelected))==null?void 0:k.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),b=zo(),y=()=>{o(m)},w=Rt(k=>{console.log(k),v(k),c(k)},[]),I=Rt(()=>{p(!u),s(!u)},[u]),C=_r(()=>i==="JOLI_GEM"?df:Ic,[i]),T=_r(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:Ie.modal.styles,children:[_("div",{style:Ie.header.styles,children:[_(ak,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),_("button",{style:Ie.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(pf,{})})]}),_("div",{style:Ie.content.styles,children:[_("div",{style:q`
467
+ `.styles,children:p(b)}),_(sk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),_("section",{style:`${Ie.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},F5=({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]=tr(r),{t:f}=mi(),[m,v]=tr(()=>{var k,A;return((k=n.find(J=>J.defaultSelected))==null?void 0:k.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),b=Yo(),y=()=>{o(m)},w=Rt(k=>{console.log(k),v(k),c(k)},[]),E=Rt(()=>{p(!u),s(!u)},[u]),C=_r(()=>i==="JOLI_GEM"?pf:Ac,[i]),T=_r(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:Ie.modal.styles,children:[_("div",{style:Ie.header.styles,children:[_(ak,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),_("button",{style:Ie.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(ff,{})})]}),_("div",{style:Ie.content.styles,children:[_("div",{style:q`
468
468
  padding: 16px 0px;
469
- `.styles,children:_(L5,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:C,selectedId:m,currency:i,onSelect:k=>w(k.id)})}),!r&&_("div",{style:Ie.autoDeductOption.styles,children:[_("span",{style:q`
469
+ `.styles,children:_(q5,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:C,selectedId:m,currency:i,onSelect:k=>w(k.id)})}),!r&&_("div",{style:Ie.autoDeductOption.styles,children:[_("span",{style:q`
470
470
  font-size: 12px;
471
471
  font-weight: 400;
472
472
  line-height: 1.2;
473
473
  color: #979797;
474
- `.styles,children:f(T)}),_(sk,{enableAutoDeduct:u,toggleEnableAutoDeduct:I})]}),_("section",{style:`${Ie.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:y,children:f(l)}),_("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};j5=q`
474
+ `.styles,children:f(T)}),_(sk,{enableAutoDeduct:u,toggleEnableAutoDeduct:E})]}),_("section",{style:`${Ie.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:y,children:f(l)}),_("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};B5=q`
475
475
  display: inline-flex;
476
476
  align-items: center;
477
477
  justify-content: center;
@@ -488,14 +488,14 @@ If multiple caches share the same key they might "fight" for each other's style
488
488
  white-space: nowrap;
489
489
  text-overflow: ellipsis;
490
490
  border: 1px solid rgba(255, 255, 255, 0.52);
491
- `,B5=q`
491
+ `,G5=q`
492
492
  position: absolute;
493
493
  left: 20%;
494
494
  bottom: -9px;
495
495
  transform: translateX(-50%);
496
496
  z-index: 2;
497
497
  pointer-events: none;
498
- `;Bt=G(P({},Ie),{header:q`
498
+ `;Bt=B(P({},Ie),{header:q`
499
499
  display: flex;
500
500
  justify-content: flex-end;
501
501
  align-items: center;
@@ -549,7 +549,7 @@ If multiple caches share the same key they might "fight" for each other's style
549
549
  border-top: 8px solid #4f396d;
550
550
  z-index: 2;
551
551
  }
552
- `}),J5={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()},H5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=fi(),l=J5[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Bt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(F5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Bt.header.styles,children:_("button",{style:`${Bt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(pf,{})})}),_("div",{style:Bt.introduct.styles,children:[s?_("span",{style:Bt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Bt.introductTitle.styles,children:_(zp,{children:c("loginGuide.introduct"),values:{coin:_("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${Bt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(G5,{children:_(zp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(He,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Bt.confirmButton.styles} ${Bt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),_("button",{style:`${Bt.cancelButton.styles} ${Bt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},ck=e=>{let t=Sc({title:"",content:_(U5,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},lk=e=>{let t=Sc({title:"",content:_(M5,{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},uk=e=>{let t=Sc({title:"",content:_(H5,{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},dk=new Map,Xr=(e,t)=>{dk.set(e,t)};Xr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:ok;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:df,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:G(P({},n),{verticalAlign:"middle"})})});V5=/^\{slot-i18n-(.+?)\}/,$5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=fi(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Xr(V5,(e,t)=>{var n;let r=e[1];return r?_($5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});W5=/^\{slot-i18ntran-(.+?)\}/,z5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=fi(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(zp,{children:o||n,values:P(P({},t),a)})},K5={coin:e=>_(He,{children:[_("img",{src:ok,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Xr(W5,(e,t)=>{var n,i;let r=e[1];return r?_(z5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:K5,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});Y5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Xr(/^\{slot-success\}/,(e,t)=>_("img",{src:Y5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));Q5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Xr(/^\{slot-error\}/,(e,t)=>_("img",{src:Q5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));X5="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=";Xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=X5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:G(P({},n),{verticalAlign:"middle"})})});tt="-ms-",fc="-moz-",Z="-webkit-",pk="comm",ff="rule",mf="decl",Z5="@import",fk="@keyframes",e3="@layer",t3=Math.abs,Ec=String.fromCharCode,r3=Zp.default;Ac=1,di=1,hk=0,pt=0,Re=0,mi="";v3=function(e,t,r){for(var n=0,i=0;n=i,i=nr(),n===38&&i===12&&(t[r]=1),!$o(i);)At();return Ko(e,pt)},y3=function(e,t){var r=-1,n=44;do switch($o(n)){case 0:n===38&&nr()===12&&(t[r]=1),e[r]+=v3(pt-1,t,r);break;case 2:e[r]+=sc(n);break;case 4:if(n===44){e[++r]=nr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ec(n)}while(n=At());return e},b3=function(e,t){return vk(y3(gk(e),t))},yC=new Xp.default,_3=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&&!yC.get(r))&&!n){yC.set(e,!0);for(var i=[],o=b3(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]}}},w3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};S3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case mf:e.return=yk(e.value,e.length);break;case fk:return ci([Lo(e,{value:ee(e.value,"@","@"+Z)})],n);case ff:if(e.length)return o3(e.props,function(i){switch(i3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ci([Lo(e,{props:[ee(i,/:(read-\w+)/,":"+fc+"$1")]})],n);case"::placeholder":return ci([Lo(e,{props:[ee(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Lo(e,{props:[ee(i,/:(plac\w+)/,":"+fc+"$1")]}),Lo(e,{props:[ee(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},I3=[S3],E3=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,qe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||I3,i={},o,a=[];o=e.container||document.head,(0,qe.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=[_3,w3];{var l,d=[m3,g3(function(m){l.insert(m)})],u=h3((0,mc.default)(c).call(c,n,d)),p=function(m){return ci(p3(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 DC({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};A3=function(e){var t=E3(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=Qr(s,t.registered,void 0);return bc(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=Qr(s,t.registered),d="animation-"+l.name;return bC(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=Qr(s,t.registered);bC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Up(t.registered,r,C3(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,qe.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,Mp.default)(Jo).call(Jo,null,t.registered),merge:(0,Mp.default)(Up).call(Up,null,t.registered,r)}},C3=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,Mo.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},k3=A3({key:"css"}),x3=k3.css,T3=(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 _("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 dk.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(_("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=x3`
552
+ `}),H5={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},V5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=mi(),l=H5[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Bt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(j5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Bt.header.styles,children:_("button",{style:`${Bt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(ff,{})})}),_("div",{style:Bt.introduct.styles,children:[s?_("span",{style:Bt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Bt.introductTitle.styles,children:_(Kp,{children:c("loginGuide.introduct"),values:{coin:_("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${Bt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(J5,{children:_(Kp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(He,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Bt.confirmButton.styles} ${Bt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),_("button",{style:`${Bt.cancelButton.styles} ${Bt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},ck=e=>{let t=Ec({title:"",content:_(M5,{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},lk=e=>{let t=Ec({title:"",content:_(F5,{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},uk=e=>{let t=Ec({title:"",content:_(V5,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},dk=new Map,Xr=(e,t)=>{dk.set(e,t)};Xr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:ok;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:pf,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});$5=/^\{slot-i18n-(.+?)\}/,W5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=mi(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Xr($5,(e,t)=>{var n;let r=e[1];return r?_(W5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});z5=/^\{slot-i18ntran-(.+?)\}/,K5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=mi(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Kp,{children:o||n,values:P(P({},t),a)})},Y5={coin:e=>_(He,{children:[_("img",{src:ok,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Xr(z5,(e,t)=>{var n,i;let r=e[1];return r?_(K5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:Y5,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});Q5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Xr(/^\{slot-success\}/,(e,t)=>_("img",{src:Q5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));X5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Xr(/^\{slot-error\}/,(e,t)=>_("img",{src:X5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));Z5="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=";Xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=Z5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});tt="-ms-",hc="-moz-",ee="-webkit-",pk="comm",mf="rule",hf="decl",e3="@import",fk="@keyframes",t3="@layer",r3=Math.abs,Cc=String.fromCharCode,n3=ef.default;kc=1,pi=1,hk=0,ft=0,Re=0,hi="";y3=function(e,t,r){for(var n=0,i=0;n=i,i=nr(),n===38&&i===12&&(t[r]=1),!zo(i);)At();return Qo(e,ft)},b3=function(e,t){var r=-1,n=44;do switch(zo(n)){case 0:n===38&&nr()===12&&(t[r]=1),e[r]+=y3(ft-1,t,r);break;case 2:e[r]+=lc(n);break;case 4:if(n===44){e[++r]=nr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Cc(n)}while(n=At());return e},_3=function(e,t){return vk(b3(gk(e),t))},yC=new Zp.default,w3=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&&!yC.get(r))&&!n){yC.set(e,!0);for(var i=[],o=_3(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]}}},S3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};I3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case hf:e.return=yk(e.value,e.length);break;case fk:return li([Uo(e,{value:te(e.value,"@","@"+ee)})],n);case mf:if(e.length)return a3(e.props,function(i){switch(o3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return li([Uo(e,{props:[te(i,/:(read-\w+)/,":"+hc+"$1")]})],n);case"::placeholder":return li([Uo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Uo(e,{props:[te(i,/:(plac\w+)/,":"+hc+"$1")]}),Uo(e,{props:[te(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},E3=[I3],A3=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,qe.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||E3,i={},o,a=[];o=e.container||document.head,(0,qe.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=[w3,S3];{var l,d=[h3,v3(function(m){l.insert(m)})],u=g3((0,gc.default)(c).call(c,n,d)),p=function(m){return li(f3(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 DC({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};C3=function(e){var t=A3(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=Qr(s,t.registered,void 0);return wc(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=Qr(s,t.registered),d="animation-"+l.name;return bC(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=Qr(s,t.registered);bC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Mp(t.registered,r,k3(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,qe.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,Fp.default)(Vo).call(Vo,null,t.registered),merge:(0,Fp.default)(Mp).call(Mp,null,t.registered,r)}},k3=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,jo.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},x3=C3({key:"css"}),T3=x3.css,P3=(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 _("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 dk.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(_("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=T3`
553
553
  display: 'flex',
554
554
  alignItems: 'flex-start',
555
555
  gap: '4px',
@@ -560,7 +560,7 @@ If multiple caches share the same key they might "fight" for each other's style
560
560
  fontWeight: 600,
561
561
  lineHeight: '18px',
562
562
  width: 'max-content'
563
- `;return n.length===1?n[0]:_("div",{className:o,children:n})},P3=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=tr(!0);_n(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=_r(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=q`
563
+ `;return n.length===1?n[0]:_("div",{className:o,children:n})},O3=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=tr(!0);_n(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=_r(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=q`
564
564
  position: fixed;
565
565
  left: 50%;
566
566
  padding: 10px 16px;
@@ -610,7 +610,7 @@ If multiple caches share the same key they might "fight" for each other's style
610
610
  ${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
611
611
  `)}
612
612
  `}
613
- `;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},O3=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),_C=Math.max(20,O3),wC=12,bk=[],_k=[];Ir=(e,t)=>g(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield fC.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?bk:_k;s.push(o);let c=T3(e,t),l=ZC(),d=KC[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),SC(a),fC.release()}setTimeout(()=>SC(a),0),Fr(_(WC,{value:n,children:_(QC,{definition:d,children:_(P3,{message:c,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),IC={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},R3=`
613
+ `;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},R3=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),_C=Math.max(20,R3),wC=12,bk=[],_k=[];Ir=(e,t)=>g(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield fC.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?bk:_k;s.push(o);let c=P3(e,t),l=ZC(),d=KC[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),SC(a),fC.release()}setTimeout(()=>SC(a),0),Fr(_(WC,{value:n,children:_(QC,{definition:d,children:_(O3,{message:c,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),IC={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},N3=`
614
614
  @keyframes spin {
615
615
  0% {
616
616
  transform: rotate(0deg);
@@ -619,7 +619,7 @@ If multiple caches share the same key they might "fight" for each other's style
619
619
  transform: rotate(360deg);
620
620
  }
621
621
  }
622
- `,N3=()=>_("div",{style:IC.container,children:[_("style",{children:R3}),_("div",{style:IC.spinner})]});aZ=wn()});function wk(){return g(this,null,function*(){if(gf)return gf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield K(t);return gf=r,r})}function Sk(){return g(this,null,function*(){let e=new lt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(vf)return e.resolve(!0),e.promise;let t=yield wk();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;vf=!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:W.View},o));let a=ik({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(vf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:W.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;D3(l),j("GameItem",{eventType:W.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:W.Hide},o)),e.resolve(!0);break}}});return e.promise})}var gf,D3,vf,Ik=x(()=>{"use strict";V();ue();R();ir();ut();bt();gf=null;wk();D3=e=>{var a;let{data:t}=M("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;M("openSchemaSync",{schema:o})},vf=!1});function q3(e){let t=P(P({},L3),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:w,containerTransition:I,iframeTransition:C}=p();pe=document.createElement("div"),pe.id="jolibox-modal-overlay",pe.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,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:${I};`;let T=document.createElement("div");T.id="jolibox-modal-loading",T.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;",Nt=document.createElement("iframe"),Nt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Nt.src=r,Nt.onload=()=>{T.parentNode&&T.parentNode.removeChild(T),Nt.style.opacity="1",v(),c==null||c(),_e.emit("onModalIframeLoaded",{url:r})},A.appendChild(Nt),A.appendChild(T),oe.appendChild(A),i){let J=document.createElement("div");J.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;",J.innerHTML="\u2715",J.onclick=y,oe.appendChild(J)}pe.appendChild(oe),document.body.appendChild(pe),pe.addEventListener("click",function(J){J.target===pe&&y()}),o&&b()}function v(){!pe||!oe||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),M("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!oe)return;let w=T=>{l=T.touches[0].clientY},I=T=>{if(!u)return;d=T.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),T.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",w),oe.addEventListener("touchmove",I),oe.addEventListener("touchend",C)}function y(){!pe||!oe||!u||(a?(oe.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,M("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,oe=null,Nt=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function Ek(){return window.joliboxUI=G(P({},window.joliboxUI),{createIframeModal:q3}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),pe=null,oe=null,Nt=null}}var L3,pe,oe,Nt,Ak=x(()=>{"use strict";ue();V();R();L3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,oe=null,Nt=null});var Ok,xc,bf,Tc,gi,Rk,yi,Nk,Dk,Lk,hi,Ck,kc,kk,U3,qk,_f,xk,Uk,M3,Tk,yf,Mk,Pk,F3,Fk,jk=x(()=>{Ok=-1,xc=function(e){addEventListener("pageshow",function(t){t.persisted&&(Ok=t.timeStamp,e(t))},!0)},bf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Tc=function(){var e=bf();return e&&e.activationStart||0},gi=function(e,t){var r=bf(),n="navigate";return Ok>=0?n="back-forward-cache":r&&(document.prerendering||Tc()>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}},Rk=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){}},yi=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))}},Nk=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Dk=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Lk=function(e){var t=!1;return function(){t||(e(),t=!0)}},hi=-1,Ck=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},kc=function(e){document.visibilityState==="hidden"&&hi>-1&&(hi=e.type==="visibilitychange"?e.timeStamp:0,U3())},kk=function(){addEventListener("visibilitychange",kc,!0),addEventListener("prerenderingchange",kc,!0)},U3=function(){removeEventListener("visibilitychange",kc,!0),removeEventListener("prerenderingchange",kc,!0)},qk=function(){return hi<0&&(hi=Ck(),kk(),xc(function(){setTimeout(function(){hi=Ck(),kk()},0)})),{get firstHiddenTime(){return hi}}},_f=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},xk=[1800,3e3],Uk=function(e,t){t=t||{},_f(function(){var r,n=qk(),i=gi("FCP"),o=Rk("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Tc(),0),i.entries.push(s),r(!0)))})});o&&(r=yi(e,i,xk,t.reportAllChanges),xc(function(a){i=gi("FCP"),r=yi(e,i,xk,t.reportAllChanges),Nk(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},M3=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Lk(e),document.visibilityState==="hidden"?e():(r=t(e),Dk(e)),r},Tk=[2500,4e3],yf={},Mk=function(e,t){t=t||{},_f(function(){var r,n=qk(),i=gi("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Tc(),0),i.entries=[l],r())})},a=Rk("largest-contentful-paint",o);if(a){r=yi(e,i,Tk,t.reportAllChanges);var s=Lk(function(){yf[i.id]||(o(a.takeRecords()),a.disconnect(),yf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return M3(s)},{once:!0,capture:!0})}),Dk(s),xc(function(c){i=gi("LCP"),r=yi(e,i,Tk,t.reportAllChanges),Nk(function(){i.value=performance.now()-c.timeStamp,yf[i.id]=!0,r(!0)})})}})},Pk=[800,1800],F3=function e(t){document.prerendering?_f(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Fk=function(e,t){t=t||{};var r=gi("TTFB"),n=yi(e,r,Pk,t.reportAllChanges);F3(function(){var i=bf();i&&(r.value=Math.max(i.responseStart-Tc(),0),r.entries=[i],n(!0),xc(function(){r=gi("TTFB",0),(n=yi(e,r,Pk,t.reportAllChanges))(!0)}))})}});var Vk={};hh(Vk,{config:()=>Y3});function B3(){sn.on("isAdShowing",e=>{Rc=e,qr(Rc)&&S.mpType==="game"&&M("updateContainerConfigSync",{displayCapsuleButton:!Rc,webviewId:S.webviewId})})}function G3(){_e.on("onInterceptSystemExit",({intercept:e})=>{Gk=e})}function J3(){_e.on("onInterceptBackPress",({intercept:e})=>{j3=e}),be("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;Hk(t),_e.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function H3(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:Dc,timestamp:Date.now()})})}function V3(){be("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function Bk(e){S.mpType==="game"&&wt.start(e)}function $3(){be("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:Dc,timestamp:Date.now()}),xe("onJoliboxHideLoading")||Bk(t),XC(()=>S.language)}),be("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;Hk(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),be("onJoliboxHideLoading",({duration:e})=>{Bk(e)})}function W3(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Pc==null||Pc(),Oc==null||Oc(),wt.close(Date.now()-Dc)},t=()=>Rc||Gk;Pt.onDoExit(()=>g(this,null,function*(){return t()?!0:qr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Nc!=null&&Nc.canShowRecommended&&!Jk&&(yield Sk())?!0:(e(),!1)})),Pt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function z3(){Uk(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Mk(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Fk(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function K3(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield K(e);t&&(Nc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function Y3(){Dc=Date.now(),$3(),B3(),G3(),J3(),W3(),H3(),V3(),K3(),z3(),Oc=Ek(),Pc=Bg()}var Pc,Oc,Dc,Rc,Nc,Gk,j3,Jk,Hk,$k=x(()=>{"use strict";ue();V();R();bt();Gg();rs();Ik();ut();ir();Ak();jk();Za();Rc=!1,Nc=null,Gk=!1,j3=!1,Jk=!1,Hk=e=>{qr(e)&&(Jk=e)};Pt.onReady(()=>{})});var Wk,Q3,X3,Z3,e4,zk=x(()=>{"use strict";R();Je();ue();V();Wk=z(),Q3="env",X3="getSystemInfoSync",Z3=Y(X3,{implement:()=>{var r;let e=M("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:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),e4=Y(Q3,{implement:()=>{var t;let e=M("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Wk.registerCommand("API.getSystemInfoSync",Z3);Wk.registerCommand("API.env",e4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Kk=h(wf=>{"use strict";R();Je();yt();ue();bt();V();var t4="exitGame",r4="onReady",n4="onJoliboxShow",i4="onJoliboxHide",Lc=z(),qc=Mn(Ee),o4=ie(t4,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>g(wf,null,function*(){qc(e).call(wf),qr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Mh("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),a4=Y(n4,{paramsSchema:E.tuple(E.function()),implement(e){let t=qc(e);be("onJoliboxEnterForeground",()=>{t.call(this),Zi.emit("visible",!0)})}}),s4=Y(i4,{paramsSchema:E.tuple(E.function()),implement(e){let t=qc(e);be("onJoliboxEnterBackground",()=>{t.call(this),Zi.emit("visible",!1)})}}),c4=Y(r4,{paramsSchema:E.tuple(E.function()),implement(e){let t=qc(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});Lc.registerCommand("LifecycleSDK.exit",o4);Lc.registerCommand("LifecycleSDK.onReady",c4);Lc.registerCommand("LifecycleSDK.onJoliboxShow",a4);Lc.registerCommand("LifecycleSDK.onJoliboxHide",s4);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 Yk(e){let t={};if(!on(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 Qk(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 Xk(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Zk(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!on(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 ex=x(()=>{"use strict";R()});var l4,u4,Sf,If,tx,d4,p4,f4,rx=x(()=>{"use strict";Ur();gu();Je();ex();R();yt();V();l4=15,u4=Da("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Sf=0,If=[],tx=Mn(Ee),d4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},p4=e=>{let t=new lt,r=()=>{};return Y("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object().optional(),data:E.or(E.object(),E.array()).optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=tx(i.fail);try{if(Sf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=Yk((s=i.headers)!=null?s:{}),b=Qk(i.method),y=Xk(i.timeout),w=Zk(i.url,b,d),I=tx(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 T=u4(w,C);{let{response:k}=yield T,{code:A,data:J,message:le}=k;if(J&&typeof J=="object"&&"status"in J&&J.status!==200)throw Ge({code:J.status||-1,msg:`request:fail status ${J.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:J,message:le!=null?le:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:J})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Sf-=1,(l=If.shift())==null||l()}});return Sf>=l4?(r=()=>{d4(If,a=>a===o)},If.push(o)):o(),t.promise}})(e),{abort(){t.reject(Ge({code:-1,msg:"request:fail abort"})),r()}}},f4=z();f4.registerCommand("HttpSDK.request",p4);D("request",{version:"1.0.0"})});var m4,h4,g4,Ef,nx=x(()=>{"use strict";R();ue();Je();m4=Y("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.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)),M("showKeyboardSync",G(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"}});h4=Y("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){M("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});g4=Y("hideKeyboard",{implement(){M("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});Ef=z();Ef.registerCommand("KeyboardSDK.showKeyboard",m4);Ef.registerCommand("KeyboardSDK.updateKeyboard",h4);Ef.registerCommand("KeyboardSDK.hideKeyboard",g4)});var ix=h(Uc=>{"use strict";R();Je();bt();var Af=z(),v4=ie("levelFinished",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),duration:E.number().optional(),rating:E.number().optional(),score:E.number().optional(),variation:E.string().optional()})),implement:e=>g(Uc,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(wt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(wt.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),y4=ie("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number(),variation:E.string().optional()})),implement:e=>g(Uc,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(wt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(wt.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),b4=ie("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>g(Uc,[r],function*({levelId:e,name:t}){let n=[];n.push(wt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(wt.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Af.registerCommand("TaskTrackerSDK.levelFinished",v4);Af.registerCommand("TaskTrackerSDK.gamePlayEnded",y4);Af.registerCommand("TaskTrackerSDK.levelUpgrade",b4);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"}}})});var Cf,kf,xf,_4,ox,Mc=x(()=>{"use strict";V();ue();Je();R();Ur();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"}});Cf=new Map;be("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Cf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Cf.delete(r))});kf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield me("checkLoginAsync");if(r)return{isLogin:!0,token:(m=S.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=M("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Ge({code:-1,msg:"login failed"});let s=new lt;Cf.set(a,s);let c=yield s.promise,l=M("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:G(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return _e.emit("onLoginComplete",f),t?c:f}),xf=ie("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield kf(e!=null?e:{})})}}),_4=ie("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield me("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),ox=z();ox.registerCommand("API.login",xf);ox.registerCommand("API.checkSession",_4)});var ax,sx=x(()=>{"use strict";ax=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 Sn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Mr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=cx(i.data),a=ax(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 In(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Mr(e),n=cx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield _t(e,JSON.stringify(n))})}var cx,lx,ux,dx,px,fx,mx,hx,gx,vx,yx,bx,_x,wx,Sx,Yo=x(()=>{"use strict";Xi();sx();cx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};lx=Sn("joli_coin_use_modal_frequency"),ux=Sn("joli_coin_payment_frequency"),dx=Sn("joli_coin_unlogin_modal_frequency"),px=Sn("joli_gem_use_modal_frequency"),fx=Sn("joli_gem_payment_frequency"),mx=Sn("joli_gem_unlogin_modal_frequency"),hx=Sn("subscription_frequency");gx=In("joli_coin_use_modal_frequency"),vx=In("joli_coin_payment_frequency"),yx=In("joli_coin_unlogin_modal_frequency"),bx=In("joli_gem_use_modal_frequency"),_x=In("joli_gem_payment_frequency"),wx=In("joli_gem_unlogin_modal_frequency"),Sx=In("subscription_frequency")});var Tf,Fc,Pf=x(()=>{"use strict";ut();Tf=Promise.resolve(),Fc=(e,t)=>g(void 0,null,function*(){Tf=Tf.then(()=>g(void 0,null,function*(){yield K(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Tf})});var jc,Bc,Gt,Gc,En,Jt,Er,Jc,Hc,An,bi,w4,U,Ar,Cr,je=x(()=>{"use strict";R();jc="UNLOCK_OPTIONS_CHANGED",Bc="INVOKE_PAYMENT",Gt="ON_PAYMENT_RESULT",Gc="ON_USE_MODAL_EVENT",En="ON_USE_MODAL_RESULT",Jt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",Jc="INVOKE_UNLOGIN_MODAL_EVENT",Hc="INVOKE_SUBSCRIPTION_EVENT",An="ON_USE_SUBSCRIPTION_RESULT",bi=new Wt,w4=()=>({on:bi.on.bind(bi),off:bi.off.bind(bi),emit:bi.emit.bind(bi)}),U=w4(),Ar={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Cr={show:!0,minInterval:8*60*60*1e3}});function Be(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 or=x(()=>{"use strict"});var Ax=h(Of=>{"use strict";Yo();Pf();je();je();ir();bt();R();or();var S4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:lx,frequencyUpdater:gx,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:px,frequencyUpdater:bx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Ix=wn(),Ex=Be(U,Jt);Ex.getData();U.on(Gc,(e,t)=>g(Of,null,function*(){let r=t.currency,n=S4[r];if(e.includes("ADS-")){yield Ix.show({duration:3e3});let c=yield Ex.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),Ix.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){U.emit(En,{useModalResult:"CONFIRM"});return}if(!l){U.emit(En,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:W.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=ck({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:W.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),U.emit(En,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:r}),U.emit(En,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Of,null,function*(){yield Fc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Cx(){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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var kx=x(()=>{"use strict";yt()});var Qo=x(()=>{"use strict"});var I4,_i,Ct,E4,Cn,Vc=x(()=>{"use strict";Qo();R();V();ut();I4=()=>{let[e,t]=[Oa,Ra].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:_i,createPaymentInternalError:Ct}=I4(),E4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Cn=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 _i(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield K(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw _i((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${E4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Nf,xx,Tx=x(()=>{"use strict";ut();Vc();Qo();Nf=class extends Cn{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 K("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw _i((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),Ct((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},xx=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new Nf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Px,Ox=x(()=>{"use strict";Px={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 Df,Rx,Lf,qf,A4,Uf,Nx=x(()=>{"use strict";ut();Vc();Qo();ue();R();V();ir();Ox();Df=new Map;be("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Df.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Pa(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ct(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=Px[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Df.delete(t)}});Rx=e=>g(void 0,null,function*(){var n,i;let t=new lt,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Ct("orderUUID is null",1002);Df.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Lf=class extends Cn{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 Rx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},qf=class extends Cn{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 Rx({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 K("/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 Ct("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"}})}},A4={android:Lf,ios:qf},Uf=()=>{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=A4[S.platform];if(!s)throw Ct("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 _i(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var kn,Mf=x(()=>{"use strict";kx();Tx();Nx();kn=Cx();kn.registerPaymentHandler("JOLI_COIN",xx());kn.registerPaymentHandler("JOLI_COIN_IAP",Uf());kn.registerPaymentHandler("JOLI_GEM_IAP",Uf())});function Dx(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 _t(a,c),yield _t(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 $c(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 Mr(s),{data:u}=yield Mr(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 _t(s,m),yield _t(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 _t(s,null),yield _t(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 _t(s,d),yield _t(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 Ff=x(()=>{"use strict";Xi()});function C4(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=>!Wi(r.totalAmountStr))}var Zr,jf,ar,Kc,Bf,Gf,Wc,zc,Lx,Yc,Jf=x(()=>{"use strict";Mf();R();ue();ut();R();Ff();Zr=class Zr{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield K(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&&C4(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 $c(r,()=>g(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Zr.nativePriceCache.set(r,n),Zr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Zr.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")}};Zr.nativePriceCache=new Map,Zr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Zr.nativePriceCacheTimestamp=new Map;jf=Zr,ar=class ar extends Ut{constructor(r,n){super(new jf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ar.failureCounters.get(this.apiEndpoint)||0;if(r>=ar.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ar.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ar.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ar.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ar.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 kn.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}};ar.failureCounters=new Map,ar.MAX_FAILURE_COUNT=2;Kc=ar,Bf=class extends Kc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Gf=class extends Kc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Wc=null,zc=null,Lx=()=>Wc||(Wc=new Bf,Wc),Yc=()=>zc||(zc=new Gf,zc)});var Mx=h(Qc=>{"use strict";je();ir();V();Mc();R();Yo();Mf();ir();Je();bt();Pf();or();Jf();var k4={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:vx,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:fx,frequencyUpdater:_x,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},wi=wn(),qx=Lx(),Ux=Yc(),x4=Be(U,Jt);U.on(Bc,(e,t)=>g(Qc,null,function*(){var r,n,i;try{let o=t.currency,a=k4[o];if(!xe("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{U.emit(Gt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield wi.show({duration:3e3});let d=yield x4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),wi.hide(),!u){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield wi.show({duration:3e3});let s=o==="JOLI_COIN"?qx:Ux,c=yield s.getProductsInfo();if(wi.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:W.View,currency:o});let l=lk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return G(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(Qc,null,function*(){var f,m,v,b,y,w,I,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:W.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(T=>T.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=S.hostUserInfo)!=null&&v.isLogin)){let{data:T}=yield xf({skipLogin:!0});if(!(T!=null&&T.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(T=>T.productId===d))==null?void 0:w.appStoreProductId;if(!u){U.emit(Gt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield wi.show({duration:3e3});let{code:p}=yield kn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(wi.hide(),j(a.trackEvents.payResult,{eventType:W.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(I=c.paymentChoices.find(T=>T.productId===d))==null?void 0:I.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{U.emit(Gt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(Qc,null,function*(){yield Fc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:W.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),U.emit(Gt,{paymentResult:"FAILED",currency:t.currency})}}));qx.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});Ux.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var jx=h(Xc=>{"use strict";je();or();Yo();ut();yt();R();Mc();ir();bt();var T4={JOLI_COIN:{frequencyChecker:dx,frequencyUpdater:yx,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:mx,frequencyUpdater:wx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},Fx=Be(U,Jt);Fx.getData();U.on(Jc,(e,t)=>g(Xc,null,function*(){var r;try{let n=t.currency,i=T4[n];if(e.includes("ADS-")){let s=yield Fx.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){U.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){U.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield P4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),U.emit(Er,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:W.Expose,currency:n},W.Expose);let a=uk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(Xc,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:W.Click,currency:n},W.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield kf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:W.Click,currency:n},W.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Ir(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}U.emit(Er,{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:W.Hide,currency:n},W.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:W.Click,currency:n},W.Click),U.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ee(new Xh(n)),U.emit(Er,{result:"FAILED"})}}));var P4=()=>g(Xc,null,function*(){var t;let{response:e}=yield K("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function O4(){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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var Xo,Hf=x(()=>{"use strict";yt();Xo=O4()});var xn,Zc=x(()=>{"use strict";xn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var R4,Bx,el,N4,Zo,Vf=x(()=>{"use strict";Zc();R();V();R4=()=>{let[e,t]=[Oa,Ra].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:Bx,createSubscriptionInternalError:el}=R4(),N4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Zo=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 Bx(n,xn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${N4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=Bx;this.createSubscriptionInternalError=el}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function D4(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=>!Wi(r.amountStr))}var Tn,rl,$f,Wf,tl,Gx,zf=x(()=>{"use strict";R();ue();ut();R();Ff();Hf();ue();Vf();Zc();Tn=class Tn{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 K(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&&D4(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 me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Tn.nativePriceCache.set(r,n),Tn.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?Dx:$c)(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")}};Tn.nativePriceCache=new Map,Tn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Tn.nativePriceCacheTimestamp=new Map;rl=Tn,$f=class extends Ut{constructor(r){super(new rl,{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",Xo);let n=new AbortController,i=Xo.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 K("/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 Ta(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new lt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=M("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw el("orderUUID is null",xn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw el((o=JSON.stringify(a))!=null?o:"subscription panel failed",xn.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=rl.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(){be("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"}}))})}},Wf=class extends $f{constructor(){super("/api/subs/pricing")}},tl=null,Gx=()=>tl||(tl=new Wf,tl)});var Jx=x(()=>{"use strict"});function Vx(){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=L4[S.platform];if(!a)throw new Error(`Platform ${S.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 Kf,Hx,Yf,Qf,L4,$x=x(()=>{"use strict";V();Vf();Qo();Vc();R();ue();R();Zc();be("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Kf=new Map;be("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Kf.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"&&Pa(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Ct(`subscription failed: ${n==null?void 0:n.errMsg}`,xn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}Kf.delete(t)}});Hx=e=>g(void 0,null,function*(){var n,i;let t=new lt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=M("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 Ct("subUUID is null",1002);Kf.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Yf=class extends Zo{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:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Hx(r)})}},Qf=class extends Zo{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=M("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Ct("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:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Hx(G(P({},r),{appAccountToken:this.subscriptionToken}))})}},L4={android:Yf,ios:Qf}});var Pn,Xf=x(()=>{"use strict";zf();Jx();Hf();$x();zf();Pn=Gx();Xo.registerSubscriptionHandler("SUB_APP",Vx())});var Yx=h(Kx=>{"use strict";Yo();je();or();Je();Xf();ir();var q4={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:hx,frequencyUpdater:Sx}},Wx=wn(),zx=Be(U,Jt);zx.getData();U.on(Hc,e=>g(Kx,null,function*(){let t=q4.SUBSCRIPTION;if(!xe("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{U.emit(An,{result:"FAILED"})},0);return}yield Wx.show({duration:3e3});let r=yield zx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(Wx.hide(),!n){U.emit(An,{result:"FAILED"});return}let{data:o,code:a}=yield Pn.invokeSubscriptionPanel();a=="SUCCESS"?U.emit(An,{result:"SUCCESS"}):U.emit(An,{result:"FAILED"}),yield t.frequencyUpdater()}))});var dne,pne,fne,mne,Qx=x(()=>{"use strict";dne=se(Ax()),pne=se(Mx()),fne=se(jx()),mne=se(Yx())});var Si,Zf=x(()=>{"use strict";Si=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function Y4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Q4(e){return typeof e=="string"}function X4(e){return typeof e=="undefined"}function Z4(e){return X4(e)||e===null}function eV(e){return typeof e=="function"}function xT(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 ea(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function al(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 sV(e){let t=e.location?al(e.location,nT):null,r=e.target?al(e.target,nT):null;return al(W4($4({},e),{location:t,target:r}),oV)}function cV(e){let t=e.events.map(n=>sV(n)),r=al(e.device,aV);return[e.protocolVersion,t,r,e.project]}function lV(){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 mV(e){return new Promise(t=>RT(e)(t))}function RT(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 hV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new aa(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 vV(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)yV(e[n],t[n])}function yV(e,t){if(Q4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(eV(t)){try{if(e instanceof t)return}catch(r){}if(!Z4(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 ft(e,t,r){return(t=bV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bV(e){var t=_V(e,"string");return typeof t=="symbol"?t:t+""}function _V(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 nl(e,t,r){return(t=wV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wV(e){var t=SV(e,"string");return typeof t=="symbol"?t:t+""}function SV(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 il(e,t,r){return(t=IV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IV(e){var t=EV(e,"string");return typeof t=="symbol"?t:t+""}function EV(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 kr(e,t,r){return(t=AV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AV(e){var t=CV(e,"string");return typeof t=="symbol"?t:t+""}function CV(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 kV(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 xV(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 DV(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 LT(e){return e.trim()}function LV(e,t){return(e=t.exec(e))?e[0]:e}function re(e,t,r){return e.replace(t,r)}function hm(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function sa(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function Lm(e){return e.length}function ol(e,t){return t.push(e),e}function qV(e,t){return e.map(t).join("")}function wl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_l,column:xi,length:a,return:""}}function ra(e,t){return NV(wl("",null,null,"",null,null,0),e,{length:-e.length},t)}function UV(){return Ne}function MV(){return Ne=ht>0?ze(Pi,--ht):0,xi--,Ne===10&&(xi=1,_l--),Ne}function xt(){return Ne=ht<qT?ze(Pi,ht++):0,xi++,Ne===10&&(xi=1,_l++),Ne}function cr(){return ze(Pi,ht)}function sl(){return ht}function la(e,t){return sa(Pi,e,t)}function ca(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 UT(e){return _l=xi=1,qT=sr(Pi=e),ht=0,[]}function MT(e){return Pi="",e}function cl(e){return LT(la(ht-1,gm(e===91?e+2:e===40?e+1:e)))}function FV(e){for(;(Ne=cr())&&Ne<33;)xt();return ca(e)>2||ca(Ne)>3?"":" "}function jV(e,t){for(;--t&&xt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return la(e,sl()+(t<6&&cr()==32&&xt()==32))}function gm(e){for(;xt();)switch(Ne){case e:return ht;case 34:case 39:e!==34&&e!==39&&gm(Ne);break;case 40:e===41&&gm(e);break;case 92:xt();break}return ht}function BV(e,t){for(;xt()&&e+Ne!==57&&!(e+Ne===84&&cr()===47););return"/*"+la(t,ht-1)+"*"+bl(e===47?e:xt())}function GV(e){for(;!ca(cr());)xt();return la(e,ht)}function JV(e){return MT(ll("",null,null,null,[""],e=UT(e),0,[0],e))}function ll(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,w=0,I="",C=i,T=o,k=n,A=I;b;)switch(m=w,w=xt()){case 40:if(m!=108&&ze(A,u-1)==58){hm(A+=re(cl(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=cl(w);break;case 9:case 10:case 13:case 32:A+=FV(m);break;case 92:A+=jV(sl()-1,7);continue;case 47:switch(cr()){case 42:case 47:ol(HV(BV(xt(),sl()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=sr(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=re(A,/\f/g,"")),f>0&&sr(A)-u&&ol(f>32?aT(A+";",n,r,u-1):aT(re(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(ol(k=oT(A,t,r,l,d,i,s,I,C=[],T=[],u),o),w===123)if(d===0)ll(A,t,k,k,C,o,u,s,T);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 108:case 109:case 115:ll(e,k,k,n&&ol(oT(e,k,k,0,0,i,s,I,i,C=[],u),T),i,T,u,s,n?C:T);break;default:ll(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,I=A="",u=a;break;case 58:u=1+sr(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&MV()==125)continue}switch(A+=bl(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(sr(A)-1)*y,y=1;break;case 64:cr()===45&&(A+=cl(xt())),p=cr(),d=u=sr(I=A+=GV(sl())),w++;break;case 45:m===45&&sr(A)==2&&(v=0)}}return o}function oT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Lm(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=sa(e,u+1,u=RV(v=a[m])),I=e;y<f;++y)(I=LT(v>0?p[y]+" "+w:re(w,/&\f/g,p[y])))&&(c[b++]=I);return wl(e,t,r,i===0?Nm:s,c,l,d)}function HV(e,t,r){return wl(e,t,r,NT,bl(UV()),sa(e,2,-2),0)}function aT(e,t,r,n){return wl(e,t,r,Dm,sa(e,0,n),sa(e,n+1,-1),n)}function ki(e,t){for(var r="",n=Lm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function VV(e,t,r,n){switch(e.type){case OV:if(e.children.length)break;case PV:case Dm:return e.return=e.return||e.value;case NT:return"";case DT:return e.return=e.value+"{"+ki(e.children,n)+"}";case Nm:e.value=e.props.join(",")}return sr(r=ki(e.children,n))?e.return=e.value+"{"+r+"}":""}function $V(e){var t=Lm(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 WV(e){return function(t){t.root||(t=t.return)&&e(t)}}function zV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function FT(e,t){switch(DV(e,t)){case 5103:return te+"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 te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+fl+e+nt+e+e;case 6828:case 4268:return te+e+nt+e+e;case 6165:return te+e+nt+"flex-"+e+e;case 5187:return te+e+re(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return te+e+nt+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return te+e+nt+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+nt+re(e,"shrink","negative")+e;case 5292:return te+e+nt+re(e,"basis","preferred-size")+e;case 6060:return te+"box-"+re(e,"-grow","")+te+e+nt+re(e,"grow","positive")+e;case 4554:return te+re(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,te+"$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(sr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+fl+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hm(e,"stretch")?FT(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,sr(e)-3-(~hm(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(ze(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return te+e+nt+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+nt+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+nt+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+nt+e+e}return e}function n$(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 ml(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 en={name:i.name,styles:i.styles,next:en},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)en={name:a.name,styles:a.styles,next:en},a=a.next;var s=o.styles+";";return s}return s$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function s$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ml(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]+"}":cT(s)&&(n+=tm(o)+":"+lT(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++)cT(a[c])&&(n+=tm(o)+":"+lT(o,a[c])+";");else{var l=ml(e,t,a);switch(o){case"animation":case"animationName":{n+=tm(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function rm(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="";en=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ml(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ml(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=n$(i)+l;return{name:u,styles:i,next:en}}function BT(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function dT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function pT(e,t,r){var n=[],i=BT(e,n,r);return n.length<2?r:i+t(n)}function f$(e,t){Me.__h&&Me.__h(kt,e,mT||t),mT=0;var r=kt.__H||(kt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function JT(e,t){var r=f$(vm++,7);return g$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function m$(){for(var e;e=GT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ul),e.__H.__h.forEach(ym),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function h$(e){var t,r=function(){clearTimeout(n),wT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wT&&(t=requestAnimationFrame(r))}function ul(e){var t=kt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),kt=t}function ym(e){var t=kt;e.__c=e.__(),kt=t}function g$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Sl(){if(tn>1)tn--;else{for(var e,t=!1;ia!==void 0;){var r=ia;for(ia=void 0,bm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&VT(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(bm=0,tn--,t)throw e}}function Ke(e){if(tn>0)return e();tn++;try{return e()}finally{Sl()}}function HT(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.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=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new Ye(e)}function VT(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 $T(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 WT(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 Oi(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=hl-1,this.f=4}function oa(e){return new Oi(e)}function zT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){tn++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,qm(e),n}finally{ce=r,Sl()}}}function qm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,zT(e)}function y$(e){if(ce!==this)throw new Error("Out-of-order effect");WT(this),ce=e,this.f&=-2,8&this.f&&qm(this),Sl()}function ua(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function da(e){var t=new ua(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Ri(e,t){L[e]=t.bind(null,L[e]||function(){})}function gl(e){im&&im(),im=e&&e.S()}function QT(e){var t=this,r=e.data,n=XT(r);n.value=r;var i=JT(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=oa(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=oa(function(){return!Array.isArray(l.value)&&!xu(l.value)}),u=da(function(){if(this.N=ZT,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 b$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:da(function(){this.N=ZT;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function XT(e){return JT(function(){return $(e)},[])}function w$(){Ke(function(){for(var e;e=YT.shift();)KT.call(e)})}function ZT(){YT.push(this)===1&&(L.requestAnimationFrame||_$)(w$)}function S$(e,t){let r=ei(e);Zn(()=>{r.current=e},[e]),hn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function Q(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:--I$,__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 L.vnode&&L.vnode(l),l}function xr(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=q$(e,"string");return typeof t=="symbol"?t:t+""}function q$(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 st(e,t,r){return(t=z$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z$(e){var t=K$(e,"string");return typeof t=="symbol"?t:t+""}function K$(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 Tr(e,t,r){return(t=Z$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z$(e){var t=e9(e,"string");return typeof t=="symbol"?t:t+""}function e9(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 rt(e,t,r){return(t=t9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t9(e){var t=r9(e,"string");return typeof t=="symbol"?t:t+""}function r9(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 mt(e,t,r){return(t=n9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9(e){var t=i9(e,"string");return typeof t=="symbol"?t:t+""}function i9(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 On(e,t,r){return(t=o9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o9(e){var t=a9(e,"string");return typeof t=="symbol"?t:t+""}function a9(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 om(e,t,r){return(t=s9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s9(e){var t=c9(e,"string");return typeof t=="symbol"?t:t+""}function c9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,r){return(t=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=u9(e,"string");return typeof t=="symbol"?t:t+""}function u9(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 d9(e,t,r){return(t=p9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p9(e){var t=f9(e,"string");return typeof t=="symbol"?t:t+""}function f9(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=h9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h9(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 Or(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=y9(e,"string");return typeof t=="symbol"?t:t+""}function y9(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 na(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 Ht(e,t,r){return(t=w9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w9(e){var t=S9(e,"string");return typeof t=="symbol"?t:t+""}function S9(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 U4,M4,F4,pl,IT,ET,Xx,AT,j4,B4,CT,G4,J4,Zx,H4,V4,eT,$4,W4,z4,kT,K4,tV,rV,tT,nV,rT,iV,TT,PT,OT,nT,oV,aV,Ai,am,sm,ye,uV,dV,ta,aa,pV,lm,fV,em,gV,um,iT,Ii,dm,pm,fm,mm,TV,nt,fl,te,NT,Nm,Dm,PV,DT,OV,RV,bl,NV,_l,xi,qT,ht,Ne,Pi,KV,YV,QV,sT,XV,ZV,e$,t$,r$,i$,o$,a$,jT,cT,tm,lT,uT,en,c$,l$,u$,d$,p$,it,vm,kt,nm,fT,mT,GT,Me,hT,gT,vT,yT,bT,_T,wT,v$,ce,ia,tn,bm,hl,KT,im,YT,_$,Fe,I$,E$,Rr,_m,wm,dl,A$,C$,k$,x$,T$,P$,O$,R$,N$,D$,Sm,U$,M$,F$,j$,B$,G$,J$,ST,H$,V$,$$,W$,Im,Ci,Ei,Y$,Q$,X$,Em,eP,Am,Cm,km,xm,vl,Tm,m9,yl,Pm,Om,Rm,Ti,bne,Um=x(()=>{"use strict";Jn();ws();ue();U4=Object.defineProperty,M4=Object.defineProperties,F4=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,IT=Object.prototype.hasOwnProperty,ET=Object.prototype.propertyIsEnumerable,Xx=(e,t,r)=>t in e?U4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AT=(e,t)=>{for(var r in t||(t={}))IT.call(t,r)&&Xx(e,r,t[r]);if(pl)for(var r of pl(t))ET.call(t,r)&&Xx(e,r,t[r]);return e},j4=(e,t)=>M4(e,F4(t)),B4=(e,t)=>{var r={};for(var n in e)IT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pl)for(var n of pl(e))t.indexOf(n)<0&&ET.call(e,n)&&(r[n]=e[n]);return r},CT=Object.defineProperty,G4=Object.defineProperties,J4=Object.getOwnPropertyDescriptors,Zx=Object.getOwnPropertySymbols,H4=Object.prototype.hasOwnProperty,V4=Object.prototype.propertyIsEnumerable,eT=(e,t,r)=>t in e?CT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$4=(e,t)=>{for(var r in t||(t={}))H4.call(t,r)&&eT(e,r,t[r]);if(Zx)for(var r of Zx(t))V4.call(t,r)&&eT(e,r,t[r]);return e},W4=(e,t)=>G4(e,J4(t)),z4=(e,t)=>{for(var r in t)CT(e,r,{get:t[r],enumerable:!0})},kT=(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},K4=(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}tV=(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))(tV||{});rV={log:ea("log"),warn:ea("warn"),info:ea("info"),error:ea("error"),debug:ea("debug")};Object.assign(globalThis,{logger:rV});tT=Symbol.for("Jolibox.canIUseMap"),nV={};globalThis[tT]||(globalThis[tT]=nV);rT=Symbol.for("Jolibox.canIUseMap.native"),iV={};globalThis[rT]||(globalThis[rT]=iV);TT=(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))(TT||{}),PT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(PT||{}),OT=(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))(OT||{}),nT=["name","params"],oV=["name","type","location","target","extra","timestamp","userId"],aV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];lV();Ai=typeof window=="undefined",am=()=>!Ai&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ai&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ai&&navigator.userAgent.includes("Android"),!Ai&&navigator.userAgent.includes("Mac"),!Ai&&navigator.userAgent.includes("FB_IAB"),!Ai&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");sm=class cm{constructor(t){this.element=t,this.next=cm.Undefined,this.prev=cm.Undefined}};sm.Undefined=new sm(void 0);ye=sm,uV=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.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!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},dV=0,ta=class{constructor(e){this.value=e,this.id=dV++}},aa=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 ta&&(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 ta(e);return this._listeners?this._listeners instanceof ta?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 ta)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 ta?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},pV=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 aa,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 uV,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)}},lm={};z4(lm,{None:()=>fV,filter:()=>hV,once:()=>RT,toPromise:()=>mV});fV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});em=Symbol.for("Jolibox.hostEmitter"),gV=()=>{let e=new pV;return globalThis[em]||(globalThis[em]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[em]};gV();um=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new aa,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 vV(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}};um=kT([xT],um);iT=class{constructor(){this._onWillExecuteCommand=new aa,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new aa,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new um,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Y4(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 K4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),lm.toPromise(lm.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{}}};iT=kT([xT],iT);Ii=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")},dm=class{constructor(t){ft(this,"context",void 0),ft(this,"continueCallback",void 0),ft(this,"adIsShowingCallback",void 0),ft(this,"isBeforeAdCalled",!1),ft(this,"isBeforeRewardCalled",!1),ft(this,"isAdDismissedCalled",!1),ft(this,"isAdViewedCalled",!1),ft(this,"isAfterAdCalled",!1),ft(this,"currentProvider",void 0),ft(this,"currentClientParams",void 0),ft(this,"adsHasResponse",!1),ft(this,"videoChecker",window.document.createElement("video")),ft(this,"contextInfo",void 0),ft(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",AT({userEvent:a},this.paramsToTrack)),am()&&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=Ii(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=Ii(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),am()&&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=Ii(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ii(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=Ii(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=Ii(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")})})}};pm=class{constructor(t){nl(this,"context",void 0),nl(this,"adBreakIsShowing",!1),nl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),nl(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()})}};fm=class{constructor(t){il(this,"configs",null),il(this,"firstRun",!0),il(this,"context",void 0),il(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}};mm=class{constructor(t,r){kr(this,"name","ADSENSE"),kr(this,"context",void 0),kr(this,"contextInfo",void 0),kr(this,"configured",!1),kr(this,"initParams",void 0),kr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),kr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=B4(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),kr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),kr(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(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let I=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"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)}})}};TV=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(xV(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kV(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}(),nt="-ms-",fl="-moz-",te="-webkit-",NT="comm",Nm="rule",Dm="decl",PV="@import",DT="@keyframes",OV="@layer",RV=Math.abs,bl=String.fromCharCode,NV=Object.assign;_l=1,xi=1,qT=0,ht=0,Ne=0,Pi="";KV=function(e,t,r){for(var n=0,i=0;n=i,i=cr(),n===38&&i===12&&(t[r]=1),!ca(i);)xt();return la(e,ht)},YV=function(e,t){var r=-1,n=44;do switch(ca(n)){case 0:n===38&&cr()===12&&(t[r]=1),e[r]+=KV(ht-1,t,r);break;case 2:e[r]+=cl(n);break;case 4:if(n===44){e[++r]=cr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bl(n)}while(n=xt());return e},QV=function(e,t){return MT(YV(UT(e),t))},sT=new WeakMap,XV=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&&!sT.get(r))&&!n){sT.set(e,!0);for(var i=[],o=QV(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]}}},ZV=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};e$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dm:e.return=FT(e.value,e.length);break;case DT:return ki([ra(e,{value:re(e.value,"@","@"+te)})],n);case Nm:if(e.length)return qV(e.props,function(i){switch(LV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ki([ra(e,{props:[re(i,/:(read-\w+)/,":"+fl+"$1")]})],n);case"::placeholder":return ki([ra(e,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),ra(e,{props:[re(i,/:(plac\w+)/,":"+fl+"$1")]}),ra(e,{props:[re(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},t$=[e$],r$=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||t$,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=[XV,ZV];{var l,d=[VV,WV(function(m){l.insert(m)})],u=$V(c.concat(n,d)),p=function(m){return ki(JV(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 TV({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};i$={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},o$=/[A-Z]|^ms/g,a$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jT=function(e){return e.charCodeAt(1)===45},cT=function(e){return e!=null&&typeof e!="boolean"},tm=zV(function(e){return jT(e)?e:e.replace(o$,"-$&").toLowerCase()}),lT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(a$,function(r,n,i){return en={name:n,styles:i,next:en},n})}return i$[e]!==1&&!jT(e)&&typeof t=="number"&&t!==0?t+"px":t};uT=/label:\s*([^\s;{]+)\s*(;|$)/g;c$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},l$=function(e,t,r){c$(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)}};u$=function(e){var t=r$(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=rm(s,t.registered,void 0);return l$(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=rm(s,t.registered),d="animation-"+l.name;return dT(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=rm(s,t.registered);dT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return pT(t.registered,r,d$(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:BT.bind(null,t.registered),merge:pT.bind(null,t.registered,r)}},d$=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},p$=u$({key:"css"}),it=p$.css,mT=0,GT=[],Me=L,hT=Me.__b,gT=Me.__r,vT=Me.diffed,yT=Me.__c,bT=Me.unmount,_T=Me.__;Me.__b=function(e){kt=null,hT&&hT(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_T&&_T(e,t)},Me.__r=function(e){gT&&gT(e),vm=0;var t=(kt=e.__c).__H;t&&(nm===kt?(t.__h=[],kt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ul),t.__h.forEach(ym),t.__h=[],vm=0)),nm=kt},Me.diffed=function(e){vT&&vT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(GT.push(t)!==1&&fT===Me.requestAnimationFrame||((fT=Me.requestAnimationFrame)||h$)(m$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),nm=kt=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ul),r.__h=r.__h.filter(function(n){return!n.__||ym(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),yT&&yT(e,t)},Me.unmount=function(e){bT&&bT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ul(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};wT=typeof requestAnimationFrame=="function";v$=Symbol.for("preact-signals");ce=void 0,ia=void 0,tn=0,bm=0,hl=0;Ye.prototype.brand=v$;Ye.prototype.h=function(){return!0};Ye.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)};Ye.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)}};Ye.prototype.subscribe=function(e){var t=this;return da(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}})};Ye.prototype.valueOf=function(){return this.value};Ye.prototype.toString=function(){return this.value+""};Ye.prototype.toJSON=function(){return this.value};Ye.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ye.prototype,"value",{get:function(){var e=HT(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bm>100)throw new Error("Cycle detected");this.v=e,this.i++,hl++,tn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Sl()}}}});(Oi.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===hl))return!0;if(this.g=hl,this.f|=1,this.i>0&&!VT(this))return this.f&=-2,!0;var e=ce;try{$T(this),ce=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 ce=e,WT(this),this.f&=-2,!0};Oi.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)}Ye.prototype.S.call(this,e)};Oi.prototype.U=function(e){if(this.t!==void 0&&(Ye.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)}};Oi.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(Oi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=HT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ua.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()}};ua.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,zT(this),$T(this),tn++;var e=ce;return ce=this,y$.bind(this,e)};ua.prototype.N=function(){2&this.f||(this.f|=2,this.o=ia,ia=this)};ua.prototype.d=function(){this.f|=8,1&this.f||qm(this)};YT=[];da(function(){KT=this.N})();QT.displayName="_st";Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:QT},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ri("__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 Ye&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Ri("__r",function(e,t){gl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return da(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),gl(r),e(t)});Ri("__e",function(e,t,r,n){gl(),e(t,r,n)});Ri("diffed",function(e,t){gl();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=b$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Ri("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)});Ri("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});St.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};_$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Fe=it`
622
+ `,D3=()=>_("div",{style:IC.container,children:[_("style",{children:N3}),_("div",{style:IC.spinner})]});uZ=wn()});function wk(){return g(this,null,function*(){if(vf)return vf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield K(t);return vf=r,r})}function Sk(){return g(this,null,function*(){let e=new ut;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(yf)return e.resolve(!0),e.promise;let t=yield wk();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;yf=!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:W.View},o));let a=ik({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(yf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:W.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;L3(l),j("GameItem",{eventType:W.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:W.Hide},o)),e.resolve(!0);break}}});return e.promise})}var vf,L3,yf,Ik=x(()=>{"use strict";V();ue();R();ir();dt();_t();vf=null;wk();L3=e=>{var a;let{data:t}=M("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;M("openSchemaSync",{schema:o})},yf=!1});function U3(e){let t=P(P({},q3),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:w,containerTransition:E,iframeTransition:C}=p();pe=document.createElement("div"),pe.id="jolibox-modal-overlay",pe.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,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 T=document.createElement("div");T.id="jolibox-modal-loading",T.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;",Nt=document.createElement("iframe"),Nt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Nt.src=r,Nt.onload=()=>{T.parentNode&&T.parentNode.removeChild(T),Nt.style.opacity="1",v(),c==null||c(),_e.emit("onModalIframeLoaded",{url:r})},A.appendChild(Nt),A.appendChild(T),oe.appendChild(A),i){let J=document.createElement("div");J.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;",J.innerHTML="\u2715",J.onclick=y,oe.appendChild(J)}pe.appendChild(oe),document.body.appendChild(pe),pe.addEventListener("click",function(J){J.target===pe&&y()}),o&&b()}function v(){!pe||!oe||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),M("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!oe)return;let w=T=>{l=T.touches[0].clientY},E=T=>{if(!u)return;d=T.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),T.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",w),oe.addEventListener("touchmove",E),oe.addEventListener("touchend",C)}function y(){!pe||!oe||!u||(a?(oe.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,M("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,oe=null,Nt=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function Ek(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:U3}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),pe=null,oe=null,Nt=null}}var q3,pe,oe,Nt,Ak=x(()=>{"use strict";ue();V();R();q3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,oe=null,Nt=null});var Ok,Pc,_f,Oc,yi,Rk,bi,Nk,Dk,Lk,gi,Ck,Tc,kk,M3,qk,wf,xk,Uk,F3,Tk,bf,Mk,Pk,j3,Fk,jk=x(()=>{Ok=-1,Pc=function(e){addEventListener("pageshow",function(t){t.persisted&&(Ok=t.timeStamp,e(t))},!0)},_f=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Oc=function(){var e=_f();return e&&e.activationStart||0},yi=function(e,t){var r=_f(),n="navigate";return Ok>=0?n="back-forward-cache":r&&(document.prerendering||Oc()>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}},Rk=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){}},bi=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))}},Nk=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Dk=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Lk=function(e){var t=!1;return function(){t||(e(),t=!0)}},gi=-1,Ck=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Tc=function(e){document.visibilityState==="hidden"&&gi>-1&&(gi=e.type==="visibilitychange"?e.timeStamp:0,M3())},kk=function(){addEventListener("visibilitychange",Tc,!0),addEventListener("prerenderingchange",Tc,!0)},M3=function(){removeEventListener("visibilitychange",Tc,!0),removeEventListener("prerenderingchange",Tc,!0)},qk=function(){return gi<0&&(gi=Ck(),kk(),Pc(function(){setTimeout(function(){gi=Ck(),kk()},0)})),{get firstHiddenTime(){return gi}}},wf=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},xk=[1800,3e3],Uk=function(e,t){t=t||{},wf(function(){var r,n=qk(),i=yi("FCP"),o=Rk("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Oc(),0),i.entries.push(s),r(!0)))})});o&&(r=bi(e,i,xk,t.reportAllChanges),Pc(function(a){i=yi("FCP"),r=bi(e,i,xk,t.reportAllChanges),Nk(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},F3=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Lk(e),document.visibilityState==="hidden"?e():(r=t(e),Dk(e)),r},Tk=[2500,4e3],bf={},Mk=function(e,t){t=t||{},wf(function(){var r,n=qk(),i=yi("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Oc(),0),i.entries=[l],r())})},a=Rk("largest-contentful-paint",o);if(a){r=bi(e,i,Tk,t.reportAllChanges);var s=Lk(function(){bf[i.id]||(o(a.takeRecords()),a.disconnect(),bf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return F3(s)},{once:!0,capture:!0})}),Dk(s),Pc(function(c){i=yi("LCP"),r=bi(e,i,Tk,t.reportAllChanges),Nk(function(){i.value=performance.now()-c.timeStamp,bf[i.id]=!0,r(!0)})})}})},Pk=[800,1800],j3=function e(t){document.prerendering?wf(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Fk=function(e,t){t=t||{};var r=yi("TTFB"),n=bi(e,r,Pk,t.reportAllChanges);j3(function(){var i=_f();i&&(r.value=Math.max(i.responseStart-Oc(),0),r.entries=[i],n(!0),Pc(function(){r=yi("TTFB",0),(n=bi(e,r,Pk,t.reportAllChanges))(!0)}))})}});var Vk={};hh(Vk,{config:()=>Q3});function G3(){sn.on("isAdShowing",e=>{Dc=e,qr(Dc)&&S.mpType==="game"&&M("updateContainerConfigSync",{displayCapsuleButton:!Dc,webviewId:S.webviewId})})}function J3(){_e.on("onInterceptSystemExit",({intercept:e})=>{Gk=e})}function H3(){_e.on("onInterceptBackPress",({intercept:e})=>{B3=e}),be("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;Hk(t),_e.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function V3(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:qc,timestamp:Date.now()})})}function $3(){be("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function Bk(e){S.mpType==="game"&&ot.start(e)}function W3(){be("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:qc,timestamp:Date.now()}),xe("onJoliboxHideLoading")||Bk(t),XC(()=>S.language)}),be("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;Hk(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),be("onJoliboxHideLoading",({duration:e})=>{Bk(e)})}function z3(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Rc==null||Rc(),Nc==null||Nc(),ot.close(Date.now()-qc)},t=()=>Dc||Gk;Pt.onDoExit(()=>g(this,null,function*(){return t()?!0:qr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Lc!=null&&Lc.canShowRecommended&&!Jk&&(yield Sk())?!0:(e(),!1)})),Pt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function K3(){Uk(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Mk(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Fk(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function Y3(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield K(e);t&&(Lc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function Q3(){qc=Date.now(),W3(),G3(),J3(),H3(),z3(),V3(),$3(),Y3(),K3(),Nc=Ek(),Rc=Bg()}var Rc,Nc,qc,Dc,Lc,Gk,B3,Jk,Hk,$k=x(()=>{"use strict";ue();V();R();_t();Gg();is();Ik();dt();ir();Ak();jk();ts();Dc=!1,Lc=null,Gk=!1,B3=!1,Jk=!1,Hk=e=>{qr(e)&&(Jk=e)};Pt.onReady(()=>{})});var Wk,X3,Z3,e4,t4,zk=x(()=>{"use strict";R();Je();ue();V();Wk=z(),X3="env",Z3="getSystemInfoSync",e4=Q(Z3,{implement:()=>{var r;let e=M("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:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),t4=Q(X3,{implement:()=>{var t;let e=M("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Wk.registerCommand("API.getSystemInfoSync",e4);Wk.registerCommand("API.env",t4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Kk=h(Sf=>{"use strict";R();Je();bt();ue();_t();V();var r4="exitGame",n4="onReady",i4="onJoliboxShow",o4="onJoliboxHide",Uc=z(),Mc=Fn(Ee),a4=Y(r4,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Sf,null,function*(){Mc(e).call(Sf),qr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Mh("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),s4=Q(i4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);be("onJoliboxEnterForeground",()=>{t.call(this),to.emit("visible",!0)})}}),c4=Q(o4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);be("onJoliboxEnterBackground",()=>{t.call(this),to.emit("visible",!1)})}}),l4=Q(n4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});Uc.registerCommand("LifecycleSDK.exit",a4);Uc.registerCommand("LifecycleSDK.onReady",l4);Uc.registerCommand("LifecycleSDK.onJoliboxShow",s4);Uc.registerCommand("LifecycleSDK.onJoliboxHide",c4);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 Yk(e){let t={};if(!on(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 Qk(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 Xk(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Zk(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!on(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 ex=x(()=>{"use strict";R()});var u4,d4,If,Ef,tx,p4,f4,m4,rx=x(()=>{"use strict";Ur();vu();Je();ex();R();bt();V();u4=15,d4=qa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),If=0,Ef=[],tx=Fn(Ee),p4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},f4=e=>{let t=new ut,r=()=>{};return Q("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=tx(i.fail);try{if(If+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=Yk((s=i.headers)!=null?s:{}),b=Qk(i.method),y=Xk(i.timeout),w=Zk(i.url,b,d),E=tx(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 T=d4(w,C);{let{response:k}=yield T,{code:A,data:J,message:le}=k;if(J&&typeof J=="object"&&"status"in J&&J.status!==200)throw je({code:J.status||-1,msg:`request:fail status ${J.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:J,message:le!=null?le:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:J})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{If-=1,(l=Ef.shift())==null||l()}});return If>=u4?(r=()=>{p4(Ef,a=>a===o)},Ef.push(o)):o(),t.promise}})(e),{abort(){t.reject(je({code:-1,msg:"request:fail abort"})),r()}}},m4=z();m4.registerCommand("HttpSDK.request",f4);D("request",{version:"1.0.0"})});var h4,g4,v4,Af,nx=x(()=>{"use strict";R();ue();Je();h4=Q("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),M("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"}});g4=Q("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){M("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});v4=Q("hideKeyboard",{implement(){M("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});Af=z();Af.registerCommand("KeyboardSDK.showKeyboard",h4);Af.registerCommand("KeyboardSDK.updateKeyboard",g4);Af.registerCommand("KeyboardSDK.hideKeyboard",v4)});var ix=h(_i=>{"use strict";R();Je();_t();var Xo=z(),y4=Y("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>g(_i,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(ot.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(ot.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),b4=Y("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>g(_i,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(ot.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(ot.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),_4=Y("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>g(_i,[r],function*({levelId:e,name:t}){let n=[];n.push(ot.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(ot.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})}),w4=Y("levelStart",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number())})),implement:e=>g(_i,null,function*(){let{levelId:t}=e;yield ot.tracker("LevelStart",{levelId:t})})}),S4=Y("levelFailed",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),score:I.number().optional(),rating:I.number().optional(),duration:I.number().optional()})),implement:e=>g(_i,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield ot.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});Xo.registerCommand("TaskTrackerSDK.levelFinished",y4);Xo.registerCommand("TaskTrackerSDK.gamePlayEnded",b4);Xo.registerCommand("TaskTrackerSDK.levelUpgrade",_4);Xo.registerCommand("TaskTrackerSDK.levelStart",w4);Xo.registerCommand("TaskTrackerSDK.levelFailed",S4);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 Cf,kf,xf,I4,ox,Fc=x(()=>{"use strict";V();ue();Je();R();Ur();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"}});Cf=new Map;be("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Cf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Cf.delete(r))});kf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield me("checkLoginAsync");if(r)return{isLogin:!0,token:(m=S.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=M("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw je({code:-1,msg:"login failed"});let s=new ut;Cf.set(a,s);let c=yield s.promise,l=M("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:B(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return _e.emit("onLoginComplete",f),t?c:f}),xf=Y("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield kf(e!=null?e:{})})}}),I4=Y("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield me("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),ox=z();ox.registerCommand("API.login",xf);ox.registerCommand("API.checkSession",I4)});var ax,sx=x(()=>{"use strict";ax=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 Sn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Mr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=cx(i.data),a=ax(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 In(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Mr(e),n=cx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield wt(e,JSON.stringify(n))})}var cx,lx,ux,dx,px,fx,mx,hx,gx,vx,yx,bx,_x,wx,Sx,Zo=x(()=>{"use strict";eo();sx();cx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};lx=Sn("joli_coin_use_modal_frequency"),ux=Sn("joli_coin_payment_frequency"),dx=Sn("joli_coin_unlogin_modal_frequency"),px=Sn("joli_gem_use_modal_frequency"),fx=Sn("joli_gem_payment_frequency"),mx=Sn("joli_gem_unlogin_modal_frequency"),hx=Sn("subscription_frequency");gx=In("joli_coin_use_modal_frequency"),vx=In("joli_coin_payment_frequency"),yx=In("joli_coin_unlogin_modal_frequency"),bx=In("joli_gem_use_modal_frequency"),_x=In("joli_gem_payment_frequency"),wx=In("joli_gem_unlogin_modal_frequency"),Sx=In("subscription_frequency")});var Tf,jc,Pf=x(()=>{"use strict";dt();Tf=Promise.resolve(),jc=(e,t)=>g(void 0,null,function*(){Tf=Tf.then(()=>g(void 0,null,function*(){yield K(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Tf})});var Bc,Gc,Gt,Jc,En,Jt,Er,Hc,Vc,An,wi,E4,U,Ar,Cr,Be=x(()=>{"use strict";R();Bc="UNLOCK_OPTIONS_CHANGED",Gc="INVOKE_PAYMENT",Gt="ON_PAYMENT_RESULT",Jc="ON_USE_MODAL_EVENT",En="ON_USE_MODAL_RESULT",Jt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",Hc="INVOKE_UNLOGIN_MODAL_EVENT",Vc="INVOKE_SUBSCRIPTION_EVENT",An="ON_USE_SUBSCRIPTION_RESULT",wi=new Wt,E4=()=>({on:wi.on.bind(wi),off:wi.off.bind(wi),emit:wi.emit.bind(wi)}),U=E4(),Ar={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Cr={show:!0,minInterval:8*60*60*1e3}});function Ge(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 or=x(()=>{"use strict"});var Ax=h(Of=>{"use strict";Zo();Pf();Be();Be();ir();_t();R();or();var A4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:lx,frequencyUpdater:gx,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:px,frequencyUpdater:bx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Ix=wn(),Ex=Ge(U,Jt);Ex.getData();U.on(Jc,(e,t)=>g(Of,null,function*(){let r=t.currency,n=A4[r];if(e.includes("ADS-")){yield Ix.show({duration:3e3});let c=yield Ex.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),Ix.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){U.emit(En,{useModalResult:"CONFIRM"});return}if(!l){U.emit(En,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:W.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=ck({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:W.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),U.emit(En,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:r}),U.emit(En,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Of,null,function*(){yield jc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Cx(){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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var kx=x(()=>{"use strict";bt()});var ea=x(()=>{"use strict"});var C4,Si,Ct,k4,Cn,$c=x(()=>{"use strict";ea();R();V();dt();C4=()=>{let[e,t]=[Na,Da].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Si,createPaymentInternalError:Ct}=C4(),k4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Cn=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 Si(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield K(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Si((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${k4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Nf,xx,Tx=x(()=>{"use strict";dt();$c();ea();Nf=class extends Cn{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 K("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Si((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),Ct((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},xx=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new Nf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Px,Ox=x(()=>{"use strict";Px={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 Df,Rx,Lf,qf,x4,Uf,Nx=x(()=>{"use strict";dt();$c();ea();ue();R();V();ir();Ox();Df=new Map;be("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Df.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Ra(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ct(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=Px[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Df.delete(t)}});Rx=e=>g(void 0,null,function*(){var n,i;let t=new ut,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Ct("orderUUID is null",1002);Df.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Lf=class extends Cn{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 Rx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},qf=class extends Cn{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 Rx({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 K("/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 Ct("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"}})}},x4={android:Lf,ios:qf},Uf=()=>{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=x4[S.platform];if(!s)throw Ct("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 Si(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var kn,Mf=x(()=>{"use strict";kx();Tx();Nx();kn=Cx();kn.registerPaymentHandler("JOLI_COIN",xx());kn.registerPaymentHandler("JOLI_COIN_IAP",Uf());kn.registerPaymentHandler("JOLI_GEM_IAP",Uf())});function Dx(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 wt(a,c),yield wt(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 Wc(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 Mr(s),{data:u}=yield Mr(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 wt(s,m),yield wt(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 wt(s,null),yield wt(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 wt(s,d),yield wt(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 Ff=x(()=>{"use strict";eo()});function T4(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=>!Ki(r.totalAmountStr))}var Zr,jf,ar,Yc,Bf,Gf,zc,Kc,Lx,Qc,Jf=x(()=>{"use strict";Mf();R();ue();dt();R();Ff();Zr=class Zr{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield K(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&&T4(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 Wc(r,()=>g(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Zr.nativePriceCache.set(r,n),Zr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Zr.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")}};Zr.nativePriceCache=new Map,Zr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Zr.nativePriceCacheTimestamp=new Map;jf=Zr,ar=class ar extends Ut{constructor(r,n){super(new jf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ar.failureCounters.get(this.apiEndpoint)||0;if(r>=ar.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ar.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ar.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ar.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ar.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 kn.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}};ar.failureCounters=new Map,ar.MAX_FAILURE_COUNT=2;Yc=ar,Bf=class extends Yc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Gf=class extends Yc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},zc=null,Kc=null,Lx=()=>zc||(zc=new Bf,zc),Qc=()=>Kc||(Kc=new Gf,Kc)});var Mx=h(Xc=>{"use strict";Be();ir();V();Fc();R();Zo();Mf();ir();Je();_t();Pf();or();Jf();var P4={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:vx,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:fx,frequencyUpdater:_x,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ii=wn(),qx=Lx(),Ux=Qc(),O4=Ge(U,Jt);U.on(Gc,(e,t)=>g(Xc,null,function*(){var r,n,i;try{let o=t.currency,a=P4[o];if(!xe("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{U.emit(Gt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ii.show({duration:3e3});let d=yield O4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ii.hide(),!u){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ii.show({duration:3e3});let s=o==="JOLI_COIN"?qx:Ux,c=yield s.getProductsInfo();if(Ii.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:W.View,currency:o});let l=lk({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(Xc,null,function*(){var f,m,v,b,y,w,E,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:W.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(T=>T.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=S.hostUserInfo)!=null&&v.isLogin)){let{data:T}=yield xf({skipLogin:!0});if(!(T!=null&&T.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(T=>T.productId===d))==null?void 0:w.appStoreProductId;if(!u){U.emit(Gt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Ii.show({duration:3e3});let{code:p}=yield kn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ii.hide(),j(a.trackEvents.payResult,{eventType:W.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(E=c.paymentChoices.find(T=>T.productId===d))==null?void 0:E.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{U.emit(Gt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(Xc,null,function*(){yield jc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:W.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),U.emit(Gt,{paymentResult:"FAILED",currency:t.currency})}}));qx.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});Ux.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var jx=h(Zc=>{"use strict";Be();or();Zo();dt();bt();R();Fc();ir();_t();var R4={JOLI_COIN:{frequencyChecker:dx,frequencyUpdater:yx,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:mx,frequencyUpdater:wx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},Fx=Ge(U,Jt);Fx.getData();U.on(Hc,(e,t)=>g(Zc,null,function*(){var r;try{let n=t.currency,i=R4[n];if(e.includes("ADS-")){let s=yield Fx.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){U.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){U.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield N4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),U.emit(Er,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:W.Expose,currency:n},W.Expose);let a=uk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(Zc,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:W.Click,currency:n},W.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield kf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:W.Click,currency:n},W.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Ir(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}U.emit(Er,{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:W.Hide,currency:n},W.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:W.Click,currency:n},W.Click),U.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ee(new Xh(n)),U.emit(Er,{result:"FAILED"})}}));var N4=()=>g(Zc,null,function*(){var t;let{response:e}=yield K("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function D4(){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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var ta,Hf=x(()=>{"use strict";bt();ta=D4()});var xn,el=x(()=>{"use strict";xn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var L4,Bx,tl,q4,ra,Vf=x(()=>{"use strict";el();R();V();L4=()=>{let[e,t]=[Na,Da].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:Bx,createSubscriptionInternalError:tl}=L4(),q4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ra=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 Bx(n,xn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${q4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=Bx;this.createSubscriptionInternalError=tl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function U4(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=>!Ki(r.amountStr))}var Tn,nl,$f,Wf,rl,Gx,zf=x(()=>{"use strict";R();ue();dt();R();Ff();Hf();ue();Vf();el();Tn=class Tn{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 K(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&&U4(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 me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Tn.nativePriceCache.set(r,n),Tn.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?Dx:Wc)(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")}};Tn.nativePriceCache=new Map,Tn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Tn.nativePriceCacheTimestamp=new Map;nl=Tn,$f=class extends Ut{constructor(r){super(new nl,{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",ta);let n=new AbortController,i=ta.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 K("/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 Oa(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new ut,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=M("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw tl("orderUUID is null",xn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw tl((o=JSON.stringify(a))!=null?o:"subscription panel failed",xn.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=nl.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(){be("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"}}))})}},Wf=class extends $f{constructor(){super("/api/subs/pricing")}},rl=null,Gx=()=>rl||(rl=new Wf,rl)});var Jx=x(()=>{"use strict"});function Vx(){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=M4[S.platform];if(!a)throw new Error(`Platform ${S.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 Kf,Hx,Yf,Qf,M4,$x=x(()=>{"use strict";V();Vf();ea();$c();R();ue();R();el();be("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Kf=new Map;be("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Kf.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"&&Ra(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Ct(`subscription failed: ${n==null?void 0:n.errMsg}`,xn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}Kf.delete(t)}});Hx=e=>g(void 0,null,function*(){var n,i;let t=new ut,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=M("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 Ct("subUUID is null",1002);Kf.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Yf=class extends ra{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:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Hx(r)})}},Qf=class extends ra{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=M("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Ct("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:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Hx(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},M4={android:Yf,ios:Qf}});var Pn,Xf=x(()=>{"use strict";zf();Jx();Hf();$x();zf();Pn=Gx();ta.registerSubscriptionHandler("SUB_APP",Vx())});var Yx=h(Kx=>{"use strict";Zo();Be();or();Je();Xf();ir();var F4={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:hx,frequencyUpdater:Sx}},Wx=wn(),zx=Ge(U,Jt);zx.getData();U.on(Vc,e=>g(Kx,null,function*(){let t=F4.SUBSCRIPTION;if(!xe("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{U.emit(An,{result:"FAILED"})},0);return}yield Wx.show({duration:3e3});let r=yield zx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(Wx.hide(),!n){U.emit(An,{result:"FAILED"});return}let{data:o,code:a}=yield Pn.invokeSubscriptionPanel();a=="SUCCESS"?U.emit(An,{result:"SUCCESS"}):U.emit(An,{result:"FAILED"}),yield t.frequencyUpdater()}))});var hne,gne,vne,yne,Qx=x(()=>{"use strict";hne=se(Ax()),gne=se(Mx()),vne=se(jx()),yne=se(Yx())});var Ei,Zf=x(()=>{"use strict";Ei=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function Z4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function eV(e){return typeof e=="string"}function tV(e){return typeof e=="undefined"}function rV(e){return tV(e)||e===null}function nV(e){return typeof e=="function"}function xT(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 na(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function sl(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 uV(e){let t=e.location?sl(e.location,nT):null,r=e.target?sl(e.target,nT):null;return sl(Y4(K4({},e),{location:t,target:r}),cV)}function dV(e){let t=e.events.map(n=>uV(n)),r=sl(e.device,lV);return[e.protocolVersion,t,r,e.project]}function pV(){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 vV(e){return new Promise(t=>RT(e)(t))}function RT(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 yV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new la(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 _V(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)wV(e[n],t[n])}function wV(e,t){if(eV(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(nV(t)){try{if(e instanceof t)return}catch(r){}if(!rV(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 mt(e,t,r){return(t=SV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SV(e){var t=IV(e,"string");return typeof t=="symbol"?t:t+""}function IV(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 il(e,t,r){return(t=EV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EV(e){var t=AV(e,"string");return typeof t=="symbol"?t:t+""}function AV(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 ol(e,t,r){return(t=CV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(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 kr(e,t,r){return(t=xV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xV(e){var t=TV(e,"string");return typeof t=="symbol"?t:t+""}function TV(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 PV(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 OV(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 UV(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 LT(e){return e.trim()}function MV(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function hm(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function ua(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function Lm(e){return e.length}function al(e,t){return t.push(e),e}function FV(e,t){return e.map(t).join("")}function Sl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:wl,column:Pi,length:a,return:""}}function oa(e,t){return qV(Sl("",null,null,"",null,null,0),e,{length:-e.length},t)}function jV(){return Ne}function BV(){return Ne=gt>0?ze(Ri,--gt):0,Pi--,Ne===10&&(Pi=1,wl--),Ne}function xt(){return Ne=gt<qT?ze(Ri,gt++):0,Pi++,Ne===10&&(Pi=1,wl++),Ne}function cr(){return ze(Ri,gt)}function cl(){return gt}function pa(e,t){return ua(Ri,e,t)}function da(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 UT(e){return wl=Pi=1,qT=sr(Ri=e),gt=0,[]}function MT(e){return Ri="",e}function ll(e){return LT(pa(gt-1,gm(e===91?e+2:e===40?e+1:e)))}function GV(e){for(;(Ne=cr())&&Ne<33;)xt();return da(e)>2||da(Ne)>3?"":" "}function JV(e,t){for(;--t&&xt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return pa(e,cl()+(t<6&&cr()==32&&xt()==32))}function gm(e){for(;xt();)switch(Ne){case e:return gt;case 34:case 39:e!==34&&e!==39&&gm(Ne);break;case 40:e===41&&gm(e);break;case 92:xt();break}return gt}function HV(e,t){for(;xt()&&e+Ne!==57&&!(e+Ne===84&&cr()===47););return"/*"+pa(t,gt-1)+"*"+_l(e===47?e:xt())}function VV(e){for(;!da(cr());)xt();return pa(e,gt)}function $V(e){return MT(ul("",null,null,null,[""],e=UT(e),0,[0],e))}function ul(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,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=xt()){case 40:if(m!=108&&ze(A,u-1)==58){hm(A+=ne(ll(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ll(w);break;case 9:case 10:case 13:case 32:A+=GV(m);break;case 92:A+=JV(cl()-1,7);continue;case 47:switch(cr()){case 42:case 47:al(WV(HV(xt(),cl()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=sr(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=ne(A,/\f/g,"")),f>0&&sr(A)-u&&al(f>32?aT(A+";",n,r,u-1):aT(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(al(k=oT(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)ul(A,t,k,k,C,o,u,s,T);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 108:case 109:case 115:ul(e,k,k,n&&al(oT(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:ul(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+sr(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&BV()==125)continue}switch(A+=_l(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(sr(A)-1)*y,y=1;break;case 64:cr()===45&&(A+=ll(xt())),p=cr(),d=u=sr(E=A+=VV(cl())),w++;break;case 45:m===45&&sr(A)==2&&(v=0)}}return o}function oT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Lm(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=ua(e,u+1,u=LV(v=a[m])),E=e;y<f;++y)(E=LT(v>0?p[y]+" "+w:ne(w,/&\f/g,p[y])))&&(c[b++]=E);return Sl(e,t,r,i===0?Nm:s,c,l,d)}function WV(e,t,r){return Sl(e,t,r,NT,_l(jV()),ua(e,2,-2),0)}function aT(e,t,r,n){return Sl(e,t,r,Dm,ua(e,0,n),ua(e,n+1,-1),n)}function Ti(e,t){for(var r="",n=Lm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function zV(e,t,r,n){switch(e.type){case DV:if(e.children.length)break;case NV:case Dm:return e.return=e.return||e.value;case NT:return"";case DT:return e.return=e.value+"{"+Ti(e.children,n)+"}";case Nm:e.value=e.props.join(",")}return sr(r=Ti(e.children,n))?e.return=e.value+"{"+r+"}":""}function KV(e){var t=Lm(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 YV(e){return function(t){t.root||(t=t.return)&&e(t)}}function QV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function FT(e,t){switch(UV(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+ml+e+nt+e+e;case 6828:case 4268:return re+e+nt+e+e;case 6165:return re+e+nt+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return re+e+nt+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+nt+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+nt+ne(e,"shrink","negative")+e;case 5292:return re+e+nt+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+nt+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"+nt+"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(sr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ml+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hm(e,"stretch")?FT(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,sr(e)-3-(~hm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(ze(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+nt+e+e}return e}function a$(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 hl(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 en={name:i.name,styles:i.styles,next:en},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)en={name:a.name,styles:a.styles,next:en},a=a.next;var s=o.styles+";";return s}return u$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function u$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=hl(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]+"}":cT(s)&&(n+=tm(o)+":"+lT(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++)cT(a[c])&&(n+=tm(o)+":"+lT(o,a[c])+";");else{var l=hl(e,t,a);switch(o){case"animation":case"animationName":{n+=tm(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function rm(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="";en=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=hl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=hl(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=a$(i)+l;return{name:u,styles:i,next:en}}function BT(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function dT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function pT(e,t,r){var n=[],i=BT(e,n,r);return n.length<2?r:i+t(n)}function g$(e,t){Me.__h&&Me.__h(kt,e,mT||t),mT=0;var r=kt.__H||(kt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function JT(e,t){var r=g$(vm++,7);return b$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function v$(){for(var e;e=GT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(dl),e.__H.__h.forEach(ym),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function y$(e){var t,r=function(){clearTimeout(n),wT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wT&&(t=requestAnimationFrame(r))}function dl(e){var t=kt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),kt=t}function ym(e){var t=kt;e.__c=e.__(),kt=t}function b$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Il(){if(tn>1)tn--;else{for(var e,t=!1;sa!==void 0;){var r=sa;for(sa=void 0,bm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&VT(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(bm=0,tn--,t)throw e}}function Ke(e){if(tn>0)return e();tn++;try{return e()}finally{Il()}}function HT(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.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=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new Ye(e)}function VT(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 $T(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 WT(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ni(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=gl-1,this.f=4}function ca(e){return new Ni(e)}function zT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){tn++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,qm(e),n}finally{ce=r,Il()}}}function qm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,zT(e)}function w$(e){if(ce!==this)throw new Error("Out-of-order effect");WT(this),ce=e,this.f&=-2,8&this.f&&qm(this),Il()}function fa(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ma(e){var t=new fa(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Di(e,t){L[e]=t.bind(null,L[e]||function(){})}function vl(e){im&&im(),im=e&&e.S()}function QT(e){var t=this,r=e.data,n=XT(r);n.value=r;var i=JT(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ca(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ca(function(){return!Array.isArray(l.value)&&!Tu(l.value)}),u=ma(function(){if(this.N=ZT,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 S$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:ma(function(){this.N=ZT;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function XT(e){return JT(function(){return $(e)},[])}function E$(){Ke(function(){for(var e;e=YT.shift();)KT.call(e)})}function ZT(){YT.push(this)===1&&(L.requestAnimationFrame||I$)(E$)}function A$(e,t){let r=ti(e);ei(()=>{r.current=e},[e]),hn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function X(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:--C$,__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 L.vnode&&L.vnode(l),l}function xr(e,t,r){return(t=M$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M$(e){var t=F$(e,"string");return typeof t=="symbol"?t:t+""}function F$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,r){return(t=Q$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q$(e){var t=X$(e,"string");return typeof t=="symbol"?t:t+""}function X$(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 Tr(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 rt(e,t,r){return(t=i9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i9(e){var t=o9(e,"string");return typeof t=="symbol"?t:t+""}function o9(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 ht(e,t,r){return(t=a9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9(e){var t=s9(e,"string");return typeof t=="symbol"?t:t+""}function s9(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 On(e,t,r){return(t=c9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c9(e){var t=l9(e,"string");return typeof t=="symbol"?t:t+""}function l9(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 om(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=d9(e,"string");return typeof t=="symbol"?t:t+""}function d9(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 lt(e,t,r){return(t=p9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p9(e){var t=f9(e,"string");return typeof t=="symbol"?t:t+""}function f9(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 m9(e,t,r){return(t=h9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h9(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 Pr(e,t,r){return(t=y9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y9(e){var t=b9(e,"string");return typeof t=="symbol"?t:t+""}function b9(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 Or(e,t,r){return(t=_9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _9(e){var t=w9(e,"string");return typeof t=="symbol"?t:t+""}function w9(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 aa(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=I9(e,"string");return typeof t=="symbol"?t:t+""}function I9(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 Ht(e,t,r){return(t=E9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E9(e){var t=A9(e,"string");return typeof t=="symbol"?t:t+""}function A9(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 j4,B4,G4,fl,IT,ET,Xx,AT,J4,H4,CT,V4,$4,Zx,W4,z4,eT,K4,Y4,Q4,kT,X4,iV,oV,tT,aV,rT,sV,TT,PT,OT,nT,cV,lV,ki,am,sm,ye,fV,mV,ia,la,hV,lm,gV,em,bV,um,iT,Ai,dm,pm,fm,mm,RV,nt,ml,re,NT,Nm,Dm,NV,DT,DV,LV,_l,qV,wl,Pi,qT,gt,Ne,Ri,XV,ZV,e$,sT,t$,r$,n$,i$,o$,s$,c$,l$,jT,cT,tm,lT,uT,en,d$,p$,f$,m$,h$,it,vm,kt,nm,fT,mT,GT,Me,hT,gT,vT,yT,bT,_T,wT,_$,ce,sa,tn,bm,gl,KT,im,YT,I$,Fe,C$,k$,Rr,_m,wm,pl,x$,T$,P$,O$,R$,N$,D$,L$,q$,U$,Sm,j$,B$,G$,J$,H$,V$,$$,ST,W$,z$,K$,Y$,Im,xi,Ci,Z$,e9,t9,Em,eP,Am,Cm,km,xm,yl,Tm,v9,bl,Pm,Om,Rm,Oi,Ine,Um=x(()=>{"use strict";Hn();Is();ue();j4=Object.defineProperty,B4=Object.defineProperties,G4=Object.getOwnPropertyDescriptors,fl=Object.getOwnPropertySymbols,IT=Object.prototype.hasOwnProperty,ET=Object.prototype.propertyIsEnumerable,Xx=(e,t,r)=>t in e?j4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AT=(e,t)=>{for(var r in t||(t={}))IT.call(t,r)&&Xx(e,r,t[r]);if(fl)for(var r of fl(t))ET.call(t,r)&&Xx(e,r,t[r]);return e},J4=(e,t)=>B4(e,G4(t)),H4=(e,t)=>{var r={};for(var n in e)IT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fl)for(var n of fl(e))t.indexOf(n)<0&&ET.call(e,n)&&(r[n]=e[n]);return r},CT=Object.defineProperty,V4=Object.defineProperties,$4=Object.getOwnPropertyDescriptors,Zx=Object.getOwnPropertySymbols,W4=Object.prototype.hasOwnProperty,z4=Object.prototype.propertyIsEnumerable,eT=(e,t,r)=>t in e?CT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K4=(e,t)=>{for(var r in t||(t={}))W4.call(t,r)&&eT(e,r,t[r]);if(Zx)for(var r of Zx(t))z4.call(t,r)&&eT(e,r,t[r]);return e},Y4=(e,t)=>V4(e,$4(t)),Q4=(e,t)=>{for(var r in t)CT(e,r,{get:t[r],enumerable:!0})},kT=(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},X4=(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}iV=(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))(iV||{});oV={log:na("log"),warn:na("warn"),info:na("info"),error:na("error"),debug:na("debug")};Object.assign(globalThis,{logger:oV});tT=Symbol.for("Jolibox.canIUseMap"),aV={};globalThis[tT]||(globalThis[tT]=aV);rT=Symbol.for("Jolibox.canIUseMap.native"),sV={};globalThis[rT]||(globalThis[rT]=sV);TT=(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))(TT||{}),PT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(PT||{}),OT=(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))(OT||{}),nT=["name","params"],cV=["name","type","location","target","extra","timestamp","userId"],lV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];pV();ki=typeof window=="undefined",am=()=>!ki&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!ki&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!ki&&navigator.userAgent.includes("Android"),!ki&&navigator.userAgent.includes("Mac"),!ki&&navigator.userAgent.includes("FB_IAB"),!ki&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");sm=class cm{constructor(t){this.element=t,this.next=cm.Undefined,this.prev=cm.Undefined}};sm.Undefined=new sm(void 0);ye=sm,fV=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.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!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},mV=0,ia=class{constructor(e){this.value=e,this.id=mV++}},la=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 ia&&(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 ia(e);return this._listeners?this._listeners instanceof ia?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 ia)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 ia?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},hV=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 la,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 fV,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)}},lm={};Q4(lm,{None:()=>gV,filter:()=>yV,once:()=>RT,toPromise:()=>vV});gV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});em=Symbol.for("Jolibox.hostEmitter"),bV=()=>{let e=new hV;return globalThis[em]||(globalThis[em]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[em]};bV();um=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new la,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 _V(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}};um=kT([xT],um);iT=class{constructor(){this._onWillExecuteCommand=new la,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new la,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new um,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Z4(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 X4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),lm.toPromise(lm.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{}}};iT=kT([xT],iT);Ai=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")},dm=class{constructor(t){mt(this,"context",void 0),mt(this,"continueCallback",void 0),mt(this,"adIsShowingCallback",void 0),mt(this,"isBeforeAdCalled",!1),mt(this,"isBeforeRewardCalled",!1),mt(this,"isAdDismissedCalled",!1),mt(this,"isAdViewedCalled",!1),mt(this,"isAfterAdCalled",!1),mt(this,"currentProvider",void 0),mt(this,"currentClientParams",void 0),mt(this,"adsHasResponse",!1),mt(this,"videoChecker",window.document.createElement("video")),mt(this,"contextInfo",void 0),mt(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",AT({userEvent:a},this.paramsToTrack)),am()&&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=Ai(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=Ai(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),am()&&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=Ai(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ai(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=Ai(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=Ai(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")})})}};pm=class{constructor(t){il(this,"context",void 0),il(this,"adBreakIsShowing",!1),il(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),il(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()})}};fm=class{constructor(t){ol(this,"configs",null),ol(this,"firstRun",!0),ol(this,"context",void 0),ol(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}};mm=class{constructor(t,r){kr(this,"name","ADSENSE"),kr(this,"context",void 0),kr(this,"contextInfo",void 0),kr(this,"configured",!1),kr(this,"initParams",void 0),kr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),kr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=H4(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),kr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),kr(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(w=>{if(w.type==="attributes"&&w.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)}})}};RV=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(OV(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=PV(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}(),nt="-ms-",ml="-moz-",re="-webkit-",NT="comm",Nm="rule",Dm="decl",NV="@import",DT="@keyframes",DV="@layer",LV=Math.abs,_l=String.fromCharCode,qV=Object.assign;wl=1,Pi=1,qT=0,gt=0,Ne=0,Ri="";XV=function(e,t,r){for(var n=0,i=0;n=i,i=cr(),n===38&&i===12&&(t[r]=1),!da(i);)xt();return pa(e,gt)},ZV=function(e,t){var r=-1,n=44;do switch(da(n)){case 0:n===38&&cr()===12&&(t[r]=1),e[r]+=XV(gt-1,t,r);break;case 2:e[r]+=ll(n);break;case 4:if(n===44){e[++r]=cr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=_l(n)}while(n=xt());return e},e$=function(e,t){return MT(ZV(UT(e),t))},sT=new WeakMap,t$=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&&!sT.get(r))&&!n){sT.set(e,!0);for(var i=[],o=e$(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]}}},r$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};n$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dm:e.return=FT(e.value,e.length);break;case DT:return Ti([oa(e,{value:ne(e.value,"@","@"+re)})],n);case Nm:if(e.length)return FV(e.props,function(i){switch(MV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ti([oa(e,{props:[ne(i,/:(read-\w+)/,":"+ml+"$1")]})],n);case"::placeholder":return Ti([oa(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),oa(e,{props:[ne(i,/:(plac\w+)/,":"+ml+"$1")]}),oa(e,{props:[ne(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},i$=[n$],o$=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||i$,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=[t$,r$];{var l,d=[zV,YV(function(m){l.insert(m)})],u=KV(c.concat(n,d)),p=function(m){return Ti($V(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 RV({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};s$={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},c$=/[A-Z]|^ms/g,l$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jT=function(e){return e.charCodeAt(1)===45},cT=function(e){return e!=null&&typeof e!="boolean"},tm=QV(function(e){return jT(e)?e:e.replace(c$,"-$&").toLowerCase()}),lT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(l$,function(r,n,i){return en={name:n,styles:i,next:en},n})}return s$[e]!==1&&!jT(e)&&typeof t=="number"&&t!==0?t+"px":t};uT=/label:\s*([^\s;{]+)\s*(;|$)/g;d$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},p$=function(e,t,r){d$(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)}};f$=function(e){var t=o$(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=rm(s,t.registered,void 0);return p$(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=rm(s,t.registered),d="animation-"+l.name;return dT(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=rm(s,t.registered);dT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return pT(t.registered,r,m$(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:BT.bind(null,t.registered),merge:pT.bind(null,t.registered,r)}},m$=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},h$=f$({key:"css"}),it=h$.css,mT=0,GT=[],Me=L,hT=Me.__b,gT=Me.__r,vT=Me.diffed,yT=Me.__c,bT=Me.unmount,_T=Me.__;Me.__b=function(e){kt=null,hT&&hT(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_T&&_T(e,t)},Me.__r=function(e){gT&&gT(e),vm=0;var t=(kt=e.__c).__H;t&&(nm===kt?(t.__h=[],kt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(dl),t.__h.forEach(ym),t.__h=[],vm=0)),nm=kt},Me.diffed=function(e){vT&&vT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(GT.push(t)!==1&&fT===Me.requestAnimationFrame||((fT=Me.requestAnimationFrame)||y$)(v$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),nm=kt=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(dl),r.__h=r.__h.filter(function(n){return!n.__||ym(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),yT&&yT(e,t)},Me.unmount=function(e){bT&&bT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{dl(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};wT=typeof requestAnimationFrame=="function";_$=Symbol.for("preact-signals");ce=void 0,sa=void 0,tn=0,bm=0,gl=0;Ye.prototype.brand=_$;Ye.prototype.h=function(){return!0};Ye.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)};Ye.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)}};Ye.prototype.subscribe=function(e){var t=this;return ma(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}})};Ye.prototype.valueOf=function(){return this.value};Ye.prototype.toString=function(){return this.value+""};Ye.prototype.toJSON=function(){return this.value};Ye.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ye.prototype,"value",{get:function(){var e=HT(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bm>100)throw new Error("Cycle detected");this.v=e,this.i++,gl++,tn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Il()}}}});(Ni.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===gl))return!0;if(this.g=gl,this.f|=1,this.i>0&&!VT(this))return this.f&=-2,!0;var e=ce;try{$T(this),ce=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 ce=e,WT(this),this.f&=-2,!0};Ni.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ye.prototype.S.call(this,e)};Ni.prototype.U=function(e){if(this.t!==void 0&&(Ye.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ni.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ni.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=HT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});fa.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()}};fa.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,zT(this),$T(this),tn++;var e=ce;return ce=this,w$.bind(this,e)};fa.prototype.N=function(){2&this.f||(this.f|=2,this.o=sa,sa=this)};fa.prototype.d=function(){this.f|=8,1&this.f||qm(this)};YT=[];ma(function(){KT=this.N})();QT.displayName="_st";Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:QT},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Di("__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 Ye&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Di("__r",function(e,t){vl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ma(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),vl(r),e(t)});Di("__e",function(e,t,r,n){vl(),e(t,r,n)});Di("diffed",function(e,t){vl();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=S$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Di("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)});Di("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});St.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};I$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Fe=it`
623
623
  inset: 0;
624
624
  clear: none;
625
625
  float: none;
@@ -637,7 +637,7 @@ If multiple caches share the same key they might "fight" for each other's style
637
637
  text-decoration: none;
638
638
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
639
639
  'Helvetica Neue', sans-serif;
640
- `;I$=0;E$=it`
640
+ `;C$=0;k$=it`
641
641
  ${Fe}
642
642
  position: fixed;
643
643
  top: 0;
@@ -712,7 +712,7 @@ If multiple caches share the same key they might "fight" for each other's style
712
712
  }
713
713
  }
714
714
  }
715
- `,Rr=$(null),_m=$(""),wm=$(""),dl=$(!1),A$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!1)},C$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!0)},k$=e=>g(void 0,null,function*(){let{title:t,content:r}=e;return Rr.value&&(Rr.value(!1),Ke(()=>{Rr.value=null,dl.value=!1})),Ke(()=>{_m.value=t||"",wm.value=r||"",dl.value=!0}),new Promise(n=>{Rr.value=i=>{Ke(()=>{Rr.value=null,dl.value=!1,_m.value="",wm.value=""}),n(i)}})}),x$=()=>dl.value?Q("div",{className:E$,children:Q("div",{className:"card-wrapper",children:[Q("div",{className:"body",children:[Q("div",{className:"title",children:_m.value}),Q("div",{className:"content",children:wm.value})]}),Q("div",{className:"footer",children:[Q("button",{onClick:A$,className:"cancel-btn",children:"Cancel"}),Q("button",{onClick:C$,className:"confirm-btm",children:"Confirm"})]})]})}):null,T$=it`
715
+ `,Rr=$(null),_m=$(""),wm=$(""),pl=$(!1),x$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!1)},T$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!0)},P$=e=>g(void 0,null,function*(){let{title:t,content:r}=e;return Rr.value&&(Rr.value(!1),Ke(()=>{Rr.value=null,pl.value=!1})),Ke(()=>{_m.value=t||"",wm.value=r||"",pl.value=!0}),new Promise(n=>{Rr.value=i=>{Ke(()=>{Rr.value=null,pl.value=!1,_m.value="",wm.value=""}),n(i)}})}),O$=()=>pl.value?X("div",{className:k$,children:X("div",{className:"card-wrapper",children:[X("div",{className:"body",children:[X("div",{className:"title",children:_m.value}),X("div",{className:"content",children:wm.value})]}),X("div",{className:"footer",children:[X("button",{onClick:x$,className:"cancel-btn",children:"Cancel"}),X("button",{onClick:T$,className:"confirm-btm",children:"Confirm"})]})]})}):null,R$=it`
716
716
  ${Fe}
717
717
  position: relative;
718
718
  display: flex;
@@ -745,7 +745,7 @@ If multiple caches share the same key they might "fight" for each other's style
745
745
  cursor: not-allowed;
746
746
  }
747
747
  }
748
- `,P$=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},O$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=XT(t);S$(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=oa(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=oa(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=oa(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>g(void 0,null,function*(){if(a.value=!0,!(yield k$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return Q("div",{className:T$,children:[s.value>0&&r!=="interstitial"&&Q("div",{className:"timer",children:[s.value,"s"]}),Q("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:Q("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Q("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},R$=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),c=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},N$=it`
748
+ `,N$=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},D$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=XT(t);A$(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=ca(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=ca(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=ca(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>g(void 0,null,function*(){if(a.value=!0,!(yield P$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return X("div",{className:R$,children:[s.value>0&&r!=="interstitial"&&X("div",{className:"timer",children:[s.value,"s"]}),X("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:X("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:X("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},L$=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),c=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},q$=it`
749
749
  ${Fe}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
@@ -764,14 +764,14 @@ If multiple caches share the same key they might "fight" for each other's style
764
764
  width: 100%;
765
765
  height: 100%;
766
766
  }
767
- `,D$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:c,src:l,mode:d}=t,u=wo(()=>P$(),[]),[p,f]=gr(!1),m=b=>{var y,w,I,C;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(I=r.value)==null||I.call(r),(C=o.value)==null||C.call(o),f(!1)},v=Jr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return hn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?Q("div",{className:N$,children:[Q(O$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&Q("iframe",{src:l.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),Q(x$,{})]}):null};Sm=class{constructor(t,r){xr(this,"name","OKSPIN"),xr(this,"initialized",!1),xr(this,"initCompleter",null),xr(this,"context",void 0),xr(this,"initParams",void 0),xr(this,"adsOverlay",null),xr(this,"adsIsShowing",!1),xr(this,"lastUnDisplayedAdBreak",null),xr(this,"state",R$()),this.context=t,this.initParams=r}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),_s(Q(D$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return g(this,null,function*(){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}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((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 u=()=>{var y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},m=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},v=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};Ke(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}})}},U$=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},M$=it`
767
+ `,U$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:c,src:l,mode:d}=t,u=Io(()=>N$(),[]),[p,f]=gr(!1),m=b=>{var y,w,E,C;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(E=r.value)==null||E.call(r),(C=o.value)==null||C.call(o),f(!1)},v=Jr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return hn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?X("div",{className:q$,children:[X(D$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&X("iframe",{src:l.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),X(O$,{})]}):null};Sm=class{constructor(t,r){xr(this,"name","OKSPIN"),xr(this,"initialized",!1),xr(this,"initCompleter",null),xr(this,"context",void 0),xr(this,"initParams",void 0),xr(this,"adsOverlay",null),xr(this,"adsIsShowing",!1),xr(this,"lastUnDisplayedAdBreak",null),xr(this,"state",L$()),this.context=t,this.initParams=r}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Ss(X(U$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return g(this,null,function*(){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}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((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 u=()=>{var y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},m=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},v=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};Ke(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}})}},j$=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},B$=it`
768
768
  ${Fe}
769
769
  position: fixed;
770
770
  inset: 0;
771
771
  z-index: 2147483647;
772
772
  display: flex;
773
773
  background: #000000;
774
- `,F$=it`
774
+ `,G$=it`
775
775
  ${Fe}
776
776
  position: relative;
777
777
  width: 100%;
@@ -779,7 +779,7 @@ If multiple caches share the same key they might "fight" for each other's style
779
779
  display: flex;
780
780
  flex-direction: column;
781
781
  color: #f7f9fc;
782
- `,j$=it`
782
+ `,J$=it`
783
783
  position: absolute;
784
784
  top: 24px;
785
785
  left: 24px;
@@ -790,15 +790,15 @@ If multiple caches share the same key they might "fight" for each other's style
790
790
  border-radius: 999px;
791
791
  background: rgba(0, 0, 0, 0.65);
792
792
  border: 1px solid rgba(255, 255, 255, 0.08);
793
- `,B$=it`
793
+ `,H$=it`
794
794
  font-size: 11px;
795
795
  letter-spacing: 0.08em;
796
796
  text-transform: uppercase;
797
797
  color: #c7d4ef;
798
- `,G$=it`
798
+ `,V$=it`
799
799
  font-size: 14px;
800
800
  font-weight: 500;
801
- `,J$=it`
801
+ `,$$=it`
802
802
  ${Fe}
803
803
  flex: 1;
804
804
  background: #050505;
@@ -815,13 +815,13 @@ If multiple caches share the same key they might "fight" for each other's style
815
815
  justify-content: center;
816
816
  color: #6e7da1;
817
817
  font-size: 14px;
818
- `,H$=it`
818
+ `,W$=it`
819
819
  position: absolute;
820
820
  bottom: 32px;
821
821
  right: 32px;
822
822
  display: flex;
823
823
  gap: 12px;
824
- `,V$=it`
824
+ `,z$=it`
825
825
  min-width: 160px;
826
826
  min-height: 48px;
827
827
  border-radius: 999px;
@@ -837,7 +837,7 @@ If multiple caches share the same key they might "fight" for each other's style
837
837
  opacity: 0.4;
838
838
  cursor: not-allowed;
839
839
  }
840
- `,$$=it`
840
+ `,K$=it`
841
841
  min-width: 120px;
842
842
  min-height: 44px;
843
843
  border-radius: 999px;
@@ -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
- `,W$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=gr(!1),[p,f]=gr(0),[m,v]=gr(!1),[b,y]=gr(!1),[w,I]=gr("Loading next content..."),C=ei(null),T=l.value,k=Jr(N=>{var O,F,B,H;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(F=i.value)==null||F.call(i),(B=r.value)==null||B.call(r),(H=o.value)==null||H.call(o)},[c,n,i,r,o]),A=Jr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(hn(()=>{var N;if(!c.value||!T){f(0),v(!1),y(!1),I("Loading next content...");return}let O=T.mode==="reward"?15:0,F=Math.max(Math.floor((N=T.countdown)!=null?N:O),0);if(f(F),y(T.mode==="reward"?F===0:!0),v(T.mode==="interstitial"?F===0:!1),F===0)return;let B=F,H=window.setInterval(()=>{B-=1,f(Math.max(B,0)),B<=0&&(window.clearInterval(H),T.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(H)}},[c.value,T,k]),hn(()=>{var N;if(!c.value||!T)return;let O=C.current;if(!O)return;if(O.innerHTML="",I("Loading next content..."),u(!1),T.testMode){let H=document.createElement("div");H.className=ST,H.innerText="Preview slot placeholder",O.appendChild(H),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",T.clientId),F.setAttribute("data-ad-slot",T.unitId),F.setAttribute("data-ad-format","auto"),F.setAttribute("data-full-width-responsive","true"),T.channelId&&F.setAttribute("data-ad-channel",T.channelId),O.appendChild(F);let B=new MutationObserver(()=>{var H;let qt=F.getAttribute("data-ad-status");qt==="filled"?(u(!0),I(""),(H=a.value)==null||H.call(a),B.disconnect()):qt==="unfilled"&&(I("Slot currently unavailable."),u(!1),B.disconnect())});B.observe(F,{attributes:!0,attributeFilter:["data-ad-status"]});try{let H=window;H.adsbygoogle=H.adsbygoogle||[],H.adsbygoogle.push({})}catch(H){B.disconnect(),A()}return()=>{B.disconnect(),O.innerHTML=""}},[c.value,T,a,A]),!c.value||!T)return null;let J=T.mode==="reward"?"Next content unlocking":"Content paused",le=p>0?`Content resumes in ${p}s`:"Content ready";return Q("div",{className:M$,children:Q("div",{className:F$,children:[Q("div",{className:j$,children:[Q("div",{className:B$,children:J}),Q("div",{className:G$,children:le})]}),Q("div",{className:J$,ref:C,children:!d&&Q("div",{className:ST,children:w})}),Q("div",{className:H$,children:T.mode==="reward"?Q("button",{className:V$,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&Q("button",{className:$$,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Im=class{constructor(t,r){if(st(this,"name","ADSENSE_BANNER_AS_AFG"),st(this,"initialized",!1),st(this,"initCompleter",null),st(this,"context",void 0),st(this,"contextInfo",void 0),st(this,"initParams",void 0),st(this,"defaultCountdown",5),st(this,"adsOverlay",null),st(this,"adsIsShowing",!1),st(this,"lastUnDisplayedAdBreak",null),st(this,"requestCounter",0),st(this,"scriptPromise",null),st(this,"scriptReady",!1),st(this,"scriptFailed",!1),st(this,"state",U$()),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"),_s(Q(W$,{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 I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},y=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,v)},w=()=>{var I,C;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(I=t.afterAd)==null||I.call(t),(C=t.adBreakDone)==null||C.call(t,v)};Ke(()=>{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=w,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)},w=()=>{var k;this.adsIsShowing=!1,v.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},I=()=>{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)};Ke(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=w,this.state.adBreakDone.value=I,this.state.adError.value=C});let T=()=>{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,Ke(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,T);break}}}},Ci={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Ci[e.data.type]&&Ci[e.data.type].forEach(t=>{t(e.data.data)})});Ei=(e,t)=>{hn(()=>(Ci[e]||(Ci[e]=new Set),Ci[e].add(t),()=>{Ci[e].delete(t)}),[e,t])},Y$=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),c=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},Q$=it`
850
+ `,Y$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=gr(!1),[p,f]=gr(0),[m,v]=gr(!1),[b,y]=gr(!1),[w,E]=gr("Loading next content..."),C=ti(null),T=l.value,k=Jr(N=>{var O,F,G,H;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(F=i.value)==null||F.call(i),(G=r.value)==null||G.call(r),(H=o.value)==null||H.call(o)},[c,n,i,r,o]),A=Jr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(hn(()=>{var N;if(!c.value||!T){f(0),v(!1),y(!1),E("Loading next content...");return}let O=T.mode==="reward"?15:0,F=Math.max(Math.floor((N=T.countdown)!=null?N:O),0);if(f(F),y(T.mode==="reward"?F===0:!0),v(T.mode==="interstitial"?F===0:!1),F===0)return;let G=F,H=window.setInterval(()=>{G-=1,f(Math.max(G,0)),G<=0&&(window.clearInterval(H),T.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(H)}},[c.value,T,k]),hn(()=>{var N;if(!c.value||!T)return;let O=C.current;if(!O)return;if(O.innerHTML="",E("Loading next content..."),u(!1),T.testMode){let H=document.createElement("div");H.className=ST,H.innerText="Preview slot placeholder",O.appendChild(H),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",T.clientId),F.setAttribute("data-ad-slot",T.unitId),F.setAttribute("data-ad-format","auto"),F.setAttribute("data-full-width-responsive","true"),T.channelId&&F.setAttribute("data-ad-channel",T.channelId),O.appendChild(F);let G=new MutationObserver(()=>{var H;let qt=F.getAttribute("data-ad-status");qt==="filled"?(u(!0),E(""),(H=a.value)==null||H.call(a),G.disconnect()):qt==="unfilled"&&(E("Slot currently unavailable."),u(!1),G.disconnect())});G.observe(F,{attributes:!0,attributeFilter:["data-ad-status"]});try{let H=window;H.adsbygoogle=H.adsbygoogle||[],H.adsbygoogle.push({})}catch(H){G.disconnect(),A()}return()=>{G.disconnect(),O.innerHTML=""}},[c.value,T,a,A]),!c.value||!T)return null;let J=T.mode==="reward"?"Next content unlocking":"Content paused",le=p>0?`Content resumes in ${p}s`:"Content ready";return X("div",{className:B$,children:X("div",{className:G$,children:[X("div",{className:J$,children:[X("div",{className:H$,children:J}),X("div",{className:V$,children:le})]}),X("div",{className:$$,ref:C,children:!d&&X("div",{className:ST,children:w})}),X("div",{className:W$,children:T.mode==="reward"?X("button",{className:z$,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&X("button",{className:K$,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Im=class{constructor(t,r){if(ct(this,"name","ADSENSE_BANNER_AS_AFG"),ct(this,"initialized",!1),ct(this,"initCompleter",null),ct(this,"context",void 0),ct(this,"contextInfo",void 0),ct(this,"initParams",void 0),ct(this,"defaultCountdown",5),ct(this,"adsOverlay",null),ct(this,"adsIsShowing",!1),ct(this,"lastUnDisplayedAdBreak",null),ct(this,"requestCounter",0),ct(this,"scriptPromise",null),ct(this,"scriptReady",!1),ct(this,"scriptFailed",!1),ct(this,"state",j$()),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"),Ss(X(Y$,{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)},w=()=>{var E,C;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(E=t.afterAd)==null||E.call(t),(C=t.adBreakDone)==null||C.call(t,v)};Ke(()=>{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=w,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)},w=()=>{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)};Ke(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=w,this.state.adBreakDone.value=E,this.state.adError.value=C});let T=()=>{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,Ke(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,T);break}}}},xi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||xi[e.data.type]&&xi[e.data.type].forEach(t=>{t(e.data.data)})});Ci=(e,t)=>{hn(()=>(xi[e]||(xi[e]=new Set),xi[e].add(t),()=>{xi[e].delete(t)}),[e,t])},Z$=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),c=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},e9=it`
851
851
  ${Fe}
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
- `,X$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=gr(!1),p=m=>{var v,b,y,w;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),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Ei("appsrockets_ad_dismissed",()=>p("dismiss")),Ei("appsrockets_ad_rewarded",()=>p("viewed")),Ei("appsrockets_ad_completed",()=>p("viewed")),Ei("appsrockets_ad_skipped",()=>p("viewed")),Ei("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Ei("appsrockets_ad_loaded",()=>u(!0)),c.value?Q("div",{className:Q$,style:{display:d?"flex":"none"},children:c.value&&Q("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};Em=class{constructor(t,r){Tr(this,"name","APPSROCKETS"),Tr(this,"initialized",!1),Tr(this,"initCompleter",null),Tr(this,"context",void 0),Tr(this,"adsOverlay",null),Tr(this,"adsIsShowing",!1),Tr(this,"lastUnDisplayedAdBreak",null),Tr(this,"state",Y$()),Tr(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"),_s(Q(X$,{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"})};Ke(()=>{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)},w=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ke(()=>{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=w});let I=()=>{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,Ke(()=>{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,I);break}}}},eP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Am=class{constructor(t,r,n){rt(this,"adUnit",void 0),rt(this,"project",void 0),rt(this,"keyValue",void 0),rt(this,"adsContext",null),rt(this,"rewardedSlot",null),rt(this,"rewardedPayload",null),rt(this,"readyEvent",null),rt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),rt(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),rt(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),i!=="ignored"&&(this.adsContext=null)}),rt(this,"reinit",i=>{this.destroy(i),this.init()}),rt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),rt(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),rt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),rt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),rt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,c,l;(c=(s=this.adsContext)==null?void 0:s.beforeAd)==null||c.call(s),(l=this.readyEvent)==null||l.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,eP(),this.withCommand(()=>{this.init()})}};Cm=class{constructor(t,r,n){var i=this;mt(this,"adUnit",void 0),mt(this,"project",void 0),mt(this,"keyValue",void 0),mt(this,"adsContext",null),mt(this,"gamingInterstitialSlot",null),mt(this,"readyEvent",null),mt(this,"isRetrying",!1),mt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),mt(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))}),mt(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)}),mt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),mt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),mt(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")}))}),mt(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)))})}),eP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};km=class{constructor(t,r){On(this,"name","GOOGLE_GPT"),On(this,"context",void 0),On(this,"contextInfo",void 0),On(this,"initParams",void 0),On(this,"rewardAdManager",void 0),On(this,"interstitialManager",void 0),On(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 Am(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Cm(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}}}};xm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";om(this,"context",void 0),om(this,"placement","GAME"),om(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:OT.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:TT.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:PT.WebSDK};return cV(i)}};vl=class{constructor(t){ct(this,"context",void 0),ct(this,"adsTrackSerializer",void 0),ct(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new xm(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}}},Tm=class{constructor(t,r){var n=this;ct(this,"context",void 0),ct(this,"contextInfo",void 0),ct(this,"requestContext",void 0),ct(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),ct(this,"pendingAFVAdsInfo",Promise.resolve(null)),ct(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})),ct(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),ct(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),ct(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),ct(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ct(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ct(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 vl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};m9=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)}},yl=class{constructor(t){this.context=t,d9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=Ca(()=>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 M("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 am()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield M("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=()=>{Uh("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&&m9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};be("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}=M("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}}};Pm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Pr(this,"providers",void 0),Pr(this,"helper",void 0),Pr(this,"adsContext",null),Pr(this,"_isAdsReady",!1),Pr(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Pr(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)}),Pr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),Pr(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")}})),Pr(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 yl(t),this.init()}};Om=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(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))}),Or(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()})}),Or(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")}})),Or(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 yl(t),this.init()}};Rm=class{constructor(t,r){na(this,"name","INTERNAL_NATIVE"),na(this,"context",void 0),na(this,"rewardAdManager",void 0),na(this,"interstitialManager",void 0),na(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 Pm(this.context,n)),i.length>0&&(this.interstitialManager=new Om(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}}}};Ti=class{constructor(t){if(Ht(this,"context",void 0),Ht(this,"contextInfo",void 0),Ht(this,"providers",{}),Ht(this,"channelPolicy",void 0),Ht(this,"adsActionDetection",void 0),Ht(this,"requestContext",void 0),Ht(this,"adsRequest",void 0),Ht(this,"initialized",!1),Ht(this,"adsIsShowing",!1),Ht(this,"lastAdBreak",void 0),Ht(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new fm(this.context),this.adsActionDetection=new pm(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Tm(t),this.requestContext=new vl(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 km(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new mm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new Sm(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Em(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Im(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Rm(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=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 w=Date.now();if(w-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&&w-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=w,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let I=yield this.adsRequest.getAFGAdsInfo(t.type),C=I==null?void 0:I.data,T=I==null?void 0:I.code;if(T==="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,J,le;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(J=t.afterAd)==null||J.call(t),(le=t.adBreakDone)==null||le.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||T!=="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,J=new dm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let le=C.filter(B=>B.isNative).sort((B,H)=>B.seq-H.seq),N=C.filter(B=>!B.isNative).sort((B,H)=>B.seq-H.seq),O={seq:(m=(f=le[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:le},F;for(le.length>0?F=[O].concat(N):F=N,F=F.sort((B,H)=>B.seq-H.seq).map((B,H)=>j4(AT({},B),{seq:H}));F.length>0;){let B=F.shift(),H=this.providers[B.provider];if(H){let[qt,ph]=yield J.callAdBreakAndContinue(H,t,B,Pl=>{var va;this.adsIsShowing=Pl,(va=this.context.eventEmitter)==null||va.emit("isAdShowing",Pl)});k=qt,A=ph}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(I){(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.")}},bne=it`
869
+ `,t9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=gr(!1),p=m=>{var v,b,y,w;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),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Ci("appsrockets_ad_dismissed",()=>p("dismiss")),Ci("appsrockets_ad_rewarded",()=>p("viewed")),Ci("appsrockets_ad_completed",()=>p("viewed")),Ci("appsrockets_ad_skipped",()=>p("viewed")),Ci("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Ci("appsrockets_ad_loaded",()=>u(!0)),c.value?X("div",{className:e9,style:{display:d?"flex":"none"},children:c.value&&X("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};Em=class{constructor(t,r){Tr(this,"name","APPSROCKETS"),Tr(this,"initialized",!1),Tr(this,"initCompleter",null),Tr(this,"context",void 0),Tr(this,"adsOverlay",null),Tr(this,"adsIsShowing",!1),Tr(this,"lastUnDisplayedAdBreak",null),Tr(this,"state",Z$()),Tr(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"),Ss(X(t9,{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"})};Ke(()=>{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)},w=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ke(()=>{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=w});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,Ke(()=>{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}}}},eP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Am=class{constructor(t,r,n){rt(this,"adUnit",void 0),rt(this,"project",void 0),rt(this,"keyValue",void 0),rt(this,"adsContext",null),rt(this,"rewardedSlot",null),rt(this,"rewardedPayload",null),rt(this,"readyEvent",null),rt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),rt(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),rt(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),i!=="ignored"&&(this.adsContext=null)}),rt(this,"reinit",i=>{this.destroy(i),this.init()}),rt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),rt(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),rt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),rt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),rt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,c,l;(c=(s=this.adsContext)==null?void 0:s.beforeAd)==null||c.call(s),(l=this.readyEvent)==null||l.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,eP(),this.withCommand(()=>{this.init()})}};Cm=class{constructor(t,r,n){var i=this;ht(this,"adUnit",void 0),ht(this,"project",void 0),ht(this,"keyValue",void 0),ht(this,"adsContext",null),ht(this,"gamingInterstitialSlot",null),ht(this,"readyEvent",null),ht(this,"isRetrying",!1),ht(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ht(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))}),ht(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)}),ht(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ht(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ht(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")}))}),ht(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)))})}),eP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};km=class{constructor(t,r){On(this,"name","GOOGLE_GPT"),On(this,"context",void 0),On(this,"contextInfo",void 0),On(this,"initParams",void 0),On(this,"rewardAdManager",void 0),On(this,"interstitialManager",void 0),On(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 Am(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Cm(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}}}};xm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";om(this,"context",void 0),om(this,"placement","GAME"),om(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:OT.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:TT.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:PT.WebSDK};return dV(i)}};yl=class{constructor(t){lt(this,"context",void 0),lt(this,"adsTrackSerializer",void 0),lt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new xm(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}}},Tm=class{constructor(t,r){var n=this;lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"requestContext",void 0),lt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),lt(this,"pendingAFVAdsInfo",Promise.resolve(null)),lt(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})),lt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),lt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),lt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),lt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),lt(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),lt(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 yl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};v9=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)}},bl=class{constructor(t){this.context=t,m9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=xa(()=>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 M("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 am()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield M("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=()=>{Uh("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&&v9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};be("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}=M("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}}};Pm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Pr(this,"providers",void 0),Pr(this,"helper",void 0),Pr(this,"adsContext",null),Pr(this,"_isAdsReady",!1),Pr(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Pr(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)}),Pr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),Pr(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")}})),Pr(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 bl(t),this.init()}};Om=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(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))}),Or(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()})}),Or(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")}})),Or(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 bl(t),this.init()}};Rm=class{constructor(t,r){aa(this,"name","INTERNAL_NATIVE"),aa(this,"context",void 0),aa(this,"rewardAdManager",void 0),aa(this,"interstitialManager",void 0),aa(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 Pm(this.context,n)),i.length>0&&(this.interstitialManager=new Om(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}}}};Oi=class{constructor(t){if(Ht(this,"context",void 0),Ht(this,"contextInfo",void 0),Ht(this,"providers",{}),Ht(this,"channelPolicy",void 0),Ht(this,"adsActionDetection",void 0),Ht(this,"requestContext",void 0),Ht(this,"adsRequest",void 0),Ht(this,"initialized",!1),Ht(this,"adsIsShowing",!1),Ht(this,"lastAdBreak",void 0),Ht(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new fm(this.context),this.adsActionDetection=new pm(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Tm(t),this.requestContext=new yl(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 km(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new mm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new Sm(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Em(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Im(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Rm(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=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 w=Date.now();if(w-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&&w-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=w,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let E=yield this.adsRequest.getAFGAdsInfo(t.type),C=E==null?void 0:E.data,T=E==null?void 0:E.code;if(T==="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,J,le;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(J=t.afterAd)==null||J.call(t),(le=t.adBreakDone)==null||le.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||T!=="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,J=new dm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let le=C.filter(G=>G.isNative).sort((G,H)=>G.seq-H.seq),N=C.filter(G=>!G.isNative).sort((G,H)=>G.seq-H.seq),O={seq:(m=(f=le[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:le},F;for(le.length>0?F=[O].concat(N):F=N,F=F.sort((G,H)=>G.seq-H.seq).map((G,H)=>J4(AT({},G),{seq:H}));F.length>0;){let G=F.shift(),H=this.providers[G.provider];if(H){let[qt,ph]=yield J.callAdBreakAndContinue(H,t,G,Ol=>{var ba;this.adsIsShowing=Ol,(ba=this.context.eventEmitter)==null||ba.emit("isAdShowing",Ol)});k=qt,A=ph}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.")}},Ine=it`
870
870
  ${Fe}
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
- `});function rP(){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;tP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return tP&&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:Ar,loginGuide:Cr}}})})},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:Ar,loginGuide:Cr}})}}}var tP,nP=x(()=>{"use strict";V();je();tP=S.testMode});var Mm,Fm,Il,iP=x(()=>{"use strict";R();Mm=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}}}},Fm=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}}},Il=class{constructor(t){this.unlockOptionsService=new Ut(new Mm(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 Ut(new Fm(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 Bm(e){return jm||(jm=new Il(e)),jm}var I9,E9,A9,jm,Gm,Jm,Hm,Vm=x(()=>{"use strict";iP();je();R();I9=()=>(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]},E9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],A9=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(I9())},jm=null;Gm=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=Bm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;U.emit(jc,{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 A9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},Jm=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=Bm(t);try{let s=yield r.getGlobalConfig();return U.emit(Jt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Ar,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&_e.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Ar,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),U.emit(Jt,{joliCoinUseAndCharge:Ar,loginGuide:Cr}),_e.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Ar,loginGuide:Cr,supportedHostMethods:E9}}),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}}))},Hm=e=>g(void 0,null,function*(){yield Bm(e).warmupCache(),console.log("Reward cache warmed up")})});var $m=x(()=>{"use strict";Vm();Vm()});var oP,aP=x(()=>{"use strict";oP=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 De,Ni,Tt=x(()=>{"use strict";je();or();je();De=Be(U,jc),Ni=(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 El,Wm=x(()=>{"use strict";El={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 gt,rn=x(()=>{"use strict";R();gt=z()});function sP(e){return zm||(zm=new Ym(e)),zm}var Km,Ym,zm,Qm,Rn,Di=x(()=>{"use strict";R();Km=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}}}},Ym=class{constructor(t){this.balanceService=new Ut(new Km(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()}},zm=null;Qm=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield sP(e).getBalance(t)}),Rn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield sP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var cP=x(()=>{"use strict";Di()});function th(e){return Xm||(Xm=new eh(e)),Xm}var Zm,eh,Xm,rh,Nn,Al,Li=x(()=>{"use strict";R();Zm=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}}}},eh=class{constructor(t){this.gemBalanceService=new Ut(new Zm(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()}},Xm=null;rh=(e,t="GEM")=>g(void 0,null,function*(){return yield th(e).getGemBalance(t)}),Nn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield th(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Al=(e,t="GEM")=>g(void 0,null,function*(){yield th(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var lP=x(()=>{"use strict";Li()});var Dt,Dn=x(()=>{"use strict";cP();lP();Dt={JOLI_COIN:{fetchBalance:Qm,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:rh,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 pa,Nr,nh=x(()=>{"use strict";rn();Tt();or();je();je();Dn();pa=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;gt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield De.getData(),o=Dt[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"}}))},Nr=(e,t)=>r=>g(void 0,null,function*(){let n=Be(U,En);return U.emit(Gc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var fa,Dr,uP=x(()=>{"use strict";rn();Tt();je();or();je();Dn();Li();Di();fa=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;gt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield De.getData(),a=Dt[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(De.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"?Nn(n):Rn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Dr=(e,t)=>r=>g(void 0,null,function*(){let n=Be(U,Gt);return U.emit(Bc,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 ih,Lr,dP=x(()=>{"use strict";V();rn();or();je();je();R();Tt();Dn();ih=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;gt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield De.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 Ta(3e3));let f=Dt[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),w=f.getUpdateKey();if(De.updateData({[w]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Lr=(e,t)=>r=>g(void 0,null,function*(){let n=Be(U,Er);return U.emit(Jc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Ln=x(()=>{"use strict";nh();uP();dP()});var k9,Cl,oh=x(()=>{"use strict";V();R();Wm();Ln();rn();Di();Dn();Tt();k9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{fa(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),pa(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(Ni(b,l)){let C=Dt.JOLI_COIN,T=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=T==null?void 0:T.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let T of d){let k=yield gt.executeCommand(T);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let w=El[r],I=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Fn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",I),I.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)),Rn(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}return n==null||n({quantity:I.data.quantity,balance:I.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()}})},Cl=(e,t,r)=>k9(e,t,"JOLI_COIN",r)});var pP,fP=x(()=>{"use strict";Tt();oh();Ln();pP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Cl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var mP,hP=x(()=>{"use strict";oh();Tt();Ln();mP=(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=Nr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Cl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var kl,ah=x(()=>{"use strict";V();R();Wm();Ln();nh();rn();Li();Dn();Tt();kl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{ih(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),fa(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),pa(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=Ni(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let I=Dt.JOLI_GEM,C=yield I.fetchBalance(t),T=I.getCurrentUser(v),k=I.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,T.enableAutoDeduct);if(!I.isEnough(v,k))return n==null||n(d),!1}else{let I=!0;for(let C of l){let T=yield gt.executeCommand(C);if(console.log("[GemHandler] command result",T,C),I=I&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!I)return n==null||n(d),!1}let y=El.GEM,w=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Fn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",w),w.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)),Nn(t)}catch(I){console.error("-----unlockWithGem adBreakDone error-----",I)}return r==null||r({quantity:w.data.quantity,balance:w.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 gP,vP=x(()=>{"use strict";Tt();ah();Ln();gP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return kl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var yP,bP=x(()=>{"use strict";ah();Tt();Ln();yP=(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=Nr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return kl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var _P,wP,sh=x(()=>{"use strict";Dn();rn();Tt();or();je();je();_P=e=>{let{showSubscriptionModal:t}=e;gt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield De.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=Dt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},wP=e=>()=>g(void 0,null,function*(){let t=Be(U,An);return U.emit(Hc,e),(yield t.getFreshData()).result})});var SP=x(()=>{"use strict";sh()});var IP,EP=x(()=>{"use strict";rn();SP();V();Tt();Di();Li();IP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{_P({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(!Ni(v,a))return!1;let y=!0;for(let w of s){let I=yield gt.executeCommand(w);if(y=y&&I.result!=="FAILED",I.result!=="CONTINUE")break}if(Rn(t),Nn(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=S).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:G(P({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(w){console.error("-----unlockWithSubscription adBreakDone error-----",w)}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 AP,CP=x(()=>{"use strict";Tt();EP();sh();AP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=wP("SUBSCRIPTION");return IP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:De,showSubscriptionModal:o,hasSubscription:n}})}});var Lt,kP=x(()=>{"use strict";nP();$m();aP();fP();hP();vP();bP();CP();Di();Li();Lt=rP();Gm(Lt);Jm(Lt)});var xl,x9,lr,T9,ma,P9,xP,TP,O9,R9,ch,N9,D9,L9,PP=x(()=>{"use strict";R();Je();ir();Qx();Zf();Um();bt();V();ut();ue();kP();rs();$m();xl=z(),x9=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},lr={get:(e,t)=>K(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>K(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},T9={httpClient:lr,checkNetwork:x9,track:j,eventEmitter:sn,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},ma=new Ti(T9);Lt.getRewardFrequencyConfig(lr).then(e=>{console.log("getRewardFrequencyConfig",e)});Lt.registerRewardHandler("ADS",oP(ma));Lt.registerRewardHandler("JOLI_COIN",pP(lr,{onUnlockSuccess:e=>{xP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_COIN_ONLY",mP(lr,{onUnlockSuccess:e=>{xP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM",gP(lr,{onUnlockSuccess:e=>{TP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM_ONLY",yP(lr,{onUnlockSuccess:e=>{TP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));P9=()=>{j("subscription_unlock_success",{})};Lt.registerRewardHandler("SUBSCRIPTION",AP(lr,{onSubSuccess:P9.bind(void 0),hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));xP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ir(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Hm(lr);Al(lr);sn.on("isAdShowing",e=>{Si("JOLIBOX_ADS_EVENT",{isAdShowing:e})});TP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ir(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"}}})},O9=Y("adInit",{implement:e=>{ma.init(e)}}),R9=Y("adConfig",{implement:e=>{ma.adConfig(e)}}),ch=!1,N9=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))},D9=Y("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){N9(e);return}if(e.type==="reward"){if(ch)return;ch=!0,Lt.getRewardsTypes(lr).then(n=>{Lt.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(()=>{ch=!1})})}else ma.adBreak(e)}}),L9=Y("adUnit",{implement:e=>{ma.adUnit(e)}});xl.registerCommand("AdsSDK.init",O9);xl.registerCommand("AdsSDK.adConfig",R9);xl.registerCommand("AdsSDK.adBreak",D9);xl.registerCommand("AdsSDK.adUnit",L9);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 ha,q9,U9,M9,F9,j9,OP=x(()=>{"use strict";R();ue();Je();V();ha=z(),q9=Y("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=M("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vt(r.errMsg,r.errNo)}}),U9=Y("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=M("openPageSync",{url:e});if(t!==0||!n)throw new Vt(r,t);return{webviewId:n.webviewId}}}),M9=Y("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=M("closePageSync",{webviewId:e});if(t!==0)throw new Vt(r,t)}}),F9=Y("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),j9=Y("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),E.object()),implement:(e,t)=>{M("callHostMethodAsync",{method:e,params:P({},t)})}});ha.registerCommand("RouterSDK.openSchema",q9);ha.registerCommand("RouterSDK.openPage",U9);ha.registerCommand("RouterSDK.closePage",M9);ha.registerCommand("RouterSDK.interceptSystemExit",F9);ha.registerCommand("RouterSDK.navigateToNativePage",j9);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 J9(e){ka("cpLoadProgressEvent",{progress:e},S.webviewId,!0),Si("CP_LOAD_PROGRESS",{progress:e})}var uh,B9,Tl,lh,RP,G9,H9,V9,NP=x(()=>{"use strict";R();Je();ue();V();bt();Zf();uh=z(),B9=Y("onLoadFinished",{implement:()=>{ka("cpLoadFinishEvent",{},S.webviewId,!0),Si("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),Tl=null,lh=!1,RP=0,G9=200;H9=Y("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{Tl=e,lh||(lh=!0,requestAnimationFrame(function t(){let r=Date.now();r-RP>=G9?(Tl!==null&&(J9(Tl),RP=r,Tl=null),lh=!1):requestAnimationFrame(t)}))}}),V9=Y("onGameTTI",{paramsSchema:E.tuple(E.number().optional()),implement:()=>{ka("cpGameTTIEvent",{duration:performance.now()},S.webviewId,!0),Si("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});uh.registerCommand("RuntimeSDK.loadFinishedEvent",B9);uh.registerCommand("RuntimeSDK.loadProgressEvent",H9);uh.registerCommand("RuntimeSDK.gameTTIEvent",V9)});var $9,W9,z9,DP=x(()=>{"use strict";R();Je();V();$9=z(),W9="isNativeSupport",z9=Y(W9,{paramsSchema:E.tuple(E.object({version:E.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:eg(Eu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});$9.registerCommand("API.isNativeSupport",z9);D("isNativeSupport",{version:"1.1.46"})});var qP=h(dh=>{"use strict";Je();ue();R();R();V();var LP=z(),K9=ie("callHostMethod",{paramsSchema:E.tuple(E.object({method:E.string(),params:E.object().optional().default({})})),implement:r=>g(dh,[r],function*({method:e,params:t}){if(!xe(e))throw new Vt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield M("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Vt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});LP.registerCommand("API.callHostMethod",K9);D("callHostMethod",{version:"1.1.49"});var Y9=ie("userTrackAsync",{paramsSchema:E.tuple(E.object({event:E.string(),eventType:E.number(),params:E.object().optional().default({})})),implement:n=>g(dh,[n],function*({event:e,eventType:t,params:r}){if(!xe("userTrackAsync"))throw new Vt("Method not supported",10001);let{errNo:i,errMsg:o}=yield M("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Vt(o,i)})});LP.registerCommand("API.track",Y9);D("track",{version:"1.1.53"})});var MP=h(qi=>{"use strict";R();Je();Jf();Ur();Xf();var ga=z(),UP=Yc(),Q9=ie("purchaseGem",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>g(qi,null,function*(){var r,n;let t=yield UP.purchase(e.productId);if(t.code!=="SUCCESS")throw Ge({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),X9=ie("getGemProducts",{paramsSchema:E.tuple(),implement:()=>g(qi,null,function*(){var t,r;let e=(r=(t=yield UP.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}})}})}),Z9=ie("getSubscriptionPlans",{paramsSchema:E.tuple(),implement:()=>g(qi,null,function*(){let e=yield Pn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Ge({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),eW=ie("flushSubInfoCache",{paramsSchema:E.tuple(),implement:()=>g(qi,null,function*(){yield Pn.updateAllNativePriceCache()})}),tW=ie("subscribe",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>g(qi,null,function*(){var a;let t=yield Pn.getTierByProductId(e.productId);if(!t)throw Ge({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield Pn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});ga.registerCommand("PaymentSDK.purchaseGem",Q9);ga.registerCommand("PaymentSDK.getGemProducts",X9);ga.registerCommand("PaymentSDK.getSubscriptionPlans",Z9);ga.registerCommand("PaymentSDK.subscribe",tW);ga.registerCommand("PaymentSDK.flushSubInfoCache",eW);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"})});var jP=h(Ui=>{"use strict";R();Je();V();Ur();ue();rs();bt();Um();ut();var rW=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},nW={get:(e,t)=>K(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>K(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},iW={httpClient:nW,checkNetwork:rW,track:j,eventEmitter:sn,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},FP=z(),oW=Mn(reportError),aW=ie("getCoinDetails",{paramsSchema:E.tuple(E.function().optional()),implement:e=>g(Ui,null,function*(){try{if(S.mpType!=="miniApp")return reportError(Ge({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(!xe("requestCoinDetailsSync"))return reportError(Ge({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?oW(e):(()=>{console.log("default update function called")}).bind(Ui),{errNo:n,errMsg:i,data:o}=M("requestCoinDetailsSync");if(n!==0)throw Ge({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),M("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}}})});FP.registerCommand("RewardsSDK.getCoinDetails",aW);D("rewards.getCoinDetails",{version:"1.3.2"});var sW=ie("createRewardsAdsManager",{implement:()=>g(Ui,null,function*(){try{let e=new Ti(iW);if(S.mpType!=="miniApp")throw Ge({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(Ui,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:t=>g(Ui,null,function*(){e.adBreak({type:"reward",beforeReward:r=>{var n;r(),(n=t.onAdLoaded)==null||n.call(t)},adDismissed:()=>{var r;(r=t.onAdDismissed)==null||r.call(t)},adViewed:()=>{},adBreakDone:r=>{var o,a;let n=r.breakStatus,i=n==="frequencyCapped"||n==="other"||n==="error"||n==="noAdPreloaded";n==="viewed"&&(console.log("-----> complete watch ads"),wt.reporter({event:"COMPLETE_WATCH_ADS"}),(o=t.onAdRewarded)==null||o.call(t)),i&&(console.log("-----> no ad preloaded or error occurred",n),(a=t.onAdError)==null||a.call(t,new Error("No ad preloaded or error occurred: "+n)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});FP.registerCommand("Rewards.createRewardsAdsManager",sW);D("rewards.createRewardsAdsManager",{version:"1.3.4"})});var cW={};var Wse,Qse,nce,ice,oce,BP=x(()=>{"use strict";zk();Wse=se(Kk());rx();Xi();nx();Qse=se(ix());Mc();PP();OP();NP();DP();nce=se(qP()),ice=se(MP()),oce=se(jP())});var GP=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[GP])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[GP]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>($k(),Vk)),Promise.resolve().then(()=>(BP(),cW)),Promise.resolve().then(()=>(bt(),jg))]);e()});
914
+ `});function rP(){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;tP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return tP&&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:Ar,loginGuide:Cr}}})})},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:Ar,loginGuide:Cr}})}}}var tP,nP=x(()=>{"use strict";V();Be();tP=S.testMode});var Mm,Fm,El,iP=x(()=>{"use strict";R();Mm=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}}}},Fm=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}}},El=class{constructor(t){this.unlockOptionsService=new Ut(new Mm(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 Ut(new Fm(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 Bm(e){return jm||(jm=new El(e)),jm}var C9,k9,x9,jm,Gm,Jm,Hm,Vm=x(()=>{"use strict";iP();Be();R();C9=()=>(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]},k9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],x9=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(C9())},jm=null;Gm=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=Bm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;U.emit(Bc,{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 x9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},Jm=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=Bm(t);try{let s=yield r.getGlobalConfig();return U.emit(Jt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Ar,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&_e.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Ar,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),U.emit(Jt,{joliCoinUseAndCharge:Ar,loginGuide:Cr}),_e.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Ar,loginGuide:Cr,supportedHostMethods:k9}}),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}}))},Hm=e=>g(void 0,null,function*(){yield Bm(e).warmupCache(),console.log("Reward cache warmed up")})});var $m=x(()=>{"use strict";Vm();Vm()});var oP,aP=x(()=>{"use strict";oP=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 De,Li,Tt=x(()=>{"use strict";Be();or();Be();De=Ge(U,Bc),Li=(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 Al,Wm=x(()=>{"use strict";Al={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 vt,rn=x(()=>{"use strict";R();vt=z()});function sP(e){return zm||(zm=new Ym(e)),zm}var Km,Ym,zm,Qm,Rn,qi=x(()=>{"use strict";R();Km=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}}}},Ym=class{constructor(t){this.balanceService=new Ut(new Km(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()}},zm=null;Qm=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield sP(e).getBalance(t)}),Rn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield sP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var cP=x(()=>{"use strict";qi()});function th(e){return Xm||(Xm=new eh(e)),Xm}var Zm,eh,Xm,rh,Nn,Cl,Ui=x(()=>{"use strict";R();Zm=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}}}},eh=class{constructor(t){this.gemBalanceService=new Ut(new Zm(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()}},Xm=null;rh=(e,t="GEM")=>g(void 0,null,function*(){return yield th(e).getGemBalance(t)}),Nn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield th(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Cl=(e,t="GEM")=>g(void 0,null,function*(){yield th(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var lP=x(()=>{"use strict";Ui()});var Dt,Dn=x(()=>{"use strict";cP();lP();Dt={JOLI_COIN:{fetchBalance:Qm,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:rh,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 ha,Nr,nh=x(()=>{"use strict";rn();Tt();or();Be();Be();Dn();ha=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;vt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield De.getData(),o=Dt[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"}}))},Nr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,En);return U.emit(Jc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ga,Dr,uP=x(()=>{"use strict";rn();Tt();Be();or();Be();Dn();Ui();qi();ga=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;vt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield De.getData(),a=Dt[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(De.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"?Nn(n):Rn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Dr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,Gt);return U.emit(Gc,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 ih,Lr,dP=x(()=>{"use strict";V();rn();or();Be();Be();R();Tt();Dn();ih=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;vt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield De.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 Oa(3e3));let f=Dt[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),w=f.getUpdateKey();if(De.updateData({[w]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Lr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,Er);return U.emit(Hc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Ln=x(()=>{"use strict";nh();uP();dP()});var P9,kl,oh=x(()=>{"use strict";V();R();Wm();Ln();rn();qi();Dn();Tt();P9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{ga(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ha(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(Li(b,l)){let C=Dt.JOLI_COIN,T=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=T==null?void 0:T.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let T of d){let k=yield vt.executeCommand(T);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let w=Al[r],E=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${jn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.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)),Rn(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()}})},kl=(e,t,r)=>P9(e,t,"JOLI_COIN",r)});var pP,fP=x(()=>{"use strict";Tt();oh();Ln();pP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return kl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var mP,hP=x(()=>{"use strict";oh();Tt();Ln();mP=(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=Nr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return kl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var xl,ah=x(()=>{"use strict";V();R();Wm();Ln();nh();rn();Ui();Dn();Tt();xl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{ih(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ga(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ha(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=Li(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let E=Dt.JOLI_GEM,C=yield E.fetchBalance(t),T=E.getCurrentUser(v),k=E.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,T.enableAutoDeduct);if(!E.isEnough(v,k))return n==null||n(d),!1}else{let E=!0;for(let C of l){let T=yield vt.executeCommand(C);if(console.log("[GemHandler] command result",T,C),E=E&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let y=Al.GEM,w=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${jn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",w),w.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)),Nn(t)}catch(E){console.error("-----unlockWithGem adBreakDone error-----",E)}return r==null||r({quantity:w.data.quantity,balance:w.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 gP,vP=x(()=>{"use strict";Tt();ah();Ln();gP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return xl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var yP,bP=x(()=>{"use strict";ah();Tt();Ln();yP=(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=Nr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return xl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:De,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var _P,wP,sh=x(()=>{"use strict";Dn();rn();Tt();or();Be();Be();_P=e=>{let{showSubscriptionModal:t}=e;vt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield De.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=Dt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},wP=e=>()=>g(void 0,null,function*(){let t=Ge(U,An);return U.emit(Vc,e),(yield t.getFreshData()).result})});var SP=x(()=>{"use strict";sh()});var IP,EP=x(()=>{"use strict";rn();SP();V();Tt();qi();Ui();IP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{_P({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(!Li(v,a))return!1;let y=!0;for(let w of s){let E=yield vt.executeCommand(w);if(y=y&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(Rn(t),Nn(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=S).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:B(P({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(w){console.error("-----unlockWithSubscription adBreakDone error-----",w)}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 AP,CP=x(()=>{"use strict";Tt();EP();sh();AP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=wP("SUBSCRIPTION");return IP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:De,showSubscriptionModal:o,hasSubscription:n}})}});var Lt,kP=x(()=>{"use strict";nP();$m();aP();fP();hP();vP();bP();CP();qi();Ui();Lt=rP();Gm(Lt);Jm(Lt)});var Tl,O9,lr,R9,va,N9,xP,TP,D9,L9,ch,q9,U9,M9,PP=x(()=>{"use strict";R();Je();ir();Qx();Zf();Um();_t();V();dt();ue();kP();is();$m();Tl=z(),O9=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},lr={get:(e,t)=>K(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>K(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},R9={httpClient:lr,checkNetwork:O9,track:j,eventEmitter:sn,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},va=new Oi(R9);Lt.getRewardFrequencyConfig(lr).then(e=>{console.log("getRewardFrequencyConfig",e)});Lt.registerRewardHandler("ADS",oP(va));Lt.registerRewardHandler("JOLI_COIN",pP(lr,{onUnlockSuccess:e=>{xP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_COIN_ONLY",mP(lr,{onUnlockSuccess:e=>{xP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM",gP(lr,{onUnlockSuccess:e=>{TP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM_ONLY",yP(lr,{onUnlockSuccess:e=>{TP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));N9=()=>{j("subscription_unlock_success",{})};Lt.registerRewardHandler("SUBSCRIPTION",AP(lr,{onSubSuccess:N9.bind(void 0),hasSubscription:()=>xe("invokeSubscriptionPanelSync")}));xP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ir(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Hm(lr);Cl(lr);sn.on("isAdShowing",e=>{Ei("JOLIBOX_ADS_EVENT",{isAdShowing:e})});TP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ir(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"}}})},D9=Q("adInit",{implement:e=>{va.init(e)}}),L9=Q("adConfig",{implement:e=>{va.adConfig(e)}}),ch=!1,q9=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))},U9=Q("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){q9(e);return}if(e.type==="reward"){if(ch)return;ch=!0,Lt.getRewardsTypes(lr).then(n=>{Lt.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(()=>{ch=!1})})}else va.adBreak(e)}}),M9=Q("adUnit",{implement:e=>{va.adUnit(e)}});Tl.registerCommand("AdsSDK.init",D9);Tl.registerCommand("AdsSDK.adConfig",L9);Tl.registerCommand("AdsSDK.adBreak",U9);Tl.registerCommand("AdsSDK.adUnit",M9);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 ya,F9,j9,B9,G9,J9,OP=x(()=>{"use strict";R();ue();Je();V();ya=z(),F9=Q("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=M("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vt(r.errMsg,r.errNo)}}),j9=Q("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=M("openPageSync",{url:e});if(t!==0||!n)throw new Vt(r,t);return{webviewId:n.webviewId}}}),B9=Q("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=M("closePageSync",{webviewId:e});if(t!==0)throw new Vt(r,t)}}),G9=Q("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),J9=Q("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{M("callHostMethodAsync",{method:e,params:P({},t)})}});ya.registerCommand("RouterSDK.openSchema",F9);ya.registerCommand("RouterSDK.openPage",j9);ya.registerCommand("RouterSDK.closePage",B9);ya.registerCommand("RouterSDK.interceptSystemExit",G9);ya.registerCommand("RouterSDK.navigateToNativePage",J9);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 $9(e){Ta("cpLoadProgressEvent",{progress:e},S.webviewId,!0),Ei("CP_LOAD_PROGRESS",{progress:e})}var uh,H9,Pl,lh,RP,V9,W9,z9,NP=x(()=>{"use strict";R();Je();ue();V();_t();Zf();uh=z(),H9=Q("onLoadFinished",{implement:()=>{Ta("cpLoadFinishEvent",{},S.webviewId,!0),Ei("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),Pl=null,lh=!1,RP=0,V9=200;W9=Q("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Pl=e,lh||(lh=!0,requestAnimationFrame(function t(){let r=Date.now();r-RP>=V9?(Pl!==null&&($9(Pl),RP=r,Pl=null),lh=!1):requestAnimationFrame(t)}))}}),z9=Q("onGameTTI",{paramsSchema:I.tuple(I.number().optional()),implement:()=>{Ta("cpGameTTIEvent",{duration:performance.now()},S.webviewId,!0),Ei("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});uh.registerCommand("RuntimeSDK.loadFinishedEvent",H9);uh.registerCommand("RuntimeSDK.loadProgressEvent",W9);uh.registerCommand("RuntimeSDK.gameTTIEvent",z9)});var K9,Y9,Q9,DP=x(()=>{"use strict";R();Je();V();K9=z(),Y9="isNativeSupport",Q9=Q(Y9,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:eg(Au(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});K9.registerCommand("API.isNativeSupport",Q9);D("isNativeSupport",{version:"1.1.46"})});var qP=h(dh=>{"use strict";Je();ue();R();R();V();var LP=z(),X9=Y("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>g(dh,[r],function*({method:e,params:t}){if(!xe(e))throw new Vt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield M("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Vt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});LP.registerCommand("API.callHostMethod",X9);D("callHostMethod",{version:"1.1.49"});var Z9=Y("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>g(dh,[n],function*({event:e,eventType:t,params:r}){if(!xe("userTrackAsync"))throw new Vt("Method not supported",10001);let{errNo:i,errMsg:o}=yield M("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Vt(o,i)})});LP.registerCommand("API.track",Z9);D("track",{version:"1.1.53"})});var FP=h(qn=>{"use strict";R();Je();Jf();Ur();Xf();var Mi=z(),UP=Qc(),eW=Y("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>g(qn,null,function*(){var r,n;let t=yield UP.purchase(e.productId);if(t.code!=="SUCCESS")throw je({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),tW=Y("getGemProducts",{paramsSchema:I.tuple(),implement:()=>g(qn,null,function*(){var t,r;let e=(r=(t=yield UP.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}})}})}),rW=Y("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>g(qn,null,function*(){let e=yield Pn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw je({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),nW=Y("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>g(qn,null,function*(){yield Pn.updateAllNativePriceCache()})}),MP=e=>g(qn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Pn.getTierByProductId(e.productId);if(!s)throw je({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw je({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Pn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),iW=Y("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string(),appStoreProductId:I.string().optional()})),implement:MP}),oW=Y("subscribeSpin",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string().optional()})),implement:e=>g(qn,null,function*(){return MP(B(P({},e),{productId:"jolibox_app_spin_sub"}))})});Mi.registerCommand("PaymentSDK.purchaseGem",eW);Mi.registerCommand("PaymentSDK.getGemProducts",tW);Mi.registerCommand("PaymentSDK.getSubscriptionPlans",rW);Mi.registerCommand("PaymentSDK.subscribe",iW);Mi.registerCommand("PaymentSDK.subscribeSpin",oW);Mi.registerCommand("PaymentSDK.flushSubInfoCache",nW);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"})});var BP=h(Fi=>{"use strict";R();Je();V();Ur();ue();is();_t();Um();dt();var aW=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},sW={get:(e,t)=>K(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>K(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},cW={httpClient:sW,checkNetwork:aW,track:j,eventEmitter:sn,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},jP=z(),lW=Fn(reportError),uW=Y("getCoinDetails",{paramsSchema:I.tuple(I.function().optional()),implement:e=>g(Fi,null,function*(){try{if(S.mpType!=="miniApp")return reportError(je({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(!xe("requestCoinDetailsSync"))return reportError(je({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?lW(e):(()=>{console.log("default update function called")}).bind(Fi),{errNo:n,errMsg:i,data:o}=M("requestCoinDetailsSync");if(n!==0)throw je({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),M("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}}})});jP.registerCommand("RewardsSDK.getCoinDetails",uW);D("rewards.getCoinDetails",{version:"1.3.2"});var dW=Y("createRewardsAdsManager",{implement:()=>g(Fi,null,function*(){try{let e=new Oi(cW);if(S.mpType!=="miniApp")throw je({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(Fi,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:t=>g(Fi,null,function*(){e.adBreak({type:"reward",beforeReward:r=>{var n;r(),(n=t.onAdLoaded)==null||n.call(t)},adDismissed:()=>{var r;(r=t.onAdDismissed)==null||r.call(t)},adViewed:()=>{},adBreakDone:r=>{var o,a;let n=r.breakStatus,i=n==="frequencyCapped"||n==="other"||n==="error"||n==="noAdPreloaded";n==="viewed"&&(console.log("-----> complete watch ads"),ot.reporter({event:"COMPLETE_WATCH_ADS"}),(o=t.onAdRewarded)==null||o.call(t)),i&&(console.log("-----> no ad preloaded or error occurred",n),(a=t.onAdError)==null||a.call(t,new Error("No ad preloaded or error occurred: "+n)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});jP.registerCommand("Rewards.createRewardsAdsManager",dW);D("rewards.createRewardsAdsManager",{version:"1.3.4"})});var pW={};var Qse,tce,sce,cce,lce,GP=x(()=>{"use strict";zk();Qse=se(Kk());rx();eo();nx();tce=se(ix());Fc();PP();OP();NP();DP();sce=se(qP()),cce=se(FP()),lce=se(BP())});var JP=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[JP])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[JP]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>($k(),Vk)),Promise.resolve().then(()=>(GP(),pW)),Promise.resolve().then(()=>(_t(),jg))]);e()});