@jolibox/implement 1.3.3-beta.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/package-deps_build.json +8 -5
- package/dist/h5/report/encrypt/index.d.ts +13 -0
- package/dist/h5/report/encrypt/public.d.ts +1 -0
- package/dist/index.js +26 -18
- package/dist/index.native.js +40 -40
- package/dist/native/api/base.d.ts +1 -1
- package/dist/native/report/task-tracker.d.ts +1 -0
- package/dist/native/utils/can-iuse-native.d.ts +1 -0
- package/implement.build.log +2 -2
- package/package.json +6 -6
- package/src/h5/report/encrypt/index.ts +102 -0
- package/src/h5/report/encrypt/public.ts +9 -0
- package/src/h5/report/task-tracker.ts +12 -3
- package/src/native/api/base.ts +1 -6
- package/src/native/api/rewards.ts +7 -7
- package/src/native/report/task-tracker.ts +25 -10
- package/src/native/utils/can-iuse-native.ts +7 -0
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var nT=Object.create;var ca=Object.defineProperty,iT=Object.defineProperties,oT=Object.getOwnPropertyDescriptor,aT=Object.getOwnPropertyDescriptors,sT=Object.getOwnPropertyNames,sa=Object.getOwnPropertySymbols,cT=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty,Bm=Object.prototype.propertyIsEnumerable;var Gm=(e,t,r)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))fl.call(t,r)&&Gm(e,r,t[r]);if(sa)for(var r of sa(t))Bm.call(t,r)&&Gm(e,r,t[r]);return e},j=(e,t)=>iT(e,aT(t));var Ke=(e,t)=>{var r={};for(var n in e)fl.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&&Bm.call(e,n)&&(r[n]=e[n]);return r};var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jm=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},lT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sT(t))!fl.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=oT(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?nT(cT(e)):{},lT(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e));var y=(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 hT(e){return!!(e!=null&&e.__nativeBuffers__)}function _l(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!hT(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=gT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function yT(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:vT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function ST(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function rh(e){return typeof e=="string"}function Dn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function $m(e){return typeof e=="number"&&!isNaN(e)}function ET(e){return typeof e=="undefined"}function kT(e){return ET(e)||e===null}function nh(e){return typeof e=="function"}function CT(e){return Dn(e)&&nh(e.then)}function ih(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Pi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function NT(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 UT(){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 JT(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 HT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Oi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function VT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)WT(e[n],t[n])}function WT(e,t){if(rh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(nh(t)){try{if(e instanceof t)return}catch(r){}if(!kT(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 ur(e,t){if(Sl.config[e]){ma.warn(`[can i use] ${e} already registered`);return}Sl.config[e]=lr({},t)}function zm(e,t){return`[${e}]:${t}`}function eR(e,t){Km||(gl=new ua({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),vl=new ua({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),yl=new ua({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{gl.flush(),vl.flush(),yl.flush()}),Km=!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:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";gl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&g&&(vl.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),yl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function iR(e,t){let r=0,n=!0,i=nR.resolveMap,o=eR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,bl.forEach(c=>pa(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),bl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=_l(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new IT;if(i.set(r,m.resolve),!n&&YT.includes(c))return new Promise(x=>{bl.push({method:c,args:l,resolve:x})});let g=fT(lr({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!tR&&KT.includes(c),v=yT(l,b),w=b?v:JSON.stringify(v),S;if(c.endsWith("Sync")||QT.includes(c)?S=(d=e.call)==null?void 0:d.call(e,c,v,r):typeof w=="string"?S=e.invoke(c,w,r):S=(u=e.call)==null?void 0:u.call(e,c,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=_l(S)}catch(x){ma.error(x)}return i.delete(r),S.errorCode&&(S.errorCode=zm(c,S.errorCode)),o(lr(lr({},g),S)),S}return c.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=zm(c,x.errorCode)),o(lr(lr({},g),x)),x))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return CT(d)?d.then(u=>Ym(c,u)):Ym(c,d)},invokeHandler:a}}function Ym(e,t){if(!Dn(t)){ma.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=mT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new TT(n,i,o,a);return s}function oR(e){if(globalThis[la])return globalThis[la];let t=new kl,r=new kl,n=new ua({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[la]={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=_l(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===sh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ri.length),u,a)}catch(p){}});return}if(i.startsWith(Ri)){r.emit(i.slice(Ri.length),c,a);return}t.emit(i,c,a)}},globalThis[la]}function aR(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(`${Ri}${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(sh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ri}${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(XT,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 sR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=oR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=iR(e,r),{publish:l,emitNative:d}=aR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function ch(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var uT,dT,pT,da,Xm,Zm,Hm,lr,fT,mT,pa,gT,vT,eh,bT,_T,th,wT,IT,AT,xT,fa,PT,TT,RT,ml,ma,Vm,OT,wl,DT,Sl,LT,qT,MT,Nn,FT,s9,Il,fe,jT,GT,Ti,Oi,kl,Cl,BT,hl,$T,c9,Al,Wm,l9,ah,zT,Ri,KT,YT,QT,sh,XT,ZT,ua,Km,gl,vl,yl,bl,tR,xl,rR,nR,la,Pl,At,lh,uh,cR,dh,Qm,ye,U,Ne,u9,lR,ph,Tl,d9,p9,ue=P(()=>{"use strict";uT=Object.defineProperty,dT=Object.defineProperties,pT=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,Xm=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))Xm.call(t,r)&&Hm(e,r,t[r]);if(da)for(var r of da(t))Zm.call(t,r)&&Hm(e,r,t[r]);return e},fT=(e,t)=>dT(e,pT(t)),mT=(e,t)=>{var r={};for(var n in e)Xm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&da)for(var n of da(e))t.indexOf(n)<0&&Zm.call(e,n)&&(r[n]=e[n]);return r},pa=(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())});gT=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};vT=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};eh=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,_T=(e,t)=>{for(var r in t)eh(e,r,{get:t[r],enumerable:!0})},th=(e,t,r,n)=>{for(var i=n>1?void 0:n?bT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&eh(t,r,i),i},wT=(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}IT=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))}})}};AT=(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))(AT||{}),xT=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}},fa=class extends xT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},PT=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},TT=class extends fa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},RT=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ml=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ma={log:Pi("log"),warn:Pi("warn"),info:Pi("info"),error:Pi("error"),debug:Pi("debug")};Object.assign(globalThis,{logger:ma});Vm=Symbol.for("Jolibox.canIUseMap"),OT={};globalThis[Vm]||(globalThis[Vm]=OT);wl=Symbol.for("Jolibox.canIUseMap.native"),DT={};globalThis[wl]||(globalThis[wl]=DT);Sl={get config(){return globalThis[wl]}},LT=(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))(LT||{}),qT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qT||{}),MT=(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))(MT||{});UT();Nn=typeof window=="undefined",FT=()=>!Nn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),s9={isiOS:!Nn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Nn&&navigator.userAgent.includes("Android"),isMac:!Nn&&navigator.userAgent.includes("Mac"),isFacebook:!Nn&&navigator.userAgent.includes("FB_IAB"),isPC:!Nn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Il=class El{constructor(t){this.element=t,this.next=El.Undefined,this.prev=El.Undefined}};Il.Undefined=new Il(void 0);fe=Il,jT=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}},GT=0,Ti=class{constructor(e){this.value=e,this.id=GT++}},Oi=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 Ti&&(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 Ti(t);return this._listeners?this._listeners instanceof Ti?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 Ti)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 Ti?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},kl=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 Oi,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 jT,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)}},Cl={};_T(Cl,{None:()=>BT,filter:()=>HT,once:()=>oh,toPromise:()=>JT});BT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),$T=()=>{let e=new kl;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},c9=$T();Al=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Oi,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 VT(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}};Al=th([ih],Al);Wm=class{constructor(){this._onWillExecuteCommand=new Oi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Oi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Al,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=ST(3e4)),this._starActivation}executeCommand(e,...t){return wT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Cl.toPromise(Cl.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}}};Wm=th([ih],Wm);l9=Symbol.for("Jolibox.commands");ur("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});ur("requestProductDetailsAsync",{version:102e4});ur("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});ur("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});ur("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});ur("userTrackAsync",{version:1e6});ur("openMiniapp",{version:1050100});ur("requestCoinDetailsSync",{version:1070100});ur("requestCoinDetailsAsync",{version:1070100});ah=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Sl.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=NT(i,o);if(!s)return!1;if(Dn(s)){let c=s.version;return $m(c)?typeof a=="number"&&a>=c:!0}return $m(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};zT=()=>FT(),Ri="custom_event_",KT=[],YT=[],QT=["env","createRequestTask","login"],sh="__batch_event__",XT="__native_batch_event__",ZT=e=>e==="pv"?e:"default",ua=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=ZT(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&&Dn(a))throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Dn(a))c.push(...Object.keys(a));else if(rh(a)){if(i.length>0)throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new ml(`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=Dn(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={}}},Km=!1;bl=[],tR=!1,xl=Symbol.for("Jolibox.invokeResolverInstance"),rR=new Map;globalThis[xl]||(globalThis[xl]=rR);nR={get resolveMap(){return globalThis[xl]}};la=Symbol.for("Jolibox.subscribeInstance");At={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){At.trigger=e},onDoExit(e){At.exit=e},onDoBackPress(e){At.backPress=e}},lh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new PT("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="")=>{At.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>pa(void 0,null,function*(){let o=yield At.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Pl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ch(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:lh,doExit:r};globalThis.joliboxJSCore=lr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{At.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>pa(void 0,null,function*(){let a=yield At.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Pl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=ch(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 pa(this,null,function*(){let a=yield At.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:lh,doExit:n};globalThis.joliboxJSCore=lr({},i)}uh=Pl;if(!uh&&zT())throw new RT("No joliboxJScore is found, native bridge not found.");cR=lr({},uh),dh=sR(cR),{invokeHandler:Qm}=dh,{applyNative:ye,invokeNative:U,onNative:Ne,offNative:u9,subscribeHandler:lR,publish:ph,emitNative:Tl,subscribe:d9,unsubscribe:p9}=dh;globalThis.joliboxJSBridge={callHandler:Qm,invokeHandler:Qm,subscribeHandler:lR}});function mR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function ga(e){return new Promise(t=>setTimeout(t,e))}function Mi(e){return typeof e=="string"}function rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function bh(e){return typeof e=="object"&&Array.isArray(e)}function va(e){return typeof e=="number"&&!isNaN(e)}function Dr(e){return e===!0||e===!1}function _h(e){return typeof e=="undefined"}function Ui(e){return _h(e)||e===null}function hR(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 Sh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:hh(c)&&hh(s)?i[a]=n(vh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function hh(e){return e&&typeof e=="object"&&e.constructor===Object}function Ih(e,t){if(Array.isArray(e))return e.concat(t)}function Fi(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 vR(e,t){return(...r)=>t(e,...r)}function Ln(e){return t=>vR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Jt(`${i}`))}})}function Ni(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function xh(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 Jl(){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 IR(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function Hl(e){return IR("app","stg-app",e)}function Mn(e){return`https://${Hl(e)}`}function AR(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 xR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new qi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function TR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)RR(e[n],t[n])}function RR(e,t){if(Mi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(hR(t)){try{if(e instanceof t)return}catch(r){}if(!Ui(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 OR(){return typeof globalThis!="undefined"?globalThis[Nh]:void 0}function NR(e){typeof globalThis!="undefined"&&(globalThis[Nh]=e)}function V(e=!1){let t=OR();if(!e&&t)return t;let r=new ha,n=new ql,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 NR(i),i}var Ml,uR,fh,dR,pR,mh,vh,fR,yh,tn,lt,gR,Ul,ji,Fl,Eh,Jt,ya,kh,ba,Ch,Ah,Gi,jl,Ht,Ol,yR,Gl,gh,bR,$,Bl,_R,qn,Di,Bi,wR,SR,Ph,Th,Rh,Dt,Nl,me,ER,kR,Li,qi,$t,Ll,CR,Rl,PR,be,ha,ql,Nh,O=P(()=>{"use strict";Ml=Object.defineProperty,uR=Object.getOwnPropertyDescriptor,fh=Object.getOwnPropertySymbols,dR=Object.prototype.hasOwnProperty,pR=Object.prototype.propertyIsEnumerable,mh=(e,t,r)=>t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vh=(e,t)=>{for(var r in t||(t={}))dR.call(t,r)&&mh(e,r,t[r]);if(fh)for(var r of fh(t))pR.call(t,r)&&mh(e,r,t[r]);return e},fR=(e,t)=>{for(var r in t)Ml(e,r,{get:t[r],enumerable:!0})},yh=(e,t,r,n)=>{for(var i=n>1?void 0:n?uR(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&&Ml(t,r,i),i},tn=(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))}})}};gR=(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))(gR||{}),Ul=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}},ji=class extends Ul{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Fl=class extends Ul{constructor(){super(...arguments),this.kind="USER_ERROR"}},Eh=class extends Fl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Jt=class extends Fl{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))}},ya=class extends Fl{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))}},kh=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ba=class extends ji{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))}},Ch=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Ah=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Gi=class extends Ul{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}}},jl=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ht={log:Ni("log"),warn:Ni("warn"),info:Ni("info"),error:Ni("error"),debug:Ni("debug")};Object.assign(globalThis,{logger:Ht});Ol=Symbol.for("Jolibox.canIUseMap"),yR={};globalThis[Ol]||(globalThis[Ol]=yR);Gl={get config(){return globalThis[Ol]}},gh=Symbol.for("Jolibox.canIUseMap.native"),bR={};globalThis[gh]||(globalThis[gh]=bR);$=(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))($||{}),Bl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bl||{}),_R=(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))(_R||{}),qn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Jl();Di=typeof window=="undefined",Bi={isiOS:!Di&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Di&&navigator.userAgent.includes("Android"),isMac:!Di&&navigator.userAgent.includes("Mac"),isFacebook:!Di&&navigator.userAgent.includes("FB_IAB"),isPC:!Di&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},wR="device_id",SR="advertising_id",Ph=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,qn()),window.__joliboxLocalStorage__.getItem(e)),Th=()=>new URLSearchParams(window.location.search).get("deviceId")||Ph(wR),Rh=()=>new URLSearchParams(window.location.search).get("advertisingId")||Ph(SR);Dt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=vh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return tn(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=>tn(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 tn(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 tn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return tn(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 tn(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)}},Nl=class Dl{constructor(t){this.element=t,this.next=Dl.Undefined,this.prev=Dl.Undefined}};Nl.Undefined=new Nl(void 0);me=Nl,ER=class{constructor(){this._first=me.Undefined,this._last=me.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===me.Undefined}clear(){let e=this._first;for(;e!==me.Undefined;){let t=e.next;e.prev=me.Undefined,e.next=me.Undefined,e=t}this._first=me.Undefined,this._last=me.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new me(e);if(this._first===me.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!==me.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==me.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==me.Undefined&&e.next!==me.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===me.Undefined&&e.next===me.Undefined?(this._first=me.Undefined,this._last=me.Undefined):e.next===me.Undefined?(this._last=this._last.prev,this._last.next=me.Undefined):e.prev===me.Undefined&&(this._first=this._first.next,this._first.prev=me.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==me.Undefined;)yield e.element,e=e.next}},kR=0,Li=class{constructor(e){this.value=e,this.id=kR++}},qi=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 Li&&(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 Li(t);return this._listeners?this._listeners instanceof Li?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 Li)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 Li?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},$t=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 qi,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 ER,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)}},Ll={};fR(Ll,{None:()=>CR,filter:()=>xR,once:()=>Oh,toPromise:()=>AR});CR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Rl=Symbol.for("Jolibox.hostEmitter"),PR=()=>{let e=new $t;return globalThis[Rl]||(globalThis[Rl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Rl]},be=PR();ha=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new qi,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 TR(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}};ha=yh([wh],ha);ql=class{constructor(){this._onWillExecuteCommand=new qi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new qi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ha,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=mR(3e4)),this._starActivation}executeCommand(e,...t){return tn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ll.toPromise(Ll.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}}};ql=yh([wh],ql);Nh=Symbol.for("Jolibox.commands")});function Ie(e,t={}){$l.emit("ERROR_REPORT",{error:e,options:t})}var $l,nn,gt=P(()=>{"use strict";O();O();$l=new $t,nn=new $t;Ie.debounce=Fi(Ie,50,{leading:!0})});var Vl,DR,Dh,Lh,qh=P(()=>{"use strict";O();gt();Vl=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{}}},DR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Dh=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:Vl(o),payloadJson:Vl(a),signature:Vl(s)}}else throw"joli_source is missing"}catch(r){return Ie(new kh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Lh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=DR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var LR,Wl,Mh=P(()=>{"use strict";O();LR="1.3.3-beta.1",Wl=()=>LR});function Kl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var qR,Uh,zl,Fh,he,MR,I,J=P(()=>{"use strict";O();qh();Mh();O();qR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Th(),adId:Rh(),pixelRatio:window.devicePixelRatio||1,platform:Bi.isAndroid?"android":Bi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Wl()},schema:window.location.href,platform:Bi.isAndroid?"android":Bi.isiOS?"ios":"h5"},zl=(Uh=globalThis.joliboxJSCore)==null?void 0:Uh.env,he=Object.assign({},(Fh=zl==null?void 0:zl())!=null?Fh:qR);MR=()=>{var g,b,v,w,S,x,A,C,k,B,le;let{payloadJson:e,headerJson:t,signature:r}=he.schema.length?Dh(he.schema):{},n=`${he.deviceInfo.did}-${new Date().getTime()}`,o=new URL(he.schema.length?he.schema:window.location.href).searchParams,a=(v=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?v:"",s=(x=(S=(w=he.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?S:o.get("sessionId"))!=null?x:n,c=!!((C=(A=e==null?void 0:e.testAdsMode)!=null?A:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),l=(le=(B=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?B: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,R;return(R=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?R: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:Wl()},get mpType(){var N,R;return(R=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?R:"game"},get platform(){var N;return((N=he.platform)!=null?N:he.deviceInfo.platform).toLowerCase()},get deviceInfo(){return he.deviceInfo},get sdkInfo(){return he.sdkInfo},get hostInfo(){return he.hostInfo},get hostUserInfo(){return he.hostUserInfo},get sessionId(){var N,R;return(R=(N=he.clientSessionId)!=null?N:s)!=null?R:n},get channel(){return u},get webviewId(){var N;return(N=he.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Hl(d)},get adId(){var N;return(N=he.deviceInfo.adId)!=null?N:he.deviceInfo.did},get language(){return he.deviceInfo.lang},get sdkEnvironment(){return Kl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Kl("gamedistribution","jolibox")?"gamedistribution":Kl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var ee,ie,cr;let N=(ee=he.deviceInfo.pixelRatio)!=null?ee:1,R=(ie=he.deviceInfo.statusBarHeight)!=null?ie:e==null?void 0:e.__androidStatusBarHeight,F=(cr=he.deviceInfo.navigationBarHeight)!=null?cr:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:R!==void 0?R/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,R;return(R=(N=he.abValues)==null?void 0:N.split(","))!=null?R:[]},get mpInfo(){var N;return(N=he.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{Sh(he,N,Ih)},encodeJoliSourceQuery:N=>{var R,F;return t&&r?Lh(T(T({},e),N),(R=o.get("joliSource"))!=null?R:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},I=MR()});var Yl,Gh,UR,FR,jh,jR,Bh=P(()=>{"use strict";O();gt();J();O();Yl=!1,Gh=(e,t)=>e==null?!1:t in e,UR=e=>Gh(e,"kind"),FR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},jh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:FR(e.name)},i=j(T({},n),{env:t.environment,isFromUser:r});r?nn.emit("GLOBAL_USER_ERROR",e,i):nn.emit("GLOBAL_ERROR",e,i)},jR=e=>Gh(e,"kind")&&e.kind==="USER_ERROR";$l.on("ERROR_REPORT",({error:e,options:t})=>{if(Yl)return;Yl=!0;let r=UR(e)&&e.raw?e.raw:e;try{let n=jR(e);jh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new jl(`${i}, origin error: ${r.message}`);Ht.error(o),jh(new jl(o.message),{environment:t.environment},!1)}finally{Yl=!1}})});var Ye,Ql,Lr=P(()=>{"use strict";gt();O();gt();Ye=(e,t)=>{var r,n;return new Gi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ql=e=>new Eh(e)});var Jh=P(()=>{"use strict";Bh();Lr();O();ue();nn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};U("trackAsync",{event:"reportJsError",data:r})});nn.on("GLOBAL_USER_ERROR",(e,t)=>{Ht.log("UserError",e,t)})});var Xl=P(()=>{"use strict"});function Hh(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Ke(l,["eventType"]),c=j(T({tag:n,eventType:o!=null?o:a!=null?a:$.Other},t),{extra:T({},s)});n=="globalJsError"?Ie(new Ah(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=Fi(r,500,{leading:!0}),r}function $h(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=Fi(t,500,{leading:!0}),t}var Vh=P(()=>{"use strict";O();O();gt();J()});function Wh(e,t){let r=Hh(e,t),n=$h(r);return{track:r,trackPerformance:n}}var zh=P(()=>{"use strict";Vh()});var Kh=P(()=>{"use strict";J();O();O()});var Yh=P(()=>{"use strict";zh();Xl();Kh()});var _a,Qh=P(()=>{"use strict";_a=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function wa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Mn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ne("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:b}=f,v=Ke(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:b}=m,v=Ke(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Ht.warn("onRequestTaskStateChange unknown event",u)}),be.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>y(this,[f,...m],function*(u,p={}){let g=Date.now(),b=GR(u,j(T({},p),{baseUrl:i})),{method:v="GET",responseType:w="text",dataType:S="json",timeout:x,enableCache:A=!1,appendHostCookie:C=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),B={url:b,method:v,header:k,enableCache:A,responseType:w,appendHostCookie:C};if(v=="POST"||v=="PUT"){let ee=JR(p.data,k["content-type"]);B.data=ee}x&&Object.assign(B,{timeout:x});let{data:{requestTaskId:le}}=U(e,B);if(typeof le!="string")throw Ye({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:R,promise:F}=new lt;n.set(le,{resolve:N,reject:R});try{let ee=yield F,{data:ie}=ee;return S==="json"&&typeof ie=="string"&&(ie=BR(ie)),{url:b,timeout:x,method:v,response:j(T({},ee),{data:ie})}}catch(ee){let ie=ee;if(rn(ie)){let{errMsg:cr,prefetchDetail:i9,isPrefetch:o9,errNo:rT}=ie;Mi(cr)&&Ie(Ye({code:-1,msg:cr},{errNo:rT,errMsg:cr}))}throw ee}})}function BR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function JR(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 GR,Zl=P(()=>{"use strict";O();ue();gt();Lr();J();GR=(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 eu,Xh,re,vt=P(()=>{"use strict";Zl();J();O();eu={};(Xh=I.hostUserInfo)!=null&&Xh.token&&(eu["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(eu["x-joli-source"]=I.joliSource);re=wa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Mn(I.testMode),defaultHeaders:eu})});function Zh(e){let t=Gl.config[e];return t||(t={},Gl.config[e]=t),(r,n)=>{if(t[r]){Ht.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var eg=P(()=>{"use strict";O()});function tu(e){tg=e}function Sa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Sa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Sa(e[r]),t),{})}function dr(e){return typeof e=="number"}function ru(e){let t=nu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function nu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var tg,Ce,Ia,Ea,ka,Ca,Un,Aa,xa,Pa,Ta,Ra,Oa,Na,Da,La,qa,Ma,Ua,iu=P(()=>{"use strict";tg=!1;Ce=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(tg)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 ${ru(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Sa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Sa(this._default)}optional(){return this._optional=!0,this}};Ia=class extends Ce{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}},Ea=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ka=class extends Ce{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}},Ca=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Un=class extends Ce{validate(t){return!0}},Aa=class extends Ce{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},xa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Pa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ta=class extends Ce{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 ${ru(t)}`)}return!0}},Ra=class extends Ce{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}},Oa=class extends Ce{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Na=class extends Ce{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Da=class extends Ce{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:ru(this.value),actual:r}):!0}},La=class extends Ce{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
1
|
+
var iT=Object.create;var ca=Object.defineProperty,oT=Object.defineProperties,aT=Object.getOwnPropertyDescriptor,sT=Object.getOwnPropertyDescriptors,cT=Object.getOwnPropertyNames,sa=Object.getOwnPropertySymbols,lT=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable;var Bm=(e,t,r)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))fl.call(t,r)&&Bm(e,r,t[r]);if(sa)for(var r of sa(t))Jm.call(t,r)&&Bm(e,r,t[r]);return e},j=(e,t)=>oT(e,sT(t));var Ye=(e,t)=>{var r={};for(var n in e)fl.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&&Jm.call(e,n)&&(r[n]=e[n]);return r};var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hm=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},uT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cT(t))!fl.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=aT(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?iT(lT(e)):{},uT(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e));var y=(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 gT(e){return!!(e!=null&&e.__nativeBuffers__)}function _l(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!gT(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=vT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function bT(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:yT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function IT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function nh(e){return typeof e=="string"}function Dn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Vm(e){return typeof e=="number"&&!isNaN(e)}function kT(e){return typeof e=="undefined"}function CT(e){return kT(e)||e===null}function ih(e){return typeof e=="function"}function AT(e){return Dn(e)&&ih(e.then)}function oh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Pi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function DT(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 FT(){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 HT(e){return new Promise(t=>ah(e)(t))}function ah(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function $T(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Oi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function WT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)zT(e[n],t[n])}function zT(e,t){if(nh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(ih(t)){try{if(e instanceof t)return}catch(r){}if(!CT(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 Jt(e,t){if(Sl.config[e]){ma.warn(`[can i use] ${e} already registered`);return}Sl.config[e]=ur({},t)}function Km(e,t){return`[${e}]:${t}`}function tR(e,t){Ym||(gl=new ua({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),vl=new ua({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),yl=new ua({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{gl.flush(),vl.flush(),yl.flush()}),Ym=!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:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";gl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&g&&(vl.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),yl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function oR(e,t){let r=0,n=!0,i=iR.resolveMap,o=tR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,bl.forEach(c=>pa(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),bl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=_l(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new ET;if(i.set(r,m.resolve),!n&&QT.includes(c))return new Promise(x=>{bl.push({method:c,args:l,resolve:x})});let g=mT(ur({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!rR&&YT.includes(c),v=bT(l,b),w=b?v:JSON.stringify(v),S;if(c.endsWith("Sync")||XT.includes(c)?S=(d=e.call)==null?void 0:d.call(e,c,v,r):typeof w=="string"?S=e.invoke(c,w,r):S=(u=e.call)==null?void 0:u.call(e,c,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=_l(S)}catch(x){ma.error(x)}return i.delete(r),S.errorCode&&(S.errorCode=Km(c,S.errorCode)),o(ur(ur({},g),S)),S}return c.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Km(c,x.errorCode)),o(ur(ur({},g),x)),x))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return AT(d)?d.then(u=>Qm(c,u)):Qm(c,d)},invokeHandler:a}}function Qm(e,t){if(!Dn(t)){ma.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=hT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new RT(n,i,o,a);return s}function aR(e){if(globalThis[la])return globalThis[la];let t=new kl,r=new kl,n=new ua({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[la]={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=_l(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===ch){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ri.length),u,a)}catch(p){}});return}if(i.startsWith(Ri)){r.emit(i.slice(Ri.length),c,a);return}t.emit(i,c,a)}},globalThis[la]}function sR(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(`${Ri}${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(ch,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ri}${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(ZT,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 cR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=aR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=oR(e,r),{publish:l,emitNative:d}=sR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function lh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var dT,pT,fT,da,Zm,eh,$m,ur,mT,hT,pa,vT,yT,th,_T,wT,rh,ST,ET,xT,PT,fa,TT,RT,OT,ml,ma,Wm,NT,wl,LT,Sl,qT,MT,UT,Nn,jT,c9,Il,fe,GT,BT,Ti,Oi,kl,Cl,JT,hl,VT,l9,Al,zm,u9,sh,KT,Ri,YT,QT,XT,ch,ZT,eR,ua,Ym,gl,vl,yl,bl,rR,xl,nR,iR,la,Pl,At,uh,dh,lR,ph,Xm,me,U,Ne,d9,uR,fh,Tl,p9,f9,ue=P(()=>{"use strict";dT=Object.defineProperty,pT=Object.defineProperties,fT=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,Zm=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,$m=(e,t,r)=>t in e?dT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))Zm.call(t,r)&&$m(e,r,t[r]);if(da)for(var r of da(t))eh.call(t,r)&&$m(e,r,t[r]);return e},mT=(e,t)=>pT(e,fT(t)),hT=(e,t)=>{var r={};for(var n in e)Zm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&da)for(var n of da(e))t.indexOf(n)<0&&eh.call(e,n)&&(r[n]=e[n]);return r},pa=(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())});vT=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};yT=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)};th=Object.defineProperty,_T=Object.getOwnPropertyDescriptor,wT=(e,t)=>{for(var r in t)th(e,r,{get:t[r],enumerable:!0})},rh=(e,t,r,n)=>{for(var i=n>1?void 0:n?_T(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&&th(t,r,i),i},ST=(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}ET=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))}})}};xT=(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))(xT||{}),PT=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}},fa=class extends PT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},TT=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},RT=class extends fa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},OT=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ml=class extends fa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ma={log:Pi("log"),warn:Pi("warn"),info:Pi("info"),error:Pi("error"),debug:Pi("debug")};Object.assign(globalThis,{logger:ma});Wm=Symbol.for("Jolibox.canIUseMap"),NT={};globalThis[Wm]||(globalThis[Wm]=NT);wl=Symbol.for("Jolibox.canIUseMap.native"),LT={};globalThis[wl]||(globalThis[wl]=LT);Sl={get config(){return globalThis[wl]}},qT=(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))(qT||{}),MT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(MT||{}),UT=(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))(UT||{});FT();Nn=typeof window=="undefined",jT=()=>!Nn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),c9={isiOS:!Nn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Nn&&navigator.userAgent.includes("Android"),isMac:!Nn&&navigator.userAgent.includes("Mac"),isFacebook:!Nn&&navigator.userAgent.includes("FB_IAB"),isPC:!Nn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Il=class El{constructor(t){this.element=t,this.next=El.Undefined,this.prev=El.Undefined}};Il.Undefined=new Il(void 0);fe=Il,GT=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}},BT=0,Ti=class{constructor(e){this.value=e,this.id=BT++}},Oi=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 Ti&&(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 Ti(t);return this._listeners?this._listeners instanceof Ti?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 Ti)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 Ti?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},kl=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 Oi,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 GT,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)}},Cl={};wT(Cl,{None:()=>JT,filter:()=>$T,once:()=>ah,toPromise:()=>HT});JT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),VT=()=>{let e=new kl;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},l9=VT();Al=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Oi,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 WT(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}};Al=rh([oh],Al);zm=class{constructor(){this._onWillExecuteCommand=new Oi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Oi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Al,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=IT(3e4)),this._starActivation}executeCommand(e,...t){return ST(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Cl.toPromise(Cl.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}}};zm=rh([oh],zm);u9=Symbol.for("Jolibox.commands");Jt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Jt("requestProductDetailsAsync",{version:102e4});Jt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Jt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Jt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Jt("userTrackAsync",{version:1e6});Jt("openMiniapp",{version:1050100});Jt("requestCoinDetailsSync",{version:1070100});Jt("requestCoinDetailsAsync",{version:1070100});Jt("sendServerEventAsync",{version:1070100});sh=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Sl.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=DT(i,o);if(!s)return!1;if(Dn(s)){let c=s.version;return Vm(c)?typeof a=="number"&&a>=c:!0}return Vm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};KT=()=>jT(),Ri="custom_event_",YT=[],QT=[],XT=["env","createRequestTask","login"],ch="__batch_event__",ZT="__native_batch_event__",eR=e=>e==="pv"?e:"default",ua=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=eR(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&&Dn(a))throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Dn(a))c.push(...Object.keys(a));else if(nh(a)){if(i.length>0)throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new ml(`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=Dn(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={}}},Ym=!1;bl=[],rR=!1,xl=Symbol.for("Jolibox.invokeResolverInstance"),nR=new Map;globalThis[xl]||(globalThis[xl]=nR);iR={get resolveMap(){return globalThis[xl]}};la=Symbol.for("Jolibox.subscribeInstance");At={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){At.trigger=e},onDoExit(e){At.exit=e},onDoBackPress(e){At.backPress=e}},uh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new TT("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="")=>{At.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>pa(void 0,null,function*(){let o=yield At.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Pl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=lh(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:uh,doExit:r};globalThis.joliboxJSCore=ur({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{At.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>pa(void 0,null,function*(){let a=yield At.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Pl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=lh(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 pa(this,null,function*(){let a=yield At.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:uh,doExit:n};globalThis.joliboxJSCore=ur({},i)}dh=Pl;if(!dh&&KT())throw new OT("No joliboxJScore is found, native bridge not found.");lR=ur({},dh),ph=cR(lR),{invokeHandler:Xm}=ph,{applyNative:me,invokeNative:U,onNative:Ne,offNative:d9,subscribeHandler:uR,publish:fh,emitNative:Tl,subscribe:p9,unsubscribe:f9}=ph;globalThis.joliboxJSBridge={callHandler:Xm,invokeHandler:Xm,subscribeHandler:uR}});function hR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function ga(e){return new Promise(t=>setTimeout(t,e))}function Mi(e){return typeof e=="string"}function rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function _h(e){return typeof e=="object"&&Array.isArray(e)}function va(e){return typeof e=="number"&&!isNaN(e)}function Dr(e){return e===!0||e===!1}function wh(e){return typeof e=="undefined"}function Ui(e){return wh(e)||e===null}function gR(e){return typeof e=="function"}function Sh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Ih(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:gh(c)&&gh(s)?i[a]=n(yh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function gh(e){return e&&typeof e=="object"&&e.constructor===Object}function Eh(e,t){if(Array.isArray(e))return e.concat(t)}function Fi(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 yR(e,t){return(...r)=>t(e,...r)}function Ln(e){return t=>yR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Ht(`${i}`))}})}function Ni(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Ph(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 Jl(){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 ER(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function Hl(e){return ER("app","stg-app",e)}function Mn(e){return`https://${Hl(e)}`}function xR(e){return new Promise(t=>Nh(e)(t))}function Nh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function PR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new qi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function RR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)OR(e[n],t[n])}function OR(e,t){if(Mi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(gR(t)){try{if(e instanceof t)return}catch(r){}if(!Ui(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 NR(){return typeof globalThis!="undefined"?globalThis[Dh]:void 0}function DR(e){typeof globalThis!="undefined"&&(globalThis[Dh]=e)}function V(e=!1){let t=NR();if(!e&&t)return t;let r=new ha,n=new ql,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 DR(i),i}var Ml,dR,mh,pR,fR,hh,yh,mR,bh,tn,lt,vR,Ul,ji,Fl,kh,Ht,ya,Ch,ba,Ah,xh,Gi,jl,$t,Ol,bR,Gl,vh,_R,$,Bl,wR,qn,Di,Bi,SR,IR,Th,Rh,Oh,Dt,Nl,he,kR,CR,Li,qi,Vt,Ll,AR,Rl,TR,be,ha,ql,Dh,O=P(()=>{"use strict";Ml=Object.defineProperty,dR=Object.getOwnPropertyDescriptor,mh=Object.getOwnPropertySymbols,pR=Object.prototype.hasOwnProperty,fR=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yh=(e,t)=>{for(var r in t||(t={}))pR.call(t,r)&&hh(e,r,t[r]);if(mh)for(var r of mh(t))fR.call(t,r)&&hh(e,r,t[r]);return e},mR=(e,t)=>{for(var r in t)Ml(e,r,{get:t[r],enumerable:!0})},bh=(e,t,r,n)=>{for(var i=n>1?void 0:n?dR(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&&Ml(t,r,i),i},tn=(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))}})}};vR=(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))(vR||{}),Ul=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}},ji=class extends Ul{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Fl=class extends Ul{constructor(){super(...arguments),this.kind="USER_ERROR"}},kh=class extends Fl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Ht=class extends Fl{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))}},ya=class extends Fl{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))}},Ch=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ba=class extends ji{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))}},Ah=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},xh=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Gi=class extends Ul{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}}},jl=class extends ji{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};$t={log:Ni("log"),warn:Ni("warn"),info:Ni("info"),error:Ni("error"),debug:Ni("debug")};Object.assign(globalThis,{logger:$t});Ol=Symbol.for("Jolibox.canIUseMap"),bR={};globalThis[Ol]||(globalThis[Ol]=bR);Gl={get config(){return globalThis[Ol]}},vh=Symbol.for("Jolibox.canIUseMap.native"),_R={};globalThis[vh]||(globalThis[vh]=_R);$=(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))($||{}),Bl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bl||{}),wR=(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))(wR||{}),qn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Jl();Di=typeof window=="undefined",Bi={isiOS:!Di&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Di&&navigator.userAgent.includes("Android"),isMac:!Di&&navigator.userAgent.includes("Mac"),isFacebook:!Di&&navigator.userAgent.includes("FB_IAB"),isPC:!Di&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},SR="device_id",IR="advertising_id",Th=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,qn()),window.__joliboxLocalStorage__.getItem(e)),Rh=()=>new URLSearchParams(window.location.search).get("deviceId")||Th(SR),Oh=()=>new URLSearchParams(window.location.search).get("advertisingId")||Th(IR);Dt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=yh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return tn(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=>tn(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 tn(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 tn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return tn(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 tn(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)}},Nl=class Dl{constructor(t){this.element=t,this.next=Dl.Undefined,this.prev=Dl.Undefined}};Nl.Undefined=new Nl(void 0);he=Nl,kR=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}},CR=0,Li=class{constructor(e){this.value=e,this.id=CR++}},qi=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 Li&&(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 Li(t);return this._listeners?this._listeners instanceof Li?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 Li)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 Li?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Vt=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 qi,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 kR,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)}},Ll={};mR(Ll,{None:()=>AR,filter:()=>PR,once:()=>Nh,toPromise:()=>xR});AR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Rl=Symbol.for("Jolibox.hostEmitter"),TR=()=>{let e=new Vt;return globalThis[Rl]||(globalThis[Rl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Rl]},be=TR();ha=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new qi,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 RR(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}};ha=bh([Sh],ha);ql=class{constructor(){this._onWillExecuteCommand=new qi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new qi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ha,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=hR(3e4)),this._starActivation}executeCommand(e,...t){return tn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ll.toPromise(Ll.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}}};ql=bh([Sh],ql);Dh=Symbol.for("Jolibox.commands")});function Ie(e,t={}){$l.emit("ERROR_REPORT",{error:e,options:t})}var $l,nn,gt=P(()=>{"use strict";O();O();$l=new Vt,nn=new Vt;Ie.debounce=Fi(Ie,50,{leading:!0})});var Vl,LR,Lh,qh,Mh=P(()=>{"use strict";O();gt();Vl=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{}}},LR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Lh=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:Vl(o),payloadJson:Vl(a),signature:Vl(s)}}else throw"joli_source is missing"}catch(r){return Ie(new Ch(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},qh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=LR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var qR,Wl,Uh=P(()=>{"use strict";O();qR="1.3.3",Wl=()=>qR});function Kl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var MR,Fh,zl,jh,ge,UR,I,J=P(()=>{"use strict";O();Mh();Uh();O();MR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Rh(),adId:Oh(),pixelRatio:window.devicePixelRatio||1,platform:Bi.isAndroid?"android":Bi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Wl()},schema:window.location.href,platform:Bi.isAndroid?"android":Bi.isiOS?"ios":"h5"},zl=(Fh=globalThis.joliboxJSCore)==null?void 0:Fh.env,ge=Object.assign({},(jh=zl==null?void 0:zl())!=null?jh:MR);UR=()=>{var g,b,v,w,S,x,A,C,k,B,le;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?Lh(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.schema:window.location.href).searchParams,a=(v=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?v:"",s=(x=(S=(w=ge.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?S:o.get("sessionId"))!=null?x:n,c=!!((C=(A=e==null?void 0:e.testAdsMode)!=null?A:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),l=(le=(B=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?B: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,R;return(R=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?R: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:Wl()},get mpType(){var N,R;return(R=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?R:"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,R;return(R=(N=ge.clientSessionId)!=null?N:s)!=null?R: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 Hl(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return Kl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Kl("gamedistribution","jolibox")?"gamedistribution":Kl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var ee,ie,lr;let N=(ee=ge.deviceInfo.pixelRatio)!=null?ee:1,R=(ie=ge.deviceInfo.statusBarHeight)!=null?ie:e==null?void 0:e.__androidStatusBarHeight,F=(lr=ge.deviceInfo.navigationBarHeight)!=null?lr:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:R!==void 0?R/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,R;return(R=(N=ge.abValues)==null?void 0:N.split(","))!=null?R:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{Ih(ge,N,Eh)},encodeJoliSourceQuery:N=>{var R,F;return t&&r?qh(T(T({},e),N),(R=o.get("joliSource"))!=null?R:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},I=UR()});var Yl,Bh,FR,jR,Gh,GR,Jh=P(()=>{"use strict";O();gt();J();O();Yl=!1,Bh=(e,t)=>e==null?!1:t in e,FR=e=>Bh(e,"kind"),jR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Gh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:jR(e.name)},i=j(T({},n),{env:t.environment,isFromUser:r});r?nn.emit("GLOBAL_USER_ERROR",e,i):nn.emit("GLOBAL_ERROR",e,i)},GR=e=>Bh(e,"kind")&&e.kind==="USER_ERROR";$l.on("ERROR_REPORT",({error:e,options:t})=>{if(Yl)return;Yl=!0;let r=FR(e)&&e.raw?e.raw:e;try{let n=GR(e);Gh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new jl(`${i}, origin error: ${r.message}`);$t.error(o),Gh(new jl(o.message),{environment:t.environment},!1)}finally{Yl=!1}})});var Qe,Ql,Lr=P(()=>{"use strict";gt();O();gt();Qe=(e,t)=>{var r,n;return new Gi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ql=e=>new kh(e)});var Hh=P(()=>{"use strict";Jh();Lr();O();ue();nn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};U("trackAsync",{event:"reportJsError",data:r})});nn.on("GLOBAL_USER_ERROR",(e,t)=>{$t.log("UserError",e,t)})});var Xl=P(()=>{"use strict"});function $h(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Ye(l,["eventType"]),c=j(T({tag:n,eventType:o!=null?o:a!=null?a:$.Other},t),{extra:T({},s)});n=="globalJsError"?Ie(new xh(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=Fi(r,500,{leading:!0}),r}function Vh(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=Fi(t,500,{leading:!0}),t}var Wh=P(()=>{"use strict";O();O();gt();J()});function zh(e,t){let r=$h(e,t),n=Vh(r);return{track:r,trackPerformance:n}}var Kh=P(()=>{"use strict";Wh()});var Yh=P(()=>{"use strict";J();O();O()});var Qh=P(()=>{"use strict";Kh();Xl();Yh()});var _a,Xh=P(()=>{"use strict";_a=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function wa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Mn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ne("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:b}=f,v=Ye(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:b}=m,v=Ye(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else $t.warn("onRequestTaskStateChange unknown event",u)}),be.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>y(this,[f,...m],function*(u,p={}){let g=Date.now(),b=BR(u,j(T({},p),{baseUrl:i})),{method:v="GET",responseType:w="text",dataType:S="json",timeout:x,enableCache:A=!1,appendHostCookie:C=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),B={url:b,method:v,header:k,enableCache:A,responseType:w,appendHostCookie:C};if(v=="POST"||v=="PUT"){let ee=HR(p.data,k["content-type"]);B.data=ee}x&&Object.assign(B,{timeout:x});let{data:{requestTaskId:le}}=U(e,B);if(typeof le!="string")throw Qe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:R,promise:F}=new lt;n.set(le,{resolve:N,reject:R});try{let ee=yield F,{data:ie}=ee;return S==="json"&&typeof ie=="string"&&(ie=JR(ie)),{url:b,timeout:x,method:v,response:j(T({},ee),{data:ie})}}catch(ee){let ie=ee;if(rn(ie)){let{errMsg:lr,prefetchDetail:o9,isPrefetch:a9,errNo:nT}=ie;Mi(lr)&&Ie(Qe({code:-1,msg:lr},{errNo:nT,errMsg:lr}))}throw ee}})}function JR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function HR(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 BR,Zl=P(()=>{"use strict";O();ue();gt();Lr();J();BR=(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 eu,Zh,re,vt=P(()=>{"use strict";Zl();J();O();eu={};(Zh=I.hostUserInfo)!=null&&Zh.token&&(eu["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(eu["x-joli-source"]=I.joliSource);re=wa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Mn(I.testMode),defaultHeaders:eu})});function eg(e){let t=Gl.config[e];return t||(t={},Gl.config[e]=t),(r,n)=>{if(t[r]){$t.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var tg=P(()=>{"use strict";O()});function tu(e){rg=e}function Sa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Sa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Sa(e[r]),t),{})}function dr(e){return typeof e=="number"}function ru(e){let t=nu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function nu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var rg,Ce,Ia,Ea,ka,Ca,Un,Aa,xa,Pa,Ta,Ra,Oa,Na,Da,La,qa,Ma,Ua,iu=P(()=>{"use strict";rg=!1;Ce=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(rg)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 ${ru(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Sa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Sa(this._default)}optional(){return this._optional=!0,this}};Ia=class extends Ce{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}},Ea=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ka=class extends Ce{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}},Ca=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Un=class extends Ce{validate(t){return!0}},Aa=class extends Ce{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},xa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Pa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ta=class extends Ce{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 ${ru(t)}`)}return!0}},Ra=class extends Ce{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}},Oa=class extends Ce{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Na=class extends Ce{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Da=class extends Ce{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:ru(this.value),actual:r}):!0}},La=class extends Ce{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
2
2
|
or `);this.errors.push(o)}return n}},qa=class extends Ce{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}},Ma=class extends Ce{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ua=class extends Ce{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 ou(e,t,r="param"){if(e.errors=[],e.path=r,tu(!0),!e.validate(t)){let n=e.errors.join(`
|
|
3
|
-
`);throw e.errors.length=0,tu(!1),new TypeError(n)}}var E,au=P(()=>{"use strict";iu();iu();E={object(e){return new Na(e)},array(e){return new Ra(e)},tuple(...e){return new qa(...e)},literal(e){return new Da(e)},or(...e){return new La(...e)},symbol(){return new Ca},record(e){return new Oa(e)},function(){return new Pa},boolean(){return new Ea},string(){return new ka},number(){return new Ia},undefined(){return new Aa},null(){return new xa},unknown(){return new Un},any(){return new Un},as(){return new Un},arraybuffer(){return new Ma},enum(...e){return new Ta(...e)},typedarray(e){return new Ua(e)}}});var Fa,
|
|
3
|
+
`);throw e.errors.length=0,tu(!1),new TypeError(n)}}var E,au=P(()=>{"use strict";iu();iu();E={object(e){return new Na(e)},array(e){return new Ra(e)},tuple(...e){return new qa(...e)},literal(e){return new Da(e)},or(...e){return new La(...e)},symbol(){return new Ca},record(e){return new Oa(e)},function(){return new Pa},boolean(){return new Ea},string(){return new ka},number(){return new Ia},undefined(){return new Aa},null(){return new xa},unknown(){return new Un},any(){return new Un},as(){return new Un},arraybuffer(){return new Ma},enum(...e){return new Ta(...e)},typedarray(e){return new Ua(e)}}});var Fa,ng,ig=P(()=>{"use strict";O();gt();au();Lr();Fa=1,ng=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Fa};Fa+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{ou(i.paramsSchema,o,"params")}catch(w){throw Ql(`${n}:fail ${w.message}`)}let g=i.implement(...o),b=g,v=`${n}:ok`;if(g&&"code"in g){let{code:w,data:S,message:x}=g;c=w,b=S,v=x}return{code:c,message:v,data:b}}catch(g){let b=g;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let v=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${g}`;return l=`${n}:${c} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ie(new Gi(l,d)),{code:c,message:l}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>y(this,null,function*(){var p,f,m,g;let a=_h(o)?o:[o],s=Date.now(),c={method:n,trace_id:Fa};Fa+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{ou(i.paramsSchema,a,"params")}catch(w){throw Ql(w.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:w,data:S,message:x}=v;d=w,l=x,v=S}return Object.assign(u,{code:d,message:l,data:v}),u}catch(b){let v=b,w=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let S=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${b}`,x=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),Ie(new Gi(x,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var Fe,su=P(()=>{"use strict";J();ue();({canIUseNative:Fe}=sh(()=>I.sdkInfo.nativeSDKVersionCode,()=>I.platform))});function cu(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 og=P(()=>{"use strict"});var oe,z,M,Be=P(()=>{"use strict";tg();xt();ig();au();su();og();({createAPI:oe,createSyncAPI:z}=ng(G)),M=eg("native")});function ag(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),YR.includes(t)?t:""}function sg(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 cg(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 ja,VR,WR,zR,KR,Gz,Bz,YR,qr,yt,Ji=P(()=>{"use strict";Be();ue();O();vt();J();ja=V(),VR=oe("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){let{response:t}=yield re(`/api/games/user-storage/${I.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield me("getLocalStorageAsync",{key:e}),s=sg(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}}})}});ja.registerCommand("StorageSDK.getItem",VR);M("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});WR=oe("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return y(this,null,function*(){let r=I.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield re(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=ag(t),c=cg(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`}})}});ja.registerCommand("StorageSDK.setItem",WR);M("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});zR=oe("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){let t=I.mpId,{response:r}=yield re(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ja.registerCommand("StorageSDK.removeItem",zR);M("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});KR=oe("clearStorage",{implement(){return y(this,null,function*(){let e=I.mpId,{response:t}=yield re(`/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`}})}});ja.registerCommand("StorageSDK.clear",KR);M("storage.clear",{version:"1.0.0"});Gz=oe("getStorageInfo",{implement(){return y(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});M("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});Bz=z("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),YR=["string","number","boolean","object",""];qr=oe("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:sg(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),yt=oe("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return y(this,null,function*(){try{let r=ag(t),n=cg(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 lg,Ga,ug=P(()=>{"use strict";J();Xh();O();vt();ue();Ji();su();lg="REPORT_FIRST_OPEN_GAME",Ga=class extends _a{constructor(t,r,n){super(r,n),this.gameId=I.mpId,this.sessionId=I.sessionId,this.track=t,this.taskUrl=Mn(I.testMode)+"/api/base/app-event"}reporter(t){return y(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield this.createTask(o)})}reportToNative(t){return y(this,null,function*(){let{event:r,params:n}=t;yield me("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){qr(lg).then(t=>{Dr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),yt(lg,!0)})}createTask(t){return Fe("sendServerEventAsync")?me("sendServerEventAsync",{payload:t}):I.platform==="android"?re("/api/base/app-event",{method:"POST",data:t}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(t)})}}});var hg={};Hm(hg,{nativeTaskEmitter:()=>Hi,taskTracker:()=>Lt,track:()=>G,trackPerformance:()=>fg});var QR,dg,pg,G,fg,mg,Hi,Lt,xt=P(()=>{"use strict";Hh();O();Xl();Qh();J();ug();ue();QR=(e,t,r)=>{var l,d,u,p,f,m,g;let n=t,i=rn(n.extra)?n.extra:Mi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=I.mpInfo)!=null?l:{},s=T(T(j(T({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:I.sessionId,user_id:(f=(p=I.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:$.Other;U("trackAsync",{event:(g=t.tag)!=null?g:e,data:s,webviewId:r,eventType:c})},{track:G,trackPerformance:fg}=zh(QR,{type:Bl.AppSDK,platform:"native",jssdk_version:(pg=(dg=I.sdkInfo)==null?void 0:dg.jssdkVersion)!=null?pg:"1.0.0",mp_id:I.mpId,mp_version:I.mpVersion}),mg=V();mg.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{fg(e,t,r)});mg.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{G(e,t)});Hi=new Vt,Lt=new Ga(G,Hi)});function gg(){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}},qa=class extends Ce{constructor(...t){super
|
|
|
18
18
|
min-height: 100dvh;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return y(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=P(()=>{"use strict";J()});var vg=P(()=>{"use strict"});var yg=P(()=>{"use strict";O();Jl()});var bg=P(()=>{"use strict";J()});var Ba,cu=P(()=>{"use strict";vg();yg();J();bg();O();Ba=new $t});function pr(e,t){for(var r in t)e[r]=t[r];return e}function mu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Qe(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?Va.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 Ha(e,a,n,i,null)}function Ha(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?++Ig:i,__i:-1,__u:0};return i==null&&D.vnode!=null&&D.vnode(o),o}function Be(e){return e.children}function bt(e,t){this.props=e,this.context=t}function Fn(e,t){if(t==null)return e.__?Fn(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"?Fn(e):null}function Pg(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 Pg(e)}}function du(e){(!e.__d&&(e.__d=!0)&&on.push(e)&&!$a.__r++||_g!==D.debounceRendering)&&((_g=D.debounceRendering)||Eg)($a)}function $a(){for(var e,t,r,n,i,o,a,s=1;on.length;)on.length>s&&on.sort(kg),e=on.shift(),s=on.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,D.vnode&&D.vnode(r),hu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Fn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Og(o,r,a),r.__e!=i&&Pg(r)));$a.__r=0}function Tg(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,g,b,v=n&&n.__k||xg,w=t.length;for(c=XR(r,t,v,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?$i:v[f.__i]||$i,f.__i=u,b=hu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&gu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?c=Rg(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=g,c}function XR(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?Ha(null,a,null,null,null):Vi(a)?Ha(Be,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ha(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=ZR(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=Fn(s)),Dg(s,s));return n}function Rg(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=Rg(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Fn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Wi(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vi(e)?e.some(function(r){Wi(r,t)}):t.push(e)),t}function ZR(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"||QR.test(t)?r:r+"px"}function Ja(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(Cg,"$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=fu,e.addEventListener(t,o?uu:lu,o)):e.removeEventListener(t,o?uu:lu,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 Sg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=fu++;else if(t.u<r.t)return;return r(D.event?D.event(t):t)}}}function hu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,g,b,v,w,S,x,A,C,k,B,le,N,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=D.__b)&&d(t);e:if(typeof R=="function")try{if(v=t.props,w="prototype"in R&&R.prototype.render,S=(d=R.contextType)&&n[d.__c],x=d?S?S.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new R(v,x):(t.__c=u=new bt(v,x),u.constructor=R,u.render=tO),S&&S.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=pr({},u.__s)),pr(u.__s,R.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&R.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),A=0;A<u._sb.length;A++)u.__h.push(u._sb[A]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=D.__r,k=0,w){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===Be&&d.key==null&&(le=Ng(d.props.children)),s=Tg(e,Vi(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--;)mu(o[N]);else t.__e=r.__e,t.__k=r.__k;D.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=eO(r.__e,t,r,n,i,o,a,c,l);return(d=D.diffed)&&d(t),128&t.__u?void 0:s}function Og(e,t,r){for(var n=0;n<r.length;n++)gu(r[n],r[++n],r[++n]);D.__c&&D.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){D.__e(o,i.__v)}})}function Ng(e){return typeof e!="object"||e==null?e:Vi(e)?e.map(Ng):pr({},e)}function eO(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,g,b=r.props,v=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(v);e=document.createElementNS(i,w,v.is&&v),s&&(D.__m&&D.__m(t,o),s=!1),o=null}if(w===null)b===v||s&&e.data===v||(e.data=v);else{if(o=o&&Va.call(e.childNodes),b=r.props||$i,!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 v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;Ja(e,l,null,f,i)}}for(l in v)f=v[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?g=f:s&&typeof f!="function"||b[l]===f||Ja(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=""),Tg(t.type==="template"?e.content:e,Vi(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Fn(r,0),s,c),o!=null)for(l=o.length;l--;)mu(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])&&Ja(e,l,m,b[l],i),l="checked",g!==void 0&&g!==e[l]&&Ja(e,l,g,b[l],i))}return e}function gu(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){D.__e(i,r)}}function Dg(e,t,r){var n,i;if(D.unmount&&D.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||gu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){D.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Dg(n[i],t,r||typeof e.type!="function");r||mu(e.__e),e.__c=e.__=e.__e=void 0}function tO(e,t,r){return this.constructor(e,r)}function Mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),D.__&&D.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],hu(t,e=(!n&&r||t).__k=Qe(Be,null,[e]),i||$i,$i,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Va.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Og(o,e,a)}function an(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,du(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"+Ag++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Va,D,Ig,pu,on,_g,Eg,kg,Cg,fu,lu,uu,Ag,$i,xg,QR,Vi,jn=P(()=>{$i={},xg=[],QR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vi=Array.isArray;Va=xg.slice,D={__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}},Ig=0,pu=function(e){return e!=null&&e.constructor==null},bt.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),du(this))},bt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),du(this))},bt.prototype.render=Be,on=[],Eg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kg=function(e,t){return e.__v.__b-t.__v.__b},$a.__r=0,Cg=/(PointerCapture)$|Capture$/i,fu=0,lu=Sg(!1),uu=Sg(!0),Ag=0});var _e=h((A6,Lg)=>{"use strict";Lg.exports=function(e){try{return!!e()}catch(t){return!0}}});var Gn=h((x6,qg)=>{"use strict";var rO=_e();qg.exports=!rO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ae=h((P6,Fg)=>{"use strict";var Mg=Gn(),Ug=Function.prototype,vu=Ug.call,nO=Mg&&Ug.bind.bind(vu,vu);Fg.exports=Mg?nO:function(e){return function(){return vu.apply(e,arguments)}}});var ot=h((T6,jg)=>{"use strict";var iO=Ae();jg.exports=iO({}.isPrototypeOf)});var we=h((yu,Gg)=>{"use strict";var zi=function(e){return e&&e.Math===Math&&e};Gg.exports=zi(typeof globalThis=="object"&&globalThis)||zi(typeof window=="object"&&window)||zi(typeof self=="object"&&self)||zi(typeof global=="object"&&global)||zi(typeof yu=="object"&&yu)||function(){return this}()||Function("return this")()});var bu=h((R6,$g)=>{"use strict";var oO=Gn(),Hg=Function.prototype,Bg=Hg.apply,Jg=Hg.call;$g.exports=typeof Reflect=="object"&&Reflect.apply||(oO?Jg.bind(Bg):function(){return Jg.apply(Bg,arguments)})});var fr=h((O6,Wg)=>{"use strict";var Vg=Ae(),aO=Vg({}.toString),sO=Vg("".slice);Wg.exports=function(e){return sO(aO(e),8,-1)}});var Ki=h((N6,zg)=>{"use strict";var cO=fr(),lO=Ae();zg.exports=function(e){if(cO(e)==="Function")return lO(e)}});var Je=h((D6,Kg)=>{"use strict";var _u=typeof document=="object"&&document.all;Kg.exports=typeof _u=="undefined"&&_u!==void 0?function(e){return typeof e=="function"||e===_u}:function(e){return typeof e=="function"}});var at=h((L6,Yg)=>{"use strict";var uO=_e();Yg.exports=!uO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qt=h((q6,Qg)=>{"use strict";var dO=Gn(),Wa=Function.prototype.call;Qg.exports=dO?Wa.bind(Wa):function(){return Wa.apply(Wa,arguments)}});var wu=h(ev=>{"use strict";var Xg={}.propertyIsEnumerable,Zg=Object.getOwnPropertyDescriptor,pO=Zg&&!Xg.call({1:2},1);ev.f=pO?function(t){var r=Zg(this,t);return!!r&&r.enumerable}:Xg});var Yi=h((U6,tv)=>{"use strict";tv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var za=h((F6,rv)=>{"use strict";var fO=Ae(),mO=_e(),hO=fr(),Su=Object,gO=fO("".split);rv.exports=mO(function(){return!Su("z").propertyIsEnumerable(0)})?function(e){return hO(e)==="String"?gO(e,""):Su(e)}:Su});var sn=h((j6,nv)=>{"use strict";nv.exports=function(e){return e==null}});var cn=h((G6,iv)=>{"use strict";var vO=sn(),yO=TypeError;iv.exports=function(e){if(vO(e))throw new yO("Can't call method on "+e);return e}});var Ur=h((B6,ov)=>{"use strict";var bO=za(),_O=cn();ov.exports=function(e){return bO(_O(e))}});var De=h((J6,av)=>{"use strict";var wO=Je();av.exports=function(e){return typeof e=="object"?e!==null:wO(e)}});var Vt=h((H6,sv)=>{"use strict";sv.exports={}});var Bn=h(($6,lv)=>{"use strict";var Iu=Vt(),Eu=we(),SO=Je(),cv=function(e){return SO(e)?e:void 0};lv.exports=function(e,t){return arguments.length<2?cv(Iu[e])||cv(Eu[e]):Iu[e]&&Iu[e][t]||Eu[e]&&Eu[e][t]}});var Ka=h((V6,pv)=>{"use strict";var IO=we(),uv=IO.navigator,dv=uv&&uv.userAgent;pv.exports=dv?String(dv):""});var Qa=h((W6,yv)=>{"use strict";var vv=we(),ku=Ka(),fv=vv.process,mv=vv.Deno,hv=fv&&fv.versions||mv&&mv.version,gv=hv&&hv.v8,Mt,Ya;gv&&(Mt=gv.split("."),Ya=Mt[0]>0&&Mt[0]<4?1:+(Mt[0]+Mt[1]));!Ya&&ku&&(Mt=ku.match(/Edge\/(\d+)/),(!Mt||Mt[1]>=74)&&(Mt=ku.match(/Chrome\/(\d+)/),Mt&&(Ya=+Mt[1])));yv.exports=Ya});var Cu=h((z6,_v)=>{"use strict";var bv=Qa(),EO=_e(),kO=we(),CO=kO.String;_v.exports=!!Object.getOwnPropertySymbols&&!EO(function(){var e=Symbol("symbol detection");return!CO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bv&&bv<41})});var Au=h((K6,wv)=>{"use strict";var AO=Cu();wv.exports=AO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var xu=h((Y6,Sv)=>{"use strict";var xO=Bn(),PO=Je(),TO=ot(),RO=Au(),OO=Object;Sv.exports=RO?function(e){return typeof e=="symbol"}:function(e){var t=xO("Symbol");return PO(t)&&TO(t.prototype,OO(e))}});var Qi=h((Q6,Iv)=>{"use strict";var NO=String;Iv.exports=function(e){try{return NO(e)}catch(t){return"Object"}}});var ln=h((X6,Ev)=>{"use strict";var DO=Je(),LO=Qi(),qO=TypeError;Ev.exports=function(e){if(DO(e))return e;throw new qO(LO(e)+" is not a function")}});var Xa=h((Z6,kv)=>{"use strict";var MO=ln(),UO=sn();kv.exports=function(e,t){var r=e[t];return UO(r)?void 0:MO(r)}});var Av=h((eK,Cv)=>{"use strict";var Pu=qt(),Tu=Je(),Ru=De(),FO=TypeError;Cv.exports=function(e,t){var r,n;if(t==="string"&&Tu(r=e.toString)&&!Ru(n=Pu(r,e))||Tu(r=e.valueOf)&&!Ru(n=Pu(r,e))||t!=="string"&&Tu(r=e.toString)&&!Ru(n=Pu(r,e)))return n;throw new FO("Can't convert object to primitive value")}});var Jn=h((tK,xv)=>{"use strict";xv.exports=!0});var Rv=h((rK,Tv)=>{"use strict";var Pv=we(),jO=Object.defineProperty;Tv.exports=function(e,t){try{jO(Pv,e,{value:t,configurable:!0,writable:!0})}catch(r){Pv[e]=t}return t}});var Xi=h((nK,Dv)=>{"use strict";var GO=Jn(),BO=we(),JO=Rv(),Ov="__core-js_shared__",Nv=Dv.exports=BO[Ov]||JO(Ov,{});(Nv.versions||(Nv.versions=[])).push({version:"3.41.0",mode:GO?"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 Ou=h((iK,qv)=>{"use strict";var Lv=Xi();qv.exports=function(e,t){return Lv[e]||(Lv[e]=t||{})}});var Hn=h((oK,Mv)=>{"use strict";var HO=cn(),$O=Object;Mv.exports=function(e){return $O(HO(e))}});var _t=h((aK,Uv)=>{"use strict";var VO=Ae(),WO=Hn(),zO=VO({}.hasOwnProperty);Uv.exports=Object.hasOwn||function(t,r){return zO(WO(t),r)}});var Za=h((sK,Fv)=>{"use strict";var KO=Ae(),YO=0,QO=Math.random(),XO=KO(1 .toString);Fv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+XO(++YO+QO,36)}});var Xe=h((cK,Gv)=>{"use strict";var ZO=we(),e1=Ou(),jv=_t(),t1=Za(),r1=Cu(),n1=Au(),$n=ZO.Symbol,Nu=e1("wks"),i1=n1?$n.for||$n:$n&&$n.withoutSetter||t1;Gv.exports=function(e){return jv(Nu,e)||(Nu[e]=r1&&jv($n,e)?$n[e]:i1("Symbol."+e)),Nu[e]}});var $v=h((lK,Hv)=>{"use strict";var o1=qt(),Bv=De(),Jv=xu(),a1=Xa(),s1=Av(),c1=Xe(),l1=TypeError,u1=c1("toPrimitive");Hv.exports=function(e,t){if(!Bv(e)||Jv(e))return e;var r=a1(e,u1),n;if(r){if(t===void 0&&(t="default"),n=o1(r,e,t),!Bv(n)||Jv(n))return n;throw new l1("Can't convert object to primitive value")}return t===void 0&&(t="number"),s1(e,t)}});var Du=h((uK,Vv)=>{"use strict";var d1=$v(),p1=xu();Vv.exports=function(e){var t=d1(e,"string");return p1(t)?t:t+""}});var qu=h((dK,zv)=>{"use strict";var f1=we(),Wv=De(),Lu=f1.document,m1=Wv(Lu)&&Wv(Lu.createElement);zv.exports=function(e){return m1?Lu.createElement(e):{}}});var Mu=h((pK,Kv)=>{"use strict";var h1=at(),g1=_e(),v1=qu();Kv.exports=!h1&&!g1(function(){return Object.defineProperty(v1("div"),"a",{get:function(){return 7}}).a!==7})});var Uu=h(Qv=>{"use strict";var y1=at(),b1=qt(),_1=wu(),w1=Yi(),S1=Ur(),I1=Du(),E1=_t(),k1=Mu(),Yv=Object.getOwnPropertyDescriptor;Qv.f=y1?Yv:function(t,r){if(t=S1(t),r=I1(r),k1)try{return Yv(t,r)}catch(n){}if(E1(t,r))return w1(!b1(_1.f,t,r),t[r])}});var Zv=h((mK,Xv)=>{"use strict";var C1=_e(),A1=Je(),x1=/#|\.prototype\./,Zi=function(e,t){var r=T1[P1(e)];return r===O1?!0:r===R1?!1:A1(t)?C1(t):!!t},P1=Zi.normalize=function(e){return String(e).replace(x1,".").toLowerCase()},T1=Zi.data={},R1=Zi.NATIVE="N",O1=Zi.POLYFILL="P";Xv.exports=Zi});var eo=h((hK,ty)=>{"use strict";var ey=Ki(),N1=ln(),D1=Gn(),L1=ey(ey.bind);ty.exports=function(e,t){return N1(e),t===void 0?e:D1?L1(e,t):function(){return e.apply(t,arguments)}}});var Fu=h((gK,ry)=>{"use strict";var q1=at(),M1=_e();ry.exports=q1&&M1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((vK,ny)=>{"use strict";var U1=De(),F1=String,j1=TypeError;ny.exports=function(e){if(U1(e))return e;throw new j1(F1(e)+" is not an object")}});var hr=h(oy=>{"use strict";var G1=at(),B1=Mu(),J1=Fu(),es=mr(),iy=Du(),H1=TypeError,ju=Object.defineProperty,$1=Object.getOwnPropertyDescriptor,Gu="enumerable",Bu="configurable",Ju="writable";oy.f=G1?J1?function(t,r,n){if(es(t),r=iy(r),es(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ju in n&&!n[Ju]){var i=$1(t,r);i&&i[Ju]&&(t[r]=n.value,n={configurable:Bu in n?n[Bu]:i[Bu],enumerable:Gu in n?n[Gu]:i[Gu],writable:!1})}return ju(t,r,n)}:ju:function(t,r,n){if(es(t),r=iy(r),es(n),B1)try{return ju(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new H1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var un=h((bK,ay)=>{"use strict";var V1=at(),W1=hr(),z1=Yi();ay.exports=V1?function(e,t,r){return W1.f(e,t,z1(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((_K,cy)=>{"use strict";var to=we(),K1=bu(),Y1=Ki(),Q1=Je(),X1=Uu().f,Z1=Zv(),Vn=Vt(),eN=eo(),Wn=un(),sy=_t();Xi();var tN=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 K1(e,this,arguments)};return t.prototype=e.prototype,t};cy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?to:i?to[r]:to[r]&&to[r].prototype,s=n?Vn:Vn[r]||Wn(Vn,r,{})[r],c=s.prototype,l,d,u,p,f,m,g,b,v;for(p in t)l=Z1(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&sy(a,p),m=s[p],d&&(e.dontCallGetSet?(v=X1(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=eN(f,to):e.wrap&&d?b=tN(f):o&&Q1(f)?b=Y1(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Wn(b,"sham",!0),Wn(s,p,b),o&&(u=r+"Prototype",sy(Vn,u)||Wn(Vn,u,{}),Wn(Vn[u],p,f),e.real&&c&&(l||!c[p])&&Wn(c,p,f)))}});var uy=h((wK,ly)=>{"use strict";var rN=Math.ceil,nN=Math.floor;ly.exports=Math.trunc||function(t){var r=+t;return(r>0?nN:rN)(r)}});var ro=h((SK,dy)=>{"use strict";var iN=uy();dy.exports=function(e){var t=+e;return t!==t||t===0?0:iN(t)}});var Hu=h((IK,py)=>{"use strict";var oN=ro(),aN=Math.min;py.exports=function(e){var t=oN(e);return t>0?aN(t,9007199254740991):0}});var zn=h((EK,fy)=>{"use strict";var sN=Hu();fy.exports=function(e){return sN(e.length)}});var no=h((kK,my)=>{"use strict";var cN=fr();my.exports=Array.isArray||function(t){return cN(t)==="Array"}});var ts=h((CK,gy)=>{"use strict";var lN=Xe(),uN=lN("toStringTag"),hy={};hy[uN]="z";gy.exports=String(hy)==="[object z]"});var Kn=h((AK,vy)=>{"use strict";var dN=ts(),pN=Je(),rs=fr(),fN=Xe(),mN=fN("toStringTag"),hN=Object,gN=rs(function(){return arguments}())==="Arguments",vN=function(e,t){try{return e[t]}catch(r){}};vy.exports=dN?rs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=vN(t=hN(e),mN))=="string"?r:gN?rs(t):(n=rs(t))==="Object"&&pN(t.callee)?"Arguments":n}});var by=h((xK,yy)=>{"use strict";var yN=Ae(),bN=Je(),$u=Xi(),_N=yN(Function.toString);bN($u.inspectSource)||($u.inspectSource=function(e){return _N(e)});yy.exports=$u.inspectSource});var Wu=h((PK,Ey)=>{"use strict";var wN=Ae(),SN=_e(),_y=Je(),IN=Kn(),EN=Bn(),kN=by(),wy=function(){},Sy=EN("Reflect","construct"),Vu=/^\s*(?:class|function)\b/,CN=wN(Vu.exec),AN=!Vu.test(wy),io=function(t){if(!_y(t))return!1;try{return Sy(wy,[],t),!0}catch(r){return!1}},Iy=function(t){if(!_y(t))return!1;switch(IN(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return AN||!!CN(Vu,kN(t))}catch(r){return!0}};Iy.sham=!0;Ey.exports=!Sy||SN(function(){var e;return io(io.call)||!io(Object)||!io(function(){e=!0})||e})?Iy:io});var xy=h((TK,Ay)=>{"use strict";var ky=no(),xN=Wu(),PN=De(),TN=Xe(),RN=TN("species"),Cy=Array;Ay.exports=function(e){var t;return ky(e)&&(t=e.constructor,xN(t)&&(t===Cy||ky(t.prototype))?t=void 0:PN(t)&&(t=t[RN],t===null&&(t=void 0))),t===void 0?Cy:t}});var zu=h((RK,Py)=>{"use strict";var ON=xy();Py.exports=function(e,t){return new(ON(e))(t===0?0:t)}});var jr=h((OK,Ry)=>{"use strict";var NN=eo(),DN=Ae(),LN=za(),qN=Hn(),MN=zn(),UN=zu(),Ty=DN([].push),Fr=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=qN(c),f=LN(p),m=MN(f),g=NN(l,d),b=0,v=u||UN,w=t?v(c,m):r||a?v(c,0):void 0,S,x;m>b;b++)if((s||b in f)&&(S=f[b],x=g(S,b,p),e))if(t)w[b]=x;else if(x)switch(e){case 3:return!0;case 5:return S;case 6:return b;case 2:Ty(w,S)}else switch(e){case 4:return!1;case 7:Ty(w,S)}return o?-1:n||i?i:w}};Ry.exports={forEach:Fr(0),map:Fr(1),filter:Fr(2),some:Fr(3),every:Fr(4),find:Fr(5),findIndex:Fr(6),filterReject:Fr(7)}});var oo=h((NK,Oy)=>{"use strict";var FN=_e(),jN=Xe(),GN=Qa(),BN=jN("species");Oy.exports=function(e){return GN>=51||!FN(function(){var t=[],r=t.constructor={};return r[BN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ny=h(()=>{"use strict";var JN=ae(),HN=jr().filter,$N=oo(),VN=$N("filter");JN({target:"Array",proto:!0,forced:!VN},{filter:function(t){return HN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Pt=h((qK,Dy)=>{"use strict";var WN=we(),zN=Vt();Dy.exports=function(e,t){var r=zN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=WN[e],o=i&&i.prototype;return o&&o[t]}});var qy=h((MK,Ly)=>{"use strict";Ny();var KN=Pt();Ly.exports=KN("Array","filter")});var Uy=h((UK,My)=>{"use strict";var YN=ot(),QN=qy(),Ku=Array.prototype;My.exports=function(e){var t=e.filter;return e===Ku||YN(Ku,e)&&t===Ku.filter?QN:t}});var jy=h((FK,Fy)=>{"use strict";var XN=Uy();Fy.exports=XN});var By=h((jK,Gy)=>{Gy.exports=jy()});var ao=h((GK,Jy)=>{"use strict";var ZN=_e();Jy.exports=function(e,t){var r=[][e];return!!r&&ZN(function(){r.call(null,t||function(){return 1},1)})}});var Hy=h(()=>{"use strict";var eD=ae(),tD=jr().every,rD=ao(),nD=rD("every");eD({target:"Array",proto:!0,forced:!nD},{every:function(t){return tD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Vy=h((HK,$y)=>{"use strict";Hy();var iD=Pt();$y.exports=iD("Array","every")});var zy=h(($K,Wy)=>{"use strict";var oD=ot(),aD=Vy(),Yu=Array.prototype;Wy.exports=function(e){var t=e.every;return e===Yu||oD(Yu,e)&&t===Yu.every?aD:t}});var Yy=h((VK,Ky)=>{"use strict";var sD=zy();Ky.exports=sD});var Xy=h((WK,Qy)=>{Qy.exports=Yy()});var eb=h((zK,Zy)=>{"use strict";var cD=jr().forEach,lD=ao(),uD=lD("forEach");Zy.exports=uD?[].forEach:function(t){return cD(this,t,arguments.length>1?arguments[1]:void 0)}});var rb=h(()=>{"use strict";var dD=ae(),tb=eb();dD({target:"Array",proto:!0,forced:[].forEach!==tb},{forEach:tb})});var ib=h((QK,nb)=>{"use strict";rb();var pD=Pt();nb.exports=pD("Array","forEach")});var ab=h((XK,ob)=>{"use strict";var fD=ib();ob.exports=fD});var sb=h(()=>{});var lb=h((t8,cb)=>{"use strict";var mD=Kn(),hD=_t(),gD=ot(),vD=ab();sb();var Qu=Array.prototype,yD={DOMTokenList:!0,NodeList:!0};cb.exports=function(e){var t=e.forEach;return e===Qu||gD(Qu,e)&&t===Qu.forEach||hD(yD,mD(e))?vD:t}});var db=h((r8,ub)=>{ub.exports=lb()});var fb=h((n8,pb)=>{"use strict";var bD=TypeError,_D=9007199254740991;pb.exports=function(e){if(e>_D)throw bD("Maximum allowed index exceeded");return e}});var Xu=h((i8,mb)=>{"use strict";var wD=at(),SD=hr(),ID=Yi();mb.exports=function(e,t,r){wD?SD.f(e,t,ID(0,r)):e[t]=r}});var yb=h(()=>{"use strict";var ED=ae(),kD=_e(),CD=no(),AD=De(),xD=Hn(),PD=zn(),hb=fb(),gb=Xu(),TD=zu(),RD=oo(),OD=Xe(),ND=Qa(),vb=OD("isConcatSpreadable"),DD=ND>=51||!kD(function(){var e=[];return e[vb]=!1,e.concat()[0]!==e}),LD=function(e){if(!AD(e))return!1;var t=e[vb];return t!==void 0?!!t:CD(e)},qD=!DD||!RD("concat");ED({target:"Array",proto:!0,arity:1,forced:qD},{concat:function(t){var r=xD(this),n=TD(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],LD(l))for(c=PD(l),hb(i+c),a=0;a<c;a++,i++)a in l&&gb(n,i,l[a]);else hb(i+1),gb(n,i++,l);return n.length=i,n}})});var _b=h((s8,bb)=>{"use strict";yb();var MD=Pt();bb.exports=MD("Array","concat")});var Sb=h((c8,wb)=>{"use strict";var UD=ot(),FD=_b(),Zu=Array.prototype;wb.exports=function(e){var t=e.concat;return e===Zu||UD(Zu,e)&&t===Zu.concat?FD:t}});var Eb=h((l8,Ib)=>{"use strict";var jD=Sb();Ib.exports=jD});var Cb=h((u8,kb)=>{kb.exports=Eb()});var Ab=h(()=>{"use strict";var GD=ae(),BD=jr().some,JD=ao(),HD=JD("some");GD({target:"Array",proto:!0,forced:!HD},{some:function(t){return BD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Pb=h((f8,xb)=>{"use strict";Ab();var $D=Pt();xb.exports=$D("Array","some")});var Rb=h((m8,Tb)=>{"use strict";var VD=ot(),WD=Pb(),ed=Array.prototype;Tb.exports=function(e){var t=e.some;return e===ed||VD(ed,e)&&t===ed.some?WD:t}});var Nb=h((h8,Ob)=>{"use strict";var zD=Rb();Ob.exports=zD});var Lb=h((g8,Db)=>{Db.exports=Nb()});var Mb=h((v8,qb)=>{"use strict";var so=we(),KD=Ka(),YD=fr(),ns=function(e){return KD.slice(0,e.length)===e};qb.exports=function(){return ns("Bun/")?"BUN":ns("Cloudflare-Workers")?"CLOUDFLARE":ns("Deno/")?"DENO":ns("Node.js/")?"NODE":so.Bun&&typeof Bun.version=="string"?"BUN":so.Deno&&typeof Deno.version=="object"?"DENO":YD(so.process)==="process"?"NODE":so.window&&so.document?"BROWSER":"REST"}()});var co=h((y8,Ub)=>{"use strict";var QD=Ae();Ub.exports=QD([].slice)});var jb=h((b8,Fb)=>{"use strict";var XD=TypeError;Fb.exports=function(e,t){if(e<t)throw new XD("Not enough arguments");return e}});var td=h((_8,Bb)=>{"use strict";var Gb=we(),ZD=bu(),eL=Je(),tL=Mb(),rL=Ka(),nL=co(),iL=jb(),oL=Gb.Function,aL=/MSIE .\./.test(rL)||tL==="BUN"&&function(){var e=Gb.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Bb.exports=function(e,t){var r=t?2:1;return aL?function(n,i){var o=iL(arguments.length,1)>r,a=eL(n)?n:oL(n),s=o?nL(arguments,r):[],c=o?function(){ZD(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var $b=h(()=>{"use strict";var sL=ae(),Hb=we(),cL=td(),Jb=cL(Hb.setInterval,!0);sL({global:!0,bind:!0,forced:Hb.setInterval!==Jb},{setInterval:Jb})});var zb=h(()=>{"use strict";var lL=ae(),Wb=we(),uL=td(),Vb=uL(Wb.setTimeout,!0);lL({global:!0,bind:!0,forced:Wb.setTimeout!==Vb},{setTimeout:Vb})});var Kb=h(()=>{"use strict";$b();zb()});var Qb=h((A8,Yb)=>{"use strict";Kb();var dL=Vt();Yb.exports=dL.setTimeout});var Zb=h((x8,Xb)=>{Xb.exports=Qb()});function uo(e,t){Ee.__h&&Ee.__h(de,e,lo||t),lo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return lo=1,l_(u_,e)}function l_(e,t,r){var n=uo(dn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):u_(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 pn(e,t){var r=uo(dn++,3);!Ee.__s&&id(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function Yn(e,t){var r=uo(dn++,4);!Ee.__s&&id(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function Qn(e){return lo=5,po(function(){return{current:e}},[])}function po(e,t){var r=uo(dn++,7);return id(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Gr(e,t){return lo=8,po(function(){return e},t)}function Xn(e){var t=de.context[e.__c],r=uo(dn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function pL(){for(var e;e=c_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(is),e.__H.__h.forEach(nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}function fL(e){var t,r=function(){clearTimeout(n),s_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);s_&&(t=requestAnimationFrame(r))}function is(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function nd(e){var t=de;e.__c=e.__(),de=t}function id(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function u_(e,t){return typeof t=="function"?t(e):t}var dn,de,rd,e_,lo,c_,Ee,t_,r_,n_,i_,o_,a_,s_,od=P(()=>{jn();lo=0,c_=[],Ee=D,t_=Ee.__b,r_=Ee.__r,n_=Ee.diffed,i_=Ee.__c,o_=Ee.unmount,a_=Ee.__;Ee.__b=function(e){de=null,t_&&t_(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),a_&&a_(e,t)},Ee.__r=function(e){r_&&r_(e),dn=0;var t=(de=e.__c).__H;t&&(rd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(is),t.__h.forEach(nd),t.__h=[],dn=0)),rd=de},Ee.diffed=function(e){n_&&n_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(c_.push(t)!==1&&e_===Ee.requestAnimationFrame||((e_=Ee.requestAnimationFrame)||fL)(pL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),rd=de=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(is),r.__h=r.__h.filter(function(n){return!n.__||nd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(n,r.__v)}}),i_&&i_(e,t)},Ee.unmount=function(e){o_&&o_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{is(n)}catch(i){t=i}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};s_=typeof requestAnimationFrame=="function"});function __(e,t){for(var r in t)e[r]=t[r];return e}function sd(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 d_(e,t){this.props=e,this.context=t}function ld(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:sd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Qe(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function ud(e){function t(r){var n=__({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=mL,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 S_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return S_(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 ad(){this.__u=0,this.o=null,this.__b=null}function I_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function os(){this.i=null,this.l=null}function as(e,t,r){return t.__k==null&&(t.textContent=""),Mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function SL(){}function IL(){return this.cancelBubble}function EL(){return this.defaultPrevented}var cd,p_,mL,hL,f_,m_,gL,vL,yL,bL,_L,wL,h_,E_,kL,g_,v_,y_,ss=P(()=>{jn();jn();od();od();cd=Yn;(d_.prototype=new bt).isPureReactComponent=!0,d_.prototype.shouldComponentUpdate=function(e,t){return sd(this.props,e)||sd(this.state,t)};p_=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),p_&&p_(e)};mL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;hL=D.__e;D.__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)}hL(e,t,r,n)};f_=D.unmount;D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),f_&&f_(e)},(ad.prototype=new bt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=I_(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]=S_(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)},ad.prototype.componentWillUnmount=function(){this.o=[]},ad.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&&Qe(Be,null,e.fallback);return i&&(i.__u&=-33),[Qe(Be,null,t.__a?null:e.children),i]};m_=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]}};(os.prototype=new bt).__a=function(e){var t=this,r=I_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),m_(t,e,n)):i()};r?r(o):o()}},os.prototype.render=function(e){this.i=null,this.l=new Map;var t=Wi(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},os.prototype.componentDidUpdate=os.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){m_(e,r,t)})};gL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,vL=/^(?: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]/,yL=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bL=/[A-Z0-9]/g,_L=typeof document!="undefined",wL=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(bt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});h_=D.event;D.event=function(e){return h_&&(e=h_(e)),e.persist=SL,e.isPropagationStopped=IL,e.isDefaultPrevented=EL,e.nativeEvent=e};kL={enumerable:!1,configurable:!0,get:function(){return this.class}},g_=D.vnode;D.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||_L&&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"||wL(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":yL.test(a)&&(a=c):c=a="oninput":o&&vL.test(a)?a=a.replace(bL,"-$&").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=Wi(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Wi(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",kL)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=gL,g_&&g_(e)};v_=D.__r;D.__r=function(e){v_&&v_(e),E_=e.__c};y_=D.diffed;D.diffed=function(e){y_&&y_(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),E_=null}});var pd=h(()=>{"use strict";var AL=ae(),dd=we();AL({global:!0,forced:dd.globalThis!==dd},{globalThis:dd})});var k_=h(()=>{"use strict";pd()});var A_=h((H8,C_)=>{"use strict";pd();C_.exports=we()});var P_=h(($8,x_)=>{"use strict";var xL=A_();x_.exports=xL});var R_=h((V8,T_)=>{"use strict";var PL=P_();T_.exports=PL});var N_=h((W8,O_)=>{"use strict";k_();var TL=R_();O_.exports=TL});var L_=h((z8,D_)=>{"use strict";D_.exports=N_()});var M_=h((K8,q_)=>{q_.exports=L_()});var U_=h(()=>{"use strict";var RL=ae(),OL=no();RL({target:"Array",stat:!0},{isArray:OL})});var j_=h((X8,F_)=>{"use strict";U_();var NL=Vt();F_.exports=NL.Array.isArray});var B_=h((Z8,G_)=>{"use strict";var DL=j_();G_.exports=DL});var H_=h((e7,J_)=>{J_.exports=B_()});var V_=h((t7,$_)=>{"use strict";$_.exports=function(){}});var fn=h((r7,W_)=>{"use strict";W_.exports={}});var fd=h((n7,K_)=>{"use strict";var LL=we(),qL=Je(),z_=LL.WeakMap;K_.exports=qL(z_)&&/native code/.test(String(z_))});var cs=h((i7,Q_)=>{"use strict";var ML=Ou(),UL=Za(),Y_=ML("keys");Q_.exports=function(e){return Y_[e]||(Y_[e]=UL(e))}});var fo=h((o7,X_)=>{"use strict";X_.exports={}});var hn=h((a7,tw)=>{"use strict";var FL=fd(),ew=we(),jL=De(),GL=un(),md=_t(),hd=Xi(),BL=cs(),JL=fo(),Z_="Object already initialized",gd=ew.TypeError,HL=ew.WeakMap,ls,mo,us,$L=function(e){return us(e)?mo(e):ls(e,{})},VL=function(e){return function(t){var r;if(!jL(t)||(r=mo(t)).type!==e)throw new gd("Incompatible receiver, "+e+" required");return r}};FL||hd.state?(Ut=hd.state||(hd.state=new HL),Ut.get=Ut.get,Ut.has=Ut.has,Ut.set=Ut.set,ls=function(e,t){if(Ut.has(e))throw new gd(Z_);return t.facade=e,Ut.set(e,t),t},mo=function(e){return Ut.get(e)||{}},us=function(e){return Ut.has(e)}):(mn=BL("state"),JL[mn]=!0,ls=function(e,t){if(md(e,mn))throw new gd(Z_);return t.facade=e,GL(e,mn,t),t},mo=function(e){return md(e,mn)?e[mn]:{}},us=function(e){return md(e,mn)});var Ut,mn;tw.exports={set:ls,get:mo,has:us,enforce:$L,getterFor:VL}});var bd=h((s7,nw)=>{"use strict";var vd=at(),WL=_t(),rw=Function.prototype,zL=vd&&Object.getOwnPropertyDescriptor,yd=WL(rw,"name"),KL=yd&&(function(){}).name==="something",YL=yd&&(!vd||vd&&zL(rw,"name").configurable);nw.exports={EXISTS:yd,PROPER:KL,CONFIGURABLE:YL}});var _d=h((c7,iw)=>{"use strict";var QL=ro(),XL=Math.max,ZL=Math.min;iw.exports=function(e,t){var r=QL(e);return r<0?XL(r+t,0):ZL(r,t)}});var wd=h((l7,aw)=>{"use strict";var eq=Ur(),tq=_d(),rq=zn(),ow=function(e){return function(t,r,n){var i=eq(t),o=rq(i);if(o===0)return!e&&-1;var a=tq(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}};aw.exports={includes:ow(!0),indexOf:ow(!1)}});var Id=h((u7,cw)=>{"use strict";var nq=Ae(),Sd=_t(),iq=Ur(),oq=wd().indexOf,aq=fo(),sw=nq([].push);cw.exports=function(e,t){var r=iq(e),n=0,i=[],o;for(o in r)!Sd(aq,o)&&Sd(r,o)&&sw(i,o);for(;t.length>n;)Sd(r,o=t[n++])&&(~oq(i,o)||sw(i,o));return i}});var ds=h((d7,lw)=>{"use strict";lw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ed=h((p7,uw)=>{"use strict";var sq=Id(),cq=ds();uw.exports=Object.keys||function(t){return sq(t,cq)}});var pw=h(dw=>{"use strict";var lq=at(),uq=Fu(),dq=hr(),pq=mr(),fq=Ur(),mq=Ed();dw.f=lq&&!uq?Object.defineProperties:function(t,r){pq(t);for(var n=fq(r),i=mq(r),o=i.length,a=0,s;o>a;)dq.f(t,s=i[a++],n[s]);return t}});var mw=h((m7,fw)=>{"use strict";var hq=Bn();fw.exports=hq("document","documentElement")});var ho=h((h7,ww)=>{"use strict";var gq=mr(),vq=pw(),hw=ds(),yq=fo(),bq=mw(),_q=qu(),wq=cs(),gw=">",vw="<",Cd="prototype",Ad="script",bw=wq("IE_PROTO"),kd=function(){},_w=function(e){return vw+Ad+gw+e+vw+"/"+Ad+gw},yw=function(e){e.write(_w("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sq=function(){var e=_q("iframe"),t="java"+Ad+":",r;return e.style.display="none",bq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(_w("document.F=Object")),r.close(),r.F},ps,fs=function(){try{ps=new ActiveXObject("htmlfile")}catch(t){}fs=typeof document!="undefined"?document.domain&&ps?yw(ps):Sq():yw(ps);for(var e=hw.length;e--;)delete fs[Cd][hw[e]];return fs()};yq[bw]=!0;ww.exports=Object.create||function(t,r){var n;return t!==null?(kd[Cd]=gq(t),n=new kd,kd[Cd]=null,n[bw]=t):n=fs(),r===void 0?n:vq.f(n,r)}});var Iw=h((g7,Sw)=>{"use strict";var Iq=_e();Sw.exports=!Iq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Pd=h((v7,kw)=>{"use strict";var Eq=_t(),kq=Je(),Cq=Hn(),Aq=cs(),xq=Iw(),Ew=Aq("IE_PROTO"),xd=Object,Pq=xd.prototype;kw.exports=xq?xd.getPrototypeOf:function(e){var t=Cq(e);if(Eq(t,Ew))return t[Ew];var r=t.constructor;return kq(r)&&t instanceof r?r.prototype:t instanceof xd?Pq:null}});var ms=h((y7,Cw)=>{"use strict";var Tq=un();Cw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Tq(e,t,r),e}});var Nd=h((b7,Pw)=>{"use strict";var Rq=_e(),Oq=Je(),Nq=De(),Dq=ho(),Aw=Pd(),Lq=ms(),qq=Xe(),Mq=Jn(),Od=qq("iterator"),xw=!1,vr,Td,Rd;[].keys&&(Rd=[].keys(),"next"in Rd?(Td=Aw(Aw(Rd)),Td!==Object.prototype&&(vr=Td)):xw=!0);var Uq=!Nq(vr)||Rq(function(){var e={};return vr[Od].call(e)!==e});Uq?vr={}:Mq&&(vr=Dq(vr));Oq(vr[Od])||Lq(vr,Od,function(){return this});Pw.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:xw}});var Rw=h((_7,Tw)=>{"use strict";var Fq=ts(),jq=Kn();Tw.exports=Fq?{}.toString:function(){return"[object "+jq(this)+"]"}});var go=h((w7,Nw)=>{"use strict";var Gq=ts(),Bq=hr().f,Jq=un(),Hq=_t(),$q=Rw(),Vq=Xe(),Ow=Vq("toStringTag");Nw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(Hq(i,Ow)||Bq(i,Ow,{configurable:!0,value:t}),n&&!Gq&&Jq(i,"toString",$q))}});var Lw=h((S7,Dw)=>{"use strict";var Wq=Nd().IteratorPrototype,zq=ho(),Kq=Yi(),Yq=go(),Qq=fn(),Xq=function(){return this};Dw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=zq(Wq,{next:Kq(+!n,r)}),Yq(e,i,!1,!0),Qq[i]=Xq,e}});var Mw=h((I7,qw)=>{"use strict";var Zq=Ae(),eM=ln();qw.exports=function(e,t,r){try{return Zq(eM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Fw=h((E7,Uw)=>{"use strict";var tM=De();Uw.exports=function(e){return tM(e)||e===null}});var Gw=h((k7,jw)=>{"use strict";var rM=Fw(),nM=String,iM=TypeError;jw.exports=function(e){if(rM(e))return e;throw new iM("Can't set "+nM(e)+" as a prototype")}});var Jw=h((C7,Bw)=>{"use strict";var oM=Mw(),aM=De(),sM=cn(),cM=Gw();Bw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=oM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return sM(i),cM(o),aM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var vs=h((A7,Zw)=>{"use strict";var lM=ae(),uM=qt(),hs=Jn(),Qw=bd(),dM=Je(),pM=Lw(),Hw=Pd(),$w=Jw(),fM=go(),mM=un(),Dd=ms(),hM=Xe(),Vw=fn(),Xw=Nd(),gM=Qw.PROPER,vM=Qw.CONFIGURABLE,Ww=Xw.IteratorPrototype,gs=Xw.BUGGY_SAFARI_ITERATORS,vo=hM("iterator"),zw="keys",yo="values",Kw="entries",Yw=function(){return this};Zw.exports=function(e,t,r,n,i,o,a){pM(r,t,n);var s=function(v){if(v===i&&p)return p;if(!gs&&v&&v in d)return d[v];switch(v){case zw:return function(){return new r(this,v)};case yo:return function(){return new r(this,v)};case Kw:return function(){return new r(this,v)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[vo]||d["@@iterator"]||i&&d[i],p=!gs&&u||s(i),f=t==="Array"&&d.entries||u,m,g,b;if(f&&(m=Hw(f.call(new e)),m!==Object.prototype&&m.next&&(!hs&&Hw(m)!==Ww&&($w?$w(m,Ww):dM(m[vo])||Dd(m,vo,Yw)),fM(m,c,!0,!0),hs&&(Vw[c]=Yw))),gM&&i===yo&&u&&u.name!==yo&&(!hs&&vM?mM(d,"name",yo):(l=!0,p=function(){return uM(u,this)})),i)if(g={values:s(yo),keys:o?p:s(zw),entries:s(Kw)},a)for(b in g)(gs||l||!(b in d))&&Dd(d,b,g[b]);else lM({target:t,proto:!0,forced:gs||l},g);return(!hs||a)&&d[vo]!==p&&Dd(d,vo,p,{name:i}),Vw[t]=p,g}});var ys=h((x7,eS)=>{"use strict";eS.exports=function(e,t){return{value:e,done:t}}});var _s=h((P7,oS)=>{"use strict";var yM=Ur(),Ld=V_(),tS=fn(),nS=hn(),bM=hr().f,_M=vs(),bs=ys(),wM=Jn(),SM=at(),iS="Array Iterator",IM=nS.set,EM=nS.getterFor(iS);oS.exports=_M(Array,"Array",function(e,t){IM(this,{type:iS,target:yM(e),index:0,kind:t})},function(){var e=EM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,bs(void 0,!0);switch(e.kind){case"keys":return bs(r,!1);case"values":return bs(t[r],!1)}return bs([r,t[r]],!1)},"values");var rS=tS.Arguments=tS.Array;Ld("keys");Ld("values");Ld("entries");if(!wM&&SM&&rS.name!=="values")try{bM(rS,"name",{value:"values"})}catch(e){}});var qd=h(()=>{});var Md=h((O7,aS)=>{"use strict";var kM=_e();aS.exports=!kM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ws=h((N7,sS)=>{"use strict";var CM=ms();sS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:CM(e,n,t[n],r);return e}});var Ud=h(cS=>{"use strict";var AM=Id(),xM=ds(),PM=xM.concat("length","prototype");cS.f=Object.getOwnPropertyNames||function(t){return AM(t,PM)}});var pS=h((L7,dS)=>{"use strict";var TM=fr(),RM=Ur(),lS=Ud().f,OM=co(),uS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NM=function(e){try{return lS(e)}catch(t){return OM(uS)}};dS.exports.f=function(t){return uS&&TM(t)==="Window"?NM(t):lS(RM(t))}});var mS=h((q7,fS)=>{"use strict";var DM=_e();fS.exports=DM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var vS=h((M7,gS)=>{"use strict";var LM=_e(),qM=De(),MM=fr(),hS=mS(),Ss=Object.isExtensible,UM=LM(function(){Ss(1)});gS.exports=UM||hS?function(t){return!qM(t)||hS&&MM(t)==="ArrayBuffer"?!1:Ss?Ss(t):!0}:Ss});var bo=h((U7,_S)=>{"use strict";var FM=ae(),jM=Ae(),GM=fo(),BM=De(),Fd=_t(),JM=hr().f,yS=Ud(),HM=pS(),jd=vS(),$M=Za(),VM=Md(),bS=!1,yr=$M("meta"),WM=0,Gd=function(e){JM(e,yr,{value:{objectID:"O"+WM++,weakData:{}}})},zM=function(e,t){if(!BM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Fd(e,yr)){if(!jd(e))return"F";if(!t)return"E";Gd(e)}return e[yr].objectID},KM=function(e,t){if(!Fd(e,yr)){if(!jd(e))return!0;if(!t)return!1;Gd(e)}return e[yr].weakData},YM=function(e){return VM&&bS&&jd(e)&&!Fd(e,yr)&&Gd(e),e},QM=function(){XM.enable=function(){},bS=!0;var e=yS.f,t=jM([].splice),r={};r[yr]=1,e(r).length&&(yS.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},FM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:HM.f}))},XM=_S.exports={enable:QM,fastKey:zM,getWeakData:KM,onFreeze:YM};GM[yr]=!0});var SS=h((F7,wS)=>{"use strict";var ZM=Xe(),eU=fn(),tU=ZM("iterator"),rU=Array.prototype;wS.exports=function(e){return e!==void 0&&(eU.Array===e||rU[tU]===e)}});var Bd=h((j7,ES)=>{"use strict";var nU=Kn(),IS=Xa(),iU=sn(),oU=fn(),aU=Xe(),sU=aU("iterator");ES.exports=function(e){if(!iU(e))return IS(e,sU)||IS(e,"@@iterator")||oU[nU(e)]}});var CS=h((G7,kS)=>{"use strict";var cU=qt(),lU=ln(),uU=mr(),dU=Qi(),pU=Bd(),fU=TypeError;kS.exports=function(e,t){var r=arguments.length<2?pU(e):t;if(lU(r))return uU(cU(r,e));throw new fU(dU(e)+" is not iterable")}});var Is=h((B7,xS)=>{"use strict";var mU=qt(),AS=mr(),hU=Xa();xS.exports=function(e,t,r){var n,i;AS(e);try{if(n=hU(e,"return"),!n){if(t==="throw")throw r;return r}n=mU(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return AS(n),r}});var ks=h((J7,OS)=>{"use strict";var gU=eo(),vU=qt(),yU=mr(),bU=Qi(),_U=SS(),wU=zn(),PS=ot(),SU=CS(),IU=Bd(),TS=Is(),EU=TypeError,Es=function(e,t){this.stopped=e,this.result=t},RS=Es.prototype;OS.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=gU(t,n),l,d,u,p,f,m,g,b=function(w){return l&&TS(l,"normal",w),new Es(!0,w)},v=function(w){return i?(yU(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=IU(e),!d)throw new EU(bU(e)+" is not iterable");if(_U(d)){for(u=0,p=wU(e);p>u;u++)if(f=v(e[u]),f&&PS(RS,f))return f;return new Es(!1)}l=SU(e,d)}for(m=o?e.next:l.next;!(g=vU(m,l)).done;){try{f=v(g.value)}catch(w){TS(l,"throw",w)}if(typeof f=="object"&&f&&PS(RS,f))return f}return new Es(!1)}});var Cs=h((H7,NS)=>{"use strict";var kU=ot(),CU=TypeError;NS.exports=function(e,t){if(kU(t,e))return e;throw new CU("Incorrect invocation")}});var Jd=h(($7,LS)=>{"use strict";var AU=ae(),xU=we(),PU=bo(),TU=_e(),RU=un(),OU=ks(),NU=Cs(),DU=Je(),LU=De(),qU=sn(),MU=go(),UU=hr().f,FU=jr().forEach,jU=at(),DS=hn(),GU=DS.set,BU=DS.getterFor;LS.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=xU[e],s=a&&a.prototype,c={},l;if(!jU||!DU(a)||!(i||s.forEach&&!TU(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),PU.enable();else{l=t(function(p,f){GU(NU(p,d),{type:e,collection:new a}),qU(f)||OU(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=BU(e);FU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&RU(d,p,function(m,g){var b=u(this).collection;if(!f&&i&&!LU(m))return p==="get"?void 0:!1;var v=b[p](m===0?0:m,g);return f?this:v})}),i||UU(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return MU(l,e,!1,!0),c[e]=l,AU({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var BS=h((V7,GS)=>{"use strict";var JU=Ae(),qS=ws(),As=bo().getWeakData,HU=Cs(),$U=mr(),VU=sn(),Hd=De(),WU=ks(),US=jr(),MS=_t(),FS=hn(),zU=FS.set,KU=FS.getterFor,YU=US.find,QU=US.findIndex,XU=JU([].splice),ZU=0,xs=function(e){return e.frozen||(e.frozen=new jS)},jS=function(){this.entries=[]},$d=function(e,t){return YU(e.entries,function(r){return r[0]===t})};jS.prototype={get:function(e){var t=$d(this,e);if(t)return t[1]},has:function(e){return!!$d(this,e)},set:function(e,t){var r=$d(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=QU(this.entries,function(r){return r[0]===e});return~t&&XU(this.entries,t,1),!!~t}};GS.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){HU(c,o),zU(c,{type:t,id:ZU++,frozen:null}),VU(l)||WU(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=KU(t),s=function(c,l,d){var u=a(c),p=As($U(l),!0);return p===!0?xs(u).set(l,d):p[u.id]=d,c};return qS(o,{delete:function(c){var l=a(this);if(!Hd(c))return!1;var d=As(c);return d===!0?xs(l).delete(c):d&&MS(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Hd(l))return!1;var u=As(l);return u===!0?xs(d).has(l):u&&MS(u,d.id)}}),qS(o,r?{get:function(l){var d=a(this);if(Hd(l)){var u=As(l);if(u===!0)return xs(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 YS=h(()=>{"use strict";var eF=Md(),JS=we(),Os=Ae(),HS=ws(),tF=bo(),rF=Jd(),$S=BS(),Ps=De(),Ts=hn().enforce,nF=_e(),iF=fd(),So=Object,oF=Array.isArray,Rs=So.isExtensible,VS=So.isFrozen,aF=So.isSealed,WS=So.freeze,sF=So.seal,cF=!JS.ActiveXObject&&"ActiveXObject"in JS,_o,zS=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},KS=rF("WeakMap",zS,$S),Zn=KS.prototype,Ns=Os(Zn.set),lF=function(){return eF&&nF(function(){var e=WS([]);return Ns(new KS,e,1),!VS(e)})};iF&&(cF?(_o=$S.getConstructor(zS,"WeakMap",!0),tF.enable(),Vd=Os(Zn.delete),wo=Os(Zn.has),Wd=Os(Zn.get),HS(Zn,{delete:function(e){if(Ps(e)&&!Rs(e)){var t=Ts(this);return t.frozen||(t.frozen=new _o),Vd(this,e)||t.frozen.delete(e)}return Vd(this,e)},has:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new _o),wo(this,t)||r.frozen.has(t)}return wo(this,t)},get:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new _o),wo(this,t)?Wd(this,t):r.frozen.get(t)}return Wd(this,t)},set:function(t,r){if(Ps(t)&&!Rs(t)){var n=Ts(this);n.frozen||(n.frozen=new _o),wo(this,t)?Ns(this,t,r):n.frozen.set(t,r)}else Ns(this,t,r);return this}})):lF()&&HS(Zn,{set:function(t,r){var n;return oF(t)&&(VS(t)?n=WS:aF(t)&&(n=sF)),Ns(this,t,r),n&&n(t),this}}));var Vd,wo,Wd});var QS=h(()=>{"use strict";YS()});var ZS=h((Q7,XS)=>{"use strict";_s();qd();QS();var uF=Vt();XS.exports=uF.WeakMap});var tI=h((X7,eI)=>{"use strict";eI.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 zd=h(()=>{"use strict";_s();var dF=tI(),pF=we(),fF=go(),rI=fn();for(Ds in dF)fF(pF[Ds],Ds),rI[Ds]=rI.Array;var Ds});var iI=h((tY,nI)=>{"use strict";var mF=ZS();zd();nI.exports=mF});var aI=h((rY,oI)=>{oI.exports=iI()});var cI=h(()=>{"use strict";var hF=ae(),gF=Ki(),vF=wd().indexOf,yF=ao(),Kd=gF([].indexOf),sI=!!Kd&&1/Kd([1],1,-0)<0,bF=sI||!yF("indexOf");hF({target:"Array",proto:!0,forced:bF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return sI?Kd(this,t,r)||0:vF(this,t,r)}})});var uI=h((oY,lI)=>{"use strict";cI();var _F=Pt();lI.exports=_F("Array","indexOf")});var pI=h((aY,dI)=>{"use strict";var wF=ot(),SF=uI(),Yd=Array.prototype;dI.exports=function(e){var t=e.indexOf;return e===Yd||wF(Yd,e)&&t===Yd.indexOf?SF:t}});var mI=h((sY,fI)=>{"use strict";var IF=pI();fI.exports=IF});var gI=h((cY,hI)=>{hI.exports=mI()});var vI=h(()=>{"use strict";var EF=ae(),kF=jr().map,CF=oo(),AF=CF("map");EF({target:"Array",proto:!0,forced:!AF},{map:function(t){return kF(this,t,arguments.length>1?arguments[1]:void 0)}})});var bI=h((dY,yI)=>{"use strict";vI();var xF=Pt();yI.exports=xF("Array","map")});var wI=h((pY,_I)=>{"use strict";var PF=ot(),TF=bI(),Qd=Array.prototype;_I.exports=function(e){var t=e.map;return e===Qd||PF(Qd,e)&&t===Qd.map?TF:t}});var II=h((fY,SI)=>{"use strict";var RF=wI();SI.exports=RF});var kI=h((mY,EI)=>{EI.exports=II()});var CI=h(()=>{"use strict";var OF=ae(),NF=at(),DF=ho();OF({target:"Object",stat:!0,sham:!NF},{create:DF})});var xI=h((vY,AI)=>{"use strict";CI();var LF=Vt(),qF=LF.Object;AI.exports=function(t,r){return qF.create(t,r)}});var TI=h((yY,PI)=>{"use strict";var MF=xI();PI.exports=MF});var OI=h((bY,RI)=>{RI.exports=TI()});var Xd=h((_Y,NI)=>{"use strict";var UF=hr();NI.exports=function(e,t,r){return UF.f(e,t,r)}});var qI=h((wY,LI)=>{"use strict";var FF=Bn(),jF=Xd(),GF=Xe(),BF=at(),DI=GF("species");LI.exports=function(e){var t=FF(e);BF&&t&&!t[DI]&&jF(t,DI,{configurable:!0,get:function(){return this}})}});var JI=h((SY,BI)=>{"use strict";var MI=ho(),JF=Xd(),UI=ws(),HF=eo(),$F=Cs(),VF=sn(),WF=ks(),zF=vs(),Ls=ys(),KF=qI(),Io=at(),FI=bo().fastKey,GI=hn(),jI=GI.set,Zd=GI.getterFor;BI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){$F(l,o),jI(l,{type:t,index:MI(null),first:null,last:null,size:0}),Io||(l.size=0),VF(d)||WF(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Zd(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,g;return f?f.value=u:(p.last=f={index:g=FI(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Io?p.size++:l.size++,g!=="F"&&(p.index[g]=f)),l},c=function(l,d){var u=a(l),p=FI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return UI(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=MI(null),Io?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),Io?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=HF(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)}}),UI(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)}}),Io&&JF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Zd(t),o=Zd(n);zF(e,t,function(a,s){jI(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,Ls(void 0,!0)):Ls(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),KF(t)}}});var HI=h(()=>{"use strict";var YF=Jd(),QF=JI();YF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},QF)});var $I=h(()=>{"use strict";HI()});var Br=h((AY,VI)=>{"use strict";var XF=Qi(),ZF=TypeError;VI.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 ZF(XF(e)+" is not a set")}});var zI=h((xY,WI)=>{"use strict";WI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Jr=h((PY,YI)=>{"use strict";var ej=Bn(),ep=zI(),KI=ej("Set"),tj=KI.prototype;YI.exports={Set:KI,add:ep("add",1),has:ep("has",1),remove:ep("delete",1),proto:tj}});var Hr=h((TY,QI)=>{"use strict";var rj=qt();QI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=rj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ei=h((RY,XI)=>{"use strict";var nj=Hr();XI.exports=function(e,t,r){return r?nj(e.keys(),t,!0):e.forEach(t)}});var qs=h((OY,e0)=>{"use strict";var ZI=Jr(),ij=ei(),oj=ZI.Set,aj=ZI.add;e0.exports=function(e){var t=new oj;return ij(e,function(r){aj(t,r)}),t}});var ti=h((NY,t0)=>{"use strict";t0.exports=function(e){return e.size}});var n0=h((DY,r0)=>{"use strict";r0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var $r=h((LY,l0)=>{"use strict";var i0=ln(),s0=mr(),o0=qt(),sj=ro(),cj=n0(),a0="Invalid size",lj=RangeError,uj=TypeError,dj=Math.max,c0=function(e,t){this.set=e,this.size=dj(t,0),this.has=i0(e.has),this.keys=i0(e.keys)};c0.prototype={getIterator:function(){return cj(s0(o0(this.keys,this.set)))},includes:function(e){return o0(this.has,this.set,e)}};l0.exports=function(e){s0(e);var t=+e.size;if(t!==t)throw new uj(a0);var r=sj(t);if(r<0)throw new lj(a0);return new c0(e,r)}});var f0=h((qY,p0)=>{"use strict";var pj=Br(),d0=Jr(),fj=qs(),mj=ti(),hj=$r(),gj=ei(),vj=Hr(),yj=d0.has,u0=d0.remove;p0.exports=function(t){var r=pj(this),n=hj(t),i=fj(r);return mj(r)<=n.size?gj(r,function(o){n.includes(o)&&u0(i,o)}):vj(n.getIterator(),function(o){yj(r,o)&&u0(i,o)}),i}});var Vr=h((MY,m0)=>{"use strict";m0.exports=function(){return!1}});var h0=h(()=>{"use strict";var bj=ae(),_j=f0(),wj=Vr(),Sj=!wj("difference",function(e){return e.size===0});bj({target:"Set",proto:!0,real:!0,forced:Sj},{difference:_j})});var y0=h((jY,v0)=>{"use strict";var Ij=Br(),tp=Jr(),Ej=ti(),kj=$r(),Cj=ei(),Aj=Hr(),xj=tp.Set,g0=tp.add,Pj=tp.has;v0.exports=function(t){var r=Ij(this),n=kj(t),i=new xj;return Ej(r)>n.size?Aj(n.getIterator(),function(o){Pj(r,o)&&g0(i,o)}):Cj(r,function(o){n.includes(o)&&g0(i,o)}),i}});var b0=h(()=>{"use strict";var Tj=ae(),Rj=_e(),Oj=y0(),Nj=Vr(),Dj=!Nj("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||Rj(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Tj({target:"Set",proto:!0,real:!0,forced:Dj},{intersection:Oj})});var w0=h((JY,_0)=>{"use strict";var Lj=Br(),qj=Jr().has,Mj=ti(),Uj=$r(),Fj=ei(),jj=Hr(),Gj=Is();_0.exports=function(t){var r=Lj(this),n=Uj(t);if(Mj(r)<=n.size)return Fj(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return jj(i,function(o){if(qj(r,o))return Gj(i,"normal",!1)})!==!1}});var S0=h(()=>{"use strict";var Bj=ae(),Jj=w0(),Hj=Vr(),$j=!Hj("isDisjointFrom",function(e){return!e});Bj({target:"Set",proto:!0,real:!0,forced:$j},{isDisjointFrom:Jj})});var E0=h((VY,I0)=>{"use strict";var Vj=Br(),Wj=ti(),zj=ei(),Kj=$r();I0.exports=function(t){var r=Vj(this),n=Kj(t);return Wj(r)>n.size?!1:zj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var k0=h(()=>{"use strict";var Yj=ae(),Qj=E0(),Xj=Vr(),Zj=!Xj("isSubsetOf",function(e){return e});Yj({target:"Set",proto:!0,real:!0,forced:Zj},{isSubsetOf:Qj})});var A0=h((KY,C0)=>{"use strict";var eG=Br(),tG=Jr().has,rG=ti(),nG=$r(),iG=Hr(),oG=Is();C0.exports=function(t){var r=eG(this),n=nG(t);if(rG(r)<n.size)return!1;var i=n.getIterator();return iG(i,function(o){if(!tG(r,o))return oG(i,"normal",!1)})!==!1}});var x0=h(()=>{"use strict";var aG=ae(),sG=A0(),cG=Vr(),lG=!cG("isSupersetOf",function(e){return!e});aG({target:"Set",proto:!0,real:!0,forced:lG},{isSupersetOf:sG})});var T0=h((XY,P0)=>{"use strict";var uG=Br(),rp=Jr(),dG=qs(),pG=$r(),fG=Hr(),mG=rp.add,hG=rp.has,gG=rp.remove;P0.exports=function(t){var r=uG(this),n=pG(t).getIterator(),i=dG(r);return fG(n,function(o){hG(r,o)?gG(i,o):mG(i,o)}),i}});var R0=h(()=>{"use strict";var vG=ae(),yG=T0(),bG=Vr();vG({target:"Set",proto:!0,real:!0,forced:!bG("symmetricDifference")},{symmetricDifference:yG})});var N0=h((tQ,O0)=>{"use strict";var _G=Br(),wG=Jr().add,SG=qs(),IG=$r(),EG=Hr();O0.exports=function(t){var r=_G(this),n=IG(t).getIterator(),i=SG(r);return EG(n,function(o){wG(i,o)}),i}});var D0=h(()=>{"use strict";var kG=ae(),CG=N0(),AG=Vr();kG({target:"Set",proto:!0,real:!0,forced:!AG("union")},{union:CG})});var Eo=h((iQ,L0)=>{"use strict";var xG=Kn(),PG=String;L0.exports=function(e){if(xG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return PG(e)}});var F0=h((oQ,U0)=>{"use strict";var np=Ae(),TG=ro(),RG=Eo(),OG=cn(),NG=np("".charAt),q0=np("".charCodeAt),DG=np("".slice),M0=function(e){return function(t,r){var n=RG(OG(t)),i=TG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=q0(n,i),a<55296||a>56319||i+1===o||(s=q0(n,i+1))<56320||s>57343?e?NG(n,i):a:e?DG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};U0.exports={codeAt:M0(!1),charAt:M0(!0)}});var J0=h(()=>{"use strict";var LG=F0().charAt,qG=Eo(),G0=hn(),MG=vs(),j0=ys(),B0="String Iterator",UG=G0.set,FG=G0.getterFor(B0);MG(String,"String",function(e){UG(this,{type:B0,string:qG(e),index:0})},function(){var t=FG(this),r=t.string,n=t.index,i;return n>=r.length?j0(void 0,!0):(i=LG(r,n),t.index+=i.length,j0(i,!1))})});var $0=h((cQ,H0)=>{"use strict";_s();qd();$I();h0();b0();S0();k0();x0();R0();D0();J0();var jG=Vt();H0.exports=jG.Set});var W0=h((lQ,V0)=>{"use strict";var GG=$0();zd();V0.exports=GG});var K0=h((uQ,z0)=>{z0.exports=W0()});var Q0=h(Y0=>{"use strict";Y0.f=Object.getOwnPropertySymbols});var tE=h((pQ,eE)=>{"use strict";var X0=at(),BG=Ae(),JG=qt(),HG=_e(),ip=Ed(),$G=Q0(),VG=wu(),WG=Hn(),zG=za(),ri=Object.assign,Z0=Object.defineProperty,KG=BG([].concat);eE.exports=!ri||HG(function(){if(X0&&ri({b:1},ri(Z0({},"a",{enumerable:!0,get:function(){Z0(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}),ri({},e)[r]!==7||ip(ri({},t)).join("")!==n})?function(t,r){for(var n=WG(t),i=arguments.length,o=1,a=$G.f,s=VG.f;i>o;)for(var c=zG(arguments[o++]),l=a?KG(ip(c),a(c)):ip(c),d=l.length,u=0,p;d>u;)p=l[u++],(!X0||JG(s,c,p))&&(n[p]=c[p]);return n}:ri});var nE=h(()=>{"use strict";var YG=ae(),rE=tE();YG({target:"Object",stat:!0,arity:2,forced:Object.assign!==rE},{assign:rE})});var oE=h((hQ,iE)=>{"use strict";nE();var QG=Vt();iE.exports=QG.Object.assign});var sE=h((gQ,aE)=>{"use strict";var XG=oE();aE.exports=XG});var lE=h((vQ,cE)=>{cE.exports=sE()});var op=h((yQ,uE)=>{"use strict";uE.exports=`
|
|
22
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var fE=h((bQ,pE)=>{"use strict";var ZG=Ae(),eB=cn(),tB=Eo(),sp=op(),dE=ZG("".replace),rB=RegExp("^["+sp+"]+"),nB=RegExp("(^|[^"+sp+"])["+sp+"]+$"),ap=function(e){return function(t){var r=tB(eB(t));return e&1&&(r=dE(r,rB,"")),e&2&&(r=dE(r,nB,"$1")),r}};pE.exports={start:ap(1),end:ap(2),trim:ap(3)}});var vE=h((_Q,gE)=>{"use strict";var iB=bd().PROPER,oB=_e(),mE=op(),hE="\u200B\x85\u180E";gE.exports=function(e){return oB(function(){return!!mE[e]()||hE[e]()!==hE||iB&&mE[e].name!==e})}});var yE=h(()=>{"use strict";var aB=ae(),sB=fE().trim,cB=vE();aB({target:"String",proto:!0,forced:cB("trim")},{trim:function(){return sB(this)}})});var _E=h((IQ,bE)=>{"use strict";yE();var lB=Pt();bE.exports=lB("String","trim")});var SE=h((EQ,wE)=>{"use strict";var uB=ot(),dB=_E(),cp=String.prototype;wE.exports=function(e){var t=e.trim;return typeof e=="string"||e===cp||uB(cp,e)&&t===cp.trim?dB:t}});var EE=h((kQ,IE)=>{"use strict";var pB=SE();IE.exports=pB});var CE=h((CQ,kE)=>{kE.exports=EE()});var PE=h(()=>{"use strict";var fB=ae(),AE=no(),mB=Wu(),hB=De(),xE=_d(),gB=zn(),vB=Ur(),yB=Xu(),bB=Xe(),_B=oo(),wB=co(),SB=_B("slice"),IB=bB("species"),lp=Array,EB=Math.max;fB({target:"Array",proto:!0,forced:!SB},{slice:function(t,r){var n=vB(this),i=gB(n),o=xE(t,i),a=xE(r===void 0?i:r,i),s,c,l;if(AE(n)&&(s=n.constructor,mB(s)&&(s===lp||AE(s.prototype))?s=void 0:hB(s)&&(s=s[IB],s===null&&(s=void 0)),s===lp||s===void 0))return wB(n,o,a);for(c=new(s===void 0?lp:s)(EB(a-o,0)),l=0;o<a;o++,l++)o in n&&yB(c,l,n[o]);return c.length=l,c}})});var RE=h((PQ,TE)=>{"use strict";PE();var kB=Pt();TE.exports=kB("Array","slice")});var NE=h((TQ,OE)=>{"use strict";var CB=ot(),AB=RE(),up=Array.prototype;OE.exports=function(e){var t=e.slice;return e===up||CB(up,e)&&t===up.slice?AB:t}});var LE=h((RQ,DE)=>{"use strict";var xB=NE();DE.exports=xB});var ME=h((OQ,qE)=>{qE.exports=LE()});var dp=P(()=>{});var FE=h((DQ,UE)=>{"use strict";var PB=De(),TB=fr(),RB=Xe(),OB=RB("match");UE.exports=function(e){var t;return PB(e)&&((t=e[OB])!==void 0?!!t:TB(e)==="RegExp")}});var GE=h((LQ,jE)=>{"use strict";var NB=FE(),DB=TypeError;jE.exports=function(e){if(NB(e))throw new DB("The method doesn't accept regular expressions");return e}});var JE=h((qQ,BE)=>{"use strict";var LB=Xe(),qB=LB("match");BE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[qB]=!1,"/./"[e](t)}catch(n){}}return!1}});var VE=h(()=>{"use strict";var MB=ae(),UB=Ki(),FB=Uu().f,jB=Hu(),HE=Eo(),GB=GE(),BB=cn(),JB=JE(),HB=Jn(),$B=UB("".slice),VB=Math.min,$E=JB("startsWith"),WB=!HB&&!$E&&!!function(){var e=FB(String.prototype,"startsWith");return e&&!e.writable}();MB({target:"String",proto:!0,forced:!WB&&!$E},{startsWith:function(t){var r=HE(BB(this));GB(t);var n=jB(VB(arguments.length>1?arguments[1]:void 0,r.length)),i=HE(t);return $B(r,n,n+i.length)===i}})});var zE=h((FQ,WE)=>{"use strict";VE();var zB=Pt();WE.exports=zB("String","startsWith")});var YE=h((jQ,KE)=>{"use strict";var KB=ot(),YB=zE(),pp=String.prototype;KE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===pp||KB(pp,e)&&t===pp.startsWith?YB:t}});var XE=h((GQ,QE)=>{"use strict";var QB=YE();QE.exports=QB});var ek=h((BQ,ZE)=>{ZE.exports=XE()});var ok=h((JQ,ik)=>{"use strict";var rk=Ae(),XB=ln(),ZB=De(),eJ=_t(),tk=co(),tJ=Gn(),nk=Function,rJ=rk([].concat),nJ=rk([].join),fp={},iJ=function(e,t,r){if(!eJ(fp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";fp[t]=nk("C,a","return new C("+nJ(n,",")+")")}return fp[t](e,r)};ik.exports=tJ?nk.bind:function(t){var r=XB(this),n=r.prototype,i=tk(arguments,1),o=function(){var s=rJ(i,tk(arguments));return this instanceof o?iJ(r,s.length,s):r.apply(t,s)};return ZB(n)&&(o.prototype=n),o}});var sk=h(()=>{"use strict";var oJ=ae(),ak=ok();oJ({target:"Function",proto:!0,forced:Function.bind!==ak},{bind:ak})});var lk=h((VQ,ck)=>{"use strict";sk();var aJ=Pt();ck.exports=aJ("Function","bind")});var dk=h((WQ,uk)=>{"use strict";var sJ=ot(),cJ=lk(),mp=Function.prototype;uk.exports=function(e){var t=e.bind;return e===mp||sJ(mp,e)&&t===mp.bind?cJ:t}});var fk=h((zQ,pk)=>{"use strict";var lJ=dk();pk.exports=lJ});var hk=h((KQ,mk)=>{mk.exports=fk()});function tc(e,t){xe.__h&&xe.__h(ge,e,Ro||t),Ro=0;var r=ge.__H||(ge.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Zt(e){return Ro=1,uJ(nC,e)}function uJ(e,t,r){var n=tc(ai++,2);if(n.t=e,!n.__c&&(n.__=[nC(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=ge,!ge.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Lp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Xk.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,Le.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};ge.__f=!0;var o=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.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)},ge.shouldComponentUpdate=i}return n.__N||n.__}function vn(e,t){var r=tc(ai++,3);!xe.__s&&rC(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function Ao(e){return Ro=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=tc(ai++,7);return rC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tt(e,t){return Ro=8,_r(function(){return e},t)}function dJ(e){var t=ge.context[e.__c],r=tc(ai++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ge)),t.props.value):e.__}function pJ(){for(var e;e=tC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Le.default)(t=e.__H.__h).call(t,Gs),(0,Le.default)(r=e.__H.__h).call(r,Ip),e.__H.__h=[]}catch(n){e.__H.__h=[],xe.__e(n,e.__v)}}function fJ(e){var t,r=function(){clearTimeout(n),Ik&&cancelAnimationFrame(t),(0,Xt.default)(e)},n=(0,Xt.default)(r,100);Ik&&(t=requestAnimationFrame(r))}function Gs(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ip(e){var t=ge;e.__c=e.__(),ge=t}function rC(e,t){return!e||e.length!==t.length||(0,Ks.default)(t).call(t,function(r,n){return r!==e[n]})}function nC(e,t){return typeof t=="function"?t(e):t}function mJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ep(){throw new Error("setTimeout has not been defined")}function kp(){throw new Error("clearTimeout has not been defined")}function oC(e){if(Wt===Xt.default)return(0,Xt.default)(e,0);if((Wt===Ep||!Wt)&&Xt.default)return Wt=Xt.default,(0,Xt.default)(e,0);try{return Wt(e,0)}catch(t){try{return Wt.call(null,e,0)}catch(r){return Wt.call(this,e,0)}}}function hJ(e){if(zt===clearTimeout)return clearTimeout(e);if((zt===kp||!zt)&&clearTimeout)return zt=clearTimeout,clearTimeout(e);try{return zt(e)}catch(t){try{return zt.call(null,e)}catch(r){return zt.call(this,e)}}}function gJ(){!ni||!zr||(ni=!1,zr.length?br=(0,ec.default)(zr).call(zr,br):Bs=-1,br.length&&aC())}function aC(){if(!ni){var e=oC(gJ);ni=!0;for(var t=br.length;t;){for(zr=br,br=[];++Bs<t;)zr&&zr[Bs].run();Bs=-1,t=br.length}zr=null,ni=!1,hJ(e)}}function sC(e,t){this.fun=e,this.array=t}function Sr(){}function bJ(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 _J(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 EJ(e,t){return He(e,0)^45?(((t<<2^He(e,0))<<2^He(e,1))<<2^He(e,2))<<2^He(e,3):0}function uC(e){return(0,Up.default)(e).call(e)}function kJ(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Cp(e,t){return(0,wr.default)(e).call(e,t)}function He(e,t){return e.charCodeAt(t)|0}function Oo(e,t,r){return(0,Fp.default)(e).call(e,t,r)}function Kt(e){return e.length}function Jp(e){return e.length}function Ms(e,t){return t.push(e),e}function CJ(e,t){return(0,To.default)(e).call(e,t).join("")}function ic(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nc,column:si,length:a,return:""}}function ko(e,t){return IJ(ic("",null,null,"",null,null,0),e,{length:-e.length},t)}function AJ(){return Pe}function xJ(){return Pe=ut>0?He(li,--ut):0,si--,Pe===10&&(si=1,nc--),Pe}function wt(){return Pe=ut<dC?He(li,ut++):0,si++,Pe===10&&(si=1,nc++),Pe}function er(){return He(li,ut)}function Js(){return ut}function Uo(e,t){return Oo(li,e,t)}function No(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 pC(e){return nc=si=1,dC=Kt(li=e),ut=0,[]}function fC(e){return li="",e}function Hs(e){return uC(Uo(ut-1,Ap(e===91?e+2:e===40?e+1:e)))}function PJ(e){for(;(Pe=er())&&Pe<33;)wt();return No(e)>2||No(Pe)>3?"":" "}function TJ(e,t){for(;--t&&wt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Uo(e,Js()+(t<6&&er()==32&&wt()==32))}function Ap(e){for(;wt();)switch(Pe){case e:return ut;case 34:case 39:e!==34&&e!==39&&Ap(Pe);break;case 40:e===41&&Ap(e);break;case 92:wt();break}return ut}function RJ(e,t){for(;wt()&&e+Pe!==57&&!(e+Pe===84&&er()===47););return"/*"+Uo(t,ut-1)+"*"+rc(e===47?e:wt())}function OJ(e){for(;!No(er());)wt();return Uo(e,ut)}function NJ(e){return fC($s("",null,null,null,[""],e=pC(e),0,[0],e))}function $s(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=wt()){case 40:if(m!=108&&He(k,u-1)==58){Cp(k+=te(Hs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Hs(w);break;case 9:case 10:case 13:case 32:k+=PJ(m);break;case 92:k+=TJ(Js()-1,7);continue;case 47:switch(er()){case 42:case 47:Ms(DJ(RJ(wt(),Js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Kt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Kt(k)-u&&Ms(f>32?kk(k+";",n,r,u-1):kk(te(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ms(C=Ek(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)$s(k,t,C,C,x,o,u,s,A);else switch(p===99&&He(k,3)===110?100:p){case 100:case 109:case 115:$s(e,C,C,n&&Ms(Ek(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:$s(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Kt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&xJ()==125)continue}switch(k+=rc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Kt(k)-1)*v,v=1;break;case 64:er()===45&&(k+=Hs(wt())),p=er(),d=u=Kt(S=k+=OJ(Js())),w++;break;case 45:m===45&&Kt(k)==2&&(g=0)}}return o}function Ek(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Jp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Oo(e,u+1,u=SJ(g=a[m])),S=e;v<f;++v)(S=uC(g>0?p[v]+" "+w:te(w,/&\f/g,p[v])))&&(c[b++]=S);return ic(e,t,r,i===0?Gp:s,c,l,d)}function DJ(e,t,r){return ic(e,t,r,jp,rc(AJ()),Oo(e,2,-2),0)}function kk(e,t,r,n){return ic(e,t,r,Bp,Oo(e,0,n),Oo(e,n+1,-1),n)}function ii(e,t){for(var r="",n=Jp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function LJ(e,t,r,n){switch(e.type){case wJ:case Bp:return e.return=e.return||e.value;case jp:return"";case lC:return e.return=e.value+"{"+ii(e.children,n)+"}";case Gp:e.value=e.props.join(",")}return Kt(r=ii(e.children,n))?e.return=e.value+"{"+r+"}":""}function qJ(e){var t=Jp(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 MJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function hC(e,t){switch(EJ(e,t)){case 5103:return K+"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 K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Qs+e+Ze+e+e;case 6828:case 4268:return K+e+Ze+e+e;case 6165:return K+e+Ze+"flex-"+e+e;case 5187:return K+e+te(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return K+e+Ze+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return K+e+Ze+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+Ze+te(e,"shrink","negative")+e;case 5292:return K+e+Ze+te(e,"basis","preferred-size")+e;case 6060:return K+"box-"+te(e,"-grow","")+K+e+Ze+te(e,"grow","positive")+e;case 4554:return K+te(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,K+"$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(Kt(e)-1-t>6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Qs+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?hC(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Kt(e)-3-(~Cp(e,"!important")&&10))){case 107:return te(e,":",":"+K)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(He(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return K+e+Ze+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+Ze+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+Ze+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+Ze+e+e}return e}function vC(){if(xk)return Us.exports;xk=1;let e=vC();return Us.exports={default:e},Us.exports.default=e,Us.exports}function Do(e,t,r){var n,i="";return(0,Le.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function QJ(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 ZJ(e){var t=(0,Zk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Lo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Yt={name:i.name,styles:i.styles,next:Yt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Yt={name:a.name,styles:a.styles,next:Yt},a=a.next;var s=o.styles+";";return s}return r2(e,t,r)}case"function":{if(e!==void 0){var c=Yt,l=r(e);return Yt=c,Lo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function r2(e,t,r){var n="";if((0,Po.default)(r))for(var i=0;i<r.length;i++)n+=Lo(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Pk(s)&&(n+=gp(o)+":"+Tk(o,s)+";")}else if((0,Po.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Pk(a[c])&&(n+=gp(o)+":"+Tk(o,a[c])+";");else{var l=Lo(e,t,a);switch(o){case"animation":case"animationName":{n+=gp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Kr(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="";Yt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Lo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Lo(r,t,e[s]),n){var c=o;i+=c[s]}Rk.lastIndex=0;for(var l="",d;(d=Rk.exec(i))!==null;)l+="-"+d[1];var u=QJ(i)+l;return{name:u,styles:i,next:Yt}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Kr(t)}function f2(e,t,r){var n=[],i=Do(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:--g2,__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 D.vnode&&D.vnode(l),l}function Fo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Zt(e());return vn(()=>{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 D5(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 xC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=D5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function L5(e){let t=()=>xC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function U5(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Ke(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=M5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Qe("img",j(T({},a),{ref:l,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",j(T({},a),{ref:l,className:i,children:r}))}function F5(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?Qe(i.type,j(T({},i.props),{style:j(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Qe(e.type,j(T({},e.props),{style:j(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function H5(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 Jk(e,t,r){return ac.call(t,"css")?_(Wp,SC(e,t),r):_(e,t,r)}function Y5(e,t,r){return ac.call(t,"css")?_(Wp,SC(e,t),r):_(e,t,r)}function Op({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?_(Be,{children:t[s]},o):null}return _(Be,{children:i},o)})})}function Z5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Zt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function rH({children:e,style:t}){return _("div",{style:`${eH.styles} ${t}`,children:[e,_("svg",{style:`${tH.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 vH(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 BC(e){return(0,Up.default)(e).call(e)}function yH(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Np(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return(0,Fp.default)(e).call(e,t,r)}function Qt(e){return e.length}function Xp(e){return e.length}function js(e,t){return t.push(e),e}function bH(e,t){return(0,To.default)(e).call(e,t).join("")}function pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:dc,column:ci,length:a,return:""}}function Co(e,t){return gH(pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function _H(){return Te}function wH(){return Te=dt>0?$e(di,--dt):0,ci--,Te===10&&(ci=1,dc--),Te}function St(){return Te=dt<JC?$e(di,dt++):0,ci++,Te===10&&(ci=1,dc++),Te}function tr(){return $e(di,dt)}function Vs(){return dt}function jo(e,t){return qo(di,e,t)}function Mo(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 HC(e){return dc=ci=1,JC=Qt(di=e),dt=0,[]}function $C(e){return di="",e}function Ws(e){return BC(jo(dt-1,Dp(e===91?e+2:e===40?e+1:e)))}function SH(e){for(;(Te=tr())&&Te<33;)St();return Mo(e)>2||Mo(Te)>3?"":" "}function IH(e,t){for(;--t&&St()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return jo(e,Vs()+(t<6&&tr()==32&&St()==32))}function Dp(e){for(;St();)switch(Te){case e:return dt;case 34:case 39:e!==34&&e!==39&&Dp(Te);break;case 40:e===41&&Dp(e);break;case 92:St();break}return dt}function EH(e,t){for(;St()&&e+Te!==57&&!(e+Te===84&&tr()===47););return"/*"+jo(t,dt-1)+"*"+uc(e===47?e:St())}function kH(e){for(;!Mo(tr());)St();return jo(e,dt)}function CH(e){return $C(zs("",null,null,null,[""],e=HC(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=St()){case 40:if(m!=108&&$e(k,u-1)==58){Np(k+=Q(Ws(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Ws(w);break;case 9:case 10:case 13:case 32:k+=SH(m);break;case 92:k+=IH(Vs()-1,7);continue;case 47:switch(tr()){case 42:case 47:js(AH(EH(St(),Vs()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Qt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=Q(k,/\f/g,"")),f>0&&Qt(k)-u&&js(f>32?$k(k+";",n,r,u-1):$k(Q(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(js(C=Hk(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)zs(k,t,C,C,x,o,u,s,A);else switch(p===99&&$e(k,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,C,C,n&&js(Hk(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:zs(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Qt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&wH()==125)continue}switch(k+=uc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Qt(k)-1)*v,v=1;break;case 64:tr()===45&&(k+=Ws(St())),p=tr(),d=u=Qt(S=k+=kH(Vs())),w++;break;case 45:m===45&&Qt(k)==2&&(g=0)}}return o}function Hk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Xp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=qo(e,u+1,u=hH(g=a[m])),S=e;v<f;++v)(S=BC(g>0?p[v]+" "+w:Q(w,/&\f/g,p[v])))&&(c[b++]=S);return pc(e,t,r,i===0?Yp:s,c,l,d)}function AH(e,t,r){return pc(e,t,r,jC,uc(_H()),qo(e,2,-2),0)}function $k(e,t,r,n){return pc(e,t,r,Qp,qo(e,0,n),qo(e,n+1,-1),n)}function oi(e,t){for(var r="",n=Xp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function xH(e,t,r,n){switch(e.type){case mH:if(e.children.length)break;case fH:case Qp:return e.return=e.return||e.value;case jC:return"";case GC:return e.return=e.value+"{"+oi(e.children,n)+"}";case Yp:e.value=e.props.join(",")}return Qt(r=oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function PH(e){var t=Xp(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 TH(e){return function(t){t.root||(t=t.return)&&e(t)}}function VC(e,t){switch(vH(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+Zs+e+et+e+e;case 6828:case 4268:return Y+e+et+e+e;case 6165:return Y+e+et+"flex-"+e+e;case 5187:return Y+e+Q(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return Y+e+et+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return Y+e+et+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+et+Q(e,"shrink","negative")+e;case 5292:return Y+e+et+Q(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+Q(e,"-grow","")+Y+e+et+Q(e,"grow","positive")+e;case 4554:return Y+Q(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,Y+"$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 Q(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Zs+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?VC(Q(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-(~Np(e,"!important")&&10))){case 107:return Q(e,":",":"+Y)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+($e(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Y+e+et+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+et+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+et+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+et+e+e}return e}function Wk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function wp(e,t,r){var n=[],i=Do(e,n,r);return n.length<2?r:i+t(n)}function Yk(e){if(e==="top"){let t=0;WC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${zk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${zk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Kk)})}else if(e==="center"){let t=0;zC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Kk)})}}function yn(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield xo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Mr(_(WH,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,xo.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&&(Mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),xo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Lp,Xk,Le,ec,Ks,Xt,Ys,Po,qp,wr,To,Zk,eC,Mp,Up,Fp,eX,Sp,ai,ge,hp,gk,Ro,tC,xe,vk,yk,bk,_k,wk,Sk,Ik,iC,ke,Wt,zt,br,ni,zr,Bs,vJ,qe,yJ,cC,Ze,Qs,K,jp,Gp,Bp,wJ,lC,SJ,rc,IJ,nc,si,dC,ut,Pe,li,UJ,FJ,jJ,Ck,GJ,BJ,JJ,HJ,$J,mC,VJ,Ak,WJ,zJ,KJ,gC,Us,xk,YJ,Hp,oc,XJ,e2,t2,yC,Pk,gp,Tk,Rk,Yt,n2,bC,_C,Ok,ac,$p,wC,Vp,sc,i2,o2,a2,s2,c2,xp,Pp,SC,l2,Wp,u2,Nk,d2,p2,m2,h2,vp,Dk,yp,bp,g2,_p,v2,y2,b2,_2,w2,S2,I2,Lk,E2,k2,C2,qk,A2,x2,P2,Mk,T2,R2,O2,Uk,N2,D2,L2,q2,M2,U2,F2,j2,G2,B2,J2,Fk,H2,$2,V2,W2,z2,K2,Y2,Q2,X2,Z2,e5,jk,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,I5,E5,k5,C5,A5,x5,P5,T5,R5,O5,IC,EC,kC,Tp,N5,CC,AC,Xs,xo,Gk,q5,cc,M5,PC,TC,RC,j5,G5,B5,Rp,J5,OC,NC,lc,zp,ui,Bk,Wr,DC,gn,$5,V5,W5,z5,K5,Fs,LC,Kp,Se,Q5,X5,eH,tH,Ft,nH,iH,qC,MC,UC,FC,Yr,oH,aH,sH,cH,lH,uH,dH,pH,et,Zs,Y,jC,Yp,Qp,fH,GC,mH,hH,uc,gH,dc,ci,JC,dt,Te,di,RH,OH,NH,Vk,DH,LH,qH,MH,UH,FH,jH,GH,BH,JH,HH,$H,zk,Kk,WC,zC,Ir,Qk,VH,WH,tX,rr=P(()=>{"use strict";jn();Lp=se(By(),1),Xk=se(Xy(),1),Le=se(db(),1),ec=se(Cb(),1),Ks=se(Lb(),1),Xt=se(Zb(),1);ss();ss();Ys=se(M_(),1),Po=se(H_(),1),qp=se(aI(),1),wr=se(gI(),1),To=se(kI(),1),Zk=se(OI(),1),eC=se(K0(),1),Mp=se(lE(),1),Up=se(CE(),1),Fp=se(ME(),1);dp();dp();eX=se(ek(),1),Sp=se(hk(),1),Ro=0,tC=[],xe=D,vk=xe.__b,yk=xe.__r,bk=xe.diffed,_k=xe.__c,wk=xe.unmount,Sk=xe.__;xe.__b=function(e){ge=null,vk&&vk(e)},xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Sk&&Sk(e,t)},xe.__r=function(e){var t,r,n;yk&&yk(e),ai=0;var i=(ge=e.__c).__H;i&&(hp===ge?(i.__h=[],ge.__h=[],(0,Le.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Le.default)(r=i.__h).call(r,Gs),(0,Le.default)(n=i.__h).call(n,Ip),i.__h=[],ai=0)),hp=ge},xe.diffed=function(e){var t;bk&&bk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(tC.push(r)!==1&&gk===xe.requestAnimationFrame||((gk=xe.requestAnimationFrame)||fJ)(pJ)),(0,Le.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),hp=ge=null},xe.__c=function(e,t){(0,Ks.default)(t).call(t,function(r){try{var n,i;(0,Le.default)(n=r.__h).call(n,Gs),r.__h=(0,Lp.default)(i=r.__h).call(i,function(o){return!o.__||Ip(o)})}catch(o){(0,Ks.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],xe.__e(o,r.__v)}}),_k&&_k(e,t)},xe.unmount=function(e){var t;wk&&wk(e);var r,n=e.__c;n&&n.__H&&((0,Le.default)(t=n.__H.__).call(t,function(i){try{Gs(i)}catch(o){r=o}}),n.__H=void 0,r&&xe.__e(r,n.__v))};Ik=typeof requestAnimationFrame=="function";iC={exports:{}},ke=iC.exports={};(function(){try{typeof Xt.default=="function"?Wt=Xt.default:Wt=Ep}catch(e){Wt=Ep}try{typeof clearTimeout=="function"?zt=clearTimeout:zt=kp}catch(e){zt=kp}})();br=[],ni=!1,Bs=-1;ke.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 sC(e,t)),br.length===1&&!ni&&oC(aC)};sC.prototype.run=function(){this.fun.apply(null,this.array)};ke.title="browser";ke.browser=!0;ke.env={};ke.argv=[];ke.version="";ke.versions={};ke.on=Sr;ke.addListener=Sr;ke.once=Sr;ke.off=Sr;ke.removeListener=Sr;ke.removeAllListeners=Sr;ke.emit=Sr;ke.prependListener=Sr;ke.prependOnceListener=Sr;ke.listeners=function(e){return[]};ke.binding=function(e){throw new Error("process.binding is not supported")};ke.cwd=function(){return"/"};ke.chdir=function(e){throw new Error("process.chdir is not supported")};ke.umask=function(){return 0};vJ=iC.exports,qe=mJ(vJ),yJ=Ys.default||void 0||self;cC=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,Le.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_J(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=bJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Le.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}(),Ze="-ms-",Qs="-moz-",K="-webkit-",jp="comm",Gp="rule",Bp="decl",wJ="@import",lC="@keyframes",SJ=Math.abs,rc=String.fromCharCode,IJ=Mp.default;nc=1,si=1,dC=0,ut=0,Pe=0,li="";UJ=function(e,t,r){for(var n=0,i=0;n=i,i=er(),n===38&&i===12&&(t[r]=1),!No(i);)wt();return Uo(e,ut)},FJ=function(e,t){var r=-1,n=44;do switch(No(n)){case 0:n===38&&er()===12&&(t[r]=1),e[r]+=UJ(ut-1,t,r);break;case 2:e[r]+=Hs(n);break;case 4:if(n===44){e[++r]=er()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rc(n)}while(n=wt());return e},jJ=function(e,t){return fC(FJ(pC(e),t))},Ck=new qp.default,GJ=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&&!Ck.get(r))&&!n){Ck.set(e,!0);for(var i=[],o=jJ(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]}}},BJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},JJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",HJ=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,JJ)>-1},$J=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(HJ(c))return;break}}(0,Le.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".')})}}}},mC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},VJ=function(e,t){for(var r=e-1;r>=0;r--)if(!mC(t[r]))return!0;return!1},Ak=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},WJ=function(e,t,r){mC(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."),Ak(e)):VJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ak(e)))};zJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bp:e.return=hC(e.value,e.length);break;case lC:return ii([ko(e,{value:te(e.value,"@","@"+K)})],n);case Gp:if(e.length)return CJ(e.props,function(i){switch(kJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ii([ko(e,{props:[te(i,/:(read-\w+)/,":"+Qs+"$1")]})],n);case"::placeholder":return ii([ko(e,{props:[te(i,/:(plac\w+)/,":"+K+"input-$1")]}),ko(e,{props:[te(i,/:(plac\w+)/,":"+Qs+"$1")]}),ko(e,{props:[te(i,/:(plac\w+)/,Ze+"input-$1")]})],n)}return""})}},KJ=[zJ],gC=function(e){var t=e.key;if(qe.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,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,wr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||
|
|
24
|
-
`),r=0;r<t.length;r++){var n=
|
|
21
|
+
`;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return y(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 vg=P(()=>{"use strict";J()});var yg=P(()=>{"use strict"});var bg=P(()=>{"use strict";O();Jl()});var _g=P(()=>{"use strict";J()});var Ba,lu=P(()=>{"use strict";yg();bg();J();_g();O();Ba=new Vt});function pr(e,t){for(var r in t)e[r]=t[r];return e}function hu(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?Va.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 Ha(e,a,n,i,null)}function Ha(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?++Eg:i,__i:-1,__u:0};return i==null&&D.vnode!=null&&D.vnode(o),o}function Je(e){return e.children}function bt(e,t){this.props=e,this.context=t}function Fn(e,t){if(t==null)return e.__?Fn(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"?Fn(e):null}function Tg(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 Tg(e)}}function pu(e){(!e.__d&&(e.__d=!0)&&on.push(e)&&!$a.__r++||wg!==D.debounceRendering)&&((wg=D.debounceRendering)||kg)($a)}function $a(){for(var e,t,r,n,i,o,a,s=1;on.length;)on.length>s&&on.sort(Cg),e=on.shift(),s=on.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,D.vnode&&D.vnode(r),gu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Fn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Ng(o,r,a),r.__e!=i&&Tg(r)));$a.__r=0}function Rg(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,g,b,v=n&&n.__k||Pg,w=t.length;for(c=ZR(r,t,v,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?$i:v[f.__i]||$i,f.__i=u,b=gu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&vu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?c=Og(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=g,c}function ZR(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?Ha(null,a,null,null,null):Vi(a)?Ha(Je,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ha(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=eO(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=Fn(s)),Lg(s,s));return n}function Og(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=Og(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Fn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Wi(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vi(e)?e.some(function(r){Wi(r,t)}):t.push(e)),t}function eO(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 Sg(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||XR.test(t)?r:r+"px"}function Ja(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||Sg(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Sg(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Ag,"$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=mu,e.addEventListener(t,o?du:uu,o)):e.removeEventListener(t,o?du:uu,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 Ig(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=mu++;else if(t.u<r.t)return;return r(D.event?D.event(t):t)}}}function gu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,g,b,v,w,S,x,A,C,k,B,le,N,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=D.__b)&&d(t);e:if(typeof R=="function")try{if(v=t.props,w="prototype"in R&&R.prototype.render,S=(d=R.contextType)&&n[d.__c],x=d?S?S.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new R(v,x):(t.__c=u=new bt(v,x),u.constructor=R,u.render=rO),S&&S.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=pr({},u.__s)),pr(u.__s,R.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&R.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),A=0;A<u._sb.length;A++)u.__h.push(u._sb[A]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=D.__r,k=0,w){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===Je&&d.key==null&&(le=Dg(d.props.children)),s=Rg(e,Vi(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--;)hu(o[N]);else t.__e=r.__e,t.__k=r.__k;D.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=tO(r.__e,t,r,n,i,o,a,c,l);return(d=D.diffed)&&d(t),128&t.__u?void 0:s}function Ng(e,t,r){for(var n=0;n<r.length;n++)vu(r[n],r[++n],r[++n]);D.__c&&D.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){D.__e(o,i.__v)}})}function Dg(e){return typeof e!="object"||e==null?e:Vi(e)?e.map(Dg):pr({},e)}function tO(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,g,b=r.props,v=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(v);e=document.createElementNS(i,w,v.is&&v),s&&(D.__m&&D.__m(t,o),s=!1),o=null}if(w===null)b===v||s&&e.data===v||(e.data=v);else{if(o=o&&Va.call(e.childNodes),b=r.props||$i,!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 v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;Ja(e,l,null,f,i)}}for(l in v)f=v[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?g=f:s&&typeof f!="function"||b[l]===f||Ja(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=""),Rg(t.type==="template"?e.content:e,Vi(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Fn(r,0),s,c),o!=null)for(l=o.length;l--;)hu(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])&&Ja(e,l,m,b[l],i),l="checked",g!==void 0&&g!==e[l]&&Ja(e,l,g,b[l],i))}return e}function vu(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){D.__e(i,r)}}function Lg(e,t,r){var n,i;if(D.unmount&&D.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||vu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){D.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Lg(n[i],t,r||typeof e.type!="function");r||hu(e.__e),e.__c=e.__=e.__e=void 0}function rO(e,t,r){return this.constructor(e,r)}function Mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),D.__&&D.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],gu(t,e=(!n&&r||t).__k=Xe(Je,null,[e]),i||$i,$i,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Va.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Ng(o,e,a)}function an(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,pu(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"+xg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Va,D,Eg,fu,on,wg,kg,Cg,Ag,mu,uu,du,xg,$i,Pg,XR,Vi,jn=P(()=>{$i={},Pg=[],XR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vi=Array.isArray;Va=Pg.slice,D={__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}},Eg=0,fu=function(e){return e!=null&&e.constructor==null},bt.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),pu(this))},bt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pu(this))},bt.prototype.render=Je,on=[],kg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Cg=function(e,t){return e.__v.__b-t.__v.__b},$a.__r=0,Ag=/(PointerCapture)$|Capture$/i,mu=0,uu=Ig(!1),du=Ig(!0),xg=0});var _e=h((R6,qg)=>{"use strict";qg.exports=function(e){try{return!!e()}catch(t){return!0}}});var Gn=h((O6,Mg)=>{"use strict";var nO=_e();Mg.exports=!nO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ae=h((N6,jg)=>{"use strict";var Ug=Gn(),Fg=Function.prototype,yu=Fg.call,iO=Ug&&Fg.bind.bind(yu,yu);jg.exports=Ug?iO:function(e){return function(){return yu.apply(e,arguments)}}});var ot=h((D6,Gg)=>{"use strict";var oO=Ae();Gg.exports=oO({}.isPrototypeOf)});var we=h((bu,Bg)=>{"use strict";var zi=function(e){return e&&e.Math===Math&&e};Bg.exports=zi(typeof globalThis=="object"&&globalThis)||zi(typeof window=="object"&&window)||zi(typeof self=="object"&&self)||zi(typeof global=="object"&&global)||zi(typeof bu=="object"&&bu)||function(){return this}()||Function("return this")()});var _u=h((L6,Vg)=>{"use strict";var aO=Gn(),$g=Function.prototype,Jg=$g.apply,Hg=$g.call;Vg.exports=typeof Reflect=="object"&&Reflect.apply||(aO?Hg.bind(Jg):function(){return Hg.apply(Jg,arguments)})});var fr=h((q6,zg)=>{"use strict";var Wg=Ae(),sO=Wg({}.toString),cO=Wg("".slice);zg.exports=function(e){return cO(sO(e),8,-1)}});var Ki=h((M6,Kg)=>{"use strict";var lO=fr(),uO=Ae();Kg.exports=function(e){if(lO(e)==="Function")return uO(e)}});var He=h((U6,Yg)=>{"use strict";var wu=typeof document=="object"&&document.all;Yg.exports=typeof wu=="undefined"&&wu!==void 0?function(e){return typeof e=="function"||e===wu}:function(e){return typeof e=="function"}});var at=h((F6,Qg)=>{"use strict";var dO=_e();Qg.exports=!dO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qt=h((j6,Xg)=>{"use strict";var pO=Gn(),Wa=Function.prototype.call;Xg.exports=pO?Wa.bind(Wa):function(){return Wa.apply(Wa,arguments)}});var Su=h(tv=>{"use strict";var Zg={}.propertyIsEnumerable,ev=Object.getOwnPropertyDescriptor,fO=ev&&!Zg.call({1:2},1);tv.f=fO?function(t){var r=ev(this,t);return!!r&&r.enumerable}:Zg});var Yi=h((B6,rv)=>{"use strict";rv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var za=h((J6,nv)=>{"use strict";var mO=Ae(),hO=_e(),gO=fr(),Iu=Object,vO=mO("".split);nv.exports=hO(function(){return!Iu("z").propertyIsEnumerable(0)})?function(e){return gO(e)==="String"?vO(e,""):Iu(e)}:Iu});var sn=h((H6,iv)=>{"use strict";iv.exports=function(e){return e==null}});var cn=h(($6,ov)=>{"use strict";var yO=sn(),bO=TypeError;ov.exports=function(e){if(yO(e))throw new bO("Can't call method on "+e);return e}});var Ur=h((V6,av)=>{"use strict";var _O=za(),wO=cn();av.exports=function(e){return _O(wO(e))}});var De=h((W6,sv)=>{"use strict";var SO=He();sv.exports=function(e){return typeof e=="object"?e!==null:SO(e)}});var Wt=h((z6,cv)=>{"use strict";cv.exports={}});var Bn=h((K6,uv)=>{"use strict";var Eu=Wt(),ku=we(),IO=He(),lv=function(e){return IO(e)?e:void 0};uv.exports=function(e,t){return arguments.length<2?lv(Eu[e])||lv(ku[e]):Eu[e]&&Eu[e][t]||ku[e]&&ku[e][t]}});var Ka=h((Y6,fv)=>{"use strict";var EO=we(),dv=EO.navigator,pv=dv&&dv.userAgent;fv.exports=pv?String(pv):""});var Qa=h((Q6,bv)=>{"use strict";var yv=we(),Cu=Ka(),mv=yv.process,hv=yv.Deno,gv=mv&&mv.versions||hv&&hv.version,vv=gv&&gv.v8,Mt,Ya;vv&&(Mt=vv.split("."),Ya=Mt[0]>0&&Mt[0]<4?1:+(Mt[0]+Mt[1]));!Ya&&Cu&&(Mt=Cu.match(/Edge\/(\d+)/),(!Mt||Mt[1]>=74)&&(Mt=Cu.match(/Chrome\/(\d+)/),Mt&&(Ya=+Mt[1])));bv.exports=Ya});var Au=h((X6,wv)=>{"use strict";var _v=Qa(),kO=_e(),CO=we(),AO=CO.String;wv.exports=!!Object.getOwnPropertySymbols&&!kO(function(){var e=Symbol("symbol detection");return!AO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_v&&_v<41})});var xu=h((Z6,Sv)=>{"use strict";var xO=Au();Sv.exports=xO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Pu=h((eK,Iv)=>{"use strict";var PO=Bn(),TO=He(),RO=ot(),OO=xu(),NO=Object;Iv.exports=OO?function(e){return typeof e=="symbol"}:function(e){var t=PO("Symbol");return TO(t)&&RO(t.prototype,NO(e))}});var Qi=h((tK,Ev)=>{"use strict";var DO=String;Ev.exports=function(e){try{return DO(e)}catch(t){return"Object"}}});var ln=h((rK,kv)=>{"use strict";var LO=He(),qO=Qi(),MO=TypeError;kv.exports=function(e){if(LO(e))return e;throw new MO(qO(e)+" is not a function")}});var Xa=h((nK,Cv)=>{"use strict";var UO=ln(),FO=sn();Cv.exports=function(e,t){var r=e[t];return FO(r)?void 0:UO(r)}});var xv=h((iK,Av)=>{"use strict";var Tu=qt(),Ru=He(),Ou=De(),jO=TypeError;Av.exports=function(e,t){var r,n;if(t==="string"&&Ru(r=e.toString)&&!Ou(n=Tu(r,e))||Ru(r=e.valueOf)&&!Ou(n=Tu(r,e))||t!=="string"&&Ru(r=e.toString)&&!Ou(n=Tu(r,e)))return n;throw new jO("Can't convert object to primitive value")}});var Jn=h((oK,Pv)=>{"use strict";Pv.exports=!0});var Ov=h((aK,Rv)=>{"use strict";var Tv=we(),GO=Object.defineProperty;Rv.exports=function(e,t){try{GO(Tv,e,{value:t,configurable:!0,writable:!0})}catch(r){Tv[e]=t}return t}});var Xi=h((sK,Lv)=>{"use strict";var BO=Jn(),JO=we(),HO=Ov(),Nv="__core-js_shared__",Dv=Lv.exports=JO[Nv]||HO(Nv,{});(Dv.versions||(Dv.versions=[])).push({version:"3.41.0",mode:BO?"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 Nu=h((cK,Mv)=>{"use strict";var qv=Xi();Mv.exports=function(e,t){return qv[e]||(qv[e]=t||{})}});var Hn=h((lK,Uv)=>{"use strict";var $O=cn(),VO=Object;Uv.exports=function(e){return VO($O(e))}});var _t=h((uK,Fv)=>{"use strict";var WO=Ae(),zO=Hn(),KO=WO({}.hasOwnProperty);Fv.exports=Object.hasOwn||function(t,r){return KO(zO(t),r)}});var Za=h((dK,jv)=>{"use strict";var YO=Ae(),QO=0,XO=Math.random(),ZO=YO(1 .toString);jv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ZO(++QO+XO,36)}});var Ze=h((pK,Bv)=>{"use strict";var e1=we(),t1=Nu(),Gv=_t(),r1=Za(),n1=Au(),i1=xu(),$n=e1.Symbol,Du=t1("wks"),o1=i1?$n.for||$n:$n&&$n.withoutSetter||r1;Bv.exports=function(e){return Gv(Du,e)||(Du[e]=n1&&Gv($n,e)?$n[e]:o1("Symbol."+e)),Du[e]}});var Vv=h((fK,$v)=>{"use strict";var a1=qt(),Jv=De(),Hv=Pu(),s1=Xa(),c1=xv(),l1=Ze(),u1=TypeError,d1=l1("toPrimitive");$v.exports=function(e,t){if(!Jv(e)||Hv(e))return e;var r=s1(e,d1),n;if(r){if(t===void 0&&(t="default"),n=a1(r,e,t),!Jv(n)||Hv(n))return n;throw new u1("Can't convert object to primitive value")}return t===void 0&&(t="number"),c1(e,t)}});var Lu=h((mK,Wv)=>{"use strict";var p1=Vv(),f1=Pu();Wv.exports=function(e){var t=p1(e,"string");return f1(t)?t:t+""}});var Mu=h((hK,Kv)=>{"use strict";var m1=we(),zv=De(),qu=m1.document,h1=zv(qu)&&zv(qu.createElement);Kv.exports=function(e){return h1?qu.createElement(e):{}}});var Uu=h((gK,Yv)=>{"use strict";var g1=at(),v1=_e(),y1=Mu();Yv.exports=!g1&&!v1(function(){return Object.defineProperty(y1("div"),"a",{get:function(){return 7}}).a!==7})});var Fu=h(Xv=>{"use strict";var b1=at(),_1=qt(),w1=Su(),S1=Yi(),I1=Ur(),E1=Lu(),k1=_t(),C1=Uu(),Qv=Object.getOwnPropertyDescriptor;Xv.f=b1?Qv:function(t,r){if(t=I1(t),r=E1(r),C1)try{return Qv(t,r)}catch(n){}if(k1(t,r))return S1(!_1(w1.f,t,r),t[r])}});var ey=h((yK,Zv)=>{"use strict";var A1=_e(),x1=He(),P1=/#|\.prototype\./,Zi=function(e,t){var r=R1[T1(e)];return r===N1?!0:r===O1?!1:x1(t)?A1(t):!!t},T1=Zi.normalize=function(e){return String(e).replace(P1,".").toLowerCase()},R1=Zi.data={},O1=Zi.NATIVE="N",N1=Zi.POLYFILL="P";Zv.exports=Zi});var eo=h((bK,ry)=>{"use strict";var ty=Ki(),D1=ln(),L1=Gn(),q1=ty(ty.bind);ry.exports=function(e,t){return D1(e),t===void 0?e:L1?q1(e,t):function(){return e.apply(t,arguments)}}});var ju=h((_K,ny)=>{"use strict";var M1=at(),U1=_e();ny.exports=M1&&U1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((wK,iy)=>{"use strict";var F1=De(),j1=String,G1=TypeError;iy.exports=function(e){if(F1(e))return e;throw new G1(j1(e)+" is not an object")}});var hr=h(ay=>{"use strict";var B1=at(),J1=Uu(),H1=ju(),es=mr(),oy=Lu(),$1=TypeError,Gu=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,Bu="enumerable",Ju="configurable",Hu="writable";ay.f=B1?H1?function(t,r,n){if(es(t),r=oy(r),es(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Hu in n&&!n[Hu]){var i=V1(t,r);i&&i[Hu]&&(t[r]=n.value,n={configurable:Ju in n?n[Ju]:i[Ju],enumerable:Bu in n?n[Bu]:i[Bu],writable:!1})}return Gu(t,r,n)}:Gu:function(t,r,n){if(es(t),r=oy(r),es(n),J1)try{return Gu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new $1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var un=h((IK,sy)=>{"use strict";var W1=at(),z1=hr(),K1=Yi();sy.exports=W1?function(e,t,r){return z1.f(e,t,K1(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((EK,ly)=>{"use strict";var to=we(),Y1=_u(),Q1=Ki(),X1=He(),Z1=Fu().f,eN=ey(),Vn=Wt(),tN=eo(),Wn=un(),cy=_t();Xi();var rN=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 Y1(e,this,arguments)};return t.prototype=e.prototype,t};ly.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?to:i?to[r]:to[r]&&to[r].prototype,s=n?Vn:Vn[r]||Wn(Vn,r,{})[r],c=s.prototype,l,d,u,p,f,m,g,b,v;for(p in t)l=eN(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&cy(a,p),m=s[p],d&&(e.dontCallGetSet?(v=Z1(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=tN(f,to):e.wrap&&d?b=rN(f):o&&X1(f)?b=Q1(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Wn(b,"sham",!0),Wn(s,p,b),o&&(u=r+"Prototype",cy(Vn,u)||Wn(Vn,u,{}),Wn(Vn[u],p,f),e.real&&c&&(l||!c[p])&&Wn(c,p,f)))}});var dy=h((kK,uy)=>{"use strict";var nN=Math.ceil,iN=Math.floor;uy.exports=Math.trunc||function(t){var r=+t;return(r>0?iN:nN)(r)}});var ro=h((CK,py)=>{"use strict";var oN=dy();py.exports=function(e){var t=+e;return t!==t||t===0?0:oN(t)}});var $u=h((AK,fy)=>{"use strict";var aN=ro(),sN=Math.min;fy.exports=function(e){var t=aN(e);return t>0?sN(t,9007199254740991):0}});var zn=h((xK,my)=>{"use strict";var cN=$u();my.exports=function(e){return cN(e.length)}});var no=h((PK,hy)=>{"use strict";var lN=fr();hy.exports=Array.isArray||function(t){return lN(t)==="Array"}});var ts=h((TK,vy)=>{"use strict";var uN=Ze(),dN=uN("toStringTag"),gy={};gy[dN]="z";vy.exports=String(gy)==="[object z]"});var Kn=h((RK,yy)=>{"use strict";var pN=ts(),fN=He(),rs=fr(),mN=Ze(),hN=mN("toStringTag"),gN=Object,vN=rs(function(){return arguments}())==="Arguments",yN=function(e,t){try{return e[t]}catch(r){}};yy.exports=pN?rs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=yN(t=gN(e),hN))=="string"?r:vN?rs(t):(n=rs(t))==="Object"&&fN(t.callee)?"Arguments":n}});var _y=h((OK,by)=>{"use strict";var bN=Ae(),_N=He(),Vu=Xi(),wN=bN(Function.toString);_N(Vu.inspectSource)||(Vu.inspectSource=function(e){return wN(e)});by.exports=Vu.inspectSource});var zu=h((NK,ky)=>{"use strict";var SN=Ae(),IN=_e(),wy=He(),EN=Kn(),kN=Bn(),CN=_y(),Sy=function(){},Iy=kN("Reflect","construct"),Wu=/^\s*(?:class|function)\b/,AN=SN(Wu.exec),xN=!Wu.test(Sy),io=function(t){if(!wy(t))return!1;try{return Iy(Sy,[],t),!0}catch(r){return!1}},Ey=function(t){if(!wy(t))return!1;switch(EN(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xN||!!AN(Wu,CN(t))}catch(r){return!0}};Ey.sham=!0;ky.exports=!Iy||IN(function(){var e;return io(io.call)||!io(Object)||!io(function(){e=!0})||e})?Ey:io});var Py=h((DK,xy)=>{"use strict";var Cy=no(),PN=zu(),TN=De(),RN=Ze(),ON=RN("species"),Ay=Array;xy.exports=function(e){var t;return Cy(e)&&(t=e.constructor,PN(t)&&(t===Ay||Cy(t.prototype))?t=void 0:TN(t)&&(t=t[ON],t===null&&(t=void 0))),t===void 0?Ay:t}});var Ku=h((LK,Ty)=>{"use strict";var NN=Py();Ty.exports=function(e,t){return new(NN(e))(t===0?0:t)}});var jr=h((qK,Oy)=>{"use strict";var DN=eo(),LN=Ae(),qN=za(),MN=Hn(),UN=zn(),FN=Ku(),Ry=LN([].push),Fr=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=MN(c),f=qN(p),m=UN(f),g=DN(l,d),b=0,v=u||FN,w=t?v(c,m):r||a?v(c,0):void 0,S,x;m>b;b++)if((s||b in f)&&(S=f[b],x=g(S,b,p),e))if(t)w[b]=x;else if(x)switch(e){case 3:return!0;case 5:return S;case 6:return b;case 2:Ry(w,S)}else switch(e){case 4:return!1;case 7:Ry(w,S)}return o?-1:n||i?i:w}};Oy.exports={forEach:Fr(0),map:Fr(1),filter:Fr(2),some:Fr(3),every:Fr(4),find:Fr(5),findIndex:Fr(6),filterReject:Fr(7)}});var oo=h((MK,Ny)=>{"use strict";var jN=_e(),GN=Ze(),BN=Qa(),JN=GN("species");Ny.exports=function(e){return BN>=51||!jN(function(){var t=[],r=t.constructor={};return r[JN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Dy=h(()=>{"use strict";var HN=ae(),$N=jr().filter,VN=oo(),WN=VN("filter");HN({target:"Array",proto:!0,forced:!WN},{filter:function(t){return $N(this,t,arguments.length>1?arguments[1]:void 0)}})});var Pt=h((jK,Ly)=>{"use strict";var zN=we(),KN=Wt();Ly.exports=function(e,t){var r=KN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=zN[e],o=i&&i.prototype;return o&&o[t]}});var My=h((GK,qy)=>{"use strict";Dy();var YN=Pt();qy.exports=YN("Array","filter")});var Fy=h((BK,Uy)=>{"use strict";var QN=ot(),XN=My(),Yu=Array.prototype;Uy.exports=function(e){var t=e.filter;return e===Yu||QN(Yu,e)&&t===Yu.filter?XN:t}});var Gy=h((JK,jy)=>{"use strict";var ZN=Fy();jy.exports=ZN});var Jy=h((HK,By)=>{By.exports=Gy()});var ao=h(($K,Hy)=>{"use strict";var eD=_e();Hy.exports=function(e,t){var r=[][e];return!!r&&eD(function(){r.call(null,t||function(){return 1},1)})}});var $y=h(()=>{"use strict";var tD=ae(),rD=jr().every,nD=ao(),iD=nD("every");tD({target:"Array",proto:!0,forced:!iD},{every:function(t){return rD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Wy=h((zK,Vy)=>{"use strict";$y();var oD=Pt();Vy.exports=oD("Array","every")});var Ky=h((KK,zy)=>{"use strict";var aD=ot(),sD=Wy(),Qu=Array.prototype;zy.exports=function(e){var t=e.every;return e===Qu||aD(Qu,e)&&t===Qu.every?sD:t}});var Qy=h((YK,Yy)=>{"use strict";var cD=Ky();Yy.exports=cD});var Zy=h((QK,Xy)=>{Xy.exports=Qy()});var tb=h((XK,eb)=>{"use strict";var lD=jr().forEach,uD=ao(),dD=uD("forEach");eb.exports=dD?[].forEach:function(t){return lD(this,t,arguments.length>1?arguments[1]:void 0)}});var nb=h(()=>{"use strict";var pD=ae(),rb=tb();pD({target:"Array",proto:!0,forced:[].forEach!==rb},{forEach:rb})});var ob=h((t8,ib)=>{"use strict";nb();var fD=Pt();ib.exports=fD("Array","forEach")});var sb=h((r8,ab)=>{"use strict";var mD=ob();ab.exports=mD});var cb=h(()=>{});var ub=h((o8,lb)=>{"use strict";var hD=Kn(),gD=_t(),vD=ot(),yD=sb();cb();var Xu=Array.prototype,bD={DOMTokenList:!0,NodeList:!0};lb.exports=function(e){var t=e.forEach;return e===Xu||vD(Xu,e)&&t===Xu.forEach||gD(bD,hD(e))?yD:t}});var pb=h((a8,db)=>{db.exports=ub()});var mb=h((s8,fb)=>{"use strict";var _D=TypeError,wD=9007199254740991;fb.exports=function(e){if(e>wD)throw _D("Maximum allowed index exceeded");return e}});var Zu=h((c8,hb)=>{"use strict";var SD=at(),ID=hr(),ED=Yi();hb.exports=function(e,t,r){SD?ID.f(e,t,ED(0,r)):e[t]=r}});var bb=h(()=>{"use strict";var kD=ae(),CD=_e(),AD=no(),xD=De(),PD=Hn(),TD=zn(),gb=mb(),vb=Zu(),RD=Ku(),OD=oo(),ND=Ze(),DD=Qa(),yb=ND("isConcatSpreadable"),LD=DD>=51||!CD(function(){var e=[];return e[yb]=!1,e.concat()[0]!==e}),qD=function(e){if(!xD(e))return!1;var t=e[yb];return t!==void 0?!!t:AD(e)},MD=!LD||!OD("concat");kD({target:"Array",proto:!0,arity:1,forced:MD},{concat:function(t){var r=PD(this),n=RD(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],qD(l))for(c=TD(l),gb(i+c),a=0;a<c;a++,i++)a in l&&vb(n,i,l[a]);else gb(i+1),vb(n,i++,l);return n.length=i,n}})});var wb=h((d8,_b)=>{"use strict";bb();var UD=Pt();_b.exports=UD("Array","concat")});var Ib=h((p8,Sb)=>{"use strict";var FD=ot(),jD=wb(),ed=Array.prototype;Sb.exports=function(e){var t=e.concat;return e===ed||FD(ed,e)&&t===ed.concat?jD:t}});var kb=h((f8,Eb)=>{"use strict";var GD=Ib();Eb.exports=GD});var Ab=h((m8,Cb)=>{Cb.exports=kb()});var xb=h(()=>{"use strict";var BD=ae(),JD=jr().some,HD=ao(),$D=HD("some");BD({target:"Array",proto:!0,forced:!$D},{some:function(t){return JD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Tb=h((v8,Pb)=>{"use strict";xb();var VD=Pt();Pb.exports=VD("Array","some")});var Ob=h((y8,Rb)=>{"use strict";var WD=ot(),zD=Tb(),td=Array.prototype;Rb.exports=function(e){var t=e.some;return e===td||WD(td,e)&&t===td.some?zD:t}});var Db=h((b8,Nb)=>{"use strict";var KD=Ob();Nb.exports=KD});var qb=h((_8,Lb)=>{Lb.exports=Db()});var Ub=h((w8,Mb)=>{"use strict";var so=we(),YD=Ka(),QD=fr(),ns=function(e){return YD.slice(0,e.length)===e};Mb.exports=function(){return ns("Bun/")?"BUN":ns("Cloudflare-Workers")?"CLOUDFLARE":ns("Deno/")?"DENO":ns("Node.js/")?"NODE":so.Bun&&typeof Bun.version=="string"?"BUN":so.Deno&&typeof Deno.version=="object"?"DENO":QD(so.process)==="process"?"NODE":so.window&&so.document?"BROWSER":"REST"}()});var co=h((S8,Fb)=>{"use strict";var XD=Ae();Fb.exports=XD([].slice)});var Gb=h((I8,jb)=>{"use strict";var ZD=TypeError;jb.exports=function(e,t){if(e<t)throw new ZD("Not enough arguments");return e}});var rd=h((E8,Jb)=>{"use strict";var Bb=we(),eL=_u(),tL=He(),rL=Ub(),nL=Ka(),iL=co(),oL=Gb(),aL=Bb.Function,sL=/MSIE .\./.test(nL)||rL==="BUN"&&function(){var e=Bb.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Jb.exports=function(e,t){var r=t?2:1;return sL?function(n,i){var o=oL(arguments.length,1)>r,a=tL(n)?n:aL(n),s=o?iL(arguments,r):[],c=o?function(){eL(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var Vb=h(()=>{"use strict";var cL=ae(),$b=we(),lL=rd(),Hb=lL($b.setInterval,!0);cL({global:!0,bind:!0,forced:$b.setInterval!==Hb},{setInterval:Hb})});var Kb=h(()=>{"use strict";var uL=ae(),zb=we(),dL=rd(),Wb=dL(zb.setTimeout,!0);uL({global:!0,bind:!0,forced:zb.setTimeout!==Wb},{setTimeout:Wb})});var Yb=h(()=>{"use strict";Vb();Kb()});var Xb=h((R8,Qb)=>{"use strict";Yb();var pL=Wt();Qb.exports=pL.setTimeout});var e_=h((O8,Zb)=>{Zb.exports=Xb()});function uo(e,t){Ee.__h&&Ee.__h(de,e,lo||t),lo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return lo=1,u_(d_,e)}function u_(e,t,r){var n=uo(dn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):d_(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 pn(e,t){var r=uo(dn++,3);!Ee.__s&&od(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function Yn(e,t){var r=uo(dn++,4);!Ee.__s&&od(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function Qn(e){return lo=5,po(function(){return{current:e}},[])}function po(e,t){var r=uo(dn++,7);return od(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Gr(e,t){return lo=8,po(function(){return e},t)}function Xn(e){var t=de.context[e.__c],r=uo(dn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function fL(){for(var e;e=l_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(is),e.__H.__h.forEach(id),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}function mL(e){var t,r=function(){clearTimeout(n),c_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);c_&&(t=requestAnimationFrame(r))}function is(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function id(e){var t=de;e.__c=e.__(),de=t}function od(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function d_(e,t){return typeof t=="function"?t(e):t}var dn,de,nd,t_,lo,l_,Ee,r_,n_,i_,o_,a_,s_,c_,ad=P(()=>{jn();lo=0,l_=[],Ee=D,r_=Ee.__b,n_=Ee.__r,i_=Ee.diffed,o_=Ee.__c,a_=Ee.unmount,s_=Ee.__;Ee.__b=function(e){de=null,r_&&r_(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),s_&&s_(e,t)},Ee.__r=function(e){n_&&n_(e),dn=0;var t=(de=e.__c).__H;t&&(nd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(is),t.__h.forEach(id),t.__h=[],dn=0)),nd=de},Ee.diffed=function(e){i_&&i_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(l_.push(t)!==1&&t_===Ee.requestAnimationFrame||((t_=Ee.requestAnimationFrame)||mL)(fL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),nd=de=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(is),r.__h=r.__h.filter(function(n){return!n.__||id(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(n,r.__v)}}),o_&&o_(e,t)},Ee.unmount=function(e){a_&&a_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{is(n)}catch(i){t=i}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};c_=typeof requestAnimationFrame=="function"});function w_(e,t){for(var r in t)e[r]=t[r];return e}function cd(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 p_(e,t){this.props=e,this.context=t}function ud(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:cd(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 dd(e){function t(r){var n=w_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=hL,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function S_(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=w_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return S_(n,t,r)})),e}function I_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return I_(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 E_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function os(){this.i=null,this.l=null}function as(e,t,r){return t.__k==null&&(t.textContent=""),Mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function IL(){}function EL(){return this.cancelBubble}function kL(){return this.defaultPrevented}var ld,f_,hL,gL,m_,h_,vL,yL,bL,_L,wL,SL,g_,k_,CL,v_,y_,b_,ss=P(()=>{jn();jn();ad();ad();ld=Yn;(p_.prototype=new bt).isPureReactComponent=!0,p_.prototype.shouldComponentUpdate=function(e,t){return cd(this.props,e)||cd(this.state,t)};f_=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),f_&&f_(e)};hL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;gL=D.__e;D.__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)}gL(e,t,r,n)};m_=D.unmount;D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),m_&&m_(e)},(sd.prototype=new bt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=E_(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]=I_(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]=S_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Xe(Je,null,e.fallback);return i&&(i.__u&=-33),[Xe(Je,null,t.__a?null:e.children),i]};h_=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]}};(os.prototype=new bt).__a=function(e){var t=this,r=E_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),h_(t,e,n)):i()};r?r(o):o()}},os.prototype.render=function(e){this.i=null,this.l=new Map;var t=Wi(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},os.prototype.componentDidUpdate=os.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){h_(e,r,t)})};vL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,yL=/^(?: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]/,bL=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_L=/[A-Z0-9]/g,wL=typeof document!="undefined",SL=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(bt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});g_=D.event;D.event=function(e){return g_&&(e=g_(e)),e.persist=IL,e.isPropagationStopped=EL,e.isDefaultPrevented=kL,e.nativeEvent=e};CL={enumerable:!1,configurable:!0,get:function(){return this.class}},v_=D.vnode;D.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||wL&&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"||SL(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":bL.test(a)&&(a=c):c=a="oninput":o&&yL.test(a)?a=a.replace(_L,"-$&").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=Wi(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Wi(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",CL)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=vL,v_&&v_(e)};y_=D.__r;D.__r=function(e){y_&&y_(e),k_=e.__c};b_=D.diffed;D.diffed=function(e){b_&&b_(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),k_=null}});var fd=h(()=>{"use strict";var xL=ae(),pd=we();xL({global:!0,forced:pd.globalThis!==pd},{globalThis:pd})});var C_=h(()=>{"use strict";fd()});var x_=h((z8,A_)=>{"use strict";fd();A_.exports=we()});var T_=h((K8,P_)=>{"use strict";var PL=x_();P_.exports=PL});var O_=h((Y8,R_)=>{"use strict";var TL=T_();R_.exports=TL});var D_=h((Q8,N_)=>{"use strict";C_();var RL=O_();N_.exports=RL});var q_=h((X8,L_)=>{"use strict";L_.exports=D_()});var U_=h((Z8,M_)=>{M_.exports=q_()});var F_=h(()=>{"use strict";var OL=ae(),NL=no();OL({target:"Array",stat:!0},{isArray:NL})});var G_=h((r7,j_)=>{"use strict";F_();var DL=Wt();j_.exports=DL.Array.isArray});var J_=h((n7,B_)=>{"use strict";var LL=G_();B_.exports=LL});var $_=h((i7,H_)=>{H_.exports=J_()});var W_=h((o7,V_)=>{"use strict";V_.exports=function(){}});var fn=h((a7,z_)=>{"use strict";z_.exports={}});var md=h((s7,Y_)=>{"use strict";var qL=we(),ML=He(),K_=qL.WeakMap;Y_.exports=ML(K_)&&/native code/.test(String(K_))});var cs=h((c7,X_)=>{"use strict";var UL=Nu(),FL=Za(),Q_=UL("keys");X_.exports=function(e){return Q_[e]||(Q_[e]=FL(e))}});var fo=h((l7,Z_)=>{"use strict";Z_.exports={}});var hn=h((u7,rw)=>{"use strict";var jL=md(),tw=we(),GL=De(),BL=un(),hd=_t(),gd=Xi(),JL=cs(),HL=fo(),ew="Object already initialized",vd=tw.TypeError,$L=tw.WeakMap,ls,mo,us,VL=function(e){return us(e)?mo(e):ls(e,{})},WL=function(e){return function(t){var r;if(!GL(t)||(r=mo(t)).type!==e)throw new vd("Incompatible receiver, "+e+" required");return r}};jL||gd.state?(Ut=gd.state||(gd.state=new $L),Ut.get=Ut.get,Ut.has=Ut.has,Ut.set=Ut.set,ls=function(e,t){if(Ut.has(e))throw new vd(ew);return t.facade=e,Ut.set(e,t),t},mo=function(e){return Ut.get(e)||{}},us=function(e){return Ut.has(e)}):(mn=JL("state"),HL[mn]=!0,ls=function(e,t){if(hd(e,mn))throw new vd(ew);return t.facade=e,BL(e,mn,t),t},mo=function(e){return hd(e,mn)?e[mn]:{}},us=function(e){return hd(e,mn)});var Ut,mn;rw.exports={set:ls,get:mo,has:us,enforce:VL,getterFor:WL}});var _d=h((d7,iw)=>{"use strict";var yd=at(),zL=_t(),nw=Function.prototype,KL=yd&&Object.getOwnPropertyDescriptor,bd=zL(nw,"name"),YL=bd&&(function(){}).name==="something",QL=bd&&(!yd||yd&&KL(nw,"name").configurable);iw.exports={EXISTS:bd,PROPER:YL,CONFIGURABLE:QL}});var wd=h((p7,ow)=>{"use strict";var XL=ro(),ZL=Math.max,eq=Math.min;ow.exports=function(e,t){var r=XL(e);return r<0?ZL(r+t,0):eq(r,t)}});var Sd=h((f7,sw)=>{"use strict";var tq=Ur(),rq=wd(),nq=zn(),aw=function(e){return function(t,r,n){var i=tq(t),o=nq(i);if(o===0)return!e&&-1;var a=rq(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}};sw.exports={includes:aw(!0),indexOf:aw(!1)}});var Ed=h((m7,lw)=>{"use strict";var iq=Ae(),Id=_t(),oq=Ur(),aq=Sd().indexOf,sq=fo(),cw=iq([].push);lw.exports=function(e,t){var r=oq(e),n=0,i=[],o;for(o in r)!Id(sq,o)&&Id(r,o)&&cw(i,o);for(;t.length>n;)Id(r,o=t[n++])&&(~aq(i,o)||cw(i,o));return i}});var ds=h((h7,uw)=>{"use strict";uw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var kd=h((g7,dw)=>{"use strict";var cq=Ed(),lq=ds();dw.exports=Object.keys||function(t){return cq(t,lq)}});var fw=h(pw=>{"use strict";var uq=at(),dq=ju(),pq=hr(),fq=mr(),mq=Ur(),hq=kd();pw.f=uq&&!dq?Object.defineProperties:function(t,r){fq(t);for(var n=mq(r),i=hq(r),o=i.length,a=0,s;o>a;)pq.f(t,s=i[a++],n[s]);return t}});var hw=h((y7,mw)=>{"use strict";var gq=Bn();mw.exports=gq("document","documentElement")});var ho=h((b7,Sw)=>{"use strict";var vq=mr(),yq=fw(),gw=ds(),bq=fo(),_q=hw(),wq=Mu(),Sq=cs(),vw=">",yw="<",Ad="prototype",xd="script",_w=Sq("IE_PROTO"),Cd=function(){},ww=function(e){return yw+xd+vw+e+yw+"/"+xd+vw},bw=function(e){e.write(ww("")),e.close();var t=e.parentWindow.Object;return e=null,t},Iq=function(){var e=wq("iframe"),t="java"+xd+":",r;return e.style.display="none",_q.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(ww("document.F=Object")),r.close(),r.F},ps,fs=function(){try{ps=new ActiveXObject("htmlfile")}catch(t){}fs=typeof document!="undefined"?document.domain&&ps?bw(ps):Iq():bw(ps);for(var e=gw.length;e--;)delete fs[Ad][gw[e]];return fs()};bq[_w]=!0;Sw.exports=Object.create||function(t,r){var n;return t!==null?(Cd[Ad]=vq(t),n=new Cd,Cd[Ad]=null,n[_w]=t):n=fs(),r===void 0?n:yq.f(n,r)}});var Ew=h((_7,Iw)=>{"use strict";var Eq=_e();Iw.exports=!Eq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Td=h((w7,Cw)=>{"use strict";var kq=_t(),Cq=He(),Aq=Hn(),xq=cs(),Pq=Ew(),kw=xq("IE_PROTO"),Pd=Object,Tq=Pd.prototype;Cw.exports=Pq?Pd.getPrototypeOf:function(e){var t=Aq(e);if(kq(t,kw))return t[kw];var r=t.constructor;return Cq(r)&&t instanceof r?r.prototype:t instanceof Pd?Tq:null}});var ms=h((S7,Aw)=>{"use strict";var Rq=un();Aw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Rq(e,t,r),e}});var Dd=h((I7,Tw)=>{"use strict";var Oq=_e(),Nq=He(),Dq=De(),Lq=ho(),xw=Td(),qq=ms(),Mq=Ze(),Uq=Jn(),Nd=Mq("iterator"),Pw=!1,vr,Rd,Od;[].keys&&(Od=[].keys(),"next"in Od?(Rd=xw(xw(Od)),Rd!==Object.prototype&&(vr=Rd)):Pw=!0);var Fq=!Dq(vr)||Oq(function(){var e={};return vr[Nd].call(e)!==e});Fq?vr={}:Uq&&(vr=Lq(vr));Nq(vr[Nd])||qq(vr,Nd,function(){return this});Tw.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:Pw}});var Ow=h((E7,Rw)=>{"use strict";var jq=ts(),Gq=Kn();Rw.exports=jq?{}.toString:function(){return"[object "+Gq(this)+"]"}});var go=h((k7,Dw)=>{"use strict";var Bq=ts(),Jq=hr().f,Hq=un(),$q=_t(),Vq=Ow(),Wq=Ze(),Nw=Wq("toStringTag");Dw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&($q(i,Nw)||Jq(i,Nw,{configurable:!0,value:t}),n&&!Bq&&Hq(i,"toString",Vq))}});var qw=h((C7,Lw)=>{"use strict";var zq=Dd().IteratorPrototype,Kq=ho(),Yq=Yi(),Qq=go(),Xq=fn(),Zq=function(){return this};Lw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Kq(zq,{next:Yq(+!n,r)}),Qq(e,i,!1,!0),Xq[i]=Zq,e}});var Uw=h((A7,Mw)=>{"use strict";var eM=Ae(),tM=ln();Mw.exports=function(e,t,r){try{return eM(tM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var jw=h((x7,Fw)=>{"use strict";var rM=De();Fw.exports=function(e){return rM(e)||e===null}});var Bw=h((P7,Gw)=>{"use strict";var nM=jw(),iM=String,oM=TypeError;Gw.exports=function(e){if(nM(e))return e;throw new oM("Can't set "+iM(e)+" as a prototype")}});var Hw=h((T7,Jw)=>{"use strict";var aM=Uw(),sM=De(),cM=cn(),lM=Bw();Jw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=aM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return cM(i),lM(o),sM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var vs=h((R7,eS)=>{"use strict";var uM=ae(),dM=qt(),hs=Jn(),Xw=_d(),pM=He(),fM=qw(),$w=Td(),Vw=Hw(),mM=go(),hM=un(),Ld=ms(),gM=Ze(),Ww=fn(),Zw=Dd(),vM=Xw.PROPER,yM=Xw.CONFIGURABLE,zw=Zw.IteratorPrototype,gs=Zw.BUGGY_SAFARI_ITERATORS,vo=gM("iterator"),Kw="keys",yo="values",Yw="entries",Qw=function(){return this};eS.exports=function(e,t,r,n,i,o,a){fM(r,t,n);var s=function(v){if(v===i&&p)return p;if(!gs&&v&&v in d)return d[v];switch(v){case Kw:return function(){return new r(this,v)};case yo:return function(){return new r(this,v)};case Yw:return function(){return new r(this,v)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[vo]||d["@@iterator"]||i&&d[i],p=!gs&&u||s(i),f=t==="Array"&&d.entries||u,m,g,b;if(f&&(m=$w(f.call(new e)),m!==Object.prototype&&m.next&&(!hs&&$w(m)!==zw&&(Vw?Vw(m,zw):pM(m[vo])||Ld(m,vo,Qw)),mM(m,c,!0,!0),hs&&(Ww[c]=Qw))),vM&&i===yo&&u&&u.name!==yo&&(!hs&&yM?hM(d,"name",yo):(l=!0,p=function(){return dM(u,this)})),i)if(g={values:s(yo),keys:o?p:s(Kw),entries:s(Yw)},a)for(b in g)(gs||l||!(b in d))&&Ld(d,b,g[b]);else uM({target:t,proto:!0,forced:gs||l},g);return(!hs||a)&&d[vo]!==p&&Ld(d,vo,p,{name:i}),Ww[t]=p,g}});var ys=h((O7,tS)=>{"use strict";tS.exports=function(e,t){return{value:e,done:t}}});var _s=h((N7,aS)=>{"use strict";var bM=Ur(),qd=W_(),rS=fn(),iS=hn(),_M=hr().f,wM=vs(),bs=ys(),SM=Jn(),IM=at(),oS="Array Iterator",EM=iS.set,kM=iS.getterFor(oS);aS.exports=wM(Array,"Array",function(e,t){EM(this,{type:oS,target:bM(e),index:0,kind:t})},function(){var e=kM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,bs(void 0,!0);switch(e.kind){case"keys":return bs(r,!1);case"values":return bs(t[r],!1)}return bs([r,t[r]],!1)},"values");var nS=rS.Arguments=rS.Array;qd("keys");qd("values");qd("entries");if(!SM&&IM&&nS.name!=="values")try{_M(nS,"name",{value:"values"})}catch(e){}});var Md=h(()=>{});var Ud=h((q7,sS)=>{"use strict";var CM=_e();sS.exports=!CM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ws=h((M7,cS)=>{"use strict";var AM=ms();cS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:AM(e,n,t[n],r);return e}});var Fd=h(lS=>{"use strict";var xM=Ed(),PM=ds(),TM=PM.concat("length","prototype");lS.f=Object.getOwnPropertyNames||function(t){return xM(t,TM)}});var fS=h((F7,pS)=>{"use strict";var RM=fr(),OM=Ur(),uS=Fd().f,NM=co(),dS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],DM=function(e){try{return uS(e)}catch(t){return NM(dS)}};pS.exports.f=function(t){return dS&&RM(t)==="Window"?DM(t):uS(OM(t))}});var hS=h((j7,mS)=>{"use strict";var LM=_e();mS.exports=LM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var yS=h((G7,vS)=>{"use strict";var qM=_e(),MM=De(),UM=fr(),gS=hS(),Ss=Object.isExtensible,FM=qM(function(){Ss(1)});vS.exports=FM||gS?function(t){return!MM(t)||gS&&UM(t)==="ArrayBuffer"?!1:Ss?Ss(t):!0}:Ss});var bo=h((B7,wS)=>{"use strict";var jM=ae(),GM=Ae(),BM=fo(),JM=De(),jd=_t(),HM=hr().f,bS=Fd(),$M=fS(),Gd=yS(),VM=Za(),WM=Ud(),_S=!1,yr=VM("meta"),zM=0,Bd=function(e){HM(e,yr,{value:{objectID:"O"+zM++,weakData:{}}})},KM=function(e,t){if(!JM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!jd(e,yr)){if(!Gd(e))return"F";if(!t)return"E";Bd(e)}return e[yr].objectID},YM=function(e,t){if(!jd(e,yr)){if(!Gd(e))return!0;if(!t)return!1;Bd(e)}return e[yr].weakData},QM=function(e){return WM&&_S&&Gd(e)&&!jd(e,yr)&&Bd(e),e},XM=function(){ZM.enable=function(){},_S=!0;var e=bS.f,t=GM([].splice),r={};r[yr]=1,e(r).length&&(bS.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},jM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$M.f}))},ZM=wS.exports={enable:XM,fastKey:KM,getWeakData:YM,onFreeze:QM};BM[yr]=!0});var IS=h((J7,SS)=>{"use strict";var eU=Ze(),tU=fn(),rU=eU("iterator"),nU=Array.prototype;SS.exports=function(e){return e!==void 0&&(tU.Array===e||nU[rU]===e)}});var Jd=h((H7,kS)=>{"use strict";var iU=Kn(),ES=Xa(),oU=sn(),aU=fn(),sU=Ze(),cU=sU("iterator");kS.exports=function(e){if(!oU(e))return ES(e,cU)||ES(e,"@@iterator")||aU[iU(e)]}});var AS=h(($7,CS)=>{"use strict";var lU=qt(),uU=ln(),dU=mr(),pU=Qi(),fU=Jd(),mU=TypeError;CS.exports=function(e,t){var r=arguments.length<2?fU(e):t;if(uU(r))return dU(lU(r,e));throw new mU(pU(e)+" is not iterable")}});var Is=h((V7,PS)=>{"use strict";var hU=qt(),xS=mr(),gU=Xa();PS.exports=function(e,t,r){var n,i;xS(e);try{if(n=gU(e,"return"),!n){if(t==="throw")throw r;return r}n=hU(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return xS(n),r}});var ks=h((W7,NS)=>{"use strict";var vU=eo(),yU=qt(),bU=mr(),_U=Qi(),wU=IS(),SU=zn(),TS=ot(),IU=AS(),EU=Jd(),RS=Is(),kU=TypeError,Es=function(e,t){this.stopped=e,this.result=t},OS=Es.prototype;NS.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=vU(t,n),l,d,u,p,f,m,g,b=function(w){return l&&RS(l,"normal",w),new Es(!0,w)},v=function(w){return i?(bU(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=EU(e),!d)throw new kU(_U(e)+" is not iterable");if(wU(d)){for(u=0,p=SU(e);p>u;u++)if(f=v(e[u]),f&&TS(OS,f))return f;return new Es(!1)}l=IU(e,d)}for(m=o?e.next:l.next;!(g=yU(m,l)).done;){try{f=v(g.value)}catch(w){RS(l,"throw",w)}if(typeof f=="object"&&f&&TS(OS,f))return f}return new Es(!1)}});var Cs=h((z7,DS)=>{"use strict";var CU=ot(),AU=TypeError;DS.exports=function(e,t){if(CU(t,e))return e;throw new AU("Incorrect invocation")}});var Hd=h((K7,qS)=>{"use strict";var xU=ae(),PU=we(),TU=bo(),RU=_e(),OU=un(),NU=ks(),DU=Cs(),LU=He(),qU=De(),MU=sn(),UU=go(),FU=hr().f,jU=jr().forEach,GU=at(),LS=hn(),BU=LS.set,JU=LS.getterFor;qS.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=PU[e],s=a&&a.prototype,c={},l;if(!GU||!LU(a)||!(i||s.forEach&&!RU(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),TU.enable();else{l=t(function(p,f){BU(DU(p,d),{type:e,collection:new a}),MU(f)||NU(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=JU(e);jU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&OU(d,p,function(m,g){var b=u(this).collection;if(!f&&i&&!qU(m))return p==="get"?void 0:!1;var v=b[p](m===0?0:m,g);return f?this:v})}),i||FU(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return UU(l,e,!1,!0),c[e]=l,xU({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var JS=h((Y7,BS)=>{"use strict";var HU=Ae(),MS=ws(),As=bo().getWeakData,$U=Cs(),VU=mr(),WU=sn(),$d=De(),zU=ks(),FS=jr(),US=_t(),jS=hn(),KU=jS.set,YU=jS.getterFor,QU=FS.find,XU=FS.findIndex,ZU=HU([].splice),eF=0,xs=function(e){return e.frozen||(e.frozen=new GS)},GS=function(){this.entries=[]},Vd=function(e,t){return QU(e.entries,function(r){return r[0]===t})};GS.prototype={get:function(e){var t=Vd(this,e);if(t)return t[1]},has:function(e){return!!Vd(this,e)},set:function(e,t){var r=Vd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=XU(this.entries,function(r){return r[0]===e});return~t&&ZU(this.entries,t,1),!!~t}};BS.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){$U(c,o),KU(c,{type:t,id:eF++,frozen:null}),WU(l)||zU(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=YU(t),s=function(c,l,d){var u=a(c),p=As(VU(l),!0);return p===!0?xs(u).set(l,d):p[u.id]=d,c};return MS(o,{delete:function(c){var l=a(this);if(!$d(c))return!1;var d=As(c);return d===!0?xs(l).delete(c):d&&US(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!$d(l))return!1;var u=As(l);return u===!0?xs(d).has(l):u&&US(u,d.id)}}),MS(o,r?{get:function(l){var d=a(this);if($d(l)){var u=As(l);if(u===!0)return xs(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 QS=h(()=>{"use strict";var tF=Ud(),HS=we(),Os=Ae(),$S=ws(),rF=bo(),nF=Hd(),VS=JS(),Ps=De(),Ts=hn().enforce,iF=_e(),oF=md(),So=Object,aF=Array.isArray,Rs=So.isExtensible,WS=So.isFrozen,sF=So.isSealed,zS=So.freeze,cF=So.seal,lF=!HS.ActiveXObject&&"ActiveXObject"in HS,_o,KS=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},YS=nF("WeakMap",KS,VS),Zn=YS.prototype,Ns=Os(Zn.set),uF=function(){return tF&&iF(function(){var e=zS([]);return Ns(new YS,e,1),!WS(e)})};oF&&(lF?(_o=VS.getConstructor(KS,"WeakMap",!0),rF.enable(),Wd=Os(Zn.delete),wo=Os(Zn.has),zd=Os(Zn.get),$S(Zn,{delete:function(e){if(Ps(e)&&!Rs(e)){var t=Ts(this);return t.frozen||(t.frozen=new _o),Wd(this,e)||t.frozen.delete(e)}return Wd(this,e)},has:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new _o),wo(this,t)||r.frozen.has(t)}return wo(this,t)},get:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new _o),wo(this,t)?zd(this,t):r.frozen.get(t)}return zd(this,t)},set:function(t,r){if(Ps(t)&&!Rs(t)){var n=Ts(this);n.frozen||(n.frozen=new _o),wo(this,t)?Ns(this,t,r):n.frozen.set(t,r)}else Ns(this,t,r);return this}})):uF()&&$S(Zn,{set:function(t,r){var n;return aF(t)&&(WS(t)?n=zS:sF(t)&&(n=cF)),Ns(this,t,r),n&&n(t),this}}));var Wd,wo,zd});var XS=h(()=>{"use strict";QS()});var eI=h((tY,ZS)=>{"use strict";_s();Md();XS();var dF=Wt();ZS.exports=dF.WeakMap});var rI=h((rY,tI)=>{"use strict";tI.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Kd=h(()=>{"use strict";_s();var pF=rI(),fF=we(),mF=go(),nI=fn();for(Ds in pF)mF(fF[Ds],Ds),nI[Ds]=nI.Array;var Ds});var oI=h((oY,iI)=>{"use strict";var hF=eI();Kd();iI.exports=hF});var sI=h((aY,aI)=>{aI.exports=oI()});var lI=h(()=>{"use strict";var gF=ae(),vF=Ki(),yF=Sd().indexOf,bF=ao(),Yd=vF([].indexOf),cI=!!Yd&&1/Yd([1],1,-0)<0,_F=cI||!bF("indexOf");gF({target:"Array",proto:!0,forced:_F},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return cI?Yd(this,t,r)||0:yF(this,t,r)}})});var dI=h((lY,uI)=>{"use strict";lI();var wF=Pt();uI.exports=wF("Array","indexOf")});var fI=h((uY,pI)=>{"use strict";var SF=ot(),IF=dI(),Qd=Array.prototype;pI.exports=function(e){var t=e.indexOf;return e===Qd||SF(Qd,e)&&t===Qd.indexOf?IF:t}});var hI=h((dY,mI)=>{"use strict";var EF=fI();mI.exports=EF});var vI=h((pY,gI)=>{gI.exports=hI()});var yI=h(()=>{"use strict";var kF=ae(),CF=jr().map,AF=oo(),xF=AF("map");kF({target:"Array",proto:!0,forced:!xF},{map:function(t){return CF(this,t,arguments.length>1?arguments[1]:void 0)}})});var _I=h((hY,bI)=>{"use strict";yI();var PF=Pt();bI.exports=PF("Array","map")});var SI=h((gY,wI)=>{"use strict";var TF=ot(),RF=_I(),Xd=Array.prototype;wI.exports=function(e){var t=e.map;return e===Xd||TF(Xd,e)&&t===Xd.map?RF:t}});var EI=h((vY,II)=>{"use strict";var OF=SI();II.exports=OF});var CI=h((yY,kI)=>{kI.exports=EI()});var AI=h(()=>{"use strict";var NF=ae(),DF=at(),LF=ho();NF({target:"Object",stat:!0,sham:!DF},{create:LF})});var PI=h((wY,xI)=>{"use strict";AI();var qF=Wt(),MF=qF.Object;xI.exports=function(t,r){return MF.create(t,r)}});var RI=h((SY,TI)=>{"use strict";var UF=PI();TI.exports=UF});var NI=h((IY,OI)=>{OI.exports=RI()});var Zd=h((EY,DI)=>{"use strict";var FF=hr();DI.exports=function(e,t,r){return FF.f(e,t,r)}});var MI=h((kY,qI)=>{"use strict";var jF=Bn(),GF=Zd(),BF=Ze(),JF=at(),LI=BF("species");qI.exports=function(e){var t=jF(e);JF&&t&&!t[LI]&&GF(t,LI,{configurable:!0,get:function(){return this}})}});var HI=h((CY,JI)=>{"use strict";var UI=ho(),HF=Zd(),FI=ws(),$F=eo(),VF=Cs(),WF=sn(),zF=ks(),KF=vs(),Ls=ys(),YF=MI(),Io=at(),jI=bo().fastKey,BI=hn(),GI=BI.set,ep=BI.getterFor;JI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){VF(l,o),GI(l,{type:t,index:UI(null),first:null,last:null,size:0}),Io||(l.size=0),WF(d)||zF(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=ep(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,g;return f?f.value=u:(p.last=f={index:g=jI(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Io?p.size++:l.size++,g!=="F"&&(p.index[g]=f)),l},c=function(l,d){var u=a(l),p=jI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return FI(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=UI(null),Io?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),Io?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=$F(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)}}),FI(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)}}),Io&&HF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ep(t),o=ep(n);KF(e,t,function(a,s){GI(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,Ls(void 0,!0)):Ls(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),YF(t)}}});var $I=h(()=>{"use strict";var QF=Hd(),XF=HI();QF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XF)});var VI=h(()=>{"use strict";$I()});var Br=h((RY,WI)=>{"use strict";var ZF=Qi(),ej=TypeError;WI.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 ej(ZF(e)+" is not a set")}});var KI=h((OY,zI)=>{"use strict";zI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Jr=h((NY,QI)=>{"use strict";var tj=Bn(),tp=KI(),YI=tj("Set"),rj=YI.prototype;QI.exports={Set:YI,add:tp("add",1),has:tp("has",1),remove:tp("delete",1),proto:rj}});var Hr=h((DY,XI)=>{"use strict";var nj=qt();XI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=nj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ei=h((LY,ZI)=>{"use strict";var ij=Hr();ZI.exports=function(e,t,r){return r?ij(e.keys(),t,!0):e.forEach(t)}});var qs=h((qY,t0)=>{"use strict";var e0=Jr(),oj=ei(),aj=e0.Set,sj=e0.add;t0.exports=function(e){var t=new aj;return oj(e,function(r){sj(t,r)}),t}});var ti=h((MY,r0)=>{"use strict";r0.exports=function(e){return e.size}});var i0=h((UY,n0)=>{"use strict";n0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var $r=h((FY,u0)=>{"use strict";var o0=ln(),c0=mr(),a0=qt(),cj=ro(),lj=i0(),s0="Invalid size",uj=RangeError,dj=TypeError,pj=Math.max,l0=function(e,t){this.set=e,this.size=pj(t,0),this.has=o0(e.has),this.keys=o0(e.keys)};l0.prototype={getIterator:function(){return lj(c0(a0(this.keys,this.set)))},includes:function(e){return a0(this.has,this.set,e)}};u0.exports=function(e){c0(e);var t=+e.size;if(t!==t)throw new dj(s0);var r=cj(t);if(r<0)throw new uj(s0);return new l0(e,r)}});var m0=h((jY,f0)=>{"use strict";var fj=Br(),p0=Jr(),mj=qs(),hj=ti(),gj=$r(),vj=ei(),yj=Hr(),bj=p0.has,d0=p0.remove;f0.exports=function(t){var r=fj(this),n=gj(t),i=mj(r);return hj(r)<=n.size?vj(r,function(o){n.includes(o)&&d0(i,o)}):yj(n.getIterator(),function(o){bj(r,o)&&d0(i,o)}),i}});var Vr=h((GY,h0)=>{"use strict";h0.exports=function(){return!1}});var g0=h(()=>{"use strict";var _j=ae(),wj=m0(),Sj=Vr(),Ij=!Sj("difference",function(e){return e.size===0});_j({target:"Set",proto:!0,real:!0,forced:Ij},{difference:wj})});var b0=h((HY,y0)=>{"use strict";var Ej=Br(),rp=Jr(),kj=ti(),Cj=$r(),Aj=ei(),xj=Hr(),Pj=rp.Set,v0=rp.add,Tj=rp.has;y0.exports=function(t){var r=Ej(this),n=Cj(t),i=new Pj;return kj(r)>n.size?xj(n.getIterator(),function(o){Tj(r,o)&&v0(i,o)}):Aj(r,function(o){n.includes(o)&&v0(i,o)}),i}});var _0=h(()=>{"use strict";var Rj=ae(),Oj=_e(),Nj=b0(),Dj=Vr(),Lj=!Dj("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||Oj(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Rj({target:"Set",proto:!0,real:!0,forced:Lj},{intersection:Nj})});var S0=h((WY,w0)=>{"use strict";var qj=Br(),Mj=Jr().has,Uj=ti(),Fj=$r(),jj=ei(),Gj=Hr(),Bj=Is();w0.exports=function(t){var r=qj(this),n=Fj(t);if(Uj(r)<=n.size)return jj(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return Gj(i,function(o){if(Mj(r,o))return Bj(i,"normal",!1)})!==!1}});var I0=h(()=>{"use strict";var Jj=ae(),Hj=S0(),$j=Vr(),Vj=!$j("isDisjointFrom",function(e){return!e});Jj({target:"Set",proto:!0,real:!0,forced:Vj},{isDisjointFrom:Hj})});var k0=h((YY,E0)=>{"use strict";var Wj=Br(),zj=ti(),Kj=ei(),Yj=$r();E0.exports=function(t){var r=Wj(this),n=Yj(t);return zj(r)>n.size?!1:Kj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var C0=h(()=>{"use strict";var Qj=ae(),Xj=k0(),Zj=Vr(),eG=!Zj("isSubsetOf",function(e){return e});Qj({target:"Set",proto:!0,real:!0,forced:eG},{isSubsetOf:Xj})});var x0=h((ZY,A0)=>{"use strict";var tG=Br(),rG=Jr().has,nG=ti(),iG=$r(),oG=Hr(),aG=Is();A0.exports=function(t){var r=tG(this),n=iG(t);if(nG(r)<n.size)return!1;var i=n.getIterator();return oG(i,function(o){if(!rG(r,o))return aG(i,"normal",!1)})!==!1}});var P0=h(()=>{"use strict";var sG=ae(),cG=x0(),lG=Vr(),uG=!lG("isSupersetOf",function(e){return!e});sG({target:"Set",proto:!0,real:!0,forced:uG},{isSupersetOf:cG})});var R0=h((rQ,T0)=>{"use strict";var dG=Br(),np=Jr(),pG=qs(),fG=$r(),mG=Hr(),hG=np.add,gG=np.has,vG=np.remove;T0.exports=function(t){var r=dG(this),n=fG(t).getIterator(),i=pG(r);return mG(n,function(o){gG(r,o)?vG(i,o):hG(i,o)}),i}});var O0=h(()=>{"use strict";var yG=ae(),bG=R0(),_G=Vr();yG({target:"Set",proto:!0,real:!0,forced:!_G("symmetricDifference")},{symmetricDifference:bG})});var D0=h((oQ,N0)=>{"use strict";var wG=Br(),SG=Jr().add,IG=qs(),EG=$r(),kG=Hr();N0.exports=function(t){var r=wG(this),n=EG(t).getIterator(),i=IG(r);return kG(n,function(o){SG(i,o)}),i}});var L0=h(()=>{"use strict";var CG=ae(),AG=D0(),xG=Vr();CG({target:"Set",proto:!0,real:!0,forced:!xG("union")},{union:AG})});var Eo=h((cQ,q0)=>{"use strict";var PG=Kn(),TG=String;q0.exports=function(e){if(PG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return TG(e)}});var j0=h((lQ,F0)=>{"use strict";var ip=Ae(),RG=ro(),OG=Eo(),NG=cn(),DG=ip("".charAt),M0=ip("".charCodeAt),LG=ip("".slice),U0=function(e){return function(t,r){var n=OG(NG(t)),i=RG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=M0(n,i),a<55296||a>56319||i+1===o||(s=M0(n,i+1))<56320||s>57343?e?DG(n,i):a:e?LG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};F0.exports={codeAt:U0(!1),charAt:U0(!0)}});var H0=h(()=>{"use strict";var qG=j0().charAt,MG=Eo(),B0=hn(),UG=vs(),G0=ys(),J0="String Iterator",FG=B0.set,jG=B0.getterFor(J0);UG(String,"String",function(e){FG(this,{type:J0,string:MG(e),index:0})},function(){var t=jG(this),r=t.string,n=t.index,i;return n>=r.length?G0(void 0,!0):(i=qG(r,n),t.index+=i.length,G0(i,!1))})});var V0=h((pQ,$0)=>{"use strict";_s();Md();VI();g0();_0();I0();C0();P0();O0();L0();H0();var GG=Wt();$0.exports=GG.Set});var z0=h((fQ,W0)=>{"use strict";var BG=V0();Kd();W0.exports=BG});var Y0=h((mQ,K0)=>{K0.exports=z0()});var X0=h(Q0=>{"use strict";Q0.f=Object.getOwnPropertySymbols});var rE=h((gQ,tE)=>{"use strict";var Z0=at(),JG=Ae(),HG=qt(),$G=_e(),op=kd(),VG=X0(),WG=Su(),zG=Hn(),KG=za(),ri=Object.assign,eE=Object.defineProperty,YG=JG([].concat);tE.exports=!ri||$G(function(){if(Z0&&ri({b:1},ri(eE({},"a",{enumerable:!0,get:function(){eE(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}),ri({},e)[r]!==7||op(ri({},t)).join("")!==n})?function(t,r){for(var n=zG(t),i=arguments.length,o=1,a=VG.f,s=WG.f;i>o;)for(var c=KG(arguments[o++]),l=a?YG(op(c),a(c)):op(c),d=l.length,u=0,p;d>u;)p=l[u++],(!Z0||HG(s,c,p))&&(n[p]=c[p]);return n}:ri});var iE=h(()=>{"use strict";var QG=ae(),nE=rE();QG({target:"Object",stat:!0,arity:2,forced:Object.assign!==nE},{assign:nE})});var aE=h((bQ,oE)=>{"use strict";iE();var XG=Wt();oE.exports=XG.Object.assign});var cE=h((_Q,sE)=>{"use strict";var ZG=aE();sE.exports=ZG});var uE=h((wQ,lE)=>{lE.exports=cE()});var ap=h((SQ,dE)=>{"use strict";dE.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 mE=h((IQ,fE)=>{"use strict";var eB=Ae(),tB=cn(),rB=Eo(),cp=ap(),pE=eB("".replace),nB=RegExp("^["+cp+"]+"),iB=RegExp("(^|[^"+cp+"])["+cp+"]+$"),sp=function(e){return function(t){var r=rB(tB(t));return e&1&&(r=pE(r,nB,"")),e&2&&(r=pE(r,iB,"$1")),r}};fE.exports={start:sp(1),end:sp(2),trim:sp(3)}});var yE=h((EQ,vE)=>{"use strict";var oB=_d().PROPER,aB=_e(),hE=ap(),gE="\u200B\x85\u180E";vE.exports=function(e){return aB(function(){return!!hE[e]()||gE[e]()!==gE||oB&&hE[e].name!==e})}});var bE=h(()=>{"use strict";var sB=ae(),cB=mE().trim,lB=yE();sB({target:"String",proto:!0,forced:lB("trim")},{trim:function(){return cB(this)}})});var wE=h((AQ,_E)=>{"use strict";bE();var uB=Pt();_E.exports=uB("String","trim")});var IE=h((xQ,SE)=>{"use strict";var dB=ot(),pB=wE(),lp=String.prototype;SE.exports=function(e){var t=e.trim;return typeof e=="string"||e===lp||dB(lp,e)&&t===lp.trim?pB:t}});var kE=h((PQ,EE)=>{"use strict";var fB=IE();EE.exports=fB});var AE=h((TQ,CE)=>{CE.exports=kE()});var TE=h(()=>{"use strict";var mB=ae(),xE=no(),hB=zu(),gB=De(),PE=wd(),vB=zn(),yB=Ur(),bB=Zu(),_B=Ze(),wB=oo(),SB=co(),IB=wB("slice"),EB=_B("species"),up=Array,kB=Math.max;mB({target:"Array",proto:!0,forced:!IB},{slice:function(t,r){var n=yB(this),i=vB(n),o=PE(t,i),a=PE(r===void 0?i:r,i),s,c,l;if(xE(n)&&(s=n.constructor,hB(s)&&(s===up||xE(s.prototype))?s=void 0:gB(s)&&(s=s[EB],s===null&&(s=void 0)),s===up||s===void 0))return SB(n,o,a);for(c=new(s===void 0?up:s)(kB(a-o,0)),l=0;o<a;o++,l++)o in n&&bB(c,l,n[o]);return c.length=l,c}})});var OE=h((NQ,RE)=>{"use strict";TE();var CB=Pt();RE.exports=CB("Array","slice")});var DE=h((DQ,NE)=>{"use strict";var AB=ot(),xB=OE(),dp=Array.prototype;NE.exports=function(e){var t=e.slice;return e===dp||AB(dp,e)&&t===dp.slice?xB:t}});var qE=h((LQ,LE)=>{"use strict";var PB=DE();LE.exports=PB});var UE=h((qQ,ME)=>{ME.exports=qE()});var pp=P(()=>{});var jE=h((UQ,FE)=>{"use strict";var TB=De(),RB=fr(),OB=Ze(),NB=OB("match");FE.exports=function(e){var t;return TB(e)&&((t=e[NB])!==void 0?!!t:RB(e)==="RegExp")}});var BE=h((FQ,GE)=>{"use strict";var DB=jE(),LB=TypeError;GE.exports=function(e){if(DB(e))throw new LB("The method doesn't accept regular expressions");return e}});var HE=h((jQ,JE)=>{"use strict";var qB=Ze(),MB=qB("match");JE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MB]=!1,"/./"[e](t)}catch(n){}}return!1}});var WE=h(()=>{"use strict";var UB=ae(),FB=Ki(),jB=Fu().f,GB=$u(),$E=Eo(),BB=BE(),JB=cn(),HB=HE(),$B=Jn(),VB=FB("".slice),WB=Math.min,VE=HB("startsWith"),zB=!$B&&!VE&&!!function(){var e=jB(String.prototype,"startsWith");return e&&!e.writable}();UB({target:"String",proto:!0,forced:!zB&&!VE},{startsWith:function(t){var r=$E(JB(this));BB(t);var n=GB(WB(arguments.length>1?arguments[1]:void 0,r.length)),i=$E(t);return VB(r,n,n+i.length)===i}})});var KE=h((JQ,zE)=>{"use strict";WE();var KB=Pt();zE.exports=KB("String","startsWith")});var QE=h((HQ,YE)=>{"use strict";var YB=ot(),QB=KE(),fp=String.prototype;YE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===fp||YB(fp,e)&&t===fp.startsWith?QB:t}});var ZE=h(($Q,XE)=>{"use strict";var XB=QE();XE.exports=XB});var tk=h((VQ,ek)=>{ek.exports=ZE()});var ak=h((WQ,ok)=>{"use strict";var nk=Ae(),ZB=ln(),eJ=De(),tJ=_t(),rk=co(),rJ=Gn(),ik=Function,nJ=nk([].concat),iJ=nk([].join),mp={},oJ=function(e,t,r){if(!tJ(mp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";mp[t]=ik("C,a","return new C("+iJ(n,",")+")")}return mp[t](e,r)};ok.exports=rJ?ik.bind:function(t){var r=ZB(this),n=r.prototype,i=rk(arguments,1),o=function(){var s=nJ(i,rk(arguments));return this instanceof o?oJ(r,s.length,s):r.apply(t,s)};return eJ(n)&&(o.prototype=n),o}});var ck=h(()=>{"use strict";var aJ=ae(),sk=ak();aJ({target:"Function",proto:!0,forced:Function.bind!==sk},{bind:sk})});var uk=h((YQ,lk)=>{"use strict";ck();var sJ=Pt();lk.exports=sJ("Function","bind")});var pk=h((QQ,dk)=>{"use strict";var cJ=ot(),lJ=uk(),hp=Function.prototype;dk.exports=function(e){var t=e.bind;return e===hp||cJ(hp,e)&&t===hp.bind?lJ:t}});var mk=h((XQ,fk)=>{"use strict";var uJ=pk();fk.exports=uJ});var gk=h((ZQ,hk)=>{hk.exports=mk()});function tc(e,t){xe.__h&&xe.__h(ve,e,Ro||t),Ro=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function er(e){return Ro=1,dJ(iC,e)}function dJ(e,t,r){var n=tc(ai++,2);if(n.t=e,!n.__c&&(n.__=[iC(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,Zk.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,Le.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 vn(e,t){var r=tc(ai++,3);!xe.__s&&nC(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function Ao(e){return Ro=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=tc(ai++,7);return nC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tt(e,t){return Ro=8,_r(function(){return e},t)}function pJ(e){var t=ve.context[e.__c],r=tc(ai++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function fJ(){for(var e;e=rC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Le.default)(t=e.__H.__h).call(t,Gs),(0,Le.default)(r=e.__H.__h).call(r,Ep),e.__H.__h=[]}catch(n){e.__H.__h=[],xe.__e(n,e.__v)}}function mJ(e){var t,r=function(){clearTimeout(n),Ek&&cancelAnimationFrame(t),(0,Zt.default)(e)},n=(0,Zt.default)(r,100);Ek&&(t=requestAnimationFrame(r))}function Gs(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Ep(e){var t=ve;e.__c=e.__(),ve=t}function nC(e,t){return!e||e.length!==t.length||(0,Ks.default)(t).call(t,function(r,n){return r!==e[n]})}function iC(e,t){return typeof t=="function"?t(e):t}function hJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kp(){throw new Error("setTimeout has not been defined")}function Cp(){throw new Error("clearTimeout has not been defined")}function aC(e){if(zt===Zt.default)return(0,Zt.default)(e,0);if((zt===kp||!zt)&&Zt.default)return zt=Zt.default,(0,Zt.default)(e,0);try{return zt(e,0)}catch(t){try{return zt.call(null,e,0)}catch(r){return zt.call(this,e,0)}}}function gJ(e){if(Kt===clearTimeout)return clearTimeout(e);if((Kt===Cp||!Kt)&&clearTimeout)return Kt=clearTimeout,clearTimeout(e);try{return Kt(e)}catch(t){try{return Kt.call(null,e)}catch(r){return Kt.call(this,e)}}}function vJ(){!ni||!zr||(ni=!1,zr.length?br=(0,ec.default)(zr).call(zr,br):Bs=-1,br.length&&sC())}function sC(){if(!ni){var e=aC(vJ);ni=!0;for(var t=br.length;t;){for(zr=br,br=[];++Bs<t;)zr&&zr[Bs].run();Bs=-1,t=br.length}zr=null,ni=!1,gJ(e)}}function cC(e,t){this.fun=e,this.array=t}function Sr(){}function _J(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 wJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function kJ(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function dC(e){return(0,Fp.default)(e).call(e)}function CJ(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Ap(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function Oo(e,t,r){return(0,jp.default)(e).call(e,t,r)}function Yt(e){return e.length}function Hp(e){return e.length}function Ms(e,t){return t.push(e),e}function AJ(e,t){return(0,To.default)(e).call(e,t).join("")}function ic(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nc,column:si,length:a,return:""}}function ko(e,t){return EJ(ic("",null,null,"",null,null,0),e,{length:-e.length},t)}function xJ(){return Pe}function PJ(){return Pe=ut>0?$e(li,--ut):0,si--,Pe===10&&(si=1,nc--),Pe}function wt(){return Pe=ut<pC?$e(li,ut++):0,si++,Pe===10&&(si=1,nc++),Pe}function tr(){return $e(li,ut)}function Js(){return ut}function Uo(e,t){return Oo(li,e,t)}function No(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 fC(e){return nc=si=1,pC=Yt(li=e),ut=0,[]}function mC(e){return li="",e}function Hs(e){return dC(Uo(ut-1,xp(e===91?e+2:e===40?e+1:e)))}function TJ(e){for(;(Pe=tr())&&Pe<33;)wt();return No(e)>2||No(Pe)>3?"":" "}function RJ(e,t){for(;--t&&wt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Uo(e,Js()+(t<6&&tr()==32&&wt()==32))}function xp(e){for(;wt();)switch(Pe){case e:return ut;case 34:case 39:e!==34&&e!==39&&xp(Pe);break;case 40:e===41&&xp(e);break;case 92:wt();break}return ut}function OJ(e,t){for(;wt()&&e+Pe!==57&&!(e+Pe===84&&tr()===47););return"/*"+Uo(t,ut-1)+"*"+rc(e===47?e:wt())}function NJ(e){for(;!No(tr());)wt();return Uo(e,ut)}function DJ(e){return mC($s("",null,null,null,[""],e=fC(e),0,[0],e))}function $s(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=wt()){case 40:if(m!=108&&$e(k,u-1)==58){Ap(k+=te(Hs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Hs(w);break;case 9:case 10:case 13:case 32:k+=TJ(m);break;case 92:k+=RJ(Js()-1,7);continue;case 47:switch(tr()){case 42:case 47:Ms(LJ(OJ(wt(),Js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Yt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Yt(k)-u&&Ms(f>32?Ck(k+";",n,r,u-1):Ck(te(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ms(C=kk(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)$s(k,t,C,C,x,o,u,s,A);else switch(p===99&&$e(k,3)===110?100:p){case 100:case 109:case 115:$s(e,C,C,n&&Ms(kk(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:$s(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Yt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&PJ()==125)continue}switch(k+=rc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Yt(k)-1)*v,v=1;break;case 64:tr()===45&&(k+=Hs(wt())),p=tr(),d=u=Yt(S=k+=NJ(Js())),w++;break;case 45:m===45&&Yt(k)==2&&(g=0)}}return o}function kk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Hp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Oo(e,u+1,u=IJ(g=a[m])),S=e;v<f;++v)(S=dC(g>0?p[v]+" "+w:te(w,/&\f/g,p[v])))&&(c[b++]=S);return ic(e,t,r,i===0?Bp:s,c,l,d)}function LJ(e,t,r){return ic(e,t,r,Gp,rc(xJ()),Oo(e,2,-2),0)}function Ck(e,t,r,n){return ic(e,t,r,Jp,Oo(e,0,n),Oo(e,n+1,-1),n)}function ii(e,t){for(var r="",n=Hp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function qJ(e,t,r,n){switch(e.type){case SJ:case Jp:return e.return=e.return||e.value;case Gp:return"";case uC:return e.return=e.value+"{"+ii(e.children,n)+"}";case Bp:e.value=e.props.join(",")}return Yt(r=ii(e.children,n))?e.return=e.value+"{"+r+"}":""}function MJ(e){var t=Hp(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 UJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function gC(e,t){switch(kJ(e,t)){case 5103:return K+"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 K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Qs+e+et+e+e;case 6828:case 4268:return K+e+et+e+e;case 6165:return K+e+et+"flex-"+e+e;case 5187:return K+e+te(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return K+e+et+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return K+e+et+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+et+te(e,"shrink","negative")+e;case 5292:return K+e+et+te(e,"basis","preferred-size")+e;case 6060:return K+"box-"+te(e,"-grow","")+K+e+et+te(e,"grow","positive")+e;case 4554:return K+te(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,K+"$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(Yt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Qs+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ap(e,"stretch")?gC(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,Yt(e)-3-(~Ap(e,"!important")&&10))){case 107:return te(e,":",":"+K)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+($e(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return K+e+et+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+et+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+et+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+et+e+e}return e}function yC(){if(Pk)return Us.exports;Pk=1;let e=yC();return Us.exports={default:e},Us.exports.default=e,Us.exports}function Do(e,t,r){var n,i="";return(0,Le.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function XJ(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 e2(e){var t=(0,eC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Lo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Qt={name:i.name,styles:i.styles,next:Qt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Qt={name:a.name,styles:a.styles,next:Qt},a=a.next;var s=o.styles+";";return s}return n2(e,t,r)}case"function":{if(e!==void 0){var c=Qt,l=r(e);return Qt=c,Lo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function n2(e,t,r){var n="";if((0,Po.default)(r))for(var i=0;i<r.length;i++)n+=Lo(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Tk(s)&&(n+=vp(o)+":"+Rk(o,s)+";")}else if((0,Po.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Tk(a[c])&&(n+=vp(o)+":"+Rk(o,a[c])+";");else{var l=Lo(e,t,a);switch(o){case"animation":case"animationName":{n+=vp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Kr(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="";Qt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Lo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Lo(r,t,e[s]),n){var c=o;i+=c[s]}Ok.lastIndex=0;for(var l="",d;(d=Ok.exec(i))!==null;)l+="-"+d[1];var u=XJ(i)+l;return{name:u,styles:i,next:Qt}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Kr(t)}function m2(e,t,r){var n=[],i=Do(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:--v2,__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 D.vnode&&D.vnode(l),l}function Fo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=er(e());return vn(()=>{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 L5(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 PC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=L5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function q5(e){let t=()=>PC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function F5(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Ye(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=U5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Xe("img",j(T({},a),{ref:l,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",j(T({},a),{ref:l,className:i,children:r}))}function j5(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,j(T({},i.props),{style:j(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Xe(e.type,j(T({},e.props),{style:j(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function $5(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 Hk(e,t,r){return ac.call(t,"css")?_(zp,IC(e,t),r):_(e,t,r)}function Q5(e,t,r){return ac.call(t,"css")?_(zp,IC(e,t),r):_(e,t,r)}function Np({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?_(Je,{children:t[s]},o):null}return _(Je,{children:i},o)})})}function eH({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=er(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function nH({children:e,style:t}){return _("div",{style:`${tH.styles} ${t}`,children:[e,_("svg",{style:`${rH.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 yH(e,t){return Ve(e,0)^45?(((t<<2^Ve(e,0))<<2^Ve(e,1))<<2^Ve(e,2))<<2^Ve(e,3):0}function JC(e){return(0,Fp.default)(e).call(e)}function bH(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Dp(e,t){return(0,wr.default)(e).call(e,t)}function Ve(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return(0,jp.default)(e).call(e,t,r)}function Xt(e){return e.length}function Zp(e){return e.length}function js(e,t){return t.push(e),e}function _H(e,t){return(0,To.default)(e).call(e,t).join("")}function pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:dc,column:ci,length:a,return:""}}function Co(e,t){return vH(pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function wH(){return Te}function SH(){return Te=dt>0?Ve(di,--dt):0,ci--,Te===10&&(ci=1,dc--),Te}function St(){return Te=dt<HC?Ve(di,dt++):0,ci++,Te===10&&(ci=1,dc++),Te}function rr(){return Ve(di,dt)}function Vs(){return dt}function jo(e,t){return qo(di,e,t)}function Mo(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 $C(e){return dc=ci=1,HC=Xt(di=e),dt=0,[]}function VC(e){return di="",e}function Ws(e){return JC(jo(dt-1,Lp(e===91?e+2:e===40?e+1:e)))}function IH(e){for(;(Te=rr())&&Te<33;)St();return Mo(e)>2||Mo(Te)>3?"":" "}function EH(e,t){for(;--t&&St()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return jo(e,Vs()+(t<6&&rr()==32&&St()==32))}function Lp(e){for(;St();)switch(Te){case e:return dt;case 34:case 39:e!==34&&e!==39&&Lp(Te);break;case 40:e===41&&Lp(e);break;case 92:St();break}return dt}function kH(e,t){for(;St()&&e+Te!==57&&!(e+Te===84&&rr()===47););return"/*"+jo(t,dt-1)+"*"+uc(e===47?e:St())}function CH(e){for(;!Mo(rr());)St();return jo(e,dt)}function AH(e){return VC(zs("",null,null,null,[""],e=$C(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=St()){case 40:if(m!=108&&Ve(k,u-1)==58){Dp(k+=Q(Ws(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Ws(w);break;case 9:case 10:case 13:case 32:k+=IH(m);break;case 92:k+=EH(Vs()-1,7);continue;case 47:switch(rr()){case 42:case 47:js(xH(kH(St(),Vs()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Xt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=Q(k,/\f/g,"")),f>0&&Xt(k)-u&&js(f>32?Vk(k+";",n,r,u-1):Vk(Q(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(js(C=$k(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)zs(k,t,C,C,x,o,u,s,A);else switch(p===99&&Ve(k,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,C,C,n&&js($k(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:zs(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Xt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&SH()==125)continue}switch(k+=uc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Xt(k)-1)*v,v=1;break;case 64:rr()===45&&(k+=Ws(St())),p=rr(),d=u=Xt(S=k+=CH(Vs())),w++;break;case 45:m===45&&Xt(k)==2&&(g=0)}}return o}function $k(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Zp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=qo(e,u+1,u=gH(g=a[m])),S=e;v<f;++v)(S=JC(g>0?p[v]+" "+w:Q(w,/&\f/g,p[v])))&&(c[b++]=S);return pc(e,t,r,i===0?Qp:s,c,l,d)}function xH(e,t,r){return pc(e,t,r,GC,uc(wH()),qo(e,2,-2),0)}function Vk(e,t,r,n){return pc(e,t,r,Xp,qo(e,0,n),qo(e,n+1,-1),n)}function oi(e,t){for(var r="",n=Zp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function PH(e,t,r,n){switch(e.type){case hH:if(e.children.length)break;case mH:case Xp:return e.return=e.return||e.value;case GC:return"";case BC:return e.return=e.value+"{"+oi(e.children,n)+"}";case Qp:e.value=e.props.join(",")}return Xt(r=oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function TH(e){var t=Zp(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 RH(e){return function(t){t.root||(t=t.return)&&e(t)}}function WC(e,t){switch(yH(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+Zs+e+tt+e+e;case 6828:case 4268:return Y+e+tt+e+e;case 6165:return Y+e+tt+"flex-"+e+e;case 5187:return Y+e+Q(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Y+e+tt+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return Y+e+tt+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+tt+Q(e,"shrink","negative")+e;case 5292:return Y+e+tt+Q(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+Q(e,"-grow","")+Y+e+tt+Q(e,"grow","positive")+e;case 4554:return Y+Q(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,Y+"$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(Xt(e)-1-t>6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Zs+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dp(e,"stretch")?WC(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,Xt(e)-3-(~Dp(e,"!important")&&10))){case 107:return Q(e,":",":"+Y)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Ve(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return Y+e+tt+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+tt+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+tt+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+tt+e+e}return e}function zk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Sp(e,t,r){var n=[],i=Do(e,n,r);return n.length<2?r:i+t(n)}function Qk(e){if(e==="top"){let t=0;zC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Kk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Kk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Yk)})}else if(e==="center"){let t=0;KC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Yk)})}}function yn(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield xo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Mr(_(zH,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,xo.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&&(Mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),xo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var qp,Zk,Le,ec,Ks,Zt,Ys,Po,Mp,wr,To,eC,tC,Up,Fp,jp,iX,Ip,ai,ve,gp,vk,Ro,rC,xe,yk,bk,_k,wk,Sk,Ik,Ek,oC,ke,zt,Kt,br,ni,zr,Bs,yJ,qe,bJ,lC,et,Qs,K,Gp,Bp,Jp,SJ,uC,IJ,rc,EJ,nc,si,pC,ut,Pe,li,FJ,jJ,GJ,Ak,BJ,JJ,HJ,$J,VJ,hC,WJ,xk,zJ,KJ,YJ,vC,Us,Pk,QJ,$p,oc,ZJ,t2,r2,bC,Tk,vp,Rk,Ok,Qt,i2,_C,wC,Nk,ac,Vp,SC,Wp,sc,o2,a2,s2,c2,l2,Pp,Tp,IC,u2,zp,d2,Dk,p2,f2,h2,g2,yp,Lk,bp,_p,v2,wp,y2,b2,_2,w2,S2,I2,E2,qk,k2,C2,A2,Mk,x2,P2,T2,Uk,R2,O2,N2,Fk,D2,L2,q2,M2,U2,F2,j2,G2,B2,J2,H2,jk,$2,V2,W2,z2,K2,Y2,Q2,X2,Z2,e5,t5,Gk,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,I5,E5,k5,C5,A5,x5,P5,T5,R5,O5,N5,EC,kC,CC,Rp,D5,AC,xC,Xs,xo,Bk,M5,cc,U5,TC,RC,OC,G5,B5,J5,Op,H5,NC,DC,lc,Kp,ui,Jk,Wr,LC,gn,V5,W5,z5,K5,Y5,Fs,qC,Yp,Se,X5,Z5,tH,rH,Ft,iH,oH,MC,UC,FC,jC,Yr,aH,sH,cH,lH,uH,dH,pH,fH,tt,Zs,Y,GC,Qp,Xp,mH,BC,hH,gH,uc,vH,dc,ci,HC,dt,Te,di,OH,NH,DH,Wk,LH,qH,MH,UH,FH,jH,GH,BH,JH,HH,$H,VH,Kk,Yk,zC,KC,Ir,Xk,WH,zH,oX,nr=P(()=>{"use strict";jn();qp=se(Jy(),1),Zk=se(Zy(),1),Le=se(pb(),1),ec=se(Ab(),1),Ks=se(qb(),1),Zt=se(e_(),1);ss();ss();Ys=se(U_(),1),Po=se($_(),1),Mp=se(sI(),1),wr=se(vI(),1),To=se(CI(),1),eC=se(NI(),1),tC=se(Y0(),1),Up=se(uE(),1),Fp=se(AE(),1),jp=se(UE(),1);pp();pp();iX=se(tk(),1),Ip=se(gk(),1),Ro=0,rC=[],xe=D,yk=xe.__b,bk=xe.__r,_k=xe.diffed,wk=xe.__c,Sk=xe.unmount,Ik=xe.__;xe.__b=function(e){ve=null,yk&&yk(e)},xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ik&&Ik(e,t)},xe.__r=function(e){var t,r,n;bk&&bk(e),ai=0;var i=(ve=e.__c).__H;i&&(gp===ve?(i.__h=[],ve.__h=[],(0,Le.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Le.default)(r=i.__h).call(r,Gs),(0,Le.default)(n=i.__h).call(n,Ep),i.__h=[],ai=0)),gp=ve},xe.diffed=function(e){var t;_k&&_k(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(rC.push(r)!==1&&vk===xe.requestAnimationFrame||((vk=xe.requestAnimationFrame)||mJ)(fJ)),(0,Le.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),gp=ve=null},xe.__c=function(e,t){(0,Ks.default)(t).call(t,function(r){try{var n,i;(0,Le.default)(n=r.__h).call(n,Gs),r.__h=(0,qp.default)(i=r.__h).call(i,function(o){return!o.__||Ep(o)})}catch(o){(0,Ks.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],xe.__e(o,r.__v)}}),wk&&wk(e,t)},xe.unmount=function(e){var t;Sk&&Sk(e);var r,n=e.__c;n&&n.__H&&((0,Le.default)(t=n.__H.__).call(t,function(i){try{Gs(i)}catch(o){r=o}}),n.__H=void 0,r&&xe.__e(r,n.__v))};Ek=typeof requestAnimationFrame=="function";oC={exports:{}},ke=oC.exports={};(function(){try{typeof Zt.default=="function"?zt=Zt.default:zt=kp}catch(e){zt=kp}try{typeof clearTimeout=="function"?Kt=clearTimeout:Kt=Cp}catch(e){Kt=Cp}})();br=[],ni=!1,Bs=-1;ke.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 cC(e,t)),br.length===1&&!ni&&aC(sC)};cC.prototype.run=function(){this.fun.apply(null,this.array)};ke.title="browser";ke.browser=!0;ke.env={};ke.argv=[];ke.version="";ke.versions={};ke.on=Sr;ke.addListener=Sr;ke.once=Sr;ke.off=Sr;ke.removeListener=Sr;ke.removeAllListeners=Sr;ke.emit=Sr;ke.prependListener=Sr;ke.prependOnceListener=Sr;ke.listeners=function(e){return[]};ke.binding=function(e){throw new Error("process.binding is not supported")};ke.cwd=function(){return"/"};ke.chdir=function(e){throw new Error("process.chdir is not supported")};ke.umask=function(){return 0};yJ=oC.exports,qe=hJ(yJ),bJ=Ys.default||void 0||self;lC=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,Le.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_J(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Le.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-",Qs="-moz-",K="-webkit-",Gp="comm",Bp="rule",Jp="decl",SJ="@import",uC="@keyframes",IJ=Math.abs,rc=String.fromCharCode,EJ=Up.default;nc=1,si=1,pC=0,ut=0,Pe=0,li="";FJ=function(e,t,r){for(var n=0,i=0;n=i,i=tr(),n===38&&i===12&&(t[r]=1),!No(i);)wt();return Uo(e,ut)},jJ=function(e,t){var r=-1,n=44;do switch(No(n)){case 0:n===38&&tr()===12&&(t[r]=1),e[r]+=FJ(ut-1,t,r);break;case 2:e[r]+=Hs(n);break;case 4:if(n===44){e[++r]=tr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rc(n)}while(n=wt());return e},GJ=function(e,t){return mC(jJ(fC(e),t))},Ak=new Mp.default,BJ=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&&!Ak.get(r))&&!n){Ak.set(e,!0);for(var i=[],o=GJ(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]}}},JJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},HJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",$J=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,HJ)>-1},VJ=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($J(c))return;break}}(0,Le.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".')})}}}},hC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},WJ=function(e,t){for(var r=e-1;r>=0;r--)if(!hC(t[r]))return!0;return!1},xk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},zJ=function(e,t,r){hC(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."),xk(e)):WJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xk(e)))};KJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jp:e.return=gC(e.value,e.length);break;case uC:return ii([ko(e,{value:te(e.value,"@","@"+K)})],n);case Bp:if(e.length)return AJ(e.props,function(i){switch(CJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ii([ko(e,{props:[te(i,/:(read-\w+)/,":"+Qs+"$1")]})],n);case"::placeholder":return ii([ko(e,{props:[te(i,/:(plac\w+)/,":"+K+"input-$1")]}),ko(e,{props:[te(i,/:(plac\w+)/,":"+Qs+"$1")]}),ko(e,{props:[te(i,/:(plac\w+)/,et+"input-$1")]})],n)}return""})}},YJ=[KJ],vC=function(e){var t=e.key;if(qe.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,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,wr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||YJ;if(qe.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,Le.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[BJ,JJ];qe.env.NODE_ENV!=="production"&&c.push(VJ({get compat(){return f.compat}}),zJ);{var l,d=[qJ,qe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==Gp&&l.insert(m.value+"{}"))}:UJ(function(m){l.insert(m)})],u=MJ((0,ec.default)(c).call(c,n,d)),p=function(m){return ii(DJ(m),u)};s=function(m,g,b,v){l=b,qe.env.NODE_ENV!=="production"&&(0,To.default)(g)!==void 0&&(l={insert:function(w){b.insert(w+(0,To.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new lC({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},Us={exports:{}};yC();QJ=!0;$p=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||QJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},oc=function(e,t,r){$p(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)}};ZJ={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};t2=/[A-Z]|^ms/g,r2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bC=function(e){return e.charCodeAt(1)===45},Tk=function(e){return e!=null&&typeof e!="boolean"},vp=e2(function(e){return bC(e)?e:e.replace(t2,"-$&").toLowerCase()}),Rk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(r2,function(r,n,i){return Qt={name:n,styles:i,next:Qt},n})}return ZJ[e]!==1&&!bC(e)&&typeof t=="number"&&t!==0?t+"px":t};Ok=/label:\s*([^\s;{]+)\s*(;|$)/g;i2=function(e){return e()},_C=ld?ld:!1,wC=_C||i2,Nk=_C||Yn,ac={}.hasOwnProperty,Vp=an(typeof HTMLElement<"u"?vC({key:"css"}):null);qe.env.NODE_ENV!=="production"&&(Vp.displayName="EmotionCacheContext");SC=Vp.Provider,Wp=function(e){return dd(function(t,r){var n=Xn(Vp);return e(t,n,r)})},sc=an({});qe.env.NODE_ENV!=="production"&&(sc.displayName="EmotionThemeContext");o2=function(e){var t=e.split(".");return t[t.length-1]},a2=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 o2(t[1])},s2=new tC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),c2=function(e){return e.replace(/\$/g,"-")},l2=function(e){if(e)for(var t=e.split(`
|
|
24
|
+
`),r=0;r<t.length;r++){var n=a2(t[r]);if(n){if(s2.has(n))break;if(/^[A-Z]/.test(n))return c2(n)}}},Pp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",IC=function(e,t){var r,n;if(qe.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)ac.call(t,o)&&(i[o]=t[o]);if(i[Pp]=e,qe.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=l2(new Error().stack);a&&(i[Tp]=a)}return i},u2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return $p(t,r,n),wC(function(){return oc(t,r,n)}),null},zp=Wp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Pp],a=[i],s="";typeof e.className=="string"?s=Do(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Kr(a,void 0,Xn(sc));if(qe.env.NODE_ENV!=="production"&&(0,wr.default)(n=c.name).call(n,"-")===-1){var l=e[Tp];l&&(c=Kr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)ac.call(e,u)&&u!=="css"&&u!==Pp&&(qe.env.NODE_ENV==="production"||u!==Tp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Xe(Je,null,Xe(u2,{cache:t,serialized:c,isStringTag:typeof o=="string"}),Xe(o,d))});qe.env.NODE_ENV!=="production"&&(zp.displayName="EmotionCssPropInternal");d2={version:"11.10.5"},Dk=!1,p2=Wp(function(e,t){qe.env.NODE_ENV!=="production"&&!Dk&&(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?"),Dk=!0);var r=e.styles,n=Kr([r],void 0,Xn(sc)),i=Qn();return Nk(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]),Nk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&oc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});qe.env.NODE_ENV!=="production"&&(p2.displayName="EmotionGlobal");f2=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,Po.default)(o))a=e(o);else{qe.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};h2=function(e){var t=e.cache,r=e.serializedArr;return wC(function(){for(var n=0;n<r.length;n++)oc(t,r[n],!1)}),null},g2=Wp(function(e,t){var r=!1,n=[],i=function(){if(r&&qe.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=Kr(l,t.registered);return n.push(u),$p(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&qe.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 m2(t.registered,i,f2(l))},a={css:i,cx:o,theme:Xn(sc)},s=e.children(a);return r=!0,Xe(Je,null,Xe(h2,{cache:t,serializedArr:n}),s)});qe.env.NODE_ENV!=="production"&&(g2.displayName="EmotionClassNames");qe.env.NODE_ENV!=="production"&&(yp=!0,Lk=typeof jest<"u"||typeof vi<"u",yp&&!Lk&&(bp=typeof Ys.default<"u"?Ys.default:yp?window:bJ,_p="__EMOTION_REACT_"+d2.version.split(".")[0]+"__",bp[_p]&&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."),bp[_p]=!0));v2=0;wp={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"}},y2=L`
|
|
25
25
|
width: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
27
|
margin: 0 auto;
|
|
28
|
-
`,
|
|
28
|
+
`,b2=`
|
|
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
|
-
`,b2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=Zt(!1),[l,d]=Zt(null),[u,p]=Zt(!1),f=Ao(null),m=Ao(null),g=Ao(!1);vn(()=>{if(s&&f.current){let R=f.current.ownerDocument,F=R.createElement("style");F.innerHTML=y2,R.head.appendChild(F);let ee={overflow:R.body.style.overflow,position:R.body.style.position,width:R.body.style.width};return R.body.style.overflow="hidden",R.body.style.position="fixed",R.body.style.width="100%",()=>{R.head.contains(F)&&R.head.removeChild(F),R.body.style.overflow=ee.overflow,R.body.style.position=ee.position,R.body.style.width=ee.width}}},[s]),vn(()=>{t?!s&&!g.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=Tt(R=>{R.target===m.current&&(l==="leave"?(d(null),c(!1),g.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),v=Tt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),w=Tt(R=>{r||(R.preventDefault(),R.stopPropagation(),v())},[v]),S=Tt(()=>{!g.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=Tt(()=>s&&!g.current,[s]);if(vn(()=>{if(a){let R={show:S,hide:v,isOpen:x};typeof a=="function"?a(R):a&&(a.current=R)}},[S,v,x,a]),!s)return null;let A=o==="center",C=j(T({},_p.drawerBackdrop),{alignItems:A?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:l==="enter"||u?1:0,transition:"opacity 0.3s"},B=A?j(T({},_p.centerDrawer),{pointerEvents:"auto"}):j(T({},_p.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!A&&(B.transform="translateY(100%)");let le=l?A?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:k,className:N,onClick:w}),_("div",{ref:m,style:j(T({},B),{opacity:A&&l===null&&!u?0:1}),className:`${A&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:R=>R.stopPropagation(),children:_("div",{style:v2.styles,children:e})})]})},_2=ud(b2);w2={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"},S2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},I2={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!"},Lk={jolicoin:w2,joligem:S2,loginGuide:I2},E2={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"},k2={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"},C2={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"},qk={jolicoin:E2,joligem:k2,loginGuide:C2},A2={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"},x2={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"},P2={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!"},Mk={jolicoin:A2,joligem:x2,loginGuide:P2},T2={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"},R2={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"},O2={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!"},Uk={jolicoin:T2,joligem:R2,loginGuide:O2},N2={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"},D2={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"},L2={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!"},q2={jolicoin:N2,joligem:D2,loginGuide:L2},M2={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"},U2={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"},F2={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!"},j2={jolicoin:M2,joligem:U2,loginGuide:F2},G2={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"},B2={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"},J2={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},Fk={jolicoin:G2,joligem:B2,loginGuide:J2},H2={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"},$2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},V2={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!"},W2={jolicoin:H2,joligem:$2,loginGuide:V2},z2={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"},K2={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"},Y2={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"},Q2={jolicoin:z2,joligem:K2,loginGuide:Y2},X2={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"},Z2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},e5={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!"},jk={jolicoin:X2,joligem:Z2,loginGuide:e5},t5={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"},r5={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"},n5={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!"},i5={jolicoin:t5,joligem:r5,loginGuide:n5},o5={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"},a5={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"},s5={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"},c5={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},u5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},d5={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!"},p5={jolicoin:l5,joligem:u5,loginGuide:d5},f5={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"},m5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},h5={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 !"},g5={jolicoin:f5,joligem:m5,loginGuide:h5},v5={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"},y5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},b5={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},_5={jolicoin:v5,joligem:y5,loginGuide:b5},w5={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"},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 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"},I5={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!"},E5={jolicoin:w5,joligem:S5,loginGuide:I5},k5={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"},C5={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"},A5={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!"},x5={jolicoin:k5,joligem:C5,loginGuide:A5},P5={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"},T5={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"},R5={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!"},O5={jolicoin:P5,joligem:T5,loginGuide:R5},IC={en:{translations:Lk},en_GB:{translations:Lk},zh:{translations:qk},"zh-Hans":{translations:qk},"zh-Hant":{translations:c5},id:{translations:Mk},in:{translations:Mk},ms:{translations:Uk},my:{translations:Uk},th:{translations:q2},vi:{translations:j2},fil:{translations:Fk},tl:{translations:Fk},es:{translations:W2},ja:{translations:Q2},pt:{translations:jk},pt_PT:{translations:jk},ko:{translations:i5},de:{translations:p5},fr:{translations:g5},hi:{translations:_5},ru:{translations:E5},bn:{translations:x5},tr:{translations:O5}},EC=an(void 0),kC=({definition:e,children:t})=>{let r={translations:e};return _(EC.Provider,{value:r,children:t})},Tp=null,N5={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"},CC=e=>{Tp=e},AC=()=>{var e;if(typeof Tp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Tp();return(e=N5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Xs=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=L5(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 y(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"&&(xC(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"))}},xo=new Xs(99999998,"auto"),Gk=new Xs(99999999,"none"),q5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Fo(),c={container:L`
|
|
72
|
+
`,_2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=er(!1),[l,d]=er(null),[u,p]=er(!1),f=Ao(null),m=Ao(null),g=Ao(!1);vn(()=>{if(s&&f.current){let R=f.current.ownerDocument,F=R.createElement("style");F.innerHTML=b2,R.head.appendChild(F);let ee={overflow:R.body.style.overflow,position:R.body.style.position,width:R.body.style.width};return R.body.style.overflow="hidden",R.body.style.position="fixed",R.body.style.width="100%",()=>{R.head.contains(F)&&R.head.removeChild(F),R.body.style.overflow=ee.overflow,R.body.style.position=ee.position,R.body.style.width=ee.width}}},[s]),vn(()=>{t?!s&&!g.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=Tt(R=>{R.target===m.current&&(l==="leave"?(d(null),c(!1),g.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),v=Tt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),w=Tt(R=>{r||(R.preventDefault(),R.stopPropagation(),v())},[v]),S=Tt(()=>{!g.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=Tt(()=>s&&!g.current,[s]);if(vn(()=>{if(a){let R={show:S,hide:v,isOpen:x};typeof a=="function"?a(R):a&&(a.current=R)}},[S,v,x,a]),!s)return null;let A=o==="center",C=j(T({},wp.drawerBackdrop),{alignItems:A?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:l==="enter"||u?1:0,transition:"opacity 0.3s"},B=A?j(T({},wp.centerDrawer),{pointerEvents:"auto"}):j(T({},wp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!A&&(B.transform="translateY(100%)");let le=l?A?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:k,className:N,onClick:w}),_("div",{ref:m,style:j(T({},B),{opacity:A&&l===null&&!u?0:1}),className:`${A&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:R=>R.stopPropagation(),children:_("div",{style:y2.styles,children:e})})]})},w2=dd(_2);S2={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"},I2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},E2={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!"},qk={jolicoin:S2,joligem:I2,loginGuide:E2},k2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},C2={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"},A2={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"},Mk={jolicoin:k2,joligem:C2,loginGuide:A2},x2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},P2={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"},T2={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!"},Uk={jolicoin:x2,joligem:P2,loginGuide:T2},R2={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"},O2={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"},N2={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!"},Fk={jolicoin:R2,joligem:O2,loginGuide:N2},D2={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"},L2={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"},q2={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!"},M2={jolicoin:D2,joligem:L2,loginGuide:q2},U2={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"},F2={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"},j2={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!"},G2={jolicoin:U2,joligem:F2,loginGuide:j2},B2={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"},J2={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"},H2={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!"},jk={jolicoin:B2,joligem:J2,loginGuide:H2},$2={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"},V2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},W2={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!"},z2={jolicoin:$2,joligem:V2,loginGuide:W2},K2={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"},Y2={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"},Q2={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"},X2={jolicoin:K2,joligem:Y2,loginGuide:Q2},Z2={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"},e5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},t5={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!"},Gk={jolicoin:Z2,joligem:e5,loginGuide:t5},r5={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"},n5={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"},i5={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!"},o5={jolicoin:r5,joligem:n5,loginGuide:i5},a5={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"},s5={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"},c5={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"},l5={jolicoin:a5,joligem:s5,loginGuide:c5},u5={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"},d5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},p5={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!"},f5={jolicoin:u5,joligem:d5,loginGuide:p5},m5={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"},h5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},g5={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 !"},v5={jolicoin:m5,joligem:h5,loginGuide:g5},y5={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"},b5={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"},_5={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!"},w5={jolicoin:y5,joligem:b5,loginGuide:_5},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"},I5={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"},E5={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!"},k5={jolicoin:S5,joligem:I5,loginGuide:E5},C5={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"},A5={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"},x5={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!"},P5={jolicoin:C5,joligem:A5,loginGuide:x5},T5={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"},R5={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"},O5={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!"},N5={jolicoin:T5,joligem:R5,loginGuide:O5},EC={en:{translations:qk},en_GB:{translations:qk},zh:{translations:Mk},"zh-Hans":{translations:Mk},"zh-Hant":{translations:l5},id:{translations:Uk},in:{translations:Uk},ms:{translations:Fk},my:{translations:Fk},th:{translations:M2},vi:{translations:G2},fil:{translations:jk},tl:{translations:jk},es:{translations:z2},ja:{translations:X2},pt:{translations:Gk},pt_PT:{translations:Gk},ko:{translations:o5},de:{translations:f5},fr:{translations:v5},hi:{translations:w5},ru:{translations:k5},bn:{translations:P5},tr:{translations:N5}},kC=an(void 0),CC=({definition:e,children:t})=>{let r={translations:e};return _(kC.Provider,{value:r,children:t})},Rp=null,D5={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"},AC=e=>{Rp=e},xC=()=>{var e;if(typeof Rp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Rp();return(e=D5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Xs=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=vC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=q5(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 y(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"&&(PC(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"))}},xo=new Xs(99999998,"auto"),Bk=new Xs(99999999,"none"),M5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Fo(),c={container:L`
|
|
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))})]})},cc=e=>{let t=!1,r=
|
|
109
|
+
`.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},cc=e=>{let t=!1,r=xC(),n=EC[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)),Mr(_(SC,{value:a,children:_(CC,{definition:n,children:_(w2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(M5,j(T({},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))}xo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return y(this,null,function*(){let p=yield xo.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.")}}},U5=(e,t={threshold:.6})=>{let r=Ao(null),n=Ao(!1),i=Tt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return vn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};TC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Ye(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",j(T({className:r,style:s},i),{children:e}))},RC=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=Ye(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=T({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?j5(e,t):e;return _("div",j(T({className:i,style:u},a),{children:p}))};OC=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:c="",style:l={}}=p,d=Ye(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({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",j(T({className:c,style:f},d),{children:e}))},G5=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Gr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Gr(()=>{},[e,t]);return _(OC,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(F5,{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)},B5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Ye(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(TC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(RC,{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=>_(G5,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},J5=ud(B5),Op=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Op||{}),H5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=er(null),s=Tt(u=>{i==null||i({type:u.type===Op.Quit?"quit":"dismiss"})},[i]),c=Tt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=Fo();if(!t.length)return _(Je,{});let d=Tt(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 vn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Mr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(
|
|
231
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return vn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Mr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(J5,{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===Op.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})},NC=e=>{let t=cc({title:e.title,content:_(H5,{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},DC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",lc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Kp="https://fe-oss.jolibox.com/static/coin/gem.png";ui=()=>{let e=pJ(kC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=$5(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}},Jk=({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})}),Wr={coinInfo:L`
|
|
232
232
|
display: flex;
|
|
233
233
|
width: calc(100% - 40px);
|
|
234
234
|
max-width: 720px;
|
|
@@ -288,7 +288,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
288
288
|
font-size: 16px;
|
|
289
289
|
font-weight: 600;
|
|
290
290
|
color: #d9d9d9;
|
|
291
|
-
`},
|
|
291
|
+
`},LC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=lc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=ui(),l=14,d=_r(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Wr.coinInfo.styles,children:[!i&&_("div",{style:Wr.coinAmount.styles,children:[_(Jk,{text:c("jolicoin.price"),initialFontSize:l,styles:Wr.coinLabelContainer.styles}),_("div",{style:Wr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Wr.gemIcon.styles:Wr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Wr.coinAmountBalance.styles,children:_(Jk,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:Wr.coinValueText.styles})})]})},gn={card:L`
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
294
294
|
align-items: center;
|
|
@@ -324,17 +324,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
324
324
|
font-size: 16px;
|
|
325
325
|
color: #C093FF;
|
|
326
326
|
font-weight: bold;
|
|
327
|
-
`}
|
|
327
|
+
`},V5=L`
|
|
328
328
|
box-sizing: border-box;
|
|
329
329
|
width: 100%;
|
|
330
330
|
aspect-ratio: 1/1;
|
|
331
|
-
`,
|
|
331
|
+
`,W5=L`
|
|
332
332
|
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
333
333
|
display: flex;
|
|
334
334
|
flex-direction: column;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
-webkit-tap-highlight-color: transparent;
|
|
337
|
-
`,
|
|
337
|
+
`,z5=e=>_("div",{style:V5.styles,children:_("div",{style:W5.styles,children:_("div",{style:`${gn.card.styles} ${e.option.id===e.selectedId?gn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:gn.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?gn.gemIcon.styles:gn.coinIcon.styles}),_("span",{style:gn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:gn.price.styles,children:e.option.price})]})})}),K5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=lc})=>{let o=Fo(),a=s=>{r==null||r(s)};return _(TC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(RC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(OC,{span:o==="landscape"?4:8,children:_(z5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},Y5=ud(K5);Fs={toggleSwitch:L`
|
|
338
338
|
position: relative;
|
|
339
339
|
display: inline-block;
|
|
340
340
|
width: 33px;
|
|
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
371
371
|
&:before {
|
|
372
372
|
transform: translateX(18px);
|
|
373
373
|
}
|
|
374
|
-
`},
|
|
374
|
+
`},qC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>Q5("label",{css:Fs.toggleSwitch,children:[Hk("input",{css:Fs.toggleInput,type:"checkbox",checked:e,onChange:t}),Hk("span",{css:[Fs.toggleSlider,e&&Fs.toggleSliderActive]})]}),Yp=()=>_("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)"})})})]}),Se={modal:L`
|
|
375
375
|
font-family: PingFangSC-Regular;
|
|
376
376
|
background-color: #1a1a1a;
|
|
377
377
|
color: white;
|
|
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
459
459
|
border-radius: 2px;
|
|
460
460
|
margin: 0 auto;
|
|
461
461
|
-webkit-tap-highlight-color: transparent;
|
|
462
|
-
`},
|
|
462
|
+
`},X5=({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]=er(r),u=Fo(),{t:p}=ui(),f=()=>{i(l)},m=_r(()=>n==="JOLI_GEM"?Kp:lc,[n]),g=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=Tt(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${Se.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:Se.header.styles,children:[_(LC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:Se.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(Yp,{})})]}),_("div",{style:Se.content.styles,children:[_("h2",{style:Se.title.styles,children:p(g)}),!r&&_("div",{style:Se.autoDeductOption.styles,children:[_("span",{style:L`
|
|
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)}),_(
|
|
467
|
+
`.styles,children:p(b)}),_(qC,{enableAutoDeduct:l,toggleEnableAutoDeduct:v})]}),_("section",{style:`${Se.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Se.confirmButton.styles} ${Se.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${Se.cancelButton.styles} ${Se.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},Z5=({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]=er(r),{t:f}=ui(),[m,g]=er(()=>{var C,k;return((C=n.find(B=>B.defaultSelected))==null?void 0:C.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),b=Fo(),v=()=>{o(m)},w=Tt(C=>{console.log(C),g(C),c(C)},[]),S=Tt(()=>{p(!u),s(!u)},[u]),x=_r(()=>i==="JOLI_GEM"?Kp:lc,[i]),A=_r(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:Se.modal.styles,children:[_("div",{style:Se.header.styles,children:[_(LC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:Se.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(Yp,{})})]}),_("div",{style:Se.content.styles,children:[_("div",{style:L`
|
|
468
468
|
padding: 16px 0px;
|
|
469
|
-
`.styles,children:_(
|
|
469
|
+
`.styles,children:_(Y5,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:x,selectedId:m,currency:i,onSelect:C=>w(C.id)})}),!r&&_("div",{style:Se.autoDeductOption.styles,children:[_("span",{style:L`
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
font-weight: 400;
|
|
472
472
|
line-height: 1.2;
|
|
473
473
|
color: #979797;
|
|
474
|
-
`.styles,children:f(A)}),_(
|
|
474
|
+
`.styles,children:f(A)}),_(qC,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),_("section",{style:`${Se.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Se.confirmButton.styles} ${Se.buttonFlex.styles}`,onClick:v,children:f(l)}),_("button",{style:`${Se.cancelButton.styles} ${Se.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};tH=L`
|
|
475
475
|
display: inline-flex;
|
|
476
476
|
align-items: center;
|
|
477
477
|
justify-content: center;
|
|
@@ -488,7 +488,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
488
488
|
white-space: nowrap;
|
|
489
489
|
text-overflow: ellipsis;
|
|
490
490
|
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
491
|
-
`,
|
|
491
|
+
`,rH=L`
|
|
492
492
|
position: absolute;
|
|
493
493
|
left: 20%;
|
|
494
494
|
bottom: -9px;
|
|
@@ -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
|
-
`}),nH={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()},iH=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=ui(),l=nH[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Ft.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(Z5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Ft.header.styles,children:_("button",{style:`${Ft.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(Kp,{})})}),_("div",{style:Ft.introduct.styles,children:[s?_("span",{style:Ft.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Ft.introductTitle.styles,children:_(Op,{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:`${Ft.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:_(rH,{children:_(Op,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(Be,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Ft.confirmButton.styles} ${Ft.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:`${Ft.cancelButton.styles} ${Ft.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},qC=e=>{let t=cc({title:"",content:_(Q5,{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},MC=e=>{let t=cc({title:"",content:_(X5,{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},UC=e=>{let t=cc({title:"",content:_(iH,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},FC=new Map,Yr=(e,t)=>{FC.set(e,t)};Yr(/^\{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"})})})]})})});Yr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:NC;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Yr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:zp,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:j(T({},n),{verticalAlign:"middle"})})});oH=/^\{slot-i18n-(.+?)\}/,aH=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ui(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Yr(oH,(e,t)=>{var n;let r=e[1];return r?_(aH,{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:""}))});sH=/^\{slot-i18ntran-(.+?)\}/,cH=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=ui(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Op,{children:o||n,values:T(T({},t),a)})},lH={coin:e=>_(Be,{children:[_("img",{src:NC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Yr(sH,(e,t)=>{var n,i;let r=e[1];return r?_(cH,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:lH,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});uH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Yr(/^\{slot-success\}/,(e,t)=>_("img",{src:uH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));dH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Yr(/^\{slot-error\}/,(e,t)=>_("img",{src:dH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));pH="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=";Yr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=pH,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:j(T({},n),{verticalAlign:"middle"})})});et="-ms-",Zs="-moz-",Y="-webkit-",jC="comm",Yp="rule",Qp="decl",fH="@import",GC="@keyframes",mH="@layer",hH=Math.abs,uc=String.fromCharCode,gH=Mp.default;dc=1,ci=1,JC=0,dt=0,Te=0,di="";RH=function(e,t,r){for(var n=0,i=0;n=i,i=tr(),n===38&&i===12&&(t[r]=1),!Mo(i);)St();return jo(e,dt)},OH=function(e,t){var r=-1,n=44;do switch(Mo(n)){case 0:n===38&&tr()===12&&(t[r]=1),e[r]+=RH(dt-1,t,r);break;case 2:e[r]+=Ws(n);break;case 4:if(n===44){e[++r]=tr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=uc(n)}while(n=St());return e},NH=function(e,t){return $C(OH(HC(e),t))},Vk=new qp.default,DH=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&&!Vk.get(r))&&!n){Vk.set(e,!0);for(var i=[],o=NH(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]}}},LH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};qH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qp:e.return=VC(e.value,e.length);break;case GC:return oi([Co(e,{value:Q(e.value,"@","@"+Y)})],n);case Yp:if(e.length)return bH(e.props,function(i){switch(yH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oi([Co(e,{props:[Q(i,/:(read-\w+)/,":"+Zs+"$1")]})],n);case"::placeholder":return oi([Co(e,{props:[Q(i,/:(plac\w+)/,":"+Y+"input-$1")]}),Co(e,{props:[Q(i,/:(plac\w+)/,":"+Zs+"$1")]}),Co(e,{props:[Q(i,/:(plac\w+)/,et+"input-$1")]})],n)}return""})}},MH=[qH],UH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,wr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||MH,i={},o,a=[];o=e.container||document.head,(0,Le.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[DH,LH];{var l,d=[xH,TH(function(m){l.insert(m)})],u=PH((0,ec.default)(c).call(c,n,d)),p=function(m){return oi(CH(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new cC({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};FH=function(e){var t=UH(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=Kr(s,t.registered,void 0);return oc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Kr(s,t.registered),d="animation-"+l.name;return Wk(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=Kr(s,t.registered);Wk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return wp(t.registered,r,jH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Le.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,Sp.default)(Do).call(Do,null,t.registered),merge:(0,Sp.default)(wp).call(wp,null,t.registered,r)}},jH=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,Po.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},GH=FH({key:"css"}),BH=GH.css,JH=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of FC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<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=BH`
|
|
552
|
+
`}),iH={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()},oH=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=ui(),l=iH[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Ft.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(eH,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Ft.header.styles,children:_("button",{style:`${Ft.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(Yp,{})})}),_("div",{style:Ft.introduct.styles,children:[s?_("span",{style:Ft.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Ft.introductTitle.styles,children:_(Np,{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:`${Ft.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:_(nH,{children:_(Np,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(Je,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Ft.confirmButton.styles} ${Ft.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:`${Ft.cancelButton.styles} ${Ft.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},MC=e=>{let t=cc({title:"",content:_(X5,{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},UC=e=>{let t=cc({title:"",content:_(Z5,{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},FC=e=>{let t=cc({title:"",content:_(oH,{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},jC=new Map,Yr=(e,t)=>{jC.set(e,t)};Yr(/^\{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"})})})]})})});Yr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:DC;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Yr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Kp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:j(T({},n),{verticalAlign:"middle"})})});aH=/^\{slot-i18n-(.+?)\}/,sH=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ui(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Yr(aH,(e,t)=>{var n;let r=e[1];return r?_(sH,{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:""}))});cH=/^\{slot-i18ntran-(.+?)\}/,lH=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=ui(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Np,{children:o||n,values:T(T({},t),a)})},uH={coin:e=>_(Je,{children:[_("img",{src:DC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Yr(cH,(e,t)=>{var n,i;let r=e[1];return r?_(lH,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:uH,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});dH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Yr(/^\{slot-success\}/,(e,t)=>_("img",{src:dH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));pH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Yr(/^\{slot-error\}/,(e,t)=>_("img",{src:pH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));fH="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=";Yr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=fH,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:j(T({},n),{verticalAlign:"middle"})})});tt="-ms-",Zs="-moz-",Y="-webkit-",GC="comm",Qp="rule",Xp="decl",mH="@import",BC="@keyframes",hH="@layer",gH=Math.abs,uc=String.fromCharCode,vH=Up.default;dc=1,ci=1,HC=0,dt=0,Te=0,di="";OH=function(e,t,r){for(var n=0,i=0;n=i,i=rr(),n===38&&i===12&&(t[r]=1),!Mo(i);)St();return jo(e,dt)},NH=function(e,t){var r=-1,n=44;do switch(Mo(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=OH(dt-1,t,r);break;case 2:e[r]+=Ws(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=uc(n)}while(n=St());return e},DH=function(e,t){return VC(NH($C(e),t))},Wk=new Mp.default,LH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wk.get(r))&&!n){Wk.set(e,!0);for(var i=[],o=DH(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]}}},qH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};MH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Xp:e.return=WC(e.value,e.length);break;case BC:return oi([Co(e,{value:Q(e.value,"@","@"+Y)})],n);case Qp:if(e.length)return _H(e.props,function(i){switch(bH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oi([Co(e,{props:[Q(i,/:(read-\w+)/,":"+Zs+"$1")]})],n);case"::placeholder":return oi([Co(e,{props:[Q(i,/:(plac\w+)/,":"+Y+"input-$1")]}),Co(e,{props:[Q(i,/:(plac\w+)/,":"+Zs+"$1")]}),Co(e,{props:[Q(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},UH=[MH],FH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,wr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||UH,i={},o,a=[];o=e.container||document.head,(0,Le.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[LH,qH];{var l,d=[PH,RH(function(m){l.insert(m)})],u=TH((0,ec.default)(c).call(c,n,d)),p=function(m){return oi(AH(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new lC({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};jH=function(e){var t=FH(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=Kr(s,t.registered,void 0);return oc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Kr(s,t.registered),d="animation-"+l.name;return zk(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=Kr(s,t.registered);zk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Sp(t.registered,r,GH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Le.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,Ip.default)(Do).call(Do,null,t.registered),merge:(0,Ip.default)(Sp).call(Sp,null,t.registered,r)}},GH=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,Po.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},BH=jH({key:"css"}),JH=BH.css,HH=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of jC.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=JH`
|
|
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})}
|
|
563
|
+
`;return n.length===1?n[0]:_("div",{className:o,children:n})},$H=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=er(!0);vn(()=>{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=L`
|
|
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})}
|
|
613
|
+
`;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},VH=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Kk=Math.max(20,VH),Yk=12,zC=[],KC=[];Ir=(e,t)=>y(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield Bk.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"?zC:KC;s.push(o);let c=HH(e,t),l=xC(),d=EC[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Qk(a),Bk.release()}setTimeout(()=>Qk(a),0),Mr(_(SC,{value:n,children:_(CC,{definition:d,children:_($H,{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)}),Xk={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"}},WH=`
|
|
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
|
-
`,WH=()=>_("div",{style:Qk.container,children:[_("style",{children:VH}),_("div",{style:Qk.spinner})]});tX=yn()});function KC(){return y(this,null,function*(){if(Zp)return Zp;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return Zp=r,r})}function YC(){return y(this,null,function*(){let e=new lt;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(ef)return e.resolve(!0),e.promise;let t=yield KC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;ef=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};G("RecommendedGuide",T({eventType:$.View},o));let a=OC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(ef=!1,s.type){case"quit":G("RecommendedGuide",{eventType:$.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;zH(l),G("GameItem",{eventType:$.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Zp,zH,ef,QC=P(()=>{"use strict";J();ue();O();rr();vt();xt();Zp=null;KC();zH=e=>{var a;let{data:t}=U("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;U("openSchemaSync",{schema:o})},ef=!1});function YH(e){let t=T(T({},KH),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:S,iframeTransition:x}=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;`,ne=document.createElement("div"),ne.id="jolibox-modal-container",ne.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${S};`;let A=document.createElement("div");A.id="jolibox-modal-loading",A.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Rt=document.createElement("iframe"),Rt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,Rt.src=r,Rt.onload=()=>{A.parentNode&&A.parentNode.removeChild(A),Rt.style.opacity="1",g(),c==null||c(),be.emit("onModalIframeLoaded",{url:r})},k.appendChild(Rt),k.appendChild(A),ne.appendChild(k),i){let B=document.createElement("div");B.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;",B.innerHTML="\u2715",B.onclick=v,ne.appendChild(B)}pe.appendChild(ne),document.body.appendChild(pe),pe.addEventListener("click",function(B){B.target===pe&&v()}),o&&b()}function g(){!pe||!ne||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!ne)return;let w=A=>{l=A.touches[0].clientY},S=A=>{if(!u)return;d=A.touches[0].clientY;let C=d-l;C>0&&(ne&&(ne.style.transition="none",ne.style.transform=`translateY(${C}px)`),A.preventDefault())},x=()=>{!u||!ne||(ne.style.transition=a?"transform 0.3s ease":"none",d-l>80?v():ne.style.transform="translateY(0)")};ne.addEventListener("touchstart",w),ne.addEventListener("touchmove",S),ne.addEventListener("touchend",x)}function v(){!pe||!ne||!u||(a?(ne.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,ne=null,Rt=null,s==null||s(),be.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function XC(){return window.joliboxUI=j(T({},window.joliboxUI),{createIframeModal:YH}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),ne&&ne.parentNode&&ne.parentNode.removeChild(ne),Rt&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),pe=null,ne=null,Rt=null}}var KH,pe,ne,Rt,ZC=P(()=>{"use strict";ue();J();O();KH={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,ne=null,Rt=null});var nA={};Jm(nA,{config:()=>s3});function XH(){Ba.on("isAdShowing",e=>{hc=e,Dr(hc)&&U("updateContainerConfigSync",{displayCapsuleButton:!hc,webviewId:I.webviewId})})}function ZH(){be.on("onInterceptSystemExit",({intercept:e})=>{eA=e})}function e3(){be.on("onInterceptBackPress",({intercept:e})=>{QH=e}),Ne("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;rA(t),be.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function t3(){be.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),G("onDocumentReady",{start_timestamp:vc,timestamp:Date.now()})})}function r3(){Ne("onI18nChanged",({language:e})=>{be.emit("onI18nChanged",{i18n:e})})}function n3(e){I.mpType==="game"&&Lt.start(e)}function i3(){Ne("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),be.emit("LifecycleEvent.onReady",T({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),G("joliboxServiceReady",{start_timestamp:vc,timestamp:Date.now()}),n3(t),CC(()=>I.language)}),Ne("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;rA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function o3(){let e=()=>{G("onBeforeExit",{timestamp:Date.now()}),fc==null||fc(),mc==null||mc(),Lt.close(Date.now()-vc)},t=()=>hc||eA;At.onDoExit(()=>y(this,null,function*(){return t()?!0:Dr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):gc!=null&&gc.canShowRecommended&&!tA&&(yield YC())?!0:(e(),!1)})),At.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function a3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(gc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function s3(){vc=Date.now(),i3(),XH(),ZH(),e3(),o3(),t3(),r3(),a3(),mc=XC(),fc=hg()}var fc,mc,vc,hc,gc,eA,QH,tA,rA,iA=P(()=>{"use strict";ue();J();O();xt();gg();cu();QC();vt();rr();ZC();hc=!1,gc=null,eA=!1,QH=!1,tA=!1,rA=e=>{Dr(e)&&(tA=e)};At.onReady(()=>{})});var oA,c3,l3,u3,d3,aA=P(()=>{"use strict";O();Ge();ue();J();oA=V(),c3="env",l3="getSystemInfoSync",u3=z(l3,{implement:()=>{var r;let e=U("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),d3=z(c3,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});oA.registerCommand("API.getSystemInfoSync",u3);oA.registerCommand("API.env",d3);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var sA=h(tf=>{"use strict";O();Ge();gt();ue();xt();J();var p3="exitGame",f3="onReady",m3="onJoliboxShow",h3="onJoliboxHide",yc=V(),bc=Ln(Ie),g3=oe(p3,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>y(tf,null,function*(){bc(e).call(tf),Dr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&ph("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield ye("exitAppAsync")})}),v3=z(m3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterForeground",()=>{t.call(this),Hi.emit("visible",!0)})}}),y3=z(h3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterBackground",()=>{t.call(this),Hi.emit("visible",!1)})}}),b3=z(f3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);be.on("LifecycleEvent.onReady",r=>{t(r)})}});yc.registerCommand("LifecycleSDK.exit",g3);yc.registerCommand("LifecycleSDK.onReady",b3);yc.registerCommand("LifecycleSDK.onJoliboxShow",v3);yc.registerCommand("LifecycleSDK.onJoliboxHide",y3);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function cA(e){let t={};if(!rn(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 lA(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 uA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function dA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!rn(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 pA=P(()=>{"use strict";O()});var _3,w3,rf,nf,fA,S3,I3,E3,mA=P(()=>{"use strict";Lr();Zl();Ge();pA();O();gt();J();_3=15,w3=wa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),rf=0,nf=[],fA=Ln(Ie),S3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},I3=e=>{let t=new lt,r=()=>{};return z("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=()=>y(this,null,function*(){var s,c,l;let a=fA(i.fail);try{if(rf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=cA((s=i.headers)!=null?s:{}),b=lA(i.method),v=uA(i.timeout),w=dA(i.url,b,d),S=fA(i.success),x=Object.assign({},i,{method:b,header:m?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let A=w3(w,x);{let{response:C}=yield A,{code:k,data:B,message:le}=C;if(B&&typeof B=="object"&&"status"in B&&B.status!==200)throw Ye({code:B.status||-1,msg:`request:fail status ${B.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:B,message:le!=null?le:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:B})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{rf-=1,(l=nf.shift())==null||l()}});return rf>=_3?(r=()=>{S3(nf,a=>a===o)},nf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Ye({code:-1,msg:"request:fail abort"})),r()}}},E3=V();E3.registerCommand("HttpSDK.request",I3);M("request",{version:"1.0.0"})});var k3,C3,A3,of,hA=P(()=>{"use strict";O();ue();Ge();k3=z("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)),U("showKeyboardSync",j(T({},e),{defaultValue:r,maxLength:t}))}});M("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"}});C3=z("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){U("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});A3=z("hideKeyboard",{implement(){U("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});of=V();of.registerCommand("KeyboardSDK.showKeyboard",k3);of.registerCommand("KeyboardSDK.updateKeyboard",C3);of.registerCommand("KeyboardSDK.hideKeyboard",A3)});var gA=h(_c=>{"use strict";O();Ge();xt();var af=V(),x3=oe("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=>y(_c,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Lt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Lt.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),P3=oe("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number(),variation:E.string().optional()})),implement:e=>y(_c,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Lt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Lt.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),T3=oe("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>y(_c,[r],function*({levelId:e,name:t}){let n=[];n.push(Lt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Lt.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});af.registerCommand("TaskTrackerSDK.levelFinished",x3);af.registerCommand("TaskTrackerSDK.gamePlayEnded",P3);af.registerCommand("TaskTrackerSDK.levelUpgrade",T3);M("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"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var sf,cf,lf,R3,vA,wc=P(()=>{"use strict";J();ue();Ge();O();Lr();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});sf=new Map;Ne("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=sf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),sf.delete(r))});cf=(e,t=!1)=>y(void 0,null,function*(){var m,g,b;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Ye({code:-1,msg:"login failed"});let s=new lt;sf.set(a,s);let c=yield s.promise,l=U("envSync"),d=(b=(g=l==null?void 0:l.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:j(T({},c),{isSubUser:d})});let v=c,{extra:u,appAccountToken:p}=v,f=Ke(v,["extra","appAccountToken"]);return be.emit("onLoginComplete",f),t?c:f}),lf=oe("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield cf(e!=null?e:{})})}}),R3=oe("checkSession",{implement(){return y(this,null,function*(){var r;let{data:{isLogin:e}}=yield ye("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),vA=V();vA.registerCommand("API.login",lf);vA.registerCommand("API.checkSession",R3)});var yA,bA=P(()=>{"use strict";yA=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 bn(e){return t=>y(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield qr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=_A(i.data),a=yA(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 _n(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield qr(e),n=_A((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield yt(e,JSON.stringify(n))})}var _A,wA,SA,IA,EA,kA,CA,AA,xA,PA,TA,RA,OA,NA,DA,Go=P(()=>{"use strict";Ji();bA();_A=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};wA=bn("joli_coin_use_modal_frequency"),SA=bn("joli_coin_payment_frequency"),IA=bn("joli_coin_unlogin_modal_frequency"),EA=bn("joli_gem_use_modal_frequency"),kA=bn("joli_gem_payment_frequency"),CA=bn("joli_gem_unlogin_modal_frequency"),AA=bn("subscription_frequency");xA=_n("joli_coin_use_modal_frequency"),PA=_n("joli_coin_payment_frequency"),TA=_n("joli_coin_unlogin_modal_frequency"),RA=_n("joli_gem_use_modal_frequency"),OA=_n("joli_gem_payment_frequency"),NA=_n("joli_gem_unlogin_modal_frequency"),DA=_n("subscription_frequency")});var uf,Sc,df=P(()=>{"use strict";vt();uf=Promise.resolve(),Sc=(e,t)=>y(void 0,null,function*(){uf=uf.then(()=>y(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield uf})});var Ic,Ec,jt,kc,wn,Gt,Er,Cc,Ac,Sn,pi,O3,q,kr,Cr,Fe=P(()=>{"use strict";O();Ic="UNLOCK_OPTIONS_CHANGED",Ec="INVOKE_PAYMENT",jt="ON_PAYMENT_RESULT",kc="ON_USE_MODAL_EVENT",wn="ON_USE_MODAL_RESULT",Gt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",Cc="INVOKE_UNLOGIN_MODAL_EVENT",Ac="INVOKE_SUBSCRIPTION_EVENT",Sn="ON_USE_SUBSCRIPTION_RESULT",pi=new $t,O3=()=>({on:pi.on.bind(pi),off:pi.off.bind(pi),emit:pi.emit.bind(pi)}),q=O3(),kr={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 je(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var nr=P(()=>{"use strict"});var MA=h(pf=>{"use strict";Go();df();Fe();Fe();rr();xt();O();nr();var N3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:wA,frequencyUpdater:xA,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:EA,frequencyUpdater:RA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},LA=yn(),qA=je(q,Gt);qA.getData();q.on(kc,(e,t)=>y(pf,null,function*(){let r=t.currency,n=N3[r];if(e.includes("ADS-")){yield LA.show({duration:3e3});let c=yield qA.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),LA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(wn,{useModalResult:"CONFIRM"});return}if(!l){q.emit(wn,{useModalResult:"FAILED"});return}}G(n.trackEvents.popupShow,{eventType:$.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=qC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{G(n.trackEvents.coinUnlock,{targetType:"game",eventType:$.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(wn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&G(n.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:r}),q.emit(wn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>y(pf,null,function*(){yield Sc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function UA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var FA=P(()=>{"use strict";gt()});var Bo=P(()=>{"use strict"});var D3,fi,It,L3,In,xc=P(()=>{"use strict";Bo();O();J();vt();D3=()=>{let[e,t]=[ya,ba].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:fi,createPaymentInternalError:It}=D3(),L3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",In=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw fi(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw fi((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${L3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var mf,jA,GA=P(()=>{"use strict";vt();xc();Bo();mf=class extends In{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw fi((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),It((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},jA=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new mf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var BA,JA=P(()=>{"use strict";BA={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 hf,HA,gf,vf,q3,yf,$A=P(()=>{"use strict";vt();xc();Bo();ue();O();J();rr();JA();hf=new Map;Ne("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=hf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&va(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw It(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=BA[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}hf.delete(t)}});HA=e=>y(void 0,null,function*(){var n,i;let t=new lt,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw It("orderUUID is null",1002);hf.set(r,t)}catch(o){throw It((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),gf=class extends In{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=()=>y(this,null,function*(){return yield HA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},vf=class extends In{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=()=>y(this,null,function*(){return yield HA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw It("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"}})}},q3={android:gf,ios:vf},yf=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=q3[I.platform];if(!s)throw It("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 fi(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var En,bf=P(()=>{"use strict";FA();GA();$A();En=UA();En.registerPaymentHandler("JOLI_COIN",jA());En.registerPaymentHandler("JOLI_COIN_IAP",yf());En.registerPaymentHandler("JOLI_GEM_IAP",yf())});function VA(n,i){return y(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 yt(a,c),yield yt(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 Pc(n,i){return y(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 qr(s),{data:u}=yield qr(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(()=>y(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),g=Date.now();yield yt(s,m),yield yt(c,g.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 yt(s,null),yield yt(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 yt(s,d),yield yt(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 _f=P(()=>{"use strict";Ji()});function M3(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=>!Ui(r.totalAmountStr))}var Qr,wf,ir,Oc,Sf,If,Tc,Rc,WA,Nc,Ef=P(()=>{"use strict";bf();O();ue();vt();O();_f();Qr=class Qr{execute(t,r){return y(this,null,function*(){var a,s,c;let{response:n}=yield re(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(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&&M3(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(",");return Pc(r,()=>y(this,null,function*(){try{let{data:n}=yield ye("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Qr.nativePriceCache.set(r,n),Qr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Qr.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")}};Qr.nativePriceCache=new Map,Qr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Qr.nativePriceCacheTimestamp=new Map;wf=Qr,ir=class ir extends Dt{constructor(r,n){super(new wf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=ir.failureCounters.get(this.apiEndpoint)||0;if(r>=ir.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ir.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ir.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ir.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ir.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(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 En.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ir.failureCounters=new Map,ir.MAX_FAILURE_COUNT=2;Oc=ir,Sf=class extends Oc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},If=class extends Oc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Tc=null,Rc=null,WA=()=>Tc||(Tc=new Sf,Tc),Nc=()=>Rc||(Rc=new If,Rc)});var YA=h(Dc=>{"use strict";Fe();rr();J();wc();O();Go();bf();rr();Ge();xt();df();nr();Ef();var U3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:SA,frequencyUpdater:PA,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:kA,frequencyUpdater:OA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},mi=yn(),zA=WA(),KA=Nc(),F3=je(q,Gt);q.on(Ec,(e,t)=>y(Dc,null,function*(){var r,n,i;try{let o=t.currency,a=U3[o];if(!it("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(jt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield mi.show({duration:3e3});let d=yield F3.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),mi.hide(),!u){q.emit(jt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield mi.show({duration:3e3});let s=o==="JOLI_COIN"?zA:KA,c=yield s.getProductsInfo();if(mi.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){q.emit(jt,{paymentResult:"FAILED",currency:o});return}G(a.trackEvents.modalShow,{targetType:"game",eventType:$.View,currency:o});let l=MC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return j(T({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>y(Dc,null,function*(){var f,m,g,b,v,w,S,x;if(G(a.trackEvents.payEnsure,{targetType:"game",eventType:$.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(A=>A.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((g=I.hostUserInfo)!=null&&g.isLogin)){let{data:A}=yield lf({skipLogin:!0});if(!(A!=null&&A.isLogin)){console.log("login failed");return}let C=yield s.refreshProductsInfo();if(((b=C==null?void 0:C.balance)!=null?b:0)>=t.quantity){q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(v=c==null?void 0:c.paymentChoices)==null?void 0:v.find(A=>A.productId===d))==null?void 0:w.appStoreProductId;if(!u){q.emit(jt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield mi.show({duration:3e3});let{code:p}=yield En.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(mi.hide(),G(a.trackEvents.payResult,{eventType:$.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(x=(S=c.paymentChoices.find(A=>A.productId===d))==null?void 0:S.totalAmountStr)!=null?x:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(jt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),G(a.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>y(Dc,null,function*(){yield Sc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;G(a.trackEvents.orderClick,{targetType:"game",eventType:$.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),q.emit(jt,{paymentResult:"FAILED",currency:t.currency})}}));zA.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});KA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var XA=h(Lc=>{"use strict";Fe();nr();Go();vt();gt();O();wc();rr();xt();var j3={JOLI_COIN:{frequencyChecker:IA,frequencyUpdater:TA,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:CA,frequencyUpdater:NA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},QA=je(q,Gt);QA.getData();q.on(Cc,(e,t)=>y(Lc,null,function*(){var r;try{let n=t.currency,i=j3[n];if(e.includes("ADS-")){let s=yield QA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){q.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield G3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(Er,{result:"NOT_SUPPORT"});return}G(i.trackEvents.modalExpose,{eventType:$.Expose,currency:n},$.Expose);let a=UC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(Lc,null,function*(){var d,u,p,f;G(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:$.Click,currency:n},$.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield cf({},!0);if(!s){console.log("login failed");return}if(G(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:$.Click,currency:n},$.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})}q.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})=>{G(i.trackEvents.modalHide,{eventType:$.Hide,currency:n},$.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;G(l,{type:c,eventType:$.Click,currency:n},$.Click),q.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ie(new Ch(n)),q.emit(Er,{result:"FAILED"})}}));var G3=()=>y(Lc,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function B3(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var Jo,kf=P(()=>{"use strict";gt();Jo=B3()});var kn,qc=P(()=>{"use strict";kn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var J3,ZA,Mc,H3,Ho,Cf=P(()=>{"use strict";qc();O();J();J3=()=>{let[e,t]=[ya,ba].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:ZA,createSubscriptionInternalError:Mc}=J3(),H3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Ho=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw ZA(n,kn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generateSubscriptionContext()))),`${H3}/subscription/callback?${t.toString()}`};this.createSubscriptionError=ZA;this.createSubscriptionInternalError=Mc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function $3(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=>!Ui(r.amountStr))}var Cn,Fc,Af,xf,Uc,ex,Pf=P(()=>{"use strict";O();ue();vt();O();_f();kf();ue();Cf();qc();Cn=class Cn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return y(this,null,function*(){var a,s;let{response:n}=yield re(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&&$3(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return y(this,null,function*(){try{let{data:n}=yield ye("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Cn.nativePriceCache.set(r,n),Cn.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 y(this,null,function*(){let n=t.sort().join(",");return(r?VA:Pc)(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 y(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")}};Cn.nativePriceCache=new Map,Cn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Cn.nativePriceCacheTimestamp=new Map;Fc=Cn,Af=class extends Dt{constructor(r){super(new Fc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return y(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 y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return y(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return y(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 y(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",Jo);let n=new AbortController,i=Jo.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 y(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 re("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield ga(5e3))}})}invokeSubscriptionPanel(){return y(this,null,function*(){var i,o;let r=new lt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=U("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw Mc("orderUUID is null",kn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw Mc((o=JSON.stringify(a))!=null?o:"subscription panel failed",kn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return y(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=Fc.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(){Ne("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"}}))})}},xf=class extends Af{constructor(){super("/api/subs/pricing")}},Uc=null,ex=()=>Uc||(Uc=new xf,Uc)});var tx=P(()=>{"use strict"});function nx(){let e=new Map;return t=>y(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=V3[I.platform];if(!a)throw new Error(`Platform ${I.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var Tf,rx,Rf,Of,V3,ix=P(()=>{"use strict";J();Cf();Bo();xc();O();ue();O();qc();Ne("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Tf=new Map;Ne("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Tf.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&va(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw It(`subscription failed: ${n==null?void 0:n.errMsg}`,kn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}Tf.delete(t)}});rx=e=>y(void 0,null,function*(){var n,i;let t=new lt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=U("requestSubscriptionSync",T({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 It("subUUID is null",1002);Tf.set(r,t)}catch(o){throw It((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Rf=class extends Ho{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield rx(r)})}},Of=class extends Ho{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=U("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw It("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return y(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield rx(j(T({},r),{appAccountToken:this.subscriptionToken}))})}},V3={android:Rf,ios:Of}});var An,Nf=P(()=>{"use strict";Pf();tx();kf();ix();Pf();An=ex();Jo.registerSubscriptionHandler("SUB_APP",nx())});var cx=h(sx=>{"use strict";Go();Fe();nr();Ge();Nf();rr();var W3={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:AA,frequencyUpdater:DA}},ox=yn(),ax=je(q,Gt);ax.getData();q.on(Ac,e=>y(sx,null,function*(){let t=W3.SUBSCRIPTION;if(!it("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(Sn,{result:"FAILED"})},0);return}yield ox.show({duration:3e3});let r=yield ax.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(ox.hide(),!n){q.emit(Sn,{result:"FAILED"});return}let{data:o,code:a}=yield An.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(Sn,{result:"SUCCESS"}):q.emit(Sn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var nre,ire,ore,are,lx=P(()=>{"use strict";nre=se(MA()),ire=se(YA()),ore=se(XA()),are=se(cx())});function o4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function a4(e){return typeof e=="string"}function s4(e){return typeof e=="undefined"}function c4(e){return s4(e)||e===null}function l4(e){return typeof e=="function"}function jx(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 $o(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Jc(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 g4(e){let t=e.location?Jc(e.location,hx):null,r=e.target?Jc(e.target,hx):null;return Jc(r4(t4({},e),{location:t,target:r}),m4)}function v4(e){let t=e.events.map(n=>g4(n)),r=Jc(e.device,h4);return[e.protocolVersion,t,r,e.project]}function y4(){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 I4(e){return new Promise(t=>Hx(e)(t))}function Hx(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 E4(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Yo(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 C4(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)A4(e[n],t[n])}function A4(e,t){if(a4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(l4(t)){try{if(e instanceof t)return}catch(r){}if(!c4(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 pt(e,t,r){return(t=x4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x4(e){var t=P4(e,"string");return typeof t=="symbol"?t:t+""}function P4(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 jc(e,t,r){return(t=T4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T4(e){var t=R4(e,"string");return typeof t=="symbol"?t:t+""}function R4(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 Gc(e,t,r){return(t=O4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O4(e){var t=N4(e,"string");return typeof t=="symbol"?t:t+""}function N4(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 Ar(e,t,r){return(t=D4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D4(e){var t=L4(e,"string");return typeof t=="symbol"?t:t+""}function L4(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 q4(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 M4(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 J4(e,t){return Ve(e,0)^45?(((t<<2^Ve(e,0))<<2^Ve(e,1))<<2^Ve(e,2))<<2^Ve(e,3):0}function Wx(e){return e.trim()}function H4(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,r){return e.replace(t,r)}function zf(e,t){return e.indexOf(t)}function Ve(e,t){return e.charCodeAt(t)|0}function Qo(e,t,r){return e.slice(t,r)}function or(e){return e.length}function dm(e){return e.length}function Bc(e,t){return t.push(e),e}function $4(e,t){return e.map(t).join("")}function il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nl,column:wi,length:a,return:""}}function Wo(e,t){return B4(il("",null,null,"",null,null,0),e,{length:-e.length},t)}function V4(){return Re}function W4(){return Re=mt>0?Ve(Si,--mt):0,wi--,Re===10&&(wi=1,nl--),Re}function kt(){return Re=mt<zx?Ve(Si,mt++):0,wi++,Re===10&&(wi=1,nl++),Re}function ar(){return Ve(Si,mt)}function Hc(){return mt}function Zo(e,t){return Qo(Si,e,t)}function Xo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Kx(e){return nl=wi=1,zx=or(Si=e),mt=0,[]}function Yx(e){return Si="",e}function $c(e){return Wx(Zo(mt-1,Kf(e===91?e+2:e===40?e+1:e)))}function z4(e){for(;(Re=ar())&&Re<33;)kt();return Xo(e)>2||Xo(Re)>3?"":" "}function K4(e,t){for(;--t&&kt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Zo(e,Hc()+(t<6&&ar()==32&&kt()==32))}function Kf(e){for(;kt();)switch(Re){case e:return mt;case 34:case 39:e!==34&&e!==39&&Kf(Re);break;case 40:e===41&&Kf(e);break;case 92:kt();break}return mt}function Y4(e,t){for(;kt()&&e+Re!==57&&!(e+Re===84&&ar()===47););return"/*"+Zo(t,mt-1)+"*"+rl(e===47?e:kt())}function Q4(e){for(;!Xo(ar());)kt();return Zo(e,mt)}function X4(e){return Yx(Vc("",null,null,null,[""],e=Kx(e),0,[0],e))}function Vc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=kt()){case 40:if(m!=108&&Ve(k,u-1)==58){zf(k+=Z($c(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=$c(w);break;case 9:case 10:case 13:case 32:k+=z4(m);break;case 92:k+=K4(Hc()-1,7);continue;case 47:switch(ar()){case 42:case 47:Bc(Z4(Y4(kt(),Hc()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=or(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=Z(k,/\f/g,"")),f>0&&or(k)-u&&Bc(f>32?bx(k+";",n,r,u-1):bx(Z(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Bc(C=yx(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)Vc(k,t,C,C,x,o,u,s,A);else switch(p===99&&Ve(k,3)===110?100:p){case 100:case 108:case 109:case 115:Vc(e,C,C,n&&Bc(yx(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:Vc(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+or(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&W4()==125)continue}switch(k+=rl(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(or(k)-1)*v,v=1;break;case 64:ar()===45&&(k+=$c(kt())),p=ar(),d=u=or(S=k+=Q4(Hc())),w++;break;case 45:m===45&&or(k)==2&&(g=0)}}return o}function yx(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=dm(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Qo(e,u+1,u=G4(g=a[m])),S=e;v<f;++v)(S=Wx(g>0?p[v]+" "+w:Z(w,/&\f/g,p[v])))&&(c[b++]=S);return il(e,t,r,i===0?lm:s,c,l,d)}function Z4(e,t,r){return il(e,t,r,$x,rl(V4()),Qo(e,2,-2),0)}function bx(e,t,r,n){return il(e,t,r,um,Qo(e,0,n),Qo(e,n+1,-1),n)}function _i(e,t){for(var r="",n=dm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function e$(e,t,r,n){switch(e.type){case j4:if(e.children.length)break;case F4:case um:return e.return=e.return||e.value;case $x:return"";case Vx:return e.return=e.value+"{"+_i(e.children,n)+"}";case lm:e.value=e.props.join(",")}return or(r=_i(e.children,n))?e.return=e.value+"{"+r+"}":""}function t$(e){var t=dm(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 r$(e){return function(t){t.root||(t=t.return)&&e(t)}}function n$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Qx(e,t){switch(J4(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+Yc+e+rt+e+e;case 6828:case 4268:return X+e+rt+e+e;case 6165:return X+e+rt+"flex-"+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return X+e+rt+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return X+e+rt+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+rt+Z(e,"shrink","negative")+e;case 5292:return X+e+rt+Z(e,"basis","preferred-size")+e;case 6060:return X+"box-"+Z(e,"-grow","")+X+e+rt+Z(e,"grow","positive")+e;case 4554:return X+Z(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(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(or(e)-1-t>6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Yc+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zf(e,"stretch")?Qx(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,or(e)-3-(~zf(e,"!important")&&10))){case 107:return Z(e,":",":"+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ve(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+rt+e+e}return e}function p$(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 Qc(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 Xr={name:i.name,styles:i.styles,next:Xr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xr={name:a.name,styles:a.styles,next:Xr},a=a.next;var s=o.styles+";";return s}return g$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function g$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qc(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]+"}":wx(s)&&(n+=Lf(o)+":"+Sx(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++)wx(a[c])&&(n+=Lf(o)+":"+Sx(o,a[c])+";");else{var l=Qc(e,t,a);switch(o){case"animation":case"animationName":{n+=Lf(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function qf(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="";Xr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qc(r,t,e[s]),n){var c=o;i+=c[s]}Ix.lastIndex=0;for(var l="",d;(d=Ix.exec(i))!==null;)l+="-"+d[1];var u=p$(i)+l;return{name:u,styles:i,next:Xr}}function Zx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Ex(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function kx(e,t,r){var n=[],i=Zx(e,n,r);return n.length<2?r:i+t(n)}function S$(e,t){Me.__h&&Me.__h(Et,e,Ax||t),Ax=0;var r=Et.__H||(Et.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tP(e,t){var r=S$(Yf++,7);return k$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function I$(){for(var e;e=eP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wc),e.__H.__h.forEach(Qf),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function E$(e){var t,r=function(){clearTimeout(n),Dx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Dx&&(t=requestAnimationFrame(r))}function Wc(e){var t=Et,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Et=t}function Qf(e){var t=Et;e.__c=e.__(),Et=t}function k$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ol(){if(Zr>1)Zr--;else{for(var e,t=!1;zo!==void 0;){var r=zo;for(zo=void 0,Xf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&nP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Xf=0,Zr--,t)throw e}}function We(e){if(Zr>0)return e();Zr++;try{return e()}finally{ol()}}function rP(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 ze(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function H(e){return new ze(e)}function nP(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 iP(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 oP(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 Ii(e){ze.call(this,void 0),this.x=e,this.s=void 0,this.g=Xc-1,this.f=4}function Ko(e){return new Ii(e)}function aP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Zr++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,pm(e),n}finally{ce=r,ol()}}}function pm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,aP(e)}function A$(e){if(ce!==this)throw new Error("Out-of-order effect");oP(this),ce=e,this.f&=-2,8&this.f&&pm(this),ol()}function ea(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ta(e){var t=new ea(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Ei(e,t){D[e]=t.bind(null,D[e]||function(){})}function Zc(e){Uf&&Uf(),Uf=e&&e.S()}function lP(e){var t=this,r=e.data,n=uP(r);n.value=r;var i=tP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Ko(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Ko(function(){return!Array.isArray(l.value)&&!pu(l.value)}),u=ta(function(){if(this.N=dP,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 x$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=H(r);return{o:function(a,s){o.value=a,n=s},d:ta(function(){this.N=dP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function uP(e){return tP(function(){return H(e)},[])}function T$(){We(function(){for(var e;e=cP.shift();)sP.call(e)})}function dP(){cP.push(this)===1&&(D.requestAnimationFrame||P$)(T$)}function R$(e,t){let r=Qn(e);Yn(()=>{r.current=e},[e]),pn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function W(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--O$,__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 D.vnode&&D.vnode(l),l}function xr(e,t,r){return(t=H$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H$(e){var t=$$(e,"string");return typeof t=="symbol"?t:t+""}function $$(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=nV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nV(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 Pr(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=lV(e,"string");return typeof t=="symbol"?t:t+""}function lV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tt(e,t,r){return(t=uV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uV(e){var t=dV(e,"string");return typeof t=="symbol"?t:t+""}function dV(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 ft(e,t,r){return(t=pV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pV(e){var t=fV(e,"string");return typeof t=="symbol"?t:t+""}function fV(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 xn(e,t,r){return(t=mV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mV(e){var t=hV(e,"string");return typeof t=="symbol"?t:t+""}function hV(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 Ff(e,t,r){return(t=gV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gV(e){var t=vV(e,"string");return typeof t=="symbol"?t:t+""}function vV(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=yV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yV(e){var t=bV(e,"string");return typeof t=="symbol"?t:t+""}function bV(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 Bt(e,t,r){return(t=_V(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _V(e){var t=wV(e,"string");return typeof t=="symbol"?t:t+""}function wV(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 z3,Kc,qx,Mx,ux,K3,Y3,Ux,Q3,X3,dx,Z3,e4,px,t4,r4,n4,Fx,i4,u4,d4,fx,p4,mx,f4,Gx,Bx,Jx,hx,m4,h4,yi,gx,jf,ve,b4,_4,Vo,Yo,w4,Bf,S4,Df,k4,Jf,vx,hi,Hf,$f,Vf,Wf,U4,rt,Yc,X,$x,lm,um,F4,Vx,j4,G4,rl,B4,nl,wi,zx,mt,Re,Si,i$,o$,a$,_x,s$,c$,l$,u$,d$,f$,m$,h$,Xx,wx,Lf,Sx,Ix,Xr,v$,y$,b$,_$,w$,nt,Yf,Et,Mf,Cx,Ax,eP,Me,xx,Px,Tx,Rx,Ox,Nx,Dx,C$,ce,zo,Zr,Xf,Xc,sP,Uf,cP,P$,Ue,O$,N$,Tr,Zf,em,zc,D$,L$,q$,M$,U$,F$,j$,G$,B$,J$,tm,V$,W$,z$,K$,Y$,Q$,X$,Lx,Z$,eV,tV,rV,rm,bi,gi,oV,aV,sV,nm,pP,im,om,am,sm,el,cm,tl,lre,fP=P(()=>{"use strict";jn();ss();z3=Object.defineProperty,Kc=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,ux=(e,t,r)=>t in e?z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K3=(e,t)=>{for(var r in t||(t={}))qx.call(t,r)&&ux(e,r,t[r]);if(Kc)for(var r of Kc(t))Mx.call(t,r)&&ux(e,r,t[r]);return e},Y3=(e,t)=>{var r={};for(var n in e)qx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kc)for(var n of Kc(e))t.indexOf(n)<0&&Mx.call(e,n)&&(r[n]=e[n]);return r},Ux=Object.defineProperty,Q3=Object.defineProperties,X3=Object.getOwnPropertyDescriptors,dx=Object.getOwnPropertySymbols,Z3=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,px=(e,t,r)=>t in e?Ux(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t4=(e,t)=>{for(var r in t||(t={}))Z3.call(t,r)&&px(e,r,t[r]);if(dx)for(var r of dx(t))e4.call(t,r)&&px(e,r,t[r]);return e},r4=(e,t)=>Q3(e,X3(t)),n4=(e,t)=>{for(var r in t)Ux(e,r,{get:t[r],enumerable:!0})},Fx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},i4=(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}u4=(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))(u4||{});d4={log:$o("log"),warn:$o("warn"),info:$o("info"),error:$o("error"),debug:$o("debug")};Object.assign(globalThis,{logger:d4});fx=Symbol.for("Jolibox.canIUseMap"),p4={};globalThis[fx]||(globalThis[fx]=p4);mx=Symbol.for("Jolibox.canIUseMap.native"),f4={};globalThis[mx]||(globalThis[mx]=f4);Gx=(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))(Gx||{}),Bx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bx||{}),Jx=(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))(Jx||{}),hx=["name","params"],m4=["name","type","location","target","extra","timestamp","userId"],h4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];y4();yi=typeof window=="undefined",gx=()=>!yi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!yi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!yi&&navigator.userAgent.includes("Android"),!yi&&navigator.userAgent.includes("Mac"),!yi&&navigator.userAgent.includes("FB_IAB"),!yi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");jf=class Gf{constructor(t){this.element=t,this.next=Gf.Undefined,this.prev=Gf.Undefined}};jf.Undefined=new jf(void 0);ve=jf,b4=class{constructor(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ve.Undefined}clear(){let e=this._first;for(;e!==ve.Undefined;){let t=e.next;e.prev=ve.Undefined,e.next=ve.Undefined,e=t}this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ve(e);if(this._first===ve.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!==ve.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ve.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ve.Undefined&&e.next!==ve.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ve.Undefined&&e.next===ve.Undefined?(this._first=ve.Undefined,this._last=ve.Undefined):e.next===ve.Undefined?(this._last=this._last.prev,this._last.next=ve.Undefined):e.prev===ve.Undefined&&(this._first=this._first.next,this._first.prev=ve.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ve.Undefined;)yield e.element,e=e.next}},_4=0,Vo=class{constructor(e){this.value=e,this.id=_4++}},Yo=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 Vo&&(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 Vo(e);return this._listeners?this._listeners instanceof Vo?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 Vo)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 Vo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},w4=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 Yo,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 b4,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)}},Bf={};n4(Bf,{None:()=>S4,filter:()=>E4,once:()=>Hx,toPromise:()=>I4});S4=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Df=Symbol.for("Jolibox.hostEmitter"),k4=()=>{let e=new w4;return globalThis[Df]||(globalThis[Df]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Df]};k4();Jf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Yo,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 C4(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}};Jf=Fx([jx],Jf);vx=class{constructor(){this._onWillExecuteCommand=new Yo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Yo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=o4(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 i4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Bf.toPromise(Bf.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{}}};vx=Fx([jx],vx);hi=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")},Hf=class{constructor(t){pt(this,"context",void 0),pt(this,"continueCallback",void 0),pt(this,"adIsShowingCallback",void 0),pt(this,"isBeforeAdCalled",!1),pt(this,"isBeforeRewardCalled",!1),pt(this,"isAdDismissedCalled",!1),pt(this,"isAdViewedCalled",!1),pt(this,"isAfterAdCalled",!1),pt(this,"currentProvider",void 0),pt(this,"currentClientParams",void 0),pt(this,"adsHasResponse",!1),pt(this,"videoChecker",window.document.createElement("video")),pt(this,"contextInfo",void 0),pt(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",K3({userEvent:a},this.paramsToTrack)),gx()&&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=hi(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=hi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),gx()&&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=hi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=hi(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=hi(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=hi(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 y(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")})})}};$f=class{constructor(t){jc(this,"context",void 0),jc(this,"adBreakIsShowing",!1),jc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),jc(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()})}};Vf=class{constructor(t){Gc(this,"configs",null),Gc(this,"firstRun",!0),Gc(this,"context",void 0),Gc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(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}};Wf=class{constructor(t,r){Ar(this,"name","ADSENSE"),Ar(this,"context",void 0),Ar(this,"contextInfo",void 0),Ar(this,"configured",!1),Ar(this,"initParams",void 0),Ar(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Ar(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=Y3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Ar(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Ar(this,"adUnit",n=>y(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 g=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),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(v)}else f.appendChild(b),new MutationObserver(v=>{v.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"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 y(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)}})}};U4=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(M4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=q4(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}(),rt="-ms-",Yc="-moz-",X="-webkit-",$x="comm",lm="rule",um="decl",F4="@import",Vx="@keyframes",j4="@layer",G4=Math.abs,rl=String.fromCharCode,B4=Object.assign;nl=1,wi=1,zx=0,mt=0,Re=0,Si="";i$=function(e,t,r){for(var n=0,i=0;n=i,i=ar(),n===38&&i===12&&(t[r]=1),!Xo(i);)kt();return Zo(e,mt)},o$=function(e,t){var r=-1,n=44;do switch(Xo(n)){case 0:n===38&&ar()===12&&(t[r]=1),e[r]+=i$(mt-1,t,r);break;case 2:e[r]+=$c(n);break;case 4:if(n===44){e[++r]=ar()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rl(n)}while(n=kt());return e},a$=function(e,t){return Yx(o$(Kx(e),t))},_x=new WeakMap,s$=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&&!_x.get(r))&&!n){_x.set(e,!0);for(var i=[],o=a$(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]}}},c$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};l$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case um:e.return=Qx(e.value,e.length);break;case Vx:return _i([Wo(e,{value:Z(e.value,"@","@"+X)})],n);case lm:if(e.length)return $4(e.props,function(i){switch(H4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _i([Wo(e,{props:[Z(i,/:(read-\w+)/,":"+Yc+"$1")]})],n);case"::placeholder":return _i([Wo(e,{props:[Z(i,/:(plac\w+)/,":"+X+"input-$1")]}),Wo(e,{props:[Z(i,/:(plac\w+)/,":"+Yc+"$1")]}),Wo(e,{props:[Z(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},u$=[l$],d$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||u$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[s$,c$];{var l,d=[e$,r$(function(m){l.insert(m)})],u=t$(c.concat(n,d)),p=function(m){return _i(X4(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new U4({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};f$={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},m$=/[A-Z]|^ms/g,h$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xx=function(e){return e.charCodeAt(1)===45},wx=function(e){return e!=null&&typeof e!="boolean"},Lf=n$(function(e){return Xx(e)?e:e.replace(m$,"-$&").toLowerCase()}),Sx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(h$,function(r,n,i){return Xr={name:n,styles:i,next:Xr},n})}return f$[e]!==1&&!Xx(e)&&typeof t=="number"&&t!==0?t+"px":t};Ix=/label:\s*([^\s;{]+)\s*(;|$)/g;v$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},y$=function(e,t,r){v$(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)}};b$=function(e){var t=d$(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=qf(s,t.registered,void 0);return y$(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=qf(s,t.registered),d="animation-"+l.name;return Ex(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=qf(s,t.registered);Ex(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return kx(t.registered,r,_$(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:Zx.bind(null,t.registered),merge:kx.bind(null,t.registered,r)}},_$=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},w$=b$({key:"css"}),nt=w$.css,Ax=0,eP=[],Me=D,xx=Me.__b,Px=Me.__r,Tx=Me.diffed,Rx=Me.__c,Ox=Me.unmount,Nx=Me.__;Me.__b=function(e){Et=null,xx&&xx(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Nx&&Nx(e,t)},Me.__r=function(e){Px&&Px(e),Yf=0;var t=(Et=e.__c).__H;t&&(Mf===Et?(t.__h=[],Et.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wc),t.__h.forEach(Qf),t.__h=[],Yf=0)),Mf=Et},Me.diffed=function(e){Tx&&Tx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(eP.push(t)!==1&&Cx===Me.requestAnimationFrame||((Cx=Me.requestAnimationFrame)||E$)(I$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Mf=Et=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wc),r.__h=r.__h.filter(function(n){return!n.__||Qf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),Rx&&Rx(e,t)},Me.unmount=function(e){Ox&&Ox(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wc(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};Dx=typeof requestAnimationFrame=="function";C$=Symbol.for("preact-signals");ce=void 0,zo=void 0,Zr=0,Xf=0,Xc=0;ze.prototype.brand=C$;ze.prototype.h=function(){return!0};ze.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)};ze.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)}};ze.prototype.subscribe=function(e){var t=this;return ta(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}})};ze.prototype.valueOf=function(){return this.value};ze.prototype.toString=function(){return this.value+""};ze.prototype.toJSON=function(){return this.value};ze.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(ze.prototype,"value",{get:function(){var e=rP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Xf>100)throw new Error("Cycle detected");this.v=e,this.i++,Xc++,Zr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}});(Ii.prototype=new ze).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xc))return!0;if(this.g=Xc,this.f|=1,this.i>0&&!nP(this))return this.f&=-2,!0;var e=ce;try{iP(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,oP(this),this.f&=-2,!0};Ii.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)}ze.prototype.S.call(this,e)};Ii.prototype.U=function(e){if(this.t!==void 0&&(ze.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)}};Ii.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(Ii.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ea.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()}};ea.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,aP(this),iP(this),Zr++;var e=ce;return ce=this,A$.bind(this,e)};ea.prototype.N=function(){2&this.f||(this.f|=2,this.o=zo,zo=this)};ea.prototype.d=function(){this.f|=8,1&this.f||pm(this)};cP=[];ta(function(){sP=this.N})();lP.displayName="_st";Object.defineProperties(ze.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:lP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ei("__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 ze&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Ei("__r",function(e,t){Zc();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ta(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Zc(r),e(t)});Ei("__e",function(e,t,r,n){Zc(),e(t,r,n)});Ei("diffed",function(e,t){Zc();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=x$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Ei("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)});Ei("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});bt.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};P$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ue=nt`
|
|
622
|
+
`,zH=()=>_("div",{style:Xk.container,children:[_("style",{children:WH}),_("div",{style:Xk.spinner})]});oX=yn()});function YC(){return y(this,null,function*(){if(ef)return ef;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return ef=r,r})}function QC(){return y(this,null,function*(){let e=new lt;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(tf)return e.resolve(!0),e.promise;let t=yield YC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;tf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};G("RecommendedGuide",T({eventType:$.View},o));let a=NC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(tf=!1,s.type){case"quit":G("RecommendedGuide",{eventType:$.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;KH(l),G("GameItem",{eventType:$.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0);break}}});return e.promise})}var ef,KH,tf,XC=P(()=>{"use strict";J();ue();O();nr();vt();xt();ef=null;YC();KH=e=>{var a;let{data:t}=U("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;U("openSchemaSync",{schema:o})},tf=!1});function QH(e){let t=T(T({},YH),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:S,iframeTransition:x}=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;`,ne=document.createElement("div"),ne.id="jolibox-modal-container",ne.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${S};`;let A=document.createElement("div");A.id="jolibox-modal-loading",A.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Rt=document.createElement("iframe"),Rt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,Rt.src=r,Rt.onload=()=>{A.parentNode&&A.parentNode.removeChild(A),Rt.style.opacity="1",g(),c==null||c(),be.emit("onModalIframeLoaded",{url:r})},k.appendChild(Rt),k.appendChild(A),ne.appendChild(k),i){let B=document.createElement("div");B.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;",B.innerHTML="\u2715",B.onclick=v,ne.appendChild(B)}pe.appendChild(ne),document.body.appendChild(pe),pe.addEventListener("click",function(B){B.target===pe&&v()}),o&&b()}function g(){!pe||!ne||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!ne)return;let w=A=>{l=A.touches[0].clientY},S=A=>{if(!u)return;d=A.touches[0].clientY;let C=d-l;C>0&&(ne&&(ne.style.transition="none",ne.style.transform=`translateY(${C}px)`),A.preventDefault())},x=()=>{!u||!ne||(ne.style.transition=a?"transform 0.3s ease":"none",d-l>80?v():ne.style.transform="translateY(0)")};ne.addEventListener("touchstart",w),ne.addEventListener("touchmove",S),ne.addEventListener("touchend",x)}function v(){!pe||!ne||!u||(a?(ne.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,ne=null,Rt=null,s==null||s(),be.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function ZC(){return window.joliboxUI=j(T({},window.joliboxUI),{createIframeModal:QH}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),ne&&ne.parentNode&&ne.parentNode.removeChild(ne),Rt&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),pe=null,ne=null,Rt=null}}var YH,pe,ne,Rt,eA=P(()=>{"use strict";ue();J();O();YH={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,ne=null,Rt=null});var iA={};Hm(iA,{config:()=>c3});function ZH(){Ba.on("isAdShowing",e=>{hc=e,Dr(hc)&&U("updateContainerConfigSync",{displayCapsuleButton:!hc,webviewId:I.webviewId})})}function e3(){be.on("onInterceptSystemExit",({intercept:e})=>{tA=e})}function t3(){be.on("onInterceptBackPress",({intercept:e})=>{XH=e}),Ne("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;nA(t),be.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function r3(){be.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),G("onDocumentReady",{start_timestamp:vc,timestamp:Date.now()})})}function n3(){Ne("onI18nChanged",({language:e})=>{be.emit("onI18nChanged",{i18n:e})})}function i3(e){I.mpType==="game"&&Lt.start(e)}function o3(){Ne("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),be.emit("LifecycleEvent.onReady",T({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),G("joliboxServiceReady",{start_timestamp:vc,timestamp:Date.now()}),i3(t),AC(()=>I.language)}),Ne("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;nA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function a3(){let e=()=>{G("onBeforeExit",{timestamp:Date.now()}),fc==null||fc(),mc==null||mc(),Lt.close(Date.now()-vc)},t=()=>hc||tA;At.onDoExit(()=>y(this,null,function*(){return t()?!0:Dr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):gc!=null&&gc.canShowRecommended&&!rA&&(yield QC())?!0:(e(),!1)})),At.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function s3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(gc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function c3(){vc=Date.now(),o3(),ZH(),e3(),t3(),a3(),r3(),n3(),s3(),mc=ZC(),fc=gg()}var fc,mc,vc,hc,gc,tA,XH,rA,nA,oA=P(()=>{"use strict";ue();J();O();xt();vg();lu();XC();vt();nr();eA();hc=!1,gc=null,tA=!1,XH=!1,rA=!1,nA=e=>{Dr(e)&&(rA=e)};At.onReady(()=>{})});var aA,l3,u3,d3,p3,sA=P(()=>{"use strict";O();Be();ue();J();aA=V(),l3="env",u3="getSystemInfoSync",d3=z(u3,{implement:()=>{var r;let e=U("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),p3=z(l3,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});aA.registerCommand("API.getSystemInfoSync",d3);aA.registerCommand("API.env",p3);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var cA=h(rf=>{"use strict";O();Be();gt();ue();xt();J();var f3="exitGame",m3="onReady",h3="onJoliboxShow",g3="onJoliboxHide",yc=V(),bc=Ln(Ie),v3=oe(f3,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>y(rf,null,function*(){bc(e).call(rf),Dr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&fh("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield me("exitAppAsync")})}),y3=z(h3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterForeground",()=>{t.call(this),Hi.emit("visible",!0)})}}),b3=z(g3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterBackground",()=>{t.call(this),Hi.emit("visible",!1)})}}),_3=z(m3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);be.on("LifecycleEvent.onReady",r=>{t(r)})}});yc.registerCommand("LifecycleSDK.exit",v3);yc.registerCommand("LifecycleSDK.onReady",_3);yc.registerCommand("LifecycleSDK.onJoliboxShow",y3);yc.registerCommand("LifecycleSDK.onJoliboxHide",b3);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function lA(e){let t={};if(!rn(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 uA(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 dA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function pA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!rn(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 fA=P(()=>{"use strict";O()});var w3,S3,nf,of,mA,I3,E3,k3,hA=P(()=>{"use strict";Lr();Zl();Be();fA();O();gt();J();w3=15,S3=wa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),nf=0,of=[],mA=Ln(Ie),I3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},E3=e=>{let t=new lt,r=()=>{};return z("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=()=>y(this,null,function*(){var s,c,l;let a=mA(i.fail);try{if(nf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=lA((s=i.headers)!=null?s:{}),b=uA(i.method),v=dA(i.timeout),w=pA(i.url,b,d),S=mA(i.success),x=Object.assign({},i,{method:b,header:m?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let A=S3(w,x);{let{response:C}=yield A,{code:k,data:B,message:le}=C;if(B&&typeof B=="object"&&"status"in B&&B.status!==200)throw Qe({code:B.status||-1,msg:`request:fail status ${B.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:B,message:le!=null?le:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:B})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{nf-=1,(l=of.shift())==null||l()}});return nf>=w3?(r=()=>{I3(of,a=>a===o)},of.push(o)):o(),t.promise}})(e),{abort(){t.reject(Qe({code:-1,msg:"request:fail abort"})),r()}}},k3=V();k3.registerCommand("HttpSDK.request",E3);M("request",{version:"1.0.0"})});var C3,A3,x3,af,gA=P(()=>{"use strict";O();ue();Be();C3=z("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)),U("showKeyboardSync",j(T({},e),{defaultValue:r,maxLength:t}))}});M("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"}});A3=z("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){U("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});x3=z("hideKeyboard",{implement(){U("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});af=V();af.registerCommand("KeyboardSDK.showKeyboard",C3);af.registerCommand("KeyboardSDK.updateKeyboard",A3);af.registerCommand("KeyboardSDK.hideKeyboard",x3)});var vA=h(_c=>{"use strict";O();Be();xt();var sf=V(),P3=oe("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=>y(_c,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Lt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Lt.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),T3=oe("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number(),variation:E.string().optional()})),implement:e=>y(_c,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Lt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Lt.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),R3=oe("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>y(_c,[r],function*({levelId:e,name:t}){let n=[];n.push(Lt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Lt.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});sf.registerCommand("TaskTrackerSDK.levelFinished",P3);sf.registerCommand("TaskTrackerSDK.gamePlayEnded",T3);sf.registerCommand("TaskTrackerSDK.levelUpgrade",R3);M("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"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var cf,lf,uf,O3,yA,wc=P(()=>{"use strict";J();ue();Be();O();Lr();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});cf=new Map;Ne("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))});lf=(e,t=!1)=>y(void 0,null,function*(){var m,g,b;let{data:{isLogin:r}}=yield me("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Qe({code:-1,msg:"login failed"});let s=new lt;cf.set(a,s);let c=yield s.promise,l=U("envSync"),d=(b=(g=l==null?void 0:l.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:j(T({},c),{isSubUser:d})});let v=c,{extra:u,appAccountToken:p}=v,f=Ye(v,["extra","appAccountToken"]);return be.emit("onLoginComplete",f),t?c:f}),uf=oe("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield lf(e!=null?e:{})})}}),O3=oe("checkSession",{implement(){return y(this,null,function*(){var r;let{data:{isLogin:e}}=yield me("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),yA=V();yA.registerCommand("API.login",uf);yA.registerCommand("API.checkSession",O3)});var bA,_A=P(()=>{"use strict";bA=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 bn(e){return t=>y(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield qr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=wA(i.data),a=bA(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 _n(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield qr(e),n=wA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield yt(e,JSON.stringify(n))})}var wA,SA,IA,EA,kA,CA,AA,xA,PA,TA,RA,OA,NA,DA,LA,Go=P(()=>{"use strict";Ji();_A();wA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};SA=bn("joli_coin_use_modal_frequency"),IA=bn("joli_coin_payment_frequency"),EA=bn("joli_coin_unlogin_modal_frequency"),kA=bn("joli_gem_use_modal_frequency"),CA=bn("joli_gem_payment_frequency"),AA=bn("joli_gem_unlogin_modal_frequency"),xA=bn("subscription_frequency");PA=_n("joli_coin_use_modal_frequency"),TA=_n("joli_coin_payment_frequency"),RA=_n("joli_coin_unlogin_modal_frequency"),OA=_n("joli_gem_use_modal_frequency"),NA=_n("joli_gem_payment_frequency"),DA=_n("joli_gem_unlogin_modal_frequency"),LA=_n("subscription_frequency")});var df,Sc,pf=P(()=>{"use strict";vt();df=Promise.resolve(),Sc=(e,t)=>y(void 0,null,function*(){df=df.then(()=>y(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield df})});var Ic,Ec,jt,kc,wn,Gt,Er,Cc,Ac,Sn,pi,N3,q,kr,Cr,je=P(()=>{"use strict";O();Ic="UNLOCK_OPTIONS_CHANGED",Ec="INVOKE_PAYMENT",jt="ON_PAYMENT_RESULT",kc="ON_USE_MODAL_EVENT",wn="ON_USE_MODAL_RESULT",Gt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",Cc="INVOKE_UNLOGIN_MODAL_EVENT",Ac="INVOKE_SUBSCRIPTION_EVENT",Sn="ON_USE_SUBSCRIPTION_RESULT",pi=new Vt,N3=()=>({on:pi.on.bind(pi),off:pi.off.bind(pi),emit:pi.emit.bind(pi)}),q=N3(),kr={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=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var ir=P(()=>{"use strict"});var UA=h(ff=>{"use strict";Go();pf();je();je();nr();xt();O();ir();var D3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:SA,frequencyUpdater:PA,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:kA,frequencyUpdater:OA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},qA=yn(),MA=Ge(q,Gt);MA.getData();q.on(kc,(e,t)=>y(ff,null,function*(){let r=t.currency,n=D3[r];if(e.includes("ADS-")){yield qA.show({duration:3e3});let c=yield MA.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),qA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(wn,{useModalResult:"CONFIRM"});return}if(!l){q.emit(wn,{useModalResult:"FAILED"});return}}G(n.trackEvents.popupShow,{eventType:$.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=MC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{G(n.trackEvents.coinUnlock,{targetType:"game",eventType:$.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(wn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&G(n.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:r}),q.emit(wn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>y(ff,null,function*(){yield Sc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function FA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var jA=P(()=>{"use strict";gt()});var Bo=P(()=>{"use strict"});var L3,fi,It,q3,In,xc=P(()=>{"use strict";Bo();O();J();vt();L3=()=>{let[e,t]=[ya,ba].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:fi,createPaymentInternalError:It}=L3(),q3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",In=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw fi(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw fi((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${q3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var hf,GA,BA=P(()=>{"use strict";vt();xc();Bo();hf=class extends In{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw fi((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),It((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},GA=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new hf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var JA,HA=P(()=>{"use strict";JA={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 gf,$A,vf,yf,M3,bf,VA=P(()=>{"use strict";vt();xc();Bo();ue();O();J();nr();HA();gf=new Map;Ne("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=gf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&va(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw It(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=JA[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}gf.delete(t)}});$A=e=>y(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 It("orderUUID is null",1002);gf.set(r,t)}catch(o){throw It((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),vf=class extends In{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=()=>y(this,null,function*(){return yield $A({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},yf=class extends In{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=()=>y(this,null,function*(){return yield $A({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw It("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"}})}},M3={android:vf,ios:yf},bf=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=M3[I.platform];if(!s)throw It("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 fi(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var En,_f=P(()=>{"use strict";jA();BA();VA();En=FA();En.registerPaymentHandler("JOLI_COIN",GA());En.registerPaymentHandler("JOLI_COIN_IAP",bf());En.registerPaymentHandler("JOLI_GEM_IAP",bf())});function WA(n,i){return y(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 yt(a,c),yield yt(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 Pc(n,i){return y(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 qr(s),{data:u}=yield qr(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(()=>y(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),g=Date.now();yield yt(s,m),yield yt(c,g.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 yt(s,null),yield yt(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 yt(s,d),yield yt(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 wf=P(()=>{"use strict";Ji()});function U3(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!Ui(r.totalAmountStr))}var Qr,Sf,or,Oc,If,Ef,Tc,Rc,zA,Nc,kf=P(()=>{"use strict";_f();O();ue();vt();O();wf();Qr=class Qr{execute(t,r){return y(this,null,function*(){var a,s,c;let{response:n}=yield re(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(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&&U3(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(",");return Pc(r,()=>y(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Qr.nativePriceCache.set(r,n),Qr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Qr.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")}};Qr.nativePriceCache=new Map,Qr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Qr.nativePriceCacheTimestamp=new Map;Sf=Qr,or=class or extends Dt{constructor(r,n){super(new Sf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=or.failureCounters.get(this.apiEndpoint)||0;if(r>=or.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${or.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return or.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw or.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${or.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(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 En.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};or.failureCounters=new Map,or.MAX_FAILURE_COUNT=2;Oc=or,If=class extends Oc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Ef=class extends Oc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Tc=null,Rc=null,zA=()=>Tc||(Tc=new If,Tc),Nc=()=>Rc||(Rc=new Ef,Rc)});var QA=h(Dc=>{"use strict";je();nr();J();wc();O();Go();_f();nr();Be();xt();pf();ir();kf();var F3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:IA,frequencyUpdater:TA,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:CA,frequencyUpdater:NA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},mi=yn(),KA=zA(),YA=Nc(),j3=Ge(q,Gt);q.on(Ec,(e,t)=>y(Dc,null,function*(){var r,n,i;try{let o=t.currency,a=F3[o];if(!Fe("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(jt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield mi.show({duration:3e3});let d=yield j3.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),mi.hide(),!u){q.emit(jt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield mi.show({duration:3e3});let s=o==="JOLI_COIN"?KA:YA,c=yield s.getProductsInfo();if(mi.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){q.emit(jt,{paymentResult:"FAILED",currency:o});return}G(a.trackEvents.modalShow,{targetType:"game",eventType:$.View,currency:o});let l=UC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return j(T({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>y(Dc,null,function*(){var f,m,g,b,v,w,S,x;if(G(a.trackEvents.payEnsure,{targetType:"game",eventType:$.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(A=>A.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((g=I.hostUserInfo)!=null&&g.isLogin)){let{data:A}=yield uf({skipLogin:!0});if(!(A!=null&&A.isLogin)){console.log("login failed");return}let C=yield s.refreshProductsInfo();if(((b=C==null?void 0:C.balance)!=null?b:0)>=t.quantity){q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(v=c==null?void 0:c.paymentChoices)==null?void 0:v.find(A=>A.productId===d))==null?void 0:w.appStoreProductId;if(!u){q.emit(jt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield mi.show({duration:3e3});let{code:p}=yield En.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(mi.hide(),G(a.trackEvents.payResult,{eventType:$.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(x=(S=c.paymentChoices.find(A=>A.productId===d))==null?void 0:S.totalAmountStr)!=null?x:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(jt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),G(a.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>y(Dc,null,function*(){yield Sc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;G(a.trackEvents.orderClick,{targetType:"game",eventType:$.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),q.emit(jt,{paymentResult:"FAILED",currency:t.currency})}}));KA.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});YA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var ZA=h(Lc=>{"use strict";je();ir();Go();vt();gt();O();wc();nr();xt();var G3={JOLI_COIN:{frequencyChecker:EA,frequencyUpdater:RA,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:AA,frequencyUpdater:DA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},XA=Ge(q,Gt);XA.getData();q.on(Cc,(e,t)=>y(Lc,null,function*(){var r;try{let n=t.currency,i=G3[n];if(e.includes("ADS-")){let s=yield XA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){q.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield B3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(Er,{result:"NOT_SUPPORT"});return}G(i.trackEvents.modalExpose,{eventType:$.Expose,currency:n},$.Expose);let a=FC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(Lc,null,function*(){var d,u,p,f;G(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:$.Click,currency:n},$.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield lf({},!0);if(!s){console.log("login failed");return}if(G(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:$.Click,currency:n},$.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})}q.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})=>{G(i.trackEvents.modalHide,{eventType:$.Hide,currency:n},$.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;G(l,{type:c,eventType:$.Click,currency:n},$.Click),q.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ie(new Ah(n)),q.emit(Er,{result:"FAILED"})}}));var B3=()=>y(Lc,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function J3(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var Jo,Cf=P(()=>{"use strict";gt();Jo=J3()});var kn,qc=P(()=>{"use strict";kn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var H3,ex,Mc,$3,Ho,Af=P(()=>{"use strict";qc();O();J();H3=()=>{let[e,t]=[ya,ba].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:ex,createSubscriptionInternalError:Mc}=H3(),$3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Ho=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw ex(n,kn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generateSubscriptionContext()))),`${$3}/subscription/callback?${t.toString()}`};this.createSubscriptionError=ex;this.createSubscriptionInternalError=Mc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function V3(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=>!Ui(r.amountStr))}var Cn,Fc,xf,Pf,Uc,tx,Tf=P(()=>{"use strict";O();ue();vt();O();wf();Cf();ue();Af();qc();Cn=class Cn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return y(this,null,function*(){var a,s;let{response:n}=yield re(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&&V3(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return y(this,null,function*(){try{let{data:n}=yield me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Cn.nativePriceCache.set(r,n),Cn.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 y(this,null,function*(){let n=t.sort().join(",");return(r?WA:Pc)(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 y(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")}};Cn.nativePriceCache=new Map,Cn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Cn.nativePriceCacheTimestamp=new Map;Fc=Cn,xf=class extends Dt{constructor(r){super(new Fc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return y(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 y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return y(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return y(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 y(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",Jo);let n=new AbortController,i=Jo.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 y(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 re("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield ga(5e3))}})}invokeSubscriptionPanel(){return y(this,null,function*(){var i,o;let r=new lt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=U("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw Mc("orderUUID is null",kn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw Mc((o=JSON.stringify(a))!=null?o:"subscription panel failed",kn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return y(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=Fc.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(){Ne("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"}}))})}},Pf=class extends xf{constructor(){super("/api/subs/pricing")}},Uc=null,tx=()=>Uc||(Uc=new Pf,Uc)});var rx=P(()=>{"use strict"});function ix(){let e=new Map;return t=>y(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=W3[I.platform];if(!a)throw new Error(`Platform ${I.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var Rf,nx,Of,Nf,W3,ox=P(()=>{"use strict";J();Af();Bo();xc();O();ue();O();qc();Ne("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Rf=new Map;Ne("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Rf.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&va(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw It(`subscription failed: ${n==null?void 0:n.errMsg}`,kn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}Rf.delete(t)}});nx=e=>y(void 0,null,function*(){var n,i;let t=new lt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=U("requestSubscriptionSync",T({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 It("subUUID is null",1002);Rf.set(r,t)}catch(o){throw It((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Of=class extends Ho{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield nx(r)})}},Nf=class extends Ho{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=U("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw It("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return y(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield nx(j(T({},r),{appAccountToken:this.subscriptionToken}))})}},W3={android:Of,ios:Nf}});var An,Df=P(()=>{"use strict";Tf();rx();Cf();ox();Tf();An=tx();Jo.registerSubscriptionHandler("SUB_APP",ix())});var lx=h(cx=>{"use strict";Go();je();ir();Be();Df();nr();var z3={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:xA,frequencyUpdater:LA}},ax=yn(),sx=Ge(q,Gt);sx.getData();q.on(Ac,e=>y(cx,null,function*(){let t=z3.SUBSCRIPTION;if(!Fe("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(Sn,{result:"FAILED"})},0);return}yield ax.show({duration:3e3});let r=yield sx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(ax.hide(),!n){q.emit(Sn,{result:"FAILED"});return}let{data:o,code:a}=yield An.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(Sn,{result:"SUCCESS"}):q.emit(Sn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var sre,cre,lre,ure,ux=P(()=>{"use strict";sre=se(UA()),cre=se(QA()),lre=se(ZA()),ure=se(lx())});function a4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function s4(e){return typeof e=="string"}function c4(e){return typeof e=="undefined"}function l4(e){return c4(e)||e===null}function u4(e){return typeof e=="function"}function Gx(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 $o(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Jc(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 v4(e){let t=e.location?Jc(e.location,gx):null,r=e.target?Jc(e.target,gx):null;return Jc(n4(r4({},e),{location:t,target:r}),h4)}function y4(e){let t=e.events.map(n=>v4(n)),r=Jc(e.device,g4);return[e.protocolVersion,t,r,e.project]}function b4(){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 E4(e){return new Promise(t=>$x(e)(t))}function $x(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 k4(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Yo(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 A4(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)x4(e[n],t[n])}function x4(e,t){if(s4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(u4(t)){try{if(e instanceof t)return}catch(r){}if(!l4(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 pt(e,t,r){return(t=P4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P4(e){var t=T4(e,"string");return typeof t=="symbol"?t:t+""}function T4(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 jc(e,t,r){return(t=R4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R4(e){var t=O4(e,"string");return typeof t=="symbol"?t:t+""}function O4(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 Gc(e,t,r){return(t=N4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N4(e){var t=D4(e,"string");return typeof t=="symbol"?t:t+""}function D4(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 Ar(e,t,r){return(t=L4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L4(e){var t=q4(e,"string");return typeof t=="symbol"?t:t+""}function q4(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 M4(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 U4(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 H4(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 zx(e){return e.trim()}function $4(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,r){return e.replace(t,r)}function Kf(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Qo(e,t,r){return e.slice(t,r)}function ar(e){return e.length}function pm(e){return e.length}function Bc(e,t){return t.push(e),e}function V4(e,t){return e.map(t).join("")}function il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nl,column:wi,length:a,return:""}}function Wo(e,t){return J4(il("",null,null,"",null,null,0),e,{length:-e.length},t)}function W4(){return Re}function z4(){return Re=mt>0?We(Si,--mt):0,wi--,Re===10&&(wi=1,nl--),Re}function kt(){return Re=mt<Kx?We(Si,mt++):0,wi++,Re===10&&(wi=1,nl++),Re}function sr(){return We(Si,mt)}function Hc(){return mt}function Zo(e,t){return Qo(Si,e,t)}function Xo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yx(e){return nl=wi=1,Kx=ar(Si=e),mt=0,[]}function Qx(e){return Si="",e}function $c(e){return zx(Zo(mt-1,Yf(e===91?e+2:e===40?e+1:e)))}function K4(e){for(;(Re=sr())&&Re<33;)kt();return Xo(e)>2||Xo(Re)>3?"":" "}function Y4(e,t){for(;--t&&kt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Zo(e,Hc()+(t<6&&sr()==32&&kt()==32))}function Yf(e){for(;kt();)switch(Re){case e:return mt;case 34:case 39:e!==34&&e!==39&&Yf(Re);break;case 40:e===41&&Yf(e);break;case 92:kt();break}return mt}function Q4(e,t){for(;kt()&&e+Re!==57&&!(e+Re===84&&sr()===47););return"/*"+Zo(t,mt-1)+"*"+rl(e===47?e:kt())}function X4(e){for(;!Xo(sr());)kt();return Zo(e,mt)}function Z4(e){return Qx(Vc("",null,null,null,[""],e=Yx(e),0,[0],e))}function Vc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=kt()){case 40:if(m!=108&&We(k,u-1)==58){Kf(k+=Z($c(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=$c(w);break;case 9:case 10:case 13:case 32:k+=K4(m);break;case 92:k+=Y4(Hc()-1,7);continue;case 47:switch(sr()){case 42:case 47:Bc(e$(Q4(kt(),Hc()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=ar(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=Z(k,/\f/g,"")),f>0&&ar(k)-u&&Bc(f>32?_x(k+";",n,r,u-1):_x(Z(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Bc(C=bx(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)Vc(k,t,C,C,x,o,u,s,A);else switch(p===99&&We(k,3)===110?100:p){case 100:case 108:case 109:case 115:Vc(e,C,C,n&&Bc(bx(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:Vc(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+ar(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&z4()==125)continue}switch(k+=rl(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(ar(k)-1)*v,v=1;break;case 64:sr()===45&&(k+=$c(kt())),p=sr(),d=u=ar(S=k+=X4(Hc())),w++;break;case 45:m===45&&ar(k)==2&&(g=0)}}return o}function bx(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=pm(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Qo(e,u+1,u=B4(g=a[m])),S=e;v<f;++v)(S=zx(g>0?p[v]+" "+w:Z(w,/&\f/g,p[v])))&&(c[b++]=S);return il(e,t,r,i===0?um:s,c,l,d)}function e$(e,t,r){return il(e,t,r,Vx,rl(W4()),Qo(e,2,-2),0)}function _x(e,t,r,n){return il(e,t,r,dm,Qo(e,0,n),Qo(e,n+1,-1),n)}function _i(e,t){for(var r="",n=pm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function t$(e,t,r,n){switch(e.type){case G4:if(e.children.length)break;case j4:case dm:return e.return=e.return||e.value;case Vx:return"";case Wx:return e.return=e.value+"{"+_i(e.children,n)+"}";case um:e.value=e.props.join(",")}return ar(r=_i(e.children,n))?e.return=e.value+"{"+r+"}":""}function r$(e){var t=pm(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function n$(e){return function(t){t.root||(t=t.return)&&e(t)}}function i$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Xx(e,t){switch(H4(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+Yc+e+nt+e+e;case 6828:case 4268:return X+e+nt+e+e;case 6165:return X+e+nt+"flex-"+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return X+e+nt+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return X+e+nt+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+nt+Z(e,"shrink","negative")+e;case 5292:return X+e+nt+Z(e,"basis","preferred-size")+e;case 6060:return X+"box-"+Z(e,"-grow","")+X+e+nt+Z(e,"grow","positive")+e;case 4554:return X+Z(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(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(ar(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Yc+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kf(e,"stretch")?Xx(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,ar(e)-3-(~Kf(e,"!important")&&10))){case 107:return Z(e,":",":"+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(We(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return X+e+nt+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+nt+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+nt+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+nt+e+e}return e}function f$(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 Qc(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 Xr={name:i.name,styles:i.styles,next:Xr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xr={name:a.name,styles:a.styles,next:Xr},a=a.next;var s=o.styles+";";return s}return v$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function v$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qc(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]+"}":Sx(s)&&(n+=qf(o)+":"+Ix(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++)Sx(a[c])&&(n+=qf(o)+":"+Ix(o,a[c])+";");else{var l=Qc(e,t,a);switch(o){case"animation":case"animationName":{n+=qf(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Mf(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="";Xr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qc(r,t,e[s]),n){var c=o;i+=c[s]}Ex.lastIndex=0;for(var l="",d;(d=Ex.exec(i))!==null;)l+="-"+d[1];var u=f$(i)+l;return{name:u,styles:i,next:Xr}}function eP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function kx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Cx(e,t,r){var n=[],i=eP(e,n,r);return n.length<2?r:i+t(n)}function I$(e,t){Me.__h&&Me.__h(Et,e,xx||t),xx=0;var r=Et.__H||(Et.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function rP(e,t){var r=I$(Qf++,7);return C$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function E$(){for(var e;e=tP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wc),e.__H.__h.forEach(Xf),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function k$(e){var t,r=function(){clearTimeout(n),Lx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Lx&&(t=requestAnimationFrame(r))}function Wc(e){var t=Et,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Et=t}function Xf(e){var t=Et;e.__c=e.__(),Et=t}function C$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ol(){if(Zr>1)Zr--;else{for(var e,t=!1;zo!==void 0;){var r=zo;for(zo=void 0,Zf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&iP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Zf=0,Zr--,t)throw e}}function ze(e){if(Zr>0)return e();Zr++;try{return e()}finally{ol()}}function nP(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 Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function H(e){return new Ke(e)}function iP(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 oP(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 aP(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 Ii(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Xc-1,this.f=4}function Ko(e){return new Ii(e)}function sP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Zr++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,fm(e),n}finally{ce=r,ol()}}}function fm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,sP(e)}function x$(e){if(ce!==this)throw new Error("Out-of-order effect");aP(this),ce=e,this.f&=-2,8&this.f&&fm(this),ol()}function ea(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ta(e){var t=new ea(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Ei(e,t){D[e]=t.bind(null,D[e]||function(){})}function Zc(e){Ff&&Ff(),Ff=e&&e.S()}function uP(e){var t=this,r=e.data,n=dP(r);n.value=r;var i=rP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Ko(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Ko(function(){return!Array.isArray(l.value)&&!fu(l.value)}),u=ta(function(){if(this.N=pP,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 P$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=H(r);return{o:function(a,s){o.value=a,n=s},d:ta(function(){this.N=pP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function dP(e){return rP(function(){return H(e)},[])}function R$(){ze(function(){for(var e;e=lP.shift();)cP.call(e)})}function pP(){lP.push(this)===1&&(D.requestAnimationFrame||T$)(R$)}function O$(e,t){let r=Qn(e);Yn(()=>{r.current=e},[e]),pn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function W(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--N$,__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 D.vnode&&D.vnode(l),l}function xr(e,t,r){return(t=$$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $$(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 st(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=oV(e,"string");return typeof t=="symbol"?t:t+""}function oV(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=lV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lV(e){var t=uV(e,"string");return typeof t=="symbol"?t:t+""}function uV(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=dV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dV(e){var t=pV(e,"string");return typeof t=="symbol"?t:t+""}function pV(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 ft(e,t,r){return(t=fV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fV(e){var t=mV(e,"string");return typeof t=="symbol"?t:t+""}function mV(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 xn(e,t,r){return(t=hV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hV(e){var t=gV(e,"string");return typeof t=="symbol"?t:t+""}function gV(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 jf(e,t,r){return(t=vV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vV(e){var t=yV(e,"string");return typeof t=="symbol"?t:t+""}function yV(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=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 Bt(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)}var K3,Kc,Mx,Ux,dx,Y3,Q3,Fx,X3,Z3,px,e4,t4,fx,r4,n4,i4,jx,o4,d4,p4,mx,f4,hx,m4,Bx,Jx,Hx,gx,h4,g4,yi,vx,Gf,ye,_4,w4,Vo,Yo,S4,Jf,I4,Lf,C4,Hf,yx,hi,$f,Vf,Wf,zf,F4,nt,Yc,X,Vx,um,dm,j4,Wx,G4,B4,rl,J4,nl,wi,Kx,mt,Re,Si,o$,a$,s$,wx,c$,l$,u$,d$,p$,m$,h$,g$,Zx,Sx,qf,Ix,Ex,Xr,y$,b$,_$,w$,S$,it,Qf,Et,Uf,Ax,xx,tP,Me,Px,Tx,Rx,Ox,Nx,Dx,Lx,A$,ce,zo,Zr,Zf,Xc,cP,Ff,lP,T$,Ue,N$,D$,Tr,em,tm,zc,L$,q$,M$,U$,F$,j$,G$,B$,J$,H$,rm,W$,z$,K$,Y$,Q$,X$,Z$,qx,eV,tV,rV,nV,nm,bi,gi,aV,sV,cV,im,fP,om,am,sm,cm,el,lm,tl,fre,mP=P(()=>{"use strict";jn();ss();K3=Object.defineProperty,Kc=Object.getOwnPropertySymbols,Mx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,dx=(e,t,r)=>t in e?K3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y3=(e,t)=>{for(var r in t||(t={}))Mx.call(t,r)&&dx(e,r,t[r]);if(Kc)for(var r of Kc(t))Ux.call(t,r)&&dx(e,r,t[r]);return e},Q3=(e,t)=>{var r={};for(var n in e)Mx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kc)for(var n of Kc(e))t.indexOf(n)<0&&Ux.call(e,n)&&(r[n]=e[n]);return r},Fx=Object.defineProperty,X3=Object.defineProperties,Z3=Object.getOwnPropertyDescriptors,px=Object.getOwnPropertySymbols,e4=Object.prototype.hasOwnProperty,t4=Object.prototype.propertyIsEnumerable,fx=(e,t,r)=>t in e?Fx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r4=(e,t)=>{for(var r in t||(t={}))e4.call(t,r)&&fx(e,r,t[r]);if(px)for(var r of px(t))t4.call(t,r)&&fx(e,r,t[r]);return e},n4=(e,t)=>X3(e,Z3(t)),i4=(e,t)=>{for(var r in t)Fx(e,r,{get:t[r],enumerable:!0})},jx=(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},o4=(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}d4=(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))(d4||{});p4={log:$o("log"),warn:$o("warn"),info:$o("info"),error:$o("error"),debug:$o("debug")};Object.assign(globalThis,{logger:p4});mx=Symbol.for("Jolibox.canIUseMap"),f4={};globalThis[mx]||(globalThis[mx]=f4);hx=Symbol.for("Jolibox.canIUseMap.native"),m4={};globalThis[hx]||(globalThis[hx]=m4);Bx=(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))(Bx||{}),Jx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Jx||{}),Hx=(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))(Hx||{}),gx=["name","params"],h4=["name","type","location","target","extra","timestamp","userId"],g4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];b4();yi=typeof window=="undefined",vx=()=>!yi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!yi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!yi&&navigator.userAgent.includes("Android"),!yi&&navigator.userAgent.includes("Mac"),!yi&&navigator.userAgent.includes("FB_IAB"),!yi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Gf=class Bf{constructor(t){this.element=t,this.next=Bf.Undefined,this.prev=Bf.Undefined}};Gf.Undefined=new Gf(void 0);ye=Gf,_4=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}},w4=0,Vo=class{constructor(e){this.value=e,this.id=w4++}},Yo=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 Vo&&(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 Vo(e);return this._listeners?this._listeners instanceof Vo?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 Vo)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 Vo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},S4=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 Yo,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 _4,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)}},Jf={};i4(Jf,{None:()=>I4,filter:()=>k4,once:()=>$x,toPromise:()=>E4});I4=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Lf=Symbol.for("Jolibox.hostEmitter"),C4=()=>{let e=new S4;return globalThis[Lf]||(globalThis[Lf]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Lf]};C4();Hf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Yo,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 A4(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}};Hf=jx([Gx],Hf);yx=class{constructor(){this._onWillExecuteCommand=new Yo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Yo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Hf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=a4(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 o4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Jf.toPromise(Jf.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{}}};yx=jx([Gx],yx);hi=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")},$f=class{constructor(t){pt(this,"context",void 0),pt(this,"continueCallback",void 0),pt(this,"adIsShowingCallback",void 0),pt(this,"isBeforeAdCalled",!1),pt(this,"isBeforeRewardCalled",!1),pt(this,"isAdDismissedCalled",!1),pt(this,"isAdViewedCalled",!1),pt(this,"isAfterAdCalled",!1),pt(this,"currentProvider",void 0),pt(this,"currentClientParams",void 0),pt(this,"adsHasResponse",!1),pt(this,"videoChecker",window.document.createElement("video")),pt(this,"contextInfo",void 0),pt(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",Y3({userEvent:a},this.paramsToTrack)),vx()&&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=hi(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=hi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),vx()&&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=hi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=hi(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=hi(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=hi(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 y(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")})})}};Vf=class{constructor(t){jc(this,"context",void 0),jc(this,"adBreakIsShowing",!1),jc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),jc(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()})}};Wf=class{constructor(t){Gc(this,"configs",null),Gc(this,"firstRun",!0),Gc(this,"context",void 0),Gc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(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}};zf=class{constructor(t,r){Ar(this,"name","ADSENSE"),Ar(this,"context",void 0),Ar(this,"contextInfo",void 0),Ar(this,"configured",!1),Ar(this,"initParams",void 0),Ar(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Ar(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=Q3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Ar(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Ar(this,"adUnit",n=>y(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 g=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),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(v)}else f.appendChild(b),new MutationObserver(v=>{v.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"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 y(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)}})}};F4=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(U4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=M4(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-",Yc="-moz-",X="-webkit-",Vx="comm",um="rule",dm="decl",j4="@import",Wx="@keyframes",G4="@layer",B4=Math.abs,rl=String.fromCharCode,J4=Object.assign;nl=1,wi=1,Kx=0,mt=0,Re=0,Si="";o$=function(e,t,r){for(var n=0,i=0;n=i,i=sr(),n===38&&i===12&&(t[r]=1),!Xo(i);)kt();return Zo(e,mt)},a$=function(e,t){var r=-1,n=44;do switch(Xo(n)){case 0:n===38&&sr()===12&&(t[r]=1),e[r]+=o$(mt-1,t,r);break;case 2:e[r]+=$c(n);break;case 4:if(n===44){e[++r]=sr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rl(n)}while(n=kt());return e},s$=function(e,t){return Qx(a$(Yx(e),t))},wx=new WeakMap,c$=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&&!wx.get(r))&&!n){wx.set(e,!0);for(var i=[],o=s$(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]}}},l$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};u$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case dm:e.return=Xx(e.value,e.length);break;case Wx:return _i([Wo(e,{value:Z(e.value,"@","@"+X)})],n);case um:if(e.length)return V4(e.props,function(i){switch($4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _i([Wo(e,{props:[Z(i,/:(read-\w+)/,":"+Yc+"$1")]})],n);case"::placeholder":return _i([Wo(e,{props:[Z(i,/:(plac\w+)/,":"+X+"input-$1")]}),Wo(e,{props:[Z(i,/:(plac\w+)/,":"+Yc+"$1")]}),Wo(e,{props:[Z(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},d$=[u$],p$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||d$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[c$,l$];{var l,d=[t$,n$(function(m){l.insert(m)})],u=r$(c.concat(n,d)),p=function(m){return _i(Z4(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new F4({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};m$={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},h$=/[A-Z]|^ms/g,g$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zx=function(e){return e.charCodeAt(1)===45},Sx=function(e){return e!=null&&typeof e!="boolean"},qf=i$(function(e){return Zx(e)?e:e.replace(h$,"-$&").toLowerCase()}),Ix=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(g$,function(r,n,i){return Xr={name:n,styles:i,next:Xr},n})}return m$[e]!==1&&!Zx(e)&&typeof t=="number"&&t!==0?t+"px":t};Ex=/label:\s*([^\s;{]+)\s*(;|$)/g;y$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},b$=function(e,t,r){y$(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)}};_$=function(e){var t=p$(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=Mf(s,t.registered,void 0);return b$(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=Mf(s,t.registered),d="animation-"+l.name;return kx(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=Mf(s,t.registered);kx(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Cx(t.registered,r,w$(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:eP.bind(null,t.registered),merge:Cx.bind(null,t.registered,r)}},w$=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},S$=_$({key:"css"}),it=S$.css,xx=0,tP=[],Me=D,Px=Me.__b,Tx=Me.__r,Rx=Me.diffed,Ox=Me.__c,Nx=Me.unmount,Dx=Me.__;Me.__b=function(e){Et=null,Px&&Px(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Dx&&Dx(e,t)},Me.__r=function(e){Tx&&Tx(e),Qf=0;var t=(Et=e.__c).__H;t&&(Uf===Et?(t.__h=[],Et.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wc),t.__h.forEach(Xf),t.__h=[],Qf=0)),Uf=Et},Me.diffed=function(e){Rx&&Rx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(tP.push(t)!==1&&Ax===Me.requestAnimationFrame||((Ax=Me.requestAnimationFrame)||k$)(E$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Uf=Et=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wc),r.__h=r.__h.filter(function(n){return!n.__||Xf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),Ox&&Ox(e,t)},Me.unmount=function(e){Nx&&Nx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wc(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};Lx=typeof requestAnimationFrame=="function";A$=Symbol.for("preact-signals");ce=void 0,zo=void 0,Zr=0,Zf=0,Xc=0;Ke.prototype.brand=A$;Ke.prototype.h=function(){return!0};Ke.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)};Ke.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)}};Ke.prototype.subscribe=function(e){var t=this;return ta(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}})};Ke.prototype.valueOf=function(){return this.value};Ke.prototype.toString=function(){return this.value+""};Ke.prototype.toJSON=function(){return this.value};Ke.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ke.prototype,"value",{get:function(){var e=nP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Zf>100)throw new Error("Cycle detected");this.v=e,this.i++,Xc++,Zr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}});(Ii.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xc))return!0;if(this.g=Xc,this.f|=1,this.i>0&&!iP(this))return this.f&=-2,!0;var e=ce;try{oP(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,aP(this),this.f&=-2,!0};Ii.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)}Ke.prototype.S.call(this,e)};Ii.prototype.U=function(e){if(this.t!==void 0&&(Ke.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)}};Ii.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(Ii.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=nP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ea.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()}};ea.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,sP(this),oP(this),Zr++;var e=ce;return ce=this,x$.bind(this,e)};ea.prototype.N=function(){2&this.f||(this.f|=2,this.o=zo,zo=this)};ea.prototype.d=function(){this.f|=8,1&this.f||fm(this)};lP=[];ta(function(){cP=this.N})();uP.displayName="_st";Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:uP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ei("__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 Ke&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Ei("__r",function(e,t){Zc();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ta(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Zc(r),e(t)});Ei("__e",function(e,t,r,n){Zc(),e(t,r,n)});Ei("diffed",function(e,t){Zc();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=P$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Ei("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)});Ei("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});bt.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};T$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ue=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
|
-
`;
|
|
640
|
+
`;N$=0;D$=it`
|
|
641
641
|
${Ue}
|
|
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
|
-
`,Tr=H(null),
|
|
715
|
+
`,Tr=H(null),em=H(""),tm=H(""),zc=H(!1),L$=()=>{var e;(e=Tr.value)==null||e.call(Tr,!1)},q$=()=>{var e;(e=Tr.value)==null||e.call(Tr,!0)},M$=e=>y(void 0,null,function*(){let{title:t,content:r}=e;return Tr.value&&(Tr.value(!1),ze(()=>{Tr.value=null,zc.value=!1})),ze(()=>{em.value=t||"",tm.value=r||"",zc.value=!0}),new Promise(n=>{Tr.value=i=>{ze(()=>{Tr.value=null,zc.value=!1,em.value="",tm.value=""}),n(i)}})}),U$=()=>zc.value?W("div",{className:D$,children:W("div",{className:"card-wrapper",children:[W("div",{className:"body",children:[W("div",{className:"title",children:em.value}),W("div",{className:"content",children:tm.value})]}),W("div",{className:"footer",children:[W("button",{onClick:L$,className:"cancel-btn",children:"Cancel"}),W("button",{onClick:q$,className:"confirm-btm",children:"Confirm"})]})]})}):null,F$=it`
|
|
716
716
|
${Ue}
|
|
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
|
-
`,
|
|
748
|
+
`,j$=()=>{let e=H(!1),t=H(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{ze(()=>{t.value=Date.now(),e.value=!1})}}},G$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=dP(t);O$(()=>{s.value>0?s.value-=1:ze(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=Ko(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=Ko(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=Ko(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>y(void 0,null,function*(){if(a.value=!0,!(yield M$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),ze(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),ze(()=>{a.value=!0,s.value=0,o.value=null})};return W("div",{className:F$,children:[s.value>0&&r!=="interstitial"&&W("div",{className:"timer",children:[s.value,"s"]}),W("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:W("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:W("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"})})})]})},B$=()=>{let e=H(),t=H(),r=H(),n=H(),i=H(),o=H(!1),a=H(15),s=H(""),c=H("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},J$=it`
|
|
749
749
|
${Ue}
|
|
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
|
-
`,
|
|
767
|
+
`,H$=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=po(()=>j$(),[]),[p,f]=gr(!1),m=b=>{var v,w,S,x;s.value=!1,b==="dismiss"?(v=n.value)==null||v.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(S=r.value)==null||S.call(r),(x=o.value)==null||x.call(o),f(!1)},g=Gr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return pn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?W("div",{className:J$,children:[W(G$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&W("iframe",{src:l.value,onLoad:g,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"}),W(U$,{})]}):null};rm=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",B$()),this.context=t,this.initParams=r}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),as(W(H$,{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 y(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"})};ze(()=>{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 v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};ze(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let b=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ze(()=>{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}}})}},W$=()=>{let e=H(null),t=H(null),r=H(null),n=H(null),i=H(null),o=H(null),a=H(!1),s=H(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},z$=it`
|
|
768
768
|
${Ue}
|
|
769
769
|
position: fixed;
|
|
770
770
|
inset: 0;
|
|
771
771
|
z-index: 2147483647;
|
|
772
772
|
display: flex;
|
|
773
773
|
background: #000000;
|
|
774
|
-
`,
|
|
774
|
+
`,K$=it`
|
|
775
775
|
${Ue}
|
|
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
|
-
`,
|
|
782
|
+
`,Y$=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
|
-
`,
|
|
793
|
+
`,Q$=it`
|
|
794
794
|
font-size: 11px;
|
|
795
795
|
letter-spacing: 0.08em;
|
|
796
796
|
text-transform: uppercase;
|
|
797
797
|
color: #c7d4ef;
|
|
798
|
-
`,
|
|
798
|
+
`,X$=it`
|
|
799
799
|
font-size: 14px;
|
|
800
800
|
font-weight: 500;
|
|
801
|
-
`,
|
|
801
|
+
`,Z$=it`
|
|
802
802
|
${Ue}
|
|
803
803
|
flex: 1;
|
|
804
804
|
background: #050505;
|
|
@@ -806,7 +806,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
806
806
|
align-items: center;
|
|
807
807
|
justify-content: center;
|
|
808
808
|
padding: 0;
|
|
809
|
-
`,
|
|
809
|
+
`,qx=it`
|
|
810
810
|
width: 100%;
|
|
811
811
|
height: 100%;
|
|
812
812
|
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
@@ -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
|
-
`,
|
|
818
|
+
`,eV=it`
|
|
819
819
|
position: absolute;
|
|
820
820
|
bottom: 32px;
|
|
821
821
|
right: 32px;
|
|
822
822
|
display: flex;
|
|
823
823
|
gap: 12px;
|
|
824
|
-
`,
|
|
824
|
+
`,tV=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
|
-
`,
|
|
840
|
+
`,rV=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
|
-
`,
|
|
850
|
+
`,nV=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,g]=gr(!1),[b,v]=gr(!1),[w,S]=gr("Loading next content..."),x=Qn(null),A=l.value,C=Gr(N=>{var R,F,ee,ie;u(!1),c.value=!1,N==="dismiss"?(R=n.value)==null||R.call(n):(F=i.value)==null||F.call(i),(ee=r.value)==null||ee.call(r),(ie=o.value)==null||ie.call(o)},[c,n,i,r,o]),k=Gr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(pn(()=>{var N;if(!c.value||!A){f(0),g(!1),v(!1),S("Loading next content...");return}let R=A.mode==="reward"?15:0,F=Math.max(Math.floor((N=A.countdown)!=null?N:R),0);if(f(F),v(A.mode==="reward"?F===0:!0),g(A.mode==="interstitial"?F===0:!1),F===0)return;let ee=F,ie=window.setInterval(()=>{ee-=1,f(Math.max(ee,0)),ee<=0&&(window.clearInterval(ie),A.mode==="reward"?v(!0):g(!0))},1e3);return()=>{window.clearInterval(ie)}},[c.value,A,C]),pn(()=>{var N;if(!c.value||!A)return;let R=x.current;if(!R)return;if(R.innerHTML="",S("Loading next content..."),u(!1),A.testMode){let ie=document.createElement("div");ie.className=qx,ie.innerText="Preview slot placeholder",R.appendChild(ie),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){k();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",A.clientId),F.setAttribute("data-ad-slot",A.unitId),F.setAttribute("data-ad-format","auto"),F.setAttribute("data-full-width-responsive","true"),A.channelId&&F.setAttribute("data-ad-channel",A.channelId),R.appendChild(F);let ee=new MutationObserver(()=>{var ie;let lr=F.getAttribute("data-ad-status");lr==="filled"?(u(!0),S(""),(ie=a.value)==null||ie.call(a),ee.disconnect()):lr==="unfilled"&&(S("Slot currently unavailable."),u(!1),ee.disconnect())});ee.observe(F,{attributes:!0,attributeFilter:["data-ad-status"]});try{let ie=window;ie.adsbygoogle=ie.adsbygoogle||[],ie.adsbygoogle.push({})}catch(ie){ee.disconnect(),k()}return()=>{ee.disconnect(),R.innerHTML=""}},[c.value,A,a,k]),!c.value||!A)return null;let B=A.mode==="reward"?"Next content unlocking":"Content paused",le=p>0?`Content resumes in ${p}s`:"Content ready";return W("div",{className:z$,children:W("div",{className:K$,children:[W("div",{className:Y$,children:[W("div",{className:Q$,children:B}),W("div",{className:X$,children:le})]}),W("div",{className:Z$,ref:x,children:!d&&W("div",{className:qx,children:w})}),W("div",{className:eV,children:A.mode==="reward"?W("button",{className:tV,type:"button",onClick:()=>C("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&W("button",{className:rV,type:"button",onClick:()=>C("viewed"),children:"Continue"})})]})})};nm=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",W$()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return y(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),as(W(nV,{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 g={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},v=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,g)},w=()=>{var S,x;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(S=t.afterAd)==null||S.call(t),(x=t.adBreakDone)==null||x.call(t,g)};ze(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=v,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 g={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},v=()=>{var C;this.adsIsShowing=!1,g.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},w=()=>{var C;this.adsIsShowing=!1,g.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},S=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,g)},x=()=>{var C,k;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,g)};ze(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=v,this.state.adViewed.value=w,this.state.adBreakDone.value=S,this.state.adError.value=x});let A=()=>{var C,k;if(!this.canDisplay(m.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,ze(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,A);break}}}},bi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||bi[e.data.type]&&bi[e.data.type].forEach(t=>{t(e.data.data)})});gi=(e,t)=>{pn(()=>(bi[e]||(bi[e]=new Set),bi[e].add(t),()=>{bi[e].delete(t)}),[e,t])},aV=()=>{let e=H(),t=H(),r=H(),n=H(),i=H(),o=H(),a=H(),s=H(!1),c=H("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},sV=it`
|
|
851
851
|
${Ue}
|
|
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
|
-
`,sV=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 g,b,v,w;u(!1),c.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(v=r.value)==null||v.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return gi("appsrockets_ad_dismissed",()=>p("dismiss")),gi("appsrockets_ad_rewarded",()=>p("viewed")),gi("appsrockets_ad_completed",()=>p("viewed")),gi("appsrockets_ad_skipped",()=>p("viewed")),gi("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),gi("appsrockets_ad_loaded",()=>u(!0)),c.value?W("div",{className:aV,style:{display:d?"flex":"none"},children:c.value&&W("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};nm=class{constructor(t,r){Pr(this,"name","APPSROCKETS"),Pr(this,"initialized",!1),Pr(this,"initCompleter",null),Pr(this,"context",void 0),Pr(this,"adsOverlay",null),Pr(this,"adsIsShowing",!1),Pr(this,"lastUnDisplayedAdBreak",null),Pr(this,"state",oV()),Pr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),as(W(sV,{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=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};We(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((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 p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},g=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},b=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};We(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=b,this.state.adLinkClicked.value=u,this.state.adError.value=v});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,We(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},pP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};im=class{constructor(t,r,n){tt(this,"adUnit",void 0),tt(this,"project",void 0),tt(this,"keyValue",void 0),tt(this,"adsContext",null),tt(this,"rewardedSlot",null),tt(this,"rewardedPayload",null),tt(this,"readyEvent",null),tt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),tt(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))}),tt(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),tt(this,"reinit",i=>{this.destroy(i),this.init()}),tt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),tt(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)})}}),tt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),tt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),tt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,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,pP(),this.withCommand(()=>{this.init()})}};om=class{constructor(t,r,n){var i=this;ft(this,"adUnit",void 0),ft(this,"project",void 0),ft(this,"keyValue",void 0),ft(this,"adsContext",null),ft(this,"gamingInterstitialSlot",null),ft(this,"readyEvent",null),ft(this,"isRetrying",!1),ft(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ft(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))}),ft(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),ft(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ft(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ft(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")}))}),ft(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((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)))})}),pP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};am=class{constructor(t,r){xn(this,"name","GOOGLE_GPT"),xn(this,"context",void 0),xn(this,"contextInfo",void 0),xn(this,"initParams",void 0),xn(this,"rewardAdManager",void 0),xn(this,"interstitialManager",void 0),xn(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 y(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 im(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new om(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}}}};sm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ff(this,"context",void 0),Ff(this,"placement","GAME"),Ff(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:Jx.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:Gx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Bx.WebSDK};return v4(i)}};el=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 sm(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}}},cm=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=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return 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=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ct(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ct(this,"getAFVAdsInfo",function(){return y(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new el(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};tl=class{constructor(t){if(Bt(this,"context",void 0),Bt(this,"contextInfo",void 0),Bt(this,"providers",{}),Bt(this,"channelPolicy",void 0),Bt(this,"adsActionDetection",void 0),Bt(this,"requestContext",void 0),Bt(this,"adsRequest",void 0),Bt(this,"initialized",!1),Bt(this,"adsIsShowing",!1),Bt(this,"lastAdBreak",void 0),Bt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Vf(this.context),this.adsActionDetection=new $f(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new cm(t),this.requestContext=new el(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new am(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Wf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new tm(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new nm(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}case"ADSENSE_BANNER_AS_AFG":{let i=new rm(this.context,n.params);yield i.init(),this.providers.ADSENSE_BANNER_AS_AFG=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return y(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,g;let b=Date.now();if(b-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&&b-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=b,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),w=v==null?void 0:v.data,S=v==null?void 0:v.code;if(S==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,A,C,k;(x=t.beforeAd)==null||x.call(t),(A=t.adViewed)==null||A.call(t),(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.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(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=w.sort((B,le)=>B.seq-le.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let A=!0,C=null,k=new Hf(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let B=x.shift(),le=this.providers[B.provider];if(le){let[N,R]=yield k.callAdBreakAndContinue(le,t,B,F=>{var ee;this.adsIsShowing=F,(ee=this.context.eventEmitter)==null||ee.emit("isAdShowing",F)});A=N,C=R}else A=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!A)break}A&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},lre=nt`
|
|
869
|
+
`,cV=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 g,b,v,w;u(!1),c.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(v=r.value)==null||v.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return gi("appsrockets_ad_dismissed",()=>p("dismiss")),gi("appsrockets_ad_rewarded",()=>p("viewed")),gi("appsrockets_ad_completed",()=>p("viewed")),gi("appsrockets_ad_skipped",()=>p("viewed")),gi("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),gi("appsrockets_ad_loaded",()=>u(!0)),c.value?W("div",{className:sV,style:{display:d?"flex":"none"},children:c.value&&W("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};im=class{constructor(t,r){Pr(this,"name","APPSROCKETS"),Pr(this,"initialized",!1),Pr(this,"initCompleter",null),Pr(this,"context",void 0),Pr(this,"adsOverlay",null),Pr(this,"adsIsShowing",!1),Pr(this,"lastUnDisplayedAdBreak",null),Pr(this,"state",aV()),Pr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),as(W(cV,{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=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};ze(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((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 p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},g=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},b=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};ze(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=b,this.state.adLinkClicked.value=u,this.state.adError.value=v});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ze(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},fP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};om=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),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.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,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,fP(),this.withCommand(()=>{this.init()})}};am=class{constructor(t,r,n){var i=this;ft(this,"adUnit",void 0),ft(this,"project",void 0),ft(this,"keyValue",void 0),ft(this,"adsContext",null),ft(this,"gamingInterstitialSlot",null),ft(this,"readyEvent",null),ft(this,"isRetrying",!1),ft(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ft(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))}),ft(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),ft(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ft(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ft(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")}))}),ft(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((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)))})}),fP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};sm=class{constructor(t,r){xn(this,"name","GOOGLE_GPT"),xn(this,"context",void 0),xn(this,"contextInfo",void 0),xn(this,"initParams",void 0),xn(this,"rewardAdManager",void 0),xn(this,"interstitialManager",void 0),xn(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 y(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 om(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new am(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}}}};cm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";jf(this,"context",void 0),jf(this,"placement","GAME"),jf(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:Hx.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:Bx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Jx.WebSDK};return y4(i)}};el=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 cm(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}}},lm=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=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return 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=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ct(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ct(this,"getAFVAdsInfo",function(){return y(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new el(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};tl=class{constructor(t){if(Bt(this,"context",void 0),Bt(this,"contextInfo",void 0),Bt(this,"providers",{}),Bt(this,"channelPolicy",void 0),Bt(this,"adsActionDetection",void 0),Bt(this,"requestContext",void 0),Bt(this,"adsRequest",void 0),Bt(this,"initialized",!1),Bt(this,"adsIsShowing",!1),Bt(this,"lastAdBreak",void 0),Bt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Wf(this.context),this.adsActionDetection=new Vf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new lm(t),this.requestContext=new el(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new sm(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new zf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new rm(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new im(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}case"ADSENSE_BANNER_AS_AFG":{let i=new nm(this.context,n.params);yield i.init(),this.providers.ADSENSE_BANNER_AS_AFG=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return y(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,g;let b=Date.now();if(b-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&&b-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=b,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),w=v==null?void 0:v.data,S=v==null?void 0:v.code;if(S==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,A,C,k;(x=t.beforeAd)==null||x.call(t),(A=t.adViewed)==null||A.call(t),(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.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(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=w.sort((B,le)=>B.seq-le.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let A=!0,C=null,k=new $f(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let B=x.shift(),le=this.providers[B.provider];if(le){let[N,R]=yield k.callAdBreakAndContinue(le,t,B,F=>{var ee;this.adsIsShowing=F,(ee=this.context.eventEmitter)==null||ee.emit("isAdShowing",F)});A=N,C=R}else A=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!A)break}A&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},fre=it`
|
|
870
870
|
${Ue}
|
|
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 hP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,c)=>y(this,null,function*(){let l=yield s;if(l===!0)return!0;mP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return mP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:kr,loginGuide:Cr}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:kr,loginGuide:Cr}})}}}var mP,gP=P(()=>{"use strict";J();Fe();mP=I.testMode});var fm,mm,al,vP=P(()=>{"use strict";O();fm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},mm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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 T({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}}},al=class{constructor(t){this.unlockOptionsService=new Dt(new fm(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 Dt(new mm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(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 y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(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 y(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 gm(e){return hm||(hm=new al(e)),hm}var SV,IV,EV,hm,vm,ym,bm,_m=P(()=>{"use strict";vP();Fe();O();SV=()=>(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]},IV=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],EV=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(SV())},hm=null;vm=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=gm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;q.emit(Ic,{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 EV(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},ym=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=gm(t);try{let s=yield r.getGlobalConfig();return q.emit(Gt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||kr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&be.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||kr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(Gt,{joliCoinUseAndCharge:kr,loginGuide:Cr}),be.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:kr,loginGuide:Cr,supportedHostMethods:IV}}),{joliCoinUseAndCharge:kr,loginGuide:Cr}}}))},bm=e=>y(void 0,null,function*(){yield gm(e).warmupCache(),console.log("Reward cache warmed up")})});var wm=P(()=>{"use strict";_m();_m()});var yP,bP=P(()=>{"use strict";yP=e=>t=>y(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 Oe,ki,Ct=P(()=>{"use strict";Fe();nr();Fe();Oe=je(q,Ic),ki=(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 sl,Sm=P(()=>{"use strict";sl={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 ht,en=P(()=>{"use strict";O();ht=V()});function _P(e){return Im||(Im=new km(e)),Im}var Em,km,Im,Cm,Pn,Ci=P(()=>{"use strict";O();Em=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},km=class{constructor(t){this.balanceService=new Dt(new Em(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 y(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 y(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 y(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()}},Im=null;Cm=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield _P(e).getBalance(t)}),Pn=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield _P(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var wP=P(()=>{"use strict";Ci()});function Tm(e){return Am||(Am=new Pm(e)),Am}var xm,Pm,Am,Rm,Tn,cl,Ai=P(()=>{"use strict";O();xm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Pm=class{constructor(t){this.gemBalanceService=new Dt(new xm(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 y(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 y(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 y(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()}},Am=null;Rm=(e,t="GEM")=>y(void 0,null,function*(){return yield Tm(e).getGemBalance(t)}),Tn=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Tm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),cl=(e,t="GEM")=>y(void 0,null,function*(){yield Tm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var SP=P(()=>{"use strict";Ai()});var Ot,Rn=P(()=>{"use strict";wP();SP();Ot={JOLI_COIN:{fetchBalance:Cm,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:Rm,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 ra,Rr,Om=P(()=>{"use strict";en();Ct();nr();Fe();Fe();Rn();ra=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;ht.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield Oe.getData(),o=Ot[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"}}))},Rr=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,wn);return q.emit(kc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var na,Or,IP=P(()=>{"use strict";en();Ct();Fe();nr();Fe();Rn();Ai();Ci();na=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;ht.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield Oe.getData(),a=Ot[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(Oe.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"?Tn(n):Pn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Or=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,jt);return q.emit(Ec,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 Nm,Nr,EP=P(()=>{"use strict";J();en();nr();Fe();Fe();O();Ct();Rn();Nm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;ht.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Oe.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield ga(3e3));let f=Ot[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),v=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Oe.updateData({[w]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Nr=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,Er);return q.emit(Cc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var On=P(()=>{"use strict";Om();IP();EP()});var CV,ll,Dm=P(()=>{"use strict";J();O();Sm();On();en();Ci();Rn();Ct();CV=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{na(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ra(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>y(void 0,null,function*(){var p,f,m,g;try{let b=yield o.getData();if(ki(b,l)){let x=Ot.JOLI_COIN,A=yield x.fetchBalance(t),C=x.getCurrentUser(b),k=x.createUpdatedUser((p=A==null?void 0:A.balance)!=null?p:0,C.enableAutoDeduct);if(!x.isEnough(b,k))return i==null||i(u),!1}else{let x=!0;for(let A of d){let C=yield ht.executeCommand(A);if(x=x&&C.result!=="FAILED",C.result!=="CONTINUE")break}if(!x)return i==null||i(u),!1}let w=sl[r],S=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",S),S.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&&((g=u.adViewed)==null||g.call(u)),Pn(t)}catch(x){console.error("-----unlockWithJolicoin adBreakDone error-----",x)}return n==null||n({quantity:S.data.quantity,balance:S.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()}})},ll=(e,t,r)=>CV(e,t,"JOLI_COIN",r)});var kP,CP=P(()=>{"use strict";Ct();Dm();On();kP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Rr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Or("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Nr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ll("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var AP,xP=P(()=>{"use strict";Dm();Ct();On();AP=(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=Rr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Or("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Nr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ll("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var ul,Lm=P(()=>{"use strict";J();O();Sm();On();Om();en();Ai();Rn();Ct();ul=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Nm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),na(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ra(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f,m;try{let g=yield i.getData(),b=ki(g,c);if(console.log("[GemHandler] supportSubscription",b,g),b){let S=Ot.JOLI_GEM,x=yield S.fetchBalance(t),A=S.getCurrentUser(g),C=S.createUpdatedUser((u=x==null?void 0:x.balance)!=null?u:0,A.enableAutoDeduct);if(!S.isEnough(g,C))return n==null||n(d),!1}else{let S=!0;for(let x of l){let A=yield ht.executeCommand(x);if(console.log("[GemHandler] command result",A,x),S=S&&A.result!=="FAILED",A.result!=="CONTINUE")break}if(!S)return n==null||n(d),!1}let v=sl.GEM,w=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.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)),Tn(t)}catch(S){console.error("-----unlockWithGem adBreakDone error-----",S)}return r==null||r({quantity:w.data.quantity,balance:w.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var PP,TP=P(()=>{"use strict";Ct();Lm();On();PP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Rr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Or("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Nr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ul("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var RP,OP=P(()=>{"use strict";Lm();Ct();On();RP=(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=Rr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Or("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Nr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ul("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var NP,DP,qm=P(()=>{"use strict";Rn();en();Ct();nr();Fe();Fe();NP=e=>{let{showSubscriptionModal:t}=e;ht.registerCommand("Rewards.subscription",()=>y(void 0,null,function*(){var s,c;let r=yield Oe.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=Ot[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},DP=e=>()=>y(void 0,null,function*(){let t=je(q,Sn);return q.emit(Ac,e),(yield t.getFreshData()).result})});var LP=P(()=>{"use strict";qm()});var qP,MP=P(()=>{"use strict";en();LP();J();Ct();Ci();Ai();qP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{NP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>y(void 0,null,function*(){var l,d,u,p,f,m;try{let g=yield i.getData();if(!ki(g,a))return!1;let v=!0;for(let w of s){let S=yield ht.executeCommand(w);if(v=v&&S.result!=="FAILED",S.result!=="CONTINUE")break}if(Pn(t),Tn(t),console.log("-----unlockWithSubscription result-----",v),v){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:j(T({},(p=I.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(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(c),!1}finally{}})}});var UP,FP=P(()=>{"use strict";Ct();MP();qm();UP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=DP("SUBSCRIPTION");return qP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Oe,showSubscriptionModal:o,hasSubscription:n}})}});var Nt,jP=P(()=>{"use strict";gP();wm();bP();CP();xP();TP();OP();FP();Ci();Ai();Nt=hP();vm(Nt);ym(Nt)});var dl,AV,sr,xV,ia,PV,GP,BP,TV,RV,Mm,OV,NV,DV,JP=P(()=>{"use strict";O();Ge();rr();lx();fP();xt();J();vt();ue();jP();cu();wm();dl=V(),AV=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},sr={get:(e,t)=>re(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},xV={httpClient:sr,checkNetwork:AV,track:G,eventEmitter:Ba,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;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:""}}},ia=new tl(xV);Nt.getRewardFrequencyConfig(sr).then(e=>{console.log("getRewardFrequencyConfig",e)});Nt.registerRewardHandler("ADS",yP(ia));Nt.registerRewardHandler("JOLI_COIN",kP(sr,{onUnlockSuccess:e=>{GP(e),G("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>it("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_COIN_ONLY",AP(sr,{onUnlockSuccess:e=>{GP(e),G("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>it("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM",PP(sr,{onUnlockSuccess:e=>{BP(e),G("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>it("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM_ONLY",RP(sr,{onUnlockSuccess:e=>{BP(e),G("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>it("invokeSubscriptionPanelSync")}));PV=()=>{G("subscription_unlock_success",{})};Nt.registerRewardHandler("SUBSCRIPTION",UP(sr,{onSubSuccess:PV.bind(void 0),hasSubscription:()=>it("invokeSubscriptionPanelSync")}));GP=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"}})};bm(sr);cl(sr);BP=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"}}})},TV=z("adInit",{implement:e=>{ia.init(e)}}),RV=z("adConfig",{implement:e=>{ia.adConfig(e)}}),Mm=!1,OV=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))},NV=z("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){OV(e);return}if(e.type==="reward"){if(Mm)return;Mm=!0,Nt.getRewardsTypes(sr).then(n=>{Nt.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(()=>{Mm=!1})})}else ia.adBreak(e)}}),DV=z("adUnit",{implement:e=>{ia.adUnit(e)}});dl.registerCommand("AdsSDK.init",TV);dl.registerCommand("AdsSDK.adConfig",RV);dl.registerCommand("AdsSDK.adBreak",NV);dl.registerCommand("AdsSDK.adUnit",DV);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var oa,LV,qV,MV,UV,FV,HP=P(()=>{"use strict";O();ue();Ge();J();oa=V(),LV=z("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Jt(r.errMsg,r.errNo)}}),qV=z("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Jt(r,t);return{webviewId:n.webviewId}}}),MV=z("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Jt(r,t)}}),UV=z("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{be.emit("onInterceptSystemExit",{intercept:e}),be.emit("onInterceptBackPress",{intercept:e})}}),FV=z("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),E.object()),implement:(e,t)=>{U("callHostMethodAsync",{method:e,params:T({},t)})}});oa.registerCommand("RouterSDK.openSchema",LV);oa.registerCommand("RouterSDK.openPage",qV);oa.registerCommand("RouterSDK.closePage",MV);oa.registerCommand("RouterSDK.interceptSystemExit",UV);oa.registerCommand("RouterSDK.navigateToNativePage",FV);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function BV(e){Tl("cpLoadProgressEvent",{progress:e},I.webviewId,!0)}var VP,jV,pl,Um,$P,GV,JV,WP=P(()=>{"use strict";O();Ge();ue();J();xt();VP=V(),jV=z("onLoadFinished",{implement:()=>{Tl("cpLoadFinishEvent",{},I.webviewId,!0),G("loadFinished",{duration:performance.now()})}}),pl=null,Um=!1,$P=0,GV=200;JV=z("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{pl=e,Um||(Um=!0,requestAnimationFrame(function t(){let r=Date.now();r-$P>=GV?(pl!==null&&(BV(pl),$P=r,pl=null),Um=!1):requestAnimationFrame(t)}))}});VP.registerCommand("RuntimeSDK.loadFinishedEvent",jV);VP.registerCommand("RuntimeSDK.loadProgressEvent",JV)});var HV,$V,VV,zP=P(()=>{"use strict";O();Ge();J();HV=V(),$V="isNativeSupport",VV=z($V,{paramsSchema:E.tuple(E.object({version:E.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:xh(su(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});HV.registerCommand("API.isNativeSupport",VV);M("isNativeSupport",{version:"1.1.46"})});var YP=h(Fm=>{"use strict";Ge();ue();O();O();J();var KP=V(),WV=oe("callHostMethod",{paramsSchema:E.tuple(E.object({method:E.string(),params:E.object().optional().default({})})),implement:r=>y(Fm,[r],function*({method:e,params:t}){if(!it(e))throw new Jt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield U("callHostMethodAsync",{method:e,params:T({},t)});if(n!==0)throw new Jt(i,n);let c=o,{callHostMethodId:a}=c,s=Ke(c,["callHostMethodId"]);return T({},s)})});KP.registerCommand("API.callHostMethod",WV);M("callHostMethod",{version:"1.1.49"});var zV=oe("userTrackAsync",{paramsSchema:E.tuple(E.object({event:E.string(),eventType:E.number(),params:E.object().optional().default({})})),implement:n=>y(Fm,[n],function*({event:e,eventType:t,params:r}){if(!it("userTrackAsync"))throw new Jt("Method not supported",10001);let{errNo:i,errMsg:o}=yield U("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:I.webviewId});if(i!==0)throw new Jt(o,i)})});KP.registerCommand("API.track",zV);M("track",{version:"1.1.53"})});var XP=h(xi=>{"use strict";O();Ge();Ef();Lr();Nf();var aa=V(),QP=Nc(),KV=oe("purchaseGem",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(xi,null,function*(){var r,n;let t=yield QP.purchase(e.productId);if(t.code!=="SUCCESS")throw Ye({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),YV=oe("getGemProducts",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){var t,r;let e=(r=(t=yield QP.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}})}})}),QV=oe("getSubscriptionPlans",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){let e=yield An.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Ye({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),XV=oe("flushSubInfoCache",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){yield An.updateAllNativePriceCache()})}),ZV=oe("subscribe",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(xi,null,function*(){var a;let t=yield An.getTierByProductId(e.productId);if(!t)throw Ye({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield An.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});aa.registerCommand("PaymentSDK.purchaseGem",KV);aa.registerCommand("PaymentSDK.getGemProducts",YV);aa.registerCommand("PaymentSDK.getSubscriptionPlans",QV);aa.registerCommand("PaymentSDK.subscribe",ZV);aa.registerCommand("PaymentSDK.flushSubInfoCache",XV);M("payment.purchaseGem",{version:"1.2.9"});M("payment.getGemProducts",{version:"1.2.9"});M("payment.getSubscriptionPlans",{version:"1.2.9"});M("payment.subscribe",{version:"1.2.9"});M("payment.flushSubInfoCache",{version:"1.2.9"})});var ZP=h(jm=>{"use strict";O();Ge();J();Lr();ue();var e9=V(),t9=Ln(reportError),r9=oe("getCoinDetails",{paramsSchema:E.tuple(E.object({onUpdate:E.function().optional()})),implement:t=>y(jm,[t],function*({onUpdate:e}){try{if(I.mpType!=="miniApp")return reportError(Ye({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(!it("requestCoinDetailsSync"))return reportError(Ye({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 n=e?t9(e):(()=>{console.log("default update function called")}).bind(jm),{errNo:i,errMsg:o,data:a}=U("requestCoinDetailsSync");if(i!==0)throw Ye({code:i!=null?i:-1,msg:o});return U("requestCoinDetailsAsync").then(s=>{s.errNo==0&&s.data&&n(s.data)}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:a}}catch(r){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+r.message}}})});e9.registerCommand("RewardsSDK.getCoinDetails",r9);M("rewards.getCoinDetails",{version:"1.3.2"})});var n9={};var Tae,Dae,jae,Gae,Bae,eT=P(()=>{"use strict";aA();Tae=se(sA());mA();Ji();hA();Dae=se(gA());wc();JP();HP();WP();zP();jae=se(YP()),Gae=se(XP()),Bae=se(ZP())});var tT=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[tT])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[tT]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(iA(),nA)),Promise.resolve().then(()=>(eT(),n9)),Promise.resolve().then(()=>(xt(),mg))]);e()});
|
|
914
|
+
`});function gP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,c)=>y(this,null,function*(){let l=yield s;if(l===!0)return!0;hP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return hP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:kr,loginGuide:Cr}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:kr,loginGuide:Cr}})}}}var hP,vP=P(()=>{"use strict";J();je();hP=I.testMode});var mm,hm,al,yP=P(()=>{"use strict";O();mm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},hm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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 T({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}}},al=class{constructor(t){this.unlockOptionsService=new Dt(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 Dt(new hm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(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 y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(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 y(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 vm(e){return gm||(gm=new al(e)),gm}var IV,EV,kV,gm,ym,bm,_m,wm=P(()=>{"use strict";yP();je();O();IV=()=>(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]},EV=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],kV=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(IV())},gm=null;ym=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=vm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;q.emit(Ic,{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 kV(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},bm=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=vm(t);try{let s=yield r.getGlobalConfig();return q.emit(Gt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||kr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&be.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||kr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(Gt,{joliCoinUseAndCharge:kr,loginGuide:Cr}),be.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:kr,loginGuide:Cr,supportedHostMethods:EV}}),{joliCoinUseAndCharge:kr,loginGuide:Cr}}}))},_m=e=>y(void 0,null,function*(){yield vm(e).warmupCache(),console.log("Reward cache warmed up")})});var Sm=P(()=>{"use strict";wm();wm()});var bP,_P=P(()=>{"use strict";bP=e=>t=>y(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 Oe,ki,Ct=P(()=>{"use strict";je();ir();je();Oe=Ge(q,Ic),ki=(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 sl,Im=P(()=>{"use strict";sl={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 ht,en=P(()=>{"use strict";O();ht=V()});function wP(e){return Em||(Em=new Cm(e)),Em}var km,Cm,Em,Am,Pn,Ci=P(()=>{"use strict";O();km=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Cm=class{constructor(t){this.balanceService=new Dt(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 y(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 y(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 y(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()}},Em=null;Am=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield wP(e).getBalance(t)}),Pn=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield wP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var SP=P(()=>{"use strict";Ci()});function Rm(e){return xm||(xm=new Tm(e)),xm}var Pm,Tm,xm,Om,Tn,cl,Ai=P(()=>{"use strict";O();Pm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Tm=class{constructor(t){this.gemBalanceService=new Dt(new Pm(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 y(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 y(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 y(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;Om=(e,t="GEM")=>y(void 0,null,function*(){return yield Rm(e).getGemBalance(t)}),Tn=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Rm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),cl=(e,t="GEM")=>y(void 0,null,function*(){yield Rm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var IP=P(()=>{"use strict";Ai()});var Ot,Rn=P(()=>{"use strict";SP();IP();Ot={JOLI_COIN:{fetchBalance:Am,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:Om,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 ra,Rr,Nm=P(()=>{"use strict";en();Ct();ir();je();je();Rn();ra=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;ht.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield Oe.getData(),o=Ot[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"}}))},Rr=(e,t)=>r=>y(void 0,null,function*(){let n=Ge(q,wn);return q.emit(kc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var na,Or,EP=P(()=>{"use strict";en();Ct();je();ir();je();Rn();Ai();Ci();na=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;ht.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield Oe.getData(),a=Ot[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(Oe.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"?Tn(n):Pn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Or=(e,t)=>r=>y(void 0,null,function*(){let n=Ge(q,jt);return q.emit(Ec,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 Dm,Nr,kP=P(()=>{"use strict";J();en();ir();je();je();O();Ct();Rn();Dm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;ht.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Oe.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield ga(3e3));let f=Ot[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),v=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Oe.updateData({[w]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Nr=(e,t)=>r=>y(void 0,null,function*(){let n=Ge(q,Er);return q.emit(Cc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var On=P(()=>{"use strict";Nm();EP();kP()});var AV,ll,Lm=P(()=>{"use strict";J();O();Im();On();en();Ci();Rn();Ct();AV=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{na(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ra(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>y(void 0,null,function*(){var p,f,m,g;try{let b=yield o.getData();if(ki(b,l)){let x=Ot.JOLI_COIN,A=yield x.fetchBalance(t),C=x.getCurrentUser(b),k=x.createUpdatedUser((p=A==null?void 0:A.balance)!=null?p:0,C.enableAutoDeduct);if(!x.isEnough(b,k))return i==null||i(u),!1}else{let x=!0;for(let A of d){let C=yield ht.executeCommand(A);if(x=x&&C.result!=="FAILED",C.result!=="CONTINUE")break}if(!x)return i==null||i(u),!1}let w=sl[r],S=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",S),S.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&&((g=u.adViewed)==null||g.call(u)),Pn(t)}catch(x){console.error("-----unlockWithJolicoin adBreakDone error-----",x)}return n==null||n({quantity:S.data.quantity,balance:S.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()}})},ll=(e,t,r)=>AV(e,t,"JOLI_COIN",r)});var CP,AP=P(()=>{"use strict";Ct();Lm();On();CP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Rr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Or("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Nr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ll("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var xP,PP=P(()=>{"use strict";Lm();Ct();On();xP=(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=Rr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Or("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Nr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ll("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var ul,qm=P(()=>{"use strict";J();O();Im();On();Nm();en();Ai();Rn();Ct();ul=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Dm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),na(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ra(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f,m;try{let g=yield i.getData(),b=ki(g,c);if(console.log("[GemHandler] supportSubscription",b,g),b){let S=Ot.JOLI_GEM,x=yield S.fetchBalance(t),A=S.getCurrentUser(g),C=S.createUpdatedUser((u=x==null?void 0:x.balance)!=null?u:0,A.enableAutoDeduct);if(!S.isEnough(g,C))return n==null||n(d),!1}else{let S=!0;for(let x of l){let A=yield ht.executeCommand(x);if(console.log("[GemHandler] command result",A,x),S=S&&A.result!=="FAILED",A.result!=="CONTINUE")break}if(!S)return n==null||n(d),!1}let v=sl.GEM,w=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${qn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.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)),Tn(t)}catch(S){console.error("-----unlockWithGem adBreakDone error-----",S)}return r==null||r({quantity:w.data.quantity,balance:w.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var TP,RP=P(()=>{"use strict";Ct();qm();On();TP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Rr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Or("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Nr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ul("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var OP,NP=P(()=>{"use strict";qm();Ct();On();OP=(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=Rr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Or("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Nr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ul("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var DP,LP,Mm=P(()=>{"use strict";Rn();en();Ct();ir();je();je();DP=e=>{let{showSubscriptionModal:t}=e;ht.registerCommand("Rewards.subscription",()=>y(void 0,null,function*(){var s,c;let r=yield Oe.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=Ot[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},LP=e=>()=>y(void 0,null,function*(){let t=Ge(q,Sn);return q.emit(Ac,e),(yield t.getFreshData()).result})});var qP=P(()=>{"use strict";Mm()});var MP,UP=P(()=>{"use strict";en();qP();J();Ct();Ci();Ai();MP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{DP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>y(void 0,null,function*(){var l,d,u,p,f,m;try{let g=yield i.getData();if(!ki(g,a))return!1;let v=!0;for(let w of s){let S=yield ht.executeCommand(w);if(v=v&&S.result!=="FAILED",S.result!=="CONTINUE")break}if(Pn(t),Tn(t),console.log("-----unlockWithSubscription result-----",v),v){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:j(T({},(p=I.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(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(c),!1}finally{}})}});var FP,jP=P(()=>{"use strict";Ct();UP();Mm();FP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=LP("SUBSCRIPTION");return MP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Oe,showSubscriptionModal:o,hasSubscription:n}})}});var Nt,GP=P(()=>{"use strict";vP();Sm();_P();AP();PP();RP();NP();jP();Ci();Ai();Nt=gP();ym(Nt);bm(Nt)});var dl,xV,cr,PV,ia,TV,BP,JP,RV,OV,Um,NV,DV,LV,HP=P(()=>{"use strict";O();Be();nr();ux();mP();xt();J();vt();ue();GP();lu();Sm();dl=V(),xV=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},cr={get:(e,t)=>re(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},PV={httpClient:cr,checkNetwork:xV,track:G,eventEmitter:Ba,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;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:""}}},ia=new tl(PV);Nt.getRewardFrequencyConfig(cr).then(e=>{console.log("getRewardFrequencyConfig",e)});Nt.registerRewardHandler("ADS",bP(ia));Nt.registerRewardHandler("JOLI_COIN",CP(cr,{onUnlockSuccess:e=>{BP(e),G("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>Fe("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_COIN_ONLY",xP(cr,{onUnlockSuccess:e=>{BP(e),G("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>Fe("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM",TP(cr,{onUnlockSuccess:e=>{JP(e),G("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>Fe("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM_ONLY",OP(cr,{onUnlockSuccess:e=>{JP(e),G("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>Fe("invokeSubscriptionPanelSync")}));TV=()=>{G("subscription_unlock_success",{})};Nt.registerRewardHandler("SUBSCRIPTION",FP(cr,{onSubSuccess:TV.bind(void 0),hasSubscription:()=>Fe("invokeSubscriptionPanelSync")}));BP=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"}})};_m(cr);cl(cr);JP=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"}}})},RV=z("adInit",{implement:e=>{ia.init(e)}}),OV=z("adConfig",{implement:e=>{ia.adConfig(e)}}),Um=!1,NV=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))},DV=z("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){NV(e);return}if(e.type==="reward"){if(Um)return;Um=!0,Nt.getRewardsTypes(cr).then(n=>{Nt.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(()=>{Um=!1})})}else ia.adBreak(e)}}),LV=z("adUnit",{implement:e=>{ia.adUnit(e)}});dl.registerCommand("AdsSDK.init",RV);dl.registerCommand("AdsSDK.adConfig",OV);dl.registerCommand("AdsSDK.adBreak",DV);dl.registerCommand("AdsSDK.adUnit",LV);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var oa,qV,MV,UV,FV,jV,$P=P(()=>{"use strict";O();ue();Be();J();oa=V(),qV=z("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Ht(r.errMsg,r.errNo)}}),MV=z("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Ht(r,t);return{webviewId:n.webviewId}}}),UV=z("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Ht(r,t)}}),FV=z("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{be.emit("onInterceptSystemExit",{intercept:e}),be.emit("onInterceptBackPress",{intercept:e})}}),jV=z("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),E.object()),implement:(e,t)=>{U("callHostMethodAsync",{method:e,params:T({},t)})}});oa.registerCommand("RouterSDK.openSchema",qV);oa.registerCommand("RouterSDK.openPage",MV);oa.registerCommand("RouterSDK.closePage",UV);oa.registerCommand("RouterSDK.interceptSystemExit",FV);oa.registerCommand("RouterSDK.navigateToNativePage",jV);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function JV(e){Tl("cpLoadProgressEvent",{progress:e},I.webviewId,!0)}var WP,GV,pl,Fm,VP,BV,HV,zP=P(()=>{"use strict";O();Be();ue();J();xt();WP=V(),GV=z("onLoadFinished",{implement:()=>{Tl("cpLoadFinishEvent",{},I.webviewId,!0),G("loadFinished",{duration:performance.now()})}}),pl=null,Fm=!1,VP=0,BV=200;HV=z("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{pl=e,Fm||(Fm=!0,requestAnimationFrame(function t(){let r=Date.now();r-VP>=BV?(pl!==null&&(JV(pl),VP=r,pl=null),Fm=!1):requestAnimationFrame(t)}))}});WP.registerCommand("RuntimeSDK.loadFinishedEvent",GV);WP.registerCommand("RuntimeSDK.loadProgressEvent",HV)});var $V,VV,WV,KP=P(()=>{"use strict";O();Be();J();$V=V(),VV="isNativeSupport",WV=z(VV,{paramsSchema:E.tuple(E.object({version:E.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Ph(cu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});$V.registerCommand("API.isNativeSupport",WV);M("isNativeSupport",{version:"1.1.46"})});var QP=h(jm=>{"use strict";Be();ue();O();O();J();var YP=V(),zV=oe("callHostMethod",{paramsSchema:E.tuple(E.object({method:E.string(),params:E.object().optional().default({})})),implement:r=>y(jm,[r],function*({method:e,params:t}){if(!Fe(e))throw new Ht("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield U("callHostMethodAsync",{method:e,params:T({},t)});if(n!==0)throw new Ht(i,n);let c=o,{callHostMethodId:a}=c,s=Ye(c,["callHostMethodId"]);return T({},s)})});YP.registerCommand("API.callHostMethod",zV);M("callHostMethod",{version:"1.1.49"});var KV=oe("userTrackAsync",{paramsSchema:E.tuple(E.object({event:E.string(),eventType:E.number(),params:E.object().optional().default({})})),implement:n=>y(jm,[n],function*({event:e,eventType:t,params:r}){if(!Fe("userTrackAsync"))throw new Ht("Method not supported",10001);let{errNo:i,errMsg:o}=yield U("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:I.webviewId});if(i!==0)throw new Ht(o,i)})});YP.registerCommand("API.track",KV);M("track",{version:"1.1.53"})});var ZP=h(xi=>{"use strict";O();Be();kf();Lr();Df();var aa=V(),XP=Nc(),YV=oe("purchaseGem",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(xi,null,function*(){var r,n;let t=yield XP.purchase(e.productId);if(t.code!=="SUCCESS")throw Qe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),QV=oe("getGemProducts",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){var t,r;let e=(r=(t=yield XP.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}})}})}),XV=oe("getSubscriptionPlans",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){let e=yield An.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Qe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),ZV=oe("flushSubInfoCache",{paramsSchema:E.tuple(),implement:()=>y(xi,null,function*(){yield An.updateAllNativePriceCache()})}),e9=oe("subscribe",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(xi,null,function*(){var a;let t=yield An.getTierByProductId(e.productId);if(!t)throw Qe({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield An.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});aa.registerCommand("PaymentSDK.purchaseGem",YV);aa.registerCommand("PaymentSDK.getGemProducts",QV);aa.registerCommand("PaymentSDK.getSubscriptionPlans",XV);aa.registerCommand("PaymentSDK.subscribe",e9);aa.registerCommand("PaymentSDK.flushSubInfoCache",ZV);M("payment.purchaseGem",{version:"1.2.9"});M("payment.getGemProducts",{version:"1.2.9"});M("payment.getSubscriptionPlans",{version:"1.2.9"});M("payment.subscribe",{version:"1.2.9"});M("payment.flushSubInfoCache",{version:"1.2.9"})});var eT=h(Gm=>{"use strict";O();Be();J();Lr();ue();var t9=V(),r9=Ln(reportError),n9=oe("getCoinDetails",{paramsSchema:E.tuple(E.function().optional()),implement:e=>y(Gm,null,function*(){try{if(I.mpType!=="miniApp")return reportError(Qe({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(!Fe("requestCoinDetailsSync"))return reportError(Qe({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?r9(e):(()=>{console.log("default update function called")}).bind(Gm),{errNo:n,errMsg:i,data:o}=U("requestCoinDetailsSync");if(n!==0)throw Qe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),U("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}}})});t9.registerCommand("RewardsSDK.getCoinDetails",n9);M("rewards.getCoinDetails",{version:"1.3.2"})});var i9={};var Dae,Uae,Hae,$ae,Vae,tT=P(()=>{"use strict";sA();Dae=se(cA());hA();Ji();gA();Uae=se(vA());wc();HP();$P();zP();KP();Hae=se(QP()),$ae=se(ZP()),Vae=se(eT())});var rT=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[rT])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[rT]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(oA(),iA)),Promise.resolve().then(()=>(tT(),i9)),Promise.resolve().then(()=>(xt(),hg))]);e()});
|