@jolibox/implement 1.1.52-beta.1 → 1.1.53-beta.0
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 +33 -26
- package/dist/common/context/index.d.ts +1 -0
- package/dist/common/rewards/index.d.ts +2 -0
- package/dist/common/rewards/registers/use-gem-only.d.ts +10 -0
- package/dist/common/rewards/registers/use-gem.d.ts +10 -0
- package/dist/common/rewards/registers/utils/coins/commands/currency-handlers.d.ts +15 -0
- package/dist/common/rewards/registers/utils/coins/commands/index.d.ts +1 -1
- package/dist/common/rewards/registers/utils/coins/commands/use-jolicoin.d.ts +10 -8
- package/dist/common/rewards/registers/utils/coins/commands/use-payment.d.ts +10 -8
- package/dist/common/rewards/registers/utils/coins/commands/use-unlogin.d.ts +6 -8
- package/dist/common/rewards/registers/utils/coins/currency-config.d.ts +8 -0
- package/dist/common/rewards/registers/utils/coins/index.d.ts +2 -18
- package/dist/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.d.ts +18 -0
- package/dist/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.d.ts +4 -0
- package/dist/common/rewards/registers/utils/coins/joligem/gem-handler.d.ts +19 -0
- package/dist/common/rewards/registers/utils/index.d.ts +3 -1
- package/dist/common/rewards/reward-emitter.d.ts +23 -13
- package/dist/common/rewards/reward-helper.d.ts +3 -1
- package/dist/common/rewards/type.d.ts +10 -1
- package/dist/index.js +25 -25
- package/dist/index.native.js +67 -67
- package/dist/native/payment/payment-helper.d.ts +5 -1
- package/dist/native/rewards/check-frequency.d.ts +24 -0
- package/implement.build.log +2 -2
- package/package.json +6 -6
- package/src/common/context/index.ts +3 -0
- package/src/common/rewards/__tests__/can-use-jolicoin.test.ts +265 -9
- package/src/common/rewards/fetch-reward.ts +18 -3
- package/src/common/rewards/index.ts +2 -0
- package/src/common/rewards/registers/use-gem-only.ts +58 -0
- package/src/common/rewards/registers/use-gem.ts +53 -0
- package/src/common/rewards/registers/use-jolicoin-only.ts +4 -4
- package/src/common/rewards/registers/use-jolicoin.ts +4 -4
- package/src/common/rewards/registers/utils/coins/commands/currency-handlers.ts +48 -0
- package/src/common/rewards/registers/utils/coins/commands/index.ts +1 -1
- package/src/common/rewards/registers/utils/coins/commands/use-jolicoin.ts +31 -19
- package/src/common/rewards/registers/utils/coins/commands/use-payment.ts +32 -25
- package/src/common/rewards/registers/utils/coins/commands/use-unlogin.ts +22 -24
- package/src/common/rewards/registers/utils/coins/currency-config.ts +23 -0
- package/src/common/rewards/registers/utils/coins/index.ts +2 -134
- package/src/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.ts +149 -0
- package/src/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.ts +15 -0
- package/src/common/rewards/registers/utils/coins/joligem/gem-handler.ts +131 -0
- package/src/common/rewards/registers/utils/index.ts +20 -1
- package/src/common/rewards/reward-emitter.ts +23 -13
- package/src/common/rewards/reward-helper.ts +3 -1
- package/src/common/rewards/type.ts +13 -1
- package/src/h5/rewards/index.ts +33 -20
- package/src/native/api/ads.ts +22 -1
- package/src/native/api/call-host-method.ts +36 -1
- package/src/native/payment/index.ts +2 -0
- package/src/native/payment/payment-helper.ts +2 -1
- package/src/native/rewards/check-frequency.ts +10 -0
- package/src/native/rewards/ui/payment-modal.ts +110 -33
- package/src/native/rewards/ui/unlogin-modal.ts +182 -87
- package/src/native/rewards/ui/use-modal.ts +126 -68
- package/implementation.build.log +0 -9
- /package/dist/common/rewards/registers/utils/coins/{fetch-balance.d.ts → jolicoin/fetch-balance.d.ts} +0 -0
- /package/src/common/rewards/registers/utils/coins/{fetch-balance.ts → jolicoin/fetch-balance.ts} +0 -0
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e1=Object.create;var Eo=Object.defineProperty,t1=Object.defineProperties,r1=Object.getOwnPropertyDescriptor,n1=Object.getOwnPropertyDescriptors,i1=Object.getOwnPropertyNames,So=Object.getOwnPropertySymbols,o1=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable;var hf=(e,t,r)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))gl.call(t,r)&&hf(e,r,t[r]);if(So)for(var r of So(t))mf.call(t,r)&&hf(e,r,t[r]);return e},j=(e,t)=>t1(e,n1(t));var je=(e,t)=>{var r={};for(var n in e)gl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&So)for(var n of So(e))t.indexOf(n)<0&&mf.call(e,n)&&(r[n]=e[n]);return r};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vf=(e,t)=>{for(var r in t)Eo(e,r,{get:t[r],enumerable:!0})},a1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of i1(t))!gl.call(e,i)&&i!==r&&Eo(e,i,{get:()=>t[i],enumerable:!(n=r1(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?e1(o1(e)):{},a1(t||!e||!e.__esModule?Eo(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function p1(e){return!!(e!=null&&e.__nativeBuffers__)}function El(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!p1(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=f1(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function m1(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:h1(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function _1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Cf(e){return typeof e=="string"}function zr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function yf(e){return typeof e=="number"&&!isNaN(e)}function w1(e){return typeof e=="undefined"}function I1(e){return w1(e)||e===null}function Pf(e){return typeof e=="function"}function S1(e){return zr(e)&&Pf(e.then)}function Of(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Hn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function P1(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 L1(){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 j1(e){return new Promise(t=>Rf(e)(t))}function Rf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function B1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Gn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function H1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)$1(e[n],t[n])}function $1(e,t){if(Cf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Pf(t)){try{if(e instanceof t)return}catch(r){}if(!I1(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 Nl(e,t){if(kl.config[e]){Po.warn(`[can i use] ${e} already registered`);return}kl.config[e]=$t({},t)}function wf(e,t){return`[${e}]:${t}`}function Y1(e,t){If||(bl=new ko({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),wl=new ko({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Il=new ko({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{bl.flush(),wl.flush(),Il.flush()}),If=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";bl.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(wl.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Il.report({status:_,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 tT(e,t){let r=0,n=!0,i=eT.resolveMap,o=Y1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Sl.forEach(l=>To(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Sl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=El(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new b1;if(i.set(r,m.resolve),!n&&z1.includes(l))return new Promise(A=>{Sl.push({method:l,args:c,resolve:A})});let g=u1($t({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!X1&&G1.includes(l),v=m1(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||W1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=El(I)}catch(A){Po.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=wf(l,I.errorCode)),o($t($t({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=wf(l,A.errorCode)),o($t($t({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return S1(d)?d.then(u=>Sf(l,u)):Sf(l,d)},invokeHandler:a}}function Sf(e,t){if(!zr(t)){Po.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=d1(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new A1(n,i,o,a);return s}function rT(e){if(globalThis[xo])return globalThis[xo];let t=new Cl,r=new Cl,n=new ko({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[xo]={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=El(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Df){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Vn.length),u,a)}catch(p){}});return}if(i.startsWith(Vn)){r.emit(i.slice(Vn.length),l,a);return}t.emit(i,l,a)}},globalThis[xo]}function nT(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Vn}${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(Df,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Vn}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(K1,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function iT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=rT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=tT(e,r),{publish:c,emitNative:d}=nT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Lf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var s1,l1,c1,Ao,xf,kf,gf,$t,u1,d1,To,f1,h1,Af,v1,g1,Tf,y1,b1,E1,x1,Co,k1,A1,T1,yl,Po,_f,C1,xl,O1,kl,R1,N1,D1,Gr,q1,a9,Al,se,F1,M1,$n,Gn,Cl,Pl,U1,_l,J1,s9,Ol,bf,l9,Nf,V1,Vn,G1,z1,W1,Df,K1,Q1,ko,If,bl,wl,Il,Sl,X1,Rl,Z1,eT,xo,Dl,ht,qf,Ff,oT,Mf,Ef,ye,U,Ze,c9,aT,Uf,Ll,u9,d9,_e=k(()=>{"use strict";s1=Object.defineProperty,l1=Object.defineProperties,c1=Object.getOwnPropertyDescriptors,Ao=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable,gf=(e,t,r)=>t in e?s1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))xf.call(t,r)&&gf(e,r,t[r]);if(Ao)for(var r of Ao(t))kf.call(t,r)&&gf(e,r,t[r]);return e},u1=(e,t)=>l1(e,c1(t)),d1=(e,t)=>{var r={};for(var n in e)xf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ao)for(var n of Ao(e))t.indexOf(n)<0&&kf.call(e,n)&&(r[n]=e[n]);return r},To=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});f1=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};h1=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)};Af=Object.defineProperty,v1=Object.getOwnPropertyDescriptor,g1=(e,t)=>{for(var r in t)Af(e,r,{get:t[r],enumerable:!0})},Tf=(e,t,r,n)=>{for(var i=n>1?void 0:n?v1(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&&Af(t,r,i),i},y1=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}b1=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))}})}};E1=(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))(E1||{}),x1=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}},Co=class extends x1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},k1=class extends Co{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},A1=class extends Co{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},T1=class extends Co{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},yl=class extends Co{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Po={log:Hn("log"),warn:Hn("warn"),info:Hn("info"),error:Hn("error"),debug:Hn("debug")};Object.assign(globalThis,{logger:Po});_f=Symbol.for("Jolibox.canIUseMap"),C1={};globalThis[_f]||(globalThis[_f]=C1);xl=Symbol.for("Jolibox.canIUseMap.native"),O1={};globalThis[xl]||(globalThis[xl]=O1);kl={get config(){return globalThis[xl]}},R1=(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))(R1||{}),N1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(N1||{}),D1=(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))(D1||{});L1();Gr=typeof window=="undefined",q1=()=>!Gr&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),a9={isiOS:!Gr&&(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:!Gr&&navigator.userAgent.includes("Android"),isMac:!Gr&&navigator.userAgent.includes("Mac"),isFacebook:!Gr&&navigator.userAgent.includes("FB_IAB"),isPC:!Gr&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Al=class Tl{constructor(t){this.element=t,this.next=Tl.Undefined,this.prev=Tl.Undefined}};Al.Undefined=new Al(void 0);se=Al,F1=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},M1=0,$n=class{constructor(e){this.value=e,this.id=M1++}},Gn=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 $n&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new $n(t);return this._listeners?this._listeners instanceof $n?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof $n)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof $n?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Cl=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 Gn,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new F1,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)}},Pl={};g1(Pl,{None:()=>U1,filter:()=>B1,once:()=>Rf,toPromise:()=>j1});U1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});_l=Symbol.for("Jolibox.hostEmitter"),J1=()=>{let e=new Cl;return globalThis[_l]||(globalThis[_l]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[_l]},s9=J1();Ol=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gn,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 H1(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}};Ol=Tf([Of],Ol);bf=class{constructor(){this._onWillExecuteCommand=new Gn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ol,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=_1(3e4)),this._starActivation}executeCommand(e,...t){return y1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Pl.toPromise(Pl.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}}};bf=Tf([Of],bf);l9=Symbol.for("Jolibox.commands");Nl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Nl("requestProductDetailsAsync",{version:102e4});Nl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Nf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=kl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=P1(i,o);if(!s)return!1;if(zr(s)){let l=s.version;return yf(l)?typeof a=="number"&&a>=l:!0}return yf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};V1=()=>q1(),Vn="custom_event_",G1=[],z1=[],W1=["env","createRequestTask","login"],Df="__batch_event__",K1="__native_batch_event__",Q1=e=>e==="pv"?e:"default",ko=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=Q1(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&&zr(a))throw new yl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(zr(a))l.push(...Object.keys(a));else if(Cf(a)){if(i.length>0)throw new yl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new yl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=zr(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},If=!1;Sl=[],X1=!1,Rl=Symbol.for("Jolibox.invokeResolverInstance"),Z1=new Map;globalThis[Rl]||(globalThis[Rl]=Z1);eT={get resolveMap(){return globalThis[Rl]}};xo=Symbol.for("Jolibox.subscribeInstance");ht={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){ht.trigger=e},onDoExit(e){ht.exit=e},onDoBackPress(e){ht.backPress=e}},qf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new k1("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="")=>{ht.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>To(void 0,null,function*(){let o=yield ht.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Dl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Lf(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:qf,doExit:r};globalThis.joliboxJSCore=$t({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{ht.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>To(void 0,null,function*(){let a=yield ht.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Dl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Lf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return To(this,null,function*(){let a=yield ht.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:qf,doExit:n};globalThis.joliboxJSCore=$t({},i)}Ff=Dl;if(!Ff&&V1())throw new T1("No joliboxJScore is found, native bridge not found.");oT=$t({},Ff),Mf=iT(oT),{invokeHandler:Ef}=Mf,{applyNative:ye,invokeNative:U,onNative:Ze,offNative:c9,subscribeHandler:aT,publish:Uf,emitNative:Ll,subscribe:u9,unsubscribe:d9}=Mf;globalThis.joliboxJSBridge={callHandler:Ef,invokeHandler:Ef,subscribeHandler:aT}});function fT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Vf(e){return new Promise(t=>setTimeout(t,e))}function Yn(e){return typeof e=="string"}function Tr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Gf(e){return typeof e=="object"&&Array.isArray(e)}function zf(e){return typeof e=="number"&&!isNaN(e)}function Wr(e){return e===!0||e===!1}function Wf(e){return typeof e=="undefined"}function Hl(e){return Wf(e)||e===null}function hT(e){return typeof e=="function"}function Kf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Qf(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Jf(l)&&Jf(s)?i[a]=n(uT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Jf(e){return e&&typeof e=="object"&&e.constructor===Object}function Yf(e,t){if(Array.isArray(e))return e.concat(t)}function Xn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function vT(e,t){return(...r)=>t(e,...r)}function Ro(e){return t=>vT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new lr(`${i}`))}})}function zn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ih(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function Kl(){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 xT(e){return new Promise(t=>lh(e)(t))}function lh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function kT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Qn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function TT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)CT(e[n],t[n])}function CT(e,t){if(Yn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(hT(t)){try{if(e instanceof t)return}catch(r){}if(!Hl(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(){return typeof globalThis!="undefined"?globalThis[ch]:void 0}function OT(e){typeof globalThis!="undefined"&&(globalThis[ch]=e)}function X(e=!1){let t=PT();if(!e&&t)return t;let r=new Oo,n=new Bl,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 OT(i),i}var Jl,sT,jf,lT,cT,Bf,uT,dT,$f,pT,Ct,mT,$l,Zn,Vl,Xf,lr,Zf,eh,th,rh,nh,ei,Gl,Pt,Fl,gT,zl,Hf,yT,B,Wl,_T,No,Wn,ti,bT,wT,oh,ah,sh,Ml,le,IT,ST,Kn,Qn,Ot,jl,ET,ql,AT,ne,Oo,Bl,ch,D=k(()=>{"use strict";Jl=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,jf=Object.getOwnPropertySymbols,lT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable,Bf=(e,t,r)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uT=(e,t)=>{for(var r in t||(t={}))lT.call(t,r)&&Bf(e,r,t[r]);if(jf)for(var r of jf(t))cT.call(t,r)&&Bf(e,r,t[r]);return e},dT=(e,t)=>{for(var r in t)Jl(e,r,{get:t[r],enumerable:!0})},$f=(e,t,r,n)=>{for(var i=n>1?void 0:n?sT(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&&Jl(t,r,i),i},pT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ct=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))}})}};mT=(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))(mT||{}),$l=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}},Zn=class extends $l{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Vl=class extends $l{constructor(){super(...arguments),this.kind="USER_ERROR"}},Xf=class extends Vl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},lr=class extends Vl{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))}},Zf=class extends Vl{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))}},eh=class extends Zn{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},th=class extends Zn{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))}},rh=class extends Zn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},nh=class extends Zn{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},ei=class extends $l{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}}},Gl=class extends Zn{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Pt={log:zn("log"),warn:zn("warn"),info:zn("info"),error:zn("error"),debug:zn("debug")};Object.assign(globalThis,{logger:Pt});Fl=Symbol.for("Jolibox.canIUseMap"),gT={};globalThis[Fl]||(globalThis[Fl]=gT);zl={get config(){return globalThis[Fl]}},Hf=Symbol.for("Jolibox.canIUseMap.native"),yT={};globalThis[Hf]||(globalThis[Hf]=yT);B=(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))(B||{}),Wl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Wl||{}),_T=(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))(_T||{}),No=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Kl();Wn=typeof window=="undefined",ti={isiOS:!Wn&&(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:!Wn&&navigator.userAgent.includes("Android"),isMac:!Wn&&navigator.userAgent.includes("Mac"),isFacebook:!Wn&&navigator.userAgent.includes("FB_IAB"),isPC:!Wn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},bT="device_id",wT="advertising_id",oh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,No()),window.__joliboxLocalStorage__.getItem(e)),ah=()=>new URLSearchParams(window.location.search).get("deviceId")||oh(bT),sh=()=>new URLSearchParams(window.location.search).get("advertisingId")||oh(wT),Ml=class Ul{constructor(t){this.element=t,this.next=Ul.Undefined,this.prev=Ul.Undefined}};Ml.Undefined=new Ml(void 0);le=Ml,IT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},ST=0,Kn=class{constructor(e){this.value=e,this.id=ST++}},Qn=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 Kn&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new Kn(t);return this._listeners?this._listeners instanceof Kn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Kn)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Kn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Ot=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 Qn,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new IT,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)}},jl={};dT(jl,{None:()=>ET,filter:()=>kT,once:()=>lh,toPromise:()=>xT});ET=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ql=Symbol.for("Jolibox.hostEmitter"),AT=()=>{let e=new Ot;return globalThis[ql]||(globalThis[ql]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ql]},ne=AT();Oo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Qn,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 TT(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}};Oo=$f([Kf],Oo);Bl=class{constructor(){this._onWillExecuteCommand=new Qn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Qn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Oo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=fT(3e4)),this._starActivation}executeCommand(e,...t){return pT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),jl.toPromise(jl.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}}};Bl=$f([Kf],Bl);ch=Symbol.for("Jolibox.commands")});function ke(e,t={}){Ql.emit("ERROR_REPORT",{error:e,options:t})}var Ql,Cr,mt=k(()=>{"use strict";D();D();Ql=new Ot,Cr=new Ot;ke.debounce=Xn(ke,50,{leading:!0})});var Yl,RT,uh,dh,ph=k(()=>{"use strict";D();mt();Yl=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{}}},RT=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},uh=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:Yl(o),payloadJson:Yl(a),signature:Yl(s)}}else throw"joli_source is missing"}catch(r){return ke(new eh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},dh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=RT(e),o=r[2];return`${n}.${i}.${o}`}return t}});var NT,Xl,fh=k(()=>{"use strict";D();NT="1.1.52-beta.1",Xl=()=>NT});function ec(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var DT,hh,Zl,mh,he,LT,E,K=k(()=>{"use strict";D();ph();fh();D();DT={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:ah(),adId:sh(),pixelRatio:window.devicePixelRatio||1,platform:ti.isAndroid?"android":ti.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Xl()},schema:window.location.href,platform:ti.isAndroid?"android":ti.isiOS?"ios":"h5"},Zl=(hh=globalThis.joliboxJSCore)==null?void 0:hh.env,he=Object.assign({},(mh=Zl==null?void 0:Zl())!=null?mh:DT);LT=()=>{var f,m,g,_,v,b,I,A,C,O,x;let{payloadJson:e,headerJson:t,signature:r}=he.schema.length?uh(he.schema):{},n=`${he.deviceInfo.did}-${new Date().getTime()}`,o=new URL(he.schema.length?he.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=he.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(x=(O=(C=e==null?void 0:e.joliboxEnv)!=null?C:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?x:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var P;return(P=performance.timeOrigin)!=null?P:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var P;return(P=o.get("joliSource"))!=null?P:null},get mpId(){var P;return(P=a!=null?a:e==null?void 0:e.id)!=null?P:""},get mpVersion(){var P;return(P=t==null?void 0:t.ver)!=null?P:Xl()},get mpType(){var P,J;return(J=(P=t==null?void 0:t.__mpType)!=null?P:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var P;return((P=he.platform)!=null?P: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 P,J;return(J=(P=he.clientSessionId)!=null?P:s)!=null?J:n},get channel(){return u},get webviewId(){var P;return(P=he.webviewId)!=null?P:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var P;return(P=he.deviceInfo.adId)!=null?P:he.deviceInfo.did},get language(){return he.deviceInfo.lang},get sdkEnvironment(){return ec("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":ec("gamedistribution","jolibox")?"gamedistribution":ec("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var q,Re,Ne;let P=(q=he.deviceInfo.pixelRatio)!=null?q:1,J=(Re=he.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,We=(Ne=he.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/P:20,navigationBarHeight:We!==void 0?We/P:10}},onEnvConfigChanged:P=>{Qf(he,P,Yf)},encodeJoliSourceQuery:P=>{var J,We;return t&&r?dh(T(T({},e),P),(J=o.get("joliSource"))!=null?J:""):(We=o.get("joliSource"))!=null?We:""},setDoExitDirectly:()=>{p=!1}}},E=LT()});var tc,gh,qT,FT,vh,MT,yh=k(()=>{"use strict";D();mt();K();D();tc=!1,gh=(e,t)=>e==null?!1:t in e,qT=e=>gh(e,"kind"),FT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},vh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:FT(e.name)},i=j(T({},n),{env:t.environment,isFromUser:r});r?Cr.emit("GLOBAL_USER_ERROR",e,i):Cr.emit("GLOBAL_ERROR",e,i)},MT=e=>gh(e,"kind")&&e.kind==="USER_ERROR";Ql.on("ERROR_REPORT",({error:e,options:t})=>{if(tc)return;tc=!0;let r=qT(e)&&e.raw?e.raw:e;try{let n=MT(e);vh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Gl(`${i}, origin error: ${r.message}`);Pt.error(o),vh(new Gl(o.message),{environment:t.environment},!1)}finally{tc=!1}})});var cr,rc,Kr=k(()=>{"use strict";mt();D();mt();cr=(e,t)=>{var r,n;return new ei((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},rc=e=>new Xf(e)});var _h=k(()=>{"use strict";yh();Kr();D();_e();Cr.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})});Cr.on("GLOBAL_USER_ERROR",(e,t)=>{Pt.log("UserError",e,t)})});var nc=k(()=>{"use strict"});function bh(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=j(T({tag:n,eventType:o!=null?o:a!=null?a:B.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new nh(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=Xn(r,500,{leading:!0}),r}function wh(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=Xn(t,500,{leading:!0}),t}var Ih=k(()=>{"use strict";D();D();mt();K()});function Sh(e,t){let r=bh(e,t),n=wh(r);return{track:r,trackPerformance:n}}var Eh=k(()=>{"use strict";Ih()});var xh=k(()=>{"use strict";K();D();D()});var kh=k(()=>{"use strict";Eh();nc();xh()});var Do,Ah=k(()=>{"use strict";Do=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration: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.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Lo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ze("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:_}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Pt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),_=UT(u,j(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:C=!1,appendHostCookie:O=!0}=p,x=Object.assign({"content-type":"application/json"},a,p.header),P={url:_,method:v,header:x,enableCache:C,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Ne=BT(p.data,x["content-type"]);P.data=Ne}A&&Object.assign(P,{timeout:A});let{data:{requestTaskId:J}}=U(e,P);if(typeof J!="string")throw cr({code:-1,msg:"requestTaskId is not a string"});let{resolve:We,reject:q,promise:Re}=new Ct;n.set(J,{resolve:We,reject:q});try{let Ne=yield Re,{data:Ar}=Ne;return I==="json"&&typeof Ar=="string"&&(Ar=jT(Ar)),{url:_,timeout:A,method:v,response:j(T({},Ne),{data:Ar})}}catch(Ne){let Ar=Ne;if(Tr(Ar)){let{errMsg:vl,prefetchDetail:n9,isPrefetch:i9,errNo:ZA}=Ar;Yn(vl)&&ke(cr({code:-1,msg:vl},{errNo:ZA,errMsg:vl}))}throw Ne}})}function jT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function BT(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 UT,ic=k(()=>{"use strict";D();_e();mt();Kr();UT=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var oc,Th,te,vt=k(()=>{"use strict";ic();K();oc={};(Th=E.hostUserInfo)!=null&&Th.token&&(oc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(oc["x-joli-source"]=E.joliSource);te=Lo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:E.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:oc})});var qo,Ch=k(()=>{"use strict";K();Ah();vt();_e();qo=class extends Do{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=E.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return w(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 E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Dh={};vf(Dh,{nativeTaskEmitter:()=>ri,taskTracker:()=>It,track:()=>M,trackPerformance:()=>Rh});var JT,Ph,Oh,M,Rh,Nh,ri,It,gt=k(()=>{"use strict";_h();D();nc();kh();K();Ch();_e();JT=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Tr(n.extra)?n.extra:Yn(n.extra)?JSON.parse(n.extra):{},o=j(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:E.sessionId,user_id:(d=(c=E.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:B.Other;U("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:M,trackPerformance:Rh}=Sh(JT,{type:Wl.AppSDK,platform:"native",jssdk_version:(Oh=(Ph=E.sdkInfo)==null?void 0:Ph.jssdkVersion)!=null?Oh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Nh=X();Nh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Rh(e,t,r)});Nh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{M(e,t)});ri=new Ot,It=new qo(M,ri)});function Lh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
|
|
1
|
+
var _C=Object.create;var Do=Object.defineProperty,bC=Object.defineProperties,wC=Object.getOwnPropertyDescriptor,IC=Object.getOwnPropertyDescriptors,EC=Object.getOwnPropertyNames,No=Object.getOwnPropertySymbols,kC=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable;var wf=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))xl.call(t,r)&&wf(e,r,t[r]);if(No)for(var r of No(t))If.call(t,r)&&wf(e,r,t[r]);return e},J=(e,t)=>bC(e,IC(t));var je=(e,t)=>{var r={};for(var n in e)xl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&No)for(var n of No(e))t.indexOf(n)<0&&If.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t)=>{for(var r in t)Do(e,r,{get:t[r],enumerable:!0})},SC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of EC(t))!xl.call(e,i)&&i!==r&&Do(e,i,{get:()=>t[i],enumerable:!(n=wC(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?_C(kC(e)):{},SC(t||!e||!e.__esModule?Do(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function PC(e){return!!(e!=null&&e.__nativeBuffers__)}function Nl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!PC(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=RC(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function DC(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:NC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function UC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function qf(e){return typeof e=="string"}function en(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Sf(e){return typeof e=="number"&&!isNaN(e)}function jC(e){return typeof e=="undefined"}function JC(e){return jC(e)||e===null}function Mf(e){return typeof e=="function"}function BC(e){return en(e)&&Mf(e.then)}function Uf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ei(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function KC(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 eT(){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 oT(e){return new Promise(t=>Ff(e)(t))}function Ff(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function aT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ni(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function lT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)cT(e[n],t[n])}function cT(e,t){if(qf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Mf(t)){try{if(e instanceof t)return}catch(r){}if(!JC(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 Bl(e,t){if(Ll.config[e]){jo.warn(`[can i use] ${e} already registered`);return}Ll.config[e]=zt({},t)}function Cf(e,t){return`[${e}]:${t}`}function vT(e,t){Tf||(Tl=new qo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ol=new qo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Pl=new qo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Tl.flush(),Ol.flush(),Pl.flush()}),Tf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Tl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ol.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Pl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function bT(e,t){let r=0,n=!0,i=_T.resolveMap,o=vT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Rl.forEach(l=>Uo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Rl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Nl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new FC;if(i.set(r,m.resolve),!n&&pT.includes(l))return new Promise(A=>{Rl.push({method:l,args:c,resolve:A})});let g=TC(zt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!gT&&dT.includes(l),v=DC(c,y),b=y?v:JSON.stringify(v),k;if(l.endsWith("Sync")||fT.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Nl(k)}catch(A){jo.error(A)}return i.delete(r),k.errorCode&&(k.errorCode=Cf(l,k.errorCode)),o(zt(zt({},g),k)),k}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Cf(l,A.errorCode)),o(zt(zt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return BC(d)?d.then(u=>Of(l,u)):Of(l,d)},invokeHandler:a}}function Of(e,t){if(!en(t)){jo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=OC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new VC(n,i,o,a);return s}function wT(e){if(globalThis[Lo])return globalThis[Lo];let t=new Ul,r=new Ul,n=new qo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Lo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Nl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Jf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ri.length),u,a)}catch(p){}});return}if(i.startsWith(ri)){r.emit(i.slice(ri.length),l,a);return}t.emit(i,l,a)}},globalThis[Lo]}function IT(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${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(Jf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ri}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(hT,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function ET(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=wT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=bT(e,r),{publish:c,emitNative:d}=IT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Bf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var xC,AC,CC,Mo,Rf,Nf,kf,zt,TC,OC,Uo,RC,NC,Df,LC,qC,Lf,MC,FC,GC,HC,Fo,$C,VC,zC,Al,jo,xf,WC,Dl,YC,Ll,QC,XC,ZC,Zr,tT,T4,ql,se,rT,nT,ti,ni,Ul,Fl,iT,Cl,sT,O4,jl,Af,P4,jf,uT,ri,dT,pT,fT,Jf,hT,mT,qo,Tf,Tl,Ol,Pl,Rl,gT,Jl,yT,_T,Lo,Gl,mt,Gf,Hf,kT,$f,Pf,ye,U,et,R4,ST,Vf,Hl,N4,D4,_e=x(()=>{"use strict";xC=Object.defineProperty,AC=Object.defineProperties,CC=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,Rf=Object.prototype.hasOwnProperty,Nf=Object.prototype.propertyIsEnumerable,kf=(e,t,r)=>t in e?xC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t)=>{for(var r in t||(t={}))Rf.call(t,r)&&kf(e,r,t[r]);if(Mo)for(var r of Mo(t))Nf.call(t,r)&&kf(e,r,t[r]);return e},TC=(e,t)=>AC(e,CC(t)),OC=(e,t)=>{var r={};for(var n in e)Rf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mo)for(var n of Mo(e))t.indexOf(n)<0&&Nf.call(e,n)&&(r[n]=e[n]);return r},Uo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});RC=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};NC=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)};Df=Object.defineProperty,LC=Object.getOwnPropertyDescriptor,qC=(e,t)=>{for(var r in t)Df(e,r,{get:t[r],enumerable:!0})},Lf=(e,t,r,n)=>{for(var i=n>1?void 0:n?LC(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&&Df(t,r,i),i},MC=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}FC=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))}})}};GC=(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))(GC||{}),HC=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Fo=class extends HC{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},$C=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},VC=class extends Fo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},zC=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Al=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};jo={log:ei("log"),warn:ei("warn"),info:ei("info"),error:ei("error"),debug:ei("debug")};Object.assign(globalThis,{logger:jo});xf=Symbol.for("Jolibox.canIUseMap"),WC={};globalThis[xf]||(globalThis[xf]=WC);Dl=Symbol.for("Jolibox.canIUseMap.native"),YC={};globalThis[Dl]||(globalThis[Dl]=YC);Ll={get config(){return globalThis[Dl]}},QC=(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))(QC||{}),XC=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(XC||{}),ZC=(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))(ZC||{});eT();Zr=typeof window=="undefined",tT=()=>!Zr&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),T4={isiOS:!Zr&&(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:!Zr&&navigator.userAgent.includes("Android"),isMac:!Zr&&navigator.userAgent.includes("Mac"),isFacebook:!Zr&&navigator.userAgent.includes("FB_IAB"),isPC:!Zr&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},ql=class Ml{constructor(t){this.element=t,this.next=Ml.Undefined,this.prev=Ml.Undefined}};ql.Undefined=new ql(void 0);se=ql,rT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},nT=0,ti=class{constructor(e){this.value=e,this.id=nT++}},ni=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,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ti(t);return this._listeners?this._listeners instanceof ti?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ti)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ti?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Ul=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 ni,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new rT,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)}},Fl={};qC(Fl,{None:()=>iT,filter:()=>aT,once:()=>Ff,toPromise:()=>oT});iT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Cl=Symbol.for("Jolibox.hostEmitter"),sT=()=>{let e=new Ul;return globalThis[Cl]||(globalThis[Cl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Cl]},O4=sT();jl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ni,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 lT(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}};jl=Lf([Uf],jl);Af=class{constructor(){this._onWillExecuteCommand=new ni,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ni,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new jl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=UC(3e4)),this._starActivation}executeCommand(e,...t){return MC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Fl.toPromise(Fl.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}}};Af=Lf([Uf],Af);P4=Symbol.for("Jolibox.commands");Bl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Bl("requestProductDetailsAsync",{version:102e4});Bl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});jf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Ll.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=KC(i,o);if(!s)return!1;if(en(s)){let l=s.version;return Sf(l)?typeof a=="number"&&a>=l:!0}return Sf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};uT=()=>tT(),ri="custom_event_",dT=[],pT=[],fT=["env","createRequestTask","login"],Jf="__batch_event__",hT="__native_batch_event__",mT=e=>e==="pv"?e:"default",qo=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=mT(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&&en(a))throw new Al(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(en(a))l.push(...Object.keys(a));else if(qf(a)){if(i.length>0)throw new Al(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Al(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=en(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Tf=!1;Rl=[],gT=!1,Jl=Symbol.for("Jolibox.invokeResolverInstance"),yT=new Map;globalThis[Jl]||(globalThis[Jl]=yT);_T={get resolveMap(){return globalThis[Jl]}};Lo=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Gf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new $C("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Uo(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Gl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Bf(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:Gf,doExit:r};globalThis.joliboxJSCore=zt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Uo(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Gl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Bf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return Uo(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Gf,doExit:n};globalThis.joliboxJSCore=zt({},i)}Hf=Gl;if(!Hf&&uT())throw new zC("No joliboxJScore is found, native bridge not found.");kT=zt({},Hf),$f=ET(kT),{invokeHandler:Pf}=$f,{applyNative:ye,invokeNative:U,onNative:et,offNative:R4,subscribeHandler:ST,publish:Vf,emitNative:Hl,subscribe:N4,unsubscribe:D4}=$f;globalThis.joliboxJSBridge={callHandler:Pf,invokeHandler:Pf,subscribeHandler:ST}});function RT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Xf(e){return new Promise(t=>setTimeout(t,e))}function li(e){return typeof e=="string"}function Nr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Zf(e){return typeof e=="object"&&Array.isArray(e)}function eh(e){return typeof e=="number"&&!isNaN(e)}function tn(e){return e===!0||e===!1}function th(e){return typeof e=="undefined"}function Xl(e){return th(e)||e===null}function NT(e){return typeof e=="function"}function rh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function nh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Kf(l)&&Kf(s)?i[a]=n(TT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Kf(e){return e&&typeof e=="object"&&e.constructor===Object}function ih(e,t){if(Array.isArray(e))return e.concat(t)}function ci(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function LT(e,t){return(...r)=>t(e,...r)}function Bo(e){return t=>LT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function ii(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function dh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function ic(){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=>mh(e)(t))}function mh(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 si(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function zT(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(li(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(NT(t)){try{if(e instanceof t)return}catch(r){}if(!Xl(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 KT(){return typeof globalThis!="undefined"?globalThis[vh]:void 0}function YT(e){typeof globalThis!="undefined"&&(globalThis[vh]=e)}function X(e=!1){let t=KT();if(!e&&t)return t;let r=new Jo,n=new Yl,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 YT(i),i}var Ql,xT,zf,AT,CT,Wf,TT,OT,Qf,PT,Ot,DT,Zl,ui,ec,oh,Pt,ah,sh,lh,ch,uh,di,tc,Rt,Vl,qT,rc,Yf,MT,B,nc,UT,rn,oi,pi,FT,jT,ph,fh,hh,zl,le,JT,BT,ai,si,Nt,Kl,GT,$l,VT,ne,Jo,Yl,vh,N=x(()=>{"use strict";Ql=Object.defineProperty,xT=Object.getOwnPropertyDescriptor,zf=Object.getOwnPropertySymbols,AT=Object.prototype.hasOwnProperty,CT=Object.prototype.propertyIsEnumerable,Wf=(e,t,r)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TT=(e,t)=>{for(var r in t||(t={}))AT.call(t,r)&&Wf(e,r,t[r]);if(zf)for(var r of zf(t))CT.call(t,r)&&Wf(e,r,t[r]);return e},OT=(e,t)=>{for(var r in t)Ql(e,r,{get:t[r],enumerable:!0})},Qf=(e,t,r,n)=>{for(var i=n>1?void 0:n?xT(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&&Ql(t,r,i),i},PT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};DT=(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))(DT||{}),Zl=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}},ui=class extends Zl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ec=class extends Zl{constructor(){super(...arguments),this.kind="USER_ERROR"}},oh=class extends ec{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends ec{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))}},ah=class extends ec{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))}},sh=class extends ui{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},lh=class extends ui{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 ui{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},uh=class extends ui{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},di=class extends Zl{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}}},tc=class extends ui{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:ii("log"),warn:ii("warn"),info:ii("info"),error:ii("error"),debug:ii("debug")};Object.assign(globalThis,{logger:Rt});Vl=Symbol.for("Jolibox.canIUseMap"),qT={};globalThis[Vl]||(globalThis[Vl]=qT);rc={get config(){return globalThis[Vl]}},Yf=Symbol.for("Jolibox.canIUseMap.native"),MT={};globalThis[Yf]||(globalThis[Yf]=MT);B=(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))(B||{}),nc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nc||{}),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||{}),rn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ic();oi=typeof window=="undefined",pi={isiOS:!oi&&(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:!oi&&navigator.userAgent.includes("Android"),isMac:!oi&&navigator.userAgent.includes("Mac"),isFacebook:!oi&&navigator.userAgent.includes("FB_IAB"),isPC:!oi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},FT="device_id",jT="advertising_id",ph=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,rn()),window.__joliboxLocalStorage__.getItem(e)),fh=()=>new URLSearchParams(window.location.search).get("deviceId")||ph(FT),hh=()=>new URLSearchParams(window.location.search).get("advertisingId")||ph(jT),zl=class Wl{constructor(t){this.element=t,this.next=Wl.Undefined,this.prev=Wl.Undefined}};zl.Undefined=new zl(void 0);le=zl,JT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},BT=0,ai=class{constructor(e){this.value=e,this.id=BT++}},si=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 ai&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ai(t);return this._listeners?this._listeners instanceof ai?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ai)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ai?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new si,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new 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)}},Kl={};OT(Kl,{None:()=>GT,filter:()=>$T,once:()=>mh,toPromise:()=>HT});GT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});$l=Symbol.for("Jolibox.hostEmitter"),VT=()=>{let e=new Nt;return globalThis[$l]||(globalThis[$l]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[$l]},ne=VT();Jo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new si,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 zT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Jo=Qf([rh],Jo);Yl=class{constructor(){this._onWillExecuteCommand=new si,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new si,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=RT(3e4)),this._starActivation}executeCommand(e,...t){return PT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Kl.toPromise(Kl.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}}};Yl=Qf([rh],Yl);vh=Symbol.for("Jolibox.commands")});function Ae(e,t={}){oc.emit("ERROR_REPORT",{error:e,options:t})}var oc,Dr,vt=x(()=>{"use strict";N();N();oc=new Nt,Dr=new Nt;Ae.debounce=ci(Ae,50,{leading:!0})});var ac,QT,gh,yh,_h=x(()=>{"use strict";N();vt();ac=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{}}},QT=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},gh=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:ac(o),payloadJson:ac(a),signature:ac(s)}}else throw"joli_source is missing"}catch(r){return Ae(new sh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},yh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=QT(e),o=r[2];return`${n}.${i}.${o}`}return t}});var XT,sc,bh=x(()=>{"use strict";N();XT="1.1.53-beta.0",sc=()=>XT});function cc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var ZT,wh,lc,Ih,de,e1,E,G=x(()=>{"use strict";N();_h();bh();N();ZT={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:fh(),adId:hh(),pixelRatio:window.devicePixelRatio||1,platform:pi.isAndroid?"android":pi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:sc()},schema:window.location.href,platform:pi.isAndroid?"android":pi.isiOS?"ios":"h5"},lc=(wh=globalThis.joliboxJSCore)==null?void 0:wh.env,de=Object.assign({},(Ih=lc==null?void 0:lc())!=null?Ih:ZT);e1=()=>{var f,m,g,y,v,b,k,A,P,C,S;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?gh(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(S=(C=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?S:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var T;return(T=performance.timeOrigin)!=null?T:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var T;return(T=o.get("joliSource"))!=null?T:null},get mpId(){var T;return(T=a!=null?a:e==null?void 0:e.id)!=null?T:""},get mpVersion(){var T;return(T=t==null?void 0:t.ver)!=null?T:sc()},get mpType(){var T,j;return(j=(T=t==null?void 0:t.__mpType)!=null?T:e==null?void 0:e.__mpType)!=null?j:"game"},get platform(){var T;return((T=de.platform)!=null?T:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var T,j;return(j=(T=de.clientSessionId)!=null?T:s)!=null?j:n},get channel(){return u},get webviewId(){var T;return(T=de.webviewId)!=null?T:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var T;return(T=de.deviceInfo.adId)!=null?T:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return cc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":cc("gamedistribution","jolibox")?"gamedistribution":cc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var q,Re,Ne;let T=(q=de.deviceInfo.pixelRatio)!=null?q:1,j=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:j!==void 0?j/T:20,navigationBarHeight:Ke!==void 0?Ke/T:10}},get abTests(){var T,j;return(j=(T=de.abValues)==null?void 0:T.split(","))!=null?j:[]},onEnvConfigChanged:T=>{nh(de,T,ih)},encodeJoliSourceQuery:T=>{var j,Ke;return t&&r?yh(O(O({},e),T),(j=o.get("joliSource"))!=null?j:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=e1()});var uc,kh,t1,r1,Eh,n1,Sh=x(()=>{"use strict";N();vt();G();N();uc=!1,kh=(e,t)=>e==null?!1:t in e,t1=e=>kh(e,"kind"),r1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Eh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:r1(e.name)},i=J(O({},n),{env:t.environment,isFromUser:r});r?Dr.emit("GLOBAL_USER_ERROR",e,i):Dr.emit("GLOBAL_ERROR",e,i)},n1=e=>kh(e,"kind")&&e.kind==="USER_ERROR";oc.on("ERROR_REPORT",({error:e,options:t})=>{if(uc)return;uc=!0;let r=t1(e)&&e.raw?e.raw:e;try{let n=n1(e);Eh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new tc(`${i}, origin error: ${r.message}`);Rt.error(o),Eh(new tc(o.message),{environment:t.environment},!1)}finally{uc=!1}})});var hr,dc,nn=x(()=>{"use strict";vt();N();vt();hr=(e,t)=>{var r,n;return new di((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},dc=e=>new oh(e)});var xh=x(()=>{"use strict";Sh();nn();N();_e();Dr.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})});Dr.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var pc=x(()=>{"use strict"});function Ah(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=J(O({tag:n,eventType:o!=null?o:a!=null?a:B.Other},t),{extra:O({},s)});n=="globalJsError"?Ae(new uh(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=ci(r,500,{leading:!0}),r}function Ch(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=ci(t,500,{leading:!0}),t}var Th=x(()=>{"use strict";N();N();vt();G()});function Oh(e,t){let r=Ah(e,t),n=Ch(r);return{track:r,trackPerformance:n}}var Ph=x(()=>{"use strict";Th()});var Rh=x(()=>{"use strict";G();N();N()});var Nh=x(()=>{"use strict";Ph();pc();Rh()});var Go,Dh=x(()=>{"use strict";Go=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration: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.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Ho(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return et("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),y=i1(u,J(O({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:k="json",timeout:A,enableCache:P=!1,appendHostCookie:C=!0}=p,S=Object.assign({"content-type":"application/json"},a,p.header),T={url:y,method:v,header:S,enableCache:P,responseType:b,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Ne=a1(p.data,S["content-type"]);T.data=Ne}A&&Object.assign(T,{timeout:A});let{data:{requestTaskId:j}}=U(e,T);if(typeof j!="string")throw hr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:q,promise:Re}=new Ot;n.set(j,{resolve:Ke,reject:q});try{let Ne=yield Re,{data:Rr}=Ne;return k==="json"&&typeof Rr=="string"&&(Rr=o1(Rr)),{url:y,timeout:A,method:v,response:J(O({},Ne),{data:Rr})}}catch(Ne){let Rr=Ne;if(Nr(Rr)){let{errMsg:Sl,prefetchDetail:x4,isPrefetch:A4,errNo:yC}=Rr;li(Sl)&&Ae(hr({code:-1,msg:Sl},{errNo:yC,errMsg:Sl}))}throw Ne}})}function o1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function a1(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 i1,fc=x(()=>{"use strict";N();_e();vt();nn();i1=(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 hc,Lh,te,gt=x(()=>{"use strict";fc();G();hc={};(Lh=E.hostUserInfo)!=null&&Lh.token&&(hc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(hc["x-joli-source"]=E.joliSource);te=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:E.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:hc})});var $o,qh=x(()=>{"use strict";G();Dh();gt();_e();$o=class extends Go{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=E.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:O({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:O({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Jh={};Ef(Jh,{nativeTaskEmitter:()=>fi,taskTracker:()=>It,track:()=>F,trackPerformance:()=>Fh});var s1,Mh,Uh,F,Fh,jh,fi,It,yt=x(()=>{"use strict";xh();N();pc();Nh();G();qh();_e();s1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Nr(n.extra)?n.extra:li(n.extra)?JSON.parse(n.extra):{},o=J(O({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:E.sessionId,user_id:(d=(c=E.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:B.Other;U("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:F,trackPerformance:Fh}=Oh(s1,{type:nc.AppSDK,platform:"native",jssdk_version:(Uh=(Mh=E.sdkInfo)==null?void 0:Mh.jssdkVersion)!=null?Uh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),jh=X();jh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Fh(e,t,r)});jh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{F(e,t)});fi=new Nt,It=new $o(F,fi)});function Bh(){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=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,14 +16,14 @@ var e1=Object.create;var Eo=Object.defineProperty,t1=Object.defineProperties,r1=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var qh=k(()=>{"use strict";K()});var Fh=k(()=>{"use strict"});var Mh=k(()=>{"use strict";D();Kl()});var Uh=k(()=>{"use strict";K()});var Fo,ac=k(()=>{"use strict";Fh();Mh();K();Uh();D();Fo=new Ot});function Vt(e,t){for(var r in t)e[r]=t[r];return e}function pc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Be(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?Bo.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 Uo(e,a,n,i,null)}function Uo(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?++Hh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function De(e){return e.children}function lt(e,t){this.props=e,this.context=t}function Qr(e,t){if(t==null)return e.__?Qr(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"?Qr(e):null}function Kh(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 Kh(e)}}function cc(e){(!e.__d&&(e.__d=!0)&&Pr.push(e)&&!jo.__r++||jh!==R.debounceRendering)&&((jh=R.debounceRendering)||$h)(jo)}function jo(){for(var e,t,r,n,i,o,a,s=1;Pr.length;)Pr.length>s&&Pr.sort(Vh),e=Pr.shift(),s=Pr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Vt({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),fc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Qr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Xh(o,r,a),r.__e!=i&&Kh(r)));jo.__r=0}function Qh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Wh,b=t.length;for(l=$T(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?ni:v[f.__i]||ni,f.__i=u,_=fc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&hc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=Yh(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function $T(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Uo(null,a,null,null,null):ii(a)?Uo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Uo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=VT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Qr(s)),em(s,s));return n}function Yh(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=Yh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Qr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function oi(e,t){return t=t||[],e==null||typeof e=="boolean"||(ii(e)?e.some(function(r){oi(r,t)}):t.push(e)),t}function VT(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Bh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||HT.test(t)?r:r+"px"}function Mo(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||Bh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Bh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Gh,"$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=dc,e.addEventListener(t,o?lc:sc,o)):e.removeEventListener(t,o?lc:sc,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 Jh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=dc++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function fc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,I,A,C,O,x,P,J,We,q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof q=="function")try{if(v=t.props,b="prototype"in q&&q.prototype.render,I=(d=q.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new q(v,A):(t.__c=u=new lt(v,A),u.constructor=q,u.render=zT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Vt({},u.__s)),Vt(u.__s,q.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&q.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,x=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++x<25);u.state=u.__s,u.getChildContext!=null&&(n=Vt(Vt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),J=d,d!=null&&d.type===De&&d.key==null&&(J=Zh(d.props.children)),s=Qh(e,ii(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(We=o.length;We--;)pc(o[We]);else t.__e=r.__e,t.__k=r.__k;R.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=GT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function Xh(e,t,r){for(var n=0;n<r.length;n++)hc(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function Zh(e){return typeof e!="object"||e==null?e:ii(e)?e.map(Zh):Vt({},e)}function GT(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&Bo.call(e.childNodes),_=r.props||ni,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Mo(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||Mo(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Qh(t.type==="template"?e.content:e,ii(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Qr(r,0),s,l),o!=null)for(c=o.length;c--;)pc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&Mo(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&Mo(e,c,g,_[c],i))}return e}function hc(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){R.__e(i,r)}}function em(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||hc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&em(n[i],t,r||typeof e.type!="function");r||pc(e.__e),e.__c=e.__=e.__e=void 0}function zT(e,t,r){return this.constructor(e,r)}function ur(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],fc(t,e=(!n&&r||t).__k=Be(De,null,[e]),i||ni,ni,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Bo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Xh(o,e,a)}function Or(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,cc(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"+zh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Bo,R,Hh,uc,Pr,jh,$h,Vh,Gh,dc,sc,lc,zh,ni,Wh,HT,ii,Yr=k(()=>{ni={},Wh=[],HT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ii=Array.isArray;Bo=Wh.slice,R={__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}},Hh=0,uc=function(e){return e!=null&&e.constructor==null},lt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Vt({},this.state),typeof e=="function"&&(e=e(Vt({},r),this.props)),e&&Vt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),cc(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cc(this))},lt.prototype.render=De,Pr=[],$h=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vh=function(e,t){return e.__v.__b-t.__v.__b},jo.__r=0,Gh=/(PointerCapture)$|Capture$/i,dc=0,sc=Jh(!1),lc=Jh(!0),zh=0});var de=h((jV,tm)=>{"use strict";tm.exports=function(e){try{return!!e()}catch(t){return!0}}});var Xr=h((BV,rm)=>{"use strict";var WT=de();rm.exports=!WT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((JV,om)=>{"use strict";var nm=Xr(),im=Function.prototype,mc=im.call,KT=nm&&im.bind.bind(mc,mc);om.exports=nm?KT:function(e){return function(){return mc.apply(e,arguments)}}});var Ke=h((HV,am)=>{"use strict";var QT=be();am.exports=QT({}.isPrototypeOf)});var pe=h((vc,sm)=>{"use strict";var ai=function(e){return e&&e.Math===Math&&e};sm.exports=ai(typeof globalThis=="object"&&globalThis)||ai(typeof window=="object"&&window)||ai(typeof self=="object"&&self)||ai(typeof global=="object"&&global)||ai(typeof vc=="object"&&vc)||function(){return this}()||Function("return this")()});var gc=h(($V,dm)=>{"use strict";var YT=Xr(),um=Function.prototype,lm=um.apply,cm=um.call;dm.exports=typeof Reflect=="object"&&Reflect.apply||(YT?cm.bind(lm):function(){return cm.apply(lm,arguments)})});var Gt=h((VV,fm)=>{"use strict";var pm=be(),XT=pm({}.toString),ZT=pm("".slice);fm.exports=function(e){return ZT(XT(e),8,-1)}});var si=h((GV,hm)=>{"use strict";var eC=Gt(),tC=be();hm.exports=function(e){if(eC(e)==="Function")return tC(e)}});var Le=h((zV,mm)=>{"use strict";var yc=typeof document=="object"&&document.all;mm.exports=typeof yc=="undefined"&&yc!==void 0?function(e){return typeof e=="function"||e===yc}:function(e){return typeof e=="function"}});var Qe=h((WV,vm)=>{"use strict";var rC=de();vm.exports=!rC(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var St=h((KV,gm)=>{"use strict";var nC=Xr(),Jo=Function.prototype.call;gm.exports=nC?Jo.bind(Jo):function(){return Jo.apply(Jo,arguments)}});var _c=h(bm=>{"use strict";var ym={}.propertyIsEnumerable,_m=Object.getOwnPropertyDescriptor,iC=_m&&!ym.call({1:2},1);bm.f=iC?function(t){var r=_m(this,t);return!!r&&r.enumerable}:ym});var li=h((YV,wm)=>{"use strict";wm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ho=h((XV,Im)=>{"use strict";var oC=be(),aC=de(),sC=Gt(),bc=Object,lC=oC("".split);Im.exports=aC(function(){return!bc("z").propertyIsEnumerable(0)})?function(e){return sC(e)==="String"?lC(e,""):bc(e)}:bc});var Rr=h((ZV,Sm)=>{"use strict";Sm.exports=function(e){return e==null}});var Nr=h((eG,Em)=>{"use strict";var cC=Rr(),uC=TypeError;Em.exports=function(e){if(cC(e))throw new uC("Can't call method on "+e);return e}});var dr=h((tG,xm)=>{"use strict";var dC=Ho(),pC=Nr();xm.exports=function(e){return dC(pC(e))}});var Ae=h((rG,km)=>{"use strict";var fC=Le();km.exports=function(e){return typeof e=="object"?e!==null:fC(e)}});var Rt=h((nG,Am)=>{"use strict";Am.exports={}});var Zr=h((iG,Cm)=>{"use strict";var wc=Rt(),Ic=pe(),hC=Le(),Tm=function(e){return hC(e)?e:void 0};Cm.exports=function(e,t){return arguments.length<2?Tm(wc[e])||Tm(Ic[e]):wc[e]&&wc[e][t]||Ic[e]&&Ic[e][t]}});var $o=h((oG,Rm)=>{"use strict";var mC=pe(),Pm=mC.navigator,Om=Pm&&Pm.userAgent;Rm.exports=Om?String(Om):""});var Go=h((aG,Mm)=>{"use strict";var Fm=pe(),Sc=$o(),Nm=Fm.process,Dm=Fm.Deno,Lm=Nm&&Nm.versions||Dm&&Dm.version,qm=Lm&&Lm.v8,Et,Vo;qm&&(Et=qm.split("."),Vo=Et[0]>0&&Et[0]<4?1:+(Et[0]+Et[1]));!Vo&&Sc&&(Et=Sc.match(/Edge\/(\d+)/),(!Et||Et[1]>=74)&&(Et=Sc.match(/Chrome\/(\d+)/),Et&&(Vo=+Et[1])));Mm.exports=Vo});var Ec=h((sG,jm)=>{"use strict";var Um=Go(),vC=de(),gC=pe(),yC=gC.String;jm.exports=!!Object.getOwnPropertySymbols&&!vC(function(){var e=Symbol("symbol detection");return!yC(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Um&&Um<41})});var xc=h((lG,Bm)=>{"use strict";var _C=Ec();Bm.exports=_C&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kc=h((cG,Jm)=>{"use strict";var bC=Zr(),wC=Le(),IC=Ke(),SC=xc(),EC=Object;Jm.exports=SC?function(e){return typeof e=="symbol"}:function(e){var t=bC("Symbol");return wC(t)&&IC(t.prototype,EC(e))}});var ci=h((uG,Hm)=>{"use strict";var xC=String;Hm.exports=function(e){try{return xC(e)}catch(t){return"Object"}}});var Dr=h((dG,$m)=>{"use strict";var kC=Le(),AC=ci(),TC=TypeError;$m.exports=function(e){if(kC(e))return e;throw new TC(AC(e)+" is not a function")}});var zo=h((pG,Vm)=>{"use strict";var CC=Dr(),PC=Rr();Vm.exports=function(e,t){var r=e[t];return PC(r)?void 0:CC(r)}});var zm=h((fG,Gm)=>{"use strict";var Ac=St(),Tc=Le(),Cc=Ae(),OC=TypeError;Gm.exports=function(e,t){var r,n;if(t==="string"&&Tc(r=e.toString)&&!Cc(n=Ac(r,e))||Tc(r=e.valueOf)&&!Cc(n=Ac(r,e))||t!=="string"&&Tc(r=e.toString)&&!Cc(n=Ac(r,e)))return n;throw new OC("Can't convert object to primitive value")}});var en=h((hG,Wm)=>{"use strict";Wm.exports=!0});var Ym=h((mG,Qm)=>{"use strict";var Km=pe(),RC=Object.defineProperty;Qm.exports=function(e,t){try{RC(Km,e,{value:t,configurable:!0,writable:!0})}catch(r){Km[e]=t}return t}});var ui=h((vG,ev)=>{"use strict";var NC=en(),DC=pe(),LC=Ym(),Xm="__core-js_shared__",Zm=ev.exports=DC[Xm]||LC(Xm,{});(Zm.versions||(Zm.versions=[])).push({version:"3.41.0",mode:NC?"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 Pc=h((gG,rv)=>{"use strict";var tv=ui();rv.exports=function(e,t){return tv[e]||(tv[e]=t||{})}});var tn=h((yG,nv)=>{"use strict";var qC=Nr(),FC=Object;nv.exports=function(e){return FC(qC(e))}});var ct=h((_G,iv)=>{"use strict";var MC=be(),UC=tn(),jC=MC({}.hasOwnProperty);iv.exports=Object.hasOwn||function(t,r){return jC(UC(t),r)}});var Wo=h((bG,ov)=>{"use strict";var BC=be(),JC=0,HC=Math.random(),$C=BC(1 .toString);ov.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$C(++JC+HC,36)}});var Je=h((wG,sv)=>{"use strict";var VC=pe(),GC=Pc(),av=ct(),zC=Wo(),WC=Ec(),KC=xc(),rn=VC.Symbol,Oc=GC("wks"),QC=KC?rn.for||rn:rn&&rn.withoutSetter||zC;sv.exports=function(e){return av(Oc,e)||(Oc[e]=WC&&av(rn,e)?rn[e]:QC("Symbol."+e)),Oc[e]}});var dv=h((IG,uv)=>{"use strict";var YC=St(),lv=Ae(),cv=kc(),XC=zo(),ZC=zm(),eP=Je(),tP=TypeError,rP=eP("toPrimitive");uv.exports=function(e,t){if(!lv(e)||cv(e))return e;var r=XC(e,rP),n;if(r){if(t===void 0&&(t="default"),n=YC(r,e,t),!lv(n)||cv(n))return n;throw new tP("Can't convert object to primitive value")}return t===void 0&&(t="number"),ZC(e,t)}});var Rc=h((SG,pv)=>{"use strict";var nP=dv(),iP=kc();pv.exports=function(e){var t=nP(e,"string");return iP(t)?t:t+""}});var Dc=h((EG,hv)=>{"use strict";var oP=pe(),fv=Ae(),Nc=oP.document,aP=fv(Nc)&&fv(Nc.createElement);hv.exports=function(e){return aP?Nc.createElement(e):{}}});var Lc=h((xG,mv)=>{"use strict";var sP=Qe(),lP=de(),cP=Dc();mv.exports=!sP&&!lP(function(){return Object.defineProperty(cP("div"),"a",{get:function(){return 7}}).a!==7})});var qc=h(gv=>{"use strict";var uP=Qe(),dP=St(),pP=_c(),fP=li(),hP=dr(),mP=Rc(),vP=ct(),gP=Lc(),vv=Object.getOwnPropertyDescriptor;gv.f=uP?vv:function(t,r){if(t=hP(t),r=mP(r),gP)try{return vv(t,r)}catch(n){}if(vP(t,r))return fP(!dP(pP.f,t,r),t[r])}});var _v=h((AG,yv)=>{"use strict";var yP=de(),_P=Le(),bP=/#|\.prototype\./,di=function(e,t){var r=IP[wP(e)];return r===EP?!0:r===SP?!1:_P(t)?yP(t):!!t},wP=di.normalize=function(e){return String(e).replace(bP,".").toLowerCase()},IP=di.data={},SP=di.NATIVE="N",EP=di.POLYFILL="P";yv.exports=di});var pi=h((TG,wv)=>{"use strict";var bv=si(),xP=Dr(),kP=Xr(),AP=bv(bv.bind);wv.exports=function(e,t){return xP(e),t===void 0?e:kP?AP(e,t):function(){return e.apply(t,arguments)}}});var Fc=h((CG,Iv)=>{"use strict";var TP=Qe(),CP=de();Iv.exports=TP&&CP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((PG,Sv)=>{"use strict";var PP=Ae(),OP=String,RP=TypeError;Sv.exports=function(e){if(PP(e))return e;throw new RP(OP(e)+" is not an object")}});var Wt=h(xv=>{"use strict";var NP=Qe(),DP=Lc(),LP=Fc(),Ko=zt(),Ev=Rc(),qP=TypeError,Mc=Object.defineProperty,FP=Object.getOwnPropertyDescriptor,Uc="enumerable",jc="configurable",Bc="writable";xv.f=NP?LP?function(t,r,n){if(Ko(t),r=Ev(r),Ko(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Bc in n&&!n[Bc]){var i=FP(t,r);i&&i[Bc]&&(t[r]=n.value,n={configurable:jc in n?n[jc]:i[jc],enumerable:Uc in n?n[Uc]:i[Uc],writable:!1})}return Mc(t,r,n)}:Mc:function(t,r,n){if(Ko(t),r=Ev(r),Ko(n),DP)try{return Mc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new qP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Lr=h((RG,kv)=>{"use strict";var MP=Qe(),UP=Wt(),jP=li();kv.exports=MP?function(e,t,r){return UP.f(e,t,jP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((NG,Tv)=>{"use strict";var fi=pe(),BP=gc(),JP=si(),HP=Le(),$P=qc().f,VP=_v(),nn=Rt(),GP=pi(),on=Lr(),Av=ct();ui();var zP=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return BP(e,this,arguments)};return t.prototype=e.prototype,t};Tv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?fi:i?fi[r]:fi[r]&&fi[r].prototype,s=n?nn:nn[r]||on(nn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=VP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Av(a,p),m=s[p],d&&(e.dontCallGetSet?(v=$P(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=GP(f,fi):e.wrap&&d?_=zP(f):o&&HP(f)?_=JP(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&on(_,"sham",!0),on(s,p,_),o&&(u=r+"Prototype",Av(nn,u)||on(nn,u,{}),on(nn[u],p,f),e.real&&l&&(c||!l[p])&&on(l,p,f)))}});var Pv=h((DG,Cv)=>{"use strict";var WP=Math.ceil,KP=Math.floor;Cv.exports=Math.trunc||function(t){var r=+t;return(r>0?KP:WP)(r)}});var hi=h((LG,Ov)=>{"use strict";var QP=Pv();Ov.exports=function(e){var t=+e;return t!==t||t===0?0:QP(t)}});var Jc=h((qG,Rv)=>{"use strict";var YP=hi(),XP=Math.min;Rv.exports=function(e){var t=YP(e);return t>0?XP(t,9007199254740991):0}});var an=h((FG,Nv)=>{"use strict";var ZP=Jc();Nv.exports=function(e){return ZP(e.length)}});var mi=h((MG,Dv)=>{"use strict";var eO=Gt();Dv.exports=Array.isArray||function(t){return eO(t)==="Array"}});var Qo=h((UG,qv)=>{"use strict";var tO=Je(),rO=tO("toStringTag"),Lv={};Lv[rO]="z";qv.exports=String(Lv)==="[object z]"});var sn=h((jG,Fv)=>{"use strict";var nO=Qo(),iO=Le(),Yo=Gt(),oO=Je(),aO=oO("toStringTag"),sO=Object,lO=Yo(function(){return arguments}())==="Arguments",cO=function(e,t){try{return e[t]}catch(r){}};Fv.exports=nO?Yo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=cO(t=sO(e),aO))=="string"?r:lO?Yo(t):(n=Yo(t))==="Object"&&iO(t.callee)?"Arguments":n}});var Uv=h((BG,Mv)=>{"use strict";var uO=be(),dO=Le(),Hc=ui(),pO=uO(Function.toString);dO(Hc.inspectSource)||(Hc.inspectSource=function(e){return pO(e)});Mv.exports=Hc.inspectSource});var Vc=h((JG,$v)=>{"use strict";var fO=be(),hO=de(),jv=Le(),mO=sn(),vO=Zr(),gO=Uv(),Bv=function(){},Jv=vO("Reflect","construct"),$c=/^\s*(?:class|function)\b/,yO=fO($c.exec),_O=!$c.test(Bv),gi=function(t){if(!jv(t))return!1;try{return Jv(Bv,[],t),!0}catch(r){return!1}},Hv=function(t){if(!jv(t))return!1;switch(mO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _O||!!yO($c,gO(t))}catch(r){return!0}};Hv.sham=!0;$v.exports=!Jv||hO(function(){var e;return gi(gi.call)||!gi(Object)||!gi(function(){e=!0})||e})?Hv:gi});var Wv=h((HG,zv)=>{"use strict";var Vv=mi(),bO=Vc(),wO=Ae(),IO=Je(),SO=IO("species"),Gv=Array;zv.exports=function(e){var t;return Vv(e)&&(t=e.constructor,bO(t)&&(t===Gv||Vv(t.prototype))?t=void 0:wO(t)&&(t=t[SO],t===null&&(t=void 0))),t===void 0?Gv:t}});var Gc=h(($G,Kv)=>{"use strict";var EO=Wv();Kv.exports=function(e,t){return new(EO(e))(t===0?0:t)}});var fr=h((VG,Yv)=>{"use strict";var xO=pi(),kO=be(),AO=Ho(),TO=tn(),CO=an(),PO=Gc(),Qv=kO([].push),pr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=TO(l),f=AO(p),m=CO(f),g=xO(c,d),_=0,v=u||PO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in f)&&(I=f[_],A=g(I,_,p),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:Qv(b,I)}else switch(e){case 4:return!1;case 7:Qv(b,I)}return o?-1:n||i?i:b}};Yv.exports={forEach:pr(0),map:pr(1),filter:pr(2),some:pr(3),every:pr(4),find:pr(5),findIndex:pr(6),filterReject:pr(7)}});var yi=h((GG,Xv)=>{"use strict";var OO=de(),RO=Je(),NO=Go(),DO=RO("species");Xv.exports=function(e){return NO>=51||!OO(function(){var t=[],r=t.constructor={};return r[DO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Zv=h(()=>{"use strict";var LO=Z(),qO=fr().filter,FO=yi(),MO=FO("filter");LO({target:"Array",proto:!0,forced:!MO},{filter:function(t){return qO(this,t,arguments.length>1?arguments[1]:void 0)}})});var yt=h((KG,eg)=>{"use strict";var UO=pe(),jO=Rt();eg.exports=function(e,t){var r=jO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=UO[e],o=i&&i.prototype;return o&&o[t]}});var rg=h((QG,tg)=>{"use strict";Zv();var BO=yt();tg.exports=BO("Array","filter")});var ig=h((YG,ng)=>{"use strict";var JO=Ke(),HO=rg(),zc=Array.prototype;ng.exports=function(e){var t=e.filter;return e===zc||JO(zc,e)&&t===zc.filter?HO:t}});var ag=h((XG,og)=>{"use strict";var $O=ig();og.exports=$O});var lg=h((ZG,sg)=>{sg.exports=ag()});var _i=h((ez,cg)=>{"use strict";var VO=de();cg.exports=function(e,t){var r=[][e];return!!r&&VO(function(){r.call(null,t||function(){return 1},1)})}});var ug=h(()=>{"use strict";var GO=Z(),zO=fr().every,WO=_i(),KO=WO("every");GO({target:"Array",proto:!0,forced:!KO},{every:function(t){return zO(this,t,arguments.length>1?arguments[1]:void 0)}})});var pg=h((nz,dg)=>{"use strict";ug();var QO=yt();dg.exports=QO("Array","every")});var hg=h((iz,fg)=>{"use strict";var YO=Ke(),XO=pg(),Wc=Array.prototype;fg.exports=function(e){var t=e.every;return e===Wc||YO(Wc,e)&&t===Wc.every?XO:t}});var vg=h((oz,mg)=>{"use strict";var ZO=hg();mg.exports=ZO});var yg=h((az,gg)=>{gg.exports=vg()});var bg=h((sz,_g)=>{"use strict";var eR=fr().forEach,tR=_i(),rR=tR("forEach");_g.exports=rR?[].forEach:function(t){return eR(this,t,arguments.length>1?arguments[1]:void 0)}});var Ig=h(()=>{"use strict";var nR=Z(),wg=bg();nR({target:"Array",proto:!0,forced:[].forEach!==wg},{forEach:wg})});var Eg=h((uz,Sg)=>{"use strict";Ig();var iR=yt();Sg.exports=iR("Array","forEach")});var kg=h((dz,xg)=>{"use strict";var oR=Eg();xg.exports=oR});var Ag=h(()=>{});var Cg=h((hz,Tg)=>{"use strict";var aR=sn(),sR=ct(),lR=Ke(),cR=kg();Ag();var Kc=Array.prototype,uR={DOMTokenList:!0,NodeList:!0};Tg.exports=function(e){var t=e.forEach;return e===Kc||lR(Kc,e)&&t===Kc.forEach||sR(uR,aR(e))?cR:t}});var Og=h((mz,Pg)=>{Pg.exports=Cg()});var Ng=h((vz,Rg)=>{"use strict";var dR=TypeError,pR=9007199254740991;Rg.exports=function(e){if(e>pR)throw dR("Maximum allowed index exceeded");return e}});var Qc=h((gz,Dg)=>{"use strict";var fR=Qe(),hR=Wt(),mR=li();Dg.exports=function(e,t,r){fR?hR.f(e,t,mR(0,r)):e[t]=r}});var Mg=h(()=>{"use strict";var vR=Z(),gR=de(),yR=mi(),_R=Ae(),bR=tn(),wR=an(),Lg=Ng(),qg=Qc(),IR=Gc(),SR=yi(),ER=Je(),xR=Go(),Fg=ER("isConcatSpreadable"),kR=xR>=51||!gR(function(){var e=[];return e[Fg]=!1,e.concat()[0]!==e}),AR=function(e){if(!_R(e))return!1;var t=e[Fg];return t!==void 0?!!t:yR(e)},TR=!kR||!SR("concat");vR({target:"Array",proto:!0,arity:1,forced:TR},{concat:function(t){var r=bR(this),n=IR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],AR(c))for(l=wR(c),Lg(i+l),a=0;a<l;a++,i++)a in c&&qg(n,i,c[a]);else Lg(i+1),qg(n,i++,c);return n.length=i,n}})});var jg=h((bz,Ug)=>{"use strict";Mg();var CR=yt();Ug.exports=CR("Array","concat")});var Jg=h((wz,Bg)=>{"use strict";var PR=Ke(),OR=jg(),Yc=Array.prototype;Bg.exports=function(e){var t=e.concat;return e===Yc||PR(Yc,e)&&t===Yc.concat?OR:t}});var $g=h((Iz,Hg)=>{"use strict";var RR=Jg();Hg.exports=RR});var Gg=h((Sz,Vg)=>{Vg.exports=$g()});var zg=h(()=>{"use strict";var NR=Z(),DR=fr().some,LR=_i(),qR=LR("some");NR({target:"Array",proto:!0,forced:!qR},{some:function(t){return DR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Kg=h((kz,Wg)=>{"use strict";zg();var FR=yt();Wg.exports=FR("Array","some")});var Yg=h((Az,Qg)=>{"use strict";var MR=Ke(),UR=Kg(),Xc=Array.prototype;Qg.exports=function(e){var t=e.some;return e===Xc||MR(Xc,e)&&t===Xc.some?UR:t}});var Zg=h((Tz,Xg)=>{"use strict";var jR=Yg();Xg.exports=jR});var ty=h((Cz,ey)=>{ey.exports=Zg()});var ny=h((Pz,ry)=>{"use strict";var bi=pe(),BR=$o(),JR=Gt(),Xo=function(e){return BR.slice(0,e.length)===e};ry.exports=function(){return Xo("Bun/")?"BUN":Xo("Cloudflare-Workers")?"CLOUDFLARE":Xo("Deno/")?"DENO":Xo("Node.js/")?"NODE":bi.Bun&&typeof Bun.version=="string"?"BUN":bi.Deno&&typeof Deno.version=="object"?"DENO":JR(bi.process)==="process"?"NODE":bi.window&&bi.document?"BROWSER":"REST"}()});var wi=h((Oz,iy)=>{"use strict";var HR=be();iy.exports=HR([].slice)});var ay=h((Rz,oy)=>{"use strict";var $R=TypeError;oy.exports=function(e,t){if(e<t)throw new $R("Not enough arguments");return e}});var Zc=h((Nz,ly)=>{"use strict";var sy=pe(),VR=gc(),GR=Le(),zR=ny(),WR=$o(),KR=wi(),QR=ay(),YR=sy.Function,XR=/MSIE .\./.test(WR)||zR==="BUN"&&function(){var e=sy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();ly.exports=function(e,t){var r=t?2:1;return XR?function(n,i){var o=QR(arguments.length,1)>r,a=GR(n)?n:YR(n),s=o?KR(arguments,r):[],l=o?function(){VR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var dy=h(()=>{"use strict";var ZR=Z(),uy=pe(),eN=Zc(),cy=eN(uy.setInterval,!0);ZR({global:!0,bind:!0,forced:uy.setInterval!==cy},{setInterval:cy})});var hy=h(()=>{"use strict";var tN=Z(),fy=pe(),rN=Zc(),py=rN(fy.setTimeout,!0);tN({global:!0,bind:!0,forced:fy.setTimeout!==py},{setTimeout:py})});var my=h(()=>{"use strict";dy();hy()});var gy=h((jz,vy)=>{"use strict";my();var nN=Rt();vy.exports=nN.setTimeout});var _y=h((Bz,yy)=>{yy.exports=gy()});function Si(e,t){me.__h&&me.__h(oe,e,Ii||t),Ii=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ea(e){return Ii=1,Cy(Py,e)}function Cy(e,t,r){var n=Si(qr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Py(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Ei(e,t){var r=Si(qr++,3);!me.__s&&ru(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function ln(e,t){var r=Si(qr++,4);!me.__s&&ru(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function xi(e){return Ii=5,ki(function(){return{current:e}},[])}function ki(e,t){var r=Si(qr++,7);return ru(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function cn(e,t){return Ii=8,ki(function(){return e},t)}function un(e){var t=oe.context[e.__c],r=Si(qr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function iN(){for(var e;e=Ty.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zo),e.__H.__h.forEach(tu),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function oN(e){var t,r=function(){clearTimeout(n),Ay&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ay&&(t=requestAnimationFrame(r))}function Zo(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function tu(e){var t=oe;e.__c=e.__(),oe=t}function ru(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Py(e,t){return typeof t=="function"?t(e):t}var qr,oe,eu,by,Ii,Ty,me,wy,Iy,Sy,Ey,xy,ky,Ay,nu=k(()=>{Yr();Ii=0,Ty=[],me=R,wy=me.__b,Iy=me.__r,Sy=me.diffed,Ey=me.__c,xy=me.unmount,ky=me.__;me.__b=function(e){oe=null,wy&&wy(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ky&&ky(e,t)},me.__r=function(e){Iy&&Iy(e),qr=0;var t=(oe=e.__c).__H;t&&(eu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Zo),t.__h.forEach(tu),t.__h=[],qr=0)),eu=oe},me.diffed=function(e){Sy&&Sy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ty.push(t)!==1&&by===me.requestAnimationFrame||((by=me.requestAnimationFrame)||oN)(iN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),eu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Zo),r.__h=r.__h.filter(function(n){return!n.__||tu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),Ey&&Ey(e,t)},me.unmount=function(e){xy&&xy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Zo(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};Ay=typeof requestAnimationFrame=="function"});function jy(e,t){for(var r in t)e[r]=t[r];return e}function ou(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 Oy(e,t){this.props=e,this.context=t}function su(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:ou(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Be(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function lu(e){function t(r){var n=jy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=aN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function By(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=jy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return By(n,t,r)})),e}function Jy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Jy(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 iu(){this.__u=0,this.o=null,this.__b=null}function Hy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ta(){this.i=null,this.l=null}function cu(e,t,r){return t.__k==null&&(t.textContent=""),ur(e,t),typeof r=="function"&&r(),e?e.__c:null}function hN(){}function mN(){return this.cancelBubble}function vN(){return this.defaultPrevented}var au,Ry,aN,sN,Ny,Dy,lN,cN,uN,dN,pN,fN,Ly,$y,gN,qy,Fy,My,ra=k(()=>{Yr();Yr();nu();nu();au=ln;(Oy.prototype=new lt).isPureReactComponent=!0,Oy.prototype.shouldComponentUpdate=function(e,t){return ou(this.props,e)||ou(this.state,t)};Ry=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ry&&Ry(e)};aN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;sN=R.__e;R.__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)}sN(e,t,r,n)};Ny=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ny&&Ny(e)},(iu.prototype=new lt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Hy(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Jy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},iu.prototype.componentWillUnmount=function(){this.o=[]},iu.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]=By(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Be(De,null,e.fallback);return i&&(i.__u&=-33),[Be(De,null,t.__a?null:e.children),i]};Dy=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]}};(ta.prototype=new lt).__a=function(e){var t=this,r=Hy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Dy(t,e,n)):i()};r?r(o):o()}},ta.prototype.render=function(e){this.i=null,this.l=new Map;var t=oi(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},ta.prototype.componentDidUpdate=ta.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Dy(e,r,t)})};lN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,cN=/^(?: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]/,uN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,dN=/[A-Z0-9]/g,pN=typeof document!="undefined",fN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Ly=R.event;R.event=function(e){return Ly&&(e=Ly(e)),e.persist=hN,e.isPropagationStopped=mN,e.isDefaultPrevented=vN,e.nativeEvent=e};gN={enumerable:!1,configurable:!0,get:function(){return this.class}},qy=R.vnode;R.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||pN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||fN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":uN.test(a)&&(a=l):l=a="oninput":o&&cN.test(a)?a=a.replace(dN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=oi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=oi(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",gN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=lN,qy&&qy(e)};Fy=R.__r;R.__r=function(e){Fy&&Fy(e),$y=e.__c};My=R.diffed;R.diffed=function(e){My&&My(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),$y=null}});var du=h(()=>{"use strict";var _N=Z(),uu=pe();_N({global:!0,forced:uu.globalThis!==uu},{globalThis:uu})});var Vy=h(()=>{"use strict";du()});var zy=h((n6,Gy)=>{"use strict";du();Gy.exports=pe()});var Ky=h((i6,Wy)=>{"use strict";var bN=zy();Wy.exports=bN});var Yy=h((o6,Qy)=>{"use strict";var wN=Ky();Qy.exports=wN});var Zy=h((a6,Xy)=>{"use strict";Vy();var IN=Yy();Xy.exports=IN});var t_=h((s6,e_)=>{"use strict";e_.exports=Zy()});var n_=h((l6,r_)=>{r_.exports=t_()});var i_=h(()=>{"use strict";var SN=Z(),EN=mi();SN({target:"Array",stat:!0},{isArray:EN})});var a_=h((d6,o_)=>{"use strict";i_();var xN=Rt();o_.exports=xN.Array.isArray});var l_=h((p6,s_)=>{"use strict";var kN=a_();s_.exports=kN});var u_=h((f6,c_)=>{c_.exports=l_()});var p_=h((h6,d_)=>{"use strict";d_.exports=function(){}});var Fr=h((m6,f_)=>{"use strict";f_.exports={}});var pu=h((v6,m_)=>{"use strict";var AN=pe(),TN=Le(),h_=AN.WeakMap;m_.exports=TN(h_)&&/native code/.test(String(h_))});var na=h((g6,g_)=>{"use strict";var CN=Pc(),PN=Wo(),v_=CN("keys");g_.exports=function(e){return v_[e]||(v_[e]=PN(e))}});var Ai=h((y6,y_)=>{"use strict";y_.exports={}});var Ur=h((_6,w_)=>{"use strict";var ON=pu(),b_=pe(),RN=Ae(),NN=Lr(),fu=ct(),hu=ui(),DN=na(),LN=Ai(),__="Object already initialized",mu=b_.TypeError,qN=b_.WeakMap,ia,Ti,oa,FN=function(e){return oa(e)?Ti(e):ia(e,{})},MN=function(e){return function(t){var r;if(!RN(t)||(r=Ti(t)).type!==e)throw new mu("Incompatible receiver, "+e+" required");return r}};ON||hu.state?(xt=hu.state||(hu.state=new qN),xt.get=xt.get,xt.has=xt.has,xt.set=xt.set,ia=function(e,t){if(xt.has(e))throw new mu(__);return t.facade=e,xt.set(e,t),t},Ti=function(e){return xt.get(e)||{}},oa=function(e){return xt.has(e)}):(Mr=DN("state"),LN[Mr]=!0,ia=function(e,t){if(fu(e,Mr))throw new mu(__);return t.facade=e,NN(e,Mr,t),t},Ti=function(e){return fu(e,Mr)?e[Mr]:{}},oa=function(e){return fu(e,Mr)});var xt,Mr;w_.exports={set:ia,get:Ti,has:oa,enforce:FN,getterFor:MN}});var yu=h((b6,S_)=>{"use strict";var vu=Qe(),UN=ct(),I_=Function.prototype,jN=vu&&Object.getOwnPropertyDescriptor,gu=UN(I_,"name"),BN=gu&&(function(){}).name==="something",JN=gu&&(!vu||vu&&jN(I_,"name").configurable);S_.exports={EXISTS:gu,PROPER:BN,CONFIGURABLE:JN}});var _u=h((w6,E_)=>{"use strict";var HN=hi(),$N=Math.max,VN=Math.min;E_.exports=function(e,t){var r=HN(e);return r<0?$N(r+t,0):VN(r,t)}});var bu=h((I6,k_)=>{"use strict";var GN=dr(),zN=_u(),WN=an(),x_=function(e){return function(t,r,n){var i=GN(t),o=WN(i);if(o===0)return!e&&-1;var a=zN(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}};k_.exports={includes:x_(!0),indexOf:x_(!1)}});var Iu=h((S6,T_)=>{"use strict";var KN=be(),wu=ct(),QN=dr(),YN=bu().indexOf,XN=Ai(),A_=KN([].push);T_.exports=function(e,t){var r=QN(e),n=0,i=[],o;for(o in r)!wu(XN,o)&&wu(r,o)&&A_(i,o);for(;t.length>n;)wu(r,o=t[n++])&&(~YN(i,o)||A_(i,o));return i}});var aa=h((E6,C_)=>{"use strict";C_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Su=h((x6,P_)=>{"use strict";var ZN=Iu(),eD=aa();P_.exports=Object.keys||function(t){return ZN(t,eD)}});var R_=h(O_=>{"use strict";var tD=Qe(),rD=Fc(),nD=Wt(),iD=zt(),oD=dr(),aD=Su();O_.f=tD&&!rD?Object.defineProperties:function(t,r){iD(t);for(var n=oD(r),i=aD(r),o=i.length,a=0,s;o>a;)nD.f(t,s=i[a++],n[s]);return t}});var D_=h((A6,N_)=>{"use strict";var sD=Zr();N_.exports=sD("document","documentElement")});var Ci=h((T6,B_)=>{"use strict";var lD=zt(),cD=R_(),L_=aa(),uD=Ai(),dD=D_(),pD=Dc(),fD=na(),q_=">",F_="<",xu="prototype",ku="script",U_=fD("IE_PROTO"),Eu=function(){},j_=function(e){return F_+ku+q_+e+F_+"/"+ku+q_},M_=function(e){e.write(j_("")),e.close();var t=e.parentWindow.Object;return e=null,t},hD=function(){var e=pD("iframe"),t="java"+ku+":",r;return e.style.display="none",dD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(j_("document.F=Object")),r.close(),r.F},sa,la=function(){try{sa=new ActiveXObject("htmlfile")}catch(t){}la=typeof document!="undefined"?document.domain&&sa?M_(sa):hD():M_(sa);for(var e=L_.length;e--;)delete la[xu][L_[e]];return la()};uD[U_]=!0;B_.exports=Object.create||function(t,r){var n;return t!==null?(Eu[xu]=lD(t),n=new Eu,Eu[xu]=null,n[U_]=t):n=la(),r===void 0?n:cD.f(n,r)}});var H_=h((C6,J_)=>{"use strict";var mD=de();J_.exports=!mD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tu=h((P6,V_)=>{"use strict";var vD=ct(),gD=Le(),yD=tn(),_D=na(),bD=H_(),$_=_D("IE_PROTO"),Au=Object,wD=Au.prototype;V_.exports=bD?Au.getPrototypeOf:function(e){var t=yD(e);if(vD(t,$_))return t[$_];var r=t.constructor;return gD(r)&&t instanceof r?r.prototype:t instanceof Au?wD:null}});var ca=h((O6,G_)=>{"use strict";var ID=Lr();G_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ID(e,t,r),e}});var Ru=h((R6,K_)=>{"use strict";var SD=de(),ED=Le(),xD=Ae(),kD=Ci(),z_=Tu(),AD=ca(),TD=Je(),CD=en(),Ou=TD("iterator"),W_=!1,Kt,Cu,Pu;[].keys&&(Pu=[].keys(),"next"in Pu?(Cu=z_(z_(Pu)),Cu!==Object.prototype&&(Kt=Cu)):W_=!0);var PD=!xD(Kt)||SD(function(){var e={};return Kt[Ou].call(e)!==e});PD?Kt={}:CD&&(Kt=kD(Kt));ED(Kt[Ou])||AD(Kt,Ou,function(){return this});K_.exports={IteratorPrototype:Kt,BUGGY_SAFARI_ITERATORS:W_}});var Y_=h((N6,Q_)=>{"use strict";var OD=Qo(),RD=sn();Q_.exports=OD?{}.toString:function(){return"[object "+RD(this)+"]"}});var Pi=h((D6,Z_)=>{"use strict";var ND=Qo(),DD=Wt().f,LD=Lr(),qD=ct(),FD=Y_(),MD=Je(),X_=MD("toStringTag");Z_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(qD(i,X_)||DD(i,X_,{configurable:!0,value:t}),n&&!ND&&LD(i,"toString",FD))}});var tb=h((L6,eb)=>{"use strict";var UD=Ru().IteratorPrototype,jD=Ci(),BD=li(),JD=Pi(),HD=Fr(),$D=function(){return this};eb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=jD(UD,{next:BD(+!n,r)}),JD(e,i,!1,!0),HD[i]=$D,e}});var nb=h((q6,rb)=>{"use strict";var VD=be(),GD=Dr();rb.exports=function(e,t,r){try{return VD(GD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var ob=h((F6,ib)=>{"use strict";var zD=Ae();ib.exports=function(e){return zD(e)||e===null}});var sb=h((M6,ab)=>{"use strict";var WD=ob(),KD=String,QD=TypeError;ab.exports=function(e){if(WD(e))return e;throw new QD("Can't set "+KD(e)+" as a prototype")}});var cb=h((U6,lb)=>{"use strict";var YD=nb(),XD=Ae(),ZD=Nr(),eL=sb();lb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=YD(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return ZD(i),eL(o),XD(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var pa=h((j6,_b)=>{"use strict";var tL=Z(),rL=St(),ua=en(),gb=yu(),nL=Le(),iL=tb(),ub=Tu(),db=cb(),oL=Pi(),aL=Lr(),Nu=ca(),sL=Je(),pb=Fr(),yb=Ru(),lL=gb.PROPER,cL=gb.CONFIGURABLE,fb=yb.IteratorPrototype,da=yb.BUGGY_SAFARI_ITERATORS,Oi=sL("iterator"),hb="keys",Ri="values",mb="entries",vb=function(){return this};_b.exports=function(e,t,r,n,i,o,a){iL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!da&&v&&v in d)return d[v];switch(v){case hb:return function(){return new r(this,v)};case Ri:return function(){return new r(this,v)};case mb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Oi]||d["@@iterator"]||i&&d[i],p=!da&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=ub(f.call(new e)),m!==Object.prototype&&m.next&&(!ua&&ub(m)!==fb&&(db?db(m,fb):nL(m[Oi])||Nu(m,Oi,vb)),oL(m,l,!0,!0),ua&&(pb[l]=vb))),lL&&i===Ri&&u&&u.name!==Ri&&(!ua&&cL?aL(d,"name",Ri):(c=!0,p=function(){return rL(u,this)})),i)if(g={values:s(Ri),keys:o?p:s(hb),entries:s(mb)},a)for(_ in g)(da||c||!(_ in d))&&Nu(d,_,g[_]);else tL({target:t,proto:!0,forced:da||c},g);return(!ua||a)&&d[Oi]!==p&&Nu(d,Oi,p,{name:i}),pb[t]=p,g}});var fa=h((B6,bb)=>{"use strict";bb.exports=function(e,t){return{value:e,done:t}}});var ma=h((J6,xb)=>{"use strict";var uL=dr(),Du=p_(),wb=Fr(),Sb=Ur(),dL=Wt().f,pL=pa(),ha=fa(),fL=en(),hL=Qe(),Eb="Array Iterator",mL=Sb.set,vL=Sb.getterFor(Eb);xb.exports=pL(Array,"Array",function(e,t){mL(this,{type:Eb,target:uL(e),index:0,kind:t})},function(){var e=vL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ha(void 0,!0);switch(e.kind){case"keys":return ha(r,!1);case"values":return ha(t[r],!1)}return ha([r,t[r]],!1)},"values");var Ib=wb.Arguments=wb.Array;Du("keys");Du("values");Du("entries");if(!fL&&hL&&Ib.name!=="values")try{dL(Ib,"name",{value:"values"})}catch(e){}});var Lu=h(()=>{});var qu=h((V6,kb)=>{"use strict";var gL=de();kb.exports=!gL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var va=h((G6,Ab)=>{"use strict";var yL=ca();Ab.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:yL(e,n,t[n],r);return e}});var Fu=h(Tb=>{"use strict";var _L=Iu(),bL=aa(),wL=bL.concat("length","prototype");Tb.f=Object.getOwnPropertyNames||function(t){return _L(t,wL)}});var Rb=h((W6,Ob)=>{"use strict";var IL=Gt(),SL=dr(),Cb=Fu().f,EL=wi(),Pb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xL=function(e){try{return Cb(e)}catch(t){return EL(Pb)}};Ob.exports.f=function(t){return Pb&&IL(t)==="Window"?xL(t):Cb(SL(t))}});var Db=h((K6,Nb)=>{"use strict";var kL=de();Nb.exports=kL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Fb=h((Q6,qb)=>{"use strict";var AL=de(),TL=Ae(),CL=Gt(),Lb=Db(),ga=Object.isExtensible,PL=AL(function(){ga(1)});qb.exports=PL||Lb?function(t){return!TL(t)||Lb&&CL(t)==="ArrayBuffer"?!1:ga?ga(t):!0}:ga});var Ni=h((Y6,jb)=>{"use strict";var OL=Z(),RL=be(),NL=Ai(),DL=Ae(),Mu=ct(),LL=Wt().f,Mb=Fu(),qL=Rb(),Uu=Fb(),FL=Wo(),ML=qu(),Ub=!1,Qt=FL("meta"),UL=0,ju=function(e){LL(e,Qt,{value:{objectID:"O"+UL++,weakData:{}}})},jL=function(e,t){if(!DL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Mu(e,Qt)){if(!Uu(e))return"F";if(!t)return"E";ju(e)}return e[Qt].objectID},BL=function(e,t){if(!Mu(e,Qt)){if(!Uu(e))return!0;if(!t)return!1;ju(e)}return e[Qt].weakData},JL=function(e){return ML&&Ub&&Uu(e)&&!Mu(e,Qt)&&ju(e),e},HL=function(){$L.enable=function(){},Ub=!0;var e=Mb.f,t=RL([].splice),r={};r[Qt]=1,e(r).length&&(Mb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Qt){t(i,o,1);break}return i},OL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qL.f}))},$L=jb.exports={enable:HL,fastKey:jL,getWeakData:BL,onFreeze:JL};NL[Qt]=!0});var Jb=h((X6,Bb)=>{"use strict";var VL=Je(),GL=Fr(),zL=VL("iterator"),WL=Array.prototype;Bb.exports=function(e){return e!==void 0&&(GL.Array===e||WL[zL]===e)}});var Bu=h((Z6,$b)=>{"use strict";var KL=sn(),Hb=zo(),QL=Rr(),YL=Fr(),XL=Je(),ZL=XL("iterator");$b.exports=function(e){if(!QL(e))return Hb(e,ZL)||Hb(e,"@@iterator")||YL[KL(e)]}});var Gb=h((eW,Vb)=>{"use strict";var eq=St(),tq=Dr(),rq=zt(),nq=ci(),iq=Bu(),oq=TypeError;Vb.exports=function(e,t){var r=arguments.length<2?iq(e):t;if(tq(r))return rq(eq(r,e));throw new oq(nq(e)+" is not iterable")}});var ya=h((tW,Wb)=>{"use strict";var aq=St(),zb=zt(),sq=zo();Wb.exports=function(e,t,r){var n,i;zb(e);try{if(n=sq(e,"return"),!n){if(t==="throw")throw r;return r}n=aq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return zb(n),r}});var ba=h((rW,Xb)=>{"use strict";var lq=pi(),cq=St(),uq=zt(),dq=ci(),pq=Jb(),fq=an(),Kb=Ke(),hq=Gb(),mq=Bu(),Qb=ya(),vq=TypeError,_a=function(e,t){this.stopped=e,this.result=t},Yb=_a.prototype;Xb.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=lq(t,n),c,d,u,p,f,m,g,_=function(b){return c&&Qb(c,"normal",b),new _a(!0,b)},v=function(b){return i?(uq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=mq(e),!d)throw new vq(dq(e)+" is not iterable");if(pq(d)){for(u=0,p=fq(e);p>u;u++)if(f=v(e[u]),f&&Kb(Yb,f))return f;return new _a(!1)}c=hq(e,d)}for(m=o?e.next:c.next;!(g=cq(m,c)).done;){try{f=v(g.value)}catch(b){Qb(c,"throw",b)}if(typeof f=="object"&&f&&Kb(Yb,f))return f}return new _a(!1)}});var wa=h((nW,Zb)=>{"use strict";var gq=Ke(),yq=TypeError;Zb.exports=function(e,t){if(gq(t,e))return e;throw new yq("Incorrect invocation")}});var Ju=h((iW,tw)=>{"use strict";var _q=Z(),bq=pe(),wq=Ni(),Iq=de(),Sq=Lr(),Eq=ba(),xq=wa(),kq=Le(),Aq=Ae(),Tq=Rr(),Cq=Pi(),Pq=Wt().f,Oq=fr().forEach,Rq=Qe(),ew=Ur(),Nq=ew.set,Dq=ew.getterFor;tw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=bq[e],s=a&&a.prototype,l={},c;if(!Rq||!kq(a)||!(i||s.forEach&&!Iq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),wq.enable();else{c=t(function(p,f){Nq(xq(p,d),{type:e,collection:new a}),Tq(f)||Eq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Dq(e);Oq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&Sq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!Aq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||Pq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Cq(c,e,!1,!0),l[e]=c,_q({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var lw=h((oW,sw)=>{"use strict";var Lq=be(),rw=va(),Ia=Ni().getWeakData,qq=wa(),Fq=zt(),Mq=Rr(),Hu=Ae(),Uq=ba(),iw=fr(),nw=ct(),ow=Ur(),jq=ow.set,Bq=ow.getterFor,Jq=iw.find,Hq=iw.findIndex,$q=Lq([].splice),Vq=0,Sa=function(e){return e.frozen||(e.frozen=new aw)},aw=function(){this.entries=[]},$u=function(e,t){return Jq(e.entries,function(r){return r[0]===t})};aw.prototype={get:function(e){var t=$u(this,e);if(t)return t[1]},has:function(e){return!!$u(this,e)},set:function(e,t){var r=$u(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Hq(this.entries,function(r){return r[0]===e});return~t&&$q(this.entries,t,1),!!~t}};sw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){qq(l,o),jq(l,{type:t,id:Vq++,frozen:null}),Mq(c)||Uq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Bq(t),s=function(l,c,d){var u=a(l),p=Ia(Fq(c),!0);return p===!0?Sa(u).set(c,d):p[u.id]=d,l};return rw(o,{delete:function(l){var c=a(this);if(!Hu(l))return!1;var d=Ia(l);return d===!0?Sa(c).delete(l):d&&nw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Hu(c))return!1;var u=Ia(c);return u===!0?Sa(d).has(c):u&&nw(u,d.id)}}),rw(o,r?{get:function(c){var d=a(this);if(Hu(c)){var u=Ia(c);if(u===!0)return Sa(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var vw=h(()=>{"use strict";var Gq=qu(),cw=pe(),Aa=be(),uw=va(),zq=Ni(),Wq=Ju(),dw=lw(),Ea=Ae(),xa=Ur().enforce,Kq=de(),Qq=pu(),qi=Object,Yq=Array.isArray,ka=qi.isExtensible,pw=qi.isFrozen,Xq=qi.isSealed,fw=qi.freeze,Zq=qi.seal,eF=!cw.ActiveXObject&&"ActiveXObject"in cw,Di,hw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mw=Wq("WeakMap",hw,dw),dn=mw.prototype,Ta=Aa(dn.set),tF=function(){return Gq&&Kq(function(){var e=fw([]);return Ta(new mw,e,1),!pw(e)})};Qq&&(eF?(Di=dw.getConstructor(hw,"WeakMap",!0),zq.enable(),Vu=Aa(dn.delete),Li=Aa(dn.has),Gu=Aa(dn.get),uw(dn,{delete:function(e){if(Ea(e)&&!ka(e)){var t=xa(this);return t.frozen||(t.frozen=new Di),Vu(this,e)||t.frozen.delete(e)}return Vu(this,e)},has:function(t){if(Ea(t)&&!ka(t)){var r=xa(this);return r.frozen||(r.frozen=new Di),Li(this,t)||r.frozen.has(t)}return Li(this,t)},get:function(t){if(Ea(t)&&!ka(t)){var r=xa(this);return r.frozen||(r.frozen=new Di),Li(this,t)?Gu(this,t):r.frozen.get(t)}return Gu(this,t)},set:function(t,r){if(Ea(t)&&!ka(t)){var n=xa(this);n.frozen||(n.frozen=new Di),Li(this,t)?Ta(this,t,r):n.frozen.set(t,r)}else Ta(this,t,r);return this}})):tF()&&uw(dn,{set:function(t,r){var n;return Yq(t)&&(pw(t)?n=fw:Xq(t)&&(n=Zq)),Ta(this,t,r),n&&n(t),this}}));var Vu,Li,Gu});var gw=h(()=>{"use strict";vw()});var _w=h((uW,yw)=>{"use strict";ma();Lu();gw();var rF=Rt();yw.exports=rF.WeakMap});var ww=h((dW,bw)=>{"use strict";bw.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 zu=h(()=>{"use strict";ma();var nF=ww(),iF=pe(),oF=Pi(),Iw=Fr();for(Ca in nF)oF(iF[Ca],Ca),Iw[Ca]=Iw.Array;var Ca});var Ew=h((hW,Sw)=>{"use strict";var aF=_w();zu();Sw.exports=aF});var kw=h((mW,xw)=>{xw.exports=Ew()});var Tw=h(()=>{"use strict";var sF=Z(),lF=si(),cF=bu().indexOf,uF=_i(),Wu=lF([].indexOf),Aw=!!Wu&&1/Wu([1],1,-0)<0,dF=Aw||!uF("indexOf");sF({target:"Array",proto:!0,forced:dF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Aw?Wu(this,t,r)||0:cF(this,t,r)}})});var Pw=h((yW,Cw)=>{"use strict";Tw();var pF=yt();Cw.exports=pF("Array","indexOf")});var Rw=h((_W,Ow)=>{"use strict";var fF=Ke(),hF=Pw(),Ku=Array.prototype;Ow.exports=function(e){var t=e.indexOf;return e===Ku||fF(Ku,e)&&t===Ku.indexOf?hF:t}});var Dw=h((bW,Nw)=>{"use strict";var mF=Rw();Nw.exports=mF});var qw=h((wW,Lw)=>{Lw.exports=Dw()});var Fw=h(()=>{"use strict";var vF=Z(),gF=fr().map,yF=yi(),_F=yF("map");vF({target:"Array",proto:!0,forced:!_F},{map:function(t){return gF(this,t,arguments.length>1?arguments[1]:void 0)}})});var Uw=h((EW,Mw)=>{"use strict";Fw();var bF=yt();Mw.exports=bF("Array","map")});var Bw=h((xW,jw)=>{"use strict";var wF=Ke(),IF=Uw(),Qu=Array.prototype;jw.exports=function(e){var t=e.map;return e===Qu||wF(Qu,e)&&t===Qu.map?IF:t}});var Hw=h((kW,Jw)=>{"use strict";var SF=Bw();Jw.exports=SF});var Vw=h((AW,$w)=>{$w.exports=Hw()});var Gw=h(()=>{"use strict";var EF=Z(),xF=Qe(),kF=Ci();EF({target:"Object",stat:!0,sham:!xF},{create:kF})});var Ww=h((PW,zw)=>{"use strict";Gw();var AF=Rt(),TF=AF.Object;zw.exports=function(t,r){return TF.create(t,r)}});var Qw=h((OW,Kw)=>{"use strict";var CF=Ww();Kw.exports=CF});var Xw=h((RW,Yw)=>{Yw.exports=Qw()});var Yu=h((NW,Zw)=>{"use strict";var PF=Wt();Zw.exports=function(e,t,r){return PF.f(e,t,r)}});var r0=h((DW,t0)=>{"use strict";var OF=Zr(),RF=Yu(),NF=Je(),DF=Qe(),e0=NF("species");t0.exports=function(e){var t=OF(e);DF&&t&&!t[e0]&&RF(t,e0,{configurable:!0,get:function(){return this}})}});var c0=h((LW,l0)=>{"use strict";var n0=Ci(),LF=Yu(),i0=va(),qF=pi(),FF=wa(),MF=Rr(),UF=ba(),jF=pa(),Pa=fa(),BF=r0(),Fi=Qe(),o0=Ni().fastKey,s0=Ur(),a0=s0.set,Xu=s0.getterFor;l0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){FF(c,o),a0(c,{type:t,index:n0(null),first:null,last:null,size:0}),Fi||(c.size=0),MF(d)||UF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Xu(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=o0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Fi?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=o0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return i0(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=n0(null),Fi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Fi?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=qF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),i0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Fi&&LF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Xu(t),o=Xu(n);jF(e,t,function(a,s){a0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,Pa(void 0,!0)):Pa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),BF(t)}}});var u0=h(()=>{"use strict";var JF=Ju(),HF=c0();JF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},HF)});var d0=h(()=>{"use strict";u0()});var hr=h((jW,p0)=>{"use strict";var $F=ci(),VF=TypeError;p0.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 VF($F(e)+" is not a set")}});var h0=h((BW,f0)=>{"use strict";f0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var mr=h((JW,v0)=>{"use strict";var GF=Zr(),Zu=h0(),m0=GF("Set"),zF=m0.prototype;v0.exports={Set:m0,add:Zu("add",1),has:Zu("has",1),remove:Zu("delete",1),proto:zF}});var vr=h((HW,g0)=>{"use strict";var WF=St();g0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=WF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var pn=h(($W,y0)=>{"use strict";var KF=vr();y0.exports=function(e,t,r){return r?KF(e.keys(),t,!0):e.forEach(t)}});var Oa=h((VW,b0)=>{"use strict";var _0=mr(),QF=pn(),YF=_0.Set,XF=_0.add;b0.exports=function(e){var t=new YF;return QF(e,function(r){XF(t,r)}),t}});var fn=h((GW,w0)=>{"use strict";w0.exports=function(e){return e.size}});var S0=h((zW,I0)=>{"use strict";I0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var gr=h((WW,C0)=>{"use strict";var E0=Dr(),A0=zt(),x0=St(),ZF=hi(),eM=S0(),k0="Invalid size",tM=RangeError,rM=TypeError,nM=Math.max,T0=function(e,t){this.set=e,this.size=nM(t,0),this.has=E0(e.has),this.keys=E0(e.keys)};T0.prototype={getIterator:function(){return eM(A0(x0(this.keys,this.set)))},includes:function(e){return x0(this.has,this.set,e)}};C0.exports=function(e){A0(e);var t=+e.size;if(t!==t)throw new rM(k0);var r=ZF(t);if(r<0)throw new tM(k0);return new T0(e,r)}});var N0=h((KW,R0)=>{"use strict";var iM=hr(),O0=mr(),oM=Oa(),aM=fn(),sM=gr(),lM=pn(),cM=vr(),uM=O0.has,P0=O0.remove;R0.exports=function(t){var r=iM(this),n=sM(t),i=oM(r);return aM(r)<=n.size?lM(r,function(o){n.includes(o)&&P0(i,o)}):cM(n.getIterator(),function(o){uM(r,o)&&P0(i,o)}),i}});var yr=h((QW,D0)=>{"use strict";D0.exports=function(){return!1}});var L0=h(()=>{"use strict";var dM=Z(),pM=N0(),fM=yr(),hM=!fM("difference",function(e){return e.size===0});dM({target:"Set",proto:!0,real:!0,forced:hM},{difference:pM})});var M0=h((ZW,F0)=>{"use strict";var mM=hr(),ed=mr(),vM=fn(),gM=gr(),yM=pn(),_M=vr(),bM=ed.Set,q0=ed.add,wM=ed.has;F0.exports=function(t){var r=mM(this),n=gM(t),i=new bM;return vM(r)>n.size?_M(n.getIterator(),function(o){wM(r,o)&&q0(i,o)}):yM(r,function(o){n.includes(o)&&q0(i,o)}),i}});var U0=h(()=>{"use strict";var IM=Z(),SM=de(),EM=M0(),xM=yr(),kM=!xM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||SM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});IM({target:"Set",proto:!0,real:!0,forced:kM},{intersection:EM})});var B0=h((r8,j0)=>{"use strict";var AM=hr(),TM=mr().has,CM=fn(),PM=gr(),OM=pn(),RM=vr(),NM=ya();j0.exports=function(t){var r=AM(this),n=PM(t);if(CM(r)<=n.size)return OM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return RM(i,function(o){if(TM(r,o))return NM(i,"normal",!1)})!==!1}});var J0=h(()=>{"use strict";var DM=Z(),LM=B0(),qM=yr(),FM=!qM("isDisjointFrom",function(e){return!e});DM({target:"Set",proto:!0,real:!0,forced:FM},{isDisjointFrom:LM})});var $0=h((o8,H0)=>{"use strict";var MM=hr(),UM=fn(),jM=pn(),BM=gr();H0.exports=function(t){var r=MM(this),n=BM(t);return UM(r)>n.size?!1:jM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var V0=h(()=>{"use strict";var JM=Z(),HM=$0(),$M=yr(),VM=!$M("isSubsetOf",function(e){return e});JM({target:"Set",proto:!0,real:!0,forced:VM},{isSubsetOf:HM})});var z0=h((l8,G0)=>{"use strict";var GM=hr(),zM=mr().has,WM=fn(),KM=gr(),QM=vr(),YM=ya();G0.exports=function(t){var r=GM(this),n=KM(t);if(WM(r)<n.size)return!1;var i=n.getIterator();return QM(i,function(o){if(!zM(r,o))return YM(i,"normal",!1)})!==!1}});var W0=h(()=>{"use strict";var XM=Z(),ZM=z0(),eU=yr(),tU=!eU("isSupersetOf",function(e){return!e});XM({target:"Set",proto:!0,real:!0,forced:tU},{isSupersetOf:ZM})});var Q0=h((d8,K0)=>{"use strict";var rU=hr(),td=mr(),nU=Oa(),iU=gr(),oU=vr(),aU=td.add,sU=td.has,lU=td.remove;K0.exports=function(t){var r=rU(this),n=iU(t).getIterator(),i=nU(r);return oU(n,function(o){sU(r,o)?lU(i,o):aU(i,o)}),i}});var Y0=h(()=>{"use strict";var cU=Z(),uU=Q0(),dU=yr();cU({target:"Set",proto:!0,real:!0,forced:!dU("symmetricDifference")},{symmetricDifference:uU})});var Z0=h((h8,X0)=>{"use strict";var pU=hr(),fU=mr().add,hU=Oa(),mU=gr(),vU=vr();X0.exports=function(t){var r=pU(this),n=mU(t).getIterator(),i=hU(r);return vU(n,function(o){fU(i,o)}),i}});var eI=h(()=>{"use strict";var gU=Z(),yU=Z0(),_U=yr();gU({target:"Set",proto:!0,real:!0,forced:!_U("union")},{union:yU})});var Mi=h((g8,tI)=>{"use strict";var bU=sn(),wU=String;tI.exports=function(e){if(bU(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return wU(e)}});var oI=h((y8,iI)=>{"use strict";var rd=be(),IU=hi(),SU=Mi(),EU=Nr(),xU=rd("".charAt),rI=rd("".charCodeAt),kU=rd("".slice),nI=function(e){return function(t,r){var n=SU(EU(t)),i=IU(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=rI(n,i),a<55296||a>56319||i+1===o||(s=rI(n,i+1))<56320||s>57343?e?xU(n,i):a:e?kU(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};iI.exports={codeAt:nI(!1),charAt:nI(!0)}});var cI=h(()=>{"use strict";var AU=oI().charAt,TU=Mi(),sI=Ur(),CU=pa(),aI=fa(),lI="String Iterator",PU=sI.set,OU=sI.getterFor(lI);CU(String,"String",function(e){PU(this,{type:lI,string:TU(e),index:0})},function(){var t=OU(this),r=t.string,n=t.index,i;return n>=r.length?aI(void 0,!0):(i=AU(r,n),t.index+=i.length,aI(i,!1))})});var dI=h((w8,uI)=>{"use strict";ma();Lu();d0();L0();U0();J0();V0();W0();Y0();eI();cI();var RU=Rt();uI.exports=RU.Set});var fI=h((I8,pI)=>{"use strict";var NU=dI();zu();pI.exports=NU});var mI=h((S8,hI)=>{hI.exports=fI()});var gI=h(vI=>{"use strict";vI.f=Object.getOwnPropertySymbols});var wI=h((x8,bI)=>{"use strict";var yI=Qe(),DU=be(),LU=St(),qU=de(),nd=Su(),FU=gI(),MU=_c(),UU=tn(),jU=Ho(),hn=Object.assign,_I=Object.defineProperty,BU=DU([].concat);bI.exports=!hn||qU(function(){if(yI&&hn({b:1},hn(_I({},"a",{enumerable:!0,get:function(){_I(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}),hn({},e)[r]!==7||nd(hn({},t)).join("")!==n})?function(t,r){for(var n=UU(t),i=arguments.length,o=1,a=FU.f,s=MU.f;i>o;)for(var l=jU(arguments[o++]),c=a?BU(nd(l),a(l)):nd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!yI||LU(s,l,p))&&(n[p]=l[p]);return n}:hn});var SI=h(()=>{"use strict";var JU=Z(),II=wI();JU({target:"Object",stat:!0,arity:2,forced:Object.assign!==II},{assign:II})});var xI=h((T8,EI)=>{"use strict";SI();var HU=Rt();EI.exports=HU.Object.assign});var AI=h((C8,kI)=>{"use strict";var $U=xI();kI.exports=$U});var CI=h((P8,TI)=>{TI.exports=AI()});var id=h((O8,PI)=>{"use strict";PI.exports=`
|
|
20
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var NI=h((R8,RI)=>{"use strict";var VU=be(),GU=Nr(),zU=Mi(),ad=id(),OI=VU("".replace),WU=RegExp("^["+ad+"]+"),KU=RegExp("(^|[^"+ad+"])["+ad+"]+$"),od=function(e){return function(t){var r=zU(GU(t));return e&1&&(r=OI(r,WU,"")),e&2&&(r=OI(r,KU,"$1")),r}};RI.exports={start:od(1),end:od(2),trim:od(3)}});var FI=h((N8,qI)=>{"use strict";var QU=yu().PROPER,YU=de(),DI=id(),LI="\u200B\x85\u180E";qI.exports=function(e){return YU(function(){return!!DI[e]()||LI[e]()!==LI||QU&&DI[e].name!==e})}});var MI=h(()=>{"use strict";var XU=Z(),ZU=NI().trim,ej=FI();XU({target:"String",proto:!0,forced:ej("trim")},{trim:function(){return ZU(this)}})});var jI=h((q8,UI)=>{"use strict";MI();var tj=yt();UI.exports=tj("String","trim")});var JI=h((F8,BI)=>{"use strict";var rj=Ke(),nj=jI(),sd=String.prototype;BI.exports=function(e){var t=e.trim;return typeof e=="string"||e===sd||rj(sd,e)&&t===sd.trim?nj:t}});var $I=h((M8,HI)=>{"use strict";var ij=JI();HI.exports=ij});var GI=h((U8,VI)=>{VI.exports=$I()});var KI=h(()=>{"use strict";var oj=Z(),zI=mi(),aj=Vc(),sj=Ae(),WI=_u(),lj=an(),cj=dr(),uj=Qc(),dj=Je(),pj=yi(),fj=wi(),hj=pj("slice"),mj=dj("species"),ld=Array,vj=Math.max;oj({target:"Array",proto:!0,forced:!hj},{slice:function(t,r){var n=cj(this),i=lj(n),o=WI(t,i),a=WI(r===void 0?i:r,i),s,l,c;if(zI(n)&&(s=n.constructor,aj(s)&&(s===ld||zI(s.prototype))?s=void 0:sj(s)&&(s=s[mj],s===null&&(s=void 0)),s===ld||s===void 0))return fj(n,o,a);for(l=new(s===void 0?ld:s)(vj(a-o,0)),c=0;o<a;o++,c++)o in n&&uj(l,c,n[o]);return l.length=c,l}})});var YI=h((J8,QI)=>{"use strict";KI();var gj=yt();QI.exports=gj("Array","slice")});var ZI=h((H8,XI)=>{"use strict";var yj=Ke(),_j=YI(),cd=Array.prototype;XI.exports=function(e){var t=e.slice;return e===cd||yj(cd,e)&&t===cd.slice?_j:t}});var tS=h(($8,eS)=>{"use strict";var bj=ZI();eS.exports=bj});var nS=h((V8,rS)=>{rS.exports=tS()});var ud=k(()=>{});var oS=h((z8,iS)=>{"use strict";var wj=Ae(),Ij=Gt(),Sj=Je(),Ej=Sj("match");iS.exports=function(e){var t;return wj(e)&&((t=e[Ej])!==void 0?!!t:Ij(e)==="RegExp")}});var sS=h((W8,aS)=>{"use strict";var xj=oS(),kj=TypeError;aS.exports=function(e){if(xj(e))throw new kj("The method doesn't accept regular expressions");return e}});var cS=h((K8,lS)=>{"use strict";var Aj=Je(),Tj=Aj("match");lS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Tj]=!1,"/./"[e](t)}catch(n){}}return!1}});var pS=h(()=>{"use strict";var Cj=Z(),Pj=si(),Oj=qc().f,Rj=Jc(),uS=Mi(),Nj=sS(),Dj=Nr(),Lj=cS(),qj=en(),Fj=Pj("".slice),Mj=Math.min,dS=Lj("startsWith"),Uj=!qj&&!dS&&!!function(){var e=Oj(String.prototype,"startsWith");return e&&!e.writable}();Cj({target:"String",proto:!0,forced:!Uj&&!dS},{startsWith:function(t){var r=uS(Dj(this));Nj(t);var n=Rj(Mj(arguments.length>1?arguments[1]:void 0,r.length)),i=uS(t);return Fj(r,n,n+i.length)===i}})});var hS=h((X8,fS)=>{"use strict";pS();var jj=yt();fS.exports=jj("String","startsWith")});var vS=h((Z8,mS)=>{"use strict";var Bj=Ke(),Jj=hS(),dd=String.prototype;mS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===dd||Bj(dd,e)&&t===dd.startsWith?Jj:t}});var yS=h((e7,gS)=>{"use strict";var Hj=vS();gS.exports=Hj});var bS=h((t7,_S)=>{_S.exports=yS()});var xS=h((r7,ES)=>{"use strict";var IS=be(),$j=Dr(),Vj=Ae(),Gj=ct(),wS=wi(),zj=Xr(),SS=Function,Wj=IS([].concat),Kj=IS([].join),pd={},Qj=function(e,t,r){if(!Gj(pd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";pd[t]=SS("C,a","return new C("+Kj(n,",")+")")}return pd[t](e,r)};ES.exports=zj?SS.bind:function(t){var r=$j(this),n=r.prototype,i=wS(arguments,1),o=function(){var s=Wj(i,wS(arguments));return this instanceof o?Qj(r,s.length,s):r.apply(t,s)};return Vj(n)&&(o.prototype=n),o}});var AS=h(()=>{"use strict";var Yj=Z(),kS=xS();Yj({target:"Function",proto:!0,forced:Function.bind!==kS},{bind:kS})});var CS=h((o7,TS)=>{"use strict";AS();var Xj=yt();TS.exports=Xj("Function","bind")});var OS=h((a7,PS)=>{"use strict";var Zj=Ke(),e2=CS(),fd=Function.prototype;PS.exports=function(e){var t=e.bind;return e===fd||Zj(fd,e)&&t===fd.bind?e2:t}});var NS=h((s7,RS)=>{"use strict";var t2=OS();RS.exports=t2});var LS=h((l7,DS)=>{DS.exports=NS()});function Ya(e,t){we.__h&&we.__h(ce,e,Vi||t),Vi=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ut(e){return Vi=1,r2(SE,e)}function r2(e,t,r){var n=Ya(_n++,2);if(n.t=e,!n.__c&&(n.__=[SE(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Dd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,yE.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Br(e,t){var r=Ya(_n++,3);!we.__s&&IE(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Bi(e){return Vi=5,Ud(function(){return{current:e}},[])}function Ud(e,t){var r=Ya(_n++,7);return IE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function _t(e,t){return Vi=8,Ud(function(){return e},t)}function n2(e){var t=ce.context[e.__c],r=Ya(_n++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function i2(){for(var e;e=wE.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,qa),(0,Te.default)(r=e.__H.__h).call(r,Id),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function o2(e){var t,r=function(){clearTimeout(n),HS&&cancelAnimationFrame(t),(0,Mt.default)(e)},n=(0,Mt.default)(r,100);HS&&(t=requestAnimationFrame(r))}function qa(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Id(e){var t=ce;e.__c=e.__(),ce=t}function IE(e,t){return!e||e.length!==t.length||(0,$a.default)(t).call(t,function(r,n){return r!==e[n]})}function SE(e,t){return typeof t=="function"?t(e):t}function a2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sd(){throw new Error("setTimeout has not been defined")}function Ed(){throw new Error("clearTimeout has not been defined")}function xE(e){if(Nt===Mt.default)return(0,Mt.default)(e,0);if((Nt===Sd||!Nt)&&Mt.default)return Nt=Mt.default,(0,Mt.default)(e,0);try{return Nt(e,0)}catch(t){try{return Nt.call(null,e,0)}catch(r){return Nt.call(this,e,0)}}}function s2(e){if(Dt===clearTimeout)return clearTimeout(e);if((Dt===Ed||!Dt)&&clearTimeout)return Dt=clearTimeout,clearTimeout(e);try{return Dt(e)}catch(t){try{return Dt.call(null,e)}catch(r){return Dt.call(this,e)}}}function l2(){!vn||!_r||(vn=!1,_r.length?Yt=(0,Qa.default)(_r).call(_r,Yt):Fa=-1,Yt.length&&kE())}function kE(){if(!vn){var e=xE(l2);vn=!0;for(var t=Yt.length;t;){for(_r=Yt,Yt=[];++Fa<t;)_r&&_r[Fa].run();Fa=-1,t=Yt.length}_r=null,vn=!1,s2(e)}}function AE(e,t){this.fun=e,this.array=t}function Zt(){}function d2(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 p2(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 v2(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function PE(e){return(0,Fd.default)(e).call(e)}function g2(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function xd(e,t){return(0,Xt.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function Gi(e,t,r){return(0,Md.default)(e).call(e,t,r)}function Lt(e){return e.length}function Hd(e){return e.length}function Ra(e,t){return t.push(e),e}function y2(e,t){return(0,$i.default)(e).call(e,t).join("")}function es(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Za,column:bn,length:a,return:""}}function Ui(e,t){return m2(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function _2(){return Ie}function b2(){return Ie=et>0?qe(In,--et):0,bn--,Ie===10&&(bn=1,Za--),Ie}function ut(){return Ie=et<OE?qe(In,et++):0,bn++,Ie===10&&(bn=1,Za++),Ie}function jt(){return qe(In,et)}function Ma(){return et}function Xi(e,t){return Gi(In,e,t)}function zi(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 RE(e){return Za=bn=1,OE=Lt(In=e),et=0,[]}function NE(e){return In="",e}function Ua(e){return PE(Xi(et-1,kd(e===91?e+2:e===40?e+1:e)))}function w2(e){for(;(Ie=jt())&&Ie<33;)ut();return zi(e)>2||zi(Ie)>3?"":" "}function I2(e,t){for(;--t&&ut()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Xi(e,Ma()+(t<6&&jt()==32&&ut()==32))}function kd(e){for(;ut();)switch(Ie){case e:return et;case 34:case 39:e!==34&&e!==39&&kd(Ie);break;case 40:e===41&&kd(e);break;case 92:ut();break}return et}function S2(e,t){for(;ut()&&e+Ie!==57&&!(e+Ie===84&&jt()===47););return"/*"+Xi(t,et-1)+"*"+Xa(e===47?e:ut())}function E2(e){for(;!zi(jt());)ut();return Xi(e,et)}function x2(e){return NE(ja("",null,null,null,[""],e=RE(e),0,[0],e))}function ja(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,x=I;_;)switch(m=b,b=ut()){case 40:if(m!=108&&qe(x,u-1)==58){xd(x+=Q(Ua(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Ua(b);break;case 9:case 10:case 13:case 32:x+=w2(m);break;case 92:x+=I2(Ma()-1,7);continue;case 47:switch(jt()){case 42:case 47:Ra(k2(S2(ut(),Ma()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Lt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&Lt(x)-u&&Ra(f>32?VS(x+";",n,r,u-1):VS(Q(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Ra(O=$S(x,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)ja(x,t,O,O,A,o,u,s,C);else switch(p===99&&qe(x,3)===110?100:p){case 100:case 109:case 115:ja(e,O,O,n&&Ra($S(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:ja(x,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Lt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&b2()==125)continue}switch(x+=Xa(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Lt(x)-1)*v,v=1;break;case 64:jt()===45&&(x+=Ua(ut())),p=jt(),d=u=Lt(I=x+=E2(Ma())),b++;break;case 45:m===45&&Lt(x)==2&&(g=0)}}return o}function $S(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Hd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Gi(e,u+1,u=h2(g=a[m])),I=e;v<f;++v)(I=PE(g>0?p[v]+" "+b:Q(b,/&\f/g,p[v])))&&(l[_++]=I);return es(e,t,r,i===0?Bd:s,l,c,d)}function k2(e,t,r){return es(e,t,r,jd,Xa(_2()),Gi(e,2,-2),0)}function VS(e,t,r,n){return es(e,t,r,Jd,Gi(e,0,n),Gi(e,n+1,-1),n)}function gn(e,t){for(var r="",n=Hd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function A2(e,t,r,n){switch(e.type){case f2:case Jd:return e.return=e.return||e.value;case jd:return"";case CE:return e.return=e.value+"{"+gn(e.children,n)+"}";case Bd:e.value=e.props.join(",")}return Lt(r=gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function T2(e){var t=Hd(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 C2(e){return function(t){t.root||(t=t.return)&&e(t)}}function LE(e,t){switch(v2(e,t)){case 5103:return H+"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 H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Ga+e+He+e+e;case 6828:case 4268:return H+e+He+e+e;case 6165:return H+e+He+"flex-"+e+e;case 5187:return H+e+Q(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return H+e+He+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return H+e+He+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+He+Q(e,"shrink","negative")+e;case 5292:return H+e+He+Q(e,"basis","preferred-size")+e;case 6060:return H+"box-"+Q(e,"-grow","")+H+e+He+Q(e,"grow","positive")+e;case 4554:return H+Q(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,H+"$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(Lt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Ga+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xd(e,"stretch")?LE(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Lt(e)-3-(~xd(e,"!important")&&10))){case 107:return Q(e,":",":"+H)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(qe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return H+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+He+e+e}return e}function FE(){if(WS)return Na.exports;WS=1;let e=FE();return Na.exports={default:e},Na.exports.default=e,Na.exports}function Wi(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function H2(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 V2(e){var t=(0,_E.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ki(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 W2(e,t,r)}case"function":{if(e!==void 0){var l=qt,c=r(e);return qt=l,Ki(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function W2(e,t,r){var n="";if((0,Hi.default)(r))for(var i=0;i<r.length;i++)n+=Ki(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]+"}":KS(s)&&(n+=md(o)+":"+QS(o,s)+";")}else if((0,Hi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)KS(a[l])&&(n+=md(o)+":"+QS(o,a[l])+";");else{var c=Ki(e,t,a);switch(o){case"animation":case"animationName":{n+=md(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function br(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+=Ki(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ki(r,t,e[s]),n){var l=o;i+=l[s]}YS.lastIndex=0;for(var c="",d;(d=YS.exec(i))!==null;)c+="-"+d[1];var u=H2(i)+c;return{name:u,styles:i,next:qt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return br(t)}function oB(e,t,r){var n=[],i=Wi(e,n,r);return n.length<2?r:i+t(n)}function y(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--lB,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function Zi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Ut(e());return Br(()=>{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 lJ(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 WE(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=lJ(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function cJ(e){let t=()=>WE(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function pJ(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=dJ(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Be("img",j(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",j(T({},a),{ref:c,className:i,children:r}))}function fJ(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?Be(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?Be(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 yJ(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 cE(e,t,r){return rs.call(t,"css")?y(zd,JE(e,t),r):y(e,t,r)}function EJ(e,t,r){return rs.call(t,"css")?y(zd,JE(e,t),r):y(e,t,r)}function Od({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("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?y(De,{children:t[s]},o):null}return y(De,{children:i},o)})})}function AJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Ut(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function PJ({children:e,style:t}){return y("div",{style:`${TJ.styles} ${t}`,children:[e,y("svg",{style:`${CJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function $J(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function sx(e){return(0,Fd.default)(e).call(e)}function VJ(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function Rd(e,t){return(0,Xt.default)(e).call(e,t)}function Fe(e,t){return e.charCodeAt(t)|0}function Qi(e,t,r){return(0,Md.default)(e).call(e,t,r)}function Ft(e){return e.length}function Yd(e){return e.length}function La(e,t){return t.push(e),e}function GJ(e,t){return(0,$i.default)(e).call(e,t).join("")}function ss(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:as,column:wn,length:a,return:""}}function ji(e,t){return HJ(ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function zJ(){return Se}function WJ(){return Se=tt>0?Fe(xn,--tt):0,wn--,Se===10&&(wn=1,as--),Se}function dt(){return Se=tt<lx?Fe(xn,tt++):0,wn++,Se===10&&(wn=1,as++),Se}function Bt(){return Fe(xn,tt)}function Ba(){return tt}function to(e,t){return Qi(xn,e,t)}function Yi(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 cx(e){return as=wn=1,lx=Ft(xn=e),tt=0,[]}function ux(e){return xn="",e}function Ja(e){return sx(to(tt-1,Nd(e===91?e+2:e===40?e+1:e)))}function KJ(e){for(;(Se=Bt())&&Se<33;)dt();return Yi(e)>2||Yi(Se)>3?"":" "}function QJ(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return to(e,Ba()+(t<6&&Bt()==32&&dt()==32))}function Nd(e){for(;dt();)switch(Se){case e:return tt;case 34:case 39:e!==34&&e!==39&&Nd(Se);break;case 40:e===41&&Nd(e);break;case 92:dt();break}return tt}function YJ(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Bt()===47););return"/*"+to(t,tt-1)+"*"+os(e===47?e:dt())}function XJ(e){for(;!Yi(Bt());)dt();return to(e,tt)}function ZJ(e){return ux(Ha("",null,null,null,[""],e=cx(e),0,[0],e))}function Ha(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,x=I;_;)switch(m=b,b=dt()){case 40:if(m!=108&&Fe(x,u-1)==58){Rd(x+=V(Ja(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Ja(b);break;case 9:case 10:case 13:case 32:x+=KJ(m);break;case 92:x+=QJ(Ba()-1,7);continue;case 47:switch(Bt()){case 42:case 47:La(e5(YJ(dt(),Ba()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Ft(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=V(x,/\f/g,"")),f>0&&Ft(x)-u&&La(f>32?dE(x+";",n,r,u-1):dE(V(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(La(O=uE(x,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)Ha(x,t,O,O,A,o,u,s,C);else switch(p===99&&Fe(x,3)===110?100:p){case 100:case 108:case 109:case 115:Ha(e,O,O,n&&La(uE(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:Ha(x,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Ft(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&WJ()==125)continue}switch(x+=os(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Ft(x)-1)*v,v=1;break;case 64:Bt()===45&&(x+=Ja(dt())),p=Bt(),d=u=Ft(I=x+=XJ(Ba())),b++;break;case 45:m===45&&Ft(x)==2&&(g=0)}}return o}function uE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Yd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Qi(e,u+1,u=JJ(g=a[m])),I=e;v<f;++v)(I=sx(g>0?p[v]+" "+b:V(b,/&\f/g,p[v])))&&(l[_++]=I);return ss(e,t,r,i===0?Kd:s,l,c,d)}function e5(e,t,r){return ss(e,t,r,ox,os(zJ()),Qi(e,2,-2),0)}function dE(e,t,r,n){return ss(e,t,r,Qd,Qi(e,0,n),Qi(e,n+1,-1),n)}function yn(e,t){for(var r="",n=Yd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function t5(e,t,r,n){switch(e.type){case BJ:if(e.children.length)break;case jJ:case Qd:return e.return=e.return||e.value;case ox:return"";case ax:return e.return=e.value+"{"+yn(e.children,n)+"}";case Kd:e.value=e.props.join(",")}return Ft(r=yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function r5(e){var t=Yd(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 n5(e){return function(t){t.root||(t=t.return)&&e(t)}}function dx(e,t){switch($J(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+Ka+e+$e+e+e;case 6828:case 4268:return $+e+$e+e+e;case 6165:return $+e+$e+"flex-"+e+e;case 5187:return $+e+V(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return $+e+$e+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return $+e+$e+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+$e+V(e,"shrink","negative")+e;case 5292:return $+e+$e+V(e,"basis","preferred-size")+e;case 6060:return $+"box-"+V(e,"-grow","")+$+e+$e+V(e,"grow","positive")+e;case 4554:return $+V(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+Ka+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rd(e,"stretch")?dx(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Ft(e)-3-(~Rd(e,"!important")&&10))){case 107:return V(e,":",":"+$)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Fe(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return $+e+$e+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+$e+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+$e+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+$e+e+e}return e}function fE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function bd(e,t,r){var n=[],i=Wi(e,n,r);return n.length<2?r:i+t(n)}function vE(e){if(e==="top"){let t=0;px.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${hE}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${hE}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+mE)})}else if(e==="center"){let t=0;fx.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+mE)})}}function ro(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Ji.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),ur(y(b5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Ji.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(ur(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Ji.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Dd,yE,Te,Qa,$a,Mt,Va,Hi,Ld,Xt,$i,_E,bE,qd,Fd,Md,f7,wd,_n,ce,hd,qS,Vi,wE,we,FS,MS,US,jS,BS,JS,HS,EE,ve,Nt,Dt,Yt,vn,_r,Fa,c2,Ce,u2,TE,He,Ga,H,jd,Bd,Jd,f2,CE,h2,Xa,m2,Za,bn,OE,et,Ie,In,P2,O2,R2,GS,N2,D2,L2,q2,F2,DE,M2,zS,U2,j2,B2,qE,Na,WS,J2,$d,ts,$2,G2,z2,ME,KS,md,QS,YS,qt,K2,UE,jE,XS,rs,Vd,BE,Gd,ns,Q2,Y2,X2,Z2,eB,Ad,Td,JE,tB,zd,rB,ZS,nB,iB,aB,sB,vd,eE,gd,yd,lB,_d,cB,uB,dB,pB,fB,hB,tE,mB,vB,rE,gB,yB,nE,_B,bB,iE,wB,IB,SB,EB,xB,kB,AB,TB,oE,CB,PB,OB,RB,NB,DB,LB,qB,aE,FB,MB,UB,jB,BB,JB,HB,$B,VB,GB,zB,WB,KB,QB,YB,XB,ZB,eJ,tJ,rJ,nJ,iJ,oJ,aJ,HE,$E,VE,Cd,sJ,GE,zE,za,Ji,sE,uJ,is,dJ,KE,QE,YE,hJ,mJ,vJ,Pd,gJ,XE,Wa,eo,Sn,lE,jr,ZE,mn,_J,bJ,wJ,IJ,SJ,Da,ex,Wd,fe,xJ,kJ,TJ,CJ,kt,OJ,RJ,tx,rx,nx,ix,En,NJ,DJ,LJ,qJ,FJ,MJ,UJ,$e,Ka,$,ox,Kd,Qd,jJ,ax,BJ,JJ,os,HJ,as,wn,lx,tt,Se,xn,i5,o5,a5,pE,s5,l5,c5,u5,d5,p5,f5,h5,m5,v5,g5,y5,hE,mE,px,fx,Jr,gE,_5,b5,h7,er=k(()=>{"use strict";Yr();Dd=ie(lg(),1),yE=ie(yg(),1),Te=ie(Og(),1),Qa=ie(Gg(),1),$a=ie(ty(),1),Mt=ie(_y(),1);ra();ra();Va=ie(n_(),1),Hi=ie(u_(),1),Ld=ie(kw(),1),Xt=ie(qw(),1),$i=ie(Vw(),1),_E=ie(Xw(),1),bE=ie(mI(),1),qd=ie(CI(),1),Fd=ie(GI(),1),Md=ie(nS(),1);ud();ud();f7=ie(bS(),1),wd=ie(LS(),1),Vi=0,wE=[],we=R,FS=we.__b,MS=we.__r,US=we.diffed,jS=we.__c,BS=we.unmount,JS=we.__;we.__b=function(e){ce=null,FS&&FS(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),JS&&JS(e,t)},we.__r=function(e){var t,r,n;MS&&MS(e),_n=0;var i=(ce=e.__c).__H;i&&(hd===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,qa),(0,Te.default)(n=i.__h).call(n,Id),i.__h=[],_n=0)),hd=ce},we.diffed=function(e){var t;US&&US(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(wE.push(r)!==1&&qS===we.requestAnimationFrame||((qS=we.requestAnimationFrame)||o2)(i2)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),hd=ce=null},we.__c=function(e,t){(0,$a.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,qa),r.__h=(0,Dd.default)(i=r.__h).call(i,function(o){return!o.__||Id(o)})}catch(o){(0,$a.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),jS&&jS(e,t)},we.unmount=function(e){var t;BS&&BS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{qa(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};HS=typeof requestAnimationFrame=="function";EE={exports:{}},ve=EE.exports={};(function(){try{typeof Mt.default=="function"?Nt=Mt.default:Nt=Sd}catch(e){Nt=Sd}try{typeof clearTimeout=="function"?Dt=clearTimeout:Dt=Ed}catch(e){Dt=Ed}})();Yt=[],vn=!1,Fa=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Yt.push(new AE(e,t)),Yt.length===1&&!vn&&xE(kE)};AE.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=Zt;ve.addListener=Zt;ve.once=Zt;ve.off=Zt;ve.removeListener=Zt;ve.removeAllListeners=Zt;ve.emit=Zt;ve.prependListener=Zt;ve.prependOnceListener=Zt;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};c2=EE.exports,Ce=a2(c2),u2=Va.default||void 0||self;TE=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(p2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=d2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),He="-ms-",Ga="-moz-",H="-webkit-",jd="comm",Bd="rule",Jd="decl",f2="@import",CE="@keyframes",h2=Math.abs,Xa=String.fromCharCode,m2=qd.default;Za=1,bn=1,OE=0,et=0,Ie=0,In="";P2=function(e,t,r){for(var n=0,i=0;n=i,i=jt(),n===38&&i===12&&(t[r]=1),!zi(i);)ut();return Xi(e,et)},O2=function(e,t){var r=-1,n=44;do switch(zi(n)){case 0:n===38&&jt()===12&&(t[r]=1),e[r]+=P2(et-1,t,r);break;case 2:e[r]+=Ua(n);break;case 4:if(n===44){e[++r]=jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Xa(n)}while(n=ut());return e},R2=function(e,t){return NE(O2(RE(e),t))},GS=new Ld.default,N2=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&&!GS.get(r))&&!n){GS.set(e,!0);for(var i=[],o=R2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},D2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},L2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",q2=function(e){var t;return e.type==="comm"&&(0,Xt.default)(t=e.children).call(t,L2)>-1},F2=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(q2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},DE=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},M2=function(e,t){for(var r=e-1;r>=0;r--)if(!DE(t[r]))return!0;return!1},zS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},U2=function(e,t,r){DE(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."),zS(e)):M2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),zS(e)))};j2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jd:e.return=LE(e.value,e.length);break;case CE:return gn([Ui(e,{value:Q(e.value,"@","@"+H)})],n);case Bd:if(e.length)return y2(e.props,function(i){switch(g2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gn([Ui(e,{props:[Q(i,/:(read-\w+)/,":"+Ga+"$1")]})],n);case"::placeholder":return gn([Ui(e,{props:[Q(i,/:(plac\w+)/,":"+H+"input-$1")]}),Ui(e,{props:[Q(i,/:(plac\w+)/,":"+Ga+"$1")]}),Ui(e,{props:[Q(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},B2=[j2],qE=function(e){var t=e.key;if(Ce.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.
|
|
21
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,
|
|
22
|
-
`),r=0;r<t.length;r++){var n=
|
|
19
|
+
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Gh=x(()=>{"use strict";G()});var Hh=x(()=>{"use strict"});var $h=x(()=>{"use strict";N();ic()});var Vh=x(()=>{"use strict";G()});var Vo,mc=x(()=>{"use strict";Hh();$h();G();Vh();N();Vo=new Nt});function Wt(e,t){for(var r in t)e[r]=t[r];return e}function wc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Yo.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 Wo(e,a,n,i,null)}function Wo(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?++Yh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function on(e,t){if(t==null)return e.__?on(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"?on(e):null}function rm(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 rm(e)}}function yc(e){(!e.__d&&(e.__d=!0)&&Lr.push(e)&&!Ko.__r++||zh!==R.debounceRendering)&&((zh=R.debounceRendering)||Qh)(Ko)}function Ko(){for(var e,t,r,n,i,o,a,s=1;Lr.length;)Lr.length>s&&Lr.sort(Xh),e=Lr.shift(),s=Lr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Wt({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),Ic(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?on(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,om(o,r,a),r.__e!=i&&rm(r)));Ko.__r=0}function nm(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||tm,b=t.length;for(l=c1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?hi:v[f.__i]||hi,f.__i=u,y=Ic(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ec(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=im(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function c1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Wo(null,a,null,null,null):mi(a)?Wo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Wo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=u1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=on(s)),sm(s,s));return n}function im(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=im(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=on(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function gi(e,t){return t=t||[],e==null||typeof e=="boolean"||(mi(e)?e.some(function(r){gi(r,t)}):t.push(e)),t}function u1(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Wh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||l1.test(t)?r:r+"px"}function zo(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||Wh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Zh,"$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=bc,e.addEventListener(t,o?gc:vc,o)):e.removeEventListener(t,o?gc:vc,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 Kh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=bc++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function Ic(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,b,k,A,P,C,S,T,j,Ke,q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof q=="function")try{if(v=t.props,b="prototype"in q&&q.prototype.render,k=(d=q.contextType)&&n[d.__c],A=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new q(v,A):(t.__c=u=new ct(v,A),u.constructor=q,u.render=p1),k&&k.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Wt({},u.__s)),Wt(u.__s,q.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&q.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,C=R.__r,S=0,b){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);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&&++S<25);u.state=u.__s,u.getChildContext!=null&&(n=Wt(Wt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),j=d,d!=null&&d.type===De&&d.key==null&&(j=am(d.props.children)),s=nm(e,mi(j)?j:[j],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)wc(o[Ke]);else t.__e=r.__e,t.__k=r.__k;R.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=d1(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function om(e,t,r){for(var n=0;n<r.length;n++)Ec(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function am(e){return typeof e!="object"||e==null?e:mi(e)?e.map(am):Wt({},e)}function d1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Yo.call(e.childNodes),y=r.props||hi,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;zo(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||zo(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),nm(t.type==="template"?e.content:e,mi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&on(r,0),s,l),o!=null)for(c=o.length;c--;)wc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==y[c])&&zo(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&zo(e,c,g,y[c],i))}return e}function Ec(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){R.__e(i,r)}}function sm(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ec(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&sm(n[i],t,r||typeof e.type!="function");r||wc(e.__e),e.__c=e.__=e.__e=void 0}function p1(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ic(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||hi,hi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Yo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),om(o,e,a)}function qr(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,yc(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"+em++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Yo,R,Yh,_c,Lr,zh,Qh,Xh,Zh,bc,vc,gc,em,hi,tm,l1,mi,an=x(()=>{hi={},tm=[],l1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mi=Array.isArray;Yo=tm.slice,R={__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}},Yh=0,_c=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Wt({},this.state),typeof e=="function"&&(e=e(Wt({},r),this.props)),e&&Wt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),yc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),yc(this))},ct.prototype.render=De,Lr=[],Qh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xh=function(e,t){return e.__v.__b-t.__v.__b},Ko.__r=0,Zh=/(PointerCapture)$|Capture$/i,bc=0,vc=Kh(!1),gc=Kh(!0),em=0});var pe=h((cV,lm)=>{"use strict";lm.exports=function(e){try{return!!e()}catch(t){return!0}}});var sn=h((uV,cm)=>{"use strict";var f1=pe();cm.exports=!f1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((dV,pm)=>{"use strict";var um=sn(),dm=Function.prototype,kc=dm.call,h1=um&&dm.bind.bind(kc,kc);pm.exports=um?h1:function(e){return function(){return kc.apply(e,arguments)}}});var Ye=h((pV,fm)=>{"use strict";var m1=be();fm.exports=m1({}.isPrototypeOf)});var fe=h((Sc,hm)=>{"use strict";var yi=function(e){return e&&e.Math===Math&&e};hm.exports=yi(typeof globalThis=="object"&&globalThis)||yi(typeof window=="object"&&window)||yi(typeof self=="object"&&self)||yi(typeof global=="object"&&global)||yi(typeof Sc=="object"&&Sc)||function(){return this}()||Function("return this")()});var xc=h((fV,ym)=>{"use strict";var v1=sn(),gm=Function.prototype,mm=gm.apply,vm=gm.call;ym.exports=typeof Reflect=="object"&&Reflect.apply||(v1?vm.bind(mm):function(){return vm.apply(mm,arguments)})});var Kt=h((hV,bm)=>{"use strict";var _m=be(),g1=_m({}.toString),y1=_m("".slice);bm.exports=function(e){return y1(g1(e),8,-1)}});var _i=h((mV,wm)=>{"use strict";var _1=Kt(),b1=be();wm.exports=function(e){if(_1(e)==="Function")return b1(e)}});var Le=h((vV,Im)=>{"use strict";var Ac=typeof document=="object"&&document.all;Im.exports=typeof Ac=="undefined"&&Ac!==void 0?function(e){return typeof e=="function"||e===Ac}:function(e){return typeof e=="function"}});var Qe=h((gV,Em)=>{"use strict";var w1=pe();Em.exports=!w1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=h((yV,km)=>{"use strict";var I1=sn(),Qo=Function.prototype.call;km.exports=I1?Qo.bind(Qo):function(){return Qo.apply(Qo,arguments)}});var Cc=h(Am=>{"use strict";var Sm={}.propertyIsEnumerable,xm=Object.getOwnPropertyDescriptor,E1=xm&&!Sm.call({1:2},1);Am.f=E1?function(t){var r=xm(this,t);return!!r&&r.enumerable}:Sm});var bi=h((bV,Cm)=>{"use strict";Cm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Xo=h((wV,Tm)=>{"use strict";var k1=be(),S1=pe(),x1=Kt(),Tc=Object,A1=k1("".split);Tm.exports=S1(function(){return!Tc("z").propertyIsEnumerable(0)})?function(e){return x1(e)==="String"?A1(e,""):Tc(e)}:Tc});var Mr=h((IV,Om)=>{"use strict";Om.exports=function(e){return e==null}});var Ur=h((EV,Pm)=>{"use strict";var C1=Mr(),T1=TypeError;Pm.exports=function(e){if(C1(e))throw new T1("Can't call method on "+e);return e}});var vr=h((kV,Rm)=>{"use strict";var O1=Xo(),P1=Ur();Rm.exports=function(e){return O1(P1(e))}});var Ce=h((SV,Nm)=>{"use strict";var R1=Le();Nm.exports=function(e){return typeof e=="object"?e!==null:R1(e)}});var Dt=h((xV,Dm)=>{"use strict";Dm.exports={}});var ln=h((AV,qm)=>{"use strict";var Oc=Dt(),Pc=fe(),N1=Le(),Lm=function(e){return N1(e)?e:void 0};qm.exports=function(e,t){return arguments.length<2?Lm(Oc[e])||Lm(Pc[e]):Oc[e]&&Oc[e][t]||Pc[e]&&Pc[e][t]}});var Zo=h((CV,Fm)=>{"use strict";var D1=fe(),Mm=D1.navigator,Um=Mm&&Mm.userAgent;Fm.exports=Um?String(Um):""});var ta=h((TV,$m)=>{"use strict";var Hm=fe(),Rc=Zo(),jm=Hm.process,Jm=Hm.Deno,Bm=jm&&jm.versions||Jm&&Jm.version,Gm=Bm&&Bm.v8,kt,ea;Gm&&(kt=Gm.split("."),ea=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!ea&&Rc&&(kt=Rc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Rc.match(/Chrome\/(\d+)/),kt&&(ea=+kt[1])));$m.exports=ea});var Nc=h((OV,zm)=>{"use strict";var Vm=ta(),L1=pe(),q1=fe(),M1=q1.String;zm.exports=!!Object.getOwnPropertySymbols&&!L1(function(){var e=Symbol("symbol detection");return!M1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vm&&Vm<41})});var Dc=h((PV,Wm)=>{"use strict";var U1=Nc();Wm.exports=U1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Lc=h((RV,Km)=>{"use strict";var F1=ln(),j1=Le(),J1=Ye(),B1=Dc(),G1=Object;Km.exports=B1?function(e){return typeof e=="symbol"}:function(e){var t=F1("Symbol");return j1(t)&&J1(t.prototype,G1(e))}});var wi=h((NV,Ym)=>{"use strict";var H1=String;Ym.exports=function(e){try{return H1(e)}catch(t){return"Object"}}});var Fr=h((DV,Qm)=>{"use strict";var $1=Le(),V1=wi(),z1=TypeError;Qm.exports=function(e){if($1(e))return e;throw new z1(V1(e)+" is not a function")}});var ra=h((LV,Xm)=>{"use strict";var W1=Fr(),K1=Mr();Xm.exports=function(e,t){var r=e[t];return K1(r)?void 0:W1(r)}});var ev=h((qV,Zm)=>{"use strict";var qc=Et(),Mc=Le(),Uc=Ce(),Y1=TypeError;Zm.exports=function(e,t){var r,n;if(t==="string"&&Mc(r=e.toString)&&!Uc(n=qc(r,e))||Mc(r=e.valueOf)&&!Uc(n=qc(r,e))||t!=="string"&&Mc(r=e.toString)&&!Uc(n=qc(r,e)))return n;throw new Y1("Can't convert object to primitive value")}});var cn=h((MV,tv)=>{"use strict";tv.exports=!0});var iv=h((UV,nv)=>{"use strict";var rv=fe(),Q1=Object.defineProperty;nv.exports=function(e,t){try{Q1(rv,e,{value:t,configurable:!0,writable:!0})}catch(r){rv[e]=t}return t}});var Ii=h((FV,sv)=>{"use strict";var X1=cn(),Z1=fe(),eO=iv(),ov="__core-js_shared__",av=sv.exports=Z1[ov]||eO(ov,{});(av.versions||(av.versions=[])).push({version:"3.41.0",mode:X1?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Fc=h((jV,cv)=>{"use strict";var lv=Ii();cv.exports=function(e,t){return lv[e]||(lv[e]=t||{})}});var un=h((JV,uv)=>{"use strict";var tO=Ur(),rO=Object;uv.exports=function(e){return rO(tO(e))}});var ut=h((BV,dv)=>{"use strict";var nO=be(),iO=un(),oO=nO({}.hasOwnProperty);dv.exports=Object.hasOwn||function(t,r){return oO(iO(t),r)}});var na=h((GV,pv)=>{"use strict";var aO=be(),sO=0,lO=Math.random(),cO=aO(1 .toString);pv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+cO(++sO+lO,36)}});var Be=h((HV,hv)=>{"use strict";var uO=fe(),dO=Fc(),fv=ut(),pO=na(),fO=Nc(),hO=Dc(),dn=uO.Symbol,jc=dO("wks"),mO=hO?dn.for||dn:dn&&dn.withoutSetter||pO;hv.exports=function(e){return fv(jc,e)||(jc[e]=fO&&fv(dn,e)?dn[e]:mO("Symbol."+e)),jc[e]}});var yv=h(($V,gv)=>{"use strict";var vO=Et(),mv=Ce(),vv=Lc(),gO=ra(),yO=ev(),_O=Be(),bO=TypeError,wO=_O("toPrimitive");gv.exports=function(e,t){if(!mv(e)||vv(e))return e;var r=gO(e,wO),n;if(r){if(t===void 0&&(t="default"),n=vO(r,e,t),!mv(n)||vv(n))return n;throw new bO("Can't convert object to primitive value")}return t===void 0&&(t="number"),yO(e,t)}});var Jc=h((VV,_v)=>{"use strict";var IO=yv(),EO=Lc();_v.exports=function(e){var t=IO(e,"string");return EO(t)?t:t+""}});var Gc=h((zV,wv)=>{"use strict";var kO=fe(),bv=Ce(),Bc=kO.document,SO=bv(Bc)&&bv(Bc.createElement);wv.exports=function(e){return SO?Bc.createElement(e):{}}});var Hc=h((WV,Iv)=>{"use strict";var xO=Qe(),AO=pe(),CO=Gc();Iv.exports=!xO&&!AO(function(){return Object.defineProperty(CO("div"),"a",{get:function(){return 7}}).a!==7})});var $c=h(kv=>{"use strict";var TO=Qe(),OO=Et(),PO=Cc(),RO=bi(),NO=vr(),DO=Jc(),LO=ut(),qO=Hc(),Ev=Object.getOwnPropertyDescriptor;kv.f=TO?Ev:function(t,r){if(t=NO(t),r=DO(r),qO)try{return Ev(t,r)}catch(n){}if(LO(t,r))return RO(!OO(PO.f,t,r),t[r])}});var xv=h((YV,Sv)=>{"use strict";var MO=pe(),UO=Le(),FO=/#|\.prototype\./,Ei=function(e,t){var r=JO[jO(e)];return r===GO?!0:r===BO?!1:UO(t)?MO(t):!!t},jO=Ei.normalize=function(e){return String(e).replace(FO,".").toLowerCase()},JO=Ei.data={},BO=Ei.NATIVE="N",GO=Ei.POLYFILL="P";Sv.exports=Ei});var ki=h((QV,Cv)=>{"use strict";var Av=_i(),HO=Fr(),$O=sn(),VO=Av(Av.bind);Cv.exports=function(e,t){return HO(e),t===void 0?e:$O?VO(e,t):function(){return e.apply(t,arguments)}}});var Vc=h((XV,Tv)=>{"use strict";var zO=Qe(),WO=pe();Tv.exports=zO&&WO(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Yt=h((ZV,Ov)=>{"use strict";var KO=Ce(),YO=String,QO=TypeError;Ov.exports=function(e){if(KO(e))return e;throw new QO(YO(e)+" is not an object")}});var Qt=h(Rv=>{"use strict";var XO=Qe(),ZO=Hc(),eP=Vc(),ia=Yt(),Pv=Jc(),tP=TypeError,zc=Object.defineProperty,rP=Object.getOwnPropertyDescriptor,Wc="enumerable",Kc="configurable",Yc="writable";Rv.f=XO?eP?function(t,r,n){if(ia(t),r=Pv(r),ia(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Yc in n&&!n[Yc]){var i=rP(t,r);i&&i[Yc]&&(t[r]=n.value,n={configurable:Kc in n?n[Kc]:i[Kc],enumerable:Wc in n?n[Wc]:i[Wc],writable:!1})}return zc(t,r,n)}:zc:function(t,r,n){if(ia(t),r=Pv(r),ia(n),ZO)try{return zc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new tP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var jr=h((tz,Nv)=>{"use strict";var nP=Qe(),iP=Qt(),oP=bi();Nv.exports=nP?function(e,t,r){return iP.f(e,t,oP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((rz,Lv)=>{"use strict";var Si=fe(),aP=xc(),sP=_i(),lP=Le(),cP=$c().f,uP=xv(),pn=Dt(),dP=ki(),fn=jr(),Dv=ut();Ii();var pP=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 aP(e,this,arguments)};return t.prototype=e.prototype,t};Lv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Si:i?Si[r]:Si[r]&&Si[r].prototype,s=n?pn:pn[r]||fn(pn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=uP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Dv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=cP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=dP(f,Si):e.wrap&&d?y=pP(f):o&&lP(f)?y=sP(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&fn(y,"sham",!0),fn(s,p,y),o&&(u=r+"Prototype",Dv(pn,u)||fn(pn,u,{}),fn(pn[u],p,f),e.real&&l&&(c||!l[p])&&fn(l,p,f)))}});var Mv=h((nz,qv)=>{"use strict";var fP=Math.ceil,hP=Math.floor;qv.exports=Math.trunc||function(t){var r=+t;return(r>0?hP:fP)(r)}});var xi=h((iz,Uv)=>{"use strict";var mP=Mv();Uv.exports=function(e){var t=+e;return t!==t||t===0?0:mP(t)}});var Qc=h((oz,Fv)=>{"use strict";var vP=xi(),gP=Math.min;Fv.exports=function(e){var t=vP(e);return t>0?gP(t,9007199254740991):0}});var hn=h((az,jv)=>{"use strict";var yP=Qc();jv.exports=function(e){return yP(e.length)}});var Ai=h((sz,Jv)=>{"use strict";var _P=Kt();Jv.exports=Array.isArray||function(t){return _P(t)==="Array"}});var oa=h((lz,Gv)=>{"use strict";var bP=Be(),wP=bP("toStringTag"),Bv={};Bv[wP]="z";Gv.exports=String(Bv)==="[object z]"});var mn=h((cz,Hv)=>{"use strict";var IP=oa(),EP=Le(),aa=Kt(),kP=Be(),SP=kP("toStringTag"),xP=Object,AP=aa(function(){return arguments}())==="Arguments",CP=function(e,t){try{return e[t]}catch(r){}};Hv.exports=IP?aa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=CP(t=xP(e),SP))=="string"?r:AP?aa(t):(n=aa(t))==="Object"&&EP(t.callee)?"Arguments":n}});var Vv=h((uz,$v)=>{"use strict";var TP=be(),OP=Le(),Xc=Ii(),PP=TP(Function.toString);OP(Xc.inspectSource)||(Xc.inspectSource=function(e){return PP(e)});$v.exports=Xc.inspectSource});var eu=h((dz,Qv)=>{"use strict";var RP=be(),NP=pe(),zv=Le(),DP=mn(),LP=ln(),qP=Vv(),Wv=function(){},Kv=LP("Reflect","construct"),Zc=/^\s*(?:class|function)\b/,MP=RP(Zc.exec),UP=!Zc.test(Wv),Ci=function(t){if(!zv(t))return!1;try{return Kv(Wv,[],t),!0}catch(r){return!1}},Yv=function(t){if(!zv(t))return!1;switch(DP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return UP||!!MP(Zc,qP(t))}catch(r){return!0}};Yv.sham=!0;Qv.exports=!Kv||NP(function(){var e;return Ci(Ci.call)||!Ci(Object)||!Ci(function(){e=!0})||e})?Yv:Ci});var tg=h((pz,eg)=>{"use strict";var Xv=Ai(),FP=eu(),jP=Ce(),JP=Be(),BP=JP("species"),Zv=Array;eg.exports=function(e){var t;return Xv(e)&&(t=e.constructor,FP(t)&&(t===Zv||Xv(t.prototype))?t=void 0:jP(t)&&(t=t[BP],t===null&&(t=void 0))),t===void 0?Zv:t}});var tu=h((fz,rg)=>{"use strict";var GP=tg();rg.exports=function(e,t){return new(GP(e))(t===0?0:t)}});var yr=h((hz,ig)=>{"use strict";var HP=ki(),$P=be(),VP=Xo(),zP=un(),WP=hn(),KP=tu(),ng=$P([].push),gr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=zP(l),f=VP(p),m=WP(f),g=HP(c,d),y=0,v=u||KP,b=t?v(l,m):r||a?v(l,0):void 0,k,A;m>y;y++)if((s||y in f)&&(k=f[y],A=g(k,y,p),e))if(t)b[y]=A;else if(A)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:ng(b,k)}else switch(e){case 4:return!1;case 7:ng(b,k)}return o?-1:n||i?i:b}};ig.exports={forEach:gr(0),map:gr(1),filter:gr(2),some:gr(3),every:gr(4),find:gr(5),findIndex:gr(6),filterReject:gr(7)}});var Ti=h((mz,og)=>{"use strict";var YP=pe(),QP=Be(),XP=ta(),ZP=QP("species");og.exports=function(e){return XP>=51||!YP(function(){var t=[],r=t.constructor={};return r[ZP]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var ag=h(()=>{"use strict";var eR=Z(),tR=yr().filter,rR=Ti(),nR=rR("filter");eR({target:"Array",proto:!0,forced:!nR},{filter:function(t){return tR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((yz,sg)=>{"use strict";var iR=fe(),oR=Dt();sg.exports=function(e,t){var r=oR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=iR[e],o=i&&i.prototype;return o&&o[t]}});var cg=h((_z,lg)=>{"use strict";ag();var aR=_t();lg.exports=aR("Array","filter")});var dg=h((bz,ug)=>{"use strict";var sR=Ye(),lR=cg(),ru=Array.prototype;ug.exports=function(e){var t=e.filter;return e===ru||sR(ru,e)&&t===ru.filter?lR:t}});var fg=h((wz,pg)=>{"use strict";var cR=dg();pg.exports=cR});var mg=h((Iz,hg)=>{hg.exports=fg()});var Oi=h((Ez,vg)=>{"use strict";var uR=pe();vg.exports=function(e,t){var r=[][e];return!!r&&uR(function(){r.call(null,t||function(){return 1},1)})}});var gg=h(()=>{"use strict";var dR=Z(),pR=yr().every,fR=Oi(),hR=fR("every");dR({target:"Array",proto:!0,forced:!hR},{every:function(t){return pR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _g=h((xz,yg)=>{"use strict";gg();var mR=_t();yg.exports=mR("Array","every")});var wg=h((Az,bg)=>{"use strict";var vR=Ye(),gR=_g(),nu=Array.prototype;bg.exports=function(e){var t=e.every;return e===nu||vR(nu,e)&&t===nu.every?gR:t}});var Eg=h((Cz,Ig)=>{"use strict";var yR=wg();Ig.exports=yR});var Sg=h((Tz,kg)=>{kg.exports=Eg()});var Ag=h((Oz,xg)=>{"use strict";var _R=yr().forEach,bR=Oi(),wR=bR("forEach");xg.exports=wR?[].forEach:function(t){return _R(this,t,arguments.length>1?arguments[1]:void 0)}});var Tg=h(()=>{"use strict";var IR=Z(),Cg=Ag();IR({target:"Array",proto:!0,forced:[].forEach!==Cg},{forEach:Cg})});var Pg=h((Nz,Og)=>{"use strict";Tg();var ER=_t();Og.exports=ER("Array","forEach")});var Ng=h((Dz,Rg)=>{"use strict";var kR=Pg();Rg.exports=kR});var Dg=h(()=>{});var qg=h((Mz,Lg)=>{"use strict";var SR=mn(),xR=ut(),AR=Ye(),CR=Ng();Dg();var iu=Array.prototype,TR={DOMTokenList:!0,NodeList:!0};Lg.exports=function(e){var t=e.forEach;return e===iu||AR(iu,e)&&t===iu.forEach||xR(TR,SR(e))?CR:t}});var Ug=h((Uz,Mg)=>{Mg.exports=qg()});var jg=h((Fz,Fg)=>{"use strict";var OR=TypeError,PR=9007199254740991;Fg.exports=function(e){if(e>PR)throw OR("Maximum allowed index exceeded");return e}});var ou=h((jz,Jg)=>{"use strict";var RR=Qe(),NR=Qt(),DR=bi();Jg.exports=function(e,t,r){RR?NR.f(e,t,DR(0,r)):e[t]=r}});var $g=h(()=>{"use strict";var LR=Z(),qR=pe(),MR=Ai(),UR=Ce(),FR=un(),jR=hn(),Bg=jg(),Gg=ou(),JR=tu(),BR=Ti(),GR=Be(),HR=ta(),Hg=GR("isConcatSpreadable"),$R=HR>=51||!qR(function(){var e=[];return e[Hg]=!1,e.concat()[0]!==e}),VR=function(e){if(!UR(e))return!1;var t=e[Hg];return t!==void 0?!!t:MR(e)},zR=!$R||!BR("concat");LR({target:"Array",proto:!0,arity:1,forced:zR},{concat:function(t){var r=FR(this),n=JR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],VR(c))for(l=jR(c),Bg(i+l),a=0;a<l;a++,i++)a in c&&Gg(n,i,c[a]);else Bg(i+1),Gg(n,i++,c);return n.length=i,n}})});var zg=h((Gz,Vg)=>{"use strict";$g();var WR=_t();Vg.exports=WR("Array","concat")});var Kg=h((Hz,Wg)=>{"use strict";var KR=Ye(),YR=zg(),au=Array.prototype;Wg.exports=function(e){var t=e.concat;return e===au||KR(au,e)&&t===au.concat?YR:t}});var Qg=h(($z,Yg)=>{"use strict";var QR=Kg();Yg.exports=QR});var Zg=h((Vz,Xg)=>{Xg.exports=Qg()});var ey=h(()=>{"use strict";var XR=Z(),ZR=yr().some,eN=Oi(),tN=eN("some");XR({target:"Array",proto:!0,forced:!tN},{some:function(t){return ZR(this,t,arguments.length>1?arguments[1]:void 0)}})});var ry=h((Kz,ty)=>{"use strict";ey();var rN=_t();ty.exports=rN("Array","some")});var iy=h((Yz,ny)=>{"use strict";var nN=Ye(),iN=ry(),su=Array.prototype;ny.exports=function(e){var t=e.some;return e===su||nN(su,e)&&t===su.some?iN:t}});var ay=h((Qz,oy)=>{"use strict";var oN=iy();oy.exports=oN});var ly=h((Xz,sy)=>{sy.exports=ay()});var uy=h((Zz,cy)=>{"use strict";var Pi=fe(),aN=Zo(),sN=Kt(),sa=function(e){return aN.slice(0,e.length)===e};cy.exports=function(){return sa("Bun/")?"BUN":sa("Cloudflare-Workers")?"CLOUDFLARE":sa("Deno/")?"DENO":sa("Node.js/")?"NODE":Pi.Bun&&typeof Bun.version=="string"?"BUN":Pi.Deno&&typeof Deno.version=="object"?"DENO":sN(Pi.process)==="process"?"NODE":Pi.window&&Pi.document?"BROWSER":"REST"}()});var Ri=h((e6,dy)=>{"use strict";var lN=be();dy.exports=lN([].slice)});var fy=h((t6,py)=>{"use strict";var cN=TypeError;py.exports=function(e,t){if(e<t)throw new cN("Not enough arguments");return e}});var lu=h((r6,my)=>{"use strict";var hy=fe(),uN=xc(),dN=Le(),pN=uy(),fN=Zo(),hN=Ri(),mN=fy(),vN=hy.Function,gN=/MSIE .\./.test(fN)||pN==="BUN"&&function(){var e=hy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();my.exports=function(e,t){var r=t?2:1;return gN?function(n,i){var o=mN(arguments.length,1)>r,a=dN(n)?n:vN(n),s=o?hN(arguments,r):[],l=o?function(){uN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var yy=h(()=>{"use strict";var yN=Z(),gy=fe(),_N=lu(),vy=_N(gy.setInterval,!0);yN({global:!0,bind:!0,forced:gy.setInterval!==vy},{setInterval:vy})});var wy=h(()=>{"use strict";var bN=Z(),by=fe(),wN=lu(),_y=wN(by.setTimeout,!0);bN({global:!0,bind:!0,forced:by.setTimeout!==_y},{setTimeout:_y})});var Iy=h(()=>{"use strict";yy();wy()});var ky=h((c6,Ey)=>{"use strict";Iy();var IN=Dt();Ey.exports=IN.setTimeout});var xy=h((u6,Sy)=>{Sy.exports=ky()});function Di(e,t){me.__h&&me.__h(oe,e,Ni||t),Ni=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ca(e){return Ni=1,qy(My,e)}function qy(e,t,r){var n=Di(Jr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):My(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Li(e,t){var r=Di(Jr++,3);!me.__s&&du(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function vn(e,t){var r=Di(Jr++,4);!me.__s&&du(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function qi(e){return Ni=5,Mi(function(){return{current:e}},[])}function Mi(e,t){var r=Di(Jr++,7);return du(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function gn(e,t){return Ni=8,Mi(function(){return e},t)}function yn(e){var t=oe.context[e.__c],r=Di(Jr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function EN(){for(var e;e=Ly.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(la),e.__H.__h.forEach(uu),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function kN(e){var t,r=function(){clearTimeout(n),Dy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Dy&&(t=requestAnimationFrame(r))}function la(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function uu(e){var t=oe;e.__c=e.__(),oe=t}function du(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function My(e,t){return typeof t=="function"?t(e):t}var Jr,oe,cu,Ay,Ni,Ly,me,Cy,Ty,Oy,Py,Ry,Ny,Dy,pu=x(()=>{an();Ni=0,Ly=[],me=R,Cy=me.__b,Ty=me.__r,Oy=me.diffed,Py=me.__c,Ry=me.unmount,Ny=me.__;me.__b=function(e){oe=null,Cy&&Cy(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ny&&Ny(e,t)},me.__r=function(e){Ty&&Ty(e),Jr=0;var t=(oe=e.__c).__H;t&&(cu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(la),t.__h.forEach(uu),t.__h=[],Jr=0)),cu=oe},me.diffed=function(e){Oy&&Oy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ly.push(t)!==1&&Ay===me.requestAnimationFrame||((Ay=me.requestAnimationFrame)||kN)(EN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),cu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(la),r.__h=r.__h.filter(function(n){return!n.__||uu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),Py&&Py(e,t)},me.unmount=function(e){Ry&&Ry(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{la(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};Dy=typeof requestAnimationFrame=="function"});function zy(e,t){for(var r in t)e[r]=t[r];return e}function hu(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 Uy(e,t){this.props=e,this.context=t}function vu(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:hu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function gu(e){function t(r){var n=zy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=SN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Wy(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=zy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Wy(n,t,r)})),e}function Ky(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ky(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 fu(){this.__u=0,this.o=null,this.__b=null}function Yy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ua(){this.i=null,this.l=null}function yu(e,t,r){return t.__k==null&&(t.textContent=""),mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function NN(){}function DN(){return this.cancelBubble}function LN(){return this.defaultPrevented}var mu,Fy,SN,xN,jy,Jy,AN,CN,TN,ON,PN,RN,By,Qy,qN,Gy,Hy,$y,da=x(()=>{an();an();pu();pu();mu=vn;(Uy.prototype=new ct).isPureReactComponent=!0,Uy.prototype.shouldComponentUpdate=function(e,t){return hu(this.props,e)||hu(this.state,t)};Fy=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fy&&Fy(e)};SN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;xN=R.__e;R.__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)}xN(e,t,r,n)};jy=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jy&&jy(e)},(fu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Yy(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ky(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},fu.prototype.componentWillUnmount=function(){this.o=[]},fu.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]=Wy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};Jy=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]}};(ua.prototype=new ct).__a=function(e){var t=this,r=Yy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Jy(t,e,n)):i()};r?r(o):o()}},ua.prototype.render=function(e){this.i=null,this.l=new Map;var t=gi(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},ua.prototype.componentDidUpdate=ua.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Jy(e,r,t)})};AN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,CN=/^(?: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]/,TN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ON=/[A-Z0-9]/g,PN=typeof document!="undefined",RN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});By=R.event;R.event=function(e){return By&&(e=By(e)),e.persist=NN,e.isPropagationStopped=DN,e.isDefaultPrevented=LN,e.nativeEvent=e};qN={enumerable:!1,configurable:!0,get:function(){return this.class}},Gy=R.vnode;R.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||PN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||RN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":TN.test(a)&&(a=l):l=a="oninput":o&&CN.test(a)?a=a.replace(ON,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=gi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=gi(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",qN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=AN,Gy&&Gy(e)};Hy=R.__r;R.__r=function(e){Hy&&Hy(e),Qy=e.__c};$y=R.diffed;R.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),Qy=null}});var bu=h(()=>{"use strict";var UN=Z(),_u=fe();UN({global:!0,forced:_u.globalThis!==_u},{globalThis:_u})});var Xy=h(()=>{"use strict";bu()});var e_=h((x6,Zy)=>{"use strict";bu();Zy.exports=fe()});var r_=h((A6,t_)=>{"use strict";var FN=e_();t_.exports=FN});var i_=h((C6,n_)=>{"use strict";var jN=r_();n_.exports=jN});var a_=h((T6,o_)=>{"use strict";Xy();var JN=i_();o_.exports=JN});var l_=h((O6,s_)=>{"use strict";s_.exports=a_()});var u_=h((P6,c_)=>{c_.exports=l_()});var d_=h(()=>{"use strict";var BN=Z(),GN=Ai();BN({target:"Array",stat:!0},{isArray:GN})});var f_=h((D6,p_)=>{"use strict";d_();var HN=Dt();p_.exports=HN.Array.isArray});var m_=h((L6,h_)=>{"use strict";var $N=f_();h_.exports=$N});var g_=h((q6,v_)=>{v_.exports=m_()});var __=h((M6,y_)=>{"use strict";y_.exports=function(){}});var Br=h((U6,b_)=>{"use strict";b_.exports={}});var wu=h((F6,I_)=>{"use strict";var VN=fe(),zN=Le(),w_=VN.WeakMap;I_.exports=zN(w_)&&/native code/.test(String(w_))});var pa=h((j6,k_)=>{"use strict";var WN=Fc(),KN=na(),E_=WN("keys");k_.exports=function(e){return E_[e]||(E_[e]=KN(e))}});var Ui=h((J6,S_)=>{"use strict";S_.exports={}});var Hr=h((B6,C_)=>{"use strict";var YN=wu(),A_=fe(),QN=Ce(),XN=jr(),Iu=ut(),Eu=Ii(),ZN=pa(),eD=Ui(),x_="Object already initialized",ku=A_.TypeError,tD=A_.WeakMap,fa,Fi,ha,rD=function(e){return ha(e)?Fi(e):fa(e,{})},nD=function(e){return function(t){var r;if(!QN(t)||(r=Fi(t)).type!==e)throw new ku("Incompatible receiver, "+e+" required");return r}};YN||Eu.state?(St=Eu.state||(Eu.state=new tD),St.get=St.get,St.has=St.has,St.set=St.set,fa=function(e,t){if(St.has(e))throw new ku(x_);return t.facade=e,St.set(e,t),t},Fi=function(e){return St.get(e)||{}},ha=function(e){return St.has(e)}):(Gr=ZN("state"),eD[Gr]=!0,fa=function(e,t){if(Iu(e,Gr))throw new ku(x_);return t.facade=e,XN(e,Gr,t),t},Fi=function(e){return Iu(e,Gr)?e[Gr]:{}},ha=function(e){return Iu(e,Gr)});var St,Gr;C_.exports={set:fa,get:Fi,has:ha,enforce:rD,getterFor:nD}});var Au=h((G6,O_)=>{"use strict";var Su=Qe(),iD=ut(),T_=Function.prototype,oD=Su&&Object.getOwnPropertyDescriptor,xu=iD(T_,"name"),aD=xu&&(function(){}).name==="something",sD=xu&&(!Su||Su&&oD(T_,"name").configurable);O_.exports={EXISTS:xu,PROPER:aD,CONFIGURABLE:sD}});var Cu=h((H6,P_)=>{"use strict";var lD=xi(),cD=Math.max,uD=Math.min;P_.exports=function(e,t){var r=lD(e);return r<0?cD(r+t,0):uD(r,t)}});var Tu=h(($6,N_)=>{"use strict";var dD=vr(),pD=Cu(),fD=hn(),R_=function(e){return function(t,r,n){var i=dD(t),o=fD(i);if(o===0)return!e&&-1;var a=pD(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}};N_.exports={includes:R_(!0),indexOf:R_(!1)}});var Pu=h((V6,L_)=>{"use strict";var hD=be(),Ou=ut(),mD=vr(),vD=Tu().indexOf,gD=Ui(),D_=hD([].push);L_.exports=function(e,t){var r=mD(e),n=0,i=[],o;for(o in r)!Ou(gD,o)&&Ou(r,o)&&D_(i,o);for(;t.length>n;)Ou(r,o=t[n++])&&(~vD(i,o)||D_(i,o));return i}});var ma=h((z6,q_)=>{"use strict";q_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ru=h((W6,M_)=>{"use strict";var yD=Pu(),_D=ma();M_.exports=Object.keys||function(t){return yD(t,_D)}});var F_=h(U_=>{"use strict";var bD=Qe(),wD=Vc(),ID=Qt(),ED=Yt(),kD=vr(),SD=Ru();U_.f=bD&&!wD?Object.defineProperties:function(t,r){ED(t);for(var n=kD(r),i=SD(r),o=i.length,a=0,s;o>a;)ID.f(t,s=i[a++],n[s]);return t}});var J_=h((Y6,j_)=>{"use strict";var xD=ln();j_.exports=xD("document","documentElement")});var ji=h((Q6,W_)=>{"use strict";var AD=Yt(),CD=F_(),B_=ma(),TD=Ui(),OD=J_(),PD=Gc(),RD=pa(),G_=">",H_="<",Du="prototype",Lu="script",V_=RD("IE_PROTO"),Nu=function(){},z_=function(e){return H_+Lu+G_+e+H_+"/"+Lu+G_},$_=function(e){e.write(z_("")),e.close();var t=e.parentWindow.Object;return e=null,t},ND=function(){var e=PD("iframe"),t="java"+Lu+":",r;return e.style.display="none",OD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(z_("document.F=Object")),r.close(),r.F},va,ga=function(){try{va=new ActiveXObject("htmlfile")}catch(t){}ga=typeof document!="undefined"?document.domain&&va?$_(va):ND():$_(va);for(var e=B_.length;e--;)delete ga[Du][B_[e]];return ga()};TD[V_]=!0;W_.exports=Object.create||function(t,r){var n;return t!==null?(Nu[Du]=AD(t),n=new Nu,Nu[Du]=null,n[V_]=t):n=ga(),r===void 0?n:CD.f(n,r)}});var Y_=h((X6,K_)=>{"use strict";var DD=pe();K_.exports=!DD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Mu=h((Z6,X_)=>{"use strict";var LD=ut(),qD=Le(),MD=un(),UD=pa(),FD=Y_(),Q_=UD("IE_PROTO"),qu=Object,jD=qu.prototype;X_.exports=FD?qu.getPrototypeOf:function(e){var t=MD(e);if(LD(t,Q_))return t[Q_];var r=t.constructor;return qD(r)&&t instanceof r?r.prototype:t instanceof qu?jD:null}});var ya=h((eW,Z_)=>{"use strict";var JD=jr();Z_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:JD(e,t,r),e}});var Ju=h((tW,rb)=>{"use strict";var BD=pe(),GD=Le(),HD=Ce(),$D=ji(),eb=Mu(),VD=ya(),zD=Be(),WD=cn(),ju=zD("iterator"),tb=!1,Xt,Uu,Fu;[].keys&&(Fu=[].keys(),"next"in Fu?(Uu=eb(eb(Fu)),Uu!==Object.prototype&&(Xt=Uu)):tb=!0);var KD=!HD(Xt)||BD(function(){var e={};return Xt[ju].call(e)!==e});KD?Xt={}:WD&&(Xt=$D(Xt));GD(Xt[ju])||VD(Xt,ju,function(){return this});rb.exports={IteratorPrototype:Xt,BUGGY_SAFARI_ITERATORS:tb}});var ib=h((rW,nb)=>{"use strict";var YD=oa(),QD=mn();nb.exports=YD?{}.toString:function(){return"[object "+QD(this)+"]"}});var Ji=h((nW,ab)=>{"use strict";var XD=oa(),ZD=Qt().f,eL=jr(),tL=ut(),rL=ib(),nL=Be(),ob=nL("toStringTag");ab.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(tL(i,ob)||ZD(i,ob,{configurable:!0,value:t}),n&&!XD&&eL(i,"toString",rL))}});var lb=h((iW,sb)=>{"use strict";var iL=Ju().IteratorPrototype,oL=ji(),aL=bi(),sL=Ji(),lL=Br(),cL=function(){return this};sb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=oL(iL,{next:aL(+!n,r)}),sL(e,i,!1,!0),lL[i]=cL,e}});var ub=h((oW,cb)=>{"use strict";var uL=be(),dL=Fr();cb.exports=function(e,t,r){try{return uL(dL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var pb=h((aW,db)=>{"use strict";var pL=Ce();db.exports=function(e){return pL(e)||e===null}});var hb=h((sW,fb)=>{"use strict";var fL=pb(),hL=String,mL=TypeError;fb.exports=function(e){if(fL(e))return e;throw new mL("Can't set "+hL(e)+" as a prototype")}});var vb=h((lW,mb)=>{"use strict";var vL=ub(),gL=Ce(),yL=Ur(),_L=hb();mb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=vL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return yL(i),_L(o),gL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var wa=h((cW,xb)=>{"use strict";var bL=Z(),wL=Et(),_a=cn(),kb=Au(),IL=Le(),EL=lb(),gb=Mu(),yb=vb(),kL=Ji(),SL=jr(),Bu=ya(),xL=Be(),_b=Br(),Sb=Ju(),AL=kb.PROPER,CL=kb.CONFIGURABLE,bb=Sb.IteratorPrototype,ba=Sb.BUGGY_SAFARI_ITERATORS,Bi=xL("iterator"),wb="keys",Gi="values",Ib="entries",Eb=function(){return this};xb.exports=function(e,t,r,n,i,o,a){EL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!ba&&v&&v in d)return d[v];switch(v){case wb:return function(){return new r(this,v)};case Gi:return function(){return new r(this,v)};case Ib:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Bi]||d["@@iterator"]||i&&d[i],p=!ba&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=gb(f.call(new e)),m!==Object.prototype&&m.next&&(!_a&&gb(m)!==bb&&(yb?yb(m,bb):IL(m[Bi])||Bu(m,Bi,Eb)),kL(m,l,!0,!0),_a&&(_b[l]=Eb))),AL&&i===Gi&&u&&u.name!==Gi&&(!_a&&CL?SL(d,"name",Gi):(c=!0,p=function(){return wL(u,this)})),i)if(g={values:s(Gi),keys:o?p:s(wb),entries:s(Ib)},a)for(y in g)(ba||c||!(y in d))&&Bu(d,y,g[y]);else bL({target:t,proto:!0,forced:ba||c},g);return(!_a||a)&&d[Bi]!==p&&Bu(d,Bi,p,{name:i}),_b[t]=p,g}});var Ia=h((uW,Ab)=>{"use strict";Ab.exports=function(e,t){return{value:e,done:t}}});var ka=h((dW,Rb)=>{"use strict";var TL=vr(),Gu=__(),Cb=Br(),Ob=Hr(),OL=Qt().f,PL=wa(),Ea=Ia(),RL=cn(),NL=Qe(),Pb="Array Iterator",DL=Ob.set,LL=Ob.getterFor(Pb);Rb.exports=PL(Array,"Array",function(e,t){DL(this,{type:Pb,target:TL(e),index:0,kind:t})},function(){var e=LL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ea(void 0,!0);switch(e.kind){case"keys":return Ea(r,!1);case"values":return Ea(t[r],!1)}return Ea([r,t[r]],!1)},"values");var Tb=Cb.Arguments=Cb.Array;Gu("keys");Gu("values");Gu("entries");if(!RL&&NL&&Tb.name!=="values")try{OL(Tb,"name",{value:"values"})}catch(e){}});var Hu=h(()=>{});var $u=h((hW,Nb)=>{"use strict";var qL=pe();Nb.exports=!qL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Sa=h((mW,Db)=>{"use strict";var ML=ya();Db.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:ML(e,n,t[n],r);return e}});var Vu=h(Lb=>{"use strict";var UL=Pu(),FL=ma(),jL=FL.concat("length","prototype");Lb.f=Object.getOwnPropertyNames||function(t){return UL(t,jL)}});var Fb=h((gW,Ub)=>{"use strict";var JL=Kt(),BL=vr(),qb=Vu().f,GL=Ri(),Mb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],HL=function(e){try{return qb(e)}catch(t){return GL(Mb)}};Ub.exports.f=function(t){return Mb&&JL(t)==="Window"?HL(t):qb(BL(t))}});var Jb=h((yW,jb)=>{"use strict";var $L=pe();jb.exports=$L(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Hb=h((_W,Gb)=>{"use strict";var VL=pe(),zL=Ce(),WL=Kt(),Bb=Jb(),xa=Object.isExtensible,KL=VL(function(){xa(1)});Gb.exports=KL||Bb?function(t){return!zL(t)||Bb&&WL(t)==="ArrayBuffer"?!1:xa?xa(t):!0}:xa});var Hi=h((bW,zb)=>{"use strict";var YL=Z(),QL=be(),XL=Ui(),ZL=Ce(),zu=ut(),eq=Qt().f,$b=Vu(),tq=Fb(),Wu=Hb(),rq=na(),nq=$u(),Vb=!1,Zt=rq("meta"),iq=0,Ku=function(e){eq(e,Zt,{value:{objectID:"O"+iq++,weakData:{}}})},oq=function(e,t){if(!ZL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!zu(e,Zt)){if(!Wu(e))return"F";if(!t)return"E";Ku(e)}return e[Zt].objectID},aq=function(e,t){if(!zu(e,Zt)){if(!Wu(e))return!0;if(!t)return!1;Ku(e)}return e[Zt].weakData},sq=function(e){return nq&&Vb&&Wu(e)&&!zu(e,Zt)&&Ku(e),e},lq=function(){cq.enable=function(){},Vb=!0;var e=$b.f,t=QL([].splice),r={};r[Zt]=1,e(r).length&&($b.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Zt){t(i,o,1);break}return i},YL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tq.f}))},cq=zb.exports={enable:lq,fastKey:oq,getWeakData:aq,onFreeze:sq};XL[Zt]=!0});var Kb=h((wW,Wb)=>{"use strict";var uq=Be(),dq=Br(),pq=uq("iterator"),fq=Array.prototype;Wb.exports=function(e){return e!==void 0&&(dq.Array===e||fq[pq]===e)}});var Yu=h((IW,Qb)=>{"use strict";var hq=mn(),Yb=ra(),mq=Mr(),vq=Br(),gq=Be(),yq=gq("iterator");Qb.exports=function(e){if(!mq(e))return Yb(e,yq)||Yb(e,"@@iterator")||vq[hq(e)]}});var Zb=h((EW,Xb)=>{"use strict";var _q=Et(),bq=Fr(),wq=Yt(),Iq=wi(),Eq=Yu(),kq=TypeError;Xb.exports=function(e,t){var r=arguments.length<2?Eq(e):t;if(bq(r))return wq(_q(r,e));throw new kq(Iq(e)+" is not iterable")}});var Aa=h((kW,tw)=>{"use strict";var Sq=Et(),ew=Yt(),xq=ra();tw.exports=function(e,t,r){var n,i;ew(e);try{if(n=xq(e,"return"),!n){if(t==="throw")throw r;return r}n=Sq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ew(n),r}});var Ta=h((SW,ow)=>{"use strict";var Aq=ki(),Cq=Et(),Tq=Yt(),Oq=wi(),Pq=Kb(),Rq=hn(),rw=Ye(),Nq=Zb(),Dq=Yu(),nw=Aa(),Lq=TypeError,Ca=function(e,t){this.stopped=e,this.result=t},iw=Ca.prototype;ow.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=Aq(t,n),c,d,u,p,f,m,g,y=function(b){return c&&nw(c,"normal",b),new Ca(!0,b)},v=function(b){return i?(Tq(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=Dq(e),!d)throw new Lq(Oq(e)+" is not iterable");if(Pq(d)){for(u=0,p=Rq(e);p>u;u++)if(f=v(e[u]),f&&rw(iw,f))return f;return new Ca(!1)}c=Nq(e,d)}for(m=o?e.next:c.next;!(g=Cq(m,c)).done;){try{f=v(g.value)}catch(b){nw(c,"throw",b)}if(typeof f=="object"&&f&&rw(iw,f))return f}return new Ca(!1)}});var Oa=h((xW,aw)=>{"use strict";var qq=Ye(),Mq=TypeError;aw.exports=function(e,t){if(qq(t,e))return e;throw new Mq("Incorrect invocation")}});var Qu=h((AW,lw)=>{"use strict";var Uq=Z(),Fq=fe(),jq=Hi(),Jq=pe(),Bq=jr(),Gq=Ta(),Hq=Oa(),$q=Le(),Vq=Ce(),zq=Mr(),Wq=Ji(),Kq=Qt().f,Yq=yr().forEach,Qq=Qe(),sw=Hr(),Xq=sw.set,Zq=sw.getterFor;lw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=Fq[e],s=a&&a.prototype,l={},c;if(!Qq||!$q(a)||!(i||s.forEach&&!Jq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),jq.enable();else{c=t(function(p,f){Xq(Hq(p,d),{type:e,collection:new a}),zq(f)||Gq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Zq(e);Yq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&Bq(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!Vq(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||Kq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Wq(c,e,!1,!0),l[e]=c,Uq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var mw=h((CW,hw)=>{"use strict";var eM=be(),cw=Sa(),Pa=Hi().getWeakData,tM=Oa(),rM=Yt(),nM=Mr(),Xu=Ce(),iM=Ta(),dw=yr(),uw=ut(),pw=Hr(),oM=pw.set,aM=pw.getterFor,sM=dw.find,lM=dw.findIndex,cM=eM([].splice),uM=0,Ra=function(e){return e.frozen||(e.frozen=new fw)},fw=function(){this.entries=[]},Zu=function(e,t){return sM(e.entries,function(r){return r[0]===t})};fw.prototype={get:function(e){var t=Zu(this,e);if(t)return t[1]},has:function(e){return!!Zu(this,e)},set:function(e,t){var r=Zu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=lM(this.entries,function(r){return r[0]===e});return~t&&cM(this.entries,t,1),!!~t}};hw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){tM(l,o),oM(l,{type:t,id:uM++,frozen:null}),nM(c)||iM(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=aM(t),s=function(l,c,d){var u=a(l),p=Pa(rM(c),!0);return p===!0?Ra(u).set(c,d):p[u.id]=d,l};return cw(o,{delete:function(l){var c=a(this);if(!Xu(l))return!1;var d=Pa(l);return d===!0?Ra(c).delete(l):d&&uw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Xu(c))return!1;var u=Pa(c);return u===!0?Ra(d).has(c):u&&uw(u,d.id)}}),cw(o,r?{get:function(c){var d=a(this);if(Xu(c)){var u=Pa(c);if(u===!0)return Ra(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var Ew=h(()=>{"use strict";var dM=$u(),vw=fe(),qa=be(),gw=Sa(),pM=Hi(),fM=Qu(),yw=mw(),Na=Ce(),Da=Hr().enforce,hM=pe(),mM=wu(),zi=Object,vM=Array.isArray,La=zi.isExtensible,_w=zi.isFrozen,gM=zi.isSealed,bw=zi.freeze,yM=zi.seal,_M=!vw.ActiveXObject&&"ActiveXObject"in vw,$i,ww=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Iw=fM("WeakMap",ww,yw),_n=Iw.prototype,Ma=qa(_n.set),bM=function(){return dM&&hM(function(){var e=bw([]);return Ma(new Iw,e,1),!_w(e)})};mM&&(_M?($i=yw.getConstructor(ww,"WeakMap",!0),pM.enable(),ed=qa(_n.delete),Vi=qa(_n.has),td=qa(_n.get),gw(_n,{delete:function(e){if(Na(e)&&!La(e)){var t=Da(this);return t.frozen||(t.frozen=new $i),ed(this,e)||t.frozen.delete(e)}return ed(this,e)},has:function(t){if(Na(t)&&!La(t)){var r=Da(this);return r.frozen||(r.frozen=new $i),Vi(this,t)||r.frozen.has(t)}return Vi(this,t)},get:function(t){if(Na(t)&&!La(t)){var r=Da(this);return r.frozen||(r.frozen=new $i),Vi(this,t)?td(this,t):r.frozen.get(t)}return td(this,t)},set:function(t,r){if(Na(t)&&!La(t)){var n=Da(this);n.frozen||(n.frozen=new $i),Vi(this,t)?Ma(this,t,r):n.frozen.set(t,r)}else Ma(this,t,r);return this}})):bM()&&gw(_n,{set:function(t,r){var n;return vM(t)&&(_w(t)?n=bw:gM(t)&&(n=yM)),Ma(this,t,r),n&&n(t),this}}));var ed,Vi,td});var kw=h(()=>{"use strict";Ew()});var xw=h((NW,Sw)=>{"use strict";ka();Hu();kw();var wM=Dt();Sw.exports=wM.WeakMap});var Cw=h((DW,Aw)=>{"use strict";Aw.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 rd=h(()=>{"use strict";ka();var IM=Cw(),EM=fe(),kM=Ji(),Tw=Br();for(Ua in IM)kM(EM[Ua],Ua),Tw[Ua]=Tw.Array;var Ua});var Pw=h((MW,Ow)=>{"use strict";var SM=xw();rd();Ow.exports=SM});var Nw=h((UW,Rw)=>{Rw.exports=Pw()});var Lw=h(()=>{"use strict";var xM=Z(),AM=_i(),CM=Tu().indexOf,TM=Oi(),nd=AM([].indexOf),Dw=!!nd&&1/nd([1],1,-0)<0,OM=Dw||!TM("indexOf");xM({target:"Array",proto:!0,forced:OM},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Dw?nd(this,t,r)||0:CM(this,t,r)}})});var Mw=h((JW,qw)=>{"use strict";Lw();var PM=_t();qw.exports=PM("Array","indexOf")});var Fw=h((BW,Uw)=>{"use strict";var RM=Ye(),NM=Mw(),id=Array.prototype;Uw.exports=function(e){var t=e.indexOf;return e===id||RM(id,e)&&t===id.indexOf?NM:t}});var Jw=h((GW,jw)=>{"use strict";var DM=Fw();jw.exports=DM});var Gw=h((HW,Bw)=>{Bw.exports=Jw()});var Hw=h(()=>{"use strict";var LM=Z(),qM=yr().map,MM=Ti(),UM=MM("map");LM({target:"Array",proto:!0,forced:!UM},{map:function(t){return qM(this,t,arguments.length>1?arguments[1]:void 0)}})});var Vw=h((zW,$w)=>{"use strict";Hw();var FM=_t();$w.exports=FM("Array","map")});var Ww=h((WW,zw)=>{"use strict";var jM=Ye(),JM=Vw(),od=Array.prototype;zw.exports=function(e){var t=e.map;return e===od||jM(od,e)&&t===od.map?JM:t}});var Yw=h((KW,Kw)=>{"use strict";var BM=Ww();Kw.exports=BM});var Xw=h((YW,Qw)=>{Qw.exports=Yw()});var Zw=h(()=>{"use strict";var GM=Z(),HM=Qe(),$M=ji();GM({target:"Object",stat:!0,sham:!HM},{create:$M})});var t0=h((ZW,e0)=>{"use strict";Zw();var VM=Dt(),zM=VM.Object;e0.exports=function(t,r){return zM.create(t,r)}});var n0=h((e8,r0)=>{"use strict";var WM=t0();r0.exports=WM});var o0=h((t8,i0)=>{i0.exports=n0()});var ad=h((r8,a0)=>{"use strict";var KM=Qt();a0.exports=function(e,t,r){return KM.f(e,t,r)}});var c0=h((n8,l0)=>{"use strict";var YM=ln(),QM=ad(),XM=Be(),ZM=Qe(),s0=XM("species");l0.exports=function(e){var t=YM(e);ZM&&t&&!t[s0]&&QM(t,s0,{configurable:!0,get:function(){return this}})}});var v0=h((i8,m0)=>{"use strict";var u0=ji(),eU=ad(),d0=Sa(),tU=ki(),rU=Oa(),nU=Mr(),iU=Ta(),oU=wa(),Fa=Ia(),aU=c0(),Wi=Qe(),p0=Hi().fastKey,h0=Hr(),f0=h0.set,sd=h0.getterFor;m0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){rU(c,o),f0(c,{type:t,index:u0(null),first:null,last:null,size:0}),Wi||(c.size=0),nU(d)||iU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=sd(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=p0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Wi?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=p0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return d0(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=u0(null),Wi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Wi?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=tU(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),d0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Wi&&eU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=sd(t),o=sd(n);oU(e,t,function(a,s){f0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,Fa(void 0,!0)):Fa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),aU(t)}}});var g0=h(()=>{"use strict";var sU=Qu(),lU=v0();sU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lU)});var y0=h(()=>{"use strict";g0()});var _r=h((c8,_0)=>{"use strict";var cU=wi(),uU=TypeError;_0.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 uU(cU(e)+" is not a set")}});var w0=h((u8,b0)=>{"use strict";b0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var br=h((d8,E0)=>{"use strict";var dU=ln(),ld=w0(),I0=dU("Set"),pU=I0.prototype;E0.exports={Set:I0,add:ld("add",1),has:ld("has",1),remove:ld("delete",1),proto:pU}});var wr=h((p8,k0)=>{"use strict";var fU=Et();k0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=fU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var bn=h((f8,S0)=>{"use strict";var hU=wr();S0.exports=function(e,t,r){return r?hU(e.keys(),t,!0):e.forEach(t)}});var ja=h((h8,A0)=>{"use strict";var x0=br(),mU=bn(),vU=x0.Set,gU=x0.add;A0.exports=function(e){var t=new vU;return mU(e,function(r){gU(t,r)}),t}});var wn=h((m8,C0)=>{"use strict";C0.exports=function(e){return e.size}});var O0=h((v8,T0)=>{"use strict";T0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Ir=h((g8,q0)=>{"use strict";var P0=Fr(),D0=Yt(),R0=Et(),yU=xi(),_U=O0(),N0="Invalid size",bU=RangeError,wU=TypeError,IU=Math.max,L0=function(e,t){this.set=e,this.size=IU(t,0),this.has=P0(e.has),this.keys=P0(e.keys)};L0.prototype={getIterator:function(){return _U(D0(R0(this.keys,this.set)))},includes:function(e){return R0(this.has,this.set,e)}};q0.exports=function(e){D0(e);var t=+e.size;if(t!==t)throw new wU(N0);var r=yU(t);if(r<0)throw new bU(N0);return new L0(e,r)}});var j0=h((y8,F0)=>{"use strict";var EU=_r(),U0=br(),kU=ja(),SU=wn(),xU=Ir(),AU=bn(),CU=wr(),TU=U0.has,M0=U0.remove;F0.exports=function(t){var r=EU(this),n=xU(t),i=kU(r);return SU(r)<=n.size?AU(r,function(o){n.includes(o)&&M0(i,o)}):CU(n.getIterator(),function(o){TU(r,o)&&M0(i,o)}),i}});var Er=h((_8,J0)=>{"use strict";J0.exports=function(){return!1}});var B0=h(()=>{"use strict";var OU=Z(),PU=j0(),RU=Er(),NU=!RU("difference",function(e){return e.size===0});OU({target:"Set",proto:!0,real:!0,forced:NU},{difference:PU})});var $0=h((I8,H0)=>{"use strict";var DU=_r(),cd=br(),LU=wn(),qU=Ir(),MU=bn(),UU=wr(),FU=cd.Set,G0=cd.add,jU=cd.has;H0.exports=function(t){var r=DU(this),n=qU(t),i=new FU;return LU(r)>n.size?UU(n.getIterator(),function(o){jU(r,o)&&G0(i,o)}):MU(r,function(o){n.includes(o)&&G0(i,o)}),i}});var V0=h(()=>{"use strict";var JU=Z(),BU=pe(),GU=$0(),HU=Er(),$U=!HU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||BU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});JU({target:"Set",proto:!0,real:!0,forced:$U},{intersection:GU})});var W0=h((S8,z0)=>{"use strict";var VU=_r(),zU=br().has,WU=wn(),KU=Ir(),YU=bn(),QU=wr(),XU=Aa();z0.exports=function(t){var r=VU(this),n=KU(t);if(WU(r)<=n.size)return YU(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return QU(i,function(o){if(zU(r,o))return XU(i,"normal",!1)})!==!1}});var K0=h(()=>{"use strict";var ZU=Z(),eF=W0(),tF=Er(),rF=!tF("isDisjointFrom",function(e){return!e});ZU({target:"Set",proto:!0,real:!0,forced:rF},{isDisjointFrom:eF})});var Q0=h((C8,Y0)=>{"use strict";var nF=_r(),iF=wn(),oF=bn(),aF=Ir();Y0.exports=function(t){var r=nF(this),n=aF(t);return iF(r)>n.size?!1:oF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var X0=h(()=>{"use strict";var sF=Z(),lF=Q0(),cF=Er(),uF=!cF("isSubsetOf",function(e){return e});sF({target:"Set",proto:!0,real:!0,forced:uF},{isSubsetOf:lF})});var eI=h((P8,Z0)=>{"use strict";var dF=_r(),pF=br().has,fF=wn(),hF=Ir(),mF=wr(),vF=Aa();Z0.exports=function(t){var r=dF(this),n=hF(t);if(fF(r)<n.size)return!1;var i=n.getIterator();return mF(i,function(o){if(!pF(r,o))return vF(i,"normal",!1)})!==!1}});var tI=h(()=>{"use strict";var gF=Z(),yF=eI(),_F=Er(),bF=!_F("isSupersetOf",function(e){return!e});gF({target:"Set",proto:!0,real:!0,forced:bF},{isSupersetOf:yF})});var nI=h((D8,rI)=>{"use strict";var wF=_r(),ud=br(),IF=ja(),EF=Ir(),kF=wr(),SF=ud.add,xF=ud.has,AF=ud.remove;rI.exports=function(t){var r=wF(this),n=EF(t).getIterator(),i=IF(r);return kF(n,function(o){xF(r,o)?AF(i,o):SF(i,o)}),i}});var iI=h(()=>{"use strict";var CF=Z(),TF=nI(),OF=Er();CF({target:"Set",proto:!0,real:!0,forced:!OF("symmetricDifference")},{symmetricDifference:TF})});var aI=h((M8,oI)=>{"use strict";var PF=_r(),RF=br().add,NF=ja(),DF=Ir(),LF=wr();oI.exports=function(t){var r=PF(this),n=DF(t).getIterator(),i=NF(r);return LF(n,function(o){RF(i,o)}),i}});var sI=h(()=>{"use strict";var qF=Z(),MF=aI(),UF=Er();qF({target:"Set",proto:!0,real:!0,forced:!UF("union")},{union:MF})});var Ki=h((j8,lI)=>{"use strict";var FF=mn(),jF=String;lI.exports=function(e){if(FF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return jF(e)}});var pI=h((J8,dI)=>{"use strict";var dd=be(),JF=xi(),BF=Ki(),GF=Ur(),HF=dd("".charAt),cI=dd("".charCodeAt),$F=dd("".slice),uI=function(e){return function(t,r){var n=BF(GF(t)),i=JF(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=cI(n,i),a<55296||a>56319||i+1===o||(s=cI(n,i+1))<56320||s>57343?e?HF(n,i):a:e?$F(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};dI.exports={codeAt:uI(!1),charAt:uI(!0)}});var vI=h(()=>{"use strict";var VF=pI().charAt,zF=Ki(),hI=Hr(),WF=wa(),fI=Ia(),mI="String Iterator",KF=hI.set,YF=hI.getterFor(mI);WF(String,"String",function(e){KF(this,{type:mI,string:zF(e),index:0})},function(){var t=YF(this),r=t.string,n=t.index,i;return n>=r.length?fI(void 0,!0):(i=VF(r,n),t.index+=i.length,fI(i,!1))})});var yI=h((H8,gI)=>{"use strict";ka();Hu();y0();B0();V0();K0();X0();tI();iI();sI();vI();var QF=Dt();gI.exports=QF.Set});var bI=h(($8,_I)=>{"use strict";var XF=yI();rd();_I.exports=XF});var II=h((V8,wI)=>{wI.exports=bI()});var kI=h(EI=>{"use strict";EI.f=Object.getOwnPropertySymbols});var CI=h((W8,AI)=>{"use strict";var SI=Qe(),ZF=be(),ej=Et(),tj=pe(),pd=Ru(),rj=kI(),nj=Cc(),ij=un(),oj=Xo(),In=Object.assign,xI=Object.defineProperty,aj=ZF([].concat);AI.exports=!In||tj(function(){if(SI&&In({b:1},In(xI({},"a",{enumerable:!0,get:function(){xI(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}),In({},e)[r]!==7||pd(In({},t)).join("")!==n})?function(t,r){for(var n=ij(t),i=arguments.length,o=1,a=rj.f,s=nj.f;i>o;)for(var l=oj(arguments[o++]),c=a?aj(pd(l),a(l)):pd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!SI||ej(s,l,p))&&(n[p]=l[p]);return n}:In});var OI=h(()=>{"use strict";var sj=Z(),TI=CI();sj({target:"Object",stat:!0,arity:2,forced:Object.assign!==TI},{assign:TI})});var RI=h((Q8,PI)=>{"use strict";OI();var lj=Dt();PI.exports=lj.Object.assign});var DI=h((X8,NI)=>{"use strict";var cj=RI();NI.exports=cj});var qI=h((Z8,LI)=>{LI.exports=DI()});var fd=h((eK,MI)=>{"use strict";MI.exports=`
|
|
20
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var jI=h((tK,FI)=>{"use strict";var uj=be(),dj=Ur(),pj=Ki(),md=fd(),UI=uj("".replace),fj=RegExp("^["+md+"]+"),hj=RegExp("(^|[^"+md+"])["+md+"]+$"),hd=function(e){return function(t){var r=pj(dj(t));return e&1&&(r=UI(r,fj,"")),e&2&&(r=UI(r,hj,"$1")),r}};FI.exports={start:hd(1),end:hd(2),trim:hd(3)}});var HI=h((rK,GI)=>{"use strict";var mj=Au().PROPER,vj=pe(),JI=fd(),BI="\u200B\x85\u180E";GI.exports=function(e){return vj(function(){return!!JI[e]()||BI[e]()!==BI||mj&&JI[e].name!==e})}});var $I=h(()=>{"use strict";var gj=Z(),yj=jI().trim,_j=HI();gj({target:"String",proto:!0,forced:_j("trim")},{trim:function(){return yj(this)}})});var zI=h((oK,VI)=>{"use strict";$I();var bj=_t();VI.exports=bj("String","trim")});var KI=h((aK,WI)=>{"use strict";var wj=Ye(),Ij=zI(),vd=String.prototype;WI.exports=function(e){var t=e.trim;return typeof e=="string"||e===vd||wj(vd,e)&&t===vd.trim?Ij:t}});var QI=h((sK,YI)=>{"use strict";var Ej=KI();YI.exports=Ej});var ZI=h((lK,XI)=>{XI.exports=QI()});var rE=h(()=>{"use strict";var kj=Z(),eE=Ai(),Sj=eu(),xj=Ce(),tE=Cu(),Aj=hn(),Cj=vr(),Tj=ou(),Oj=Be(),Pj=Ti(),Rj=Ri(),Nj=Pj("slice"),Dj=Oj("species"),gd=Array,Lj=Math.max;kj({target:"Array",proto:!0,forced:!Nj},{slice:function(t,r){var n=Cj(this),i=Aj(n),o=tE(t,i),a=tE(r===void 0?i:r,i),s,l,c;if(eE(n)&&(s=n.constructor,Sj(s)&&(s===gd||eE(s.prototype))?s=void 0:xj(s)&&(s=s[Dj],s===null&&(s=void 0)),s===gd||s===void 0))return Rj(n,o,a);for(l=new(s===void 0?gd:s)(Lj(a-o,0)),c=0;o<a;o++,c++)o in n&&Tj(l,c,n[o]);return l.length=c,l}})});var iE=h((dK,nE)=>{"use strict";rE();var qj=_t();nE.exports=qj("Array","slice")});var aE=h((pK,oE)=>{"use strict";var Mj=Ye(),Uj=iE(),yd=Array.prototype;oE.exports=function(e){var t=e.slice;return e===yd||Mj(yd,e)&&t===yd.slice?Uj:t}});var lE=h((fK,sE)=>{"use strict";var Fj=aE();sE.exports=Fj});var uE=h((hK,cE)=>{cE.exports=lE()});var _d=x(()=>{});var pE=h((vK,dE)=>{"use strict";var jj=Ce(),Jj=Kt(),Bj=Be(),Gj=Bj("match");dE.exports=function(e){var t;return jj(e)&&((t=e[Gj])!==void 0?!!t:Jj(e)==="RegExp")}});var hE=h((gK,fE)=>{"use strict";var Hj=pE(),$j=TypeError;fE.exports=function(e){if(Hj(e))throw new $j("The method doesn't accept regular expressions");return e}});var vE=h((yK,mE)=>{"use strict";var Vj=Be(),zj=Vj("match");mE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[zj]=!1,"/./"[e](t)}catch(n){}}return!1}});var _E=h(()=>{"use strict";var Wj=Z(),Kj=_i(),Yj=$c().f,Qj=Qc(),gE=Ki(),Xj=hE(),Zj=Ur(),e2=vE(),t2=cn(),r2=Kj("".slice),n2=Math.min,yE=e2("startsWith"),i2=!t2&&!yE&&!!function(){var e=Yj(String.prototype,"startsWith");return e&&!e.writable}();Wj({target:"String",proto:!0,forced:!i2&&!yE},{startsWith:function(t){var r=gE(Zj(this));Xj(t);var n=Qj(n2(arguments.length>1?arguments[1]:void 0,r.length)),i=gE(t);return r2(r,n,n+i.length)===i}})});var wE=h((wK,bE)=>{"use strict";_E();var o2=_t();bE.exports=o2("String","startsWith")});var EE=h((IK,IE)=>{"use strict";var a2=Ye(),s2=wE(),bd=String.prototype;IE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===bd||a2(bd,e)&&t===bd.startsWith?s2:t}});var SE=h((EK,kE)=>{"use strict";var l2=EE();kE.exports=l2});var AE=h((kK,xE)=>{xE.exports=SE()});var RE=h((SK,PE)=>{"use strict";var TE=be(),c2=Fr(),u2=Ce(),d2=ut(),CE=Ri(),p2=sn(),OE=Function,f2=TE([].concat),h2=TE([].join),wd={},m2=function(e,t,r){if(!d2(wd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";wd[t]=OE("C,a","return new C("+h2(n,",")+")")}return wd[t](e,r)};PE.exports=p2?OE.bind:function(t){var r=c2(this),n=r.prototype,i=CE(arguments,1),o=function(){var s=f2(i,CE(arguments));return this instanceof o?m2(r,s.length,s):r.apply(t,s)};return u2(n)&&(o.prototype=n),o}});var DE=h(()=>{"use strict";var v2=Z(),NE=RE();v2({target:"Function",proto:!0,forced:Function.bind!==NE},{bind:NE})});var qE=h((CK,LE)=>{"use strict";DE();var g2=_t();LE.exports=g2("Function","bind")});var UE=h((TK,ME)=>{"use strict";var y2=Ye(),_2=qE(),Id=Function.prototype;ME.exports=function(e){var t=e.bind;return e===Id||y2(Id,e)&&t===Id.bind?_2:t}});var jE=h((OK,FE)=>{"use strict";var b2=UE();FE.exports=b2});var BE=h((PK,JE)=>{JE.exports=jE()});function os(e,t){we.__h&&we.__h(ce,e,ro||t),ro=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return ro=1,w2(Ok,e)}function w2(e,t,r){var n=os(An++,2);if(n.t=e,!n.__c&&(n.__=[Ok(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Gd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Sk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Vr(e,t){var r=os(An++,3);!we.__s&&Tk(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Xi(e){return ro=5,tr(function(){return{current:e}},[])}function tr(e,t){var r=os(An++,7);return Tk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return ro=8,tr(function(){return e},t)}function I2(e){var t=ce.context[e.__c],r=os(An++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function E2(){for(var e;e=Ck.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,$a),(0,Te.default)(r=e.__H.__h).call(r,Pd),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function k2(e){var t,r=function(){clearTimeout(n),YE&&cancelAnimationFrame(t),(0,jt.default)(e)},n=(0,jt.default)(r,100);YE&&(t=requestAnimationFrame(r))}function $a(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Pd(e){var t=ce;e.__c=e.__(),ce=t}function Tk(e,t){return!e||e.length!==t.length||(0,Za.default)(t).call(t,function(r,n){return r!==e[n]})}function Ok(e,t){return typeof t=="function"?t(e):t}function S2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rd(){throw new Error("setTimeout has not been defined")}function Nd(){throw new Error("clearTimeout has not been defined")}function Rk(e){if(Lt===jt.default)return(0,jt.default)(e,0);if((Lt===Rd||!Lt)&&jt.default)return Lt=jt.default,(0,jt.default)(e,0);try{return Lt(e,0)}catch(t){try{return Lt.call(null,e,0)}catch(r){return Lt.call(this,e,0)}}}function x2(e){if(qt===clearTimeout)return clearTimeout(e);if((qt===Nd||!qt)&&clearTimeout)return qt=clearTimeout,clearTimeout(e);try{return qt(e)}catch(t){try{return qt.call(null,e)}catch(r){return qt.call(this,e)}}}function A2(){!kn||!kr||(kn=!1,kr.length?er=(0,is.default)(kr).call(kr,er):Va=-1,er.length&&Nk())}function Nk(){if(!kn){var e=Rk(A2);kn=!0;for(var t=er.length;t;){for(kr=er,er=[];++Va<t;)kr&&kr[Va].run();Va=-1,t=er.length}kr=null,kn=!1,x2(e)}}function Dk(e,t){this.fun=e,this.array=t}function nr(){}function O2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function P2(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 L2(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Mk(e){return(0,Vd.default)(e).call(e)}function q2(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Dd(e,t){return(0,rr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function no(e,t,r){return(0,zd.default)(e).call(e,t,r)}function Mt(e){return e.length}function Qd(e){return e.length}function Ja(e,t){return t.push(e),e}function M2(e,t){return(0,to.default)(e).call(e,t).join("")}function ls(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ss,column:Cn,length:a,return:""}}function Yi(e,t){return D2(ls("",null,null,"",null,null,0),e,{length:-e.length},t)}function U2(){return Ie}function F2(){return Ie=tt>0?qe(On,--tt):0,Cn--,Ie===10&&(Cn=1,ss--),Ie}function dt(){return Ie=tt<Uk?qe(On,tt++):0,Cn++,Ie===10&&(Cn=1,ss++),Ie}function Bt(){return qe(On,tt)}function za(){return tt}function co(e,t){return no(On,e,t)}function io(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 Fk(e){return ss=Cn=1,Uk=Mt(On=e),tt=0,[]}function jk(e){return On="",e}function Wa(e){return Mk(co(tt-1,Ld(e===91?e+2:e===40?e+1:e)))}function j2(e){for(;(Ie=Bt())&&Ie<33;)dt();return io(e)>2||io(Ie)>3?"":" "}function J2(e,t){for(;--t&&dt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return co(e,za()+(t<6&&Bt()==32&&dt()==32))}function Ld(e){for(;dt();)switch(Ie){case e:return tt;case 34:case 39:e!==34&&e!==39&&Ld(Ie);break;case 40:e===41&&Ld(e);break;case 92:dt();break}return tt}function B2(e,t){for(;dt()&&e+Ie!==57&&!(e+Ie===84&&Bt()===47););return"/*"+co(t,tt-1)+"*"+as(e===47?e:dt())}function G2(e){for(;!io(Bt());)dt();return co(e,tt)}function H2(e){return jk(Ka("",null,null,null,[""],e=Fk(e),0,[0],e))}function Ka(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",A=i,P=o,C=n,S=k;y;)switch(m=b,b=dt()){case 40:if(m!=108&&qe(S,u-1)==58){Dd(S+=Y(Wa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Wa(b);break;case 9:case 10:case 13:case 32:S+=j2(m);break;case 92:S+=J2(za()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Ja($2(B2(dt(),za()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Mt(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&Mt(S)-u&&Ja(f>32?XE(S+";",n,r,u-1):XE(Y(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(Ja(C=QE(S,t,r,c,d,i,s,k,A=[],P=[],u),o),b===123)if(d===0)Ka(S,t,C,C,A,o,u,s,P);else switch(p===99&&qe(S,3)===110?100:p){case 100:case 109:case 115:Ka(e,C,C,n&&Ja(QE(e,C,C,0,0,i,s,k,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Ka(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Mt(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&F2()==125)continue}switch(S+=as(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Mt(S)-1)*v,v=1;break;case 64:Bt()===45&&(S+=Wa(dt())),p=Bt(),d=u=Mt(k=S+=G2(za())),b++;break;case 45:m===45&&Mt(S)==2&&(g=0)}}return o}function QE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Qd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=no(e,u+1,u=N2(g=a[m])),k=e;v<f;++v)(k=Mk(g>0?p[v]+" "+b:Y(b,/&\f/g,p[v])))&&(l[y++]=k);return ls(e,t,r,i===0?Kd:s,l,c,d)}function $2(e,t,r){return ls(e,t,r,Wd,as(U2()),no(e,2,-2),0)}function XE(e,t,r,n){return ls(e,t,r,Yd,no(e,0,n),no(e,n+1,-1),n)}function Sn(e,t){for(var r="",n=Qd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function V2(e,t,r,n){switch(e.type){case R2:case Yd:return e.return=e.return||e.value;case Wd:return"";case qk:return e.return=e.value+"{"+Sn(e.children,n)+"}";case Kd:e.value=e.props.join(",")}return Mt(r=Sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function z2(e){var t=Qd(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 W2(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bk(e,t){switch(L2(e,t)){case 5103:return H+"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 H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+ts+e+Ge+e+e;case 6828:case 4268:return H+e+Ge+e+e;case 6165:return H+e+Ge+"flex-"+e+e;case 5187:return H+e+Y(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return H+e+Ge+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return H+e+Ge+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+Ge+Y(e,"shrink","negative")+e;case 5292:return H+e+Ge+Y(e,"basis","preferred-size")+e;case 6060:return H+"box-"+Y(e,"-grow","")+H+e+Ge+Y(e,"grow","positive")+e;case 4554:return H+Y(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,H+"$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(Mt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+ts+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dd(e,"stretch")?Bk(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Mt(e)-3-(~Dd(e,"!important")&&10))){case 107:return Y(e,":",":"+H)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(qe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return H+e+Ge+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Ge+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Ge+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+Ge+e+e}return e}function Hk(){if(tk)return Ba.exports;tk=1;let e=Hk();return Ba.exports={default:e},Ba.exports.default=e,Ba.exports}function oo(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function lJ(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 uJ(e){var t=(0,xk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ao(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ut={name:i.name,styles:i.styles,next:Ut},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ut={name:a.name,styles:a.styles,next:Ut},a=a.next;var s=o.styles+";";return s}return fJ(e,t,r)}case"function":{if(e!==void 0){var l=Ut,c=r(e);return Ut=l,ao(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function fJ(e,t,r){var n="";if((0,eo.default)(r))for(var i=0;i<r.length;i++)n+=ao(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]+"}":rk(s)&&(n+=kd(o)+":"+nk(o,s)+";")}else if((0,eo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)rk(a[l])&&(n+=kd(o)+":"+nk(o,a[l])+";");else{var c=ao(e,t,a);switch(o){case"animation":case"animationName":{n+=kd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Sr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ut=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ao(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ao(r,t,e[s]),n){var l=o;i+=l[s]}ik.lastIndex=0;for(var c="",d;(d=ik.exec(i))!==null;)c+="-"+d[1];var u=lJ(i)+c;return{name:u,styles:i,next:Ut}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Sr(t)}function kJ(e,t,r){var n=[],i=oo(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--AJ,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function uo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return Vr(()=>{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 CB(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 tS(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=CB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function TB(e){let t=()=>tS(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function RB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=PB(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",J(O({},a),{ref:c,src:t!=null?t:"",style:O({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",J(O({},a),{ref:c,className:i,children:r}))}function NB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,J(O({},i.props),{style:J(O({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,J(O({},e.props),{style:J(O({},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 UB(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function vk(e,t,r){return us.call(t,"css")?_(tp,Kk(e,t),r):_(e,t,r)}function HB(e,t,r){return us.call(t,"css")?_(tp,Kk(e,t),r):_(e,t,r)}function jd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function zB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:_("div",{style:O({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 YB({children:e,style:t}){return _("div",{style:`${WB.styles} ${t}`,children:[e,_("svg",{style:`${KB.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 uG(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function vS(e){return(0,Vd.default)(e).call(e)}function dG(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function Jd(e,t){return(0,rr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function so(e,t,r){return(0,zd.default)(e).call(e,t,r)}function Ft(e){return e.length}function op(e){return e.length}function Ha(e,t){return t.push(e),e}function pG(e,t){return(0,to.default)(e).call(e,t).join("")}function ms(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hs,column:Tn,length:a,return:""}}function Qi(e,t){return cG(ms("",null,null,"",null,null,0),e,{length:-e.length},t)}function fG(){return Ee}function hG(){return Ee=rt>0?Me(Nn,--rt):0,Tn--,Ee===10&&(Tn=1,hs--),Ee}function pt(){return Ee=rt<gS?Me(Nn,rt++):0,Tn++,Ee===10&&(Tn=1,hs++),Ee}function Gt(){return Me(Nn,rt)}function Ya(){return rt}function fo(e,t){return so(Nn,e,t)}function lo(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 yS(e){return hs=Tn=1,gS=Ft(Nn=e),rt=0,[]}function _S(e){return Nn="",e}function Qa(e){return vS(fo(rt-1,Bd(e===91?e+2:e===40?e+1:e)))}function mG(e){for(;(Ee=Gt())&&Ee<33;)pt();return lo(e)>2||lo(Ee)>3?"":" "}function vG(e,t){for(;--t&&pt()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return fo(e,Ya()+(t<6&&Gt()==32&&pt()==32))}function Bd(e){for(;pt();)switch(Ee){case e:return rt;case 34:case 39:e!==34&&e!==39&&Bd(Ee);break;case 40:e===41&&Bd(e);break;case 92:pt();break}return rt}function gG(e,t){for(;pt()&&e+Ee!==57&&!(e+Ee===84&&Gt()===47););return"/*"+fo(t,rt-1)+"*"+fs(e===47?e:pt())}function yG(e){for(;!lo(Gt());)pt();return fo(e,rt)}function _G(e){return _S(Xa("",null,null,null,[""],e=yS(e),0,[0],e))}function Xa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",A=i,P=o,C=n,S=k;y;)switch(m=b,b=pt()){case 40:if(m!=108&&Me(S,u-1)==58){Jd(S+=V(Qa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Qa(b);break;case 9:case 10:case 13:case 32:S+=mG(m);break;case 92:S+=vG(Ya()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Ha(bG(gG(pt(),Ya()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ft(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=V(S,/\f/g,"")),f>0&&Ft(S)-u&&Ha(f>32?yk(S+";",n,r,u-1):yk(V(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(Ha(C=gk(S,t,r,c,d,i,s,k,A=[],P=[],u),o),b===123)if(d===0)Xa(S,t,C,C,A,o,u,s,P);else switch(p===99&&Me(S,3)===110?100:p){case 100:case 108:case 109:case 115:Xa(e,C,C,n&&Ha(gk(e,C,C,0,0,i,s,k,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Xa(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ft(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&hG()==125)continue}switch(S+=fs(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ft(S)-1)*v,v=1;break;case 64:Gt()===45&&(S+=Qa(pt())),p=Gt(),d=u=Ft(k=S+=yG(Ya())),b++;break;case 45:m===45&&Ft(S)==2&&(g=0)}}return o}function gk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=op(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=so(e,u+1,u=lG(g=a[m])),k=e;v<f;++v)(k=vS(g>0?p[v]+" "+b:V(b,/&\f/g,p[v])))&&(l[y++]=k);return ms(e,t,r,i===0?np:s,l,c,d)}function bG(e,t,r){return ms(e,t,r,hS,fs(fG()),so(e,2,-2),0)}function yk(e,t,r,n){return ms(e,t,r,ip,so(e,0,n),so(e,n+1,-1),n)}function xn(e,t){for(var r="",n=op(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function wG(e,t,r,n){switch(e.type){case sG:if(e.children.length)break;case aG:case ip:return e.return=e.return||e.value;case hS:return"";case mS:return e.return=e.value+"{"+xn(e.children,n)+"}";case np:e.value=e.props.join(",")}return Ft(r=xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function IG(e){var t=op(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 EG(e){return function(t){t.root||(t=t.return)&&e(t)}}function bS(e,t){switch(uG(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+ns+e+He+e+e;case 6828:case 4268:return $+e+He+e+e;case 6165:return $+e+He+"flex-"+e+e;case 5187:return $+e+V(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return $+e+He+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return $+e+He+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+He+V(e,"shrink","negative")+e;case 5292:return $+e+He+V(e,"basis","preferred-size")+e;case 6060:return $+"box-"+V(e,"-grow","")+$+e+He+V(e,"grow","positive")+e;case 4554:return $+V(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+ns+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jd(e,"stretch")?bS(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Ft(e)-3-(~Jd(e,"!important")&&10))){case 107:return V(e,":",":"+$)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Me(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return $+e+He+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+He+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+He+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+He+e+e}return e}function bk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Td(e,t,r){var n=[],i=oo(e,n,r);return n.length<2?r:i+t(n)}function Ek(e){if(e==="top"){let t=0;wS.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${wk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${wk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Ik)})}else if(e==="center"){let t=0;IS.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Ik)})}}function ho(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Zi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),mr(_(jG,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Zi.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Zi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Gd,Sk,Te,is,Za,jt,es,eo,Hd,rr,to,xk,Ak,$d,Vd,zd,qK,Od,An,ce,Ed,GE,ro,Ck,we,HE,$E,VE,zE,WE,KE,YE,Pk,ve,Lt,qt,er,kn,kr,Va,C2,Oe,T2,Lk,Ge,ts,H,Wd,Kd,Yd,R2,qk,N2,as,D2,ss,Cn,Uk,tt,Ie,On,K2,Y2,Q2,ZE,X2,Z2,eJ,tJ,rJ,Jk,nJ,ek,iJ,oJ,aJ,Gk,Ba,tk,sJ,Xd,cs,cJ,dJ,pJ,$k,rk,kd,nk,ik,Ut,hJ,Vk,zk,ok,us,Zd,Wk,ep,ds,mJ,vJ,gJ,yJ,_J,qd,Md,Kk,bJ,tp,wJ,ak,IJ,EJ,SJ,xJ,Sd,sk,xd,Ad,AJ,Cd,CJ,TJ,OJ,PJ,RJ,NJ,DJ,lk,LJ,qJ,ck,MJ,UJ,uk,FJ,jJ,dk,JJ,BJ,GJ,HJ,$J,VJ,zJ,WJ,pk,KJ,YJ,QJ,XJ,ZJ,eB,tB,rB,fk,nB,iB,oB,aB,sB,lB,cB,uB,dB,pB,fB,hB,mB,vB,gB,yB,_B,bB,wB,IB,EB,kB,SB,xB,Yk,Qk,Xk,Ud,AB,Zk,eS,rs,Zi,hk,OB,ps,PB,rS,nS,iS,DB,LB,qB,Fd,MB,oS,aS,po,sS,Pn,mk,$r,lS,En,FB,jB,JB,BB,GB,Ga,cS,rp,he,$B,VB,WB,KB,xt,QB,XB,uS,dS,pS,fS,Rn,ZB,eG,tG,rG,nG,iG,oG,He,ns,$,hS,np,ip,aG,mS,sG,lG,fs,cG,hs,Tn,gS,rt,Ee,Nn,kG,SG,xG,_k,AG,CG,TG,OG,PG,RG,NG,DG,LG,qG,MG,UG,wk,Ik,wS,IS,zr,kk,FG,jG,MK,ir=x(()=>{"use strict";an();Gd=ie(mg(),1),Sk=ie(Sg(),1),Te=ie(Ug(),1),is=ie(Zg(),1),Za=ie(ly(),1),jt=ie(xy(),1);da();da();es=ie(u_(),1),eo=ie(g_(),1),Hd=ie(Nw(),1),rr=ie(Gw(),1),to=ie(Xw(),1),xk=ie(o0(),1),Ak=ie(II(),1),$d=ie(qI(),1),Vd=ie(ZI(),1),zd=ie(uE(),1);_d();_d();qK=ie(AE(),1),Od=ie(BE(),1),ro=0,Ck=[],we=R,HE=we.__b,$E=we.__r,VE=we.diffed,zE=we.__c,WE=we.unmount,KE=we.__;we.__b=function(e){ce=null,HE&&HE(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),KE&&KE(e,t)},we.__r=function(e){var t,r,n;$E&&$E(e),An=0;var i=(ce=e.__c).__H;i&&(Ed===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,$a),(0,Te.default)(n=i.__h).call(n,Pd),i.__h=[],An=0)),Ed=ce},we.diffed=function(e){var t;VE&&VE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Ck.push(r)!==1&&GE===we.requestAnimationFrame||((GE=we.requestAnimationFrame)||k2)(E2)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ed=ce=null},we.__c=function(e,t){(0,Za.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,$a),r.__h=(0,Gd.default)(i=r.__h).call(i,function(o){return!o.__||Pd(o)})}catch(o){(0,Za.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),zE&&zE(e,t)},we.unmount=function(e){var t;WE&&WE(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{$a(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};YE=typeof requestAnimationFrame=="function";Pk={exports:{}},ve=Pk.exports={};(function(){try{typeof jt.default=="function"?Lt=jt.default:Lt=Rd}catch(e){Lt=Rd}try{typeof clearTimeout=="function"?qt=clearTimeout:qt=Nd}catch(e){qt=Nd}})();er=[],kn=!1,Va=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];er.push(new Dk(e,t)),er.length===1&&!kn&&Rk(Nk)};Dk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=nr;ve.addListener=nr;ve.once=nr;ve.off=nr;ve.removeListener=nr;ve.removeAllListeners=nr;ve.emit=nr;ve.prependListener=nr;ve.prependOnceListener=nr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};C2=Pk.exports,Oe=S2(C2),T2=es.default||void 0||self;Lk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(P2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=O2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ge="-ms-",ts="-moz-",H="-webkit-",Wd="comm",Kd="rule",Yd="decl",R2="@import",qk="@keyframes",N2=Math.abs,as=String.fromCharCode,D2=$d.default;ss=1,Cn=1,Uk=0,tt=0,Ie=0,On="";K2=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!io(i);)dt();return co(e,tt)},Y2=function(e,t){var r=-1,n=44;do switch(io(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=K2(tt-1,t,r);break;case 2:e[r]+=Wa(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=as(n)}while(n=dt());return e},Q2=function(e,t){return jk(Y2(Fk(e),t))},ZE=new Hd.default,X2=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ZE.get(r))&&!n){ZE.set(e,!0);for(var i=[],o=Q2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},Z2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},eJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",tJ=function(e){var t;return e.type==="comm"&&(0,rr.default)(t=e.children).call(t,eJ)>-1},rJ=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(tJ(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Jk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},nJ=function(e,t){for(var r=e-1;r>=0;r--)if(!Jk(t[r]))return!0;return!1},ek=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},iJ=function(e,t,r){Jk(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."),ek(e)):nJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ek(e)))};oJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yd:e.return=Bk(e.value,e.length);break;case qk:return Sn([Yi(e,{value:Y(e.value,"@","@"+H)})],n);case Kd:if(e.length)return M2(e.props,function(i){switch(q2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sn([Yi(e,{props:[Y(i,/:(read-\w+)/,":"+ts+"$1")]})],n);case"::placeholder":return Sn([Yi(e,{props:[Y(i,/:(plac\w+)/,":"+H+"input-$1")]}),Yi(e,{props:[Y(i,/:(plac\w+)/,":"+ts+"$1")]}),Yi(e,{props:[Y(i,/:(plac\w+)/,Ge+"input-$1")]})],n)}return""})}},aJ=[oJ],Gk=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
21
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||aJ;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[X2,Z2];Oe.env.NODE_ENV!=="production"&&l.push(rJ({get compat(){return f.compat}}),iJ);{var c,d=[V2,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Wd&&c.insert(m.value+"{}"))}:W2(function(m){c.insert(m)})],u=z2((0,is.default)(l).call(l,n,d)),p=function(m){return Sn(H2(m),u)};s=function(m,g,y,v){c=y,Oe.env.NODE_ENV!=="production"&&(0,to.default)(g)!==void 0&&(c={insert:function(b){y.insert(b+(0,to.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Lk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},Ba={exports:{}};Hk();sJ=!0;Xd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||sJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},cs=function(e,t,r){Xd(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)}};cJ={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};dJ=/[A-Z]|^ms/g,pJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$k=function(e){return e.charCodeAt(1)===45},rk=function(e){return e!=null&&typeof e!="boolean"},kd=uJ(function(e){return $k(e)?e:e.replace(dJ,"-$&").toLowerCase()}),nk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(pJ,function(r,n,i){return Ut={name:n,styles:i,next:Ut},n})}return cJ[e]!==1&&!$k(e)&&typeof t=="number"&&t!==0?t+"px":t};ik=/label:\s*([^\s;{]+)\s*(;|$)/g;hJ=function(e){return e()},Vk=mu?mu:!1,zk=Vk||hJ,ok=Vk||vn,us={}.hasOwnProperty,Zd=qr(typeof HTMLElement<"u"?Gk({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(Zd.displayName="EmotionCacheContext");Wk=Zd.Provider,ep=function(e){return gu(function(t,r){var n=yn(Zd);return e(t,n,r)})},ds=qr({});Oe.env.NODE_ENV!=="production"&&(ds.displayName="EmotionThemeContext");mJ=function(e){var t=e.split(".");return t[t.length-1]},vJ=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 mJ(t[1])},gJ=new Ak.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),yJ=function(e){return e.replace(/\$/g,"-")},_J=function(e){if(e)for(var t=e.split(`
|
|
22
|
+
`),r=0;r<t.length;r++){var n=vJ(t[r]);if(n){if(gJ.has(n))break;if(/^[A-Z]/.test(n))return yJ(n)}}},qd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Md="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Kk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,rr.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)us.call(t,o)&&(i[o]=t[o]);if(i[qd]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,rr.default)(n=t.css.name).call(n,"-")===-1)){var a=_J(new Error().stack);a&&(i[Md]=a)}return i},bJ=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Xd(t,r,n),zk(function(){return cs(t,r,n)}),null},tp=ep(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[qd],a=[i],s="";typeof e.className=="string"?s=oo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Sr(a,void 0,yn(ds));if(Oe.env.NODE_ENV!=="production"&&(0,rr.default)(n=l.name).call(n,"-")===-1){var c=e[Md];c&&(l=Sr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)us.call(e,u)&&u!=="css"&&u!==qd&&(Oe.env.NODE_ENV==="production"||u!==Md)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(bJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(tp.displayName="EmotionCssPropInternal");wJ={version:"11.10.5"},ak=!1,IJ=ep(function(e,t){Oe.env.NODE_ENV!=="production"&&!ak&&(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?"),ak=!0);var r=e.styles,n=Sr([r],void 0,yn(ds)),i=qi();return ok(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),ok(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&cs(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(IJ.displayName="EmotionGlobal");EJ=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,eo.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};SJ=function(e){var t=e.cache,r=e.serializedArr;return zk(function(){for(var n=0;n<r.length;n++)cs(t,r[n],!1)}),null},xJ=ep(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Sr(c,t.registered);return n.push(u),Xd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return kJ(t.registered,i,EJ(c))},a={css:i,cx:o,theme:yn(ds)},s=e.children(a);return r=!0,Je(De,null,Je(SJ,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(xJ.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Sd=!0,sk=typeof jest<"u"||typeof vi<"u",Sd&&!sk&&(xd=typeof es.default<"u"?es.default:Sd?window:T2,Ad="__EMOTION_REACT_"+wJ.version.split(".")[0]+"__",xd[Ad]&&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."),xd[Ad]=!0));AJ=0;Cd={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"}},CJ=D`
|
|
23
23
|
width: 100%;
|
|
24
24
|
overflow: auto;
|
|
25
25
|
margin: 0 auto;
|
|
26
|
-
`,
|
|
26
|
+
`,TJ=`
|
|
27
27
|
@keyframes fadeIn {
|
|
28
28
|
from { opacity: 0; }
|
|
29
29
|
to { opacity: 1; }
|
|
@@ -67,44 +67,44 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
67
67
|
.fadeIn {
|
|
68
68
|
animation: fadeIn 0.3s ease forwards;
|
|
69
69
|
}
|
|
70
|
-
`,dB=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Ut(!1),[c,d]=Ut(null),[u,p]=Ut(!1),f=Bi(null),m=Bi(null),g=Bi(!1);Br(()=>{if(s&&f.current){let q=f.current.ownerDocument,Re=q.createElement("style");Re.innerHTML=uB,q.head.appendChild(Re);let Ne={overflow:q.body.style.overflow,position:q.body.style.position,width:q.body.style.width};return q.body.style.overflow="hidden",q.body.style.position="fixed",q.body.style.width="100%",()=>{q.head.contains(Re)&&q.head.removeChild(Re),q.body.style.overflow=Ne.overflow,q.body.style.position=Ne.position,q.body.style.width=Ne.width}}},[s]),Br(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let _=_t(q=>{q.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=_t(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=_t(q=>{r||(q.preventDefault(),q.stopPropagation(),v())},[v]),I=_t(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=_t(()=>s&&!g.current,[s]);if(Br(()=>{if(a){let q={show:I,hide:v,isOpen:A};typeof a=="function"?a(q):a&&(a.current=q)}},[I,v,A,a]),!s)return null;let C=o==="center",O=j(T({},_d.drawerBackdrop),{alignItems:C?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),x={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},P=C?j(T({},_d.centerDrawer),{pointerEvents:"auto"}):j(T({},_d.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!C&&(P.transform="translateY(100%)");let J=c?C?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",We=c?`backdrop-${c}`:"";return y("div",{ref:f,style:O,children:[y("div",{style:x,className:We,onClick:b}),y("div",{ref:m,style:j(T({},P),{opacity:C&&c===null&&!u?0:1}),className:`${C&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:_,onClick:q=>q.stopPropagation(),children:y("div",{style:cB.styles,children:e})})]})},pB=lu(dB);fB={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"},hB={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!"},tE={jolicoin:fB,loginGuide:hB},mB={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"},vB={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\u5DF2\u83B7\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u5F00\u59CB\u89E3\u9501\uFF01"},rE={jolicoin:mB,loginGuide:vB},gB={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"},yB={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!"},nE={jolicoin:gB,loginGuide:yB},_B={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"},bB={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!"},iE={jolicoin:_B,loginGuide:bB},wB={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"},IB={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\u0E40\u0E25\u0E22!"},SB={jolicoin:wB,loginGuide:IB},EB={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"},xB={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! B\u1EAFt \u0111\u1EA7u m\u1EDF kh\xF3a ngay!"},kB={jolicoin:EB,loginGuide:xB},AB={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"},TB={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! Nakuha mo na ang {{coin}} Jolicoin! Simulan ang pag-unlock ngayon!"},oE={jolicoin:AB,loginGuide:TB},CB={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"},PB={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. \xA1Comienza a desbloquear ahora!"},OB={jolicoin:CB,loginGuide:PB},RB={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"},NB={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\u4ECA\u3059\u3050\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},DB={jolicoin:RB,loginGuide:NB},LB={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"},qB={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!"},aE={jolicoin:LB,loginGuide:qB},FB={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"},MB={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! \uC9C0\uAE08 \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},UB={jolicoin:FB,loginGuide:MB},jB={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"},BB={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\u5DF2\u7372\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u958B\u59CB\u89E3\u9396\uFF01"},JB={jolicoin:jB,loginGuide:BB},HB={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"},$B={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! Starten Sie jetzt die Entsperrung!"},VB={jolicoin:HB,loginGuide:$B},GB={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"},zB={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 ! D\xE9bloquez maintenant !"},WB={jolicoin:GB,loginGuide:zB},KB={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"},QB={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:"\u092C\u0927\u093E\u0908 \u0939\u094B! \u0906\u092A\u0928\u0947 {{coin}} Jolicoin \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u093F\u092F\u093E \u0939\u0948! \u0905\u092D\u0940 \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},YB={jolicoin:KB,loginGuide:QB},XB={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"},ZB={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 \u0441\u0435\u0439\u0447\u0430\u0441!"},eJ={jolicoin:XB,loginGuide:ZB},tJ={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"},rJ={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!"},nJ={jolicoin:tJ,loginGuide:rJ},iJ={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"},oJ={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!"},aJ={jolicoin:iJ,loginGuide:oJ},HE={en:{translations:tE},en_GB:{translations:tE},zh:{translations:rE},"zh-Hans":{translations:rE},"zh-Hant":{translations:JB},id:{translations:nE},in:{translations:nE},ms:{translations:iE},my:{translations:iE},th:{translations:SB},vi:{translations:kB},fil:{translations:oE},tl:{translations:oE},es:{translations:OB},ja:{translations:DB},pt:{translations:aE},pt_PT:{translations:aE},ko:{translations:UB},de:{translations:VB},fr:{translations:WB},hi:{translations:YB},ru:{translations:eJ},bn:{translations:nJ},tr:{translations:aJ}},$E=Or(void 0),VE=({definition:e,children:t})=>{let r={translations:e};return y($E.Provider,{value:r,children:t})},Cd=null,sJ={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"},GE=e=>{Cd=e},zE=()=>{var e;if(typeof Cd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Cd();return(e=sJ[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};za=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=qE({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=cJ(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(WE(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"))}},Ji=new za(99999998,"auto"),sE=new za(99999999,"none"),uJ=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Zi(),l={container:N`
|
|
70
|
+
`,OJ=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=Xi(null),m=Xi(null),g=Xi(!1);Vr(()=>{if(s&&f.current){let q=f.current.ownerDocument,Re=q.createElement("style");Re.innerHTML=TJ,q.head.appendChild(Re);let Ne={overflow:q.body.style.overflow,position:q.body.style.position,width:q.body.style.width};return q.body.style.overflow="hidden",q.body.style.position="fixed",q.body.style.width="100%",()=>{q.head.contains(Re)&&q.head.removeChild(Re),q.body.style.overflow=Ne.overflow,q.body.style.position=Ne.position,q.body.style.width=Ne.width}}},[s]),Vr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let y=bt(q=>{q.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=bt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=bt(q=>{r||(q.preventDefault(),q.stopPropagation(),v())},[v]),k=bt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=bt(()=>s&&!g.current,[s]);if(Vr(()=>{if(a){let q={show:k,hide:v,isOpen:A};typeof a=="function"?a(q):a&&(a.current=q)}},[k,v,A,a]),!s)return null;let P=o==="center",C=J(O({},Cd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),S={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},T=P?J(O({},Cd.centerDrawer),{pointerEvents:"auto"}):J(O({},Cd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(T.transform="translateY(100%)");let j=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:S,className:Ke,onClick:b}),_("div",{ref:m,style:J(O({},T),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":j} ${i}`,onAnimationEnd:y,onClick:q=>q.stopPropagation(),children:_("div",{style:CJ.styles,children:e})})]})},PJ=gu(OJ);RJ={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"},NJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},DJ={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:RJ,joligem:NJ,loginGuide:DJ},LJ={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"},qJ={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\u5DF2\u83B7\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u5F00\u59CB\u89E3\u9501\uFF01"},ck={jolicoin:LJ,loginGuide:qJ},MJ={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"},UJ={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:MJ,loginGuide:UJ},FJ={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"},jJ={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin! Mulai membuka sekarang!"},dk={jolicoin:FJ,loginGuide:jJ},JJ={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"},BJ={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\u0E40\u0E25\u0E22!"},GJ={jolicoin:JJ,loginGuide:BJ},HJ={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"},$J={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! B\u1EAFt \u0111\u1EA7u m\u1EDF kh\xF3a ngay!"},VJ={jolicoin:HJ,loginGuide:$J},zJ={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"},WJ={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! Nakuha mo na ang {{coin}} Jolicoin! Simulan ang pag-unlock ngayon!"},pk={jolicoin:zJ,loginGuide:WJ},KJ={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"},YJ={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. \xA1Comienza a desbloquear ahora!"},QJ={jolicoin:KJ,loginGuide:YJ},XJ={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"},ZJ={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\u4ECA\u3059\u3050\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},eB={jolicoin:XJ,loginGuide:ZJ},tB={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"},rB={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!"},fk={jolicoin:tB,loginGuide:rB},nB={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"},iB={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! \uC9C0\uAE08 \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},oB={jolicoin:nB,loginGuide:iB},aB={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"},sB={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\u5DF2\u7372\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u958B\u59CB\u89E3\u9396\uFF01"},lB={jolicoin:aB,loginGuide:sB},cB={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"},uB={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! Starten Sie jetzt die Entsperrung!"},dB={jolicoin:cB,loginGuide:uB},pB={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"},fB={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 ! D\xE9bloquez maintenant !"},hB={jolicoin:pB,loginGuide:fB},mB={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"},vB={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:"\u092C\u0927\u093E\u0908 \u0939\u094B! \u0906\u092A\u0928\u0947 {{coin}} Jolicoin \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u093F\u092F\u093E \u0939\u0948! \u0905\u092D\u0940 \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},gB={jolicoin:mB,loginGuide:vB},yB={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"},_B={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 \u0441\u0435\u0439\u0447\u0430\u0441!"},bB={jolicoin:yB,loginGuide:_B},wB={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"},IB={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!"},EB={jolicoin:wB,loginGuide:IB},kB={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"},SB={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!"},xB={jolicoin:kB,loginGuide:SB},Yk={en:{translations:lk},en_GB:{translations:lk},zh:{translations:ck},"zh-Hans":{translations:ck},"zh-Hant":{translations:lB},id:{translations:uk},in:{translations:uk},ms:{translations:dk},my:{translations:dk},th:{translations:GJ},vi:{translations:VJ},fil:{translations:pk},tl:{translations:pk},es:{translations:QJ},ja:{translations:eB},pt:{translations:fk},pt_PT:{translations:fk},ko:{translations:oB},de:{translations:dB},fr:{translations:hB},hi:{translations:gB},ru:{translations:bB},bn:{translations:EB},tr:{translations:xB}},Qk=qr(void 0),Xk=({definition:e,children:t})=>{let r={translations:e};return _(Qk.Provider,{value:r,children:t})},Ud=null,AB={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"},Zk=e=>{Ud=e},eS=()=>{var e;if(typeof Ud!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Ud();return(e=AB[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};rs=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=Gk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=TB(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(tS(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"))}},Zi=new rs(99999998,"auto"),hk=new rs(99999999,"none"),OB=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=uo(),l={container:D`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
height: 100%;
|
|
74
74
|
width: 100%;
|
|
75
75
|
max-width: ${s==="portrait"?"440px":"75%"};
|
|
76
76
|
margin: 0 auto;
|
|
77
|
-
`,header:
|
|
77
|
+
`,header:D`
|
|
78
78
|
padding: 16px;
|
|
79
79
|
border-bottom: 1px solid #eee;
|
|
80
80
|
display: flex;
|
|
81
81
|
justify-content: space-between;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,content:
|
|
83
|
+
`,content:D`
|
|
84
84
|
padding: ${i};
|
|
85
85
|
flex: 1;
|
|
86
86
|
overflow: auto;
|
|
87
|
-
`,footer:
|
|
87
|
+
`,footer:D`
|
|
88
88
|
padding: 16px;
|
|
89
89
|
border-top: 1px solid #eee;
|
|
90
90
|
display: flex;
|
|
91
91
|
justify-content: flex-end;
|
|
92
92
|
gap: 8px;
|
|
93
|
-
`,closeButton:
|
|
93
|
+
`,closeButton:D`
|
|
94
94
|
background: none;
|
|
95
95
|
border: none;
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
font-size: 20px;
|
|
98
|
-
`,button:
|
|
98
|
+
`,button:D`
|
|
99
99
|
padding: 8px 16px;
|
|
100
100
|
border-radius: 4px;
|
|
101
101
|
border: 1px solid #ddd;
|
|
102
102
|
cursor: pointer;
|
|
103
|
-
`};return
|
|
103
|
+
`};return _("div",{className:l.container.name,children:[!r&&_("div",{className:l.header.name,children:[_("h3",{children:e}),_("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),_("div",{className:l.content.name,children:t}),o&&o.length>0&&_("div",{className:l.footer.name,children:o.map((c,d)=>_("button",{className:D`
|
|
104
104
|
${l.button}
|
|
105
105
|
background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
|
|
106
106
|
color: ${c.variant==="primary"?"#fff":"#333"};
|
|
107
|
-
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},
|
|
107
|
+
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},ps=e=>{let t=!1,r=eS(),n=Yk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),mr(_(Wk,{value:a,children:_(Xk,{definition:n,children:_(PJ,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(OB,J(O({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}Zi.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield Zi.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},PB=(e,t={threshold:.6})=>{let r=Xi(null),n=Xi(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Vr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};rS=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=O({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",J(O({className:r,style:s},i),{children:e}))},nS=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=O({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?NB(e,t):e;return _("div",J(O({className:i,style:u},a),{children:p}))};iS=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=O({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",J(O({className:l,style:f},d),{children:e}))},DB=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=gn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=gn(()=>{},[e,t]);return _(iS,{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:_(RB,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),_("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)},LB=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(rS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(nS,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>_(DB,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},qB=vu(LB),Fd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Fd||{}),MB=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===Fd.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=uo();if(!t.length)return _(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
|
|
108
108
|
.recommend-panel {
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
@@ -226,19 +226,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
226
226
|
background-color: #7817FF;
|
|
227
227
|
color: #fff;
|
|
228
228
|
}
|
|
229
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return
|
|
229
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Vr(()=>{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:_(qB,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Fd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),_("div",{ref:d})},oS=e=>{let t=ps({title:e.title,content:_(MB,{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},aS="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=",po="https://fe-oss.jolibox.com/static/coin/jolicoin.png",sS="https://fe-oss.jolibox.com/static/coin/gem.png";Pn=()=>{let e=I2(Qk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=UB(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}},mk=({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})}),$r={coinInfo:D`
|
|
230
230
|
display: flex;
|
|
231
231
|
width: calc(100% - 40px);
|
|
232
232
|
max-width: 720px;
|
|
233
233
|
justify-content: space-between;
|
|
234
|
-
`,coinAmount:
|
|
234
|
+
`,coinAmount:D`
|
|
235
235
|
display: flex;
|
|
236
236
|
flex-direction: row;
|
|
237
237
|
gap: 4px;
|
|
238
238
|
align-items: center;
|
|
239
239
|
flex: 1;
|
|
240
240
|
min-width: 0;
|
|
241
|
-
`,coinAmountBalance:
|
|
241
|
+
`,coinAmountBalance:D`
|
|
242
242
|
display: flex;
|
|
243
243
|
flex-direction: row;
|
|
244
244
|
gap: 4px;
|
|
@@ -246,7 +246,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
246
246
|
justify-content: flex-end;
|
|
247
247
|
flex: 1;
|
|
248
248
|
min-width: 0;
|
|
249
|
-
`,coinLabelContainer:
|
|
249
|
+
`,coinLabelContainer:D`
|
|
250
250
|
font-weight: 600;
|
|
251
251
|
text-align: center;
|
|
252
252
|
flex-shrink: 1;
|
|
@@ -254,17 +254,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
254
254
|
min-width: 30px;
|
|
255
255
|
overflow: hidden;
|
|
256
256
|
color: #fff;
|
|
257
|
-
`,coinValue:
|
|
257
|
+
`,coinValue:D`
|
|
258
258
|
display: flex;
|
|
259
259
|
align-items: center;
|
|
260
260
|
gap: 3px;
|
|
261
261
|
font-size: 22px;
|
|
262
262
|
font-weight: 900;
|
|
263
263
|
color: #fdde9d;
|
|
264
|
-
`,coinIcon:
|
|
264
|
+
`,coinIcon:D`
|
|
265
265
|
width: 16px;
|
|
266
266
|
height: 16px;
|
|
267
|
-
`,autoExpandLabel:
|
|
267
|
+
`,autoExpandLabel:D`
|
|
268
268
|
font-weight: 700;
|
|
269
269
|
text-align: center;
|
|
270
270
|
flex-shrink: 1;
|
|
@@ -275,7 +275,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
275
275
|
max-width: 70vw;
|
|
276
276
|
display: inline-block;
|
|
277
277
|
vertical-align: middle;
|
|
278
|
-
`,coinValueText:
|
|
278
|
+
`,coinValueText:D`
|
|
279
279
|
font-weight: 600;
|
|
280
280
|
text-align: center;
|
|
281
281
|
flex-shrink: 1;
|
|
@@ -283,7 +283,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
283
283
|
font-size: 16px;
|
|
284
284
|
font-weight: 600;
|
|
285
285
|
color: #d9d9d9;
|
|
286
|
-
`},
|
|
286
|
+
`},lS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=po,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Pn(),c=14,d=tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:$r.coinInfo.styles,children:[!i&&_("div",{style:$r.coinAmount.styles,children:[_(mk,{text:l("jolicoin.price"),initialFontSize:c,styles:$r.coinLabelContainer.styles}),_("div",{style:$r.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:$r.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:$r.coinAmountBalance.styles,children:_(mk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:$r.coinValueText.styles})})]})},En={card:D`
|
|
287
287
|
display: flex;
|
|
288
288
|
flex-direction: column;
|
|
289
289
|
align-items: center;
|
|
@@ -295,46 +295,46 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
295
295
|
transition: all 0.2s ease;
|
|
296
296
|
border: 1px solid transparent;
|
|
297
297
|
-webkit-tap-highlight-color: transparent;
|
|
298
|
-
`,selectedCard:
|
|
298
|
+
`,selectedCard:D`
|
|
299
299
|
background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
|
|
300
300
|
border-color: #7e41ff !important;
|
|
301
301
|
-webkit-tap-highlight-color: transparent;
|
|
302
|
-
`,coinContainer:
|
|
302
|
+
`,coinContainer:D`
|
|
303
303
|
display: flex;
|
|
304
304
|
align-items: center;
|
|
305
305
|
margin-bottom: 8px;
|
|
306
|
-
`,coinIcon:
|
|
306
|
+
`,coinIcon:D`
|
|
307
307
|
width: 21px;
|
|
308
308
|
height: 21px;
|
|
309
309
|
margin-right: 4px;
|
|
310
|
-
`,coinValue:
|
|
310
|
+
`,coinValue:D`
|
|
311
311
|
font-size: 20px;
|
|
312
312
|
font-weight: bold;
|
|
313
313
|
color: white;
|
|
314
|
-
`,price:
|
|
314
|
+
`,price:D`
|
|
315
315
|
font-size: 16px;
|
|
316
316
|
color: #C093FF;
|
|
317
317
|
font-weight: bold;
|
|
318
|
-
`},
|
|
318
|
+
`},FB=D`
|
|
319
319
|
box-sizing: border-box;
|
|
320
320
|
width: 100%;
|
|
321
321
|
aspect-ratio: 1/1;
|
|
322
|
-
`,
|
|
322
|
+
`,jB=D`
|
|
323
323
|
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
324
324
|
display: flex;
|
|
325
325
|
flex-direction: column;
|
|
326
326
|
justify-content: center;
|
|
327
327
|
-webkit-tap-highlight-color: transparent;
|
|
328
|
-
`,
|
|
328
|
+
`,JB=e=>_("div",{style:FB.styles,children:_("div",{style:jB.styles,children:_("div",{style:`${En.card.styles} ${e.option.id===e.selectedId?En.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:En.coinContainer.styles,children:[_("img",{src:po,alt:"Coin",style:En.coinIcon.styles}),_("span",{style:En.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:En.price.styles,children:e.option.price})]})})}),BB=({options:e,selectedId:t,onSelect:r,coinImageSrc:n=po})=>{let i=uo(),o=a=>{r==null||r(a)};return _(rS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(nS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(a=>_(iS,{span:i==="landscape"?4:8,children:_(JB,{option:a,selectedId:t,coinImageSrc:n,handleSelect:o})},a.id))})})},GB=vu(BB);Ga={toggleSwitch:D`
|
|
329
329
|
position: relative;
|
|
330
330
|
display: inline-block;
|
|
331
331
|
width: 33px;
|
|
332
332
|
height: 18px;
|
|
333
|
-
`,toggleInput:
|
|
333
|
+
`,toggleInput:D`
|
|
334
334
|
opacity: 0;
|
|
335
335
|
width: 15px;
|
|
336
336
|
height: 15px;
|
|
337
|
-
`,toggleSlider:
|
|
337
|
+
`,toggleSlider:D`
|
|
338
338
|
position: absolute;
|
|
339
339
|
cursor: pointer;
|
|
340
340
|
top: 0;
|
|
@@ -356,13 +356,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
356
356
|
transition: 0.4s;
|
|
357
357
|
border-radius: 50%;
|
|
358
358
|
}
|
|
359
|
-
`,toggleSliderActive:
|
|
359
|
+
`,toggleSliderActive:D`
|
|
360
360
|
background-color: #6a3de8;
|
|
361
361
|
|
|
362
362
|
&:before {
|
|
363
363
|
transform: translateX(18px);
|
|
364
364
|
}
|
|
365
|
-
`},
|
|
365
|
+
`},cS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>HB("label",{css:Ga.toggleSwitch,children:[vk("input",{css:Ga.toggleInput,type:"checkbox",checked:e,onChange:t}),vk("span",{css:[Ga.toggleSlider,e&&Ga.toggleSliderActive]})]}),rp=()=>_("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)"})})})]}),he={modal:D`
|
|
366
366
|
font-family: PingFangSC-Regular;
|
|
367
367
|
background-color: #1a1a1a;
|
|
368
368
|
color: white;
|
|
@@ -374,22 +374,22 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
374
374
|
margin: 0 auto;
|
|
375
375
|
display: flex;
|
|
376
376
|
flex-direction: column;
|
|
377
|
-
`,header:
|
|
377
|
+
`,header:D`
|
|
378
378
|
display: flex;
|
|
379
379
|
justify-content: space-between;
|
|
380
380
|
align-items: center;
|
|
381
|
-
`,closeButton:
|
|
381
|
+
`,closeButton:D`
|
|
382
382
|
background: none;
|
|
383
383
|
border: none;
|
|
384
384
|
cursor: pointer;
|
|
385
385
|
color: white;
|
|
386
386
|
padding: 0px;
|
|
387
|
-
`,content:
|
|
387
|
+
`,content:D`
|
|
388
388
|
display: flex;
|
|
389
389
|
flex-direction: column;
|
|
390
390
|
gap: 8px;
|
|
391
391
|
padding-right: 8px;
|
|
392
|
-
`,title:
|
|
392
|
+
`,title:D`
|
|
393
393
|
font-size: 14px;
|
|
394
394
|
font-weight: 600;
|
|
395
395
|
line-height: 24px;
|
|
@@ -397,12 +397,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
397
397
|
color: #fff;
|
|
398
398
|
padding: 8px 0;
|
|
399
399
|
text-align: center;
|
|
400
|
-
`,autoDeductOption:
|
|
400
|
+
`,autoDeductOption:D`
|
|
401
401
|
display: flex;
|
|
402
402
|
justify-content: space-between;
|
|
403
403
|
align-items: center;
|
|
404
404
|
-webkit-tap-highlight-color: transparent;
|
|
405
|
-
`,buttonContainer:
|
|
405
|
+
`,buttonContainer:D`
|
|
406
406
|
display: flex;
|
|
407
407
|
width: 100%;
|
|
408
408
|
gap: 16px;
|
|
@@ -413,7 +413,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
413
413
|
flex-direction: row;
|
|
414
414
|
gap: 16px;
|
|
415
415
|
}
|
|
416
|
-
`,buttonFlex:
|
|
416
|
+
`,buttonFlex:D`
|
|
417
417
|
width: 100%;
|
|
418
418
|
flex: 1 1 100%;
|
|
419
419
|
|
|
@@ -421,7 +421,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
421
421
|
width: 50%;
|
|
422
422
|
flex: 1 1 50%;
|
|
423
423
|
}
|
|
424
|
-
`,confirmButton:
|
|
424
|
+
`,confirmButton:D`
|
|
425
425
|
background-color: #6a3de8;
|
|
426
426
|
color: white;
|
|
427
427
|
border: none;
|
|
@@ -432,7 +432,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
432
432
|
cursor: pointer;
|
|
433
433
|
transition: background-color 0.3s;
|
|
434
434
|
-webkit-tap-highlight-color: transparent;
|
|
435
|
-
`,cancelButton:
|
|
435
|
+
`,cancelButton:D`
|
|
436
436
|
background-color: transparent;
|
|
437
437
|
color: #d9d9d9;
|
|
438
438
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
@@ -443,26 +443,26 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
443
443
|
cursor: pointer;
|
|
444
444
|
transition: background-color 0.3s;
|
|
445
445
|
-webkit-tap-highlight-color: transparent;
|
|
446
|
-
`,bottomIndicator:
|
|
446
|
+
`,bottomIndicator:D`
|
|
447
447
|
width: 40px;
|
|
448
448
|
height: 4px;
|
|
449
449
|
background-color: rgba(255, 255, 255, 0.3);
|
|
450
450
|
border-radius: 2px;
|
|
451
451
|
margin: 0 auto;
|
|
452
452
|
-webkit-tap-highlight-color: transparent;
|
|
453
|
-
`}
|
|
453
|
+
`},$B=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=uo(),{t:p}=Pn(),f=()=>{i(c)},m=tr(()=>n==="JOLI_GEM"?sS:po,[n]),g=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=bt(()=>{d(!c),a(!c)},[c]);return _("div",{style:`${he.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:he.header.styles,children:[_(lS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:he.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(rp,{})})]}),_("div",{style:he.content.styles,children:[_("h2",{style:he.title.styles,children:p(g)}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
|
|
454
454
|
font-size: 12px;
|
|
455
455
|
font-weight: 400;
|
|
456
456
|
line-height: 1.2;
|
|
457
457
|
color: #979797;
|
|
458
|
-
`.styles,children:
|
|
458
|
+
`.styles,children:p(y)}),_(cS,{enableAutoDeduct:c,toggleEnableAutoDeduct:v})]}),_("section",{style:`${he.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},VB=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Pn(),[m,g]=Jt(()=>{var C,S;return((C=n.find(T=>T.defaultSelected))==null?void 0:C.productId)||((S=n==null?void 0:n[0])==null?void 0:S.productId)}),y=uo(),v=()=>{o(m)},b=bt(C=>{console.log(C),g(C),l(C)},[]),k=bt(()=>{p(!u),s(!u)},[u]),A=tr(()=>i==="JOLI_GEM"?sS:po,[i]),P=tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:he.modal.styles,children:[_("div",{style:he.header.styles,children:[_(lS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:A,currency:i}),_("button",{style:he.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(rp,{})})]}),_("div",{style:he.content.styles,children:[_("div",{style:D`
|
|
459
459
|
padding: 16px 0px;
|
|
460
|
-
`.styles,children:
|
|
460
|
+
`.styles,children:_(GB,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:A,selectedId:m,onSelect:C=>b(C.id)})}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
|
|
461
461
|
font-size: 12px;
|
|
462
462
|
font-weight: 400;
|
|
463
463
|
line-height: 1.2;
|
|
464
464
|
color: #979797;
|
|
465
|
-
`.styles,children:
|
|
465
|
+
`.styles,children:f(P)}),_(cS,{enableAutoDeduct:u,toggleEnableAutoDeduct:k})]}),_("section",{style:`${he.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:v,children:f(c)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};WB=D`
|
|
466
466
|
display: inline-flex;
|
|
467
467
|
align-items: center;
|
|
468
468
|
justify-content: center;
|
|
@@ -479,18 +479,18 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
479
479
|
white-space: nowrap;
|
|
480
480
|
text-overflow: ellipsis;
|
|
481
481
|
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
482
|
-
`,
|
|
482
|
+
`,KB=D`
|
|
483
483
|
position: absolute;
|
|
484
484
|
left: 20%;
|
|
485
485
|
bottom: -9px;
|
|
486
486
|
transform: translateX(-50%);
|
|
487
487
|
z-index: 2;
|
|
488
488
|
pointer-events: none;
|
|
489
|
-
`;
|
|
489
|
+
`;xt=J(O({},he),{header:D`
|
|
490
490
|
display: flex;
|
|
491
491
|
justify-content: flex-end;
|
|
492
492
|
align-items: center;
|
|
493
|
-
`,introduct:
|
|
493
|
+
`,introduct:D`
|
|
494
494
|
display: flex;
|
|
495
495
|
flex-direction: column;
|
|
496
496
|
align-items: center;
|
|
@@ -498,20 +498,20 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
498
498
|
margin-top: 24px;
|
|
499
499
|
gap: 8px;
|
|
500
500
|
padding: 0 20px;
|
|
501
|
-
`,introductSubTitle:
|
|
501
|
+
`,introductSubTitle:D`
|
|
502
502
|
font-size: 14px;
|
|
503
503
|
color: rgb(255, 255, 255);
|
|
504
504
|
opacity: 0.5;
|
|
505
505
|
line-height: 21px;
|
|
506
506
|
text-align: center;
|
|
507
507
|
font-weight: 600;
|
|
508
|
-
`,introductTitle:
|
|
508
|
+
`,introductTitle:D`
|
|
509
509
|
font-size: 16px;
|
|
510
510
|
color: #ffffff;
|
|
511
511
|
line-height: 24px;
|
|
512
512
|
text-align: center;
|
|
513
513
|
font-weight: 600;
|
|
514
|
-
`,tipsBubble:
|
|
514
|
+
`,tipsBubble:D`
|
|
515
515
|
display: inline-flex;
|
|
516
516
|
align-items: center;
|
|
517
517
|
justify-content: center;
|
|
@@ -540,7 +540,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
540
540
|
border-top: 8px solid #4f396d;
|
|
541
541
|
z-index: 2;
|
|
542
542
|
}
|
|
543
|
-
`}),OJ={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()},RJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=Sn(),l=OJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${kt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(AJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:kt.header.styles,children:y("button",{style:`${kt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(Wd,{})})}),y("div",{style:kt.introduct.styles,children:[a?y("span",{style:kt.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:kt.introductTitle.styles,children:y(Od,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:Wa,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${kt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(PJ,{children:y(Od,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(De,{children:[y("img",{src:Wa,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${kt.confirmButton.styles} ${kt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${kt.cancelButton.styles} ${kt.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},tx=e=>{let t=is({title:"",content:y(xJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},rx=e=>{let t=is({title:"",content:y(kJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},nx=e=>{let t=is({title:"",content:y(RJ,{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},ix=new Map,En=(e,t)=>{ix.set(e,t)};En(/^\{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 y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("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"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});En(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Wa;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});NJ=/^\{slot-i18n-(.+?)\}/,DJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Sn(),i=n(e,t);return y("span",{children:i||r})};En(NJ,(e,t)=>{var n;let r=e[1];return r?y(DJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});LJ=/^\{slot-i18ntran-(.+?)\}/,qJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Sn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(Od,{children:o||n,values:T(T({},t),a)})},FJ={coin:e=>y(De,{children:[y("img",{src:Wa,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};En(LJ,(e,t)=>{var n,i;let r=e[1];return r?y(qJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:FJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});MJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";En(/^\{slot-success\}/,(e,t)=>y("img",{src:MJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));UJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";En(/^\{slot-error\}/,(e,t)=>y("img",{src:UJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));$e="-ms-",Ka="-moz-",$="-webkit-",ox="comm",Kd="rule",Qd="decl",jJ="@import",ax="@keyframes",BJ="@layer",JJ=Math.abs,os=String.fromCharCode,HJ=qd.default;as=1,wn=1,lx=0,tt=0,Se=0,xn="";i5=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!Yi(i);)dt();return to(e,tt)},o5=function(e,t){var r=-1,n=44;do switch(Yi(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=i5(tt-1,t,r);break;case 2:e[r]+=Ja(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=os(n)}while(n=dt());return e},a5=function(e,t){return ux(o5(cx(e),t))},pE=new Ld.default,s5=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&&!pE.get(r))&&!n){pE.set(e,!0);for(var i=[],o=a5(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},l5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};c5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qd:e.return=dx(e.value,e.length);break;case ax:return yn([ji(e,{value:V(e.value,"@","@"+$)})],n);case Kd:if(e.length)return GJ(e.props,function(i){switch(VJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([ji(e,{props:[V(i,/:(read-\w+)/,":"+Ka+"$1")]})],n);case"::placeholder":return yn([ji(e,{props:[V(i,/:(plac\w+)/,":"+$+"input-$1")]}),ji(e,{props:[V(i,/:(plac\w+)/,":"+Ka+"$1")]}),ji(e,{props:[V(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},u5=[c5],d5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||u5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[s5,l5];{var c,d=[t5,n5(function(m){c.insert(m)})],u=r5((0,Qa.default)(l).call(l,n,d)),p=function(m){return yn(ZJ(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new TE({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};p5=function(e){var t=d5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=br(s,t.registered,void 0);return ts(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=br(s,t.registered),d="animation-"+c.name;return fE(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=br(s,t.registered);fE(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return bd(t.registered,r,f5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,wd.default)(Wi).call(Wi,null,t.registered),merge:(0,wd.default)(bd).call(bd,null,t.registered,r)}},f5=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,Hi.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},h5=p5({key:"css"}),m5=h5.css,v5=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[l,c]of ix.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=m5`
|
|
543
|
+
`}),QB={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()},XB=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Pn(),c=QB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${xt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(zB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:xt.header.styles,children:_("button",{style:`${xt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(rp,{})})}),_("div",{style:xt.introduct.styles,children:[s?_("span",{style:xt.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:xt.introductTitle.styles,children:_(jd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${xt.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:_(YB,{children:_(jd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${xt.confirmButton.styles} ${xt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${xt.cancelButton.styles} ${xt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},uS=e=>{let t=ps({title:"",content:_($B,{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},dS=e=>{let t=ps({title:"",content:_(VB,{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},pS=e=>{let t=ps({title:"",content:_(XB,{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},fS=new Map,Rn=(e,t)=>{fS.set(e,t)};Rn(/^\{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"})})})]})})});Rn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:aS;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});ZB=/^\{slot-i18n-(.+?)\}/,eG=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Pn(),i=n(e,t);return _("span",{children:i||r})};Rn(ZB,(e,t)=>{var n;let r=e[1];return r?_(eG,{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:""}))});tG=/^\{slot-i18ntran-(.+?)\}/,rG=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Pn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(jd,{children:o||n,values:O(O({},t),a)})},nG={coin:e=>_(De,{children:[_("img",{src:aS,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Rn(tG,(e,t)=>{var n,i;let r=e[1];return r?_(rG,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:nG,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});iG="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Rn(/^\{slot-success\}/,(e,t)=>_("img",{src:iG,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));oG="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Rn(/^\{slot-error\}/,(e,t)=>_("img",{src:oG,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));He="-ms-",ns="-moz-",$="-webkit-",hS="comm",np="rule",ip="decl",aG="@import",mS="@keyframes",sG="@layer",lG=Math.abs,fs=String.fromCharCode,cG=$d.default;hs=1,Tn=1,gS=0,rt=0,Ee=0,Nn="";kG=function(e,t,r){for(var n=0,i=0;n=i,i=Gt(),n===38&&i===12&&(t[r]=1),!lo(i);)pt();return fo(e,rt)},SG=function(e,t){var r=-1,n=44;do switch(lo(n)){case 0:n===38&&Gt()===12&&(t[r]=1),e[r]+=kG(rt-1,t,r);break;case 2:e[r]+=Qa(n);break;case 4:if(n===44){e[++r]=Gt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fs(n)}while(n=pt());return e},xG=function(e,t){return _S(SG(yS(e),t))},_k=new Hd.default,AG=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&&!_k.get(r))&&!n){_k.set(e,!0);for(var i=[],o=xG(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},CG=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};TG=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ip:e.return=bS(e.value,e.length);break;case mS:return xn([Qi(e,{value:V(e.value,"@","@"+$)})],n);case np:if(e.length)return pG(e.props,function(i){switch(dG(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Qi(e,{props:[V(i,/:(read-\w+)/,":"+ns+"$1")]})],n);case"::placeholder":return xn([Qi(e,{props:[V(i,/:(plac\w+)/,":"+$+"input-$1")]}),Qi(e,{props:[V(i,/:(plac\w+)/,":"+ns+"$1")]}),Qi(e,{props:[V(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},OG=[TG],PG=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||OG,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[AG,CG];{var c,d=[wG,EG(function(m){c.insert(m)})],u=IG((0,is.default)(l).call(l,n,d)),p=function(m){return xn(_G(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Lk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};RG=function(e){var t=PG(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered,void 0);return cs(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered),d="animation-"+c.name;return bk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered);bk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Td(t.registered,r,NG(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Od.default)(oo).call(oo,null,t.registered),merge:(0,Od.default)(Td).call(Td,null,t.registered,r)}},NG=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,eo.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},DG=RG({key:"css"}),LG=DG.css,qG=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[l,c]of fS.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=LG`
|
|
544
544
|
display: 'flex',
|
|
545
545
|
alignItems: 'flex-start',
|
|
546
546
|
gap: '4px',
|
|
@@ -551,7 +551,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
551
551
|
fontWeight: 600,
|
|
552
552
|
lineHeight: '18px',
|
|
553
553
|
width: 'max-content'
|
|
554
|
-
`;return r.length===1?r[0]:
|
|
554
|
+
`;return r.length===1?r[0]:_("div",{className:i,children:r})},MG=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top"})=>{let[o,a]=Jt(!0);Vr(()=>{let c=setTimeout(()=>{a(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(c)},[r,n]);let s=tr(()=>{let c=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,c)},[]),l=D`
|
|
555
555
|
position: fixed;
|
|
556
556
|
left: 50%;
|
|
557
557
|
padding: 10px 16px;
|
|
@@ -593,7 +593,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
593
593
|
opacity: 1;
|
|
594
594
|
transform: translate(-50%, -50%) scale(1);
|
|
595
595
|
`}
|
|
596
|
-
`;return
|
|
596
|
+
`;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},UG=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),wk=Math.max(20,UG),Ik=12,wS=[],IS=[];zr=(e,t)=>w(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield hk.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"?wS:IS;s.push(o);let l=qG(e,t),c=eS(),d=Yk[c].translations;function u(){i==null||i.body.removeChild(o);let p=s.indexOf(o);p!==-1&&s.splice(p,1),Ek(a),hk.release()}setTimeout(()=>Ek(a),0),mr(_(Wk,{value:n,children:_(Xk,{definition:d,children:_(MG,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u})})}),o)}),kk={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},FG=`
|
|
597
597
|
@keyframes spin {
|
|
598
598
|
0% {
|
|
599
599
|
transform: rotate(0deg);
|
|
@@ -602,9 +602,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
602
602
|
transform: rotate(360deg);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
`,b5=()=>y("div",{style:gE.container,children:[y("style",{children:_5}),y("div",{style:gE.spinner})]});h7=ro()});function hx(){return w(this,null,function*(){if(Xd)return Xd;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return Xd=r,r})}function mx(){return w(this,null,function*(){let e=new Ct;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(Zd)return e.resolve(!0),e.promise;let t=yield hx();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Zd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};M("RecommendedGuide",T({eventType:B.View},o));let a=XE({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Zd=!1,s.type){case"quit":M("RecommendedGuide",{eventType:B.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":M("RecommendedGuide",T({eventType:B.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;w5(c),M("GameItem",{eventType:B.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:M("RecommendedGuide",T({eventType:B.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Xd,w5,Zd,vx=k(()=>{"use strict";K();_e();D();er();vt();gt();Xd=null;hx();w5=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",E.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})},Zd=!1});function S5(e){let t=T(T({},I5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:I,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Y=document.createElement("div"),Y.id="jolibox-modal-container",Y.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${I};`;let C=document.createElement("div");C.id="jolibox-modal-loading",C.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 O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let x=document.createElement("div");if(x.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",bt=document.createElement("iframe"),bt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,bt.src=r,bt.onload=()=>{C.parentNode&&C.parentNode.removeChild(C),bt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},x.appendChild(bt),x.appendChild(C),Y.appendChild(x),i){let P=document.createElement("div");P.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;",P.innerHTML="\u2715",P.onclick=v,Y.appendChild(P)}ae.appendChild(Y),document.body.appendChild(ae),ae.addEventListener("click",function(P){P.target===ae&&v()}),o&&_()}function g(){!ae||!Y||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Y&&(Y.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Y&&(Y.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function _(){if(!Y)return;let b=C=>{c=C.touches[0].clientY},I=C=>{if(!u)return;d=C.touches[0].clientY;let O=d-c;O>0&&(Y&&(Y.style.transition="none",Y.style.transform=`translateY(${O}px)`),C.preventDefault())},A=()=>{!u||!Y||(Y.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Y.style.transform="translateY(0)")};Y.addEventListener("touchstart",b),Y.addEventListener("touchmove",I),Y.addEventListener("touchend",A)}function v(){!ae||!Y||!u||(a?(Y.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Y=null,bt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function gx(){return window.joliboxUI=j(T({},window.joliboxUI),{createIframeModal:S5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Y&&Y.parentNode&&Y.parentNode.removeChild(Y),bt&&bt.parentNode&&bt.parentNode.removeChild(bt),ae=null,Y=null,bt=null}}var I5,ae,Y,bt,yx=k(()=>{"use strict";_e();K();D();I5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Y=null,bt=null});var Ix={};vf(Ix,{config:()=>D5});function x5(){Fo.on("isAdShowing",e=>{us=e,Wr(us)&&U("updateContainerConfigSync",{displayCapsuleButton:!us,webviewId:E.webviewId})})}function k5(){ne.on("onInterceptSystemExit",({intercept:e})=>{_x=e})}function A5(){ne.on("onInterceptBackPress",({intercept:e})=>{E5=e}),Ze("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;wx(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function T5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),M("onDocumentReady",{start_timestamp:ps,timestamp:Date.now()})})}function C5(){Ze("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function P5(e){E.mpType==="game"&&It.start(e)}function O5(){Ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),M("joliboxServiceReady",{start_timestamp:ps,timestamp:Date.now()}),P5(t),GE(()=>E.language)}),Ze("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;wx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function R5(){let e=()=>{M("onBeforeExit",{timestamp:Date.now()}),ls==null||ls(),cs==null||cs(),It.close(Date.now()-ps)},t=()=>us||_x;ht.onDoExit(()=>w(this,null,function*(){return t()?!0:Wr(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):ds!=null&&ds.canShowRecommended&&!bx&&(yield mx())?!0:(e(),!1)})),ht.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function N5(){return w(this,null,function*(){let e=`${E.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield te(e);t&&(ds=t)})}function D5(){ps=Date.now(),O5(),x5(),k5(),A5(),R5(),T5(),C5(),N5(),cs=gx(),ls=Lh()}var ls,cs,ps,us,ds,_x,E5,bx,wx,Sx=k(()=>{"use strict";_e();K();D();gt();qh();ac();vx();vt();er();yx();us=!1,ds=null,_x=!1,E5=!1,bx=!1,wx=e=>{Wr(e)&&(bx=e)};ht.onReady(()=>{})});function Ex(e){let t=zl.config[e];return t||(t={},zl.config[e]=t),(r,n)=>{if(t[r]){Pt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var xx=k(()=>{"use strict";D()});function ep(e){kx=e}function fs(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>fs(t)):Object.keys(e).reduce((t,r)=>(t[r]=fs(e[r]),t),{})}function tr(e){return typeof e=="number"}function tp(e){let t=rp(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function rp(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var kx,Ee,hs,ms,vs,gs,kn,ys,_s,bs,ws,Is,Ss,Es,xs,ks,As,Ts,Cs,np=k(()=>{"use strict";kx=!1;Ee=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(kx)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 ${tp(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return fs(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:fs(this._default)}optional(){return this._optional=!0,this}};hs=class extends Ee{validate(t){return this._optional&&t===void 0?!0:tr(t)?tr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):tr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):tr(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}},ms=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},vs=class extends Ee{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(tr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(tr(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}},gs=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},kn=class extends Ee{validate(t){return!0}},ys=class extends Ee{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},_s=class extends Ee{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},bs=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ws=class extends Ee{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 ${tp(t)}`)}return!0}},Is=class extends Ee{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(tr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(tr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(tr(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}},Ss=class extends Ee{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(rp(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Es=class extends Ee{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(rp(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}},xs=class extends Ee{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:tp(this.value),actual:r}):!0}},ks=class extends Ee{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(`
|
|
606
|
-
or `);this.errors.push(o)}return n}},
|
|
607
|
-
`);throw e.errors.length=0,ep(!1),new TypeError(n)}}var S,op=k(()=>{"use strict";np();np();S={object(e){return new Es(e)},array(e){return new Is(e)},tuple(...e){return new As(...e)},literal(e){return new xs(e)},or(...e){return new ks(...e)},symbol(){return new gs},record(e){return new Ss(e)},function(){return new bs},boolean(){return new ms},string(){return new vs},number(){return new hs},undefined(){return new ys},null(){return new _s},unknown(){return new kn},any(){return new kn},as(){return new kn},arraybuffer(){return new Ts},enum(...e){return new ws(...e)},typedarray(e){return new Cs(e)}}});var Ps,Ax,Tx=k(()=>{"use strict";D();mt();op();Kr();Ps=1,Ax=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Ps};Ps+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{ip(i.paramsSchema,o,"params")}catch(b){throw rc(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new ei(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=Gf(o)?o:[o],s=Date.now(),l={method:n,trace_id:Ps};Ps+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{ip(i.paramsSchema,a,"params")}catch(b){throw rc(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new ei(A,b)),u}finally{let _=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function ap(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 Cx=k(()=>{"use strict"});var Pe,G,L,Px,rt=k(()=>{"use strict";xx();gt();Tx();op();_e();K();Cx();({createAPI:Pe,createSyncAPI:G}=Ax(M)),L=Ex("native"),{canIUseNative:Px}=Nf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});var Ox,q5,F5,M5,U5,Rx=k(()=>{"use strict";D();rt();_e();K();Ox=X(),q5="env",F5="getSystemInfoSync",M5=G(F5,{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:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),U5=G(q5,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Ox.registerCommand("API.getSystemInfoSync",M5);Ox.registerCommand("API.env",U5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Nx=h(sp=>{"use strict";D();rt();mt();_e();gt();K();var j5="exitGame",B5="onReady",J5="onJoliboxShow",H5="onJoliboxHide",Os=X(),Rs=Ro(ke),$5=Pe(j5,{paramsSchema:S.tuple(S.function(),S.boolean().optional().default(!1)),implement:(e,t=!1)=>w(sp,null,function*(){Rs(e).call(sp),Wr(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Uf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),V5=G(J5,{paramsSchema:S.tuple(S.function()),implement(e){let t=Rs(e);Ze("onJoliboxEnterForeground",()=>{t.call(this),ri.emit("visible",!0)})}}),G5=G(H5,{paramsSchema:S.tuple(S.function()),implement(e){let t=Rs(e);Ze("onJoliboxEnterBackground",()=>{t.call(this),ri.emit("visible",!1)})}}),z5=G(B5,{paramsSchema:S.tuple(S.function()),implement(e){let t=Rs(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Os.registerCommand("LifecycleSDK.exit",$5);Os.registerCommand("LifecycleSDK.onReady",z5);Os.registerCommand("LifecycleSDK.onJoliboxShow",V5);Os.registerCommand("LifecycleSDK.onJoliboxHide",G5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Dx(e){let t={};if(!Tr(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 Lx(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 qx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Fx(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Tr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var Mx=k(()=>{"use strict";D()});var W5,K5,lp,cp,Ux,Q5,Y5,X5,jx=k(()=>{"use strict";Kr();ic();rt();Mx();D();mt();K();W5=15,K5=Lo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),lp=0,cp=[],Ux=Ro(ke),Q5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},Y5=e=>{let t=new Ct,r=()=>{};return G("request",{paramsSchema:S.tuple(S.object({url:S.string(),method:S.string(),headers:S.object().optional(),data:S.or(S.object(),S.array()).optional(),query:S.object().optional(),dataType:S.string().default("json"),responseType:S.string().default("text"),enableCache:S.boolean().default(!1),appendHostCookie:S.boolean().default(!0),timeout:S.number().default(3e4),success:S.function(),fail:S.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=Ux(i.fail);try{if(lp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=Dx((s=i.headers)!=null?s:{}),_=Lx(i.method),v=qx(i.timeout),b=Fx(i.url,_,d),I=Ux(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let C=K5(b,A);{let{response:O}=yield C,{code:x,data:P,message:J}=O;if(P&&typeof P=="object"&&"status"in P&&P.status!==200)throw cr({code:P.status||-1,msg:`request:fail status ${P.status}`});t.resolve({code:x!=null?x:"SUCCESS",data:P,message:J!=null?J:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:P})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{lp-=1,(c=cp.shift())==null||c()}});return lp>=W5?(r=()=>{Q5(cp,a=>a===o)},cp.push(o)):o(),t.promise}})(e),{abort(){t.reject(cr({code:-1,msg:"request:fail abort"})),r()}}},X5=X();X5.registerCommand("HttpSDK.request",Y5);L("request",{version:"1.0.0"})});function Bx(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),n3.includes(t)?t:""}function Jx(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 Hx(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 Ns,Z5,e3,t3,r3,VK,GK,n3,up,$x,dp=k(()=>{"use strict";rt();_e();D();vt();K();Ns=X(),Z5=Pe("getLocalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=Jx(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}}})}});Ns.registerCommand("StorageSDK.getItem",Z5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});e3=Pe("setStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Bx(t),l=Hx(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Ns.registerCommand("StorageSDK.setItem",e3);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});t3=Pe("removeStorage",{paramsSchema:S.tuple(S.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Ns.registerCommand("StorageSDK.removeItem",t3);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});r3=Pe("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Ns.registerCommand("StorageSDK.clear",r3);L("storage.clear",{version:"1.0.0"});VK=Pe("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});GK=G("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),n3=["string","number","boolean","object",""];up=Pe("getGlobalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Jx(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),$x=Pe("setGlobalStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number(),S.array())),implement(e,t){return w(this,null,function*(){try{let r=Bx(t),n=Hx(t,r);return yield ye("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 i3,o3,a3,pp,Vx=k(()=>{"use strict";D();_e();rt();i3=G("showKeyboard",{paramsSchema:S.tuple(S.object({defaultValue:S.string().optional().default(""),multiple:S.boolean().optional().default(!1),maxLength:S.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),U("showKeyboardSync",j(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});o3=G("updateKeyboard",{paramsSchema:S.tuple(S.object({value:S.string()})),implement(e){U("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});a3=G("hideKeyboard",{implement(){U("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});pp=X();pp.registerCommand("KeyboardSDK.showKeyboard",i3);pp.registerCommand("KeyboardSDK.updateKeyboard",o3);pp.registerCommand("KeyboardSDK.hideKeyboard",a3)});var Gx=h(Ds=>{"use strict";D();rt();gt();var fp=X(),s3=Pe("levelFinished",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),duration:S.number().optional(),rating:S.number().optional(),score:S.number().optional(),variation:S.string().optional()})),implement:e=>w(Ds,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),l3=Pe("gamePlayEnded",{paramsSchema:S.tuple(S.object({duration:S.number().optional(),rating:S.number().optional(),score:S.number(),variation:S.string().optional()})),implement:e=>w(Ds,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),c3=Pe("levelUpgrade",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),name:S.string().optional()})),implement:r=>w(Ds,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});fp.registerCommand("TaskTrackerSDK.levelFinished",s3);fp.registerCommand("TaskTrackerSDK.gamePlayEnded",l3);fp.registerCommand("TaskTrackerSDK.levelUpgrade",c3);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var hp,mp,vp,u3,zx,Ls=k(()=>{"use strict";K();_e();rt();D();Kr();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});hp=new Map;Ze("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=hp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),hp.delete(r))});mp=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw cr({code:-1,msg:"login failed"});let s=new Ct;hp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),vp=Pe("login",{paramsSchema:S.tuple(S.object({skipLogin:S.boolean().optional(),triggerFrom:S.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield mp(e!=null?e:{})})}}),u3=Pe("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),zx=X();zx.registerCommand("API.login",vp);zx.registerCommand("API.checkSession",u3)});var Wx,Kx=k(()=>{"use strict";Wx=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 gp(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield up(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Qx(i.data),a=Wx(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function yp(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield up(e),n=Qx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield $x(e,JSON.stringify(n))})}var Qx,Yx,Xx,Zx,ek,tk,rk,qs=k(()=>{"use strict";dp();Kx();Qx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};Yx=gp("joli_coin_use_modal_frequency"),Xx=gp("joli_coin_payment_frequency"),Zx=gp("joli_coin_unlogin_modal_frequency");ek=yp("joli_coin_use_modal_frequency"),tk=yp("joli_coin_payment_frequency"),rk=yp("joli_coin_unlogin_modal_frequency")});var _p,Fs,bp=k(()=>{"use strict";vt();_p=Promise.resolve(),Fs=e=>w(void 0,null,function*(){_p=_p.then(()=>w(void 0,null,function*(){yield te("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield _p})});var Ms,Us,At,js,Hr,wr,rr,Bs,An,d3,F,Tn,Cn,Ye=k(()=>{"use strict";D();Ms="UNLOCK_OPTIONS_CHANGED",Us="INVOKE_PAYMENT",At="ON_PAYMENT_RESULT",js="ON_USE_MODAL_EVENT",Hr="ON_USE_MODAL_RESULT",wr="ON_USE_MODAL_FREQUENCY",rr="ON_USE_UNLOGIN_MODAL_EVENT",Bs="INVOKE_UNLOGIN_MODAL_EVENT",An=new Ot,d3=()=>({on:An.on.bind(An),off:An.off.bind(An),emit:An.emit.bind(An)}),F=d3(),Tn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Cn={show:!0,minInterval:8*60*60*1e3}});function nt(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=k(()=>{"use strict"});var ok=h(wp=>{"use strict";qs();bp();Ye();Ye();er();gt();D();Ir();var nk=ro(),ik=nt(F,wr);ik.getData();F.on(js,(e,t)=>w(wp,null,function*(){if(e==="ADS-JOLI_COIN"){yield nk.show({duration:3e3});let n=yield ik.getData(),{canShow:i,isFirst:o}=yield Yx(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),nk.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){F.emit(Hr,{useModalResult:"CONFIRM"});return}if(!i){F.emit(Hr,{useModalResult:"FAILED"});return}}M("unlock_popup_show",{eventType:B.View,targetType:"game"});let r=tx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{M("coin_unlock_click",{targetType:"game",eventType:B.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),F.emit(Hr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&M("ad_unlock_click",{targetType:"game",eventType:B.Click}),F.emit(Hr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(wp,null,function*(){yield Fs(n)})}});yield ek()}))});function ak(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var sk=k(()=>{"use strict";mt()});var Js=k(()=>{"use strict"});var p3,Pn,Sr,f3,$r,Ip=k(()=>{"use strict";Js();D();K();vt();p3=()=>{let[e,t]=[Zf,th].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Pn,createPaymentInternalError:Sr}=p3(),f3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",$r=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Pn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Pn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${f3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Sp,ck,uk=k(()=>{"use strict";vt();Ip();Js();Sp=class extends $r{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Pn((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),Sr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},ck=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Sp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var dk,pk=k(()=>{"use strict";dk={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 Ep,fk,xp,kp,h3,hk,mk=k(()=>{"use strict";vt();Ip();Js();_e();D();K();er();pk();Ep=new Map;Ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Ep.get(t);if(o){if(r==="SUCCESS")Jr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&zf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Sr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=dk[r];a&&Jr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Ep.delete(t)}});fk=e=>w(void 0,null,function*(){var n,i;let t=new Ct,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Sr("orderUUID is null",1002);Ep.set(r,t)}catch(o){throw Sr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),xp=class extends $r{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield fk({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},kp=class extends $r{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield fk({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Sr("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"}})}},h3={android:xp,ios:kp},hk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=h3[E.platform];if(!s)throw Sr("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 Pn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Hs,vk=k(()=>{"use strict";sk();uk();mk();Hs=ak();Hs.registerPaymentHandler("JOLI_COIN",ck());Hs.registerPaymentHandler("JOLI_COIN_IAP",hk())});var yk=h(no=>{"use strict";Ye();er();vt();K();Ls();D();qs();vk();er();rt();_e();D();gt();bp();Ir();var On=ro(),m3=nt(F,wr);F.on(Us,(e,t)=>w(no,null,function*(){var r,n;try{if(!Px("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{F.emit(At,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield On.show({duration:3e3});let a=yield m3.getData(),{canShow:s}=yield Xx(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),On.hide(),!s){F.emit(At,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield On.show({duration:3e3});let i=yield gk();if(On.hide(),!i){F.emit(At,{paymentResult:"FAILED"});return}M("coinorder_show",{targetType:"game",eventType:B.View});let o=rx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return j(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(no,null,function*(){var c,d,u,p,f,m,g,_;if(M("order_pay_ensure",{targetType:"game",eventType:B.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=E.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield vp({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield gk();if(((p=b==null?void 0:b.balance)!=null?p:0)>=t.joliCoinQuantity){F.emit(At,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){F.emit(At,{paymentResult:"FAILED"}),o.destroy();return}yield On.show({duration:3e3});let{code:l}=yield Hs.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(On.hide(),M("order_pay_result",{eventType:B.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}F.emit(At,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{F.emit(At,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),M("ad_unlock_click",{targetType:"game",eventType:B.Click}),o.destroy()}},onEnableDeductChanged:a=>w(no,null,function*(){yield Fs(a)})},onSelect:a=>{var s,l;M("coinorder_click",{targetType:"game",eventType:B.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield tk()}catch(i){console.info("payment failed",i),F.emit(At,{paymentResult:"FAILED"})}}));var v3=(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=>!Hl(r.totalAmountStr))},gk=()=>w(no,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield te("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&v3((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var bk=h($s=>{"use strict";Ye();Ir();qs();vt();mt();D();Ls();er();gt();var _k=nt(F,wr);_k.getData();F.on(Bs,(e,t)=>w($s,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield _k.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){F.emit(rr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield Zx(o.loginGuide);if(console.log("canShowUseModal",a),!a){F.emit(rr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield g3())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),F.emit(rr,{result:"NOT_SUPPORT"});return}M("LoginGuideModal",{eventType:B.Expose},B.Expose);let i=nx({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w($s,null,function*(){var l,c,d,u;M("LoginGuideModal",{type:"click_confirm",eventType:B.Click},B.Click);let{isLogin:o,extra:a,isFirstLogin:s}=yield mp({},!0);if(!o){console.log("login failed");return}if(M("LoginGuideModal",{type:"click_confirm_login",isFirstLogin:s,eventType:B.Click},B.Click),s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:p}=a.firstLogin.reward;Jr("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:p},position:"top",duration:3e3})}F.emit(rr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{M("LoginGuideModal",{eventType:B.Hide},B.Hide),M("LoginGuideModal",{type:o==="CANCEL"?"click_close":"click_watch_ads",eventType:B.Click},B.Click),F.emit(rr,{result:"FAILED"}),i.destroy()}}}});yield rk()}catch(n){ke(new rh(n)),F.emit(rr,{result:"FAILED"})}}));var g3=()=>w($s,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var zY,WY,KY,wk=k(()=>{"use strict";zY=ie(ok()),WY=ie(yk()),KY=ie(bk())});function C3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function P3(e){return typeof e=="string"}function O3(e){return typeof e=="undefined"}function R3(e){return O3(e)||e===null}function N3(e){return typeof e=="function"}function Kk(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 io(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ws(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 j3(e){let t=e.location?Ws(e.location,Ak):null,r=e.target?Ws(e.target,Ak):null;return Ws(k3(x3({},e),{location:t,target:r}),M3)}function B3(e){let t=e.events.map(n=>j3(n)),r=Ws(e.device,U3);return[e.protocolVersion,t,r,e.project]}function J3(){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 z3(e){return new Promise(t=>Zk(e)(t))}function Zk(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 W3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new co(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function Q3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)Y3(e[n],t[n])}function Y3(e,t){if(P3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(N3(t)){try{if(e instanceof t)return}catch(r){}if(!R3(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 it(e,t,r){return(t=X3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X3(e){var t=Z3(e,"string");return typeof t=="symbol"?t:t+""}function Z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vs(e,t,r){return(t=e4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e4(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 Gs(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=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 nr(e,t,r){return(t=i4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i4(e){var t=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 a4(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 s4(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 f4(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function rA(e){return e.trim()}function h4(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function Bp(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function uo(e,t,r){return e.slice(t,r)}function Jt(e){return e.length}function nf(e){return e.length}function zs(e,t){return t.push(e),e}function m4(e,t){return e.map(t).join("")}function ll(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:sl,column:Fn,length:a,return:""}}function ao(e,t){return p4(ll("",null,null,"",null,null,0),e,{length:-e.length},t)}function v4(){return xe}function g4(){return xe=st>0?Me(Mn,--st):0,Fn--,xe===10&&(Fn=1,sl--),xe}function ft(){return xe=st<nA?Me(Mn,st++):0,Fn++,xe===10&&(Fn=1,sl++),xe}function Ht(){return Me(Mn,st)}function Ks(){return st}function fo(e,t){return uo(Mn,e,t)}function po(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iA(e){return sl=Fn=1,nA=Jt(Mn=e),st=0,[]}function oA(e){return Mn="",e}function Qs(e){return rA(fo(st-1,Jp(e===91?e+2:e===40?e+1:e)))}function y4(e){for(;(xe=Ht())&&xe<33;)ft();return po(e)>2||po(xe)>3?"":" "}function _4(e,t){for(;--t&&ft()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return fo(e,Ks()+(t<6&&Ht()==32&&ft()==32))}function Jp(e){for(;ft();)switch(xe){case e:return st;case 34:case 39:e!==34&&e!==39&&Jp(xe);break;case 40:e===41&&Jp(e);break;case 92:ft();break}return st}function b4(e,t){for(;ft()&&e+xe!==57&&!(e+xe===84&&Ht()===47););return"/*"+fo(t,st-1)+"*"+al(e===47?e:ft())}function w4(e){for(;!po(Ht());)ft();return fo(e,st)}function I4(e){return oA(Ys("",null,null,null,[""],e=iA(e),0,[0],e))}function Ys(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,x=I;_;)switch(m=b,b=ft()){case 40:if(m!=108&&Me(x,u-1)==58){Bp(x+=W(Qs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Qs(b);break;case 9:case 10:case 13:case 32:x+=y4(m);break;case 92:x+=_4(Ks()-1,7);continue;case 47:switch(Ht()){case 42:case 47:zs(S4(b4(ft(),Ks()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Jt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=W(x,/\f/g,"")),f>0&&Jt(x)-u&&zs(f>32?Ok(x+";",n,r,u-1):Ok(W(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(zs(O=Pk(x,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)Ys(x,t,O,O,A,o,u,s,C);else switch(p===99&&Me(x,3)===110?100:p){case 100:case 108:case 109:case 115:Ys(e,O,O,n&&zs(Pk(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:Ys(x,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Jt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&g4()==125)continue}switch(x+=al(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Jt(x)-1)*v,v=1;break;case 64:Ht()===45&&(x+=Qs(ft())),p=Ht(),d=u=Jt(I=x+=w4(Ks())),b++;break;case 45:m===45&&Jt(x)==2&&(g=0)}}return o}function Pk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=nf(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=uo(e,u+1,u=d4(g=a[m])),I=e;v<f;++v)(I=rA(g>0?p[v]+" "+b:W(b,/&\f/g,p[v])))&&(l[_++]=I);return ll(e,t,r,i===0?tf:s,l,c,d)}function S4(e,t,r){return ll(e,t,r,eA,al(v4()),uo(e,2,-2),0)}function Ok(e,t,r,n){return ll(e,t,r,rf,uo(e,0,n),uo(e,n+1,-1),n)}function qn(e,t){for(var r="",n=nf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function E4(e,t,r,n){switch(e.type){case u4:if(e.children.length)break;case c4:case rf:return e.return=e.return||e.value;case eA:return"";case tA:return e.return=e.value+"{"+qn(e.children,n)+"}";case tf:e.value=e.props.join(",")}return Jt(r=qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function x4(e){var t=nf(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 k4(e){return function(t){t.root||(t=t.return)&&e(t)}}function A4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function aA(e,t){switch(f4(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+el+e+Ge+e+e;case 6828:case 4268:return z+e+Ge+e+e;case 6165:return z+e+Ge+"flex-"+e+e;case 5187:return z+e+W(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return z+e+Ge+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return z+e+Ge+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+Ge+W(e,"shrink","negative")+e;case 5292:return z+e+Ge+W(e,"basis","preferred-size")+e;case 6060:return z+"box-"+W(e,"-grow","")+z+e+Ge+W(e,"grow","positive")+e;case 4554:return z+W(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+el+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bp(e,"stretch")?aA(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Jt(e)-3-(~Bp(e,"!important")&&10))){case 107:return W(e,":",":"+z)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Me(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return z+e+Ge+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Ge+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Ge+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Ge+e+e}return e}function q4(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 tl(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 Er={name:i.name,styles:i.styles,next:Er},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Er={name:a.name,styles:a.styles,next:Er},a=a.next;var s=o.styles+";";return s}return j4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function j4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=tl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Nk(s)&&(n+=Tp(o)+":"+Dk(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Nk(a[l])&&(n+=Tp(o)+":"+Dk(o,a[l])+";");else{var c=tl(e,t,a);switch(o){case"animation":case"animationName":{n+=Tp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Cp(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="";Er=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=tl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=tl(r,t,e[s]),n){var l=o;i+=l[s]}Lk.lastIndex=0;for(var c="",d;(d=Lk.exec(i))!==null;)c+="-"+d[1];var u=q4(i)+c;return{name:u,styles:i,next:Er}}function lA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function qk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Fk(e,t,r){var n=[],i=lA(e,n,r);return n.length<2?r:i+t(n)}function G4(e,t){Oe.__h&&Oe.__h(pt,e,Uk||t),Uk=0;var r=pt.__H||(pt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function uA(e,t){var r=G4(Hp++,7);return K4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function z4(){for(var e;e=cA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xs),e.__H.__h.forEach($p),e.__H.__h=[]}catch(t){e.__H.__h=[],Oe.__e(t,e.__v)}}function W4(e){var t,r=function(){clearTimeout(n),Gk&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Gk&&(t=requestAnimationFrame(r))}function Xs(e){var t=pt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pt=t}function $p(e){var t=pt;e.__c=e.__(),pt=t}function K4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function cl(){if(xr>1)xr--;else{for(var e,t=!1;so!==void 0;){var r=so;for(so=void 0,Vp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&pA(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Vp=0,xr--,t)throw e}}function at(e){if(xr>0)return e();xr++;try{return e()}finally{cl()}}function dA(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Ue(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Ue(e)}function pA(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 fA(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 hA(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 jn(e){Ue.call(this,void 0),this.x=e,this.s=void 0,this.g=rl-1,this.f=4}function lo(e){return new jn(e)}function mA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){xr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,of(e),n}finally{ee=r,cl()}}}function of(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,mA(e)}function Y4(e){if(ee!==this)throw new Error("Out-of-order effect");hA(this),ee=e,this.f&=-2,8&this.f&&of(this),cl()}function ho(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function mo(e){var t=new ho(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Bn(e,t){R[e]=t.bind(null,R[e]||function(){})}function nl(e){Op&&Op(),Op=e&&e.S()}function yA(e){var t=this,r=e.data,n=_A(r);n.value=r;var i=uA(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=lo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=lo(function(){return!Array.isArray(c.value)&&!uc(c.value)}),u=mo(function(){if(this.N=bA,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function X4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:mo(function(){this.N=bA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function _A(e){return uA(function(){return re(e)},[])}function eH(){at(function(){for(var e;e=gA.shift();)vA.call(e)})}function bA(){gA.push(this)===1&&(R.requestAnimationFrame||Z4)(eH)}function tH(e,t){let r=xi(e);ln(()=>{r.current=e},[e]),Ei(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--rH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function ir(e,t,r){return(t=hH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hH(e){var t=mH(e,"string");return typeof t=="symbol"?t:t+""}function mH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function or(e,t,r){return(t=_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=bH(e,"string");return typeof t=="symbol"?t:t+""}function bH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=wH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wH(e){var t=IH(e,"string");return typeof t=="symbol"?t:t+""}function IH(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 ot(e,t,r){return(t=SH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SH(e){var t=EH(e,"string");return typeof t=="symbol"?t:t+""}function EH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vr(e,t,r){return(t=xH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xH(e){var t=kH(e,"string");return typeof t=="symbol"?t:t+""}function kH(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 Rp(e,t,r){return(t=AH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AH(e){var t=TH(e,"string");return typeof t=="symbol"?t:t+""}function TH(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 Xe(e,t,r){return(t=CH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CH(e){var t=PH(e,"string");return typeof t=="symbol"?t:t+""}function PH(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=OH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OH(e){var t=RH(e,"string");return typeof t=="symbol"?t:t+""}function RH(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 Ik,y3,_3,b3,zk,w3,I3,Sk,S3,E3,Ek,x3,k3,A3,Wk,T3,D3,L3,xk,q3,kk,F3,Qk,Yk,Xk,Ak,M3,U3,Dn,Tk,Np,ue,H3,$3,oo,co,V3,Lp,G3,Ap,K3,qp,Ck,Rn,Fp,Mp,Up,jp,l4,Ge,el,z,eA,tf,rf,c4,tA,u4,d4,al,p4,sl,Fn,nA,st,xe,Mn,T4,C4,P4,Rk,O4,R4,N4,D4,L4,F4,M4,U4,sA,Nk,Tp,Dk,Lk,Er,B4,J4,H4,$4,V4,Un,Hp,pt,Pp,Mk,Uk,cA,Oe,jk,Bk,Jk,Hk,$k,Vk,Gk,Q4,ee,so,xr,Vp,rl,vA,Op,gA,Z4,ze,rH,nH,ar,Gp,zp,Zs,iH,oH,aH,sH,lH,cH,uH,dH,pH,fH,Wp,Ln,Nn,vH,gH,yH,Kp,wA,Qp,Yp,Xp,Zp,il,ef,ol,XY,IA=k(()=>{"use strict";Yr();ra();Ik=Object.getOwnPropertySymbols,y3=Object.prototype.hasOwnProperty,_3=Object.prototype.propertyIsEnumerable,b3=(e,t)=>{var r={};for(var n in e)y3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ik)for(var n of Ik(e))t.indexOf(n)<0&&_3.call(e,n)&&(r[n]=e[n]);return r},zk=Object.defineProperty,w3=Object.defineProperties,I3=Object.getOwnPropertyDescriptors,Sk=Object.getOwnPropertySymbols,S3=Object.prototype.hasOwnProperty,E3=Object.prototype.propertyIsEnumerable,Ek=(e,t,r)=>t in e?zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x3=(e,t)=>{for(var r in t||(t={}))S3.call(t,r)&&Ek(e,r,t[r]);if(Sk)for(var r of Sk(t))E3.call(t,r)&&Ek(e,r,t[r]);return e},k3=(e,t)=>w3(e,I3(t)),A3=(e,t)=>{for(var r in t)zk(e,r,{get:t[r],enumerable:!0})},Wk=(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},T3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}D3=(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))(D3||{});L3={log:io("log"),warn:io("warn"),info:io("info"),error:io("error"),debug:io("debug")};Object.assign(globalThis,{logger:L3});xk=Symbol.for("Jolibox.canIUseMap"),q3={};globalThis[xk]||(globalThis[xk]=q3);kk=Symbol.for("Jolibox.canIUseMap.native"),F3={};globalThis[kk]||(globalThis[kk]=F3);Qk=(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))(Qk||{}),Yk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Yk||{}),Xk=(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))(Xk||{}),Ak=["name","params"],M3=["name","type","location","target","extra","timestamp","userId"],U3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];J3();Dn=typeof window=="undefined",Tk=()=>!Dn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Dn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Dn&&navigator.userAgent.includes("Android"),!Dn&&navigator.userAgent.includes("Mac"),!Dn&&navigator.userAgent.includes("FB_IAB"),!Dn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Np=class Dp{constructor(t){this.element=t,this.next=Dp.Undefined,this.prev=Dp.Undefined}};Np.Undefined=new Np(void 0);ue=Np,H3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},$3=0,oo=class{constructor(e){this.value=e,this.id=$3++}},co=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof oo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new oo(e);return this._listeners?this._listeners instanceof oo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof oo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof oo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},V3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new co,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new H3,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)}},Lp={};A3(Lp,{None:()=>G3,filter:()=>W3,once:()=>Zk,toPromise:()=>z3});G3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ap=Symbol.for("Jolibox.hostEmitter"),K3=()=>{let e=new V3;return globalThis[Ap]||(globalThis[Ap]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ap]};K3();qp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new co,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q3(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}};qp=Wk([Kk],qp);Ck=class{constructor(){this._onWillExecuteCommand=new co,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new co,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new qp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=C3(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 T3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Lp.toPromise(Lp.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{}}};Ck=Wk([Kk],Ck);Rn=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")},Fp=class{constructor(t){it(this,"context",void 0),it(this,"continueCallback",void 0),it(this,"adIsShowingCallback",void 0),it(this,"isBeforeAdCalled",!1),it(this,"isBeforeRewardCalled",!1),it(this,"isAdDismissedCalled",!1),it(this,"isAdViewedCalled",!1),it(this,"isAfterAdCalled",!1),it(this,"currentProvider",void 0),it(this,"currentClientParams",void 0),it(this,"adsHasResponse",!1),it(this,"videoChecker",window.document.createElement("video")),it(this,"contextInfo",void 0),it(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)),Tk()&&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=Rn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}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.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Rn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Tk()&&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=Rn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Rn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Rn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l;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}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let c=Rn(t);c==null||c(r),(a=this.adIsShowingCallback)==null||a.call(this,!1),(s=this.continueCallback)==null||s.call(this,[!1,r]);break}default:{(l=this.continueCallback)==null||l.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Mp=class{constructor(t){Vs(this,"context",void 0),Vs(this,"adBreakIsShowing",!1),Vs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Vs(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()})}};Up=class{constructor(t){Gs(this,"configs",null),Gs(this,"firstRun",!0),Gs(this,"context",void 0),Gs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};jp=class{constructor(t,r){nr(this,"name","ADSENSE"),nr(this,"context",void 0),nr(this,"contextInfo",void 0),nr(this,"configured",!1),nr(this,"initParams",void 0),nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=b3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),nr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.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",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};l4=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(s4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=a4(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}(),Ge="-ms-",el="-moz-",z="-webkit-",eA="comm",tf="rule",rf="decl",c4="@import",tA="@keyframes",u4="@layer",d4=Math.abs,al=String.fromCharCode,p4=Object.assign;sl=1,Fn=1,nA=0,st=0,xe=0,Mn="";T4=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!po(i);)ft();return fo(e,st)},C4=function(e,t){var r=-1,n=44;do switch(po(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=T4(st-1,t,r);break;case 2:e[r]+=Qs(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=al(n)}while(n=ft());return e},P4=function(e,t){return oA(C4(iA(e),t))},Rk=new WeakMap,O4=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&&!Rk.get(r))&&!n){Rk.set(e,!0);for(var i=[],o=P4(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},R4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};N4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rf:e.return=aA(e.value,e.length);break;case tA:return qn([ao(e,{value:W(e.value,"@","@"+z)})],n);case tf:if(e.length)return m4(e.props,function(i){switch(h4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qn([ao(e,{props:[W(i,/:(read-\w+)/,":"+el+"$1")]})],n);case"::placeholder":return qn([ao(e,{props:[W(i,/:(plac\w+)/,":"+z+"input-$1")]}),ao(e,{props:[W(i,/:(plac\w+)/,":"+el+"$1")]}),ao(e,{props:[W(i,/:(plac\w+)/,Ge+"input-$1")]})],n)}return""})}},D4=[N4],L4=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||D4,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(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[O4,R4];{var c,d=[E4,k4(function(m){c.insert(m)})],u=x4(l.concat(n,d)),p=function(m){return qn(I4(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new l4({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};F4={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},M4=/[A-Z]|^ms/g,U4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sA=function(e){return e.charCodeAt(1)===45},Nk=function(e){return e!=null&&typeof e!="boolean"},Tp=A4(function(e){return sA(e)?e:e.replace(M4,"-$&").toLowerCase()}),Dk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(U4,function(r,n,i){return Er={name:n,styles:i,next:Er},n})}return F4[e]!==1&&!sA(e)&&typeof t=="number"&&t!==0?t+"px":t};Lk=/label:\s*([^\s;{]+)\s*(;|$)/g;B4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},J4=function(e,t,r){B4(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)}};H4=function(e){var t=L4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Cp(s,t.registered,void 0);return J4(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Cp(s,t.registered),d="animation-"+c.name;return qk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Cp(s,t.registered);qk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Fk(t.registered,r,$4(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:lA.bind(null,t.registered),merge:Fk.bind(null,t.registered,r)}},$4=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},V4=H4({key:"css"}),Un=V4.css,Uk=0,cA=[],Oe=R,jk=Oe.__b,Bk=Oe.__r,Jk=Oe.diffed,Hk=Oe.__c,$k=Oe.unmount,Vk=Oe.__;Oe.__b=function(e){pt=null,jk&&jk(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vk&&Vk(e,t)},Oe.__r=function(e){Bk&&Bk(e),Hp=0;var t=(pt=e.__c).__H;t&&(Pp===pt?(t.__h=[],pt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Xs),t.__h.forEach($p),t.__h=[],Hp=0)),Pp=pt},Oe.diffed=function(e){Jk&&Jk(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(cA.push(t)!==1&&Mk===Oe.requestAnimationFrame||((Mk=Oe.requestAnimationFrame)||W4)(z4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Pp=pt=null},Oe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Xs),r.__h=r.__h.filter(function(n){return!n.__||$p(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Oe.__e(n,r.__v)}}),Hk&&Hk(e,t)},Oe.unmount=function(e){$k&&$k(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Xs(n)}catch(i){t=i}}),r.__H=void 0,t&&Oe.__e(t,r.__v))};Gk=typeof requestAnimationFrame=="function";Q4=Symbol.for("preact-signals");ee=void 0,so=void 0,xr=0,Vp=0,rl=0;Ue.prototype.brand=Q4;Ue.prototype.h=function(){return!0};Ue.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)};Ue.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)}};Ue.prototype.subscribe=function(e){var t=this;return mo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Ue.prototype.valueOf=function(){return this.value};Ue.prototype.toString=function(){return this.value+""};Ue.prototype.toJSON=function(){return this.value};Ue.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Ue.prototype,"value",{get:function(){var e=dA(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Vp>100)throw new Error("Cycle detected");this.v=e,this.i++,rl++,xr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{cl()}}}});(jn.prototype=new Ue).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===rl))return!0;if(this.g=rl,this.f|=1,this.i>0&&!pA(this))return this.f&=-2,!0;var e=ee;try{fA(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,hA(this),this.f&=-2,!0};jn.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)}Ue.prototype.S.call(this,e)};jn.prototype.U=function(e){if(this.t!==void 0&&(Ue.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)}};jn.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(jn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=dA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ho.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()}};ho.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,mA(this),fA(this),xr++;var e=ee;return ee=this,Y4.bind(this,e)};ho.prototype.N=function(){2&this.f||(this.f|=2,this.o=so,so=this)};ho.prototype.d=function(){this.f|=8,1&this.f||of(this)};gA=[];mo(function(){vA=this.N})();yA.displayName="_st";Object.defineProperties(Ue.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Bn("__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 Ue&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Bn("__r",function(e,t){nl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return mo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),nl(r),e(t)});Bn("__e",function(e,t,r,n){nl(),e(t,r,n)});Bn("diffed",function(e,t){nl();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=X4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Bn("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)});Bn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});lt.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};Z4=function(e){queueMicrotask(function(){queueMicrotask(e)})};ze=Un`
|
|
605
|
+
`,jG=()=>_("div",{style:kk.container,children:[_("style",{children:FG}),_("div",{style:kk.spinner})]});MK=ho()});function ES(){return w(this,null,function*(){if(ap)return ap;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return ap=r,r})}function kS(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(sp)return e.resolve(!0),e.promise;let t=yield ES();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;sp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};F("RecommendedGuide",O({eventType:B.View},o));let a=oS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(sp=!1,s.type){case"quit":F("RecommendedGuide",{eventType:B.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":F("RecommendedGuide",O({eventType:B.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;JG(c),F("GameItem",{eventType:B.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:F("RecommendedGuide",O({eventType:B.Hide},o)),e.resolve(!0);break}}});return e.promise})}var ap,JG,sp,SS=x(()=>{"use strict";G();_e();N();ir();gt();yt();ap=null;ES();JG=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",E.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})},sp=!1});function GG(e){let t=O(O({},BG),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:k,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let S=document.createElement("div");if(S.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},S.appendChild(wt),S.appendChild(P),Q.appendChild(S),i){let T=document.createElement("div");T.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;",T.innerHTML="\u2715",T.onclick=v,Q.appendChild(T)}ae.appendChild(Q),document.body.appendChild(ae),ae.addEventListener("click",function(T){T.target===ae&&v()}),o&&y()}function g(){!ae||!Q||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!Q)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${C}px)`),P.preventDefault())},A=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",k),Q.addEventListener("touchend",A)}function v(){!ae||!Q||!u||(a?(Q.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Q=null,wt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function xS(){return window.joliboxUI=J(O({},window.joliboxUI),{createIframeModal:GG}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,Q=null,wt=null}}var BG,ae,Q,wt,AS=x(()=>{"use strict";_e();G();N();BG={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Q=null,wt=null});var PS={};Ef(PS,{config:()=>e5});function $G(){Vo.on("isAdShowing",e=>{ys=e,tn(ys)&&U("updateContainerConfigSync",{displayCapsuleButton:!ys,webviewId:E.webviewId})})}function VG(){ne.on("onInterceptSystemExit",({intercept:e})=>{CS=e})}function zG(){ne.on("onInterceptBackPress",({intercept:e})=>{HG=e}),et("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;OS(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function WG(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),F("onDocumentReady",{start_timestamp:bs,timestamp:Date.now()})})}function KG(){et("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function YG(e){E.mpType==="game"&&It.start(e)}function QG(){et("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",O({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),F("joliboxServiceReady",{start_timestamp:bs,timestamp:Date.now()}),YG(t),Zk(()=>E.language)}),et("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;OS(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function XG(){let e=()=>{F("onBeforeExit",{timestamp:Date.now()}),vs==null||vs(),gs==null||gs(),It.close(Date.now()-bs)},t=()=>ys||CS;mt.onDoExit(()=>w(this,null,function*(){return t()?!0:tn(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):_s!=null&&_s.canShowRecommended&&!TS&&(yield kS())?!0:(e(),!1)})),mt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function ZG(){return w(this,null,function*(){let e=`${E.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield te(e);t&&(_s=t)})}function e5(){bs=Date.now(),QG(),$G(),VG(),zG(),XG(),WG(),KG(),ZG(),gs=xS(),vs=Bh()}var vs,gs,bs,ys,_s,CS,HG,TS,OS,RS=x(()=>{"use strict";_e();G();N();yt();Gh();mc();SS();gt();ir();AS();ys=!1,_s=null,CS=!1,HG=!1,TS=!1,OS=e=>{tn(e)&&(TS=e)};mt.onReady(()=>{})});function NS(e){let t=rc.config[e];return t||(t={},rc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=O({},n)}}var DS=x(()=>{"use strict";N()});function lp(e){LS=e}function ws(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ws(t)):Object.keys(e).reduce((t,r)=>(t[r]=ws(e[r]),t),{})}function or(e){return typeof e=="number"}function cp(e){let t=up(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function up(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var LS,ke,Is,Es,ks,Ss,Dn,xs,As,Cs,Ts,Os,Ps,Rs,Ns,Ds,Ls,qs,Ms,dp=x(()=>{"use strict";LS=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(LS)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 ${cp(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ws(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ws(this._default)}optional(){return this._optional=!0,this}};Is=class extends ke{validate(t){return this._optional&&t===void 0?!0:or(t)?or(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):or(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):or(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}},Es=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ks=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(or(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(or(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}},Ss=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Dn=class extends ke{validate(t){return!0}},xs=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},As=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Cs=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ts=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${cp(t)}`)}return!0}},Os=class extends ke{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(or(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(or(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(or(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}},Ps=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(up(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Rs=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(up(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}},Ns=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:cp(this.value),actual:r}):!0}},Ds=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
606
|
+
or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},qs=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ms=class extends ke{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function pp(e,t,r="param"){if(e.errors=[],e.path=r,lp(!0),!e.validate(t)){let n=e.errors.join(`
|
|
607
|
+
`);throw e.errors.length=0,lp(!1),new TypeError(n)}}var I,fp=x(()=>{"use strict";dp();dp();I={object(e){return new Rs(e)},array(e){return new Os(e)},tuple(...e){return new Ls(...e)},literal(e){return new Ns(e)},or(...e){return new Ds(...e)},symbol(){return new Ss},record(e){return new Ps(e)},function(){return new Cs},boolean(){return new Es},string(){return new ks},number(){return new Is},undefined(){return new xs},null(){return new As},unknown(){return new Dn},any(){return new Dn},as(){return new Dn},arraybuffer(){return new qs},enum(...e){return new Ts(...e)},typedarray(e){return new Ms(e)}}});var Us,qS,MS=x(()=>{"use strict";N();vt();fp();nn();Us=1,qS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Us};Us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{pp(i.paramsSchema,o,"params")}catch(b){throw dc(`${n}:fail ${b.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:k,message:A}=g;l=b,y=k,v=A}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new di(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=Zf(o)?o:[o],s=Date.now(),l={method:n,trace_id:Us};Us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{pp(i.paramsSchema,a,"params")}catch(b){throw dc(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:k,message:A}=v;d=b,c=A,v=k}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let k=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,A=`${n}:${d} ${k.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ae(new di(A,b)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function hp(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 US=x(()=>{"use strict"});var Se,z,L,FS,nt=x(()=>{"use strict";DS();yt();MS();fp();_e();G();US();({createAPI:Se,createSyncAPI:z}=qS(F)),L=NS("native"),{canIUseNative:FS}=jf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});var jS,r5,n5,i5,o5,JS=x(()=>{"use strict";N();nt();_e();G();jS=X(),r5="env",n5="getSystemInfoSync",i5=z(n5,{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:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),o5=z(r5,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});jS.registerCommand("API.getSystemInfoSync",i5);jS.registerCommand("API.env",o5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var BS=h(mp=>{"use strict";N();nt();vt();_e();yt();G();var a5="exitGame",s5="onReady",l5="onJoliboxShow",c5="onJoliboxHide",Fs=X(),js=Bo(Ae),u5=Se(a5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(mp,null,function*(){js(e).call(mp),tn(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Vf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),d5=z(l5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterForeground",()=>{t.call(this),fi.emit("visible",!0)})}}),p5=z(c5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterBackground",()=>{t.call(this),fi.emit("visible",!1)})}}),f5=z(s5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Fs.registerCommand("LifecycleSDK.exit",u5);Fs.registerCommand("LifecycleSDK.onReady",f5);Fs.registerCommand("LifecycleSDK.onJoliboxShow",d5);Fs.registerCommand("LifecycleSDK.onJoliboxHide",p5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function GS(e){let t={};if(!Nr(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 HS(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 $S(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function VS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Nr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var zS=x(()=>{"use strict";N()});var h5,m5,vp,gp,WS,v5,g5,y5,KS=x(()=>{"use strict";nn();fc();nt();zS();N();vt();G();h5=15,m5=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),vp=0,gp=[],WS=Bo(Ae),v5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},g5=e=>{let t=new Ot,r=()=>{};return z("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=WS(i.fail);try{if(vp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=GS((s=i.headers)!=null?s:{}),y=HS(i.method),v=$S(i.timeout),b=VS(i.url,y,d),k=WS(i.success),A=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=m5(b,A);{let{response:C}=yield P,{code:S,data:T,message:j}=C;if(T&&typeof T=="object"&&"status"in T&&T.status!==200)throw hr({code:T.status||-1,msg:`request:fail status ${T.status}`});t.resolve({code:S!=null?S:"SUCCESS",data:T,message:j!=null?j:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:T})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{vp-=1,(c=gp.shift())==null||c()}});return vp>=h5?(r=()=>{v5(gp,a=>a===o)},gp.push(o)):o(),t.promise}})(e),{abort(){t.reject(hr({code:-1,msg:"request:fail abort"})),r()}}},y5=X();y5.registerCommand("HttpSDK.request",g5);L("request",{version:"1.0.0"})});function YS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),E5.includes(t)?t:""}function QS(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 XS(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 Js,_5,b5,w5,I5,hY,mY,E5,yp,ZS,_p=x(()=>{"use strict";nt();_e();N();gt();G();Js=X(),_5=Se("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=QS(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}}})}});Js.registerCommand("StorageSDK.getItem",_5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});b5=Se("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=YS(t),l=XS(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Js.registerCommand("StorageSDK.setItem",b5);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});w5=Se("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Js.registerCommand("StorageSDK.removeItem",w5);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});I5=Se("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Js.registerCommand("StorageSDK.clear",I5);L("storage.clear",{version:"1.0.0"});hY=Se("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});mY=z("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),E5=["string","number","boolean","object",""];yp=Se("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:QS(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),ZS=Se("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return w(this,null,function*(){try{let r=YS(t),n=XS(t,r);return yield ye("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 k5,S5,x5,bp,ex=x(()=>{"use strict";N();_e();nt();k5=z("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),U("showKeyboardSync",J(O({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});S5=z("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){U("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});x5=z("hideKeyboard",{implement(){U("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});bp=X();bp.registerCommand("KeyboardSDK.showKeyboard",k5);bp.registerCommand("KeyboardSDK.updateKeyboard",S5);bp.registerCommand("KeyboardSDK.hideKeyboard",x5)});var tx=h(Bs=>{"use strict";N();nt();yt();var wp=X(),A5=Se("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w(Bs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),C5=Se("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w(Bs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),T5=Se("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w(Bs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});wp.registerCommand("TaskTrackerSDK.levelFinished",A5);wp.registerCommand("TaskTrackerSDK.gamePlayEnded",C5);wp.registerCommand("TaskTrackerSDK.levelUpgrade",T5);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Ip,Ep,kp,O5,rx,Gs=x(()=>{"use strict";G();_e();nt();N();nn();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Ip=new Map;et("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Ip.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Ip.delete(r))});Ep=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw hr({code:-1,msg:"login failed"});let s=new Ot;Ip.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),kp=Se("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield Ep(e!=null?e:{})})}}),O5=Se("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),rx=X();rx.registerCommand("API.login",kp);rx.registerCommand("API.checkSession",O5)});var nx,ix=x(()=>{"use strict";nx=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Ln(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield yp(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=ox(i.data),a=nx(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function qn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield yp(e),n=ox((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield ZS(e,JSON.stringify(n))})}var ox,ax,sx,lx,cx,ux,dx,px,fx,hx,mx,vx,gx,Hs=x(()=>{"use strict";_p();ix();ox=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};ax=Ln("joli_coin_use_modal_frequency"),sx=Ln("joli_coin_payment_frequency"),lx=Ln("joli_coin_unlogin_modal_frequency"),cx=Ln("joli_gem_use_modal_frequency"),ux=Ln("joli_gem_payment_frequency"),dx=Ln("joli_gem_unlogin_modal_frequency");px=qn("joli_coin_use_modal_frequency"),fx=qn("joli_coin_payment_frequency"),hx=qn("joli_coin_unlogin_modal_frequency"),mx=qn("joli_gem_use_modal_frequency"),vx=qn("joli_gem_payment_frequency"),gx=qn("joli_gem_unlogin_modal_frequency")});var Sp,$s,xp=x(()=>{"use strict";gt();Sp=Promise.resolve(),$s=e=>w(void 0,null,function*(){Sp=Sp.then(()=>w(void 0,null,function*(){yield te("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Sp})});var Vs,zs,At,Ws,Wr,xr,ar,Ks,Mn,P5,M,Un,Fn,Xe=x(()=>{"use strict";N();Vs="UNLOCK_OPTIONS_CHANGED",zs="INVOKE_PAYMENT",At="ON_PAYMENT_RESULT",Ws="ON_USE_MODAL_EVENT",Wr="ON_USE_MODAL_RESULT",xr="ON_USE_MODAL_FREQUENCY",ar="ON_USE_UNLOGIN_MODAL_EVENT",Ks="INVOKE_UNLOGIN_MODAL_EVENT",Mn=new Nt,P5=()=>({on:Mn.on.bind(Mn),off:Mn.off.bind(Mn),emit:Mn.emit.bind(Mn)}),M=P5(),Un={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Fn={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=O(O({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Ar=x(()=>{"use strict"});var bx=h(Ap=>{"use strict";Hs();xp();Xe();Xe();ir();yt();N();Ar();var R5={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:ax,frequencyUpdater:px},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:cx,frequencyUpdater:mx}},yx=ho(),_x=it(M,xr);_x.getData();M.on(Ws,(e,t)=>w(Ap,null,function*(){let r=t.currency,n=R5[r];if(e.includes("ADS-")){yield yx.show({duration:3e3});let l=yield _x.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),yx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){M.emit(Wr,{useModalResult:"CONFIRM"});return}if(!c){M.emit(Wr,{useModalResult:"FAILED"});return}}F(n.trackEvents.popupShow,{eventType:B.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=uS({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{F(n.trackEvents.coinUnlock,{targetType:"game",eventType:B.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),M.emit(Wr,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&F(n.trackEvents.adUnlock,{targetType:"game",eventType:B.Click,currency:r}),M.emit(Wr,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Ap,null,function*(){yield $s(l)})}});yield n.frequencyUpdater()}))});function wx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var Ix=x(()=>{"use strict";vt()});var Ys=x(()=>{"use strict"});var N5,jn,Cr,D5,Kr,Cp=x(()=>{"use strict";Ys();N();G();gt();N5=()=>{let[e,t]=[ah,lh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:jn,createPaymentInternalError:Cr}=N5(),D5=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Kr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw jn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw jn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(O({},this.generatePaymentContext()))),`${D5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Tp,kx,Sx=x(()=>{"use strict";gt();Cp();Ys();Tp=class extends Kr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw jn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Cr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},kx=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Tp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var xx,Ax=x(()=>{"use strict";xx={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 Op,Cx,Pp,Rp,L5,Np,Tx=x(()=>{"use strict";gt();Cp();Ys();_e();N();G();ir();Ax();Op=new Map;et("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Op.get(t);if(o){if(r==="SUCCESS")zr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&eh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Cr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=xx[r];a&&zr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Op.delete(t)}});Cx=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Cr("orderUUID is null",1002);Op.set(r,t)}catch(o){throw Cr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Pp=class extends Kr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield Cx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Rp=class extends Kr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield Cx({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Cr("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"}})}},L5={android:Pp,ios:Rp},Np=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=L5[E.platform];if(!s)throw Cr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw jn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var mo,Ox=x(()=>{"use strict";Ix();Sx();Tx();mo=wx();mo.registerPaymentHandler("JOLI_COIN",kx());mo.registerPaymentHandler("JOLI_COIN_IAP",Np());mo.registerPaymentHandler("JOLI_GEM_IAP",Np())});var Rx=h(vo=>{"use strict";Xe();ir();gt();G();Gs();N();Hs();Ox();ir();nt();_e();N();yt();xp();Ar();var q5={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:sx,frequencyUpdater:fx,apiEndpoint:"/api/joli-coin/balance-detail",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:ux,frequencyUpdater:vx,apiEndpoint:"/api/joli-gem/balance-detail",paymentType:"JOLI_GEM_IAP"}},Jn=ho(),M5=it(M,xr);M.on(zs,(e,t)=>w(vo,null,function*(){var r,n;try{let i=t.currency,o=q5[i];if(!FS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{M.emit(At,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Jn.show({duration:3e3});let l=yield M5.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Jn.hide(),!c){M.emit(At,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Jn.show({duration:3e3});let a=yield Px(o.apiEndpoint);if(Jn.hide(),!a){M.emit(At,{paymentResult:"FAILED",currency:i});return}F(o.trackEvents.modalShow,{targetType:"game",eventType:B.View,currency:i});let s=dS({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return J(O({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(vo,null,function*(){var u,p,f,m,g,y,v,b;if(F(o.trackEvents.payEnsure,{targetType:"game",eventType:B.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield kp({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let A=yield Px(o.apiEndpoint);if(((m=A==null?void 0:A.balance)!=null?m:0)>=t.quantity){M.emit(At,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(g=a==null?void 0:a.paymentChoices)==null?void 0:g.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){M.emit(At,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Jn.show({duration:3e3});let{code:d}=yield mo.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Jn.hide(),F(o.trackEvents.payResult,{eventType:B.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(v=a.paymentChoices.find(k=>k.productId===l))==null?void 0:v.totalAmountStr)!=null?b:"",payResult:d}),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}M.emit(At,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{M.emit(At,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),F(o.trackEvents.adUnlock,{targetType:"game",eventType:B.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(vo,null,function*(){yield $s(l)})},onSelect:l=>{var c,d;F(o.trackEvents.orderClick,{targetType:"game",eventType:B.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),M.emit(At,{paymentResult:"FAILED",currency:t.currency})}}));var U5=(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=>!Xl(r.totalAmountStr))},Px=e=>w(vo,null,function*(){var n,i,o,a,s,l,c,d,u,p;let{response:t}=yield te(e,{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",t);let{data:r}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(a=(o=(i=(n=t.data)==null?void 0:n.data)==null?void 0:i.paymentChoices)==null?void 0:o.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?a:[]});if((s=t.data)!=null&&s.data&&r&&U5((l=t.data)==null?void 0:l.data,r),console.info("productDetails",(c=t.data)==null?void 0:c.data),((u=(d=t.data)==null?void 0:d.data)==null?void 0:u.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(p=t.data)==null?void 0:p.data})});var Dx=h(Qs=>{"use strict";Xe();Ar();Hs();gt();vt();N();Gs();ir();yt();var F5={JOLI_COIN:{frequencyChecker:lx,frequencyUpdater:hx,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:dx,frequencyUpdater:gx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},Nx=it(M,xr);Nx.getData();M.on(Ks,(e,t)=>w(Qs,null,function*(){var r;try{let n=t.currency,i=F5[n];if(e.includes("ADS-")){let s=yield Nx.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){M.emit(ar,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){M.emit(ar,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield j5())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),M.emit(ar,{result:"NOT_SUPPORT"});return}F(i.trackEvents.modalExpose,{eventType:B.Expose,currency:n},B.Expose);let a=pS({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Qs,null,function*(){var d,u,p,f;F(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:B.Click,currency:n},B.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Ep({},!0);if(!s){console.log("login failed");return}if(F(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:B.Click,currency:n},B.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;zr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}M.emit(ar,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{F(i.trackEvents.modalHide,{eventType:B.Hide,currency:n},B.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;F(c,{type:l,eventType:B.Click,currency:n},B.Click),M.emit(ar,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ae(new ch(n)),M.emit(ar,{result:"FAILED"})}}));var j5=()=>w(Qs,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var vX,gX,yX,Lx=x(()=>{"use strict";vX=ie(bx()),gX=ie(Rx()),yX=ie(Dx())});function X5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Z5(e){return typeof e=="string"}function e3(e){return typeof e=="undefined"}function t3(e){return e3(e)||e===null}function r3(e){return typeof e=="function"}function cA(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 go(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function tl(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 c3(e){let t=e.location?tl(e.location,Jx):null,r=e.target?tl(e.target,Jx):null;return tl(K5(W5({},e),{location:t,target:r}),s3)}function u3(e){let t=e.events.map(n=>c3(n)),r=tl(e.device,l3);return[e.protocolVersion,t,r,e.project]}function d3(){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 v3(e){return new Promise(t=>fA(e)(t))}function fA(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 g3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Io(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 _3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)b3(e[n],t[n])}function b3(e,t){if(Z5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(r3(t)){try{if(e instanceof t)return}catch(r){}if(!t3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=w3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w3(e){var t=I3(e,"string");return typeof t=="symbol"?t:t+""}function I3(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 Xs(e,t,r){return(t=E3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E3(e){var t=k3(e,"string");return typeof t=="symbol"?t:t+""}function k3(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 Zs(e,t,r){return(t=S3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=x3(e,"string");return typeof t=="symbol"?t:t+""}function x3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sr(e,t,r){return(t=A3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A3(e){var t=C3(e,"string");return typeof t=="symbol"?t:t+""}function C3(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 T3(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 O3(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 q3(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function vA(e){return e.trim()}function M3(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Wp(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Eo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function df(e){return e.length}function el(e,t){return t.push(e),e}function U3(e,t){return e.map(t).join("")}function ml(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hl,column:zn,length:a,return:""}}function _o(e,t){return L3(ml("",null,null,"",null,null,0),e,{length:-e.length},t)}function F3(){return xe}function j3(){return xe=lt>0?Ue(Wn,--lt):0,zn--,xe===10&&(zn=1,hl--),xe}function ht(){return xe=lt<gA?Ue(Wn,lt++):0,zn++,xe===10&&(zn=1,hl++),xe}function $t(){return Ue(Wn,lt)}function rl(){return lt}function So(e,t){return Eo(Wn,e,t)}function ko(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 yA(e){return hl=zn=1,gA=Ht(Wn=e),lt=0,[]}function _A(e){return Wn="",e}function nl(e){return vA(So(lt-1,Kp(e===91?e+2:e===40?e+1:e)))}function J3(e){for(;(xe=$t())&&xe<33;)ht();return ko(e)>2||ko(xe)>3?"":" "}function B3(e,t){for(;--t&&ht()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return So(e,rl()+(t<6&&$t()==32&&ht()==32))}function Kp(e){for(;ht();)switch(xe){case e:return lt;case 34:case 39:e!==34&&e!==39&&Kp(xe);break;case 40:e===41&&Kp(e);break;case 92:ht();break}return lt}function G3(e,t){for(;ht()&&e+xe!==57&&!(e+xe===84&&$t()===47););return"/*"+So(t,lt-1)+"*"+fl(e===47?e:ht())}function H3(e){for(;!ko($t());)ht();return So(e,lt)}function $3(e){return _A(il("",null,null,null,[""],e=yA(e),0,[0],e))}function il(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",A=i,P=o,C=n,S=k;y;)switch(m=b,b=ht()){case 40:if(m!=108&&Ue(S,u-1)==58){Wp(S+=K(nl(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=nl(b);break;case 9:case 10:case 13:case 32:S+=J3(m);break;case 92:S+=B3(rl()-1,7);continue;case 47:switch($t()){case 42:case 47:el(V3(G3(ht(),rl()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ht(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=K(S,/\f/g,"")),f>0&&Ht(S)-u&&el(f>32?$x(S+";",n,r,u-1):$x(K(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(el(C=Hx(S,t,r,c,d,i,s,k,A=[],P=[],u),o),b===123)if(d===0)il(S,t,C,C,A,o,u,s,P);else switch(p===99&&Ue(S,3)===110?100:p){case 100:case 108:case 109:case 115:il(e,C,C,n&&el(Hx(e,C,C,0,0,i,s,k,i,A=[],u),P),i,P,u,s,n?A:P);break;default:il(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ht(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&j3()==125)continue}switch(S+=fl(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ht(S)-1)*v,v=1;break;case 64:$t()===45&&(S+=nl(ht())),p=$t(),d=u=Ht(k=S+=H3(rl())),b++;break;case 45:m===45&&Ht(S)==2&&(g=0)}}return o}function Hx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=df(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=Eo(e,u+1,u=D3(g=a[m])),k=e;v<f;++v)(k=vA(g>0?p[v]+" "+b:K(b,/&\f/g,p[v])))&&(l[y++]=k);return ml(e,t,r,i===0?cf:s,l,c,d)}function V3(e,t,r){return ml(e,t,r,hA,fl(F3()),Eo(e,2,-2),0)}function $x(e,t,r,n){return ml(e,t,r,uf,Eo(e,0,n),Eo(e,n+1,-1),n)}function Vn(e,t){for(var r="",n=df(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function z3(e,t,r,n){switch(e.type){case N3:if(e.children.length)break;case R3:case uf:return e.return=e.return||e.value;case hA:return"";case mA:return e.return=e.value+"{"+Vn(e.children,n)+"}";case cf:e.value=e.props.join(",")}return Ht(r=Vn(e.children,n))?e.return=e.value+"{"+r+"}":""}function W3(e){var t=df(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 K3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Y3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function bA(e,t){switch(q3(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+sl+e+Ve+e+e;case 6828:case 4268:return W+e+Ve+e+e;case 6165:return W+e+Ve+"flex-"+e+e;case 5187:return W+e+K(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return W+e+Ve+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return W+e+Ve+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+Ve+K(e,"shrink","negative")+e;case 5292:return W+e+Ve+K(e,"basis","preferred-size")+e;case 6060:return W+"box-"+K(e,"-grow","")+W+e+Ve+K(e,"grow","positive")+e;case 4554:return W+K(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+sl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wp(e,"stretch")?bA(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Ht(e)-3-(~Wp(e,"!important")&&10))){case 107:return K(e,":",":"+W)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(Ue(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return W+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+Ve+e+e}return e}function oH(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 ll(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 Tr={name:i.name,styles:i.styles,next:Tr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Tr={name:a.name,styles:a.styles,next:Tr},a=a.next;var s=o.styles+";";return s}return cH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function cH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ll(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]+"}":zx(s)&&(n+=Lp(o)+":"+Wx(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)zx(a[l])&&(n+=Lp(o)+":"+Wx(o,a[l])+";");else{var c=ll(e,t,a);switch(o){case"animation":case"animationName":{n+=Lp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function qp(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="";Tr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ll(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ll(r,t,e[s]),n){var l=o;i+=l[s]}Kx.lastIndex=0;for(var c="",d;(d=Kx.exec(i))!==null;)c+="-"+d[1];var u=oH(i)+c;return{name:u,styles:i,next:Tr}}function IA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Yx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Qx(e,t,r){var n=[],i=IA(e,n,r);return n.length<2?r:i+t(n)}function mH(e,t){Pe.__h&&Pe.__h(ft,e,Zx||t),Zx=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function kA(e,t){var r=mH(Yp++,7);return yH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function vH(){for(var e;e=EA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ol),e.__H.__h.forEach(Qp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function gH(e){var t,r=function(){clearTimeout(n),aA&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);aA&&(t=requestAnimationFrame(r))}function ol(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function Qp(e){var t=ft;e.__c=e.__(),ft=t}function yH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function vl(){if(Or>1)Or--;else{for(var e,t=!1;bo!==void 0;){var r=bo;for(bo=void 0,Xp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&xA(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Xp=0,Or--,t)throw e}}function st(e){if(Or>0)return e();Or++;try{return e()}finally{vl()}}function SA(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function xA(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 AA(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 CA(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 Yn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=cl-1,this.f=4}function wo(e){return new Yn(e)}function TA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Or++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,pf(e),n}finally{ee=r,vl()}}}function pf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TA(e)}function bH(e){if(ee!==this)throw new Error("Out-of-order effect");CA(this),ee=e,this.f&=-2,8&this.f&&pf(this),vl()}function xo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ao(e){var t=new xo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Qn(e,t){R[e]=t.bind(null,R[e]||function(){})}function ul(e){Up&&Up(),Up=e&&e.S()}function RA(e){var t=this,r=e.data,n=NA(r);n.value=r;var i=kA(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=wo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=wo(function(){return!Array.isArray(c.value)&&!_c(c.value)}),u=Ao(function(){if(this.N=DA,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function wH(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:Ao(function(){this.N=DA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function NA(e){return kA(function(){return re(e)},[])}function EH(){st(function(){for(var e;e=PA.shift();)OA.call(e)})}function DA(){PA.push(this)===1&&(R.requestAnimationFrame||IH)(EH)}function kH(e,t){let r=qi(e);vn(()=>{r.current=e},[e]),Li(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--SH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function lr(e,t,r){return(t=MH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=UH(e,"string");return typeof t=="symbol"?t:t+""}function UH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=BH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BH(e){var t=GH(e,"string");return typeof t=="symbol"?t:t+""}function GH(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 $e(e,t,r){return(t=HH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HH(e){var t=$H(e,"string");return typeof t=="symbol"?t:t+""}function $H(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=VH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VH(e){var t=zH(e,"string");return typeof t=="symbol"?t:t+""}function zH(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 Yr(e,t,r){return(t=WH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WH(e){var t=KH(e,"string");return typeof t=="symbol"?t:t+""}function KH(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 Fp(e,t,r){return(t=YH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YH(e){var t=QH(e,"string");return typeof t=="symbol"?t:t+""}function QH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return(t=XH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XH(e){var t=ZH(e,"string");return typeof t=="symbol"?t:t+""}function ZH(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=e4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e4(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)}var qx,J5,B5,G5,sA,H5,$5,Mx,V5,z5,Ux,W5,K5,Y5,lA,Q5,n3,i3,Fx,o3,jx,a3,uA,dA,pA,Jx,s3,l3,Hn,Bx,jp,ue,p3,f3,yo,Io,h3,Bp,m3,Dp,y3,Gp,Gx,Bn,Hp,$p,Vp,zp,P3,Ve,sl,W,hA,cf,uf,R3,mA,N3,D3,fl,L3,hl,zn,gA,lt,xe,Wn,Q3,X3,Z3,Vx,eH,tH,rH,nH,iH,aH,sH,lH,wA,zx,Lp,Wx,Kx,Tr,uH,dH,pH,fH,hH,Kn,Yp,ft,Mp,Xx,Zx,EA,Pe,eA,tA,rA,nA,iA,oA,aA,_H,ee,bo,Or,Xp,cl,OA,Up,PA,IH,ze,SH,xH,ur,Zp,ef,al,AH,CH,TH,OH,PH,RH,NH,DH,LH,qH,tf,$n,Gn,FH,jH,JH,rf,LA,nf,of,af,sf,dl,lf,pl,wX,qA=x(()=>{"use strict";an();da();qx=Object.getOwnPropertySymbols,J5=Object.prototype.hasOwnProperty,B5=Object.prototype.propertyIsEnumerable,G5=(e,t)=>{var r={};for(var n in e)J5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qx)for(var n of qx(e))t.indexOf(n)<0&&B5.call(e,n)&&(r[n]=e[n]);return r},sA=Object.defineProperty,H5=Object.defineProperties,$5=Object.getOwnPropertyDescriptors,Mx=Object.getOwnPropertySymbols,V5=Object.prototype.hasOwnProperty,z5=Object.prototype.propertyIsEnumerable,Ux=(e,t,r)=>t in e?sA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W5=(e,t)=>{for(var r in t||(t={}))V5.call(t,r)&&Ux(e,r,t[r]);if(Mx)for(var r of Mx(t))z5.call(t,r)&&Ux(e,r,t[r]);return e},K5=(e,t)=>H5(e,$5(t)),Y5=(e,t)=>{for(var r in t)sA(e,r,{get:t[r],enumerable:!0})},lA=(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},Q5=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}n3=(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))(n3||{});i3={log:go("log"),warn:go("warn"),info:go("info"),error:go("error"),debug:go("debug")};Object.assign(globalThis,{logger:i3});Fx=Symbol.for("Jolibox.canIUseMap"),o3={};globalThis[Fx]||(globalThis[Fx]=o3);jx=Symbol.for("Jolibox.canIUseMap.native"),a3={};globalThis[jx]||(globalThis[jx]=a3);uA=(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))(uA||{}),dA=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(dA||{}),pA=(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))(pA||{}),Jx=["name","params"],s3=["name","type","location","target","extra","timestamp","userId"],l3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];d3();Hn=typeof window=="undefined",Bx=()=>!Hn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Hn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Hn&&navigator.userAgent.includes("Android"),!Hn&&navigator.userAgent.includes("Mac"),!Hn&&navigator.userAgent.includes("FB_IAB"),!Hn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");jp=class Jp{constructor(t){this.element=t,this.next=Jp.Undefined,this.prev=Jp.Undefined}};jp.Undefined=new jp(void 0);ue=jp,p3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},f3=0,yo=class{constructor(e){this.value=e,this.id=f3++}},Io=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 yo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new yo(e);return this._listeners?this._listeners instanceof yo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof yo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof yo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},h3=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 Io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new p3,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)}},Bp={};Y5(Bp,{None:()=>m3,filter:()=>g3,once:()=>fA,toPromise:()=>v3});m3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Dp=Symbol.for("Jolibox.hostEmitter"),y3=()=>{let e=new h3;return globalThis[Dp]||(globalThis[Dp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Dp]};y3();Gp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Io,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 _3(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}};Gp=lA([cA],Gp);Gx=class{constructor(){this._onWillExecuteCommand=new Io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=X5(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 Q5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Bp.toPromise(Bp.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{}}};Gx=lA([cA],Gx);Bn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Hp=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),Bx()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Bn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}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.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Bn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Bx()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l;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}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let c=Bn(t);c==null||c(r),(a=this.adIsShowingCallback)==null||a.call(this,!1),(s=this.continueCallback)==null||s.call(this,[!1,r]);break}default:{(l=this.continueCallback)==null||l.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};$p=class{constructor(t){Xs(this,"context",void 0),Xs(this,"adBreakIsShowing",!1),Xs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Xs(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()})}};Vp=class{constructor(t){Zs(this,"configs",null),Zs(this,"firstRun",!0),Zs(this,"context",void 0),Zs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};zp=class{constructor(t,r){sr(this,"name","ADSENSE"),sr(this,"context",void 0),sr(this,"contextInfo",void 0),sr(this,"configured",!1),sr(this,"initParams",void 0),sr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),sr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=G5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),sr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),sr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};P3=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(O3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=T3(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}(),Ve="-ms-",sl="-moz-",W="-webkit-",hA="comm",cf="rule",uf="decl",R3="@import",mA="@keyframes",N3="@layer",D3=Math.abs,fl=String.fromCharCode,L3=Object.assign;hl=1,zn=1,gA=0,lt=0,xe=0,Wn="";Q3=function(e,t,r){for(var n=0,i=0;n=i,i=$t(),n===38&&i===12&&(t[r]=1),!ko(i);)ht();return So(e,lt)},X3=function(e,t){var r=-1,n=44;do switch(ko(n)){case 0:n===38&&$t()===12&&(t[r]=1),e[r]+=Q3(lt-1,t,r);break;case 2:e[r]+=nl(n);break;case 4:if(n===44){e[++r]=$t()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fl(n)}while(n=ht());return e},Z3=function(e,t){return _A(X3(yA(e),t))},Vx=new WeakMap,eH=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&&!Vx.get(r))&&!n){Vx.set(e,!0);for(var i=[],o=Z3(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},tH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};rH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case uf:e.return=bA(e.value,e.length);break;case mA:return Vn([_o(e,{value:K(e.value,"@","@"+W)})],n);case cf:if(e.length)return U3(e.props,function(i){switch(M3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vn([_o(e,{props:[K(i,/:(read-\w+)/,":"+sl+"$1")]})],n);case"::placeholder":return Vn([_o(e,{props:[K(i,/:(plac\w+)/,":"+W+"input-$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,":"+sl+"$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},nH=[rH],iH=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||nH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[eH,tH];{var c,d=[z3,K3(function(m){c.insert(m)})],u=W3(l.concat(n,d)),p=function(m){return Vn($3(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new P3({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};aH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sH=/[A-Z]|^ms/g,lH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wA=function(e){return e.charCodeAt(1)===45},zx=function(e){return e!=null&&typeof e!="boolean"},Lp=Y3(function(e){return wA(e)?e:e.replace(sH,"-$&").toLowerCase()}),Wx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(lH,function(r,n,i){return Tr={name:n,styles:i,next:Tr},n})}return aH[e]!==1&&!wA(e)&&typeof t=="number"&&t!==0?t+"px":t};Kx=/label:\s*([^\s;{]+)\s*(;|$)/g;uH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},dH=function(e,t,r){uH(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)}};pH=function(e){var t=iH(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered,void 0);return dH(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered),d="animation-"+c.name;return Yx(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered);Yx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Qx(t.registered,r,fH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:IA.bind(null,t.registered),merge:Qx.bind(null,t.registered,r)}},fH=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},hH=pH({key:"css"}),Kn=hH.css,Zx=0,EA=[],Pe=R,eA=Pe.__b,tA=Pe.__r,rA=Pe.diffed,nA=Pe.__c,iA=Pe.unmount,oA=Pe.__;Pe.__b=function(e){ft=null,eA&&eA(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),oA&&oA(e,t)},Pe.__r=function(e){tA&&tA(e),Yp=0;var t=(ft=e.__c).__H;t&&(Mp===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ol),t.__h.forEach(Qp),t.__h=[],Yp=0)),Mp=ft},Pe.diffed=function(e){rA&&rA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(EA.push(t)!==1&&Xx===Pe.requestAnimationFrame||((Xx=Pe.requestAnimationFrame)||gH)(vH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Mp=ft=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ol),r.__h=r.__h.filter(function(n){return!n.__||Qp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),nA&&nA(e,t)},Pe.unmount=function(e){iA&&iA(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ol(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};aA=typeof requestAnimationFrame=="function";_H=Symbol.for("preact-signals");ee=void 0,bo=void 0,Or=0,Xp=0,cl=0;Fe.prototype.brand=_H;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return Ao(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=SA(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Xp>100)throw new Error("Cycle detected");this.v=e,this.i++,cl++,Or++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{vl()}}}});(Yn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===cl))return!0;if(this.g=cl,this.f|=1,this.i>0&&!xA(this))return this.f&=-2,!0;var e=ee;try{AA(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,CA(this),this.f&=-2,!0};Yn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Yn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Yn.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(Yn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=SA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});xo.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};xo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TA(this),AA(this),Or++;var e=ee;return ee=this,bH.bind(this,e)};xo.prototype.N=function(){2&this.f||(this.f|=2,this.o=bo,bo=this)};xo.prototype.d=function(){this.f|=8,1&this.f||pf(this)};PA=[];Ao(function(){OA=this.N})();RA.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:RA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Qn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Qn("__r",function(e,t){ul();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ao(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),ul(r),e(t)});Qn("__e",function(e,t,r,n){ul(),e(t,r,n)});Qn("diffed",function(e,t){ul();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=wH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Qn("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)});Qn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};IH=function(e){queueMicrotask(function(){queueMicrotask(e)})};ze=Kn`
|
|
608
608
|
inset: 0;
|
|
609
609
|
clear: none;
|
|
610
610
|
float: none;
|
|
@@ -622,7 +622,7 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
622
622
|
text-decoration: none;
|
|
623
623
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
624
624
|
'Helvetica Neue', sans-serif;
|
|
625
|
-
`;
|
|
625
|
+
`;SH=0;xH=Kn`
|
|
626
626
|
${ze}
|
|
627
627
|
position: fixed;
|
|
628
628
|
top: 0;
|
|
@@ -697,7 +697,7 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
`,
|
|
700
|
+
`,ur=re(null),Zp=re(""),ef=re(""),al=re(!1),AH=()=>{var e;(e=ur.value)==null||e.call(ur,!1)},CH=()=>{var e;(e=ur.value)==null||e.call(ur,!0)},TH=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ur.value&&(ur.value(!1),st(()=>{ur.value=null,al.value=!1})),st(()=>{Zp.value=t||"",ef.value=r||"",al.value=!0}),new Promise(n=>{ur.value=i=>{st(()=>{ur.value=null,al.value=!1,Zp.value="",ef.value=""}),n(i)}})}),OH=()=>al.value?ge("div",{className:xH,children:ge("div",{className:"card-wrapper",children:[ge("div",{className:"body",children:[ge("div",{className:"title",children:Zp.value}),ge("div",{className:"content",children:ef.value})]}),ge("div",{className:"footer",children:[ge("button",{onClick:AH,className:"cancel-btn",children:"Cancel"}),ge("button",{onClick:CH,className:"confirm-btm",children:"Confirm"})]})]})}):null,PH=Kn`
|
|
701
701
|
${ze}
|
|
702
702
|
position: relative;
|
|
703
703
|
display: flex;
|
|
@@ -730,7 +730,7 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
730
730
|
cursor: not-allowed;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
`,
|
|
733
|
+
`,RH=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},NH=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=NA(t);kH(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=wo(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=wo(()=>{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=wo(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield TH({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ge("div",{className:PH,children:[s.value>0&&r!=="interstitial"&&ge("div",{className:"timer",children:[s.value,"s"]}),ge("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ge("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ge("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"})})})]})},DH=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},LH=Kn`
|
|
734
734
|
${ze}
|
|
735
735
|
position: fixed;
|
|
736
736
|
z-index: 2147483647;
|
|
@@ -749,7 +749,7 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
749
749
|
width: 100%;
|
|
750
750
|
height: 100%;
|
|
751
751
|
}
|
|
752
|
-
`,
|
|
752
|
+
`,qH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Mi(()=>RH(),[]),[p,f]=ca(!1),m=y=>{var v,b,k,A;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((b=i.value)==null||b.call(i)),(k=r.value)==null||k.call(r),(A=o.value)==null||A.call(o),f(!1)},g=gn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Li(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ge("div",{className:LH,children:[ge(NH,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ge("iframe",{src:c.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"}),ge(OH,{})]}):null};tf=class{constructor(t,r){lr(this,"name","OKSPIN"),lr(this,"initialized",!1),lr(this,"initCompleter",null),lr(this,"context",void 0),lr(this,"initParams",void 0),lr(this,"adsOverlay",null),lr(this,"adsIsShowing",!1),lr(this,"lastUnDisplayedAdBreak",null),lr(this,"state",DH()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),yu(ge(qH,{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 w(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var 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)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let y=()=>{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,st(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},$n={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||$n[e.data.type]&&$n[e.data.type].forEach(t=>{t(e.data.data)})});Gn=(e,t)=>{Li(()=>($n[e]||($n[e]=new Set),$n[e].add(t),()=>{$n[e].delete(t)}),[e,t])},FH=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},jH=Kn`
|
|
753
753
|
${ze}
|
|
754
754
|
position: fixed;
|
|
755
755
|
z-index: 2147483647;
|
|
@@ -768,7 +768,7 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
768
768
|
width: 100%;
|
|
769
769
|
height: 100%;
|
|
770
770
|
}
|
|
771
|
-
`,yH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=ea(!1),p=m=>{var g,_,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Nn("appsrockets_ad_dismissed",()=>p("dismiss")),Nn("appsrockets_ad_rewarded",()=>p("viewed")),Nn("appsrockets_ad_completed",()=>p("viewed")),Nn("appsrockets_ad_skipped",()=>p("viewed")),Nn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Nn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:gH,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};Kp=class{constructor(t,r){or(this,"name","APPSROCKETS"),or(this,"initialized",!1),or(this,"initCompleter",null),or(this,"context",void 0),or(this,"adsOverlay",null),or(this,"adsIsShowing",!1),or(this,"lastUnDisplayedAdBreak",null),or(this,"state",vH()),or(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),cu(ge(yH,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};at(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var I;this.adsIsShowing=!1,f.breakStatus="dismissed",(I=t.adDismissed)==null||I.call(t)},g=()=>{var I;this.adsIsShowing=!1,f.breakStatus="viewed",(I=t.adViewed)==null||I.call(t)},_=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};at(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var I;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(I=t.adBreakDone)==null||I.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,at(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},wA=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Qp=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,wA(),this.withCommand(()=>{this.init()})}};Yp=class{constructor(t,r,n){var i=this;ot(this,"adUnit",void 0),ot(this,"project",void 0),ot(this,"keyValue",void 0),ot(this,"adsContext",null),ot(this,"gamingInterstitialSlot",null),ot(this,"readyEvent",null),ot(this,"isRetrying",!1),ot(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ot(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))}),ot(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)}),ot(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ot(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ot(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")}))}),ot(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),wA(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Xp=class{constructor(t,r){Vr(this,"name","GOOGLE_GPT"),Vr(this,"context",void 0),Vr(this,"contextInfo",void 0),Vr(this,"initParams",void 0),Vr(this,"rewardAdManager",void 0),Vr(this,"interstitialManager",void 0),Vr(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new Qp(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Yp(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}}}};Zp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Rp(this,"context",void 0),Rp(this,"placement","GAME"),Rp(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:Xk.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:Qk.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Yk.WebSDK};return B3(i)}};il=class{constructor(t){Xe(this,"context",void 0),Xe(this,"adsTrackSerializer",void 0),Xe(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Zp(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}}},ef=class{constructor(t,r){var n=this;Xe(this,"context",void 0),Xe(this,"contextInfo",void 0),Xe(this,"requestContext",void 0),Xe(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Xe(this,"pendingAFVAdsInfo",Promise.resolve(null)),Xe(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Xe(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Xe(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Xe(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Xe(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Xe(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Xe(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new il(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};ol=class{constructor(t){if(Tt(this,"context",void 0),Tt(this,"contextInfo",void 0),Tt(this,"providers",{}),Tt(this,"channelPolicy",void 0),Tt(this,"adsActionDetection",void 0),Tt(this,"requestContext",void 0),Tt(this,"adsRequest",void 0),Tt(this,"initialized",!1),Tt(this,"adsIsShowing",!1),Tt(this,"lastAdBreak",void 0),Tt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Up(this.context),this.adsActionDetection=new Mp(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new ef(t),this.requestContext=new il(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new Xp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new jp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Wp(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new Kp(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let _=Date.now();if(_-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&_-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=_,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,I=v==null?void 0:v.code;if(I==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,C,O,x;(A=t.beforeAd)==null||A.call(t),(C=t.adViewed)==null||C.call(t),(O=t.afterAd)==null||O.call(t),(x=t.adBreakDone)==null||x.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||I!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=b.sort((P,J)=>P.seq-J.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let C=!0,O=null,x=new Fp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let P=A.shift(),J=this.providers[P.provider];if(J){let[We,q]=yield x.callAdBreakAndContinue(J,t,P,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});C=We,O=q}else C=!0,O={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!C)break}C&&O&&((f=t.adBreakDone)==null||f.call(t,O))}}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.")}},XY=Un`
|
|
771
|
+
`,JH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=ca(!1),p=m=>{var g,y,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Gn("appsrockets_ad_dismissed",()=>p("dismiss")),Gn("appsrockets_ad_rewarded",()=>p("viewed")),Gn("appsrockets_ad_completed",()=>p("viewed")),Gn("appsrockets_ad_skipped",()=>p("viewed")),Gn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Gn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:jH,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};rf=class{constructor(t,r){cr(this,"name","APPSROCKETS"),cr(this,"initialized",!1),cr(this,"initCompleter",null),cr(this,"context",void 0),cr(this,"adsOverlay",null),cr(this,"adsIsShowing",!1),cr(this,"lastUnDisplayedAdBreak",null),cr(this,"state",FH()),cr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),yu(ge(JH,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},g=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},LA=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};nf=class{constructor(t,r,n){$e(this,"adUnit",void 0),$e(this,"project",void 0),$e(this,"keyValue",void 0),$e(this,"adsContext",null),$e(this,"rewardedSlot",null),$e(this,"rewardedPayload",null),$e(this,"readyEvent",null),$e(this,"withCommand",function(){googletag.cmd.push(...arguments)}),$e(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))}),$e(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}),$e(this,"reinit",i=>{this.destroy(i),this.init()}),$e(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),$e(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)})}}),$e(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),$e(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),$e(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,LA(),this.withCommand(()=>{this.init()})}};of=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),LA(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};af=class{constructor(t,r){Yr(this,"name","GOOGLE_GPT"),Yr(this,"context",void 0),Yr(this,"contextInfo",void 0),Yr(this,"initParams",void 0),Yr(this,"rewardAdManager",void 0),Yr(this,"interstitialManager",void 0),Yr(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new nf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new of(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}}}};sf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Fp(this,"context",void 0),Fp(this,"placement","GAME"),Fp(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:pA.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:uA.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:dA.WebSDK};return u3(i)}};dl=class{constructor(t){Ze(this,"context",void 0),Ze(this,"adsTrackSerializer",void 0),Ze(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new sf(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}}},lf=class{constructor(t,r){var n=this;Ze(this,"context",void 0),Ze(this,"contextInfo",void 0),Ze(this,"requestContext",void 0),Ze(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ze(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ze(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ze(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ze(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ze(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ze(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ze(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ze(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new dl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};pl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Vp(this.context),this.adsActionDetection=new $p(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new lf(t),this.requestContext=new dl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new af(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new zp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new tf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new rf(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,k=v==null?void 0:v.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,P,C,S;(A=t.beforeAd)==null||A.call(t),(P=t.adViewed)==null||P.call(t),(C=t.afterAd)==null||C.call(t),(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=b.sort((T,j)=>T.seq-j.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,C=null,S=new Hp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let T=A.shift(),j=this.providers[T.provider];if(j){let[Ke,q]=yield S.callAdBreakAndContinue(j,t,T,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,C=q}else P=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},wX=Kn`
|
|
772
772
|
${ze}
|
|
773
773
|
position: fixed;
|
|
774
774
|
left: 0;
|
|
@@ -817,4 +817,4 @@ or `);this.errors.push(o)}return n}},As=class extends Ee{constructor(...t){super
|
|
|
817
817
|
cursor: pointer;
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
`});function EA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;SA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return SA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Tn,loginGuide:Cn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Tn,loginGuide:Cn}})}}}var SA,xA=k(()=>{"use strict";K();Ye();SA=E.testMode});var NH,DH,kA,AA,TA=k(()=>{"use strict";Ye();D();NH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,DH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(NH()):["ADS"],kA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;F.emit(Ms,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return DH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},AA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return F.emit(wr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Tn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Cn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Tn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Cn}}))}});var CA,PA=k(()=>{"use strict";CA=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var wt,Jn=k(()=>{"use strict";Ye();Ir();Ye();wt=nt(F,Ms)});var kr,vo=k(()=>{"use strict";D();kr=X()});var af,go,OA=k(()=>{"use strict";vo();Jn();Ir();Ye();Ye();af=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;kr.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield wt.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},go=(e,t)=>r=>w(void 0,null,function*(){let n=nt(F,Hr);return F.emit(js,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ul,sf=k(()=>{"use strict";ul=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var RA,NA=k(()=>{"use strict";RA=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=t==null?void 0:t.balance)!=null?i:0)}))});var lf,yo,DA=k(()=>{"use strict";sf();vo();Jn();NA();Ye();Ir();Ye();lf=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;kr.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,p,f;let i=yield wt.getData(),o=yield ul(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(f=(p=i==null?void 0:i.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?f:!1};return wt.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),RA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},yo=(e,t)=>r=>w(void 0,null,function*(){let n=nt(F,At);return F.emit(Us,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var cf,_o,LA=k(()=>{"use strict";K();vo();Ir();Ye();Ye();D();sf();Jn();cf=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;kr.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,p,f,m;let i=(a=E.hostUserInfo)==null?void 0:a.isLogin,o=yield wt.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield Vf(3e3));let b=yield ul(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(C=>C.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(p=b==null?void 0:b.balance)!=null?p:0,enableAutoDeduct:(m=(f=o==null?void 0:o.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?m:!1};if(wt.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},_o=(e,t)=>()=>w(void 0,null,function*(){let r=nt(F,rr);return F.emit(Bs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var dl=k(()=>{"use strict";OA();DA();LA()});var pl,uf=k(()=>{"use strict";K();D();dl();vo();pl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>(cf(e,{httpClient:t,showUnloginModal:s}),lf(e,{httpClient:t,initiateAndAwaitPayment:o}),af(e,{showUnlockWithJolicoinModal:a}),l=>w(void 0,null,function*(){var c,d,u;try{let p=!0,f=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];for(let g of f){let _=yield kr.executeCommand(g);if(p=p&&_.result!=="FAILED",_.result!=="CONTINUE")break}if(!p)return n==null||n(l),!1;let m=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${No()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithJolicoin request result-----",m),m.code=="SUCCESS"){try{(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l))}catch(g){console.error("-----unlockWithJolicoin adBreakDone error-----",g)}return r==null||r({quantity:m.data.quantity,balance:m.data.balance}),!0}return n==null||n(l),!1}catch(p){if(console.info("JolicoinRewardHandler error:",p),p instanceof Error&&p.message=="CANCEL")throw p;return n==null||n(l),!1}finally{i.clearCache()}}))});var qA,FA=k(()=>{"use strict";Jn();uf();dl();qA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=go("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=yo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=_o("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return pl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var MA,UA=k(()=>{"use strict";uf();Jn();dl();MA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=go("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=yo("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=_o("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return pl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var sr,jA=k(()=>{"use strict";xA();TA();PA();FA();UA();sr=EA();kA(sr);AA(sr)});var fl,LH,bo,qH,wo,BA,FH,MH,df,UH,jH,JA=k(()=>{"use strict";D();rt();er();wk();IA();gt();K();vt();_e();jA();ac();fl=X(),LH=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},bo={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},qH={httpClient:bo,checkNetwork:LH,track:M,eventEmitter:Fo,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},wo=new ol(qH);sr.getRewardFrequencyConfig(bo).then(e=>{console.log("getRewardFrequencyConfig",e)});sr.registerRewardHandler("ADS",CA(wo));sr.registerRewardHandler("JOLI_COIN",qA(bo,{onUnlockSuccess:e=>{BA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));sr.registerRewardHandler("JOLI_COIN_ONLY",MA(bo,{onUnlockSuccess:e=>{BA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));BA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Jr(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},FH=G("adInit",{implement:e=>{wo.init(e)}}),MH=G("adConfig",{implement:e=>{wo.adConfig(e)}}),df=!1,UH=G("adBreak",{implement:e=>{if(e.type==="reward"){if(df)return;df=!0,sr.getRewardsTypes(bo).then(t=>{sr.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{df=!1})})}else wo.adBreak(e)}}),jH=G("adUnit",{implement:e=>{wo.adUnit(e)}});fl.registerCommand("AdsSDK.init",FH);fl.registerCommand("AdsSDK.adConfig",MH);fl.registerCommand("AdsSDK.adBreak",UH);fl.registerCommand("AdsSDK.adUnit",jH);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Io,BH,JH,HH,$H,VH,HA=k(()=>{"use strict";D();_e();rt();K();Io=X(),BH=G("openSchemaSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new lr(r.errMsg,r.errNo)}}),JH=G("openPageSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new lr(r,t);return{webviewId:n.webviewId}}}),HH=G("closePageSync",{paramsSchema:S.tuple(S.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new lr(r,t)}}),$H=G("interceptSystemExitSync",{paramsSchema:S.tuple(S.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),VH=G("navigateToNativePage",{paramsSchema:S.tuple(S.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),S.object()),implement:(e,t)=>{U("callHostMethodAsync",{method:e,params:T({},t)})}});Io.registerCommand("RouterSDK.openSchema",BH);Io.registerCommand("RouterSDK.openPage",JH);Io.registerCommand("RouterSDK.closePage",HH);Io.registerCommand("RouterSDK.interceptSystemExit",$H);Io.registerCommand("RouterSDK.navigateToNativePage",VH);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function WH(e){Ll("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var VA,GH,hl,pf,$A,zH,KH,GA=k(()=>{"use strict";D();rt();_e();K();gt();VA=X(),GH=G("onLoadFinished",{implement:()=>{Ll("cpLoadFinishEvent",{},E.webviewId,!0),M("loadFinished",{duration:performance.now()})}}),hl=null,pf=!1,$A=0,zH=200;KH=G("onLoadProgress",{paramsSchema:S.tuple(S.number()),implement:e=>{hl=e,pf||(pf=!0,requestAnimationFrame(function t(){let r=Date.now();r-$A>=zH?(hl!==null&&(WH(hl),$A=r,hl=null),pf=!1):requestAnimationFrame(t)}))}});VA.registerCommand("RuntimeSDK.loadFinishedEvent",GH);VA.registerCommand("RuntimeSDK.loadProgressEvent",KH)});var QH,YH,XH,zA=k(()=>{"use strict";D();rt();K();QH=X(),YH="isNativeSupport",XH=G(YH,{paramsSchema:S.tuple(S.object({version:S.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:ih(ap(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});QH.registerCommand("API.isNativeSupport",XH);L("isNativeSupport",{version:"1.1.46"})});var QA=h(KA=>{"use strict";rt();_e();D();D();K();var ZH=X(),ml=[],ff=!1,WA=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;ml=WA((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),ff=!0});var e9=()=>new Promise(e=>{if(ff)e(ml);else{let t=r=>{var n;ml=WA((n=r.globalConfig.supportedHostMethods)!=null?n:[]),ff=!0,ne.off("onGlobalConfigChanged",t),e(ml)};ne.on("onGlobalConfigChanged",t)}}),t9=Pe("callHostMethod",{paramsSchema:S.tuple(S.object({method:S.string(),params:S.object().optional().default({})})),implement:r=>w(KA,[r],function*({method:e,params:t}){if(!(yield e9()).includes(e))throw new lr("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield U("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new lr(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});ZH.registerCommand("API.callHostMethod",t9);L("callHostMethod",{version:"1.1.49"})});var r9={};var dee,mee,wee,YA=k(()=>{"use strict";Rx();dee=ie(Nx());jx();dp();Vx();mee=ie(Gx());Ls();JA();HA();GA();zA();wee=ie(QA())});var XA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[XA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[XA]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Sx(),Ix)),Promise.resolve().then(()=>(YA(),r9)),Promise.resolve().then(()=>(gt(),Dh))]);e()});
|
|
820
|
+
`});function UA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;MA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return MA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Un,loginGuide:Fn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Un,loginGuide:Fn}})}}}var MA,FA=x(()=>{"use strict";G();Xe();MA=E.testMode});var r4,n4,jA,JA,BA=x(()=>{"use strict";Xe();N();r4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},n4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(r4()):["ADS"],jA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),M.emit(Vs,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return n4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},JA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return M.emit(xr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Un,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Fn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Un,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Fn}}))}});var GA,HA=x(()=>{"use strict";GA=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var We,Pr=x(()=>{"use strict";Xe();Ar();Xe();We=it(M,Vs)});var gl,ff=x(()=>{"use strict";gl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var Vt,Xn=x(()=>{"use strict";N();Vt=X()});var $A,VA=x(()=>{"use strict";$A=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var zA,WA=x(()=>{"use strict";zA=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var Zn,yl=x(()=>{"use strict";VA();WA();Zn={JOLI_COIN:{fetchBalance:$A,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:zA,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.joliGemChoices)==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 r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>{var o,a,s;return i.type==="JOLI_GEM"&&((a=(o=i.joliGemChoices)==null?void 0:o.joliGemQuantity)!=null?a:0)<=((s=t==null?void 0:t.balance)!=null?s:0)}))!=null?n:!1}}}});var Co,dr,hf=x(()=>{"use strict";Xn();Pr();Ar();Xe();Xe();yl();Co=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;Vt.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield We.getData(),o=Zn.JOLI_COIN,a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},dr=(e,t)=>r=>w(void 0,null,function*(){let n=it(M,Wr);return M.emit(Ws,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var To,pr,KA=x(()=>{"use strict";Xn();Pr();Xe();Ar();Xe();yl();To=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;Vt.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield We.getData(),a=Zn[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return We.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},pr=(e,t)=>r=>w(void 0,null,function*(){let n=it(M,At);return M.emit(zs,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Oo,fr,YA=x(()=>{"use strict";G();Xn();Ar();Xe();Xe();N();Pr();yl();Oo=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;Vt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield We.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield Xf(3e3));let f=Zn[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),y=f.getCurrentUser(a),v=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(We.updateData({[b]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=it(M,ar);return M.emit(Ks,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Qr=x(()=>{"use strict";hf();KA();YA()});var i4,_l,mf=x(()=>{"use strict";G();N();ff();Qr();Xn();i4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Oo(e,"JOLI_COIN",{httpClient:t,showUnloginModal:l}),To(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Co(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let m=!0;for(let v of c){let b=yield Vt.executeCommand(v);if(m=m&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let g=gl[r],y=yield t.post(g.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${rn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d))}catch(v){console.error("-----unlockWithJolicoin adBreakDone error-----",v)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},_l=(e,t,r)=>i4(e,t,"JOLI_COIN",r)});var QA,XA=x(()=>{"use strict";Pr();mf();Qr();QA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return _l("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:We,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var ZA,eC=x(()=>{"use strict";mf();Pr();Qr();ZA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return _l("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:We,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var bl,vf=x(()=>{"use strict";G();N();ff();Qr();hf();Xn();bl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{Oo(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),To(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Co(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let v=yield Vt.executeCommand(y);if(f=f&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=gl.GEM,g=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${rn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",g),g.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c))}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var tC,rC=x(()=>{"use strict";Pr();vf();Qr();tC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_GEM",{confirmButtonText:"gem.useGem",cancelButtonText:"gem.noWatchAds"}),o=pr("ADS-JOLI_GEM",{confirmButtonText:"gem.payAndUnlock",cancelButtonText:"gem.noWatchAds"}),a=fr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return bl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:We,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var nC,iC=x(()=>{"use strict";vf();Pr();Qr();nC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_GEM",{confirmButtonText:"gem.useGem",cancelButtonText:"gem.noThanks"}),o=pr("JOLI_GEM",{confirmButtonText:"gem.payAndUnlock",cancelButtonText:"gem.noThanks"}),a=fr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return bl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:We,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,oC=x(()=>{"use strict";FA();BA();HA();XA();eC();rC();iC();Tt=UA();jA(Tt);JA(Tt)});var wl,o4,Xr,a4,Po,Il,s4,l4,gf,c4,u4,aC=x(()=>{"use strict";N();nt();ir();Lx();qA();yt();G();gt();_e();oC();mc();wl=X(),o4=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Xr={get:(e,t)=>te(e,O({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,O({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},a4={httpClient:Xr,checkNetwork:o4,track:F,eventEmitter:Vo,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Po=new pl(a4);Tt.getRewardFrequencyConfig(Xr).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",GA(Po));Tt.registerRewardHandler("JOLI_COIN",QA(Xr,{onUnlockSuccess:e=>{Il(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",ZA(Xr,{onUnlockSuccess:e=>{Il(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",tC(Xr,{onUnlockSuccess:e=>{Il(e)}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",nC(Xr,{onUnlockSuccess:e=>{Il(e)}}));Il=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;zr(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},s4=z("adInit",{implement:e=>{Po.init(e)}}),l4=z("adConfig",{implement:e=>{Po.adConfig(e)}}),gf=!1,c4=z("adBreak",{implement:e=>{if(e.type==="reward"){if(gf)return;gf=!0,Tt.getRewardsTypes(Xr).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{gf=!1})})}else Po.adBreak(e)}}),u4=z("adUnit",{implement:e=>{Po.adUnit(e)}});wl.registerCommand("AdsSDK.init",s4);wl.registerCommand("AdsSDK.adConfig",l4);wl.registerCommand("AdsSDK.adBreak",c4);wl.registerCommand("AdsSDK.adUnit",u4);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Ro,d4,p4,f4,h4,m4,sC=x(()=>{"use strict";N();_e();nt();G();Ro=X(),d4=z("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),p4=z("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),f4=z("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),h4=z("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),m4=z("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),I.object()),implement:(e,t)=>{U("callHostMethodAsync",{method:e,params:O({},t)})}});Ro.registerCommand("RouterSDK.openSchema",d4);Ro.registerCommand("RouterSDK.openPage",p4);Ro.registerCommand("RouterSDK.closePage",f4);Ro.registerCommand("RouterSDK.interceptSystemExit",h4);Ro.registerCommand("RouterSDK.navigateToNativePage",m4);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function y4(e){Hl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var cC,v4,El,yf,lC,g4,_4,uC=x(()=>{"use strict";N();nt();_e();G();yt();cC=X(),v4=z("onLoadFinished",{implement:()=>{Hl("cpLoadFinishEvent",{},E.webviewId,!0),F("loadFinished",{duration:performance.now()})}}),El=null,yf=!1,lC=0,g4=200;_4=z("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{El=e,yf||(yf=!0,requestAnimationFrame(function t(){let r=Date.now();r-lC>=g4?(El!==null&&(y4(El),lC=r,El=null),yf=!1):requestAnimationFrame(t)}))}});cC.registerCommand("RuntimeSDK.loadFinishedEvent",v4);cC.registerCommand("RuntimeSDK.loadProgressEvent",_4)});var b4,w4,I4,dC=x(()=>{"use strict";N();nt();G();b4=X(),w4="isNativeSupport",I4=z(w4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:dh(hp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});b4.registerCommand("API.isNativeSupport",I4);L("isNativeSupport",{version:"1.1.46"})});var mC=h(bf=>{"use strict";nt();_e();N();N();G();var pC=X(),kl=[],_f=!1,fC=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;kl=fC((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),_f=!0});var hC=()=>new Promise(e=>{if(_f)e(kl);else{let t=r=>{var n;kl=fC((n=r.globalConfig.supportedHostMethods)!=null?n:[]),_f=!0,ne.off("onGlobalConfigChanged",t),e(kl)};ne.on("onGlobalConfigChanged",t)}}),E4=Se("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(bf,[r],function*({method:e,params:t}){if(!(yield hC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield U("callHostMethodAsync",{method:e,params:O({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return O({},l)})});pC.registerCommand("API.callHostMethod",E4);L("callHostMethod",{version:"1.1.49"});var k4=Se("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(bf,[n],function*({event:e,eventType:t,params:r}){if(!(yield hC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield U("trackAsync",{event:e,eventType:t,data:O({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});pC.registerCommand("API.track",k4);L("track",{version:"1.1.53"})});var S4={};var dte,mte,wte,vC=x(()=>{"use strict";JS();dte=ie(BS());KS();_p();ex();mte=ie(tx());Gs();aC();sC();uC();dC();wte=ie(mC())});var gC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[gC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[gC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(RS(),PS)),Promise.resolve().then(()=>(vC(),S4)),Promise.resolve().then(()=>(yt(),Jh))]);e()});
|