@jolibox/implement 1.1.29-beta.1 → 1.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/package-deps_build.json +1 -1
- package/dist/index.js +8 -8
- package/dist/index.native.js +18 -18
- package/implement.build.log +2 -2
- package/package.json +5 -5
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var dI=Object.create;var Xi=Object.defineProperty,fI=Object.defineProperties,pI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyDescriptors,mI=Object.getOwnPropertyNames,Qi=Object.getOwnPropertySymbols,vI=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty,ff=Object.prototype.propertyIsEnumerable;var df=(e,t,r)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Ds.call(t,r)&&df(e,r,t[r]);if(Qi)for(var r of Qi(t))ff.call(t,r)&&df(e,r,t[r]);return e},q=(e,t)=>fI(e,hI(t));var pt=(e,t)=>{var r={};for(var n in e)Ds.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qi)for(var n of Qi(e))t.indexOf(n)<0&&ff.call(e,n)&&(r[n]=e[n]);return r};var I=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pf=(e,t)=>{for(var r in t)Xi(e,r,{get:t[r],enumerable:!0})},gI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mI(t))!Ds.call(e,i)&&i!==r&&Xi(e,i,{get:()=>t[i],enumerable:!(n=pI(t,i))||n.enumerable});return e};var ae=(e,t,r)=>(r=e!=null?dI(vI(e)):{},gI(t||!e||!e.__esModule?Xi(r,"default",{value:e,enumerable:!0}):r,e));var x=(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 xI(e){return!!(e!=null&&e.__nativeBuffers__)}function Bs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!xI(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=AI(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function II(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:SI(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function CI(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Sf(e){return typeof e=="string"}function An(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function PI(e){return typeof e=="undefined"}function NI(e){return PI(e)||e===null}function If(e){return typeof e=="function"}function DI(e){return An(e)&&If(e.then)}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 En(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function HI(){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 WI(e){return new Promise(t=>Tf(e)(t))}function Tf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function YI(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new In(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function XI(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)ZI(e[n],t[n])}function ZI(e,t){if(Sf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(If(t)){try{if(e instanceof t)return}catch(r){}if(!NI(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 gf(e,t){return`[${e}]:${t}`}function o1(e,t){yf||(Us=new eo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),js=new eo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ms=new eo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Us.flush(),js.flush(),Ms.flush()}),yf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:f=0,__timing:p={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=p,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Us.report({status:_,method:n(s,l),errNo:`${f}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(js.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Ms.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 c1(e,t){let r=0,n=!0,i=l1.resolveMap,o=o1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Fs.forEach(l=>ro(this,[l],function*({method:c,args:d,resolve:u}){let f=yield s(c,d);u(f)})),Fs.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Bs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let f=Date.now(),p=`${n}`;r+=1;let m=new OI;if(i.set(r,m.resolve),!n&&r1.includes(l))return new Promise(k=>{Fs.push({method:l,args:c,resolve:k})});let g=wI(Yt({},{method:l,startTime:f,args:c,isForeground:p}),{invokeType:"js-bridge"}),_=!a1&&t1.includes(l),v=II(c,_),b=_?v:JSON.stringify(v),E;if(l.endsWith("Sync")||n1.includes(l)?E=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?E=e.invoke(l,b,r):E=(u=e.call)==null?void 0:u.call(e,l,b,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=Bs(E)}catch(k){Ks.error(k)}return i.delete(r),E.errorCode&&(E.errorCode=gf(l,E.errorCode)),o(Yt(Yt({},g),E)),E}return l.endsWith("Sync")&&i.delete(r),m.promise.then(k=>(k.errorCode&&(k.errorCode=gf(l,k.errorCode)),o(Yt(Yt({},g),k)),k))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return DI(d)?d.then(u=>_f(l,u)):_f(l,d)},invokeHandler:a}}function _f(e,t){if(!An(t)){Ks.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=EI(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new jI(n,i,o,a);return s}function u1(e){if(globalThis[Zi])return globalThis[Zi];let t=new Hs,r=new Hs,n=new eo({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[Zi]={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=Bs(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===Rf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Sn.length),u,a)}catch(f){}});return}if(i.startsWith(Sn)){r.emit(i.slice(Sn.length),l,a);return}t.emit(i,l,a)}},globalThis[Zi]}function d1(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${Sn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(Rf,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${Sn}${n}`,i])}}function f1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=u1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=c1(e,r),c=d1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Cf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var yI,_I,bI,to,wf,Ef,hf,Yt,wI,EI,ro,AI,SI,xf,kI,TI,Af,RI,OI,qI,LI,no,UI,jI,MI,qs,Ks,mf,FI,BI,$I,JI,VI,t4,$s,Z,zI,GI,xn,In,Hs,Vs,KI,Ls,QI,r4,zs,vf,n4,e1,Sn,t1,r1,n1,Rf,i1,eo,yf,Us,js,Ms,Fs,a1,Gs,s1,l1,Zi,Ws,rt,Of,Pf,p1,Nf,bf,Pe,L,nt,i4,h1,Df,o4,a4,Me=I(()=>{"use strict";yI=Object.defineProperty,_I=Object.defineProperties,bI=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,hf=(e,t,r)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))wf.call(t,r)&&hf(e,r,t[r]);if(to)for(var r of to(t))Ef.call(t,r)&&hf(e,r,t[r]);return e},wI=(e,t)=>_I(e,bI(t)),EI=(e,t)=>{var r={};for(var n in e)wf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&to)for(var n of to(e))t.indexOf(n)<0&&Ef.call(e,n)&&(r[n]=e[n]);return r},ro=(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())});AI=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};SI=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)};xf=Object.defineProperty,kI=Object.getOwnPropertyDescriptor,TI=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},Af=(e,t,r,n)=>{for(var i=n>1?void 0:n?kI(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&&xf(t,r,i),i},RI=(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}OI=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))}})}};qI=(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))(qI||{}),LI=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}},no=class extends LI{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},UI=class extends no{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},jI=class extends no{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},MI=class extends no{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},qs=class extends no{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ks={log:En("log"),warn:En("warn"),info:En("info"),error:En("error"),debug:En("debug")};Object.assign(globalThis,{logger:Ks});mf=Symbol.for("Jolibox.canIUseMap"),FI={};globalThis[mf]||(globalThis[mf]=FI);BI=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(BI||{}),$I=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))($I||{}),JI=(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))(JI||{});HI();VI=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),t4={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},$s=class Js{constructor(t){this.element=t,this.next=Js.Undefined,this.prev=Js.Undefined}};$s.Undefined=new $s(void 0);Z=$s,zI=class{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let e=this._first;for(;e!==Z.Undefined;){let t=e.next;e.prev=Z.Undefined,e.next=Z.Undefined,e=t}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Z(e);if(this._first===Z.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!==Z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Z.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Z.Undefined&&e.next!==Z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Z.Undefined&&e.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):e.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):e.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Z.Undefined;)yield e.element,e=e.next}},GI=0,xn=class{constructor(e){this.value=e,this.id=GI++}},In=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 xn&&(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 xn(t);return this._listeners?this._listeners instanceof xn?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,f,p;if(!this._disposed){if(this._listeners instanceof xn)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&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 xn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Hs=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 In,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 zI,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)}},Vs={};TI(Vs,{None:()=>KI,filter:()=>YI,once:()=>Tf,toPromise:()=>WI});KI=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ls=Symbol.for("Jolibox.hostEmitter"),QI=()=>{let e=new Hs;return globalThis[Ls]||(globalThis[Ls]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ls]},r4=QI();zs=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new In,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 XI(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}};zs=Af([kf],zs);vf=class{constructor(){this._onWillExecuteCommand=new In,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new In,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zs,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=CI(3e4)),this._starActivation}executeCommand(e,...t){return RI(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Vs.toPromise(Vs.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}}};vf=Af([kf],vf);n4=Symbol.for("Jolibox.commands");e1=()=>VI(),Sn="custom_event_",t1=[],r1=[],n1=["env","createRequestTask","login"],Rf="__batch_event__",i1=e=>e==="pv"?e:"default",eo=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=i1(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&&An(a))throw new qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(An(a))l.push(...Object.keys(a));else if(Sf(a)){if(i.length>0)throw new qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new qs(`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=An(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={}}},yf=!1;Fs=[],a1=!1,Gs=Symbol.for("Jolibox.invokeResolverInstance"),s1=new Map;globalThis[Gs]||(globalThis[Gs]=s1);l1={get resolveMap(){return globalThis[Gs]}};Zi=Symbol.for("Jolibox.subscribeInstance");rt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){rt.trigger=e},onDoExit(e){rt.exit=e},onDoBackPress(e){rt.backPress=e}},Of=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new UI("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{rt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>ro(void 0,null,function*(){let o=yield rt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Ws={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Cf(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:Of,doExit:r};globalThis.joliboxJSCore=Yt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{rt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>ro(void 0,null,function*(){let a=yield rt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Ws={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Cf(a,"joliboxJSCore");t.publish({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 ro(this,null,function*(){let a=yield rt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Of,doExit:n};globalThis.joliboxJSCore=Yt({},i)}Pf=Ws;if(!Pf&&e1())throw new MI("No joliboxJScore is found, native bridge not found.");p1=Yt({},Pf),Nf=f1(p1),{invokeHandler:bf}=Nf,{applyNative:Pe,invokeNative:L,onNative:nt,offNative:i4,subscribeHandler:h1,publish:Df,subscribe:o4,unsubscribe:a4}=Nf;globalThis.joliboxJSBridge={callHandler:bf,invokeHandler:bf,subscribeHandler:h1}});function w1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Cn(e){return typeof e=="string"}function mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Mf(e){return typeof e=="object"&&Array.isArray(e)}function On(e){return e===!0||e===!1}function Ff(e){return typeof e=="undefined"}function E1(e){return Ff(e)||e===null}function x1(e){return typeof e=="function"}function Bf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $f(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:Uf(l)&&Uf(s)?i[a]=n(y1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Uf(e){return e&&typeof e=="object"&&e.constructor===Object}function Jf(e,t){if(Array.isArray(e))return e.concat(t)}function Pn(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 f=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!f&&c()},t),f)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 S1(e,t){return(...r)=>t(e,...r)}function ao(e){return t=>S1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pr(`${i}`))}})}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ll(){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 D1(e){return new Promise(t=>Xf(e)(t))}function Xf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function q1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Rn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function U1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)j1(e[n],t[n])}function j1(e,t){if(Cn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(x1(t)){try{if(e instanceof t)return}catch(r){}if(!E1(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 M1(){return typeof globalThis!="undefined"?globalThis[Zf]:void 0}function F1(e){typeof globalThis!="undefined"&&(globalThis[Zf]=e)}function pe(){let e=M1();if(e)return e;let t=new io,r=new tl,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return F1(n),n}var rl,m1,qf,v1,g1,Lf,y1,_1,jf,b1,Qt,A1,nl,oo,il,Hf,Pr,Vf,zf,Gf,Kf,Nn,ol,ht,Qs,I1,al,k1,sl,T1,so,Dn,R1,C1,Wf,Yf,Qf,Xs,ee,O1,P1,Tn,Rn,mt,el,N1,Ys,L1,_e,io,tl,Zf,N=I(()=>{"use strict";rl=Object.defineProperty,m1=Object.getOwnPropertyDescriptor,qf=Object.getOwnPropertySymbols,v1=Object.prototype.hasOwnProperty,g1=Object.prototype.propertyIsEnumerable,Lf=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y1=(e,t)=>{for(var r in t||(t={}))v1.call(t,r)&&Lf(e,r,t[r]);if(qf)for(var r of qf(t))g1.call(t,r)&&Lf(e,r,t[r]);return e},_1=(e,t)=>{for(var r in t)rl(e,r,{get:t[r],enumerable:!0})},jf=(e,t,r,n)=>{for(var i=n>1?void 0:n?m1(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&&rl(t,r,i),i},b1=(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}Qt=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))}})}};A1=(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))(A1||{}),nl=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}},oo=class extends nl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},il=class extends nl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Hf=class extends il{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pr=class extends il{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))}},Vf=class extends il{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))}},zf=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Gf=class extends oo{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))}},Kf=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Nn=class extends nl{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}}},ol=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};ht={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:ht});Qs=Symbol.for("Jolibox.canIUseMap"),I1={};globalThis[Qs]||(globalThis[Qs]=I1);al={get config(){return globalThis[Qs]}},k1=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(k1||{}),sl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(sl||{}),T1=(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))(T1||{}),so=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ll();Dn={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},R1="device_id",C1="advertising_id",Wf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,so()),window.__joliboxLocalStorage__.getItem(e)),Yf=()=>new URLSearchParams(window.location.search).get("deviceId")||Wf(R1),Qf=()=>new URLSearchParams(window.location.search).get("advertisingId")||Wf(C1),Xs=class Zs{constructor(t){this.element=t,this.next=Zs.Undefined,this.prev=Zs.Undefined}};Xs.Undefined=new Xs(void 0);ee=Xs,O1=class{constructor(){this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ee.Undefined}clear(){let e=this._first;for(;e!==ee.Undefined;){let t=e.next;e.prev=ee.Undefined,e.next=ee.Undefined,e=t}this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ee(e);if(this._first===ee.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!==ee.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ee.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ee.Undefined&&e.next!==ee.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ee.Undefined&&e.next===ee.Undefined?(this._first=ee.Undefined,this._last=ee.Undefined):e.next===ee.Undefined?(this._last=this._last.prev,this._last.next=ee.Undefined):e.prev===ee.Undefined&&(this._first=this._first.next,this._first.prev=ee.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ee.Undefined;)yield e.element,e=e.next}},P1=0,Tn=class{constructor(e){this.value=e,this.id=P1++}},Rn=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 Tn&&(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 Tn(t);return this._listeners?this._listeners instanceof Tn?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,f,p;if(!this._disposed){if(this._listeners instanceof Tn)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&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 Tn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},mt=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 Rn,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 O1,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)}},el={};_1(el,{None:()=>N1,filter:()=>q1,once:()=>Xf,toPromise:()=>D1});N1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ys=Symbol.for("Jolibox.hostEmitter"),L1=()=>{let e=new mt;return globalThis[Ys]||(globalThis[Ys]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ys]},_e=L1();io=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Rn,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 U1(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}};io=jf([Bf],io);tl=class{constructor(){this._onWillExecuteCommand=new Rn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Rn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new io,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=w1(3e4)),this._starActivation}executeCommand(e,...t){return b1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),el.toPromise(el.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}}};tl=jf([Bf],tl);Zf=Symbol.for("Jolibox.commands")});function Ae(e,t={}){cl.emit("ERROR_REPORT",{error:e,options:t})}var cl,vr,lt=I(()=>{"use strict";N();N();cl=new mt,vr=new mt;Ae.debounce=Pn(Ae,50,{leading:!0})});var ul,B1,ep,tp,rp=I(()=>{"use strict";N();lt();ul=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{}}},B1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ep=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:ul(o),payloadJson:ul(a),signature:ul(s)}}else throw"joli_source is missing"}catch(r){return Ae(new zf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},tp=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=B1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var $1,dl,np=I(()=>{"use strict";N();$1="1.1.29-beta.1",dl=()=>$1});function H1(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var J1,ip,fl,op,xe,V1,S,se=I(()=>{"use strict";N();rp();np();N();J1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Yf(),adId:Qf(),pixelRatio:window.devicePixelRatio||1,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:dl()},schema:window.location.href,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5"},fl=(ip=globalThis.joliboxJSCore)==null?void 0:ip.env,xe=Object.assign({},(op=fl==null?void 0:fl())!=null?op:J1);V1=()=>{var f,p,m,g,_,v,b,E,k,O,R;let{payloadJson:e,headerJson:t,signature:r}=xe.schema.length?ep(xe.schema):{},n=`${xe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(xe.schema.length?xe.schema:window.location.href).searchParams,a=(m=(p=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?p:o.get("gameId"))!=null?m:"",s=(v=(_=(g=xe.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:o.get("sessionId"))!=null?v:n,l=!!((E=(b=e==null?void 0:e.testAdsMode)!=null?b:e==null?void 0:e.__testAdsMode)!=null?E:o.get("testAdsMode")==="true"),c=(R=(O=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?R:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var y;return(y=o.get("joliSource"))!=null?y:null},get mpId(){var y;return(y=a!=null?a:e==null?void 0:e.id)!=null?y:""},get mpVersion(){var y;return(y=t==null?void 0:t.ver)!=null?y:dl()},get mpType(){var y,J;return(J=(y=t==null?void 0:t.__mpType)!=null?y:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var y;return((y=xe.platform)!=null?y:xe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return xe.deviceInfo},get sdkInfo(){return xe.sdkInfo},get hostInfo(){return xe.hostInfo},get hostUserInfo(){return xe.hostUserInfo},get sessionId(){var y,J;return(J=(y=xe.clientSessionId)!=null?y:s)!=null?J:n},get channel(){return u},get webviewId(){var y;return(y=xe.webviewId)!=null?y:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},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 y;return(y=xe.deviceInfo.adId)!=null?y:xe.deviceInfo.did},get language(){return xe.deviceInfo.lang},get sdkEnvironment(){return H1("dlightek","jolibox")?"dlightek":"jolibox"},onEnvConfigChanged:y=>{$f(xe,y,Jf)},encodeJoliSourceQuery:y=>{var J,et;return t&&r?tp(T(T({},e),y),(J=o.get("joliSource"))!=null?J:""):(et=o.get("joliSource"))!=null?et:""}}},S=V1()});var pl,sp,z1,G1,ap,K1,lp=I(()=>{"use strict";N();lt();se();N();pl=!1,sp=(e,t)=>e==null?!1:t in e,z1=e=>sp(e,"kind"),G1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},ap=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:G1(e.name)},i=q(T({},n),{env:t.environment,isFromUser:r});r?vr.emit("GLOBAL_USER_ERROR",e,i):vr.emit("GLOBAL_ERROR",e,i)},K1=e=>sp(e,"kind")&&e.kind==="USER_ERROR";cl.on("ERROR_REPORT",({error:e,options:t})=>{if(pl)return;pl=!0;let r=z1(e)&&e.raw?e.raw:e;try{let n=K1(e);ap(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ol(`${i}, origin error: ${r.message}`);ht.error(o),ap(new ol(o.message),{environment:t.environment},!1)}finally{pl=!1}})});var Xt,hl,Nr=I(()=>{"use strict";lt();N();lt();Xt=(e,t)=>{var r,n;return new Nn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},hl=e=>new Hf(e)});var cp=I(()=>{"use strict";lp();Nr();N();Me();vr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});vr.on("GLOBAL_USER_ERROR",(e,t)=>{ht.log("UserError",e,t)})});var ml=I(()=>{"use strict"});function up(e,t){let r=(n,i,o)=>{let a=q(T({tag:n},t),{extra:T({},i)});n=="globalJsError"?Ae(new Kf(JSON.stringify(a))):e("systemLog",a,o)};return r.debounce=Pn(r,500,{leading:!0}),r}function dp(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=Pn(t,500,{leading:!0}),t}var fp=I(()=>{"use strict";N();N();lt()});function pp(e,t){let r=up(e,t),n=dp(r);return{track:r,trackPerformance:n}}var hp=I(()=>{"use strict";fp()});var mp=I(()=>{"use strict";se();N();N()});var vp=I(()=>{"use strict";hp();ml();mp()});var lo,gp=I(()=>{"use strict";lo=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 p=Date.now(),m=p-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=p),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let p=Date.now();p-r>=this.interval&&(r=p)},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",p=>{o&&(console.log("visible",p),p?c():l())});let f=this.visible;return{start(){o||(o=!0,f?c():l())},stop(){o=!1,d(),u()}}}}});var vl=I(()=>{"use strict"});function _p(e,t,r){let{response:n,startTime:i,endTime:o,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:o-i,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&yp<Y1||a==="inner")&&(d.joli_request_number=yp++,setTimeout(()=>{ze("joliboxNetRequestResult",d)},500))}var yp,Y1,bp=I(()=>{"use strict";vl();Zt();yp=0,Y1=10});function co(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 nt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let f=n.get(u.requestTaskId);if(f)if(u.state==="success"){let p=u,{requestTaskId:g,state:_}=p,v=pt(p,["requestTaskId","state"]);u.statusCode===200?f.resolve(v):f.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=pt(m,["requestTaskId","state"]);f.reject(v),n.delete(g)}else ht.warn("onRequestTaskStateChange unknown event",u)}),_e.on("onLoginComplete",({isLogin:u,token:f})=>{u&&f&&(a["X-JOLI-TOKEN"]=f)}),(p,...m)=>x(this,[p,...m],function*(u,f={}){let g=Date.now(),_=Q1(u,q(T({},f),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:E="json",timeout:k,enableCache:O=!1,appendHostCookie:R=!0}=f,y=Object.assign({"content-type":"application/json"},a,f.header),J={url:_,method:v,header:y,enableCache:O,responseType:b,appendHostCookie:R};if(v=="POST"||v=="PUT"){let ft=Z1(f.data,y["content-type"]);J.data=ft}k&&Object.assign(J,{timeout:k});let{data:{requestTaskId:et}}=L(e,J);if(typeof et!="string")throw Xt({code:-1,msg:"requestTaskId is not a string"});let Or=(ft,Ct)=>{_p("request",_,{state:ft,startTime:g,endTime:Date.now(),params:J,response:Ct,requestId:et,requestFrom:o=="public"?"public":"inner"})},{resolve:tt,reject:hr,promise:sI}=new Qt;n.set(et,{resolve:tt,reject:hr});try{let ft=yield sI;Or("success",ft);let{data:Ct}=ft;return E==="json"&&typeof Ct=="string"&&(Ct=X1(Ct)),{url:_,timeout:k,method:v,response:q(T({},ft),{data:Ct})}}catch(ft){let Ct=ft;if(mr(Ct)){let{errMsg:Yi,prefetchDetail:lI,isPrefetch:cI,errNo:uI}=Ct;Cn(Yi)&&(Or("fail",{errMsg:Yi,isPrefetch:cI,prefetchDetail:lI}),Ae(Xt({code:-1,msg:Yi},{errNo:uI,errMsg:Yi})))}throw ft}})}function X1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function Z1(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 Q1,gl=I(()=>{"use strict";N();bp();vl();Me();lt();Nr();Q1=(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 yl,wp,le,Ot=I(()=>{"use strict";gl();se();yl={};(wp=S.hostUserInfo)!=null&&wp.token&&(yl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(yl["x-joli-source"]=S.joliSource);le=co("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:yl})});var uo,Ep=I(()=>{"use strict";se();gp();Ot();Me();uo=class extends lo{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return x(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?le("/api/base/app-event",{method:"POST",data:i}):Pe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return x(this,null,function*(){let{event:r,params:n}=t;yield Pe("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var kp={};pf(kp,{nativeTaskEmitter:()=>qn,taskTracker:()=>Pt,track:()=>ze,trackPerformance:()=>Sp});var ek,xp,Ap,ze,Sp,Ip,qn,Pt,Zt=I(()=>{"use strict";cp();N();ml();vp();se();Ep();Me();ek=(e,t,r)=>{var a,s,l,c,d;let n=t,i=mr(n.extra)?n.extra:Cn(n.extra)?JSON.parse(n.extra):{},o=q(T({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});L("trackAsync",{event:(d=t.tag)!=null?d:e,data:o,webviewId:r})},{track:ze,trackPerformance:Sp}=pp(ek,{type:sl.AppSDK,platform:"native",jssdk_version:(Ap=(xp=S.sdkInfo)==null?void 0:xp.jssdkVersion)!=null?Ap:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ip=pe();Ip.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Sp(e,t,r)});Ip.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{ze(e,t)});qn=new mt,Pt=new uo(ze,qn)});function Tp(){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 a=`
|
|
1
|
+
var dI=Object.create;var Xi=Object.defineProperty,fI=Object.defineProperties,pI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyDescriptors,mI=Object.getOwnPropertyNames,Qi=Object.getOwnPropertySymbols,vI=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty,ff=Object.prototype.propertyIsEnumerable;var df=(e,t,r)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Ds.call(t,r)&&df(e,r,t[r]);if(Qi)for(var r of Qi(t))ff.call(t,r)&&df(e,r,t[r]);return e},L=(e,t)=>fI(e,hI(t));var pt=(e,t)=>{var r={};for(var n in e)Ds.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qi)for(var n of Qi(e))t.indexOf(n)<0&&ff.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),pf=(e,t)=>{for(var r in t)Xi(e,r,{get:t[r],enumerable:!0})},gI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mI(t))!Ds.call(e,i)&&i!==r&&Xi(e,i,{get:()=>t[i],enumerable:!(n=pI(t,i))||n.enumerable});return e};var ae=(e,t,r)=>(r=e!=null?dI(vI(e)):{},gI(t||!e||!e.__esModule?Xi(r,"default",{value:e,enumerable:!0}):r,e));var x=(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 xI(e){return!!(e!=null&&e.__nativeBuffers__)}function Bs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!xI(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=AI(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function II(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:SI(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function CI(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Sf(e){return typeof e=="string"}function An(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function PI(e){return typeof e=="undefined"}function NI(e){return PI(e)||e===null}function If(e){return typeof e=="function"}function DI(e){return An(e)&&If(e.then)}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 En(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function HI(){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 WI(e){return new Promise(t=>Tf(e)(t))}function Tf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function YI(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new In(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function XI(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)ZI(e[n],t[n])}function ZI(e,t){if(Sf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(If(t)){try{if(e instanceof t)return}catch(r){}if(!NI(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 gf(e,t){return`[${e}]:${t}`}function o1(e,t){yf||(Us=new eo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),js=new eo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ms=new eo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Us.flush(),js.flush(),Ms.flush()}),yf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:f=0,__timing:p={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=p,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Us.report({status:_,method:n(s,l),errNo:`${f}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(js.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Ms.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 c1(e,t){let r=0,n=!0,i=l1.resolveMap,o=o1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Fs.forEach(l=>ro(this,[l],function*({method:c,args:d,resolve:u}){let f=yield s(c,d);u(f)})),Fs.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Bs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let f=Date.now(),p=`${n}`;r+=1;let m=new OI;if(i.set(r,m.resolve),!n&&r1.includes(l))return new Promise(I=>{Fs.push({method:l,args:c,resolve:I})});let g=wI(Qt({},{method:l,startTime:f,args:c,isForeground:p}),{invokeType:"js-bridge"}),_=!a1&&t1.includes(l),v=II(c,_),b=_?v:JSON.stringify(v),E;if(l.endsWith("Sync")||n1.includes(l)?E=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?E=e.invoke(l,b,r):E=(u=e.call)==null?void 0:u.call(e,l,b,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=Bs(E)}catch(I){Ks.error(I)}return i.delete(r),E.errorCode&&(E.errorCode=gf(l,E.errorCode)),o(Qt(Qt({},g),E)),E}return l.endsWith("Sync")&&i.delete(r),m.promise.then(I=>(I.errorCode&&(I.errorCode=gf(l,I.errorCode)),o(Qt(Qt({},g),I)),I))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return DI(d)?d.then(u=>_f(l,u)):_f(l,d)},invokeHandler:a}}function _f(e,t){if(!An(t)){Ks.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=EI(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new jI(n,i,o,a);return s}function u1(e){if(globalThis[Zi])return globalThis[Zi];let t=new Hs,r=new Hs,n=new eo({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[Zi]={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=Bs(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===Rf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Sn.length),u,a)}catch(f){}});return}if(i.startsWith(Sn)){r.emit(i.slice(Sn.length),l,a);return}t.emit(i,l,a)}},globalThis[Zi]}function d1(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${Sn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(Rf,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${Sn}${n}`,i])}}function f1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=u1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=c1(e,r),c=d1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Cf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var yI,_I,bI,to,wf,Ef,hf,Qt,wI,EI,ro,AI,SI,xf,kI,TI,Af,RI,OI,qI,LI,no,UI,jI,MI,qs,Ks,mf,FI,BI,$I,JI,VI,t4,$s,Z,zI,GI,xn,In,Hs,Vs,KI,Ls,QI,r4,zs,vf,n4,e1,Sn,t1,r1,n1,Rf,i1,eo,yf,Us,js,Ms,Fs,a1,Gs,s1,l1,Zi,Ws,nt,Of,Pf,p1,Nf,bf,Pe,U,it,i4,h1,Df,o4,a4,Me=k(()=>{"use strict";yI=Object.defineProperty,_I=Object.defineProperties,bI=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,hf=(e,t,r)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))wf.call(t,r)&&hf(e,r,t[r]);if(to)for(var r of to(t))Ef.call(t,r)&&hf(e,r,t[r]);return e},wI=(e,t)=>_I(e,bI(t)),EI=(e,t)=>{var r={};for(var n in e)wf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&to)for(var n of to(e))t.indexOf(n)<0&&Ef.call(e,n)&&(r[n]=e[n]);return r},ro=(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())});AI=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};SI=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)};xf=Object.defineProperty,kI=Object.getOwnPropertyDescriptor,TI=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},Af=(e,t,r,n)=>{for(var i=n>1?void 0:n?kI(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&&xf(t,r,i),i},RI=(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}OI=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))}})}};qI=(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))(qI||{}),LI=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}},no=class extends LI{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},UI=class extends no{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},jI=class extends no{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},MI=class extends no{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},qs=class extends no{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ks={log:En("log"),warn:En("warn"),info:En("info"),error:En("error"),debug:En("debug")};Object.assign(globalThis,{logger:Ks});mf=Symbol.for("Jolibox.canIUseMap"),FI={};globalThis[mf]||(globalThis[mf]=FI);BI=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(BI||{}),$I=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))($I||{}),JI=(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))(JI||{});HI();VI=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),t4={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},$s=class Js{constructor(t){this.element=t,this.next=Js.Undefined,this.prev=Js.Undefined}};$s.Undefined=new $s(void 0);Z=$s,zI=class{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let e=this._first;for(;e!==Z.Undefined;){let t=e.next;e.prev=Z.Undefined,e.next=Z.Undefined,e=t}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Z(e);if(this._first===Z.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!==Z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Z.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Z.Undefined&&e.next!==Z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Z.Undefined&&e.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):e.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):e.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Z.Undefined;)yield e.element,e=e.next}},GI=0,xn=class{constructor(e){this.value=e,this.id=GI++}},In=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 xn&&(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 xn(t);return this._listeners?this._listeners instanceof xn?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,f,p;if(!this._disposed){if(this._listeners instanceof xn)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&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 xn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Hs=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 In,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 zI,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)}},Vs={};TI(Vs,{None:()=>KI,filter:()=>YI,once:()=>Tf,toPromise:()=>WI});KI=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ls=Symbol.for("Jolibox.hostEmitter"),QI=()=>{let e=new Hs;return globalThis[Ls]||(globalThis[Ls]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ls]},r4=QI();zs=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new In,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 XI(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}};zs=Af([kf],zs);vf=class{constructor(){this._onWillExecuteCommand=new In,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new In,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zs,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=CI(3e4)),this._starActivation}executeCommand(e,...t){return RI(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Vs.toPromise(Vs.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}}};vf=Af([kf],vf);n4=Symbol.for("Jolibox.commands");e1=()=>VI(),Sn="custom_event_",t1=[],r1=[],n1=["env","createRequestTask","login"],Rf="__batch_event__",i1=e=>e==="pv"?e:"default",eo=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=i1(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&&An(a))throw new qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(An(a))l.push(...Object.keys(a));else if(Sf(a)){if(i.length>0)throw new qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new qs(`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=An(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={}}},yf=!1;Fs=[],a1=!1,Gs=Symbol.for("Jolibox.invokeResolverInstance"),s1=new Map;globalThis[Gs]||(globalThis[Gs]=s1);l1={get resolveMap(){return globalThis[Gs]}};Zi=Symbol.for("Jolibox.subscribeInstance");nt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){nt.trigger=e},onDoExit(e){nt.exit=e},onDoBackPress(e){nt.backPress=e}},Of=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new UI("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{nt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>ro(void 0,null,function*(){let o=yield nt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Ws={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Cf(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:Of,doExit:r};globalThis.joliboxJSCore=Qt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{nt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>ro(void 0,null,function*(){let a=yield nt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Ws={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Cf(a,"joliboxJSCore");t.publish({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 ro(this,null,function*(){let a=yield nt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Of,doExit:n};globalThis.joliboxJSCore=Qt({},i)}Pf=Ws;if(!Pf&&e1())throw new MI("No joliboxJScore is found, native bridge not found.");p1=Qt({},Pf),Nf=f1(p1),{invokeHandler:bf}=Nf,{applyNative:Pe,invokeNative:U,onNative:it,offNative:i4,subscribeHandler:h1,publish:Df,subscribe:o4,unsubscribe:a4}=Nf;globalThis.joliboxJSBridge={callHandler:bf,invokeHandler:bf,subscribeHandler:h1}});function w1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Cn(e){return typeof e=="string"}function mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Mf(e){return typeof e=="object"&&Array.isArray(e)}function On(e){return e===!0||e===!1}function Ff(e){return typeof e=="undefined"}function E1(e){return Ff(e)||e===null}function x1(e){return typeof e=="function"}function Bf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $f(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:Uf(l)&&Uf(s)?i[a]=n(y1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Uf(e){return e&&typeof e=="object"&&e.constructor===Object}function Jf(e,t){if(Array.isArray(e))return e.concat(t)}function Pn(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 f=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!f&&c()},t),f)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 S1(e,t){return(...r)=>t(e,...r)}function ao(e){return t=>S1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pr(`${i}`))}})}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ll(){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 D1(e){return new Promise(t=>Xf(e)(t))}function Xf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function q1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Rn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function U1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)j1(e[n],t[n])}function j1(e,t){if(Cn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(x1(t)){try{if(e instanceof t)return}catch(r){}if(!E1(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 M1(){return typeof globalThis!="undefined"?globalThis[Zf]:void 0}function F1(e){typeof globalThis!="undefined"&&(globalThis[Zf]=e)}function pe(){let e=M1();if(e)return e;let t=new io,r=new tl,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return F1(n),n}var rl,m1,qf,v1,g1,Lf,y1,_1,jf,b1,Xt,A1,nl,oo,il,Hf,Pr,Vf,zf,Gf,Kf,Nn,ol,ht,Qs,I1,al,k1,sl,T1,so,Dn,R1,C1,Wf,Yf,Qf,Xs,ee,O1,P1,Tn,Rn,mt,el,N1,Ys,L1,_e,io,tl,Zf,N=k(()=>{"use strict";rl=Object.defineProperty,m1=Object.getOwnPropertyDescriptor,qf=Object.getOwnPropertySymbols,v1=Object.prototype.hasOwnProperty,g1=Object.prototype.propertyIsEnumerable,Lf=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y1=(e,t)=>{for(var r in t||(t={}))v1.call(t,r)&&Lf(e,r,t[r]);if(qf)for(var r of qf(t))g1.call(t,r)&&Lf(e,r,t[r]);return e},_1=(e,t)=>{for(var r in t)rl(e,r,{get:t[r],enumerable:!0})},jf=(e,t,r,n)=>{for(var i=n>1?void 0:n?m1(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&&rl(t,r,i),i},b1=(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}Xt=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))}})}};A1=(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))(A1||{}),nl=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}},oo=class extends nl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},il=class extends nl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Hf=class extends il{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pr=class extends il{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))}},Vf=class extends il{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))}},zf=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Gf=class extends oo{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))}},Kf=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Nn=class extends nl{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}}},ol=class extends oo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};ht={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:ht});Qs=Symbol.for("Jolibox.canIUseMap"),I1={};globalThis[Qs]||(globalThis[Qs]=I1);al={get config(){return globalThis[Qs]}},k1=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(k1||{}),sl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(sl||{}),T1=(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))(T1||{}),so=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ll();Dn={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},R1="device_id",C1="advertising_id",Wf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,so()),window.__joliboxLocalStorage__.getItem(e)),Yf=()=>new URLSearchParams(window.location.search).get("deviceId")||Wf(R1),Qf=()=>new URLSearchParams(window.location.search).get("advertisingId")||Wf(C1),Xs=class Zs{constructor(t){this.element=t,this.next=Zs.Undefined,this.prev=Zs.Undefined}};Xs.Undefined=new Xs(void 0);ee=Xs,O1=class{constructor(){this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ee.Undefined}clear(){let e=this._first;for(;e!==ee.Undefined;){let t=e.next;e.prev=ee.Undefined,e.next=ee.Undefined,e=t}this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ee(e);if(this._first===ee.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!==ee.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ee.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ee.Undefined&&e.next!==ee.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ee.Undefined&&e.next===ee.Undefined?(this._first=ee.Undefined,this._last=ee.Undefined):e.next===ee.Undefined?(this._last=this._last.prev,this._last.next=ee.Undefined):e.prev===ee.Undefined&&(this._first=this._first.next,this._first.prev=ee.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ee.Undefined;)yield e.element,e=e.next}},P1=0,Tn=class{constructor(e){this.value=e,this.id=P1++}},Rn=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 Tn&&(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 Tn(t);return this._listeners?this._listeners instanceof Tn?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,f,p;if(!this._disposed){if(this._listeners instanceof Tn)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&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 Tn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},mt=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 Rn,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 O1,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)}},el={};_1(el,{None:()=>N1,filter:()=>q1,once:()=>Xf,toPromise:()=>D1});N1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ys=Symbol.for("Jolibox.hostEmitter"),L1=()=>{let e=new mt;return globalThis[Ys]||(globalThis[Ys]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ys]},_e=L1();io=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Rn,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 U1(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}};io=jf([Bf],io);tl=class{constructor(){this._onWillExecuteCommand=new Rn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Rn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new io,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=w1(3e4)),this._starActivation}executeCommand(e,...t){return b1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),el.toPromise(el.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}}};tl=jf([Bf],tl);Zf=Symbol.for("Jolibox.commands")});function Ae(e,t={}){cl.emit("ERROR_REPORT",{error:e,options:t})}var cl,vr,lt=k(()=>{"use strict";N();N();cl=new mt,vr=new mt;Ae.debounce=Pn(Ae,50,{leading:!0})});var ul,B1,ep,tp,rp=k(()=>{"use strict";N();lt();ul=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{}}},B1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ep=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:ul(o),payloadJson:ul(a),signature:ul(s)}}else throw"joli_source is missing"}catch(r){return Ae(new zf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},tp=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=B1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var $1,dl,np=k(()=>{"use strict";N();$1="1.1.29",dl=()=>$1});function H1(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var J1,ip,fl,op,xe,V1,S,se=k(()=>{"use strict";N();rp();np();N();J1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Yf(),adId:Qf(),pixelRatio:window.devicePixelRatio||1,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:dl()},schema:window.location.href,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5"},fl=(ip=globalThis.joliboxJSCore)==null?void 0:ip.env,xe=Object.assign({},(op=fl==null?void 0:fl())!=null?op:J1);V1=()=>{var f,p,m,g,_,v,b,E,I,O,T;let{payloadJson:e,headerJson:t,signature:r}=xe.schema.length?ep(xe.schema):{},n=`${xe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(xe.schema.length?xe.schema:window.location.href).searchParams,a=(m=(p=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?p:o.get("gameId"))!=null?m:"",s=(v=(_=(g=xe.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:o.get("sessionId"))!=null?v:n,l=!!((E=(b=e==null?void 0:e.testAdsMode)!=null?b:e==null?void 0:e.__testAdsMode)!=null?E:o.get("testAdsMode")==="true"),c=(T=(O=(I=e==null?void 0:e.joliboxEnv)!=null?I:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?T:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var y;return(y=o.get("joliSource"))!=null?y:null},get mpId(){var y;return(y=a!=null?a:e==null?void 0:e.id)!=null?y:""},get mpVersion(){var y;return(y=t==null?void 0:t.ver)!=null?y:dl()},get mpType(){var y,q;return(q=(y=t==null?void 0:t.__mpType)!=null?y:e==null?void 0:e.__mpType)!=null?q:"game"},get platform(){var y;return((y=xe.platform)!=null?y:xe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return xe.deviceInfo},get sdkInfo(){return xe.sdkInfo},get hostInfo(){return xe.hostInfo},get hostUserInfo(){return xe.hostUserInfo},get sessionId(){var y,q;return(q=(y=xe.clientSessionId)!=null?y:s)!=null?q:n},get channel(){return u},get webviewId(){var y;return(y=xe.webviewId)!=null?y:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},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 y;return(y=xe.deviceInfo.adId)!=null?y:xe.deviceInfo.did},get language(){return xe.deviceInfo.lang},get sdkEnvironment(){return H1("dlightek","jolibox")?"dlightek":"jolibox"},onEnvConfigChanged:y=>{$f(xe,y,Jf)},encodeJoliSourceQuery:y=>{var q,tt;return t&&r?tp(R(R({},e),y),(q=o.get("joliSource"))!=null?q:""):(tt=o.get("joliSource"))!=null?tt:""}}},S=V1()});var pl,sp,z1,G1,ap,K1,lp=k(()=>{"use strict";N();lt();se();N();pl=!1,sp=(e,t)=>e==null?!1:t in e,z1=e=>sp(e,"kind"),G1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},ap=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:G1(e.name)},i=L(R({},n),{env:t.environment,isFromUser:r});r?vr.emit("GLOBAL_USER_ERROR",e,i):vr.emit("GLOBAL_ERROR",e,i)},K1=e=>sp(e,"kind")&&e.kind==="USER_ERROR";cl.on("ERROR_REPORT",({error:e,options:t})=>{if(pl)return;pl=!0;let r=z1(e)&&e.raw?e.raw:e;try{let n=K1(e);ap(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ol(`${i}, origin error: ${r.message}`);ht.error(o),ap(new ol(o.message),{environment:t.environment},!1)}finally{pl=!1}})});var Zt,hl,Nr=k(()=>{"use strict";lt();N();lt();Zt=(e,t)=>{var r,n;return new Nn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},hl=e=>new Hf(e)});var cp=k(()=>{"use strict";lp();Nr();N();Me();vr.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})});vr.on("GLOBAL_USER_ERROR",(e,t)=>{ht.log("UserError",e,t)})});var ml=k(()=>{"use strict"});function up(e,t){let r=(n,i,o)=>{let a=L(R({tag:n},t),{extra:R({},i)});n=="globalJsError"?Ae(new Kf(JSON.stringify(a))):e("systemLog",a,o)};return r.debounce=Pn(r,500,{leading:!0}),r}function dp(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=Pn(t,500,{leading:!0}),t}var fp=k(()=>{"use strict";N();N();lt()});function pp(e,t){let r=up(e,t),n=dp(r);return{track:r,trackPerformance:n}}var hp=k(()=>{"use strict";fp()});var mp=k(()=>{"use strict";se();N();N()});var vp=k(()=>{"use strict";hp();ml();mp()});var lo,gp=k(()=>{"use strict";lo=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 p=Date.now(),m=p-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=p),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let p=Date.now();p-r>=this.interval&&(r=p)},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",p=>{o&&(console.log("visible",p),p?c():l())});let f=this.visible;return{start(){o||(o=!0,f?c():l())},stop(){o=!1,d(),u()}}}}});var vl=k(()=>{"use strict"});function _p(e,t,r){let{response:n,startTime:i,endTime:o,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:o-i,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&yp<Y1||a==="inner")&&(d.joli_request_number=yp++,setTimeout(()=>{ze("joliboxNetRequestResult",d)},500))}var yp,Y1,bp=k(()=>{"use strict";vl();er();yp=0,Y1=10});function co(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 it("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let f=n.get(u.requestTaskId);if(f)if(u.state==="success"){let p=u,{requestTaskId:g,state:_}=p,v=pt(p,["requestTaskId","state"]);u.statusCode===200?f.resolve(v):f.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=pt(m,["requestTaskId","state"]);f.reject(v),n.delete(g)}else ht.warn("onRequestTaskStateChange unknown event",u)}),_e.on("onLoginComplete",({isLogin:u,token:f})=>{u&&f&&(a["X-JOLI-TOKEN"]=f)}),(p,...m)=>x(this,[p,...m],function*(u,f={}){let g=Date.now(),_=Q1(u,L(R({},f),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:E="json",timeout:I,enableCache:O=!1,appendHostCookie:T=!0}=f,y=Object.assign({"content-type":"application/json"},a,f.header),q={url:_,method:v,header:y,enableCache:O,responseType:b,appendHostCookie:T};if(v=="POST"||v=="PUT"){let ft=Z1(f.data,y["content-type"]);q.data=ft}I&&Object.assign(q,{timeout:I});let{data:{requestTaskId:tt}}=U(e,q);if(typeof tt!="string")throw Zt({code:-1,msg:"requestTaskId is not a string"});let Or=(ft,Ot)=>{_p("request",_,{state:ft,startTime:g,endTime:Date.now(),params:q,response:Ot,requestId:tt,requestFrom:o=="public"?"public":"inner"})},{resolve:rt,reject:hr,promise:sI}=new Xt;n.set(tt,{resolve:rt,reject:hr});try{let ft=yield sI;Or("success",ft);let{data:Ot}=ft;return E==="json"&&typeof Ot=="string"&&(Ot=X1(Ot)),{url:_,timeout:I,method:v,response:L(R({},ft),{data:Ot})}}catch(ft){let Ot=ft;if(mr(Ot)){let{errMsg:Yi,prefetchDetail:lI,isPrefetch:cI,errNo:uI}=Ot;Cn(Yi)&&(Or("fail",{errMsg:Yi,isPrefetch:cI,prefetchDetail:lI}),Ae(Zt({code:-1,msg:Yi},{errNo:uI,errMsg:Yi})))}throw ft}})}function X1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function Z1(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 Q1,gl=k(()=>{"use strict";N();bp();vl();Me();lt();Nr();Q1=(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 yl,wp,le,Pt=k(()=>{"use strict";gl();se();yl={};(wp=S.hostUserInfo)!=null&&wp.token&&(yl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(yl["x-joli-source"]=S.joliSource);le=co("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:yl})});var uo,Ep=k(()=>{"use strict";se();gp();Pt();Me();uo=class extends lo{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return x(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:R({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?le("/api/base/app-event",{method:"POST",data:i}):Pe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return x(this,null,function*(){let{event:r,params:n}=t;yield Pe("userTrackAsync",{event:r,params:R({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var kp={};pf(kp,{nativeTaskEmitter:()=>qn,taskTracker:()=>Nt,track:()=>ze,trackPerformance:()=>Sp});var ek,xp,Ap,ze,Sp,Ip,qn,Nt,er=k(()=>{"use strict";cp();N();ml();vp();se();Ep();Me();ek=(e,t,r)=>{var a,s,l,c,d;let n=t,i=mr(n.extra)?n.extra:Cn(n.extra)?JSON.parse(n.extra):{},o=L(R({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});U("trackAsync",{event:(d=t.tag)!=null?d:e,data:o,webviewId:r})},{track:ze,trackPerformance:Sp}=pp(ek,{type:sl.AppSDK,platform:"native",jssdk_version:(Ap=(xp=S.sdkInfo)==null?void 0:xp.jssdkVersion)!=null?Ap:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ip=pe();Ip.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Sp(e,t,r)});Ip.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{ze(e,t)});qn=new mt,Nt=new uo(ze,qn)});function Tp(){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 a=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,8 +16,8 @@ var dI=Object.create;var Xi=Object.defineProperty,fI=Object.defineProperties,pI=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{function a(l){return x(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,f)=>{let p=new XMLHttpRequest;p.open("GET",c),p.responseType="arraybuffer",p.addEventListener("load",()=>u(p.response)),p.addEventListener("error",f),p.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},o=()=>{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"),window.fetch=r};return n(),i(),o}var Rp=I(()=>{"use strict"});var Cp=I(()=>{"use strict"});var Op=I(()=>{"use strict";N();ll()});var Pp=I(()=>{"use strict";se()});var fo,_l=I(()=>{"use strict";Cp();Op();se();Pp();N();fo=new mt});function Nt(e,t){for(var r in t)e[r]=t[r];return e}function Sl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ne(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?vo.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 ho(e,a,n,i,null)}function ho(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?++Lp:i,__i:-1,__u:0};return i==null&&C.vnode!=null&&C.vnode(o),o}function Ke(e){return e.children}function Ge(e,t){this.props=e,this.context=t}function Dr(e,t){if(t==null)return e.__?Dr(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"?Dr(e):null}function $p(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 $p(e)}}function El(e){(!e.__d&&(e.__d=!0)&&gr.push(e)&&!mo.__r++||Np!==C.debounceRendering)&&((Np=C.debounceRendering)||Up)(mo)}function mo(){for(var e,t,r,n,i,o,a,s=1;gr.length;)gr.length>s&&gr.sort(jp),e=gr.shift(),s=gr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Nt({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),Il(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Dr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Vp(o,r,a),r.__e!=i&&$p(r)));mo.__r=0}function Jp(e,t,r,n,i,o,a,s,l,c,d){var u,f,p,m,g,_,v=n&&n.__k||Bp,b=t.length;for(l=rk(r,t,v,l,b),u=0;u<b;u++)(p=r.__k[u])!=null&&(f=p.__i===-1?Ln:v[p.__i]||Ln,p.__i=u,_=Il(e,p,f,i,o,a,s,l,c,d),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&kl(f.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),4&p.__u||f.__k===p.__k?l=Hp(p,l,e):typeof p.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),p.__u&=-7);return r.__e=g,l}function rk(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,f=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+f,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ho(null,a,null,null,null):Un(a)?ho(Ke,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ho(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=nk(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?f--:i<d&&f++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,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=Dr(s)),Gp(s,s));return n}function Hp(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=Hp(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Dr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function jn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){jn(r,t)}):t.push(e)),t}function nk(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 Dp(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||tk.test(t)?r:r+"px"}function po(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||Dp(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Dp(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Mp,"$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=Al,e.addEventListener(t,o?wl:bl,o)):e.removeEventListener(t,o?wl:bl,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 qp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Al++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function Il(e,t,r,n,i,o,a,s,l,c){var d,u,f,p,m,g,_,v,b,E,k,O,R,y,J,et,Or,tt=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof tt=="function")try{if(v=t.props,b="prototype"in tt&&tt.prototype.render,E=(d=tt.contextType)&&n[d.__c],k=d?E?E.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new tt(v,k):(t.__c=u=new Ge(v,k),u.constructor=tt,u.render=ok),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=k,u.__n=n,f=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&tt.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Nt({},u.__s)),Nt(u.__s,tt.getDerivedStateFromProps(v,u.__s))),p=u.props,m=u.state,u.__v=t,f)b&&tt.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&tt.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,k)===!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(hr){hr&&(hr.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,k),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,g)})}if(u.context=k,u.props=v,u.__P=e,u.__e=!1,R=C.__r,y=0,b){for(u.state=u.__s,u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++y<25);u.state=u.__s,u.getChildContext!=null&&(n=Nt(Nt({},n),u.getChildContext())),b&&!f&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(p,m)),et=d,d!=null&&d.type===Ke&&d.key==null&&(et=zp(d.props.children)),s=Jp(e,Un(et)?et:[et],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(hr){if(t.__v=null,l||o!=null)if(hr.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(Or=o.length;Or--;)Sl(o[Or]);else t.__e=r.__e,t.__k=r.__k;C.__e(hr,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=ik(r.__e,t,r,n,i,o,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function Vp(e,t,r){for(var n=0;n<r.length;n++)kl(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){C.__e(o,i.__v)}})}function zp(e){return typeof e!="object"||e==null?e:Un(e)?e.map(zp):Nt({},e)}function ik(e,t,r,n,i,o,a,s,l){var c,d,u,f,p,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((p=o[c])&&"setAttribute"in p==!!b&&(b?p.localName==b:p.nodeType==3)){e=p,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(C.__m&&C.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&vo.call(e.childNodes),_=r.props||Ln,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(p=e.attributes[c]).name]=p.value;for(c in _)if(p=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;po(e,c,null,p,i)}}for(c in v)p=v[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?m=p:c=="checked"?g=p:s&&typeof p!="function"||_[c]===p||po(e,c,p,_[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=""),Jp(t.type==="template"?e.content:e,Un(f)?f:[f],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Dr(r,0),s,l),o!=null)for(c=o.length;c--;)Sl(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])&&po(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&po(e,c,g,_[c],i))}return e}function kl(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){C.__e(i,r)}}function Gp(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||kl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Gp(n[i],t,r||typeof e.type!="function");r||Sl(e.__e),e.__c=e.__=e.__e=void 0}function ok(e,t,r){return this.constructor(e,r)}function qr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Il(t,e=(!n&&r||t).__k=Ne(Ke,null,[e]),i||Ln,Ln,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?vo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Vp(o,e,a)}function yr(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,El(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"+Fp++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var vo,C,Lp,xl,gr,Np,Up,jp,Mp,Al,bl,wl,Fp,Ln,Bp,tk,Un,Lr=I(()=>{Ln={},Bp=[],tk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;vo=Bp.slice,C={__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}},Lp=0,xl=function(e){return e!=null&&e.constructor==null},Ge.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},r),this.props)),e&&Nt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),El(this))},Ge.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),El(this))},Ge.prototype.render=Ke,gr=[],Up=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,jp=function(e,t){return e.__v.__b-t.__v.__b},mo.__r=0,Mp=/(PointerCapture)$|Capture$/i,Al=0,bl=qp(!1),wl=qp(!0),Fp=0});var ie=h((BJ,Kp)=>{"use strict";Kp.exports=function(e){try{return!!e()}catch(t){return!0}}});var Ur=h(($J,Wp)=>{"use strict";var ak=ie();Wp.exports=!ak(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var he=h((JJ,Xp)=>{"use strict";var Yp=Ur(),Qp=Function.prototype,Tl=Qp.call,sk=Yp&&Qp.bind.bind(Tl,Tl);Xp.exports=Yp?sk:function(e){return function(){return Tl.apply(e,arguments)}}});var Fe=h((HJ,Zp)=>{"use strict";var lk=he();Zp.exports=lk({}.isPrototypeOf)});var oe=h((Rl,eh)=>{"use strict";var Mn=function(e){return e&&e.Math===Math&&e};eh.exports=Mn(typeof globalThis=="object"&&globalThis)||Mn(typeof window=="object"&&window)||Mn(typeof self=="object"&&self)||Mn(typeof global=="object"&&global)||Mn(typeof Rl=="object"&&Rl)||function(){return this}()||Function("return this")()});var Cl=h((VJ,ih)=>{"use strict";var ck=Ur(),nh=Function.prototype,th=nh.apply,rh=nh.call;ih.exports=typeof Reflect=="object"&&Reflect.apply||(ck?rh.bind(th):function(){return rh.apply(th,arguments)})});var Dt=h((zJ,ah)=>{"use strict";var oh=he(),uk=oh({}.toString),dk=oh("".slice);ah.exports=function(e){return dk(uk(e),8,-1)}});var Fn=h((GJ,sh)=>{"use strict";var fk=Dt(),pk=he();sh.exports=function(e){if(fk(e)==="Function")return pk(e)}});var Se=h((KJ,lh)=>{"use strict";var Ol=typeof document=="object"&&document.all;lh.exports=typeof Ol=="undefined"&&Ol!==void 0?function(e){return typeof e=="function"||e===Ol}:function(e){return typeof e=="function"}});var Be=h((WJ,ch)=>{"use strict";var hk=ie();ch.exports=!hk(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ct=h((YJ,uh)=>{"use strict";var mk=Ur(),go=Function.prototype.call;uh.exports=mk?go.bind(go):function(){return go.apply(go,arguments)}});var Pl=h(ph=>{"use strict";var dh={}.propertyIsEnumerable,fh=Object.getOwnPropertyDescriptor,vk=fh&&!dh.call({1:2},1);ph.f=vk?function(t){var r=fh(this,t);return!!r&&r.enumerable}:dh});var Bn=h((XJ,hh)=>{"use strict";hh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var yo=h((ZJ,mh)=>{"use strict";var gk=he(),yk=ie(),_k=Dt(),Nl=Object,bk=gk("".split);mh.exports=yk(function(){return!Nl("z").propertyIsEnumerable(0)})?function(e){return _k(e)==="String"?bk(e,""):Nl(e)}:Nl});var _r=h((eH,vh)=>{"use strict";vh.exports=function(e){return e==null}});var br=h((tH,gh)=>{"use strict";var wk=_r(),Ek=TypeError;gh.exports=function(e){if(wk(e))throw new Ek("Can't call method on "+e);return e}});var er=h((rH,yh)=>{"use strict";var xk=yo(),Ak=br();yh.exports=function(e){return xk(Ak(e))}});var be=h((nH,_h)=>{"use strict";var Sk=Se();_h.exports=function(e){return typeof e=="object"?e!==null:Sk(e)}});var vt=h((iH,bh)=>{"use strict";bh.exports={}});var jr=h((oH,Eh)=>{"use strict";var Dl=vt(),ql=oe(),Ik=Se(),wh=function(e){return Ik(e)?e:void 0};Eh.exports=function(e,t){return arguments.length<2?wh(Dl[e])||wh(ql[e]):Dl[e]&&Dl[e][t]||ql[e]&&ql[e][t]}});var _o=h((aH,Sh)=>{"use strict";var kk=oe(),xh=kk.navigator,Ah=xh&&xh.userAgent;Sh.exports=Ah?String(Ah):""});var wo=h((sH,Oh)=>{"use strict";var Ch=oe(),Ll=_o(),Ih=Ch.process,kh=Ch.Deno,Th=Ih&&Ih.versions||kh&&kh.version,Rh=Th&&Th.v8,ut,bo;Rh&&(ut=Rh.split("."),bo=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!bo&&Ll&&(ut=Ll.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=Ll.match(/Chrome\/(\d+)/),ut&&(bo=+ut[1])));Oh.exports=bo});var Ul=h((lH,Nh)=>{"use strict";var Ph=wo(),Tk=ie(),Rk=oe(),Ck=Rk.String;Nh.exports=!!Object.getOwnPropertySymbols&&!Tk(function(){var e=Symbol("symbol detection");return!Ck(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ph&&Ph<41})});var jl=h((cH,Dh)=>{"use strict";var Ok=Ul();Dh.exports=Ok&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ml=h((uH,qh)=>{"use strict";var Pk=jr(),Nk=Se(),Dk=Fe(),qk=jl(),Lk=Object;qh.exports=qk?function(e){return typeof e=="symbol"}:function(e){var t=Pk("Symbol");return Nk(t)&&Dk(t.prototype,Lk(e))}});var $n=h((dH,Lh)=>{"use strict";var Uk=String;Lh.exports=function(e){try{return Uk(e)}catch(t){return"Object"}}});var wr=h((fH,Uh)=>{"use strict";var jk=Se(),Mk=$n(),Fk=TypeError;Uh.exports=function(e){if(jk(e))return e;throw new Fk(Mk(e)+" is not a function")}});var Eo=h((pH,jh)=>{"use strict";var Bk=wr(),$k=_r();jh.exports=function(e,t){var r=e[t];return $k(r)?void 0:Bk(r)}});var Fh=h((hH,Mh)=>{"use strict";var Fl=ct(),Bl=Se(),$l=be(),Jk=TypeError;Mh.exports=function(e,t){var r,n;if(t==="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e))||Bl(r=e.valueOf)&&!$l(n=Fl(r,e))||t!=="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e)))return n;throw new Jk("Can't convert object to primitive value")}});var Mr=h((mH,Bh)=>{"use strict";Bh.exports=!0});var Hh=h((vH,Jh)=>{"use strict";var $h=oe(),Hk=Object.defineProperty;Jh.exports=function(e,t){try{Hk($h,e,{value:t,configurable:!0,writable:!0})}catch(r){$h[e]=t}return t}});var Jn=h((gH,Gh)=>{"use strict";var Vk=Mr(),zk=oe(),Gk=Hh(),Vh="__core-js_shared__",zh=Gh.exports=zk[Vh]||Gk(Vh,{});(zh.versions||(zh.versions=[])).push({version:"3.41.0",mode:Vk?"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 Jl=h((yH,Wh)=>{"use strict";var Kh=Jn();Wh.exports=function(e,t){return Kh[e]||(Kh[e]=t||{})}});var Fr=h((_H,Yh)=>{"use strict";var Kk=br(),Wk=Object;Yh.exports=function(e){return Wk(Kk(e))}});var We=h((bH,Qh)=>{"use strict";var Yk=he(),Qk=Fr(),Xk=Yk({}.hasOwnProperty);Qh.exports=Object.hasOwn||function(t,r){return Xk(Qk(t),r)}});var xo=h((wH,Xh)=>{"use strict";var Zk=he(),eT=0,tT=Math.random(),rT=Zk(1 .toString);Xh.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rT(++eT+tT,36)}});var De=h((EH,em)=>{"use strict";var nT=oe(),iT=Jl(),Zh=We(),oT=xo(),aT=Ul(),sT=jl(),Br=nT.Symbol,Hl=iT("wks"),lT=sT?Br.for||Br:Br&&Br.withoutSetter||oT;em.exports=function(e){return Zh(Hl,e)||(Hl[e]=aT&&Zh(Br,e)?Br[e]:lT("Symbol."+e)),Hl[e]}});var im=h((xH,nm)=>{"use strict";var cT=ct(),tm=be(),rm=Ml(),uT=Eo(),dT=Fh(),fT=De(),pT=TypeError,hT=fT("toPrimitive");nm.exports=function(e,t){if(!tm(e)||rm(e))return e;var r=uT(e,hT),n;if(r){if(t===void 0&&(t="default"),n=cT(r,e,t),!tm(n)||rm(n))return n;throw new pT("Can't convert object to primitive value")}return t===void 0&&(t="number"),dT(e,t)}});var Vl=h((AH,om)=>{"use strict";var mT=im(),vT=Ml();om.exports=function(e){var t=mT(e,"string");return vT(t)?t:t+""}});var Gl=h((SH,sm)=>{"use strict";var gT=oe(),am=be(),zl=gT.document,yT=am(zl)&&am(zl.createElement);sm.exports=function(e){return yT?zl.createElement(e):{}}});var Kl=h((IH,lm)=>{"use strict";var _T=Be(),bT=ie(),wT=Gl();lm.exports=!_T&&!bT(function(){return Object.defineProperty(wT("div"),"a",{get:function(){return 7}}).a!==7})});var Wl=h(um=>{"use strict";var ET=Be(),xT=ct(),AT=Pl(),ST=Bn(),IT=er(),kT=Vl(),TT=We(),RT=Kl(),cm=Object.getOwnPropertyDescriptor;um.f=ET?cm:function(t,r){if(t=IT(t),r=kT(r),RT)try{return cm(t,r)}catch(n){}if(TT(t,r))return ST(!xT(AT.f,t,r),t[r])}});var fm=h((TH,dm)=>{"use strict";var CT=ie(),OT=Se(),PT=/#|\.prototype\./,Hn=function(e,t){var r=DT[NT(e)];return r===LT?!0:r===qT?!1:OT(t)?CT(t):!!t},NT=Hn.normalize=function(e){return String(e).replace(PT,".").toLowerCase()},DT=Hn.data={},qT=Hn.NATIVE="N",LT=Hn.POLYFILL="P";dm.exports=Hn});var Vn=h((RH,hm)=>{"use strict";var pm=Fn(),UT=wr(),jT=Ur(),MT=pm(pm.bind);hm.exports=function(e,t){return UT(e),t===void 0?e:jT?MT(e,t):function(){return e.apply(t,arguments)}}});var Yl=h((CH,mm)=>{"use strict";var FT=Be(),BT=ie();mm.exports=FT&&BT(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var qt=h((OH,vm)=>{"use strict";var $T=be(),JT=String,HT=TypeError;vm.exports=function(e){if($T(e))return e;throw new HT(JT(e)+" is not an object")}});var Lt=h(ym=>{"use strict";var VT=Be(),zT=Kl(),GT=Yl(),Ao=qt(),gm=Vl(),KT=TypeError,Ql=Object.defineProperty,WT=Object.getOwnPropertyDescriptor,Xl="enumerable",Zl="configurable",ec="writable";ym.f=VT?GT?function(t,r,n){if(Ao(t),r=gm(r),Ao(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ec in n&&!n[ec]){var i=WT(t,r);i&&i[ec]&&(t[r]=n.value,n={configurable:Zl in n?n[Zl]:i[Zl],enumerable:Xl in n?n[Xl]:i[Xl],writable:!1})}return Ql(t,r,n)}:Ql:function(t,r,n){if(Ao(t),r=gm(r),Ao(n),zT)try{return Ql(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new KT("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Er=h((NH,_m)=>{"use strict";var YT=Be(),QT=Lt(),XT=Bn();_m.exports=YT?function(e,t,r){return QT.f(e,t,XT(1,r))}:function(e,t,r){return e[t]=r,e}});var V=h((DH,wm)=>{"use strict";var zn=oe(),ZT=Cl(),eR=Fn(),tR=Se(),rR=Wl().f,nR=fm(),$r=vt(),iR=Vn(),Jr=Er(),bm=We();Jn();var oR=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 ZT(e,this,arguments)};return t.prototype=e.prototype,t};wm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?zn:i?zn[r]:zn[r]&&zn[r].prototype,s=n?$r:$r[r]||Jr($r,r,{})[r],l=s.prototype,c,d,u,f,p,m,g,_,v;for(f in t)c=nR(n?f:r+(i?".":"#")+f,e.forced),d=!c&&a&&bm(a,f),m=s[f],d&&(e.dontCallGetSet?(v=rR(a,f),g=v&&v.value):g=a[f]),p=d&&g?g:t[f],!(!c&&!o&&typeof m==typeof p)&&(e.bind&&d?_=iR(p,zn):e.wrap&&d?_=oR(p):o&&tR(p)?_=eR(p):_=p,(e.sham||p&&p.sham||m&&m.sham)&&Jr(_,"sham",!0),Jr(s,f,_),o&&(u=r+"Prototype",bm($r,u)||Jr($r,u,{}),Jr($r[u],f,p),e.real&&l&&(c||!l[f])&&Jr(l,f,p)))}});var xm=h((qH,Em)=>{"use strict";var aR=Math.ceil,sR=Math.floor;Em.exports=Math.trunc||function(t){var r=+t;return(r>0?sR:aR)(r)}});var Gn=h((LH,Am)=>{"use strict";var lR=xm();Am.exports=function(e){var t=+e;return t!==t||t===0?0:lR(t)}});var tc=h((UH,Sm)=>{"use strict";var cR=Gn(),uR=Math.min;Sm.exports=function(e){var t=cR(e);return t>0?uR(t,9007199254740991):0}});var Hr=h((jH,Im)=>{"use strict";var dR=tc();Im.exports=function(e){return dR(e.length)}});var Kn=h((MH,km)=>{"use strict";var fR=Dt();km.exports=Array.isArray||function(t){return fR(t)==="Array"}});var So=h((FH,Rm)=>{"use strict";var pR=De(),hR=pR("toStringTag"),Tm={};Tm[hR]="z";Rm.exports=String(Tm)==="[object z]"});var Vr=h((BH,Cm)=>{"use strict";var mR=So(),vR=Se(),Io=Dt(),gR=De(),yR=gR("toStringTag"),_R=Object,bR=Io(function(){return arguments}())==="Arguments",wR=function(e,t){try{return e[t]}catch(r){}};Cm.exports=mR?Io:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=wR(t=_R(e),yR))=="string"?r:bR?Io(t):(n=Io(t))==="Object"&&vR(t.callee)?"Arguments":n}});var Pm=h(($H,Om)=>{"use strict";var ER=he(),xR=Se(),rc=Jn(),AR=ER(Function.toString);xR(rc.inspectSource)||(rc.inspectSource=function(e){return AR(e)});Om.exports=rc.inspectSource});var ic=h((JH,Um)=>{"use strict";var SR=he(),IR=ie(),Nm=Se(),kR=Vr(),TR=jr(),RR=Pm(),Dm=function(){},qm=TR("Reflect","construct"),nc=/^\s*(?:class|function)\b/,CR=SR(nc.exec),OR=!nc.test(Dm),Wn=function(t){if(!Nm(t))return!1;try{return qm(Dm,[],t),!0}catch(r){return!1}},Lm=function(t){if(!Nm(t))return!1;switch(kR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return OR||!!CR(nc,RR(t))}catch(r){return!0}};Lm.sham=!0;Um.exports=!qm||IR(function(){var e;return Wn(Wn.call)||!Wn(Object)||!Wn(function(){e=!0})||e})?Lm:Wn});var Bm=h((HH,Fm)=>{"use strict";var jm=Kn(),PR=ic(),NR=be(),DR=De(),qR=DR("species"),Mm=Array;Fm.exports=function(e){var t;return jm(e)&&(t=e.constructor,PR(t)&&(t===Mm||jm(t.prototype))?t=void 0:NR(t)&&(t=t[qR],t===null&&(t=void 0))),t===void 0?Mm:t}});var oc=h((VH,$m)=>{"use strict";var LR=Bm();$m.exports=function(e,t){return new(LR(e))(t===0?0:t)}});var rr=h((zH,Hm)=>{"use strict";var UR=Vn(),jR=he(),MR=yo(),FR=Fr(),BR=Hr(),$R=oc(),Jm=jR([].push),tr=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 f=FR(l),p=MR(f),m=BR(p),g=UR(c,d),_=0,v=u||$R,b=t?v(l,m):r||a?v(l,0):void 0,E,k;m>_;_++)if((s||_ in p)&&(E=p[_],k=g(E,_,f),e))if(t)b[_]=k;else if(k)switch(e){case 3:return!0;case 5:return E;case 6:return _;case 2:Jm(b,E)}else switch(e){case 4:return!1;case 7:Jm(b,E)}return o?-1:n||i?i:b}};Hm.exports={forEach:tr(0),map:tr(1),filter:tr(2),some:tr(3),every:tr(4),find:tr(5),findIndex:tr(6),filterReject:tr(7)}});var Yn=h((GH,Vm)=>{"use strict";var JR=ie(),HR=De(),VR=wo(),zR=HR("species");Vm.exports=function(e){return VR>=51||!JR(function(){var t=[],r=t.constructor={};return r[zR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var zm=h(()=>{"use strict";var GR=V(),KR=rr().filter,WR=Yn(),YR=WR("filter");GR({target:"Array",proto:!0,forced:!YR},{filter:function(t){return KR(this,t,arguments.length>1?arguments[1]:void 0)}})});var it=h((YH,Gm)=>{"use strict";var QR=oe(),XR=vt();Gm.exports=function(e,t){var r=XR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=QR[e],o=i&&i.prototype;return o&&o[t]}});var Wm=h((QH,Km)=>{"use strict";zm();var ZR=it();Km.exports=ZR("Array","filter")});var Qm=h((XH,Ym)=>{"use strict";var eC=Fe(),tC=Wm(),ac=Array.prototype;Ym.exports=function(e){var t=e.filter;return e===ac||eC(ac,e)&&t===ac.filter?tC:t}});var Zm=h((ZH,Xm)=>{"use strict";var rC=Qm();Xm.exports=rC});var tv=h((e6,ev)=>{ev.exports=Zm()});var Qn=h((t6,rv)=>{"use strict";var nC=ie();rv.exports=function(e,t){var r=[][e];return!!r&&nC(function(){r.call(null,t||function(){return 1},1)})}});var nv=h(()=>{"use strict";var iC=V(),oC=rr().every,aC=Qn(),sC=aC("every");iC({target:"Array",proto:!0,forced:!sC},{every:function(t){return oC(this,t,arguments.length>1?arguments[1]:void 0)}})});var ov=h((i6,iv)=>{"use strict";nv();var lC=it();iv.exports=lC("Array","every")});var sv=h((o6,av)=>{"use strict";var cC=Fe(),uC=ov(),sc=Array.prototype;av.exports=function(e){var t=e.every;return e===sc||cC(sc,e)&&t===sc.every?uC:t}});var cv=h((a6,lv)=>{"use strict";var dC=sv();lv.exports=dC});var dv=h((s6,uv)=>{uv.exports=cv()});var pv=h((l6,fv)=>{"use strict";var fC=rr().forEach,pC=Qn(),hC=pC("forEach");fv.exports=hC?[].forEach:function(t){return fC(this,t,arguments.length>1?arguments[1]:void 0)}});var mv=h(()=>{"use strict";var mC=V(),hv=pv();mC({target:"Array",proto:!0,forced:[].forEach!==hv},{forEach:hv})});var gv=h((d6,vv)=>{"use strict";mv();var vC=it();vv.exports=vC("Array","forEach")});var _v=h((f6,yv)=>{"use strict";var gC=gv();yv.exports=gC});var bv=h(()=>{});var Ev=h((m6,wv)=>{"use strict";var yC=Vr(),_C=We(),bC=Fe(),wC=_v();bv();var lc=Array.prototype,EC={DOMTokenList:!0,NodeList:!0};wv.exports=function(e){var t=e.forEach;return e===lc||bC(lc,e)&&t===lc.forEach||_C(EC,yC(e))?wC:t}});var Av=h((v6,xv)=>{xv.exports=Ev()});var Iv=h((g6,Sv)=>{"use strict";var xC=TypeError,AC=9007199254740991;Sv.exports=function(e){if(e>AC)throw xC("Maximum allowed index exceeded");return e}});var cc=h((y6,kv)=>{"use strict";var SC=Be(),IC=Lt(),kC=Bn();kv.exports=function(e,t,r){SC?IC.f(e,t,kC(0,r)):e[t]=r}});var Ov=h(()=>{"use strict";var TC=V(),RC=ie(),CC=Kn(),OC=be(),PC=Fr(),NC=Hr(),Tv=Iv(),Rv=cc(),DC=oc(),qC=Yn(),LC=De(),UC=wo(),Cv=LC("isConcatSpreadable"),jC=UC>=51||!RC(function(){var e=[];return e[Cv]=!1,e.concat()[0]!==e}),MC=function(e){if(!OC(e))return!1;var t=e[Cv];return t!==void 0?!!t:CC(e)},FC=!jC||!qC("concat");TC({target:"Array",proto:!0,arity:1,forced:FC},{concat:function(t){var r=PC(this),n=DC(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],MC(c))for(l=NC(c),Tv(i+l),a=0;a<l;a++,i++)a in c&&Rv(n,i,c[a]);else Tv(i+1),Rv(n,i++,c);return n.length=i,n}})});var Nv=h((w6,Pv)=>{"use strict";Ov();var BC=it();Pv.exports=BC("Array","concat")});var qv=h((E6,Dv)=>{"use strict";var $C=Fe(),JC=Nv(),uc=Array.prototype;Dv.exports=function(e){var t=e.concat;return e===uc||$C(uc,e)&&t===uc.concat?JC:t}});var Uv=h((x6,Lv)=>{"use strict";var HC=qv();Lv.exports=HC});var Mv=h((A6,jv)=>{jv.exports=Uv()});var Fv=h(()=>{"use strict";var VC=V(),zC=rr().some,GC=Qn(),KC=GC("some");VC({target:"Array",proto:!0,forced:!KC},{some:function(t){return zC(this,t,arguments.length>1?arguments[1]:void 0)}})});var $v=h((k6,Bv)=>{"use strict";Fv();var WC=it();Bv.exports=WC("Array","some")});var Hv=h((T6,Jv)=>{"use strict";var YC=Fe(),QC=$v(),dc=Array.prototype;Jv.exports=function(e){var t=e.some;return e===dc||YC(dc,e)&&t===dc.some?QC:t}});var zv=h((R6,Vv)=>{"use strict";var XC=Hv();Vv.exports=XC});var Kv=h((C6,Gv)=>{Gv.exports=zv()});var Yv=h((O6,Wv)=>{"use strict";var Xn=oe(),ZC=_o(),eO=Dt(),ko=function(e){return ZC.slice(0,e.length)===e};Wv.exports=function(){return ko("Bun/")?"BUN":ko("Cloudflare-Workers")?"CLOUDFLARE":ko("Deno/")?"DENO":ko("Node.js/")?"NODE":Xn.Bun&&typeof Bun.version=="string"?"BUN":Xn.Deno&&typeof Deno.version=="object"?"DENO":eO(Xn.process)==="process"?"NODE":Xn.window&&Xn.document?"BROWSER":"REST"}()});var Zn=h((P6,Qv)=>{"use strict";var tO=he();Qv.exports=tO([].slice)});var Zv=h((N6,Xv)=>{"use strict";var rO=TypeError;Xv.exports=function(e,t){if(e<t)throw new rO("Not enough arguments");return e}});var fc=h((D6,tg)=>{"use strict";var eg=oe(),nO=Cl(),iO=Se(),oO=Yv(),aO=_o(),sO=Zn(),lO=Zv(),cO=eg.Function,uO=/MSIE .\./.test(aO)||oO==="BUN"&&function(){var e=eg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();tg.exports=function(e,t){var r=t?2:1;return uO?function(n,i){var o=lO(arguments.length,1)>r,a=iO(n)?n:cO(n),s=o?sO(arguments,r):[],l=o?function(){nO(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var ig=h(()=>{"use strict";var dO=V(),ng=oe(),fO=fc(),rg=fO(ng.setInterval,!0);dO({global:!0,bind:!0,forced:ng.setInterval!==rg},{setInterval:rg})});var sg=h(()=>{"use strict";var pO=V(),ag=oe(),hO=fc(),og=hO(ag.setTimeout,!0);pO({global:!0,bind:!0,forced:ag.setTimeout!==og},{setTimeout:og})});var lg=h(()=>{"use strict";ig();sg()});var ug=h((B6,cg)=>{"use strict";lg();var mO=vt();cg.exports=mO.setTimeout});var fg=h(($6,dg)=>{dg.exports=ug()});function ti(e,t){ce.__h&&ce.__h(Y,e,ei||t),ei=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ro(e){return ei=1,Eg(xg,e)}function Eg(e,t,r){var n=ti(xr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xg(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=Y,!Y.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};Y.__f=!0;var o=Y.shouldComponentUpdate,a=Y.componentWillUpdate;Y.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)},Y.shouldComponentUpdate=i}return n.__N||n.__}function ri(e,t){var r=ti(xr++,3);!ce.__s&&mc(r.__H,t)&&(r.__=e,r.u=t,Y.__H.__h.push(r))}function zr(e,t){var r=ti(xr++,4);!ce.__s&&mc(r.__H,t)&&(r.__=e,r.u=t,Y.__h.push(r))}function ni(e){return ei=5,ii(function(){return{current:e}},[])}function ii(e,t){var r=ti(xr++,7);return mc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Gr(e,t){return ei=8,ii(function(){return e},t)}function Kr(e){var t=Y.context[e.__c],r=ti(xr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Y)),t.props.value):e.__}function vO(){for(var e;e=wg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(To),e.__H.__h.forEach(hc),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,e.__v)}}function gO(e){var t,r=function(){clearTimeout(n),bg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);bg&&(t=requestAnimationFrame(r))}function To(e){var t=Y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Y=t}function hc(e){var t=Y;e.__c=e.__(),Y=t}function mc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function xg(e,t){return typeof t=="function"?t(e):t}var xr,Y,pc,pg,ei,wg,ce,hg,mg,vg,gg,yg,_g,bg,vc=I(()=>{Lr();ei=0,wg=[],ce=C,hg=ce.__b,mg=ce.__r,vg=ce.diffed,gg=ce.__c,yg=ce.unmount,_g=ce.__;ce.__b=function(e){Y=null,hg&&hg(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_g&&_g(e,t)},ce.__r=function(e){mg&&mg(e),xr=0;var t=(Y=e.__c).__H;t&&(pc===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(To),t.__h.forEach(hc),t.__h=[],xr=0)),pc=Y},ce.diffed=function(e){vg&&vg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wg.push(t)!==1&&pg===ce.requestAnimationFrame||((pg=ce.requestAnimationFrame)||gO)(vO)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),pc=Y=null},ce.__c=function(e,t){t.some(function(r){try{r.__h.forEach(To),r.__h=r.__h.filter(function(n){return!n.__||hc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ce.__e(n,r.__v)}}),gg&&gg(e,t)},ce.unmount=function(e){yg&&yg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{To(n)}catch(i){t=i}}),r.__H=void 0,t&&ce.__e(t,r.__v))};bg=typeof requestAnimationFrame=="function"});function Ng(e,t){for(var r in t)e[r]=t[r];return e}function yc(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 Ag(e,t){this.props=e,this.context=t}function bc(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:yc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ne(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function wc(e){function t(r){var n=Ng({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=yO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Dg(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=Ng({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Dg(n,t,r)})),e}function qg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qg(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 gc(){this.__u=0,this.o=null,this.__b=null}function Lg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Co(){this.i=null,this.l=null}function Ec(e,t,r){return t.__k==null&&(t.textContent=""),qr(e,t),typeof r=="function"&&r(),e?e.__c:null}function IO(){}function kO(){return this.cancelBubble}function TO(){return this.defaultPrevented}var _c,Sg,yO,_O,Ig,kg,bO,wO,EO,xO,AO,SO,Tg,Ug,RO,Rg,Cg,Og,Oo=I(()=>{Lr();Lr();vc();vc();_c=zr;(Ag.prototype=new Ge).isPureReactComponent=!0,Ag.prototype.shouldComponentUpdate=function(e,t){return yc(this.props,e)||yc(this.state,t)};Sg=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Sg&&Sg(e)};yO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;_O=C.__e;C.__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)}_O(e,t,r,n)};Ig=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ig&&Ig(e)},(gc.prototype=new Ge).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Lg(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]=qg(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)},gc.prototype.componentWillUnmount=function(){this.o=[]},gc.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]=Dg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ne(Ke,null,e.fallback);return i&&(i.__u&=-33),[Ne(Ke,null,t.__a?null:e.children),i]};kg=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]}};(Co.prototype=new Ge).__a=function(e){var t=this,r=Lg(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),kg(t,e,n)):i()};r?r(o):o()}},Co.prototype.render=function(e){this.i=null,this.l=new Map;var t=jn(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},Co.prototype.componentDidUpdate=Co.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){kg(e,r,t)})};bO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,wO=/^(?: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]/,EO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xO=/[A-Z0-9]/g,AO=typeof document!="undefined",SO=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ge.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ge.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Tg=C.event;C.event=function(e){return Tg&&(e=Tg(e)),e.persist=IO,e.isPropagationStopped=kO,e.isDefaultPrevented=TO,e.nativeEvent=e};RO={enumerable:!1,configurable:!0,get:function(){return this.class}},Rg=C.vnode;C.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||AO&&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"||SO(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":EO.test(a)&&(a=l):l=a="oninput":o&&wO.test(a)?a=a.replace(xO,"-$&").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=jn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=jn(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",RO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=bO,Rg&&Rg(e)};Cg=C.__r;C.__r=function(e){Cg&&Cg(e),Ug=e.__c};Og=C.diffed;C.diffed=function(e){Og&&Og(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),Ug=null}});var xc=h((eV,jg)=>{"use strict";var OO=Gn(),PO=Math.max,NO=Math.min;jg.exports=function(e,t){var r=OO(e);return r<0?PO(r+t,0):NO(r,t)}});var Bg=h(()=>{"use strict";var DO=V(),Mg=Kn(),qO=ic(),LO=be(),Fg=xc(),UO=Hr(),jO=er(),MO=cc(),FO=De(),BO=Yn(),$O=Zn(),JO=BO("slice"),HO=FO("species"),Ac=Array,VO=Math.max;DO({target:"Array",proto:!0,forced:!JO},{slice:function(t,r){var n=jO(this),i=UO(n),o=Fg(t,i),a=Fg(r===void 0?i:r,i),s,l,c;if(Mg(n)&&(s=n.constructor,qO(s)&&(s===Ac||Mg(s.prototype))?s=void 0:LO(s)&&(s=s[HO],s===null&&(s=void 0)),s===Ac||s===void 0))return $O(n,o,a);for(l=new(s===void 0?Ac:s)(VO(a-o,0)),c=0;o<a;o++,c++)o in n&&MO(l,c,n[o]);return l.length=c,l}})});var Jg=h((nV,$g)=>{"use strict";Bg();var zO=it();$g.exports=zO("Array","slice")});var Vg=h((iV,Hg)=>{"use strict";var GO=Fe(),KO=Jg(),Sc=Array.prototype;Hg.exports=function(e){var t=e.slice;return e===Sc||GO(Sc,e)&&t===Sc.slice?KO:t}});var Gg=h((oV,zg)=>{"use strict";var WO=Vg();zg.exports=WO});var Wg=h((aV,Kg)=>{Kg.exports=Gg()});var Yg=h(()=>{"use strict";var YO=V(),QO=Kn();YO({target:"Array",stat:!0},{isArray:QO})});var Xg=h((cV,Qg)=>{"use strict";Yg();var XO=vt();Qg.exports=XO.Array.isArray});var ey=h((uV,Zg)=>{"use strict";var ZO=Xg();Zg.exports=ZO});var ry=h((dV,ty)=>{ty.exports=ey()});var oi=h((fV,ny)=>{"use strict";var eP=Vr(),tP=String;ny.exports=function(e){if(eP(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return tP(e)}});var oy=h((pV,iy)=>{"use strict";var rP=be(),nP=Dt(),iP=De(),oP=iP("match");iy.exports=function(e){var t;return rP(e)&&((t=e[oP])!==void 0?!!t:nP(e)==="RegExp")}});var sy=h((hV,ay)=>{"use strict";var aP=oy(),sP=TypeError;ay.exports=function(e){if(aP(e))throw new sP("The method doesn't accept regular expressions");return e}});var cy=h((mV,ly)=>{"use strict";var lP=De(),cP=lP("match");ly.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[cP]=!1,"/./"[e](t)}catch(n){}}return!1}});var fy=h(()=>{"use strict";var uP=V(),dP=Fn(),fP=Wl().f,pP=tc(),uy=oi(),hP=sy(),mP=br(),vP=cy(),gP=Mr(),yP=dP("".slice),_P=Math.min,dy=vP("startsWith"),bP=!gP&&!dy&&!!function(){var e=fP(String.prototype,"startsWith");return e&&!e.writable}();uP({target:"String",proto:!0,forced:!bP&&!dy},{startsWith:function(t){var r=uy(mP(this));hP(t);var n=pP(_P(arguments.length>1?arguments[1]:void 0,r.length)),i=uy(t);return yP(r,n,n+i.length)===i}})});var hy=h((yV,py)=>{"use strict";fy();var wP=it();py.exports=wP("String","startsWith")});var vy=h((_V,my)=>{"use strict";var EP=Fe(),xP=hy(),Ic=String.prototype;my.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Ic||EP(Ic,e)&&t===Ic.startsWith?xP:t}});var yy=h((bV,gy)=>{"use strict";var AP=vy();gy.exports=AP});var by=h((wV,_y)=>{_y.exports=yy()});var Tc=h(()=>{"use strict";var SP=V(),kc=oe();SP({global:!0,forced:kc.globalThis!==kc},{globalThis:kc})});var wy=h(()=>{"use strict";Tc()});var xy=h((IV,Ey)=>{"use strict";Tc();Ey.exports=oe()});var Sy=h((kV,Ay)=>{"use strict";var IP=xy();Ay.exports=IP});var ky=h((TV,Iy)=>{"use strict";var kP=Sy();Iy.exports=kP});var Ry=h((RV,Ty)=>{"use strict";wy();var TP=ky();Ty.exports=TP});var Oy=h((CV,Cy)=>{"use strict";Cy.exports=Ry()});var Ny=h((OV,Py)=>{Py.exports=Oy()});var qy=h((PV,Dy)=>{"use strict";Dy.exports=function(){}});var Ar=h((NV,Ly)=>{"use strict";Ly.exports={}});var Rc=h((DV,jy)=>{"use strict";var RP=oe(),CP=Se(),Uy=RP.WeakMap;jy.exports=CP(Uy)&&/native code/.test(String(Uy))});var Po=h((qV,Fy)=>{"use strict";var OP=Jl(),PP=xo(),My=OP("keys");Fy.exports=function(e){return My[e]||(My[e]=PP(e))}});var ai=h((LV,By)=>{"use strict";By.exports={}});var Ir=h((UV,Hy)=>{"use strict";var NP=Rc(),Jy=oe(),DP=be(),qP=Er(),Cc=We(),Oc=Jn(),LP=Po(),UP=ai(),$y="Object already initialized",Pc=Jy.TypeError,jP=Jy.WeakMap,No,si,Do,MP=function(e){return Do(e)?si(e):No(e,{})},FP=function(e){return function(t){var r;if(!DP(t)||(r=si(t)).type!==e)throw new Pc("Incompatible receiver, "+e+" required");return r}};NP||Oc.state?(dt=Oc.state||(Oc.state=new jP),dt.get=dt.get,dt.has=dt.has,dt.set=dt.set,No=function(e,t){if(dt.has(e))throw new Pc($y);return t.facade=e,dt.set(e,t),t},si=function(e){return dt.get(e)||{}},Do=function(e){return dt.has(e)}):(Sr=LP("state"),UP[Sr]=!0,No=function(e,t){if(Cc(e,Sr))throw new Pc($y);return t.facade=e,qP(e,Sr,t),t},si=function(e){return Cc(e,Sr)?e[Sr]:{}},Do=function(e){return Cc(e,Sr)});var dt,Sr;Hy.exports={set:No,get:si,has:Do,enforce:MP,getterFor:FP}});var qc=h((jV,zy)=>{"use strict";var Nc=Be(),BP=We(),Vy=Function.prototype,$P=Nc&&Object.getOwnPropertyDescriptor,Dc=BP(Vy,"name"),JP=Dc&&(function(){}).name==="something",HP=Dc&&(!Nc||Nc&&$P(Vy,"name").configurable);zy.exports={EXISTS:Dc,PROPER:JP,CONFIGURABLE:HP}});var Lc=h((MV,Ky)=>{"use strict";var VP=er(),zP=xc(),GP=Hr(),Gy=function(e){return function(t,r,n){var i=VP(t),o=GP(i);if(o===0)return!e&&-1;var a=zP(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}};Ky.exports={includes:Gy(!0),indexOf:Gy(!1)}});var jc=h((FV,Yy)=>{"use strict";var KP=he(),Uc=We(),WP=er(),YP=Lc().indexOf,QP=ai(),Wy=KP([].push);Yy.exports=function(e,t){var r=WP(e),n=0,i=[],o;for(o in r)!Uc(QP,o)&&Uc(r,o)&&Wy(i,o);for(;t.length>n;)Uc(r,o=t[n++])&&(~YP(i,o)||Wy(i,o));return i}});var qo=h((BV,Qy)=>{"use strict";Qy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Mc=h(($V,Xy)=>{"use strict";var XP=jc(),ZP=qo();Xy.exports=Object.keys||function(t){return XP(t,ZP)}});var e_=h(Zy=>{"use strict";var eN=Be(),tN=Yl(),rN=Lt(),nN=qt(),iN=er(),oN=Mc();Zy.f=eN&&!tN?Object.defineProperties:function(t,r){nN(t);for(var n=iN(r),i=oN(r),o=i.length,a=0,s;o>a;)rN.f(t,s=i[a++],n[s]);return t}});var r_=h((HV,t_)=>{"use strict";var aN=jr();t_.exports=aN("document","documentElement")});var li=h((VV,c_)=>{"use strict";var sN=qt(),lN=e_(),n_=qo(),cN=ai(),uN=r_(),dN=Gl(),fN=Po(),i_=">",o_="<",Bc="prototype",$c="script",s_=fN("IE_PROTO"),Fc=function(){},l_=function(e){return o_+$c+i_+e+o_+"/"+$c+i_},a_=function(e){e.write(l_("")),e.close();var t=e.parentWindow.Object;return e=null,t},pN=function(){var e=dN("iframe"),t="java"+$c+":",r;return e.style.display="none",uN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(l_("document.F=Object")),r.close(),r.F},Lo,Uo=function(){try{Lo=new ActiveXObject("htmlfile")}catch(t){}Uo=typeof document!="undefined"?document.domain&&Lo?a_(Lo):pN():a_(Lo);for(var e=n_.length;e--;)delete Uo[Bc][n_[e]];return Uo()};cN[s_]=!0;c_.exports=Object.create||function(t,r){var n;return t!==null?(Fc[Bc]=sN(t),n=new Fc,Fc[Bc]=null,n[s_]=t):n=Uo(),r===void 0?n:lN.f(n,r)}});var d_=h((zV,u_)=>{"use strict";var hN=ie();u_.exports=!hN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Hc=h((GV,p_)=>{"use strict";var mN=We(),vN=Se(),gN=Fr(),yN=Po(),_N=d_(),f_=yN("IE_PROTO"),Jc=Object,bN=Jc.prototype;p_.exports=_N?Jc.getPrototypeOf:function(e){var t=gN(e);if(mN(t,f_))return t[f_];var r=t.constructor;return vN(r)&&t instanceof r?r.prototype:t instanceof Jc?bN:null}});var jo=h((KV,h_)=>{"use strict";var wN=Er();h_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:wN(e,t,r),e}});var Kc=h((WV,g_)=>{"use strict";var EN=ie(),xN=Se(),AN=be(),SN=li(),m_=Hc(),IN=jo(),kN=De(),TN=Mr(),Gc=kN("iterator"),v_=!1,Ut,Vc,zc;[].keys&&(zc=[].keys(),"next"in zc?(Vc=m_(m_(zc)),Vc!==Object.prototype&&(Ut=Vc)):v_=!0);var RN=!AN(Ut)||EN(function(){var e={};return Ut[Gc].call(e)!==e});RN?Ut={}:TN&&(Ut=SN(Ut));xN(Ut[Gc])||IN(Ut,Gc,function(){return this});g_.exports={IteratorPrototype:Ut,BUGGY_SAFARI_ITERATORS:v_}});var __=h((YV,y_)=>{"use strict";var CN=So(),ON=Vr();y_.exports=CN?{}.toString:function(){return"[object "+ON(this)+"]"}});var ci=h((QV,w_)=>{"use strict";var PN=So(),NN=Lt().f,DN=Er(),qN=We(),LN=__(),UN=De(),b_=UN("toStringTag");w_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(qN(i,b_)||NN(i,b_,{configurable:!0,value:t}),n&&!PN&&DN(i,"toString",LN))}});var x_=h((XV,E_)=>{"use strict";var jN=Kc().IteratorPrototype,MN=li(),FN=Bn(),BN=ci(),$N=Ar(),JN=function(){return this};E_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=MN(jN,{next:FN(+!n,r)}),BN(e,i,!1,!0),$N[i]=JN,e}});var S_=h((ZV,A_)=>{"use strict";var HN=he(),VN=wr();A_.exports=function(e,t,r){try{return HN(VN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var k_=h((e9,I_)=>{"use strict";var zN=be();I_.exports=function(e){return zN(e)||e===null}});var R_=h((t9,T_)=>{"use strict";var GN=k_(),KN=String,WN=TypeError;T_.exports=function(e){if(GN(e))return e;throw new WN("Can't set "+KN(e)+" as a prototype")}});var O_=h((r9,C_)=>{"use strict";var YN=S_(),QN=be(),XN=br(),ZN=R_();C_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=YN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return XN(i),ZN(o),QN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Bo=h((n9,B_)=>{"use strict";var eD=V(),tD=ct(),Mo=Mr(),M_=qc(),rD=Se(),nD=x_(),P_=Hc(),N_=O_(),iD=ci(),oD=Er(),Wc=jo(),aD=De(),D_=Ar(),F_=Kc(),sD=M_.PROPER,lD=M_.CONFIGURABLE,q_=F_.IteratorPrototype,Fo=F_.BUGGY_SAFARI_ITERATORS,ui=aD("iterator"),L_="keys",di="values",U_="entries",j_=function(){return this};B_.exports=function(e,t,r,n,i,o,a){nD(r,t,n);var s=function(v){if(v===i&&f)return f;if(!Fo&&v&&v in d)return d[v];switch(v){case L_:return function(){return new r(this,v)};case di:return function(){return new r(this,v)};case U_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ui]||d["@@iterator"]||i&&d[i],f=!Fo&&u||s(i),p=t==="Array"&&d.entries||u,m,g,_;if(p&&(m=P_(p.call(new e)),m!==Object.prototype&&m.next&&(!Mo&&P_(m)!==q_&&(N_?N_(m,q_):rD(m[ui])||Wc(m,ui,j_)),iD(m,l,!0,!0),Mo&&(D_[l]=j_))),sD&&i===di&&u&&u.name!==di&&(!Mo&&lD?oD(d,"name",di):(c=!0,f=function(){return tD(u,this)})),i)if(g={values:s(di),keys:o?f:s(L_),entries:s(U_)},a)for(_ in g)(Fo||c||!(_ in d))&&Wc(d,_,g[_]);else eD({target:t,proto:!0,forced:Fo||c},g);return(!Mo||a)&&d[ui]!==f&&Wc(d,ui,f,{name:i}),D_[t]=f,g}});var $o=h((i9,$_)=>{"use strict";$_.exports=function(e,t){return{value:e,done:t}}});var Ho=h((o9,G_)=>{"use strict";var cD=er(),Yc=qy(),J_=Ar(),V_=Ir(),uD=Lt().f,dD=Bo(),Jo=$o(),fD=Mr(),pD=Be(),z_="Array Iterator",hD=V_.set,mD=V_.getterFor(z_);G_.exports=dD(Array,"Array",function(e,t){hD(this,{type:z_,target:cD(e),index:0,kind:t})},function(){var e=mD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Jo(void 0,!0);switch(e.kind){case"keys":return Jo(r,!1);case"values":return Jo(t[r],!1)}return Jo([r,t[r]],!1)},"values");var H_=J_.Arguments=J_.Array;Yc("keys");Yc("values");Yc("entries");if(!fD&&pD&&H_.name!=="values")try{uD(H_,"name",{value:"values"})}catch(e){}});var Qc=h(()=>{});var Xc=h((l9,K_)=>{"use strict";var vD=ie();K_.exports=!vD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Vo=h((c9,W_)=>{"use strict";var gD=jo();W_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:gD(e,n,t[n],r);return e}});var Zc=h(Y_=>{"use strict";var yD=jc(),_D=qo(),bD=_D.concat("length","prototype");Y_.f=Object.getOwnPropertyNames||function(t){return yD(t,bD)}});var eb=h((d9,Z_)=>{"use strict";var wD=Dt(),ED=er(),Q_=Zc().f,xD=Zn(),X_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AD=function(e){try{return Q_(e)}catch(t){return xD(X_)}};Z_.exports.f=function(t){return X_&&wD(t)==="Window"?AD(t):Q_(ED(t))}});var rb=h((f9,tb)=>{"use strict";var SD=ie();tb.exports=SD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ob=h((p9,ib)=>{"use strict";var ID=ie(),kD=be(),TD=Dt(),nb=rb(),zo=Object.isExtensible,RD=ID(function(){zo(1)});ib.exports=RD||nb?function(t){return!kD(t)||nb&&TD(t)==="ArrayBuffer"?!1:zo?zo(t):!0}:zo});var fi=h((h9,lb)=>{"use strict";var CD=V(),OD=he(),PD=ai(),ND=be(),eu=We(),DD=Lt().f,ab=Zc(),qD=eb(),tu=ob(),LD=xo(),UD=Xc(),sb=!1,jt=LD("meta"),jD=0,ru=function(e){DD(e,jt,{value:{objectID:"O"+jD++,weakData:{}}})},MD=function(e,t){if(!ND(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!eu(e,jt)){if(!tu(e))return"F";if(!t)return"E";ru(e)}return e[jt].objectID},FD=function(e,t){if(!eu(e,jt)){if(!tu(e))return!0;if(!t)return!1;ru(e)}return e[jt].weakData},BD=function(e){return UD&&sb&&tu(e)&&!eu(e,jt)&&ru(e),e},$D=function(){JD.enable=function(){},sb=!0;var e=ab.f,t=OD([].splice),r={};r[jt]=1,e(r).length&&(ab.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===jt){t(i,o,1);break}return i},CD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qD.f}))},JD=lb.exports={enable:$D,fastKey:MD,getWeakData:FD,onFreeze:BD};PD[jt]=!0});var ub=h((m9,cb)=>{"use strict";var HD=De(),VD=Ar(),zD=HD("iterator"),GD=Array.prototype;cb.exports=function(e){return e!==void 0&&(VD.Array===e||GD[zD]===e)}});var nu=h((v9,fb)=>{"use strict";var KD=Vr(),db=Eo(),WD=_r(),YD=Ar(),QD=De(),XD=QD("iterator");fb.exports=function(e){if(!WD(e))return db(e,XD)||db(e,"@@iterator")||YD[KD(e)]}});var hb=h((g9,pb)=>{"use strict";var ZD=ct(),eq=wr(),tq=qt(),rq=$n(),nq=nu(),iq=TypeError;pb.exports=function(e,t){var r=arguments.length<2?nq(e):t;if(eq(r))return tq(ZD(r,e));throw new iq(rq(e)+" is not iterable")}});var Go=h((y9,vb)=>{"use strict";var oq=ct(),mb=qt(),aq=Eo();vb.exports=function(e,t,r){var n,i;mb(e);try{if(n=aq(e,"return"),!n){if(t==="throw")throw r;return r}n=oq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return mb(n),r}});var Wo=h((_9,bb)=>{"use strict";var sq=Vn(),lq=ct(),cq=qt(),uq=$n(),dq=ub(),fq=Hr(),gb=Fe(),pq=hb(),hq=nu(),yb=Go(),mq=TypeError,Ko=function(e,t){this.stopped=e,this.result=t},_b=Ko.prototype;bb.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=sq(t,n),c,d,u,f,p,m,g,_=function(b){return c&&yb(c,"normal",b),new Ko(!0,b)},v=function(b){return i?(cq(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=hq(e),!d)throw new mq(uq(e)+" is not iterable");if(dq(d)){for(u=0,f=fq(e);f>u;u++)if(p=v(e[u]),p&&gb(_b,p))return p;return new Ko(!1)}c=pq(e,d)}for(m=o?e.next:c.next;!(g=lq(m,c)).done;){try{p=v(g.value)}catch(b){yb(c,"throw",b)}if(typeof p=="object"&&p&&gb(_b,p))return p}return new Ko(!1)}});var Yo=h((b9,wb)=>{"use strict";var vq=Fe(),gq=TypeError;wb.exports=function(e,t){if(vq(t,e))return e;throw new gq("Incorrect invocation")}});var iu=h((w9,xb)=>{"use strict";var yq=V(),_q=oe(),bq=fi(),wq=ie(),Eq=Er(),xq=Wo(),Aq=Yo(),Sq=Se(),Iq=be(),kq=_r(),Tq=ci(),Rq=Lt().f,Cq=rr().forEach,Oq=Be(),Eb=Ir(),Pq=Eb.set,Nq=Eb.getterFor;xb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=_q[e],s=a&&a.prototype,l={},c;if(!Oq||!Sq(a)||!(i||s.forEach&&!wq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),bq.enable();else{c=t(function(f,p){Pq(Aq(f,d),{type:e,collection:new a}),kq(p)||xq(p,f[o],{that:f,AS_ENTRIES:n})});var d=c.prototype,u=Nq(e);Cq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var p=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&Eq(d,f,function(m,g){var _=u(this).collection;if(!p&&i&&!Iq(m))return f==="get"?void 0:!1;var v=_[f](m===0?0:m,g);return p?this:v})}),i||Rq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Tq(c,e,!1,!0),l[e]=c,yq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Cb=h((E9,Rb)=>{"use strict";var Dq=he(),Ab=Vo(),Qo=fi().getWeakData,qq=Yo(),Lq=qt(),Uq=_r(),ou=be(),jq=Wo(),Ib=rr(),Sb=We(),kb=Ir(),Mq=kb.set,Fq=kb.getterFor,Bq=Ib.find,$q=Ib.findIndex,Jq=Dq([].splice),Hq=0,Xo=function(e){return e.frozen||(e.frozen=new Tb)},Tb=function(){this.entries=[]},au=function(e,t){return Bq(e.entries,function(r){return r[0]===t})};Tb.prototype={get:function(e){var t=au(this,e);if(t)return t[1]},has:function(e){return!!au(this,e)},set:function(e,t){var r=au(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=$q(this.entries,function(r){return r[0]===e});return~t&&Jq(this.entries,t,1),!!~t}};Rb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){qq(l,o),Mq(l,{type:t,id:Hq++,frozen:null}),Uq(c)||jq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Fq(t),s=function(l,c,d){var u=a(l),f=Qo(Lq(c),!0);return f===!0?Xo(u).set(c,d):f[u.id]=d,l};return Ab(o,{delete:function(l){var c=a(this);if(!ou(l))return!1;var d=Qo(l);return d===!0?Xo(c).delete(l):d&&Sb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!ou(c))return!1;var u=Qo(c);return u===!0?Xo(d).has(c):u&&Sb(u,d.id)}}),Ab(o,r?{get:function(c){var d=a(this);if(ou(c)){var u=Qo(c);if(u===!0)return Xo(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 jb=h(()=>{"use strict";var Vq=Xc(),Ob=oe(),ra=he(),Pb=Vo(),zq=fi(),Gq=iu(),Nb=Cb(),Zo=be(),ea=Ir().enforce,Kq=ie(),Wq=Rc(),mi=Object,Yq=Array.isArray,ta=mi.isExtensible,Db=mi.isFrozen,Qq=mi.isSealed,qb=mi.freeze,Xq=mi.seal,Zq=!Ob.ActiveXObject&&"ActiveXObject"in Ob,pi,Lb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ub=Gq("WeakMap",Lb,Nb),Wr=Ub.prototype,na=ra(Wr.set),eL=function(){return Vq&&Kq(function(){var e=qb([]);return na(new Ub,e,1),!Db(e)})};Wq&&(Zq?(pi=Nb.getConstructor(Lb,"WeakMap",!0),zq.enable(),su=ra(Wr.delete),hi=ra(Wr.has),lu=ra(Wr.get),Pb(Wr,{delete:function(e){if(Zo(e)&&!ta(e)){var t=ea(this);return t.frozen||(t.frozen=new pi),su(this,e)||t.frozen.delete(e)}return su(this,e)},has:function(t){if(Zo(t)&&!ta(t)){var r=ea(this);return r.frozen||(r.frozen=new pi),hi(this,t)||r.frozen.has(t)}return hi(this,t)},get:function(t){if(Zo(t)&&!ta(t)){var r=ea(this);return r.frozen||(r.frozen=new pi),hi(this,t)?lu(this,t):r.frozen.get(t)}return lu(this,t)},set:function(t,r){if(Zo(t)&&!ta(t)){var n=ea(this);n.frozen||(n.frozen=new pi),hi(this,t)?na(this,t,r):n.frozen.set(t,r)}else na(this,t,r);return this}})):eL()&&Pb(Wr,{set:function(t,r){var n;return Yq(t)&&(Db(t)?n=qb:Qq(t)&&(n=Xq)),na(this,t,r),n&&n(t),this}}));var su,hi,lu});var Mb=h(()=>{"use strict";jb()});var Bb=h((k9,Fb)=>{"use strict";Ho();Qc();Mb();var tL=vt();Fb.exports=tL.WeakMap});var Jb=h((T9,$b)=>{"use strict";$b.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 cu=h(()=>{"use strict";Ho();var rL=Jb(),nL=oe(),iL=ci(),Hb=Ar();for(ia in rL)iL(nL[ia],ia),Hb[ia]=Hb.Array;var ia});var zb=h((O9,Vb)=>{"use strict";var oL=Bb();cu();Vb.exports=oL});var Kb=h((P9,Gb)=>{Gb.exports=zb()});var Yb=h(()=>{"use strict";var aL=V(),sL=Fn(),lL=Lc().indexOf,cL=Qn(),uu=sL([].indexOf),Wb=!!uu&&1/uu([1],1,-0)<0,uL=Wb||!cL("indexOf");aL({target:"Array",proto:!0,forced:uL},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Wb?uu(this,t,r)||0:lL(this,t,r)}})});var Xb=h((q9,Qb)=>{"use strict";Yb();var dL=it();Qb.exports=dL("Array","indexOf")});var e0=h((L9,Zb)=>{"use strict";var fL=Fe(),pL=Xb(),du=Array.prototype;Zb.exports=function(e){var t=e.indexOf;return e===du||fL(du,e)&&t===du.indexOf?pL:t}});var r0=h((U9,t0)=>{"use strict";var hL=e0();t0.exports=hL});var i0=h((j9,n0)=>{n0.exports=r0()});var o0=h(()=>{"use strict";var mL=V(),vL=rr().map,gL=Yn(),yL=gL("map");mL({target:"Array",proto:!0,forced:!yL},{map:function(t){return vL(this,t,arguments.length>1?arguments[1]:void 0)}})});var s0=h((B9,a0)=>{"use strict";o0();var _L=it();a0.exports=_L("Array","map")});var c0=h(($9,l0)=>{"use strict";var bL=Fe(),wL=s0(),fu=Array.prototype;l0.exports=function(e){var t=e.map;return e===fu||bL(fu,e)&&t===fu.map?wL:t}});var d0=h((J9,u0)=>{"use strict";var EL=c0();u0.exports=EL});var p0=h((H9,f0)=>{f0.exports=d0()});var h0=h(()=>{"use strict";var xL=V(),AL=Be(),SL=li();xL({target:"Object",stat:!0,sham:!AL},{create:SL})});var v0=h((G9,m0)=>{"use strict";h0();var IL=vt(),kL=IL.Object;m0.exports=function(t,r){return kL.create(t,r)}});var y0=h((K9,g0)=>{"use strict";var TL=v0();g0.exports=TL});var b0=h((W9,_0)=>{_0.exports=y0()});var pu=h((Y9,w0)=>{"use strict";var RL=Lt();w0.exports=function(e,t,r){return RL.f(e,t,r)}});var A0=h((Q9,x0)=>{"use strict";var CL=jr(),OL=pu(),PL=De(),NL=Be(),E0=PL("species");x0.exports=function(e){var t=CL(e);NL&&t&&!t[E0]&&OL(t,E0,{configurable:!0,get:function(){return this}})}});var O0=h((X9,C0)=>{"use strict";var S0=li(),DL=pu(),I0=Vo(),qL=Vn(),LL=Yo(),UL=_r(),jL=Wo(),ML=Bo(),oa=$o(),FL=A0(),gi=Be(),k0=fi().fastKey,R0=Ir(),T0=R0.set,hu=R0.getterFor;C0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){LL(c,o),T0(c,{type:t,index:S0(null),first:null,last:null,size:0}),gi||(c.size=0),UL(d)||jL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=hu(t),s=function(c,d,u){var f=a(c),p=l(c,d),m,g;return p?p.value=u:(f.last=p={index:g=k0(d,!0),key:d,value:u,previous:m=f.last,next:null,removed:!1},f.first||(f.first=p),m&&(m.next=p),gi?f.size++:c.size++,g!=="F"&&(f.index[g]=p)),c},l=function(c,d){var u=a(c),f=k0(d),p;if(f!=="F")return u.index[f];for(p=u.first;p;p=p.next)if(p.key===d)return p};return I0(o,{clear:function(){for(var d=this,u=a(d),f=u.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=null),f=f.next;u.first=u.last=null,u.index=S0(null),gi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),f=l(d,c);if(f){var p=f.next,m=f.previous;delete u.index[f.index],f.removed=!0,m&&(m.next=p),p&&(p.previous=m),u.first===f&&(u.first=p),u.last===f&&(u.last=m),gi?u.size--:d.size--}return!!f},forEach:function(d){for(var u=a(this),f=qL(d,arguments.length>1?arguments[1]:void 0),p;p=p?p.next:u.first;)for(f(p.value,p.key,this);p&&p.removed;)p=p.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)}}),gi&&DL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=hu(t),o=hu(n);ML(e,t,function(a,s){T0(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,oa(void 0,!0)):oa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),FL(t)}}});var P0=h(()=>{"use strict";var BL=iu(),$L=O0();BL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$L)});var N0=h(()=>{"use strict";P0()});var nr=h((nz,D0)=>{"use strict";var JL=$n(),HL=TypeError;D0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new HL(JL(e)+" is not a set")}});var L0=h((iz,q0)=>{"use strict";q0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var ir=h((oz,j0)=>{"use strict";var VL=jr(),mu=L0(),U0=VL("Set"),zL=U0.prototype;j0.exports={Set:U0,add:mu("add",1),has:mu("has",1),remove:mu("delete",1),proto:zL}});var or=h((az,M0)=>{"use strict";var GL=ct();M0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=GL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Yr=h((sz,F0)=>{"use strict";var KL=or();F0.exports=function(e,t,r){return r?KL(e.keys(),t,!0):e.forEach(t)}});var aa=h((lz,$0)=>{"use strict";var B0=ir(),WL=Yr(),YL=B0.Set,QL=B0.add;$0.exports=function(e){var t=new YL;return WL(e,function(r){QL(t,r)}),t}});var Qr=h((cz,J0)=>{"use strict";J0.exports=function(e){return e.size}});var V0=h((uz,H0)=>{"use strict";H0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var ar=h((dz,Q0)=>{"use strict";var z0=wr(),W0=qt(),G0=ct(),XL=Gn(),ZL=V0(),K0="Invalid size",eU=RangeError,tU=TypeError,rU=Math.max,Y0=function(e,t){this.set=e,this.size=rU(t,0),this.has=z0(e.has),this.keys=z0(e.keys)};Y0.prototype={getIterator:function(){return ZL(W0(G0(this.keys,this.set)))},includes:function(e){return G0(this.has,this.set,e)}};Q0.exports=function(e){W0(e);var t=+e.size;if(t!==t)throw new tU(K0);var r=XL(t);if(r<0)throw new eU(K0);return new Y0(e,r)}});var tw=h((fz,ew)=>{"use strict";var nU=nr(),Z0=ir(),iU=aa(),oU=Qr(),aU=ar(),sU=Yr(),lU=or(),cU=Z0.has,X0=Z0.remove;ew.exports=function(t){var r=nU(this),n=aU(t),i=iU(r);return oU(r)<=n.size?sU(r,function(o){n.includes(o)&&X0(i,o)}):lU(n.getIterator(),function(o){cU(r,o)&&X0(i,o)}),i}});var sr=h((pz,rw)=>{"use strict";rw.exports=function(){return!1}});var nw=h(()=>{"use strict";var uU=V(),dU=tw(),fU=sr(),pU=!fU("difference",function(e){return e.size===0});uU({target:"Set",proto:!0,real:!0,forced:pU},{difference:dU})});var aw=h((vz,ow)=>{"use strict";var hU=nr(),vu=ir(),mU=Qr(),vU=ar(),gU=Yr(),yU=or(),_U=vu.Set,iw=vu.add,bU=vu.has;ow.exports=function(t){var r=hU(this),n=vU(t),i=new _U;return mU(r)>n.size?yU(n.getIterator(),function(o){bU(r,o)&&iw(i,o)}):gU(r,function(o){n.includes(o)&&iw(i,o)}),i}});var sw=h(()=>{"use strict";var wU=V(),EU=ie(),xU=aw(),AU=sr(),SU=!AU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||EU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});wU({target:"Set",proto:!0,real:!0,forced:SU},{intersection:xU})});var cw=h((_z,lw)=>{"use strict";var IU=nr(),kU=ir().has,TU=Qr(),RU=ar(),CU=Yr(),OU=or(),PU=Go();lw.exports=function(t){var r=IU(this),n=RU(t);if(TU(r)<=n.size)return CU(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return OU(i,function(o){if(kU(r,o))return PU(i,"normal",!1)})!==!1}});var uw=h(()=>{"use strict";var NU=V(),DU=cw(),qU=sr(),LU=!qU("isDisjointFrom",function(e){return!e});NU({target:"Set",proto:!0,real:!0,forced:LU},{isDisjointFrom:DU})});var fw=h((Ez,dw)=>{"use strict";var UU=nr(),jU=Qr(),MU=Yr(),FU=ar();dw.exports=function(t){var r=UU(this),n=FU(t);return jU(r)>n.size?!1:MU(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var pw=h(()=>{"use strict";var BU=V(),$U=fw(),JU=sr(),HU=!JU("isSubsetOf",function(e){return e});BU({target:"Set",proto:!0,real:!0,forced:HU},{isSubsetOf:$U})});var mw=h((Sz,hw)=>{"use strict";var VU=nr(),zU=ir().has,GU=Qr(),KU=ar(),WU=or(),YU=Go();hw.exports=function(t){var r=VU(this),n=KU(t);if(GU(r)<n.size)return!1;var i=n.getIterator();return WU(i,function(o){if(!zU(r,o))return YU(i,"normal",!1)})!==!1}});var vw=h(()=>{"use strict";var QU=V(),XU=mw(),ZU=sr(),ej=!ZU("isSupersetOf",function(e){return!e});QU({target:"Set",proto:!0,real:!0,forced:ej},{isSupersetOf:XU})});var yw=h((Tz,gw)=>{"use strict";var tj=nr(),gu=ir(),rj=aa(),nj=ar(),ij=or(),oj=gu.add,aj=gu.has,sj=gu.remove;gw.exports=function(t){var r=tj(this),n=nj(t).getIterator(),i=rj(r);return ij(n,function(o){aj(r,o)?sj(i,o):oj(i,o)}),i}});var _w=h(()=>{"use strict";var lj=V(),cj=yw(),uj=sr();lj({target:"Set",proto:!0,real:!0,forced:!uj("symmetricDifference")},{symmetricDifference:cj})});var ww=h((Oz,bw)=>{"use strict";var dj=nr(),fj=ir().add,pj=aa(),hj=ar(),mj=or();bw.exports=function(t){var r=dj(this),n=hj(t).getIterator(),i=pj(r);return mj(n,function(o){fj(i,o)}),i}});var Ew=h(()=>{"use strict";var vj=V(),gj=ww(),yj=sr();vj({target:"Set",proto:!0,real:!0,forced:!yj("union")},{union:gj})});var Iw=h((Dz,Sw)=>{"use strict";var yu=he(),_j=Gn(),bj=oi(),wj=br(),Ej=yu("".charAt),xw=yu("".charCodeAt),xj=yu("".slice),Aw=function(e){return function(t,r){var n=bj(wj(t)),i=_j(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=xw(n,i),a<55296||a>56319||i+1===o||(s=xw(n,i+1))<56320||s>57343?e?Ej(n,i):a:e?xj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};Sw.exports={codeAt:Aw(!1),charAt:Aw(!0)}});var Cw=h(()=>{"use strict";var Aj=Iw().charAt,Sj=oi(),Tw=Ir(),Ij=Bo(),kw=$o(),Rw="String Iterator",kj=Tw.set,Tj=Tw.getterFor(Rw);Ij(String,"String",function(e){kj(this,{type:Rw,string:Sj(e),index:0})},function(){var t=Tj(this),r=t.string,n=t.index,i;return n>=r.length?kw(void 0,!0):(i=Aj(r,n),t.index+=i.length,kw(i,!1))})});var Pw=h((Uz,Ow)=>{"use strict";Ho();Qc();N0();nw();sw();uw();pw();vw();_w();Ew();Cw();var Rj=vt();Ow.exports=Rj.Set});var Dw=h((jz,Nw)=>{"use strict";var Cj=Pw();cu();Nw.exports=Cj});var Lw=h((Mz,qw)=>{qw.exports=Dw()});var jw=h(Uw=>{"use strict";Uw.f=Object.getOwnPropertySymbols});var $w=h((Bz,Bw)=>{"use strict";var Mw=Be(),Oj=he(),Pj=ct(),Nj=ie(),_u=Mc(),Dj=jw(),qj=Pl(),Lj=Fr(),Uj=yo(),Xr=Object.assign,Fw=Object.defineProperty,jj=Oj([].concat);Bw.exports=!Xr||Nj(function(){if(Mw&&Xr({b:1},Xr(Fw({},"a",{enumerable:!0,get:function(){Fw(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}),Xr({},e)[r]!==7||_u(Xr({},t)).join("")!==n})?function(t,r){for(var n=Lj(t),i=arguments.length,o=1,a=Dj.f,s=qj.f;i>o;)for(var l=Uj(arguments[o++]),c=a?jj(_u(l),a(l)):_u(l),d=c.length,u=0,f;d>u;)f=c[u++],(!Mw||Pj(s,l,f))&&(n[f]=l[f]);return n}:Xr});var Hw=h(()=>{"use strict";var Mj=V(),Jw=$w();Mj({target:"Object",stat:!0,arity:2,forced:Object.assign!==Jw},{assign:Jw})});var zw=h((Hz,Vw)=>{"use strict";Hw();var Fj=vt();Vw.exports=Fj.Object.assign});var Kw=h((Vz,Gw)=>{"use strict";var Bj=zw();Gw.exports=Bj});var Yw=h((zz,Ww)=>{Ww.exports=Kw()});var bu=h((Gz,Qw)=>{"use strict";Qw.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 eE=h((Kz,Zw)=>{"use strict";var $j=he(),Jj=br(),Hj=oi(),Eu=bu(),Xw=$j("".replace),Vj=RegExp("^["+Eu+"]+"),zj=RegExp("(^|[^"+Eu+"])["+Eu+"]+$"),wu=function(e){return function(t){var r=Hj(Jj(t));return e&1&&(r=Xw(r,Vj,"")),e&2&&(r=Xw(r,zj,"$1")),r}};Zw.exports={start:wu(1),end:wu(2),trim:wu(3)}});var iE=h((Wz,nE)=>{"use strict";var Gj=qc().PROPER,Kj=ie(),tE=bu(),rE="\u200B\x85\u180E";nE.exports=function(e){return Kj(function(){return!!tE[e]()||rE[e]()!==rE||Gj&&tE[e].name!==e})}});var oE=h(()=>{"use strict";var Wj=V(),Yj=eE().trim,Qj=iE();Wj({target:"String",proto:!0,forced:Qj("trim")},{trim:function(){return Yj(this)}})});var sE=h((Xz,aE)=>{"use strict";oE();var Xj=it();aE.exports=Xj("String","trim")});var cE=h((Zz,lE)=>{"use strict";var Zj=Fe(),eM=sE(),xu=String.prototype;lE.exports=function(e){var t=e.trim;return typeof e=="string"||e===xu||Zj(xu,e)&&t===xu.trim?eM:t}});var dE=h((eG,uE)=>{"use strict";var tM=cE();uE.exports=tM});var pE=h((tG,fE)=>{fE.exports=dE()});var Au=I(()=>{});var yE=h((nG,gE)=>{"use strict";var mE=he(),rM=wr(),nM=be(),iM=We(),hE=Zn(),oM=Ur(),vE=Function,aM=mE([].concat),sM=mE([].join),Su={},lM=function(e,t,r){if(!iM(Su,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Su[t]=vE("C,a","return new C("+sM(n,",")+")")}return Su[t](e,r)};gE.exports=oM?vE.bind:function(t){var r=rM(this),n=r.prototype,i=hE(arguments,1),o=function(){var s=aM(i,hE(arguments));return this instanceof o?lM(r,s.length,s):r.apply(t,s)};return nM(n)&&(o.prototype=n),o}});var bE=h(()=>{"use strict";var cM=V(),_E=yE();cM({target:"Function",proto:!0,forced:Function.bind!==_E},{bind:_E})});var EE=h((aG,wE)=>{"use strict";bE();var uM=it();wE.exports=uM("Function","bind")});var AE=h((sG,xE)=>{"use strict";var dM=Fe(),fM=EE(),Iu=Function.prototype;xE.exports=function(e){var t=e.bind;return e===Iu||dM(Iu,e)&&t===Iu.bind?fM:t}});var IE=h((lG,SE)=>{"use strict";var pM=AE();SE.exports=pM});var TE=h((cG,kE)=>{kE.exports=IE()});function Ci(e,t){ue.__h&&ue.__h(Q,e,xi||t),xi=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function St(e){return xi=1,hM(dx,e)}function hM(e,t,r){var n=Ci(Tr++,2);if(n.t=e,!n.__c&&(n.__=[dx(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=Q,!Q.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Gu.default)(d=n.__c.__H.__).call(d,function(p){return!!p.__c});if((0,sx.default)(u).call(u,function(p){return!p.__N}))return!o||o.call(this,s,l,c);var f=n.__c.props!==s;return(0,we.default)(u).call(u,function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),o&&o.call(this,s,l,c)||f};Q.__f=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.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)},Q.shouldComponentUpdate=i}return n.__N||n.__}function lr(e,t){var r=Ci(Tr++,3);!ue.__s&&Xu(r.__H,t)&&(r.__=e,r.u=t,Q.__H.__h.push(r))}function mM(e,t){var r=Ci(Tr++,4);!ue.__s&&Xu(r.__H,t)&&(r.__=e,r.u=t,Q.__h.push(r))}function kr(e){return xi=5,ux(function(){return{current:e}},[])}function ux(e,t){var r=Ci(Tr++,7);return Xu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ot(e,t){return xi=8,ux(function(){return e},t)}function vM(e){var t=Q.context[e.__c],r=Ci(Tr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function gM(){for(var e;e=cx.shift();)if(e.__P&&e.__H)try{var t,r;(0,we.default)(t=e.__H.__h).call(t,ua),(0,we.default)(r=e.__H.__h).call(r,Lu),e.__H.__h=[]}catch(n){e.__H.__h=[],ue.__e(n,e.__v)}}function yM(e){var t,r=function(){clearTimeout(n),LE&&cancelAnimationFrame(t),(0,Et.default)(e)},n=(0,Et.default)(r,100);LE&&(t=requestAnimationFrame(r))}function ua(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function Lu(e){var t=Q;e.__c=e.__(),Q=t}function Xu(e,t){return!e||e.length!==t.length||(0,ya.default)(t).call(t,function(r,n){return r!==e[n]})}function dx(e,t){return typeof t=="function"?t(e):t}function w(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:--_M,__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 C.vnode&&C.vnode(c),c}function xM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uu(){throw new Error("setTimeout has not been defined")}function ju(){throw new Error("clearTimeout has not been defined")}function px(e){if(gt===Et.default)return(0,Et.default)(e,0);if((gt===Uu||!gt)&&Et.default)return gt=Et.default,(0,Et.default)(e,0);try{return gt(e,0)}catch(t){try{return gt.call(null,e,0)}catch(r){return gt.call(this,e,0)}}}function AM(e){if(yt===clearTimeout)return clearTimeout(e);if((yt===ju||!yt)&&clearTimeout)return yt=clearTimeout,clearTimeout(e);try{return yt(e)}catch(t){try{return yt.call(null,e)}catch(r){return yt.call(this,e)}}}function SM(){!en||!cr||(en=!1,cr.length?Ft=(0,Ea.default)(cr).call(cr,Ft):da=-1,Ft.length&&hx())}function hx(){if(!en){var e=px(SM);en=!0;for(var t=Ft.length;t;){for(cr=Ft,Ft=[];++da<t;)cr&&cr[da].run();da=-1,t=Ft.length}cr=null,en=!1,AM(e)}}function mx(e,t){this.fun=e,this.array=t}function Bt(){}function TM(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 RM(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 NM(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function yx(e){return(0,Qu.default)(e).call(e)}function DM(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Mu(e,t){return(0,Rr.default)(e).call(e,t)}function Ie(e,t){return e.charCodeAt(t)|0}function Ai(e,t,r){return(0,Ku.default)(e).call(e,t,r)}function _t(e){return e.length}function rd(e){return e.length}function sa(e,t){return t.push(e),e}function qM(e,t){return(0,Ei.default)(e).call(e,t).join("")}function Sa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Aa,column:nn,length:a,return:""}}function yi(e,t){return PM(Sa("",null,null,"",null,null,0),e,{length:-e.length},t)}function LM(){return me}function UM(){return me=$e>0?Ie(an,--$e):0,nn--,me===10&&(nn=1,Aa--),me}function Ye(){return me=$e<_x?Ie(an,$e++):0,nn++,me===10&&(nn=1,Aa++),me}function xt(){return Ie(an,$e)}function fa(){return $e}function Oi(e,t){return Ai(an,e,t)}function Si(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 bx(e){return Aa=nn=1,_x=_t(an=e),$e=0,[]}function wx(e){return an="",e}function pa(e){return yx(Oi($e-1,Fu(e===91?e+2:e===40?e+1:e)))}function jM(e){for(;(me=xt())&&me<33;)Ye();return Si(e)>2||Si(me)>3?"":" "}function MM(e,t){for(;--t&&Ye()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Oi(e,fa()+(t<6&&xt()==32&&Ye()==32))}function Fu(e){for(;Ye();)switch(me){case e:return $e;case 34:case 39:e!==34&&e!==39&&Fu(me);break;case 40:e===41&&Fu(e);break;case 92:Ye();break}return $e}function FM(e,t){for(;Ye()&&e+me!==57&&!(e+me===84&&xt()===47););return"/*"+Oi(t,$e-1)+"*"+xa(e===47?e:Ye())}function BM(e){for(;!Si(xt());)Ye();return Oi(e,$e)}function $M(e){return wx(ha("",null,null,null,[""],e=bx(e),0,[0],e))}function ha(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Ye()){case 40:if(m!=108&&Ie(y,u-1)==58){Mu(y+=$(pa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=pa(b);break;case 9:case 10:case 13:case 32:y+=jM(m);break;case 92:y+=MM(fa()-1,7);continue;case 47:switch(xt()){case 42:case 47:sa(JM(FM(Ye(),fa()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=_t(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:p>0&&_t(y)-u&&sa(p>32?jE(y+";",n,r,u-1):jE($(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(sa(R=UE(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)ha(y,t,R,R,k,o,u,s,O);else switch(f===99&&Ie(y,3)===110?100:f){case 100:case 109:case 115:ha(e,R,R,n&&sa(UE(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:ha(y,R,R,R,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+_t(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UM()==125)continue}switch(y+=xa(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(_t(y)-1)*v,v=1;break;case 64:xt()===45&&(y+=pa(Ye())),f=xt(),d=u=_t(E=y+=BM(fa())),b++;break;case 45:m===45&&_t(y)==2&&(g=0)}}return o}function UE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=rd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ai(e,u+1,u=OM(g=a[m])),E=e;v<p;++v)(E=yx(g>0?f[v]+" "+b:$(b,/&\f/g,f[v])))&&(l[_++]=E);return Sa(e,t,r,i===0?ed:s,l,c,d)}function JM(e,t,r){return Sa(e,t,r,Zu,xa(LM()),Ai(e,2,-2),0)}function jE(e,t,r,n){return Sa(e,t,r,td,Ai(e,0,n),Ai(e,n+1,-1),n)}function tn(e,t){for(var r="",n=rd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function HM(e,t,r,n){switch(e.type){case CM:case td:return e.return=e.return||e.value;case Zu:return"";case gx:return e.return=e.value+"{"+tn(e.children,n)+"}";case ed:e.value=e.props.join(",")}return _t(r=tn(e.children,n))?e.return=e.value+"{"+r+"}":""}function VM(e){var t=rd(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 zM(e){return function(t){t.root||(t=t.return)&&e(t)}}function xx(e,t){switch(NM(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+ba+e+qe+e+e;case 6828:case 4268:return U+e+qe+e+e;case 6165:return U+e+qe+"flex-"+e+e;case 5187:return U+e+$(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return U+e+qe+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return U+e+qe+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+qe+$(e,"shrink","negative")+e;case 5292:return U+e+qe+$(e,"basis","preferred-size")+e;case 6060:return U+"box-"+$(e,"-grow","")+U+e+qe+$(e,"grow","positive")+e;case 4554:return U+$(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,U+"$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(_t(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+ba+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mu(e,"stretch")?xx($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,_t(e)-3-(~Mu(e,"!important")&&10))){case 107:return $(e,":",":"+U)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(Ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+qe+e+e}return e}function Sx(){if(BE)return la.exports;BE=1;let e=Sx();return la.exports={default:e},la.exports.default=e,la.exports}function Ii(e,t,r){var n,i="";return(0,we.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function a2(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 l2(e){var t=(0,lx.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 bt={name:i.name,styles:i.styles,next:bt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)bt={name:a.name,styles:a.styles,next:bt},a=a.next;var s=o.styles+";";return s}return d2(e,t,r)}case"function":{if(e!==void 0){var l=bt,c=r(e);return bt=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 d2(e,t,r){var n="";if((0,wi.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]+"}":$E(s)&&(n+=Ru(o)+":"+JE(o,s)+";")}else if((0,wi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)$E(a[l])&&(n+=Ru(o)+":"+JE(o,a[l])+";");else{var c=ki(e,t,a);switch(o){case"animation":case"animationName":{n+=Ru(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function ur(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="";bt=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]}HE.lastIndex=0;for(var c="",d;(d=HE.exec(i))!==null;)c+="-"+d[1];var u=a2(i)+c;return{name:u,styles:i,next:bt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ur(t)}function b2(e,t,r){var n=[],i=Ii(e,n,r);return n.length<2?r:i+t(n)}function ad(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=St(e());return lr(()=>{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 J2(){return te&&document.body.contains(te)||(te=document.createElement("iframe"),te.style.position="fixed",te.style.left="0",te.style.top="0",te.style.width="100vw",te.style.height="100vh",te.style.zIndex="99999999",te.style.border="none",te.style.background="transparent",te.setAttribute("allowtransparency","true"),te.style.display="none",document.body.appendChild(te),Ju=new Promise(e=>{_i=e}),te.onload=()=>{var e;if(!((e=te==null?void 0:te.contentDocument)!=null&&e.head)){console.error("[Modal] Persistent iframe loaded, but document or head is not available.");return}console.log("[Modal] Persistent iframe content loaded."),$u=Ax({key:"iframepersistentcss",container:te.contentDocument.head,prepend:!0}),Nu&&Nu(),Nu=V2(te),_i==null||_i(),_i=null},te.onerror=()=>{console.error("[Modal] Persistent iframe failed to load.")},te.src="about:blank"),te}function H2(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 Dx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=H2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function V2(e){let t=()=>Dx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function G2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=pt(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=z2(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ne("img",q(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||{})}))}):w("div",q(T({},a),{ref:c,className:i,children:r}))}function K2(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?Ne(i.type,q(T({},i.props),{style:q(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?Ne(e.type,q(T({},e.props),{style:q(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 Z2(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 pF(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function Vx(e){return(0,Qu.default)(e).call(e)}function hF(e,t){return(e=t.exec(e))?e[0]:e}function M(e,t,r){return e.replace(t,r)}function Vu(e,t){return(0,Rr.default)(e).call(e,t)}function ke(e,t){return e.charCodeAt(t)|0}function Ti(e,t,r){return(0,Ku.default)(e).call(e,t,r)}function wt(e){return e.length}function dd(e){return e.length}function ca(e,t){return t.push(e),e}function mF(e,t){return(0,Ei.default)(e).call(e,t).join("")}function Oa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ca,column:on,length:a,return:""}}function bi(e,t){return fF(Oa("",null,null,"",null,null,0),e,{length:-e.length},t)}function vF(){return ve}function gF(){return ve=Je>0?ke(ln,--Je):0,on--,ve===10&&(on=1,Ca--),ve}function Qe(){return ve=Je<zx?ke(ln,Je++):0,on++,ve===10&&(on=1,Ca++),ve}function At(){return ke(ln,Je)}function ma(){return Je}function Pi(e,t){return Ti(ln,e,t)}function Ri(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 Gx(e){return Ca=on=1,zx=wt(ln=e),Je=0,[]}function Kx(e){return ln="",e}function va(e){return Vx(Pi(Je-1,zu(e===91?e+2:e===40?e+1:e)))}function yF(e){for(;(ve=At())&&ve<33;)Qe();return Ri(e)>2||Ri(ve)>3?"":" "}function _F(e,t){for(;--t&&Qe()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Pi(e,ma()+(t<6&&At()==32&&Qe()==32))}function zu(e){for(;Qe();)switch(ve){case e:return Je;case 34:case 39:e!==34&&e!==39&&zu(ve);break;case 40:e===41&&zu(e);break;case 92:Qe();break}return Je}function bF(e,t){for(;Qe()&&e+ve!==57&&!(e+ve===84&&At()===47););return"/*"+Pi(t,Je-1)+"*"+Ra(e===47?e:Qe())}function wF(e){for(;!Ri(At());)Qe();return Pi(e,Je)}function EF(e){return Kx(ga("",null,null,null,[""],e=Gx(e),0,[0],e))}function ga(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Qe()){case 40:if(m!=108&&ke(y,u-1)==58){Vu(y+=M(va(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=va(b);break;case 9:case 10:case 13:case 32:y+=yF(m);break;case 92:y+=_F(ma()-1,7);continue;case 47:switch(At()){case 42:case 47:ca(xF(bF(Qe(),ma()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=wt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=M(y,/\f/g,"")),p>0&&wt(y)-u&&ca(p>32?ix(y+";",n,r,u-1):ix(M(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ca(R=nx(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)ga(y,t,R,R,k,o,u,s,O);else switch(f===99&&ke(y,3)===110?100:f){case 100:case 108:case 109:case 115:ga(e,R,R,n&&ca(nx(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:ga(y,R,R,R,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+wt(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&gF()==125)continue}switch(y+=Ra(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(wt(y)-1)*v,v=1;break;case 64:At()===45&&(y+=va(Qe())),f=At(),d=u=wt(E=y+=wF(ma())),b++;break;case 45:m===45&&wt(y)==2&&(g=0)}}return o}function nx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=dd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ti(e,u+1,u=dF(g=a[m])),E=e;v<p;++v)(E=Vx(g>0?f[v]+" "+b:M(b,/&\f/g,f[v])))&&(l[_++]=E);return Oa(e,t,r,i===0?cd:s,l,c,d)}function xF(e,t,r){return Oa(e,t,r,Jx,Ra(vF()),Ti(e,2,-2),0)}function ix(e,t,r,n){return Oa(e,t,r,ud,Ti(e,0,n),Ti(e,n+1,-1),n)}function rn(e,t){for(var r="",n=dd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function AF(e,t,r,n){switch(e.type){case uF:if(e.children.length)break;case cF:case ud:return e.return=e.return||e.value;case Jx:return"";case Hx:return e.return=e.value+"{"+rn(e.children,n)+"}";case cd:e.value=e.props.join(",")}return wt(r=rn(e.children,n))?e.return=e.value+"{"+r+"}":""}function SF(e){var t=dd(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 IF(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wx(e,t){switch(pF(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+wa+e+Le+e+e;case 6828:case 4268:return j+e+Le+e+e;case 6165:return j+e+Le+"flex-"+e+e;case 5187:return j+e+M(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return j+e+Le+"flex-item-"+M(e,/flex-|-self/,"")+e;case 4675:return j+e+Le+"flex-line-pack"+M(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+Le+M(e,"shrink","negative")+e;case 5292:return j+e+Le+M(e,"basis","preferred-size")+e;case 6060:return j+"box-"+M(e,"-grow","")+j+e+Le+M(e,"grow","positive")+e;case 4554:return j+M(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return M(M(M(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return M(e,/(.+)-inline(.+)/,j+"$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(wt(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return M(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+wa+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch")?Wx(M(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,wt(e)-3-(~Vu(e,"!important")&&10))){case 107:return M(e,":",":"+j)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(ke(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Le+e+e}return e}function ax(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Du(e,t,r){var n=[],i=Ii(e,n,r);return n.length<2?r:i+t(n)}var Gu,sx,we,Ea,ya,Et,Ku,wi,fG,_a,Wu,Rr,Ei,lx,pG,Yu,Qu,qu,Tr,Q,ku,RE,xi,cx,ue,CE,OE,PE,NE,DE,qE,LE,_M,Tu,bM,wM,EM,fx,de,gt,yt,Ft,en,cr,da,IM,Te,kM,vx,qe,ba,U,Zu,ed,td,CM,gx,OM,xa,PM,Aa,nn,_x,$e,me,an,GM,KM,WM,ME,YM,QM,XM,ZM,e2,Ex,t2,FE,r2,n2,i2,Ax,la,BE,o2,nd,Ia,s2,c2,u2,Ix,$E,Ru,JE,HE,bt,f2,kx,Tx,VE,p2,id,h2,od,ka,zE,GE,m2,v2,g2,KE,y2,_2,w2,E2,Cu,WE,Ou,Pu,x2,YE,A2,QE,S2,XE,I2,ZE,k2,T2,R2,C2,O2,ex,P2,N2,D2,q2,L2,tx,U2,j2,M2,F2,Rx,Cx,Ox,Bu,B2,Px,Nx,$2,te,$u,_i,Ju,Nu,sd,z2,qx,Lx,Ux,W2,Y2,Q2,Hu,X2,jx,sn,Ta,rx,Mt,Mx,Zr,eF,tF,rF,nF,iF,re,oF,aF,Fx,Bx,$x,ld,sF,lF,Le,wa,j,Jx,cd,ud,cF,Hx,uF,dF,Ra,fF,Ca,on,zx,Je,ve,ln,kF,TF,RF,ox,CF,OF,PF,NF,DF,qF,LF,UF,Yx,jF,MF,Qx,Ni=I(()=>{"use strict";Lr();Gu=ae(tv(),1),sx=ae(dv(),1),we=ae(Av(),1),Ea=ae(Mv(),1),ya=ae(Kv(),1),Et=ae(fg(),1);Oo();Oo();Ku=ae(Wg(),1),wi=ae(ry(),1),fG=ae(by(),1),_a=ae(Ny(),1),Wu=ae(Kb(),1),Rr=ae(i0(),1),Ei=ae(p0(),1),lx=ae(b0(),1),pG=ae(Lw(),1),Yu=ae(Yw(),1),Qu=ae(pE(),1);Au();Au();qu=ae(TE(),1),xi=0,cx=[],ue=C,CE=ue.__b,OE=ue.__r,PE=ue.diffed,NE=ue.__c,DE=ue.unmount,qE=ue.__;ue.__b=function(e){Q=null,CE&&CE(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qE&&qE(e,t)},ue.__r=function(e){var t,r,n;OE&&OE(e),Tr=0;var i=(Q=e.__c).__H;i&&(ku===Q?(i.__h=[],Q.__h=[],(0,we.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,we.default)(r=i.__h).call(r,ua),(0,we.default)(n=i.__h).call(n,Lu),i.__h=[],Tr=0)),ku=Q},ue.diffed=function(e){var t;PE&&PE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(cx.push(r)!==1&&RE===ue.requestAnimationFrame||((RE=ue.requestAnimationFrame)||yM)(gM)),(0,we.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),ku=Q=null},ue.__c=function(e,t){(0,ya.default)(t).call(t,function(r){try{var n,i;(0,we.default)(n=r.__h).call(n,ua),r.__h=(0,Gu.default)(i=r.__h).call(i,function(o){return!o.__||Lu(o)})}catch(o){(0,ya.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ue.__e(o,r.__v)}}),NE&&NE(e,t)},ue.unmount=function(e){var t;DE&&DE(e);var r,n=e.__c;n&&n.__H&&((0,we.default)(t=n.__H.__).call(t,function(i){try{ua(i)}catch(o){r=o}}),n.__H=void 0,r&&ue.__e(r,n.__v))};LE=typeof requestAnimationFrame=="function";_M=0;Tu={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto",minHeight:"250px"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},bM=`
|
|
19
|
+
`;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{function a(l){return x(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,f)=>{let p=new XMLHttpRequest;p.open("GET",c),p.responseType="arraybuffer",p.addEventListener("load",()=>u(p.response)),p.addEventListener("error",f),p.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},o=()=>{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"),window.fetch=r};return n(),i(),o}var Rp=k(()=>{"use strict"});var Cp=k(()=>{"use strict"});var Op=k(()=>{"use strict";N();ll()});var Pp=k(()=>{"use strict";se()});var fo,_l=k(()=>{"use strict";Cp();Op();se();Pp();N();fo=new mt});function Dt(e,t){for(var r in t)e[r]=t[r];return e}function Sl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ne(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?vo.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 ho(e,a,n,i,null)}function ho(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?++Lp:i,__i:-1,__u:0};return i==null&&C.vnode!=null&&C.vnode(o),o}function Ke(e){return e.children}function Ge(e,t){this.props=e,this.context=t}function Dr(e,t){if(t==null)return e.__?Dr(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"?Dr(e):null}function $p(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 $p(e)}}function El(e){(!e.__d&&(e.__d=!0)&&gr.push(e)&&!mo.__r++||Np!==C.debounceRendering)&&((Np=C.debounceRendering)||Up)(mo)}function mo(){for(var e,t,r,n,i,o,a,s=1;gr.length;)gr.length>s&&gr.sort(jp),e=gr.shift(),s=gr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Dt({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),Il(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Dr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Vp(o,r,a),r.__e!=i&&$p(r)));mo.__r=0}function Jp(e,t,r,n,i,o,a,s,l,c,d){var u,f,p,m,g,_,v=n&&n.__k||Bp,b=t.length;for(l=rk(r,t,v,l,b),u=0;u<b;u++)(p=r.__k[u])!=null&&(f=p.__i===-1?Ln:v[p.__i]||Ln,p.__i=u,_=Il(e,p,f,i,o,a,s,l,c,d),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&kl(f.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),4&p.__u||f.__k===p.__k?l=Hp(p,l,e):typeof p.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),p.__u&=-7);return r.__e=g,l}function rk(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,f=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+f,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ho(null,a,null,null,null):Un(a)?ho(Ke,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ho(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=nk(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?f--:i<d&&f++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,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=Dr(s)),Gp(s,s));return n}function Hp(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=Hp(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Dr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function jn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){jn(r,t)}):t.push(e)),t}function nk(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 Dp(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||tk.test(t)?r:r+"px"}function po(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||Dp(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Dp(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Mp,"$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=Al,e.addEventListener(t,o?wl:bl,o)):e.removeEventListener(t,o?wl:bl,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 qp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Al++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function Il(e,t,r,n,i,o,a,s,l,c){var d,u,f,p,m,g,_,v,b,E,I,O,T,y,q,tt,Or,rt=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof rt=="function")try{if(v=t.props,b="prototype"in rt&&rt.prototype.render,E=(d=rt.contextType)&&n[d.__c],I=d?E?E.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new rt(v,I):(t.__c=u=new Ge(v,I),u.constructor=rt,u.render=ok),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=I,u.__n=n,f=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&rt.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Dt({},u.__s)),Dt(u.__s,rt.getDerivedStateFromProps(v,u.__s))),p=u.props,m=u.state,u.__v=t,f)b&&rt.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&rt.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,I),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,I)===!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(hr){hr&&(hr.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,I),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,g)})}if(u.context=I,u.props=v,u.__P=e,u.__e=!1,T=C.__r,y=0,b){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),q=0;q<u._sb.length;q++)u.__h.push(u._sb[q]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++y<25);u.state=u.__s,u.getChildContext!=null&&(n=Dt(Dt({},n),u.getChildContext())),b&&!f&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(p,m)),tt=d,d!=null&&d.type===Ke&&d.key==null&&(tt=zp(d.props.children)),s=Jp(e,Un(tt)?tt:[tt],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(hr){if(t.__v=null,l||o!=null)if(hr.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(Or=o.length;Or--;)Sl(o[Or]);else t.__e=r.__e,t.__k=r.__k;C.__e(hr,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=ik(r.__e,t,r,n,i,o,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function Vp(e,t,r){for(var n=0;n<r.length;n++)kl(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){C.__e(o,i.__v)}})}function zp(e){return typeof e!="object"||e==null?e:Un(e)?e.map(zp):Dt({},e)}function ik(e,t,r,n,i,o,a,s,l){var c,d,u,f,p,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((p=o[c])&&"setAttribute"in p==!!b&&(b?p.localName==b:p.nodeType==3)){e=p,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(C.__m&&C.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&vo.call(e.childNodes),_=r.props||Ln,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(p=e.attributes[c]).name]=p.value;for(c in _)if(p=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;po(e,c,null,p,i)}}for(c in v)p=v[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?m=p:c=="checked"?g=p:s&&typeof p!="function"||_[c]===p||po(e,c,p,_[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=""),Jp(t.type==="template"?e.content:e,Un(f)?f:[f],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Dr(r,0),s,l),o!=null)for(c=o.length;c--;)Sl(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])&&po(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&po(e,c,g,_[c],i))}return e}function kl(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){C.__e(i,r)}}function Gp(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||kl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Gp(n[i],t,r||typeof e.type!="function");r||Sl(e.__e),e.__c=e.__=e.__e=void 0}function ok(e,t,r){return this.constructor(e,r)}function qr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Il(t,e=(!n&&r||t).__k=Ne(Ke,null,[e]),i||Ln,Ln,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?vo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Vp(o,e,a)}function yr(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,El(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"+Fp++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var vo,C,Lp,xl,gr,Np,Up,jp,Mp,Al,bl,wl,Fp,Ln,Bp,tk,Un,Lr=k(()=>{Ln={},Bp=[],tk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;vo=Bp.slice,C={__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}},Lp=0,xl=function(e){return e!=null&&e.constructor==null},Ge.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Dt({},this.state),typeof e=="function"&&(e=e(Dt({},r),this.props)),e&&Dt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),El(this))},Ge.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),El(this))},Ge.prototype.render=Ke,gr=[],Up=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,jp=function(e,t){return e.__v.__b-t.__v.__b},mo.__r=0,Mp=/(PointerCapture)$|Capture$/i,Al=0,bl=qp(!1),wl=qp(!0),Fp=0});var ie=h((BJ,Kp)=>{"use strict";Kp.exports=function(e){try{return!!e()}catch(t){return!0}}});var Ur=h(($J,Wp)=>{"use strict";var ak=ie();Wp.exports=!ak(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var he=h((JJ,Xp)=>{"use strict";var Yp=Ur(),Qp=Function.prototype,Tl=Qp.call,sk=Yp&&Qp.bind.bind(Tl,Tl);Xp.exports=Yp?sk:function(e){return function(){return Tl.apply(e,arguments)}}});var Fe=h((HJ,Zp)=>{"use strict";var lk=he();Zp.exports=lk({}.isPrototypeOf)});var oe=h((Rl,eh)=>{"use strict";var Mn=function(e){return e&&e.Math===Math&&e};eh.exports=Mn(typeof globalThis=="object"&&globalThis)||Mn(typeof window=="object"&&window)||Mn(typeof self=="object"&&self)||Mn(typeof global=="object"&&global)||Mn(typeof Rl=="object"&&Rl)||function(){return this}()||Function("return this")()});var Cl=h((VJ,ih)=>{"use strict";var ck=Ur(),nh=Function.prototype,th=nh.apply,rh=nh.call;ih.exports=typeof Reflect=="object"&&Reflect.apply||(ck?rh.bind(th):function(){return rh.apply(th,arguments)})});var qt=h((zJ,ah)=>{"use strict";var oh=he(),uk=oh({}.toString),dk=oh("".slice);ah.exports=function(e){return dk(uk(e),8,-1)}});var Fn=h((GJ,sh)=>{"use strict";var fk=qt(),pk=he();sh.exports=function(e){if(fk(e)==="Function")return pk(e)}});var Se=h((KJ,lh)=>{"use strict";var Ol=typeof document=="object"&&document.all;lh.exports=typeof Ol=="undefined"&&Ol!==void 0?function(e){return typeof e=="function"||e===Ol}:function(e){return typeof e=="function"}});var Be=h((WJ,ch)=>{"use strict";var hk=ie();ch.exports=!hk(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ct=h((YJ,uh)=>{"use strict";var mk=Ur(),go=Function.prototype.call;uh.exports=mk?go.bind(go):function(){return go.apply(go,arguments)}});var Pl=h(ph=>{"use strict";var dh={}.propertyIsEnumerable,fh=Object.getOwnPropertyDescriptor,vk=fh&&!dh.call({1:2},1);ph.f=vk?function(t){var r=fh(this,t);return!!r&&r.enumerable}:dh});var Bn=h((XJ,hh)=>{"use strict";hh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var yo=h((ZJ,mh)=>{"use strict";var gk=he(),yk=ie(),_k=qt(),Nl=Object,bk=gk("".split);mh.exports=yk(function(){return!Nl("z").propertyIsEnumerable(0)})?function(e){return _k(e)==="String"?bk(e,""):Nl(e)}:Nl});var _r=h((eH,vh)=>{"use strict";vh.exports=function(e){return e==null}});var br=h((tH,gh)=>{"use strict";var wk=_r(),Ek=TypeError;gh.exports=function(e){if(wk(e))throw new Ek("Can't call method on "+e);return e}});var tr=h((rH,yh)=>{"use strict";var xk=yo(),Ak=br();yh.exports=function(e){return xk(Ak(e))}});var be=h((nH,_h)=>{"use strict";var Sk=Se();_h.exports=function(e){return typeof e=="object"?e!==null:Sk(e)}});var vt=h((iH,bh)=>{"use strict";bh.exports={}});var jr=h((oH,Eh)=>{"use strict";var Dl=vt(),ql=oe(),Ik=Se(),wh=function(e){return Ik(e)?e:void 0};Eh.exports=function(e,t){return arguments.length<2?wh(Dl[e])||wh(ql[e]):Dl[e]&&Dl[e][t]||ql[e]&&ql[e][t]}});var _o=h((aH,Sh)=>{"use strict";var kk=oe(),xh=kk.navigator,Ah=xh&&xh.userAgent;Sh.exports=Ah?String(Ah):""});var wo=h((sH,Oh)=>{"use strict";var Ch=oe(),Ll=_o(),Ih=Ch.process,kh=Ch.Deno,Th=Ih&&Ih.versions||kh&&kh.version,Rh=Th&&Th.v8,ut,bo;Rh&&(ut=Rh.split("."),bo=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!bo&&Ll&&(ut=Ll.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=Ll.match(/Chrome\/(\d+)/),ut&&(bo=+ut[1])));Oh.exports=bo});var Ul=h((lH,Nh)=>{"use strict";var Ph=wo(),Tk=ie(),Rk=oe(),Ck=Rk.String;Nh.exports=!!Object.getOwnPropertySymbols&&!Tk(function(){var e=Symbol("symbol detection");return!Ck(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ph&&Ph<41})});var jl=h((cH,Dh)=>{"use strict";var Ok=Ul();Dh.exports=Ok&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ml=h((uH,qh)=>{"use strict";var Pk=jr(),Nk=Se(),Dk=Fe(),qk=jl(),Lk=Object;qh.exports=qk?function(e){return typeof e=="symbol"}:function(e){var t=Pk("Symbol");return Nk(t)&&Dk(t.prototype,Lk(e))}});var $n=h((dH,Lh)=>{"use strict";var Uk=String;Lh.exports=function(e){try{return Uk(e)}catch(t){return"Object"}}});var wr=h((fH,Uh)=>{"use strict";var jk=Se(),Mk=$n(),Fk=TypeError;Uh.exports=function(e){if(jk(e))return e;throw new Fk(Mk(e)+" is not a function")}});var Eo=h((pH,jh)=>{"use strict";var Bk=wr(),$k=_r();jh.exports=function(e,t){var r=e[t];return $k(r)?void 0:Bk(r)}});var Fh=h((hH,Mh)=>{"use strict";var Fl=ct(),Bl=Se(),$l=be(),Jk=TypeError;Mh.exports=function(e,t){var r,n;if(t==="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e))||Bl(r=e.valueOf)&&!$l(n=Fl(r,e))||t!=="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e)))return n;throw new Jk("Can't convert object to primitive value")}});var Mr=h((mH,Bh)=>{"use strict";Bh.exports=!0});var Hh=h((vH,Jh)=>{"use strict";var $h=oe(),Hk=Object.defineProperty;Jh.exports=function(e,t){try{Hk($h,e,{value:t,configurable:!0,writable:!0})}catch(r){$h[e]=t}return t}});var Jn=h((gH,Gh)=>{"use strict";var Vk=Mr(),zk=oe(),Gk=Hh(),Vh="__core-js_shared__",zh=Gh.exports=zk[Vh]||Gk(Vh,{});(zh.versions||(zh.versions=[])).push({version:"3.41.0",mode:Vk?"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 Jl=h((yH,Wh)=>{"use strict";var Kh=Jn();Wh.exports=function(e,t){return Kh[e]||(Kh[e]=t||{})}});var Fr=h((_H,Yh)=>{"use strict";var Kk=br(),Wk=Object;Yh.exports=function(e){return Wk(Kk(e))}});var We=h((bH,Qh)=>{"use strict";var Yk=he(),Qk=Fr(),Xk=Yk({}.hasOwnProperty);Qh.exports=Object.hasOwn||function(t,r){return Xk(Qk(t),r)}});var xo=h((wH,Xh)=>{"use strict";var Zk=he(),eT=0,tT=Math.random(),rT=Zk(1 .toString);Xh.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rT(++eT+tT,36)}});var De=h((EH,em)=>{"use strict";var nT=oe(),iT=Jl(),Zh=We(),oT=xo(),aT=Ul(),sT=jl(),Br=nT.Symbol,Hl=iT("wks"),lT=sT?Br.for||Br:Br&&Br.withoutSetter||oT;em.exports=function(e){return Zh(Hl,e)||(Hl[e]=aT&&Zh(Br,e)?Br[e]:lT("Symbol."+e)),Hl[e]}});var im=h((xH,nm)=>{"use strict";var cT=ct(),tm=be(),rm=Ml(),uT=Eo(),dT=Fh(),fT=De(),pT=TypeError,hT=fT("toPrimitive");nm.exports=function(e,t){if(!tm(e)||rm(e))return e;var r=uT(e,hT),n;if(r){if(t===void 0&&(t="default"),n=cT(r,e,t),!tm(n)||rm(n))return n;throw new pT("Can't convert object to primitive value")}return t===void 0&&(t="number"),dT(e,t)}});var Vl=h((AH,om)=>{"use strict";var mT=im(),vT=Ml();om.exports=function(e){var t=mT(e,"string");return vT(t)?t:t+""}});var Gl=h((SH,sm)=>{"use strict";var gT=oe(),am=be(),zl=gT.document,yT=am(zl)&&am(zl.createElement);sm.exports=function(e){return yT?zl.createElement(e):{}}});var Kl=h((IH,lm)=>{"use strict";var _T=Be(),bT=ie(),wT=Gl();lm.exports=!_T&&!bT(function(){return Object.defineProperty(wT("div"),"a",{get:function(){return 7}}).a!==7})});var Wl=h(um=>{"use strict";var ET=Be(),xT=ct(),AT=Pl(),ST=Bn(),IT=tr(),kT=Vl(),TT=We(),RT=Kl(),cm=Object.getOwnPropertyDescriptor;um.f=ET?cm:function(t,r){if(t=IT(t),r=kT(r),RT)try{return cm(t,r)}catch(n){}if(TT(t,r))return ST(!xT(AT.f,t,r),t[r])}});var fm=h((TH,dm)=>{"use strict";var CT=ie(),OT=Se(),PT=/#|\.prototype\./,Hn=function(e,t){var r=DT[NT(e)];return r===LT?!0:r===qT?!1:OT(t)?CT(t):!!t},NT=Hn.normalize=function(e){return String(e).replace(PT,".").toLowerCase()},DT=Hn.data={},qT=Hn.NATIVE="N",LT=Hn.POLYFILL="P";dm.exports=Hn});var Vn=h((RH,hm)=>{"use strict";var pm=Fn(),UT=wr(),jT=Ur(),MT=pm(pm.bind);hm.exports=function(e,t){return UT(e),t===void 0?e:jT?MT(e,t):function(){return e.apply(t,arguments)}}});var Yl=h((CH,mm)=>{"use strict";var FT=Be(),BT=ie();mm.exports=FT&&BT(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Lt=h((OH,vm)=>{"use strict";var $T=be(),JT=String,HT=TypeError;vm.exports=function(e){if($T(e))return e;throw new HT(JT(e)+" is not an object")}});var Ut=h(ym=>{"use strict";var VT=Be(),zT=Kl(),GT=Yl(),Ao=Lt(),gm=Vl(),KT=TypeError,Ql=Object.defineProperty,WT=Object.getOwnPropertyDescriptor,Xl="enumerable",Zl="configurable",ec="writable";ym.f=VT?GT?function(t,r,n){if(Ao(t),r=gm(r),Ao(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ec in n&&!n[ec]){var i=WT(t,r);i&&i[ec]&&(t[r]=n.value,n={configurable:Zl in n?n[Zl]:i[Zl],enumerable:Xl in n?n[Xl]:i[Xl],writable:!1})}return Ql(t,r,n)}:Ql:function(t,r,n){if(Ao(t),r=gm(r),Ao(n),zT)try{return Ql(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new KT("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Er=h((NH,_m)=>{"use strict";var YT=Be(),QT=Ut(),XT=Bn();_m.exports=YT?function(e,t,r){return QT.f(e,t,XT(1,r))}:function(e,t,r){return e[t]=r,e}});var V=h((DH,wm)=>{"use strict";var zn=oe(),ZT=Cl(),eR=Fn(),tR=Se(),rR=Wl().f,nR=fm(),$r=vt(),iR=Vn(),Jr=Er(),bm=We();Jn();var oR=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 ZT(e,this,arguments)};return t.prototype=e.prototype,t};wm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?zn:i?zn[r]:zn[r]&&zn[r].prototype,s=n?$r:$r[r]||Jr($r,r,{})[r],l=s.prototype,c,d,u,f,p,m,g,_,v;for(f in t)c=nR(n?f:r+(i?".":"#")+f,e.forced),d=!c&&a&&bm(a,f),m=s[f],d&&(e.dontCallGetSet?(v=rR(a,f),g=v&&v.value):g=a[f]),p=d&&g?g:t[f],!(!c&&!o&&typeof m==typeof p)&&(e.bind&&d?_=iR(p,zn):e.wrap&&d?_=oR(p):o&&tR(p)?_=eR(p):_=p,(e.sham||p&&p.sham||m&&m.sham)&&Jr(_,"sham",!0),Jr(s,f,_),o&&(u=r+"Prototype",bm($r,u)||Jr($r,u,{}),Jr($r[u],f,p),e.real&&l&&(c||!l[f])&&Jr(l,f,p)))}});var xm=h((qH,Em)=>{"use strict";var aR=Math.ceil,sR=Math.floor;Em.exports=Math.trunc||function(t){var r=+t;return(r>0?sR:aR)(r)}});var Gn=h((LH,Am)=>{"use strict";var lR=xm();Am.exports=function(e){var t=+e;return t!==t||t===0?0:lR(t)}});var tc=h((UH,Sm)=>{"use strict";var cR=Gn(),uR=Math.min;Sm.exports=function(e){var t=cR(e);return t>0?uR(t,9007199254740991):0}});var Hr=h((jH,Im)=>{"use strict";var dR=tc();Im.exports=function(e){return dR(e.length)}});var Kn=h((MH,km)=>{"use strict";var fR=qt();km.exports=Array.isArray||function(t){return fR(t)==="Array"}});var So=h((FH,Rm)=>{"use strict";var pR=De(),hR=pR("toStringTag"),Tm={};Tm[hR]="z";Rm.exports=String(Tm)==="[object z]"});var Vr=h((BH,Cm)=>{"use strict";var mR=So(),vR=Se(),Io=qt(),gR=De(),yR=gR("toStringTag"),_R=Object,bR=Io(function(){return arguments}())==="Arguments",wR=function(e,t){try{return e[t]}catch(r){}};Cm.exports=mR?Io:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=wR(t=_R(e),yR))=="string"?r:bR?Io(t):(n=Io(t))==="Object"&&vR(t.callee)?"Arguments":n}});var Pm=h(($H,Om)=>{"use strict";var ER=he(),xR=Se(),rc=Jn(),AR=ER(Function.toString);xR(rc.inspectSource)||(rc.inspectSource=function(e){return AR(e)});Om.exports=rc.inspectSource});var ic=h((JH,Um)=>{"use strict";var SR=he(),IR=ie(),Nm=Se(),kR=Vr(),TR=jr(),RR=Pm(),Dm=function(){},qm=TR("Reflect","construct"),nc=/^\s*(?:class|function)\b/,CR=SR(nc.exec),OR=!nc.test(Dm),Wn=function(t){if(!Nm(t))return!1;try{return qm(Dm,[],t),!0}catch(r){return!1}},Lm=function(t){if(!Nm(t))return!1;switch(kR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return OR||!!CR(nc,RR(t))}catch(r){return!0}};Lm.sham=!0;Um.exports=!qm||IR(function(){var e;return Wn(Wn.call)||!Wn(Object)||!Wn(function(){e=!0})||e})?Lm:Wn});var Bm=h((HH,Fm)=>{"use strict";var jm=Kn(),PR=ic(),NR=be(),DR=De(),qR=DR("species"),Mm=Array;Fm.exports=function(e){var t;return jm(e)&&(t=e.constructor,PR(t)&&(t===Mm||jm(t.prototype))?t=void 0:NR(t)&&(t=t[qR],t===null&&(t=void 0))),t===void 0?Mm:t}});var oc=h((VH,$m)=>{"use strict";var LR=Bm();$m.exports=function(e,t){return new(LR(e))(t===0?0:t)}});var nr=h((zH,Hm)=>{"use strict";var UR=Vn(),jR=he(),MR=yo(),FR=Fr(),BR=Hr(),$R=oc(),Jm=jR([].push),rr=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 f=FR(l),p=MR(f),m=BR(p),g=UR(c,d),_=0,v=u||$R,b=t?v(l,m):r||a?v(l,0):void 0,E,I;m>_;_++)if((s||_ in p)&&(E=p[_],I=g(E,_,f),e))if(t)b[_]=I;else if(I)switch(e){case 3:return!0;case 5:return E;case 6:return _;case 2:Jm(b,E)}else switch(e){case 4:return!1;case 7:Jm(b,E)}return o?-1:n||i?i:b}};Hm.exports={forEach:rr(0),map:rr(1),filter:rr(2),some:rr(3),every:rr(4),find:rr(5),findIndex:rr(6),filterReject:rr(7)}});var Yn=h((GH,Vm)=>{"use strict";var JR=ie(),HR=De(),VR=wo(),zR=HR("species");Vm.exports=function(e){return VR>=51||!JR(function(){var t=[],r=t.constructor={};return r[zR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var zm=h(()=>{"use strict";var GR=V(),KR=nr().filter,WR=Yn(),YR=WR("filter");GR({target:"Array",proto:!0,forced:!YR},{filter:function(t){return KR(this,t,arguments.length>1?arguments[1]:void 0)}})});var ot=h((YH,Gm)=>{"use strict";var QR=oe(),XR=vt();Gm.exports=function(e,t){var r=XR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=QR[e],o=i&&i.prototype;return o&&o[t]}});var Wm=h((QH,Km)=>{"use strict";zm();var ZR=ot();Km.exports=ZR("Array","filter")});var Qm=h((XH,Ym)=>{"use strict";var eC=Fe(),tC=Wm(),ac=Array.prototype;Ym.exports=function(e){var t=e.filter;return e===ac||eC(ac,e)&&t===ac.filter?tC:t}});var Zm=h((ZH,Xm)=>{"use strict";var rC=Qm();Xm.exports=rC});var tv=h((e6,ev)=>{ev.exports=Zm()});var Qn=h((t6,rv)=>{"use strict";var nC=ie();rv.exports=function(e,t){var r=[][e];return!!r&&nC(function(){r.call(null,t||function(){return 1},1)})}});var nv=h(()=>{"use strict";var iC=V(),oC=nr().every,aC=Qn(),sC=aC("every");iC({target:"Array",proto:!0,forced:!sC},{every:function(t){return oC(this,t,arguments.length>1?arguments[1]:void 0)}})});var ov=h((i6,iv)=>{"use strict";nv();var lC=ot();iv.exports=lC("Array","every")});var sv=h((o6,av)=>{"use strict";var cC=Fe(),uC=ov(),sc=Array.prototype;av.exports=function(e){var t=e.every;return e===sc||cC(sc,e)&&t===sc.every?uC:t}});var cv=h((a6,lv)=>{"use strict";var dC=sv();lv.exports=dC});var dv=h((s6,uv)=>{uv.exports=cv()});var pv=h((l6,fv)=>{"use strict";var fC=nr().forEach,pC=Qn(),hC=pC("forEach");fv.exports=hC?[].forEach:function(t){return fC(this,t,arguments.length>1?arguments[1]:void 0)}});var mv=h(()=>{"use strict";var mC=V(),hv=pv();mC({target:"Array",proto:!0,forced:[].forEach!==hv},{forEach:hv})});var gv=h((d6,vv)=>{"use strict";mv();var vC=ot();vv.exports=vC("Array","forEach")});var _v=h((f6,yv)=>{"use strict";var gC=gv();yv.exports=gC});var bv=h(()=>{});var Ev=h((m6,wv)=>{"use strict";var yC=Vr(),_C=We(),bC=Fe(),wC=_v();bv();var lc=Array.prototype,EC={DOMTokenList:!0,NodeList:!0};wv.exports=function(e){var t=e.forEach;return e===lc||bC(lc,e)&&t===lc.forEach||_C(EC,yC(e))?wC:t}});var Av=h((v6,xv)=>{xv.exports=Ev()});var Iv=h((g6,Sv)=>{"use strict";var xC=TypeError,AC=9007199254740991;Sv.exports=function(e){if(e>AC)throw xC("Maximum allowed index exceeded");return e}});var cc=h((y6,kv)=>{"use strict";var SC=Be(),IC=Ut(),kC=Bn();kv.exports=function(e,t,r){SC?IC.f(e,t,kC(0,r)):e[t]=r}});var Ov=h(()=>{"use strict";var TC=V(),RC=ie(),CC=Kn(),OC=be(),PC=Fr(),NC=Hr(),Tv=Iv(),Rv=cc(),DC=oc(),qC=Yn(),LC=De(),UC=wo(),Cv=LC("isConcatSpreadable"),jC=UC>=51||!RC(function(){var e=[];return e[Cv]=!1,e.concat()[0]!==e}),MC=function(e){if(!OC(e))return!1;var t=e[Cv];return t!==void 0?!!t:CC(e)},FC=!jC||!qC("concat");TC({target:"Array",proto:!0,arity:1,forced:FC},{concat:function(t){var r=PC(this),n=DC(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],MC(c))for(l=NC(c),Tv(i+l),a=0;a<l;a++,i++)a in c&&Rv(n,i,c[a]);else Tv(i+1),Rv(n,i++,c);return n.length=i,n}})});var Nv=h((w6,Pv)=>{"use strict";Ov();var BC=ot();Pv.exports=BC("Array","concat")});var qv=h((E6,Dv)=>{"use strict";var $C=Fe(),JC=Nv(),uc=Array.prototype;Dv.exports=function(e){var t=e.concat;return e===uc||$C(uc,e)&&t===uc.concat?JC:t}});var Uv=h((x6,Lv)=>{"use strict";var HC=qv();Lv.exports=HC});var Mv=h((A6,jv)=>{jv.exports=Uv()});var Fv=h(()=>{"use strict";var VC=V(),zC=nr().some,GC=Qn(),KC=GC("some");VC({target:"Array",proto:!0,forced:!KC},{some:function(t){return zC(this,t,arguments.length>1?arguments[1]:void 0)}})});var $v=h((k6,Bv)=>{"use strict";Fv();var WC=ot();Bv.exports=WC("Array","some")});var Hv=h((T6,Jv)=>{"use strict";var YC=Fe(),QC=$v(),dc=Array.prototype;Jv.exports=function(e){var t=e.some;return e===dc||YC(dc,e)&&t===dc.some?QC:t}});var zv=h((R6,Vv)=>{"use strict";var XC=Hv();Vv.exports=XC});var Kv=h((C6,Gv)=>{Gv.exports=zv()});var Yv=h((O6,Wv)=>{"use strict";var Xn=oe(),ZC=_o(),eO=qt(),ko=function(e){return ZC.slice(0,e.length)===e};Wv.exports=function(){return ko("Bun/")?"BUN":ko("Cloudflare-Workers")?"CLOUDFLARE":ko("Deno/")?"DENO":ko("Node.js/")?"NODE":Xn.Bun&&typeof Bun.version=="string"?"BUN":Xn.Deno&&typeof Deno.version=="object"?"DENO":eO(Xn.process)==="process"?"NODE":Xn.window&&Xn.document?"BROWSER":"REST"}()});var Zn=h((P6,Qv)=>{"use strict";var tO=he();Qv.exports=tO([].slice)});var Zv=h((N6,Xv)=>{"use strict";var rO=TypeError;Xv.exports=function(e,t){if(e<t)throw new rO("Not enough arguments");return e}});var fc=h((D6,tg)=>{"use strict";var eg=oe(),nO=Cl(),iO=Se(),oO=Yv(),aO=_o(),sO=Zn(),lO=Zv(),cO=eg.Function,uO=/MSIE .\./.test(aO)||oO==="BUN"&&function(){var e=eg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();tg.exports=function(e,t){var r=t?2:1;return uO?function(n,i){var o=lO(arguments.length,1)>r,a=iO(n)?n:cO(n),s=o?sO(arguments,r):[],l=o?function(){nO(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var ig=h(()=>{"use strict";var dO=V(),ng=oe(),fO=fc(),rg=fO(ng.setInterval,!0);dO({global:!0,bind:!0,forced:ng.setInterval!==rg},{setInterval:rg})});var sg=h(()=>{"use strict";var pO=V(),ag=oe(),hO=fc(),og=hO(ag.setTimeout,!0);pO({global:!0,bind:!0,forced:ag.setTimeout!==og},{setTimeout:og})});var lg=h(()=>{"use strict";ig();sg()});var ug=h((B6,cg)=>{"use strict";lg();var mO=vt();cg.exports=mO.setTimeout});var fg=h(($6,dg)=>{dg.exports=ug()});function ti(e,t){ce.__h&&ce.__h(Y,e,ei||t),ei=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ro(e){return ei=1,Eg(xg,e)}function Eg(e,t,r){var n=ti(xr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xg(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=Y,!Y.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};Y.__f=!0;var o=Y.shouldComponentUpdate,a=Y.componentWillUpdate;Y.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)},Y.shouldComponentUpdate=i}return n.__N||n.__}function ri(e,t){var r=ti(xr++,3);!ce.__s&&mc(r.__H,t)&&(r.__=e,r.u=t,Y.__H.__h.push(r))}function zr(e,t){var r=ti(xr++,4);!ce.__s&&mc(r.__H,t)&&(r.__=e,r.u=t,Y.__h.push(r))}function ni(e){return ei=5,ii(function(){return{current:e}},[])}function ii(e,t){var r=ti(xr++,7);return mc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Gr(e,t){return ei=8,ii(function(){return e},t)}function Kr(e){var t=Y.context[e.__c],r=ti(xr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Y)),t.props.value):e.__}function vO(){for(var e;e=wg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(To),e.__H.__h.forEach(hc),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,e.__v)}}function gO(e){var t,r=function(){clearTimeout(n),bg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);bg&&(t=requestAnimationFrame(r))}function To(e){var t=Y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Y=t}function hc(e){var t=Y;e.__c=e.__(),Y=t}function mc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function xg(e,t){return typeof t=="function"?t(e):t}var xr,Y,pc,pg,ei,wg,ce,hg,mg,vg,gg,yg,_g,bg,vc=k(()=>{Lr();ei=0,wg=[],ce=C,hg=ce.__b,mg=ce.__r,vg=ce.diffed,gg=ce.__c,yg=ce.unmount,_g=ce.__;ce.__b=function(e){Y=null,hg&&hg(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_g&&_g(e,t)},ce.__r=function(e){mg&&mg(e),xr=0;var t=(Y=e.__c).__H;t&&(pc===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(To),t.__h.forEach(hc),t.__h=[],xr=0)),pc=Y},ce.diffed=function(e){vg&&vg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wg.push(t)!==1&&pg===ce.requestAnimationFrame||((pg=ce.requestAnimationFrame)||gO)(vO)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),pc=Y=null},ce.__c=function(e,t){t.some(function(r){try{r.__h.forEach(To),r.__h=r.__h.filter(function(n){return!n.__||hc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ce.__e(n,r.__v)}}),gg&&gg(e,t)},ce.unmount=function(e){yg&&yg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{To(n)}catch(i){t=i}}),r.__H=void 0,t&&ce.__e(t,r.__v))};bg=typeof requestAnimationFrame=="function"});function Ng(e,t){for(var r in t)e[r]=t[r];return e}function yc(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 Ag(e,t){this.props=e,this.context=t}function bc(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:yc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ne(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function wc(e){function t(r){var n=Ng({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=yO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Dg(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=Ng({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Dg(n,t,r)})),e}function qg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qg(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 gc(){this.__u=0,this.o=null,this.__b=null}function Lg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Co(){this.i=null,this.l=null}function Ec(e,t,r){return t.__k==null&&(t.textContent=""),qr(e,t),typeof r=="function"&&r(),e?e.__c:null}function IO(){}function kO(){return this.cancelBubble}function TO(){return this.defaultPrevented}var _c,Sg,yO,_O,Ig,kg,bO,wO,EO,xO,AO,SO,Tg,Ug,RO,Rg,Cg,Og,Oo=k(()=>{Lr();Lr();vc();vc();_c=zr;(Ag.prototype=new Ge).isPureReactComponent=!0,Ag.prototype.shouldComponentUpdate=function(e,t){return yc(this.props,e)||yc(this.state,t)};Sg=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Sg&&Sg(e)};yO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;_O=C.__e;C.__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)}_O(e,t,r,n)};Ig=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ig&&Ig(e)},(gc.prototype=new Ge).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Lg(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]=qg(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)},gc.prototype.componentWillUnmount=function(){this.o=[]},gc.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]=Dg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ne(Ke,null,e.fallback);return i&&(i.__u&=-33),[Ne(Ke,null,t.__a?null:e.children),i]};kg=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]}};(Co.prototype=new Ge).__a=function(e){var t=this,r=Lg(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),kg(t,e,n)):i()};r?r(o):o()}},Co.prototype.render=function(e){this.i=null,this.l=new Map;var t=jn(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},Co.prototype.componentDidUpdate=Co.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){kg(e,r,t)})};bO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,wO=/^(?: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]/,EO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xO=/[A-Z0-9]/g,AO=typeof document!="undefined",SO=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ge.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ge.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Tg=C.event;C.event=function(e){return Tg&&(e=Tg(e)),e.persist=IO,e.isPropagationStopped=kO,e.isDefaultPrevented=TO,e.nativeEvent=e};RO={enumerable:!1,configurable:!0,get:function(){return this.class}},Rg=C.vnode;C.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||AO&&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"||SO(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":EO.test(a)&&(a=l):l=a="oninput":o&&wO.test(a)?a=a.replace(xO,"-$&").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=jn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=jn(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",RO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=bO,Rg&&Rg(e)};Cg=C.__r;C.__r=function(e){Cg&&Cg(e),Ug=e.__c};Og=C.diffed;C.diffed=function(e){Og&&Og(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),Ug=null}});var xc=h((e9,jg)=>{"use strict";var OO=Gn(),PO=Math.max,NO=Math.min;jg.exports=function(e,t){var r=OO(e);return r<0?PO(r+t,0):NO(r,t)}});var Bg=h(()=>{"use strict";var DO=V(),Mg=Kn(),qO=ic(),LO=be(),Fg=xc(),UO=Hr(),jO=tr(),MO=cc(),FO=De(),BO=Yn(),$O=Zn(),JO=BO("slice"),HO=FO("species"),Ac=Array,VO=Math.max;DO({target:"Array",proto:!0,forced:!JO},{slice:function(t,r){var n=jO(this),i=UO(n),o=Fg(t,i),a=Fg(r===void 0?i:r,i),s,l,c;if(Mg(n)&&(s=n.constructor,qO(s)&&(s===Ac||Mg(s.prototype))?s=void 0:LO(s)&&(s=s[HO],s===null&&(s=void 0)),s===Ac||s===void 0))return $O(n,o,a);for(l=new(s===void 0?Ac:s)(VO(a-o,0)),c=0;o<a;o++,c++)o in n&&MO(l,c,n[o]);return l.length=c,l}})});var Jg=h((n9,$g)=>{"use strict";Bg();var zO=ot();$g.exports=zO("Array","slice")});var Vg=h((i9,Hg)=>{"use strict";var GO=Fe(),KO=Jg(),Sc=Array.prototype;Hg.exports=function(e){var t=e.slice;return e===Sc||GO(Sc,e)&&t===Sc.slice?KO:t}});var Gg=h((o9,zg)=>{"use strict";var WO=Vg();zg.exports=WO});var Wg=h((a9,Kg)=>{Kg.exports=Gg()});var Yg=h(()=>{"use strict";var YO=V(),QO=Kn();YO({target:"Array",stat:!0},{isArray:QO})});var Xg=h((c9,Qg)=>{"use strict";Yg();var XO=vt();Qg.exports=XO.Array.isArray});var ey=h((u9,Zg)=>{"use strict";var ZO=Xg();Zg.exports=ZO});var ry=h((d9,ty)=>{ty.exports=ey()});var oi=h((f9,ny)=>{"use strict";var eP=Vr(),tP=String;ny.exports=function(e){if(eP(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return tP(e)}});var oy=h((p9,iy)=>{"use strict";var rP=be(),nP=qt(),iP=De(),oP=iP("match");iy.exports=function(e){var t;return rP(e)&&((t=e[oP])!==void 0?!!t:nP(e)==="RegExp")}});var sy=h((h9,ay)=>{"use strict";var aP=oy(),sP=TypeError;ay.exports=function(e){if(aP(e))throw new sP("The method doesn't accept regular expressions");return e}});var cy=h((m9,ly)=>{"use strict";var lP=De(),cP=lP("match");ly.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[cP]=!1,"/./"[e](t)}catch(n){}}return!1}});var fy=h(()=>{"use strict";var uP=V(),dP=Fn(),fP=Wl().f,pP=tc(),uy=oi(),hP=sy(),mP=br(),vP=cy(),gP=Mr(),yP=dP("".slice),_P=Math.min,dy=vP("startsWith"),bP=!gP&&!dy&&!!function(){var e=fP(String.prototype,"startsWith");return e&&!e.writable}();uP({target:"String",proto:!0,forced:!bP&&!dy},{startsWith:function(t){var r=uy(mP(this));hP(t);var n=pP(_P(arguments.length>1?arguments[1]:void 0,r.length)),i=uy(t);return yP(r,n,n+i.length)===i}})});var hy=h((y9,py)=>{"use strict";fy();var wP=ot();py.exports=wP("String","startsWith")});var vy=h((_9,my)=>{"use strict";var EP=Fe(),xP=hy(),Ic=String.prototype;my.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Ic||EP(Ic,e)&&t===Ic.startsWith?xP:t}});var yy=h((b9,gy)=>{"use strict";var AP=vy();gy.exports=AP});var by=h((w9,_y)=>{_y.exports=yy()});var Tc=h(()=>{"use strict";var SP=V(),kc=oe();SP({global:!0,forced:kc.globalThis!==kc},{globalThis:kc})});var wy=h(()=>{"use strict";Tc()});var xy=h((I9,Ey)=>{"use strict";Tc();Ey.exports=oe()});var Sy=h((k9,Ay)=>{"use strict";var IP=xy();Ay.exports=IP});var ky=h((T9,Iy)=>{"use strict";var kP=Sy();Iy.exports=kP});var Ry=h((R9,Ty)=>{"use strict";wy();var TP=ky();Ty.exports=TP});var Oy=h((C9,Cy)=>{"use strict";Cy.exports=Ry()});var Ny=h((O9,Py)=>{Py.exports=Oy()});var qy=h((P9,Dy)=>{"use strict";Dy.exports=function(){}});var Ar=h((N9,Ly)=>{"use strict";Ly.exports={}});var Rc=h((D9,jy)=>{"use strict";var RP=oe(),CP=Se(),Uy=RP.WeakMap;jy.exports=CP(Uy)&&/native code/.test(String(Uy))});var Po=h((q9,Fy)=>{"use strict";var OP=Jl(),PP=xo(),My=OP("keys");Fy.exports=function(e){return My[e]||(My[e]=PP(e))}});var ai=h((L9,By)=>{"use strict";By.exports={}});var Ir=h((U9,Hy)=>{"use strict";var NP=Rc(),Jy=oe(),DP=be(),qP=Er(),Cc=We(),Oc=Jn(),LP=Po(),UP=ai(),$y="Object already initialized",Pc=Jy.TypeError,jP=Jy.WeakMap,No,si,Do,MP=function(e){return Do(e)?si(e):No(e,{})},FP=function(e){return function(t){var r;if(!DP(t)||(r=si(t)).type!==e)throw new Pc("Incompatible receiver, "+e+" required");return r}};NP||Oc.state?(dt=Oc.state||(Oc.state=new jP),dt.get=dt.get,dt.has=dt.has,dt.set=dt.set,No=function(e,t){if(dt.has(e))throw new Pc($y);return t.facade=e,dt.set(e,t),t},si=function(e){return dt.get(e)||{}},Do=function(e){return dt.has(e)}):(Sr=LP("state"),UP[Sr]=!0,No=function(e,t){if(Cc(e,Sr))throw new Pc($y);return t.facade=e,qP(e,Sr,t),t},si=function(e){return Cc(e,Sr)?e[Sr]:{}},Do=function(e){return Cc(e,Sr)});var dt,Sr;Hy.exports={set:No,get:si,has:Do,enforce:MP,getterFor:FP}});var qc=h((j9,zy)=>{"use strict";var Nc=Be(),BP=We(),Vy=Function.prototype,$P=Nc&&Object.getOwnPropertyDescriptor,Dc=BP(Vy,"name"),JP=Dc&&(function(){}).name==="something",HP=Dc&&(!Nc||Nc&&$P(Vy,"name").configurable);zy.exports={EXISTS:Dc,PROPER:JP,CONFIGURABLE:HP}});var Lc=h((M9,Ky)=>{"use strict";var VP=tr(),zP=xc(),GP=Hr(),Gy=function(e){return function(t,r,n){var i=VP(t),o=GP(i);if(o===0)return!e&&-1;var a=zP(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}};Ky.exports={includes:Gy(!0),indexOf:Gy(!1)}});var jc=h((F9,Yy)=>{"use strict";var KP=he(),Uc=We(),WP=tr(),YP=Lc().indexOf,QP=ai(),Wy=KP([].push);Yy.exports=function(e,t){var r=WP(e),n=0,i=[],o;for(o in r)!Uc(QP,o)&&Uc(r,o)&&Wy(i,o);for(;t.length>n;)Uc(r,o=t[n++])&&(~YP(i,o)||Wy(i,o));return i}});var qo=h((B9,Qy)=>{"use strict";Qy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Mc=h(($9,Xy)=>{"use strict";var XP=jc(),ZP=qo();Xy.exports=Object.keys||function(t){return XP(t,ZP)}});var e_=h(Zy=>{"use strict";var eN=Be(),tN=Yl(),rN=Ut(),nN=Lt(),iN=tr(),oN=Mc();Zy.f=eN&&!tN?Object.defineProperties:function(t,r){nN(t);for(var n=iN(r),i=oN(r),o=i.length,a=0,s;o>a;)rN.f(t,s=i[a++],n[s]);return t}});var r_=h((H9,t_)=>{"use strict";var aN=jr();t_.exports=aN("document","documentElement")});var li=h((V9,c_)=>{"use strict";var sN=Lt(),lN=e_(),n_=qo(),cN=ai(),uN=r_(),dN=Gl(),fN=Po(),i_=">",o_="<",Bc="prototype",$c="script",s_=fN("IE_PROTO"),Fc=function(){},l_=function(e){return o_+$c+i_+e+o_+"/"+$c+i_},a_=function(e){e.write(l_("")),e.close();var t=e.parentWindow.Object;return e=null,t},pN=function(){var e=dN("iframe"),t="java"+$c+":",r;return e.style.display="none",uN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(l_("document.F=Object")),r.close(),r.F},Lo,Uo=function(){try{Lo=new ActiveXObject("htmlfile")}catch(t){}Uo=typeof document!="undefined"?document.domain&&Lo?a_(Lo):pN():a_(Lo);for(var e=n_.length;e--;)delete Uo[Bc][n_[e]];return Uo()};cN[s_]=!0;c_.exports=Object.create||function(t,r){var n;return t!==null?(Fc[Bc]=sN(t),n=new Fc,Fc[Bc]=null,n[s_]=t):n=Uo(),r===void 0?n:lN.f(n,r)}});var d_=h((z9,u_)=>{"use strict";var hN=ie();u_.exports=!hN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Hc=h((G9,p_)=>{"use strict";var mN=We(),vN=Se(),gN=Fr(),yN=Po(),_N=d_(),f_=yN("IE_PROTO"),Jc=Object,bN=Jc.prototype;p_.exports=_N?Jc.getPrototypeOf:function(e){var t=gN(e);if(mN(t,f_))return t[f_];var r=t.constructor;return vN(r)&&t instanceof r?r.prototype:t instanceof Jc?bN:null}});var jo=h((K9,h_)=>{"use strict";var wN=Er();h_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:wN(e,t,r),e}});var Kc=h((W9,g_)=>{"use strict";var EN=ie(),xN=Se(),AN=be(),SN=li(),m_=Hc(),IN=jo(),kN=De(),TN=Mr(),Gc=kN("iterator"),v_=!1,jt,Vc,zc;[].keys&&(zc=[].keys(),"next"in zc?(Vc=m_(m_(zc)),Vc!==Object.prototype&&(jt=Vc)):v_=!0);var RN=!AN(jt)||EN(function(){var e={};return jt[Gc].call(e)!==e});RN?jt={}:TN&&(jt=SN(jt));xN(jt[Gc])||IN(jt,Gc,function(){return this});g_.exports={IteratorPrototype:jt,BUGGY_SAFARI_ITERATORS:v_}});var __=h((Y9,y_)=>{"use strict";var CN=So(),ON=Vr();y_.exports=CN?{}.toString:function(){return"[object "+ON(this)+"]"}});var ci=h((Q9,w_)=>{"use strict";var PN=So(),NN=Ut().f,DN=Er(),qN=We(),LN=__(),UN=De(),b_=UN("toStringTag");w_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(qN(i,b_)||NN(i,b_,{configurable:!0,value:t}),n&&!PN&&DN(i,"toString",LN))}});var x_=h((X9,E_)=>{"use strict";var jN=Kc().IteratorPrototype,MN=li(),FN=Bn(),BN=ci(),$N=Ar(),JN=function(){return this};E_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=MN(jN,{next:FN(+!n,r)}),BN(e,i,!1,!0),$N[i]=JN,e}});var S_=h((Z9,A_)=>{"use strict";var HN=he(),VN=wr();A_.exports=function(e,t,r){try{return HN(VN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var k_=h((eV,I_)=>{"use strict";var zN=be();I_.exports=function(e){return zN(e)||e===null}});var R_=h((tV,T_)=>{"use strict";var GN=k_(),KN=String,WN=TypeError;T_.exports=function(e){if(GN(e))return e;throw new WN("Can't set "+KN(e)+" as a prototype")}});var O_=h((rV,C_)=>{"use strict";var YN=S_(),QN=be(),XN=br(),ZN=R_();C_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=YN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return XN(i),ZN(o),QN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Bo=h((nV,B_)=>{"use strict";var eD=V(),tD=ct(),Mo=Mr(),M_=qc(),rD=Se(),nD=x_(),P_=Hc(),N_=O_(),iD=ci(),oD=Er(),Wc=jo(),aD=De(),D_=Ar(),F_=Kc(),sD=M_.PROPER,lD=M_.CONFIGURABLE,q_=F_.IteratorPrototype,Fo=F_.BUGGY_SAFARI_ITERATORS,ui=aD("iterator"),L_="keys",di="values",U_="entries",j_=function(){return this};B_.exports=function(e,t,r,n,i,o,a){nD(r,t,n);var s=function(v){if(v===i&&f)return f;if(!Fo&&v&&v in d)return d[v];switch(v){case L_:return function(){return new r(this,v)};case di:return function(){return new r(this,v)};case U_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ui]||d["@@iterator"]||i&&d[i],f=!Fo&&u||s(i),p=t==="Array"&&d.entries||u,m,g,_;if(p&&(m=P_(p.call(new e)),m!==Object.prototype&&m.next&&(!Mo&&P_(m)!==q_&&(N_?N_(m,q_):rD(m[ui])||Wc(m,ui,j_)),iD(m,l,!0,!0),Mo&&(D_[l]=j_))),sD&&i===di&&u&&u.name!==di&&(!Mo&&lD?oD(d,"name",di):(c=!0,f=function(){return tD(u,this)})),i)if(g={values:s(di),keys:o?f:s(L_),entries:s(U_)},a)for(_ in g)(Fo||c||!(_ in d))&&Wc(d,_,g[_]);else eD({target:t,proto:!0,forced:Fo||c},g);return(!Mo||a)&&d[ui]!==f&&Wc(d,ui,f,{name:i}),D_[t]=f,g}});var $o=h((iV,$_)=>{"use strict";$_.exports=function(e,t){return{value:e,done:t}}});var Ho=h((oV,G_)=>{"use strict";var cD=tr(),Yc=qy(),J_=Ar(),V_=Ir(),uD=Ut().f,dD=Bo(),Jo=$o(),fD=Mr(),pD=Be(),z_="Array Iterator",hD=V_.set,mD=V_.getterFor(z_);G_.exports=dD(Array,"Array",function(e,t){hD(this,{type:z_,target:cD(e),index:0,kind:t})},function(){var e=mD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Jo(void 0,!0);switch(e.kind){case"keys":return Jo(r,!1);case"values":return Jo(t[r],!1)}return Jo([r,t[r]],!1)},"values");var H_=J_.Arguments=J_.Array;Yc("keys");Yc("values");Yc("entries");if(!fD&&pD&&H_.name!=="values")try{uD(H_,"name",{value:"values"})}catch(e){}});var Qc=h(()=>{});var Xc=h((lV,K_)=>{"use strict";var vD=ie();K_.exports=!vD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Vo=h((cV,W_)=>{"use strict";var gD=jo();W_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:gD(e,n,t[n],r);return e}});var Zc=h(Y_=>{"use strict";var yD=jc(),_D=qo(),bD=_D.concat("length","prototype");Y_.f=Object.getOwnPropertyNames||function(t){return yD(t,bD)}});var eb=h((dV,Z_)=>{"use strict";var wD=qt(),ED=tr(),Q_=Zc().f,xD=Zn(),X_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AD=function(e){try{return Q_(e)}catch(t){return xD(X_)}};Z_.exports.f=function(t){return X_&&wD(t)==="Window"?AD(t):Q_(ED(t))}});var rb=h((fV,tb)=>{"use strict";var SD=ie();tb.exports=SD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ob=h((pV,ib)=>{"use strict";var ID=ie(),kD=be(),TD=qt(),nb=rb(),zo=Object.isExtensible,RD=ID(function(){zo(1)});ib.exports=RD||nb?function(t){return!kD(t)||nb&&TD(t)==="ArrayBuffer"?!1:zo?zo(t):!0}:zo});var fi=h((hV,lb)=>{"use strict";var CD=V(),OD=he(),PD=ai(),ND=be(),eu=We(),DD=Ut().f,ab=Zc(),qD=eb(),tu=ob(),LD=xo(),UD=Xc(),sb=!1,Mt=LD("meta"),jD=0,ru=function(e){DD(e,Mt,{value:{objectID:"O"+jD++,weakData:{}}})},MD=function(e,t){if(!ND(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!eu(e,Mt)){if(!tu(e))return"F";if(!t)return"E";ru(e)}return e[Mt].objectID},FD=function(e,t){if(!eu(e,Mt)){if(!tu(e))return!0;if(!t)return!1;ru(e)}return e[Mt].weakData},BD=function(e){return UD&&sb&&tu(e)&&!eu(e,Mt)&&ru(e),e},$D=function(){JD.enable=function(){},sb=!0;var e=ab.f,t=OD([].splice),r={};r[Mt]=1,e(r).length&&(ab.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Mt){t(i,o,1);break}return i},CD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qD.f}))},JD=lb.exports={enable:$D,fastKey:MD,getWeakData:FD,onFreeze:BD};PD[Mt]=!0});var ub=h((mV,cb)=>{"use strict";var HD=De(),VD=Ar(),zD=HD("iterator"),GD=Array.prototype;cb.exports=function(e){return e!==void 0&&(VD.Array===e||GD[zD]===e)}});var nu=h((vV,fb)=>{"use strict";var KD=Vr(),db=Eo(),WD=_r(),YD=Ar(),QD=De(),XD=QD("iterator");fb.exports=function(e){if(!WD(e))return db(e,XD)||db(e,"@@iterator")||YD[KD(e)]}});var hb=h((gV,pb)=>{"use strict";var ZD=ct(),eq=wr(),tq=Lt(),rq=$n(),nq=nu(),iq=TypeError;pb.exports=function(e,t){var r=arguments.length<2?nq(e):t;if(eq(r))return tq(ZD(r,e));throw new iq(rq(e)+" is not iterable")}});var Go=h((yV,vb)=>{"use strict";var oq=ct(),mb=Lt(),aq=Eo();vb.exports=function(e,t,r){var n,i;mb(e);try{if(n=aq(e,"return"),!n){if(t==="throw")throw r;return r}n=oq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return mb(n),r}});var Wo=h((_V,bb)=>{"use strict";var sq=Vn(),lq=ct(),cq=Lt(),uq=$n(),dq=ub(),fq=Hr(),gb=Fe(),pq=hb(),hq=nu(),yb=Go(),mq=TypeError,Ko=function(e,t){this.stopped=e,this.result=t},_b=Ko.prototype;bb.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=sq(t,n),c,d,u,f,p,m,g,_=function(b){return c&&yb(c,"normal",b),new Ko(!0,b)},v=function(b){return i?(cq(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=hq(e),!d)throw new mq(uq(e)+" is not iterable");if(dq(d)){for(u=0,f=fq(e);f>u;u++)if(p=v(e[u]),p&&gb(_b,p))return p;return new Ko(!1)}c=pq(e,d)}for(m=o?e.next:c.next;!(g=lq(m,c)).done;){try{p=v(g.value)}catch(b){yb(c,"throw",b)}if(typeof p=="object"&&p&&gb(_b,p))return p}return new Ko(!1)}});var Yo=h((bV,wb)=>{"use strict";var vq=Fe(),gq=TypeError;wb.exports=function(e,t){if(vq(t,e))return e;throw new gq("Incorrect invocation")}});var iu=h((wV,xb)=>{"use strict";var yq=V(),_q=oe(),bq=fi(),wq=ie(),Eq=Er(),xq=Wo(),Aq=Yo(),Sq=Se(),Iq=be(),kq=_r(),Tq=ci(),Rq=Ut().f,Cq=nr().forEach,Oq=Be(),Eb=Ir(),Pq=Eb.set,Nq=Eb.getterFor;xb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=_q[e],s=a&&a.prototype,l={},c;if(!Oq||!Sq(a)||!(i||s.forEach&&!wq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),bq.enable();else{c=t(function(f,p){Pq(Aq(f,d),{type:e,collection:new a}),kq(p)||xq(p,f[o],{that:f,AS_ENTRIES:n})});var d=c.prototype,u=Nq(e);Cq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var p=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&Eq(d,f,function(m,g){var _=u(this).collection;if(!p&&i&&!Iq(m))return f==="get"?void 0:!1;var v=_[f](m===0?0:m,g);return p?this:v})}),i||Rq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Tq(c,e,!1,!0),l[e]=c,yq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Cb=h((EV,Rb)=>{"use strict";var Dq=he(),Ab=Vo(),Qo=fi().getWeakData,qq=Yo(),Lq=Lt(),Uq=_r(),ou=be(),jq=Wo(),Ib=nr(),Sb=We(),kb=Ir(),Mq=kb.set,Fq=kb.getterFor,Bq=Ib.find,$q=Ib.findIndex,Jq=Dq([].splice),Hq=0,Xo=function(e){return e.frozen||(e.frozen=new Tb)},Tb=function(){this.entries=[]},au=function(e,t){return Bq(e.entries,function(r){return r[0]===t})};Tb.prototype={get:function(e){var t=au(this,e);if(t)return t[1]},has:function(e){return!!au(this,e)},set:function(e,t){var r=au(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=$q(this.entries,function(r){return r[0]===e});return~t&&Jq(this.entries,t,1),!!~t}};Rb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){qq(l,o),Mq(l,{type:t,id:Hq++,frozen:null}),Uq(c)||jq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Fq(t),s=function(l,c,d){var u=a(l),f=Qo(Lq(c),!0);return f===!0?Xo(u).set(c,d):f[u.id]=d,l};return Ab(o,{delete:function(l){var c=a(this);if(!ou(l))return!1;var d=Qo(l);return d===!0?Xo(c).delete(l):d&&Sb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!ou(c))return!1;var u=Qo(c);return u===!0?Xo(d).has(c):u&&Sb(u,d.id)}}),Ab(o,r?{get:function(c){var d=a(this);if(ou(c)){var u=Qo(c);if(u===!0)return Xo(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 jb=h(()=>{"use strict";var Vq=Xc(),Ob=oe(),ra=he(),Pb=Vo(),zq=fi(),Gq=iu(),Nb=Cb(),Zo=be(),ea=Ir().enforce,Kq=ie(),Wq=Rc(),mi=Object,Yq=Array.isArray,ta=mi.isExtensible,Db=mi.isFrozen,Qq=mi.isSealed,qb=mi.freeze,Xq=mi.seal,Zq=!Ob.ActiveXObject&&"ActiveXObject"in Ob,pi,Lb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ub=Gq("WeakMap",Lb,Nb),Wr=Ub.prototype,na=ra(Wr.set),eL=function(){return Vq&&Kq(function(){var e=qb([]);return na(new Ub,e,1),!Db(e)})};Wq&&(Zq?(pi=Nb.getConstructor(Lb,"WeakMap",!0),zq.enable(),su=ra(Wr.delete),hi=ra(Wr.has),lu=ra(Wr.get),Pb(Wr,{delete:function(e){if(Zo(e)&&!ta(e)){var t=ea(this);return t.frozen||(t.frozen=new pi),su(this,e)||t.frozen.delete(e)}return su(this,e)},has:function(t){if(Zo(t)&&!ta(t)){var r=ea(this);return r.frozen||(r.frozen=new pi),hi(this,t)||r.frozen.has(t)}return hi(this,t)},get:function(t){if(Zo(t)&&!ta(t)){var r=ea(this);return r.frozen||(r.frozen=new pi),hi(this,t)?lu(this,t):r.frozen.get(t)}return lu(this,t)},set:function(t,r){if(Zo(t)&&!ta(t)){var n=ea(this);n.frozen||(n.frozen=new pi),hi(this,t)?na(this,t,r):n.frozen.set(t,r)}else na(this,t,r);return this}})):eL()&&Pb(Wr,{set:function(t,r){var n;return Yq(t)&&(Db(t)?n=qb:Qq(t)&&(n=Xq)),na(this,t,r),n&&n(t),this}}));var su,hi,lu});var Mb=h(()=>{"use strict";jb()});var Bb=h((kV,Fb)=>{"use strict";Ho();Qc();Mb();var tL=vt();Fb.exports=tL.WeakMap});var Jb=h((TV,$b)=>{"use strict";$b.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 cu=h(()=>{"use strict";Ho();var rL=Jb(),nL=oe(),iL=ci(),Hb=Ar();for(ia in rL)iL(nL[ia],ia),Hb[ia]=Hb.Array;var ia});var zb=h((OV,Vb)=>{"use strict";var oL=Bb();cu();Vb.exports=oL});var Kb=h((PV,Gb)=>{Gb.exports=zb()});var Yb=h(()=>{"use strict";var aL=V(),sL=Fn(),lL=Lc().indexOf,cL=Qn(),uu=sL([].indexOf),Wb=!!uu&&1/uu([1],1,-0)<0,uL=Wb||!cL("indexOf");aL({target:"Array",proto:!0,forced:uL},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Wb?uu(this,t,r)||0:lL(this,t,r)}})});var Xb=h((qV,Qb)=>{"use strict";Yb();var dL=ot();Qb.exports=dL("Array","indexOf")});var e0=h((LV,Zb)=>{"use strict";var fL=Fe(),pL=Xb(),du=Array.prototype;Zb.exports=function(e){var t=e.indexOf;return e===du||fL(du,e)&&t===du.indexOf?pL:t}});var r0=h((UV,t0)=>{"use strict";var hL=e0();t0.exports=hL});var i0=h((jV,n0)=>{n0.exports=r0()});var o0=h(()=>{"use strict";var mL=V(),vL=nr().map,gL=Yn(),yL=gL("map");mL({target:"Array",proto:!0,forced:!yL},{map:function(t){return vL(this,t,arguments.length>1?arguments[1]:void 0)}})});var s0=h((BV,a0)=>{"use strict";o0();var _L=ot();a0.exports=_L("Array","map")});var c0=h(($V,l0)=>{"use strict";var bL=Fe(),wL=s0(),fu=Array.prototype;l0.exports=function(e){var t=e.map;return e===fu||bL(fu,e)&&t===fu.map?wL:t}});var d0=h((JV,u0)=>{"use strict";var EL=c0();u0.exports=EL});var p0=h((HV,f0)=>{f0.exports=d0()});var h0=h(()=>{"use strict";var xL=V(),AL=Be(),SL=li();xL({target:"Object",stat:!0,sham:!AL},{create:SL})});var v0=h((GV,m0)=>{"use strict";h0();var IL=vt(),kL=IL.Object;m0.exports=function(t,r){return kL.create(t,r)}});var y0=h((KV,g0)=>{"use strict";var TL=v0();g0.exports=TL});var b0=h((WV,_0)=>{_0.exports=y0()});var pu=h((YV,w0)=>{"use strict";var RL=Ut();w0.exports=function(e,t,r){return RL.f(e,t,r)}});var A0=h((QV,x0)=>{"use strict";var CL=jr(),OL=pu(),PL=De(),NL=Be(),E0=PL("species");x0.exports=function(e){var t=CL(e);NL&&t&&!t[E0]&&OL(t,E0,{configurable:!0,get:function(){return this}})}});var O0=h((XV,C0)=>{"use strict";var S0=li(),DL=pu(),I0=Vo(),qL=Vn(),LL=Yo(),UL=_r(),jL=Wo(),ML=Bo(),oa=$o(),FL=A0(),gi=Be(),k0=fi().fastKey,R0=Ir(),T0=R0.set,hu=R0.getterFor;C0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){LL(c,o),T0(c,{type:t,index:S0(null),first:null,last:null,size:0}),gi||(c.size=0),UL(d)||jL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=hu(t),s=function(c,d,u){var f=a(c),p=l(c,d),m,g;return p?p.value=u:(f.last=p={index:g=k0(d,!0),key:d,value:u,previous:m=f.last,next:null,removed:!1},f.first||(f.first=p),m&&(m.next=p),gi?f.size++:c.size++,g!=="F"&&(f.index[g]=p)),c},l=function(c,d){var u=a(c),f=k0(d),p;if(f!=="F")return u.index[f];for(p=u.first;p;p=p.next)if(p.key===d)return p};return I0(o,{clear:function(){for(var d=this,u=a(d),f=u.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=null),f=f.next;u.first=u.last=null,u.index=S0(null),gi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),f=l(d,c);if(f){var p=f.next,m=f.previous;delete u.index[f.index],f.removed=!0,m&&(m.next=p),p&&(p.previous=m),u.first===f&&(u.first=p),u.last===f&&(u.last=m),gi?u.size--:d.size--}return!!f},forEach:function(d){for(var u=a(this),f=qL(d,arguments.length>1?arguments[1]:void 0),p;p=p?p.next:u.first;)for(f(p.value,p.key,this);p&&p.removed;)p=p.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)}}),gi&&DL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=hu(t),o=hu(n);ML(e,t,function(a,s){T0(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,oa(void 0,!0)):oa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),FL(t)}}});var P0=h(()=>{"use strict";var BL=iu(),$L=O0();BL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$L)});var N0=h(()=>{"use strict";P0()});var ir=h((nz,D0)=>{"use strict";var JL=$n(),HL=TypeError;D0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new HL(JL(e)+" is not a set")}});var L0=h((iz,q0)=>{"use strict";q0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var or=h((oz,j0)=>{"use strict";var VL=jr(),mu=L0(),U0=VL("Set"),zL=U0.prototype;j0.exports={Set:U0,add:mu("add",1),has:mu("has",1),remove:mu("delete",1),proto:zL}});var ar=h((az,M0)=>{"use strict";var GL=ct();M0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=GL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Yr=h((sz,F0)=>{"use strict";var KL=ar();F0.exports=function(e,t,r){return r?KL(e.keys(),t,!0):e.forEach(t)}});var aa=h((lz,$0)=>{"use strict";var B0=or(),WL=Yr(),YL=B0.Set,QL=B0.add;$0.exports=function(e){var t=new YL;return WL(e,function(r){QL(t,r)}),t}});var Qr=h((cz,J0)=>{"use strict";J0.exports=function(e){return e.size}});var V0=h((uz,H0)=>{"use strict";H0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var sr=h((dz,Q0)=>{"use strict";var z0=wr(),W0=Lt(),G0=ct(),XL=Gn(),ZL=V0(),K0="Invalid size",eU=RangeError,tU=TypeError,rU=Math.max,Y0=function(e,t){this.set=e,this.size=rU(t,0),this.has=z0(e.has),this.keys=z0(e.keys)};Y0.prototype={getIterator:function(){return ZL(W0(G0(this.keys,this.set)))},includes:function(e){return G0(this.has,this.set,e)}};Q0.exports=function(e){W0(e);var t=+e.size;if(t!==t)throw new tU(K0);var r=XL(t);if(r<0)throw new eU(K0);return new Y0(e,r)}});var tw=h((fz,ew)=>{"use strict";var nU=ir(),Z0=or(),iU=aa(),oU=Qr(),aU=sr(),sU=Yr(),lU=ar(),cU=Z0.has,X0=Z0.remove;ew.exports=function(t){var r=nU(this),n=aU(t),i=iU(r);return oU(r)<=n.size?sU(r,function(o){n.includes(o)&&X0(i,o)}):lU(n.getIterator(),function(o){cU(r,o)&&X0(i,o)}),i}});var lr=h((pz,rw)=>{"use strict";rw.exports=function(){return!1}});var nw=h(()=>{"use strict";var uU=V(),dU=tw(),fU=lr(),pU=!fU("difference",function(e){return e.size===0});uU({target:"Set",proto:!0,real:!0,forced:pU},{difference:dU})});var aw=h((vz,ow)=>{"use strict";var hU=ir(),vu=or(),mU=Qr(),vU=sr(),gU=Yr(),yU=ar(),_U=vu.Set,iw=vu.add,bU=vu.has;ow.exports=function(t){var r=hU(this),n=vU(t),i=new _U;return mU(r)>n.size?yU(n.getIterator(),function(o){bU(r,o)&&iw(i,o)}):gU(r,function(o){n.includes(o)&&iw(i,o)}),i}});var sw=h(()=>{"use strict";var wU=V(),EU=ie(),xU=aw(),AU=lr(),SU=!AU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||EU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});wU({target:"Set",proto:!0,real:!0,forced:SU},{intersection:xU})});var cw=h((_z,lw)=>{"use strict";var IU=ir(),kU=or().has,TU=Qr(),RU=sr(),CU=Yr(),OU=ar(),PU=Go();lw.exports=function(t){var r=IU(this),n=RU(t);if(TU(r)<=n.size)return CU(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return OU(i,function(o){if(kU(r,o))return PU(i,"normal",!1)})!==!1}});var uw=h(()=>{"use strict";var NU=V(),DU=cw(),qU=lr(),LU=!qU("isDisjointFrom",function(e){return!e});NU({target:"Set",proto:!0,real:!0,forced:LU},{isDisjointFrom:DU})});var fw=h((Ez,dw)=>{"use strict";var UU=ir(),jU=Qr(),MU=Yr(),FU=sr();dw.exports=function(t){var r=UU(this),n=FU(t);return jU(r)>n.size?!1:MU(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var pw=h(()=>{"use strict";var BU=V(),$U=fw(),JU=lr(),HU=!JU("isSubsetOf",function(e){return e});BU({target:"Set",proto:!0,real:!0,forced:HU},{isSubsetOf:$U})});var mw=h((Sz,hw)=>{"use strict";var VU=ir(),zU=or().has,GU=Qr(),KU=sr(),WU=ar(),YU=Go();hw.exports=function(t){var r=VU(this),n=KU(t);if(GU(r)<n.size)return!1;var i=n.getIterator();return WU(i,function(o){if(!zU(r,o))return YU(i,"normal",!1)})!==!1}});var vw=h(()=>{"use strict";var QU=V(),XU=mw(),ZU=lr(),ej=!ZU("isSupersetOf",function(e){return!e});QU({target:"Set",proto:!0,real:!0,forced:ej},{isSupersetOf:XU})});var yw=h((Tz,gw)=>{"use strict";var tj=ir(),gu=or(),rj=aa(),nj=sr(),ij=ar(),oj=gu.add,aj=gu.has,sj=gu.remove;gw.exports=function(t){var r=tj(this),n=nj(t).getIterator(),i=rj(r);return ij(n,function(o){aj(r,o)?sj(i,o):oj(i,o)}),i}});var _w=h(()=>{"use strict";var lj=V(),cj=yw(),uj=lr();lj({target:"Set",proto:!0,real:!0,forced:!uj("symmetricDifference")},{symmetricDifference:cj})});var ww=h((Oz,bw)=>{"use strict";var dj=ir(),fj=or().add,pj=aa(),hj=sr(),mj=ar();bw.exports=function(t){var r=dj(this),n=hj(t).getIterator(),i=pj(r);return mj(n,function(o){fj(i,o)}),i}});var Ew=h(()=>{"use strict";var vj=V(),gj=ww(),yj=lr();vj({target:"Set",proto:!0,real:!0,forced:!yj("union")},{union:gj})});var Iw=h((Dz,Sw)=>{"use strict";var yu=he(),_j=Gn(),bj=oi(),wj=br(),Ej=yu("".charAt),xw=yu("".charCodeAt),xj=yu("".slice),Aw=function(e){return function(t,r){var n=bj(wj(t)),i=_j(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=xw(n,i),a<55296||a>56319||i+1===o||(s=xw(n,i+1))<56320||s>57343?e?Ej(n,i):a:e?xj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};Sw.exports={codeAt:Aw(!1),charAt:Aw(!0)}});var Cw=h(()=>{"use strict";var Aj=Iw().charAt,Sj=oi(),Tw=Ir(),Ij=Bo(),kw=$o(),Rw="String Iterator",kj=Tw.set,Tj=Tw.getterFor(Rw);Ij(String,"String",function(e){kj(this,{type:Rw,string:Sj(e),index:0})},function(){var t=Tj(this),r=t.string,n=t.index,i;return n>=r.length?kw(void 0,!0):(i=Aj(r,n),t.index+=i.length,kw(i,!1))})});var Pw=h((Uz,Ow)=>{"use strict";Ho();Qc();N0();nw();sw();uw();pw();vw();_w();Ew();Cw();var Rj=vt();Ow.exports=Rj.Set});var Dw=h((jz,Nw)=>{"use strict";var Cj=Pw();cu();Nw.exports=Cj});var Lw=h((Mz,qw)=>{qw.exports=Dw()});var jw=h(Uw=>{"use strict";Uw.f=Object.getOwnPropertySymbols});var $w=h((Bz,Bw)=>{"use strict";var Mw=Be(),Oj=he(),Pj=ct(),Nj=ie(),_u=Mc(),Dj=jw(),qj=Pl(),Lj=Fr(),Uj=yo(),Xr=Object.assign,Fw=Object.defineProperty,jj=Oj([].concat);Bw.exports=!Xr||Nj(function(){if(Mw&&Xr({b:1},Xr(Fw({},"a",{enumerable:!0,get:function(){Fw(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}),Xr({},e)[r]!==7||_u(Xr({},t)).join("")!==n})?function(t,r){for(var n=Lj(t),i=arguments.length,o=1,a=Dj.f,s=qj.f;i>o;)for(var l=Uj(arguments[o++]),c=a?jj(_u(l),a(l)):_u(l),d=c.length,u=0,f;d>u;)f=c[u++],(!Mw||Pj(s,l,f))&&(n[f]=l[f]);return n}:Xr});var Hw=h(()=>{"use strict";var Mj=V(),Jw=$w();Mj({target:"Object",stat:!0,arity:2,forced:Object.assign!==Jw},{assign:Jw})});var zw=h((Hz,Vw)=>{"use strict";Hw();var Fj=vt();Vw.exports=Fj.Object.assign});var Kw=h((Vz,Gw)=>{"use strict";var Bj=zw();Gw.exports=Bj});var Yw=h((zz,Ww)=>{Ww.exports=Kw()});var bu=h((Gz,Qw)=>{"use strict";Qw.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 eE=h((Kz,Zw)=>{"use strict";var $j=he(),Jj=br(),Hj=oi(),Eu=bu(),Xw=$j("".replace),Vj=RegExp("^["+Eu+"]+"),zj=RegExp("(^|[^"+Eu+"])["+Eu+"]+$"),wu=function(e){return function(t){var r=Hj(Jj(t));return e&1&&(r=Xw(r,Vj,"")),e&2&&(r=Xw(r,zj,"$1")),r}};Zw.exports={start:wu(1),end:wu(2),trim:wu(3)}});var iE=h((Wz,nE)=>{"use strict";var Gj=qc().PROPER,Kj=ie(),tE=bu(),rE="\u200B\x85\u180E";nE.exports=function(e){return Kj(function(){return!!tE[e]()||rE[e]()!==rE||Gj&&tE[e].name!==e})}});var oE=h(()=>{"use strict";var Wj=V(),Yj=eE().trim,Qj=iE();Wj({target:"String",proto:!0,forced:Qj("trim")},{trim:function(){return Yj(this)}})});var sE=h((Xz,aE)=>{"use strict";oE();var Xj=ot();aE.exports=Xj("String","trim")});var cE=h((Zz,lE)=>{"use strict";var Zj=Fe(),eM=sE(),xu=String.prototype;lE.exports=function(e){var t=e.trim;return typeof e=="string"||e===xu||Zj(xu,e)&&t===xu.trim?eM:t}});var dE=h((eG,uE)=>{"use strict";var tM=cE();uE.exports=tM});var pE=h((tG,fE)=>{fE.exports=dE()});var Au=k(()=>{});var yE=h((nG,gE)=>{"use strict";var mE=he(),rM=wr(),nM=be(),iM=We(),hE=Zn(),oM=Ur(),vE=Function,aM=mE([].concat),sM=mE([].join),Su={},lM=function(e,t,r){if(!iM(Su,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Su[t]=vE("C,a","return new C("+sM(n,",")+")")}return Su[t](e,r)};gE.exports=oM?vE.bind:function(t){var r=rM(this),n=r.prototype,i=hE(arguments,1),o=function(){var s=aM(i,hE(arguments));return this instanceof o?lM(r,s.length,s):r.apply(t,s)};return nM(n)&&(o.prototype=n),o}});var bE=h(()=>{"use strict";var cM=V(),_E=yE();cM({target:"Function",proto:!0,forced:Function.bind!==_E},{bind:_E})});var EE=h((aG,wE)=>{"use strict";bE();var uM=ot();wE.exports=uM("Function","bind")});var AE=h((sG,xE)=>{"use strict";var dM=Fe(),fM=EE(),Iu=Function.prototype;xE.exports=function(e){var t=e.bind;return e===Iu||dM(Iu,e)&&t===Iu.bind?fM:t}});var IE=h((lG,SE)=>{"use strict";var pM=AE();SE.exports=pM});var TE=h((cG,kE)=>{kE.exports=IE()});function Ci(e,t){ue.__h&&ue.__h(Q,e,xi||t),xi=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function St(e){return xi=1,hM(dx,e)}function hM(e,t,r){var n=Ci(Tr++,2);if(n.t=e,!n.__c&&(n.__=[dx(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=Q,!Q.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Gu.default)(d=n.__c.__H.__).call(d,function(p){return!!p.__c});if((0,sx.default)(u).call(u,function(p){return!p.__N}))return!o||o.call(this,s,l,c);var f=n.__c.props!==s;return(0,we.default)(u).call(u,function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),o&&o.call(this,s,l,c)||f};Q.__f=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.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)},Q.shouldComponentUpdate=i}return n.__N||n.__}function cr(e,t){var r=Ci(Tr++,3);!ue.__s&&Xu(r.__H,t)&&(r.__=e,r.u=t,Q.__H.__h.push(r))}function mM(e,t){var r=Ci(Tr++,4);!ue.__s&&Xu(r.__H,t)&&(r.__=e,r.u=t,Q.__h.push(r))}function kr(e){return xi=5,ux(function(){return{current:e}},[])}function ux(e,t){var r=Ci(Tr++,7);return Xu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function at(e,t){return xi=8,ux(function(){return e},t)}function vM(e){var t=Q.context[e.__c],r=Ci(Tr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function gM(){for(var e;e=cx.shift();)if(e.__P&&e.__H)try{var t,r;(0,we.default)(t=e.__H.__h).call(t,ua),(0,we.default)(r=e.__H.__h).call(r,Lu),e.__H.__h=[]}catch(n){e.__H.__h=[],ue.__e(n,e.__v)}}function yM(e){var t,r=function(){clearTimeout(n),LE&&cancelAnimationFrame(t),(0,Et.default)(e)},n=(0,Et.default)(r,100);LE&&(t=requestAnimationFrame(r))}function ua(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function Lu(e){var t=Q;e.__c=e.__(),Q=t}function Xu(e,t){return!e||e.length!==t.length||(0,ya.default)(t).call(t,function(r,n){return r!==e[n]})}function dx(e,t){return typeof t=="function"?t(e):t}function w(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:--_M,__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 C.vnode&&C.vnode(c),c}function xM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uu(){throw new Error("setTimeout has not been defined")}function ju(){throw new Error("clearTimeout has not been defined")}function px(e){if(gt===Et.default)return(0,Et.default)(e,0);if((gt===Uu||!gt)&&Et.default)return gt=Et.default,(0,Et.default)(e,0);try{return gt(e,0)}catch(t){try{return gt.call(null,e,0)}catch(r){return gt.call(this,e,0)}}}function AM(e){if(yt===clearTimeout)return clearTimeout(e);if((yt===ju||!yt)&&clearTimeout)return yt=clearTimeout,clearTimeout(e);try{return yt(e)}catch(t){try{return yt.call(null,e)}catch(r){return yt.call(this,e)}}}function SM(){!en||!ur||(en=!1,ur.length?Bt=(0,Ea.default)(ur).call(ur,Bt):da=-1,Bt.length&&hx())}function hx(){if(!en){var e=px(SM);en=!0;for(var t=Bt.length;t;){for(ur=Bt,Bt=[];++da<t;)ur&&ur[da].run();da=-1,t=Bt.length}ur=null,en=!1,AM(e)}}function mx(e,t){this.fun=e,this.array=t}function $t(){}function TM(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 RM(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 NM(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function yx(e){return(0,Qu.default)(e).call(e)}function DM(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function Mu(e,t){return(0,Rr.default)(e).call(e,t)}function Ie(e,t){return e.charCodeAt(t)|0}function Ai(e,t,r){return(0,Ku.default)(e).call(e,t,r)}function _t(e){return e.length}function rd(e){return e.length}function sa(e,t){return t.push(e),e}function qM(e,t){return(0,Ei.default)(e).call(e,t).join("")}function Sa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Aa,column:nn,length:a,return:""}}function yi(e,t){return PM(Sa("",null,null,"",null,null,0),e,{length:-e.length},t)}function LM(){return me}function UM(){return me=$e>0?Ie(an,--$e):0,nn--,me===10&&(nn=1,Aa--),me}function Ye(){return me=$e<_x?Ie(an,$e++):0,nn++,me===10&&(nn=1,Aa++),me}function xt(){return Ie(an,$e)}function fa(){return $e}function Oi(e,t){return Ai(an,e,t)}function Si(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 bx(e){return Aa=nn=1,_x=_t(an=e),$e=0,[]}function wx(e){return an="",e}function pa(e){return yx(Oi($e-1,Fu(e===91?e+2:e===40?e+1:e)))}function jM(e){for(;(me=xt())&&me<33;)Ye();return Si(e)>2||Si(me)>3?"":" "}function MM(e,t){for(;--t&&Ye()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Oi(e,fa()+(t<6&&xt()==32&&Ye()==32))}function Fu(e){for(;Ye();)switch(me){case e:return $e;case 34:case 39:e!==34&&e!==39&&Fu(me);break;case 40:e===41&&Fu(e);break;case 92:Ye();break}return $e}function FM(e,t){for(;Ye()&&e+me!==57&&!(e+me===84&&xt()===47););return"/*"+Oi(t,$e-1)+"*"+xa(e===47?e:Ye())}function BM(e){for(;!Si(xt());)Ye();return Oi(e,$e)}function $M(e){return wx(ha("",null,null,null,[""],e=bx(e),0,[0],e))}function ha(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",I=i,O=o,T=n,y=E;_;)switch(m=b,b=Ye()){case 40:if(m!=108&&Ie(y,u-1)==58){Mu(y+=J(pa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=pa(b);break;case 9:case 10:case 13:case 32:y+=jM(m);break;case 92:y+=MM(fa()-1,7);continue;case 47:switch(xt()){case 42:case 47:sa(JM(FM(Ye(),fa()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=_t(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:p>0&&_t(y)-u&&sa(p>32?jE(y+";",n,r,u-1):jE(J(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(sa(T=UE(y,t,r,c,d,i,s,E,I=[],O=[],u),o),b===123)if(d===0)ha(y,t,T,T,I,o,u,s,O);else switch(f===99&&Ie(y,3)===110?100:f){case 100:case 109:case 115:ha(e,T,T,n&&sa(UE(e,T,T,0,0,i,s,E,i,I=[],u),O),i,O,u,s,n?I:O);break;default:ha(y,T,T,T,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+_t(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UM()==125)continue}switch(y+=xa(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(_t(y)-1)*v,v=1;break;case 64:xt()===45&&(y+=pa(Ye())),f=xt(),d=u=_t(E=y+=BM(fa())),b++;break;case 45:m===45&&_t(y)==2&&(g=0)}}return o}function UE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=rd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ai(e,u+1,u=OM(g=a[m])),E=e;v<p;++v)(E=yx(g>0?f[v]+" "+b:J(b,/&\f/g,f[v])))&&(l[_++]=E);return Sa(e,t,r,i===0?ed:s,l,c,d)}function JM(e,t,r){return Sa(e,t,r,Zu,xa(LM()),Ai(e,2,-2),0)}function jE(e,t,r,n){return Sa(e,t,r,td,Ai(e,0,n),Ai(e,n+1,-1),n)}function tn(e,t){for(var r="",n=rd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function HM(e,t,r,n){switch(e.type){case CM:case td:return e.return=e.return||e.value;case Zu:return"";case gx:return e.return=e.value+"{"+tn(e.children,n)+"}";case ed:e.value=e.props.join(",")}return _t(r=tn(e.children,n))?e.return=e.value+"{"+r+"}":""}function VM(e){var t=rd(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 zM(e){return function(t){t.root||(t=t.return)&&e(t)}}function xx(e,t){switch(NM(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+ba+e+qe+e+e;case 6828:case 4268:return j+e+qe+e+e;case 6165:return j+e+qe+"flex-"+e+e;case 5187:return j+e+J(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return j+e+qe+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return j+e+qe+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+qe+J(e,"shrink","negative")+e;case 5292:return j+e+qe+J(e,"basis","preferred-size")+e;case 6060:return j+"box-"+J(e,"-grow","")+j+e+qe+J(e,"grow","positive")+e;case 4554:return j+J(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,j+"$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(_t(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+ba+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mu(e,"stretch")?xx(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,_t(e)-3-(~Mu(e,"!important")&&10))){case 107:return J(e,":",":"+j)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Ie(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return j+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+qe+e+e}return e}function Sx(){if(BE)return la.exports;BE=1;let e=Sx();return la.exports={default:e},la.exports.default=e,la.exports}function Ii(e,t,r){var n,i="";return(0,we.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function a2(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 l2(e){var t=(0,lx.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 bt={name:i.name,styles:i.styles,next:bt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)bt={name:a.name,styles:a.styles,next:bt},a=a.next;var s=o.styles+";";return s}return d2(e,t,r)}case"function":{if(e!==void 0){var l=bt,c=r(e);return bt=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 d2(e,t,r){var n="";if((0,wi.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]+"}":$E(s)&&(n+=Ru(o)+":"+JE(o,s)+";")}else if((0,wi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)$E(a[l])&&(n+=Ru(o)+":"+JE(o,a[l])+";");else{var c=ki(e,t,a);switch(o){case"animation":case"animationName":{n+=Ru(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function dr(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="";bt=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]}HE.lastIndex=0;for(var c="",d;(d=HE.exec(i))!==null;)c+="-"+d[1];var u=a2(i)+c;return{name:u,styles:i,next:bt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return dr(t)}function b2(e,t,r){var n=[],i=Ii(e,n,r);return n.length<2?r:i+t(n)}function ad(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=St(e());return cr(()=>{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 J2(){return te&&document.body.contains(te)||(te=document.createElement("iframe"),te.style.position="fixed",te.style.left="0",te.style.top="0",te.style.width="100vw",te.style.height="100vh",te.style.zIndex="99999999",te.style.border="none",te.style.background="transparent",te.setAttribute("allowtransparency","true"),te.style.display="none",document.body.appendChild(te),Ju=new Promise(e=>{_i=e}),te.onload=()=>{var e;if(!((e=te==null?void 0:te.contentDocument)!=null&&e.head)){console.error("[Modal] Persistent iframe loaded, but document or head is not available.");return}console.log("[Modal] Persistent iframe content loaded."),$u=Ax({key:"iframepersistentcss",container:te.contentDocument.head,prepend:!0}),Nu&&Nu(),Nu=V2(te),_i==null||_i(),_i=null},te.onerror=()=>{console.error("[Modal] Persistent iframe failed to load.")},te.src="about:blank"),te}function H2(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 Dx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=H2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function V2(e){let t=()=>Dx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function G2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=pt(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=z2(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ne("img",L(R({},a),{ref:c,src:t!=null?t:"",style:R({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",L(R({},a),{ref:c,className:i,children:r}))}function K2(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?Ne(i.type,L(R({},i.props),{style:L(R({},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?Ne(e.type,L(R({},e.props),{style:L(R({},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 Z2(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 pF(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function Vx(e){return(0,Qu.default)(e).call(e)}function hF(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function Vu(e,t){return(0,Rr.default)(e).call(e,t)}function ke(e,t){return e.charCodeAt(t)|0}function Ti(e,t,r){return(0,Ku.default)(e).call(e,t,r)}function wt(e){return e.length}function dd(e){return e.length}function ca(e,t){return t.push(e),e}function mF(e,t){return(0,Ei.default)(e).call(e,t).join("")}function Oa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ca,column:on,length:a,return:""}}function bi(e,t){return fF(Oa("",null,null,"",null,null,0),e,{length:-e.length},t)}function vF(){return ve}function gF(){return ve=Je>0?ke(ln,--Je):0,on--,ve===10&&(on=1,Ca--),ve}function Qe(){return ve=Je<zx?ke(ln,Je++):0,on++,ve===10&&(on=1,Ca++),ve}function At(){return ke(ln,Je)}function ma(){return Je}function Pi(e,t){return Ti(ln,e,t)}function Ri(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 Gx(e){return Ca=on=1,zx=wt(ln=e),Je=0,[]}function Kx(e){return ln="",e}function va(e){return Vx(Pi(Je-1,zu(e===91?e+2:e===40?e+1:e)))}function yF(e){for(;(ve=At())&&ve<33;)Qe();return Ri(e)>2||Ri(ve)>3?"":" "}function _F(e,t){for(;--t&&Qe()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Pi(e,ma()+(t<6&&At()==32&&Qe()==32))}function zu(e){for(;Qe();)switch(ve){case e:return Je;case 34:case 39:e!==34&&e!==39&&zu(ve);break;case 40:e===41&&zu(e);break;case 92:Qe();break}return Je}function bF(e,t){for(;Qe()&&e+ve!==57&&!(e+ve===84&&At()===47););return"/*"+Pi(t,Je-1)+"*"+Ra(e===47?e:Qe())}function wF(e){for(;!Ri(At());)Qe();return Pi(e,Je)}function EF(e){return Kx(ga("",null,null,null,[""],e=Gx(e),0,[0],e))}function ga(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",I=i,O=o,T=n,y=E;_;)switch(m=b,b=Qe()){case 40:if(m!=108&&ke(y,u-1)==58){Vu(y+=F(va(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=va(b);break;case 9:case 10:case 13:case 32:y+=yF(m);break;case 92:y+=_F(ma()-1,7);continue;case 47:switch(At()){case 42:case 47:ca(xF(bF(Qe(),ma()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=wt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=F(y,/\f/g,"")),p>0&&wt(y)-u&&ca(p>32?ix(y+";",n,r,u-1):ix(F(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ca(T=nx(y,t,r,c,d,i,s,E,I=[],O=[],u),o),b===123)if(d===0)ga(y,t,T,T,I,o,u,s,O);else switch(f===99&&ke(y,3)===110?100:f){case 100:case 108:case 109:case 115:ga(e,T,T,n&&ca(nx(e,T,T,0,0,i,s,E,i,I=[],u),O),i,O,u,s,n?I:O);break;default:ga(y,T,T,T,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+wt(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&gF()==125)continue}switch(y+=Ra(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(wt(y)-1)*v,v=1;break;case 64:At()===45&&(y+=va(Qe())),f=At(),d=u=wt(E=y+=wF(ma())),b++;break;case 45:m===45&&wt(y)==2&&(g=0)}}return o}function nx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=dd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ti(e,u+1,u=dF(g=a[m])),E=e;v<p;++v)(E=Vx(g>0?f[v]+" "+b:F(b,/&\f/g,f[v])))&&(l[_++]=E);return Oa(e,t,r,i===0?cd:s,l,c,d)}function xF(e,t,r){return Oa(e,t,r,Jx,Ra(vF()),Ti(e,2,-2),0)}function ix(e,t,r,n){return Oa(e,t,r,ud,Ti(e,0,n),Ti(e,n+1,-1),n)}function rn(e,t){for(var r="",n=dd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function AF(e,t,r,n){switch(e.type){case uF:if(e.children.length)break;case cF:case ud:return e.return=e.return||e.value;case Jx:return"";case Hx:return e.return=e.value+"{"+rn(e.children,n)+"}";case cd:e.value=e.props.join(",")}return wt(r=rn(e.children,n))?e.return=e.value+"{"+r+"}":""}function SF(e){var t=dd(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 IF(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wx(e,t){switch(pF(e,t)){case 5103:return M+"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 M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+wa+e+Le+e+e;case 6828:case 4268:return M+e+Le+e+e;case 6165:return M+e+Le+"flex-"+e+e;case 5187:return M+e+F(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return M+e+Le+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return M+e+Le+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Le+F(e,"shrink","negative")+e;case 5292:return M+e+Le+F(e,"basis","preferred-size")+e;case 6060:return M+"box-"+F(e,"-grow","")+M+e+Le+F(e,"grow","positive")+e;case 4554:return M+F(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,M+"$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(wt(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+wa+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch")?Wx(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,wt(e)-3-(~Vu(e,"!important")&&10))){case 107:return F(e,":",":"+M)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(ke(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return M+e+Le+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Le+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Le+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Le+e+e}return e}function ax(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Du(e,t,r){var n=[],i=Ii(e,n,r);return n.length<2?r:i+t(n)}var Gu,sx,we,Ea,ya,Et,Ku,wi,fG,_a,Wu,Rr,Ei,lx,pG,Yu,Qu,qu,Tr,Q,ku,RE,xi,cx,ue,CE,OE,PE,NE,DE,qE,LE,_M,Tu,bM,wM,EM,fx,de,gt,yt,Bt,en,ur,da,IM,Te,kM,vx,qe,ba,j,Zu,ed,td,CM,gx,OM,xa,PM,Aa,nn,_x,$e,me,an,GM,KM,WM,ME,YM,QM,XM,ZM,e2,Ex,t2,FE,r2,n2,i2,Ax,la,BE,o2,nd,Ia,s2,c2,u2,Ix,$E,Ru,JE,HE,bt,f2,kx,Tx,VE,p2,id,h2,od,ka,zE,GE,m2,v2,g2,KE,y2,_2,w2,E2,Cu,WE,Ou,Pu,x2,YE,A2,QE,S2,XE,I2,ZE,k2,T2,R2,C2,O2,ex,P2,N2,D2,q2,L2,tx,U2,j2,M2,F2,Rx,Cx,Ox,Bu,B2,Px,Nx,$2,te,$u,_i,Ju,Nu,sd,z2,qx,Lx,Ux,W2,Y2,Q2,Hu,X2,jx,sn,Ta,rx,Ft,Mx,Zr,eF,tF,rF,nF,iF,re,oF,aF,Fx,Bx,$x,ld,sF,lF,Le,wa,M,Jx,cd,ud,cF,Hx,uF,dF,Ra,fF,Ca,on,zx,Je,ve,ln,kF,TF,RF,ox,CF,OF,PF,NF,DF,qF,LF,UF,Yx,jF,MF,Qx,Ni=k(()=>{"use strict";Lr();Gu=ae(tv(),1),sx=ae(dv(),1),we=ae(Av(),1),Ea=ae(Mv(),1),ya=ae(Kv(),1),Et=ae(fg(),1);Oo();Oo();Ku=ae(Wg(),1),wi=ae(ry(),1),fG=ae(by(),1),_a=ae(Ny(),1),Wu=ae(Kb(),1),Rr=ae(i0(),1),Ei=ae(p0(),1),lx=ae(b0(),1),pG=ae(Lw(),1),Yu=ae(Yw(),1),Qu=ae(pE(),1);Au();Au();qu=ae(TE(),1),xi=0,cx=[],ue=C,CE=ue.__b,OE=ue.__r,PE=ue.diffed,NE=ue.__c,DE=ue.unmount,qE=ue.__;ue.__b=function(e){Q=null,CE&&CE(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qE&&qE(e,t)},ue.__r=function(e){var t,r,n;OE&&OE(e),Tr=0;var i=(Q=e.__c).__H;i&&(ku===Q?(i.__h=[],Q.__h=[],(0,we.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,we.default)(r=i.__h).call(r,ua),(0,we.default)(n=i.__h).call(n,Lu),i.__h=[],Tr=0)),ku=Q},ue.diffed=function(e){var t;PE&&PE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(cx.push(r)!==1&&RE===ue.requestAnimationFrame||((RE=ue.requestAnimationFrame)||yM)(gM)),(0,we.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),ku=Q=null},ue.__c=function(e,t){(0,ya.default)(t).call(t,function(r){try{var n,i;(0,we.default)(n=r.__h).call(n,ua),r.__h=(0,Gu.default)(i=r.__h).call(i,function(o){return!o.__||Lu(o)})}catch(o){(0,ya.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ue.__e(o,r.__v)}}),NE&&NE(e,t)},ue.unmount=function(e){var t;DE&&DE(e);var r,n=e.__c;n&&n.__H&&((0,we.default)(t=n.__H.__).call(t,function(i){try{ua(i)}catch(o){r=o}}),n.__H=void 0,r&&ue.__e(r,n.__v))};LE=typeof requestAnimationFrame=="function";_M=0;Tu={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto",minHeight:"250px"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},bM=`
|
|
21
21
|
@keyframes fadeIn {
|
|
22
22
|
from { opacity: 0; }
|
|
23
23
|
to { opacity: 1; }
|
|
@@ -53,8 +53,8 @@ var dI=Object.create;var Xi=Object.defineProperty,fI=Object.defineProperties,pI=
|
|
|
53
53
|
.drawer-leave {
|
|
54
54
|
animation: slideDown 0.3s ease forwards;
|
|
55
55
|
}
|
|
56
|
-
`,wM=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,l]=St(t),[c,d]=St(null),u=kr(null),f=kr(!1),p=kr(t);
|
|
57
|
-
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,we.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||i2;if(Te.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,we.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=[YM,QM];Te.env.NODE_ENV!=="production"&&l.push(e2({get compat(){return p.compat}}),r2);{var c,d=[HM,Te.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Zu&&c.insert(m.value+"{}"))}:zM(function(m){c.insert(m)})],u=VM((0,Ea.default)(l).call(l,n,d)),f=function(m){return tn($M(m),u)};s=function(m,g,_,v){c=_,Te.env.NODE_ENV!=="production"&&(0,Ei.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,Ei.default)(g))}}),f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new vx({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 p.sheet.hydrate(a),p},la={exports:{}};Sx();o2=!0;nd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||o2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ia=function(e,t,r){nd(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)}};s2={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};c2=/[A-Z]|^ms/g,u2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ix=function(e){return e.charCodeAt(1)===45},$E=function(e){return e!=null&&typeof e!="boolean"},Ru=l2(function(e){return Ix(e)?e:e.replace(c2,"-$&").toLowerCase()}),JE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(u2,function(r,n,i){return bt={name:n,styles:i,next:bt},n})}return s2[e]!==1&&!Ix(e)&&typeof t=="number"&&t!==0?t+"px":t};HE=/label:\s*([^\s;{]+)\s*(;|$)/g;f2=function(e){return e()},kx=_c?_c:!1,Tx=kx||f2,VE=kx||zr,p2={}.hasOwnProperty,id=yr(typeof HTMLElement<"u"?Ax({key:"css"}):null);Te.env.NODE_ENV!=="production"&&(id.displayName="EmotionCacheContext");h2=id.Provider,od=function(e){return wc(function(t,r){var n=Kr(id);return e(t,n,r)})},ka=yr({});Te.env.NODE_ENV!=="production"&&(ka.displayName="EmotionThemeContext");zE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",GE="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",m2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return nd(t,r,n),Tx(function(){return Ia(t,r,n)}),null},v2=od(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[zE],a=[i],s="";typeof e.className=="string"?s=Ii(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=ur(a,void 0,Kr(ka));if(Te.env.NODE_ENV!=="production"&&(0,Rr.default)(n=l.name).call(n,"-")===-1){var c=e[GE];c&&(l=ur([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)p2.call(e,u)&&u!=="css"&&u!==zE&&(Te.env.NODE_ENV==="production"||u!==GE)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ne(Ke,null,Ne(m2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ne(o,d))});Te.env.NODE_ENV!=="production"&&(v2.displayName="EmotionCssPropInternal");g2={version:"11.10.5"},KE=!1,y2=od(function(e,t){Te.env.NODE_ENV!=="production"&&!KE&&(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?"),KE=!0);var r=e.styles,n=ur([r],void 0,Kr(ka)),i=ni();return VE(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]),VE(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ia(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});Te.env.NODE_ENV!=="production"&&(y2.displayName="EmotionGlobal");_2=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,wi.default)(o))a=e(o);else{Te.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};w2=function(e){var t=e.cache,r=e.serializedArr;return Tx(function(){for(var n=0;n<r.length;n++)Ia(t,r[n],!1)}),null},E2=od(function(e,t){var r=!1,n=[],i=function(){if(r&&Te.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=ur(c,t.registered);return n.push(u),nd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Te.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 b2(t.registered,i,_2(c))},a={css:i,cx:o,theme:Kr(ka)},s=e.children(a);return r=!0,Ne(Ke,null,Ne(w2,{cache:t,serializedArr:n}),s)});Te.env.NODE_ENV!=="production"&&(E2.displayName="EmotionClassNames");Te.env.NODE_ENV!=="production"&&(Cu=!0,WE=typeof jest<"u"||typeof vi<"u",Cu&&!WE&&(Ou=typeof _a.default<"u"?_a.default:Cu?window:kM,Pu="__EMOTION_REACT_"+g2.version.split(".")[0]+"__",Ou[Pu]&&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."),Ou[Pu]=!0));x2={unlockNeeds:"Unlock needs",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Deduct Jolicoin automatically for digital items",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"JoliCoins used"},YE={jolicoin:x2},A2={unlockNeeds:"\u89E3\u9501\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",unlockWithJolicoinDescription:"\u81EA\u52A8\u4E3A\u6570\u5B57\u7269\u54C1\u6263\u9664Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\uFF0C\u770B\u5E7F\u544A",noThanks:"\u4E0D\uFF0C\u8C22\u8C22",balance:"\u4F59\u989D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},QE={jolicoin:A2},S2={unlockWithJolicoinDescription:"Kurangi Jolicoin secara otomatis untuk item digital",balance:"Saldo",unlockNeeds:"Perlu membuka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",coinUsed:"Jolicoin digunakan"},XE={jolicoin:S2},I2={unlockWithJolicoinDescription:"Memotong jolicoin secara automatik untuk barang digital",unlockNeeds:"Perlu buka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin Digunakan"},ZE={jolicoin:I2},k2={unlockWithJolicoinDescription:"\u0E2B\u0E31\u0E01 jolicoin \u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25",unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin \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",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\u0E40\u0E07\u0E34\u0E19",coinUsed:"Jolicoin \u0E43\u0E0A\u0E49"},T2={jolicoin:k2},R2={unlockWithJolicoinDescription:"Kh\u1EA5u tr\u1EEB t\u1EF1 \u0111\u1ED9ng cho Jolicoin cho c\xE1c m\u1EB7t h\xE0ng k\u1EF9 thu\u1EADt s\u1ED1",unlockNeeds:"C\u1EA7n m\u1EDF",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin \u0111\u1EC3 c\xF3 tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",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"},C2={jolicoin:R2},O2={unlockWithJolicoinDescription:"Bantad ang Jolicoin Awtomatikong para sa mga digital na item",unlockNeeds:"Kailangan buksan",unlockWithJolicoin:"I-unlock gamit ang Jolicoin para sa mas magandang karanasan",useJolicoin:"Gumamit ng Jolicoin",payAndUnlock:"Bayad at i-unlock",noWatchAds:"Hindi, titingnan ang mga ad",noThanks:"Hindi, salamat",balance:"Balansehin",coinUsed:"Jolicoin ang ginamit"},ex={jolicoin:O2},P2={unlockWithJolicoinDescription:"Deducir Jolicoin autom\xE1ticamente para art\xEDculos digitales",unlockNeeds:"Neces. desbloq",unlockWithJolicoin:"Desbloquear con Jolicoin para una mejor experiencia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin utilizados"},N2={jolicoin:P2},D2={unlockWithJolicoinDescription:"\u30C7\u30B8\u30BF\u30EB\u30A2\u30A4\u30C6\u30E0\u306E\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u81EA\u52D5\u5F15\u304D\u843D\u3068\u3057",unlockNeeds:"\u89E3\u9664\u5FC5\u8981",unlockWithJolicoin:"\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3063\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",balance:"\u6B8B\u9AD8",coinUsed:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528"},q2={jolicoin:D2},L2={unlockWithJolicoinDescription:"Deduzir Jolicoin automaticamente para itens digitais",unlockNeeds:"Precisa moeda",unlockWithJolicoin:"Desbloqueie com Jolicoin para uma melhor experi\xEAncia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado"},tx={jolicoin:L2},U2={unlockWithJolicoinDescription:"\uB514\uC9C0\uD138 \uC544\uC774\uD15C\uC5D0 \uB300\uD55C \uC878\uB9AC\uCF54\uC778 \uC790\uB3D9 \uCC28\uAC10",unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",unlockWithJolicoin:"\uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC878\uB9AC\uCF54\uC778\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C\uD558\uACE0 \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9"},j2={jolicoin:U2},M2={unlockNeeds:"\u89E3\u9396\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",unlockWithJolicoinDescription:"\u6578\u4F4D\u7269\u54C1\u81EA\u52D5\u6263\u9664 Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u4ED8\u6B3E\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86\uFF0C\u8B1D\u8B1D",balance:"\u9918\u984D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},F2={jolicoin:M2},Rx={en:{translations:YE},en_GB:{translations:YE},zh:{translations:QE},"zh-Hans":{translations:QE},"zh-Hant":{translations:F2},id:{translations:XE},in:{translations:XE},ms:{translations:ZE},my:{translations:ZE},th:{translations:T2},vi:{translations:C2},fil:{translations:ex},tl:{translations:ex},es:{translations:N2},ja:{translations:q2},pt:{translations:tx},pt_PT:{translations:tx},ko:{translations:j2}},Cx=yr(void 0),Ox=({definition:e,children:t})=>{let r={translations:e};return w(Cx.Provider,{value:r,children:t})},Bu=null,B2={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"},Px=e=>{Bu=e},Nx=()=>{var e;if(typeof Bu!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Bu();return(e=B2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}},$2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=ad(),l={container:D`
|
|
56
|
+
`,wM=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,l]=St(t),[c,d]=St(null),u=kr(null),f=kr(!1),p=kr(t);cr(()=>{let y=document.createElement("style");return y.innerHTML=bM,document.head.appendChild(y),()=>{document.head.removeChild(y)}},[]),cr(()=>{t?!s&&!f.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)}),p.current=!0):s&&(f.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r())},[t]),cr(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let m=at(()=>{c==="leave"?(d(null),l(!1),f.current=!1,r&&r()):c==="enter"&&d(null)},[c,r]),g=at(y=>{y.preventDefault(),y.stopPropagation(),y.target===u.current&&v()},[]),_=at(()=>{f.current=!1,s||(!t||!p.current?(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)})):t&&p.current&&c!=="enter"&&d("enter")),p.current=!1},[s,t,c]),v=at(()=>{f.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),b=at(()=>s&&!f.current,[s]);if(cr(()=>{if(a){let y={show:_,hide:v,isOpen:b};typeof a=="function"?a(y):a&&(a.current=y)}},[_,v,b,a]),!s&&!c)return null;let E=L(R({},Tu.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:o||"rgba(255, 255, 255, 1)"}),I=L(R({},Tu.drawerBackdrop),{pointerEvents:"auto"}),O=c?`drawer-${c}`:"",T=c?`backdrop-${c}`:"";return w("div",{ref:u,style:I,className:T,onClick:g,onTouchMove:y=>y.preventDefault(),onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:E,className:`${O} ${i}`,onAnimationEnd:m,onClick:y=>y.stopPropagation(),onTouchMove:y=>{y.stopPropagation()},onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:L(R({},Tu.drawerContent),{pointerEvents:"auto"}),onTouchMove:y=>y.stopPropagation(),onClick:y=>y.stopPropagation(),children:e})})})},EM=wc(wM);fx={exports:{}},de=fx.exports={};(function(){try{typeof Et.default=="function"?gt=Et.default:gt=Uu}catch(e){gt=Uu}try{typeof clearTimeout=="function"?yt=clearTimeout:yt=ju}catch(e){yt=ju}})();Bt=[],en=!1,da=-1;de.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];Bt.push(new mx(e,t)),Bt.length===1&&!en&&px(hx)};mx.prototype.run=function(){this.fun.apply(null,this.array)};de.title="browser";de.browser=!0;de.env={};de.argv=[];de.version="";de.versions={};de.on=$t;de.addListener=$t;de.once=$t;de.off=$t;de.removeListener=$t;de.removeAllListeners=$t;de.emit=$t;de.prependListener=$t;de.prependOnceListener=$t;de.listeners=function(e){return[]};de.binding=function(e){throw new Error("process.binding is not supported")};de.cwd=function(){return"/"};de.chdir=function(e){throw new Error("process.chdir is not supported")};de.umask=function(){return 0};IM=fx.exports,Te=xM(IM),kM=_a.default||void 0||self;vx=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,we.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(RM(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=TM(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,we.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}(),qe="-ms-",ba="-moz-",j="-webkit-",Zu="comm",ed="rule",td="decl",CM="@import",gx="@keyframes",OM=Math.abs,xa=String.fromCharCode,PM=Yu.default;Aa=1,nn=1,_x=0,$e=0,me=0,an="";GM=function(e,t,r){for(var n=0,i=0;n=i,i=xt(),n===38&&i===12&&(t[r]=1),!Si(i);)Ye();return Oi(e,$e)},KM=function(e,t){var r=-1,n=44;do switch(Si(n)){case 0:n===38&&xt()===12&&(t[r]=1),e[r]+=GM($e-1,t,r);break;case 2:e[r]+=pa(n);break;case 4:if(n===44){e[++r]=xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=xa(n)}while(n=Ye());return e},WM=function(e,t){return wx(KM(bx(e),t))},ME=new Wu.default,YM=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&&!ME.get(r))&&!n){ME.set(e,!0);for(var i=[],o=WM(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]}}},QM=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},XM="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ZM=function(e){var t;return e.type==="comm"&&(0,Rr.default)(t=e.children).call(t,XM)>-1},e2=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(ZM(l))return;break}}(0,we.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".')})}}}},Ex=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},t2=function(e,t){for(var r=e-1;r>=0;r--)if(!Ex(t[r]))return!0;return!1},FE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},r2=function(e,t,r){Ex(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."),FE(e)):t2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),FE(e)))};n2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case td:e.return=xx(e.value,e.length);break;case gx:return tn([yi(e,{value:J(e.value,"@","@"+j)})],n);case ed:if(e.length)return qM(e.props,function(i){switch(DM(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tn([yi(e,{props:[J(i,/:(read-\w+)/,":"+ba+"$1")]})],n);case"::placeholder":return tn([yi(e,{props:[J(i,/:(plac\w+)/,":"+j+"input-$1")]}),yi(e,{props:[J(i,/:(plac\w+)/,":"+ba+"$1")]}),yi(e,{props:[J(i,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},i2=[n2],Ax=function(e){var t=e.key;if(Te.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.
|
|
57
|
+
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,we.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||i2;if(Te.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,we.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=[YM,QM];Te.env.NODE_ENV!=="production"&&l.push(e2({get compat(){return p.compat}}),r2);{var c,d=[HM,Te.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Zu&&c.insert(m.value+"{}"))}:zM(function(m){c.insert(m)})],u=VM((0,Ea.default)(l).call(l,n,d)),f=function(m){return tn($M(m),u)};s=function(m,g,_,v){c=_,Te.env.NODE_ENV!=="production"&&(0,Ei.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,Ei.default)(g))}}),f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new vx({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 p.sheet.hydrate(a),p},la={exports:{}};Sx();o2=!0;nd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||o2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ia=function(e,t,r){nd(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)}};s2={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};c2=/[A-Z]|^ms/g,u2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ix=function(e){return e.charCodeAt(1)===45},$E=function(e){return e!=null&&typeof e!="boolean"},Ru=l2(function(e){return Ix(e)?e:e.replace(c2,"-$&").toLowerCase()}),JE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(u2,function(r,n,i){return bt={name:n,styles:i,next:bt},n})}return s2[e]!==1&&!Ix(e)&&typeof t=="number"&&t!==0?t+"px":t};HE=/label:\s*([^\s;{]+)\s*(;|$)/g;f2=function(e){return e()},kx=_c?_c:!1,Tx=kx||f2,VE=kx||zr,p2={}.hasOwnProperty,id=yr(typeof HTMLElement<"u"?Ax({key:"css"}):null);Te.env.NODE_ENV!=="production"&&(id.displayName="EmotionCacheContext");h2=id.Provider,od=function(e){return wc(function(t,r){var n=Kr(id);return e(t,n,r)})},ka=yr({});Te.env.NODE_ENV!=="production"&&(ka.displayName="EmotionThemeContext");zE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",GE="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",m2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return nd(t,r,n),Tx(function(){return Ia(t,r,n)}),null},v2=od(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[zE],a=[i],s="";typeof e.className=="string"?s=Ii(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=dr(a,void 0,Kr(ka));if(Te.env.NODE_ENV!=="production"&&(0,Rr.default)(n=l.name).call(n,"-")===-1){var c=e[GE];c&&(l=dr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)p2.call(e,u)&&u!=="css"&&u!==zE&&(Te.env.NODE_ENV==="production"||u!==GE)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ne(Ke,null,Ne(m2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ne(o,d))});Te.env.NODE_ENV!=="production"&&(v2.displayName="EmotionCssPropInternal");g2={version:"11.10.5"},KE=!1,y2=od(function(e,t){Te.env.NODE_ENV!=="production"&&!KE&&(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?"),KE=!0);var r=e.styles,n=dr([r],void 0,Kr(ka)),i=ni();return VE(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]),VE(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ia(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});Te.env.NODE_ENV!=="production"&&(y2.displayName="EmotionGlobal");_2=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,wi.default)(o))a=e(o);else{Te.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};w2=function(e){var t=e.cache,r=e.serializedArr;return Tx(function(){for(var n=0;n<r.length;n++)Ia(t,r[n],!1)}),null},E2=od(function(e,t){var r=!1,n=[],i=function(){if(r&&Te.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=dr(c,t.registered);return n.push(u),nd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Te.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 b2(t.registered,i,_2(c))},a={css:i,cx:o,theme:Kr(ka)},s=e.children(a);return r=!0,Ne(Ke,null,Ne(w2,{cache:t,serializedArr:n}),s)});Te.env.NODE_ENV!=="production"&&(E2.displayName="EmotionClassNames");Te.env.NODE_ENV!=="production"&&(Cu=!0,WE=typeof jest<"u"||typeof vi<"u",Cu&&!WE&&(Ou=typeof _a.default<"u"?_a.default:Cu?window:kM,Pu="__EMOTION_REACT_"+g2.version.split(".")[0]+"__",Ou[Pu]&&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."),Ou[Pu]=!0));x2={unlockNeeds:"Unlock needs",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Deduct Jolicoin automatically for digital items",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"JoliCoins used"},YE={jolicoin:x2},A2={unlockNeeds:"\u89E3\u9501\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",unlockWithJolicoinDescription:"\u81EA\u52A8\u4E3A\u6570\u5B57\u7269\u54C1\u6263\u9664Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\uFF0C\u770B\u5E7F\u544A",noThanks:"\u4E0D\uFF0C\u8C22\u8C22",balance:"\u4F59\u989D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},QE={jolicoin:A2},S2={unlockWithJolicoinDescription:"Kurangi Jolicoin secara otomatis untuk item digital",balance:"Saldo",unlockNeeds:"Perlu membuka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",coinUsed:"Jolicoin digunakan"},XE={jolicoin:S2},I2={unlockWithJolicoinDescription:"Memotong jolicoin secara automatik untuk barang digital",unlockNeeds:"Perlu buka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin Digunakan"},ZE={jolicoin:I2},k2={unlockWithJolicoinDescription:"\u0E2B\u0E31\u0E01 jolicoin \u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25",unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin \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",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\u0E40\u0E07\u0E34\u0E19",coinUsed:"Jolicoin \u0E43\u0E0A\u0E49"},T2={jolicoin:k2},R2={unlockWithJolicoinDescription:"Kh\u1EA5u tr\u1EEB t\u1EF1 \u0111\u1ED9ng cho Jolicoin cho c\xE1c m\u1EB7t h\xE0ng k\u1EF9 thu\u1EADt s\u1ED1",unlockNeeds:"C\u1EA7n m\u1EDF",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin \u0111\u1EC3 c\xF3 tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",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"},C2={jolicoin:R2},O2={unlockWithJolicoinDescription:"Bantad ang Jolicoin Awtomatikong para sa mga digital na item",unlockNeeds:"Kailangan buksan",unlockWithJolicoin:"I-unlock gamit ang Jolicoin para sa mas magandang karanasan",useJolicoin:"Gumamit ng Jolicoin",payAndUnlock:"Bayad at i-unlock",noWatchAds:"Hindi, titingnan ang mga ad",noThanks:"Hindi, salamat",balance:"Balansehin",coinUsed:"Jolicoin ang ginamit"},ex={jolicoin:O2},P2={unlockWithJolicoinDescription:"Deducir Jolicoin autom\xE1ticamente para art\xEDculos digitales",unlockNeeds:"Neces. desbloq",unlockWithJolicoin:"Desbloquear con Jolicoin para una mejor experiencia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin utilizados"},N2={jolicoin:P2},D2={unlockWithJolicoinDescription:"\u30C7\u30B8\u30BF\u30EB\u30A2\u30A4\u30C6\u30E0\u306E\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u81EA\u52D5\u5F15\u304D\u843D\u3068\u3057",unlockNeeds:"\u89E3\u9664\u5FC5\u8981",unlockWithJolicoin:"\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3063\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",balance:"\u6B8B\u9AD8",coinUsed:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528"},q2={jolicoin:D2},L2={unlockWithJolicoinDescription:"Deduzir Jolicoin automaticamente para itens digitais",unlockNeeds:"Precisa moeda",unlockWithJolicoin:"Desbloqueie com Jolicoin para uma melhor experi\xEAncia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado"},tx={jolicoin:L2},U2={unlockWithJolicoinDescription:"\uB514\uC9C0\uD138 \uC544\uC774\uD15C\uC5D0 \uB300\uD55C \uC878\uB9AC\uCF54\uC778 \uC790\uB3D9 \uCC28\uAC10",unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",unlockWithJolicoin:"\uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC878\uB9AC\uCF54\uC778\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C\uD558\uACE0 \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9"},j2={jolicoin:U2},M2={unlockNeeds:"\u89E3\u9396\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",unlockWithJolicoinDescription:"\u6578\u4F4D\u7269\u54C1\u81EA\u52D5\u6263\u9664 Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u4ED8\u6B3E\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86\uFF0C\u8B1D\u8B1D",balance:"\u9918\u984D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},F2={jolicoin:M2},Rx={en:{translations:YE},en_GB:{translations:YE},zh:{translations:QE},"zh-Hans":{translations:QE},"zh-Hant":{translations:F2},id:{translations:XE},in:{translations:XE},ms:{translations:ZE},my:{translations:ZE},th:{translations:T2},vi:{translations:C2},fil:{translations:ex},tl:{translations:ex},es:{translations:N2},ja:{translations:q2},pt:{translations:tx},pt_PT:{translations:tx},ko:{translations:j2}},Cx=yr(void 0),Ox=({definition:e,children:t})=>{let r={translations:e};return w(Cx.Provider,{value:r,children:t})},Bu=null,B2={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"},Px=e=>{Bu=e},Nx=()=>{var e;if(typeof Bu!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Bu();return(e=B2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}},$2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=ad(),l={container:D`
|
|
58
58
|
display: flex;
|
|
59
59
|
flex-direction: column;
|
|
60
60
|
height: 100%;
|
|
@@ -91,7 +91,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
91
91
|
${l.button}
|
|
92
92
|
background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
|
|
93
93
|
color: ${c.variant==="primary"?"#fff":"#333"};
|
|
94
|
-
`.name,onClick:u=>{var f;return(f=c.onClick)==null?void 0:f.call(c,u,{hide:a})},children:c.text},d))})]})},te=null,$u=null,_i=null,Ju=null,Nu=null;sd=e=>{let t=J2(),r=null,n=!1,i=Nx(),o=Rx[i].translations,a=()=>window.innerWidth>window.innerHeight,s=u=>{var p;if(!t.contentDocument||!t.contentWindow||!$u){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}Dx(t);let f=t.contentDocument.getElementById("drawer-container");f||(f=t.contentDocument.createElement("div"),f.id="drawer-container",t.contentDocument.body.appendChild(f)),qr(w(h2,{value:$u,children:w(Ox,{definition:o,children:w(EM,{ref:m=>{r=m},isOpen:u,onClose:l,height:a()?"60vh":(p=e.height)!=null?p:"50vh",backdropColor:e.backdropColor,children:w($2,
|
|
94
|
+
`.name,onClick:u=>{var f;return(f=c.onClick)==null?void 0:f.call(c,u,{hide:a})},children:c.text},d))})]})},te=null,$u=null,_i=null,Ju=null,Nu=null;sd=e=>{let t=J2(),r=null,n=!1,i=Nx(),o=Rx[i].translations,a=()=>window.innerWidth>window.innerHeight,s=u=>{var p;if(!t.contentDocument||!t.contentWindow||!$u){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}Dx(t);let f=t.contentDocument.getElementById("drawer-container");f||(f=t.contentDocument.createElement("div"),f.id="drawer-container",t.contentDocument.body.appendChild(f)),qr(w(h2,{value:$u,children:w(Ox,{definition:o,children:w(EM,{ref:m=>{r=m},isOpen:u,onClose:l,height:a()?"60vh":(p=e.height)!=null?p:"50vh",backdropColor:e.backdropColor,children:w($2,L(R({},e),{onClose:l}))})})}),f)},l=()=>{var u;n=!1,t.style.display="none",(u=e.onClose)==null||u.call(e)},c=()=>x(void 0,null,function*(){if(!Ju){console.error("[Modal] Iframe load promise not initialized!");return}yield Ju,n=!0,t.style.display="block",s(!0),setTimeout(()=>{var u;r&&r.show,(u=e.onOpen)==null||u.call(e)},50)}),d=()=>{r&&typeof r.hide=="function"?s(!1):l()};return{show:()=>{n||c()},hide:()=>{n&&d()},isOpen:()=>n,destroy:()=>{n&&d(),console.log("[Modal] Instance destroyed.")}}},z2=(e,t={threshold:.6})=>{let r=kr(null),n=kr(!1),i=at(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return cr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};qx=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=pt(a,["children","fluid","className","style"]);let s=R({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",L(R({className:r,style:s},i),{children:e}))},Lx=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=pt(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=R({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let p=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;p>0&&(u.marginLeft=`-${p/2}px`,u.marginRight=`-${p/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let f=t?K2(e,t):e;return w("div",L(R({className:i,style:u},a),{children:f}))};Ux=u=>{var f=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=f,d=pt(f,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let p=R({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;p.flex=`0 0 ${m}%`,p.maxWidth=`${m}%`}return r!==void 0&&(p.marginLeft=`${r/24*100}%`),w("div",L(R({className:l,style:p},d),{children:e}))},W2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Gr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Gr(()=>{},[e,t]);return w(Ux,{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,onTouchEnd:o,children:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(G2,{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})}),w("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},Y2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=pt(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(qx,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(Lx,{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=>w(W2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},Q2=bc(Y2),Hu=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Hu||{}),X2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=St(null),s=at(u=>{i==null||i({type:u.type===Hu.Quit?"quit":"dismiss"})},[i]),l=at(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=ad();if(!t.length)return w(Ke,{});let d=at(u=>{if(u!==null&&!u.shadowRoot){let f=u.attachShadow({mode:"open"}),p=document.createElement("style");p.textContent=`
|
|
95
95
|
.recommend-panel {
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
@@ -212,7 +212,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
212
212
|
background-color: #7817FF;
|
|
213
213
|
color: #fff;
|
|
214
214
|
}
|
|
215
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",f.appendChild(p),f.appendChild(m),a(f)}},[]);return
|
|
215
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",f.appendChild(p),f.appendChild(m),a(f)}},[]);return cr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&qr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(Q2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((f,p)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${f.type===Hu.Quit?"quit-button":"action-button"}`,onClick:()=>s(f),children:w("span",{className:"button-text-ellipsis",children:f.text})})},p))})]})}),u)}},[o,t,r,n,s,l]),w("div",{ref:d})},jx=e=>{let t=sd({title:e.title,content:w(X2,{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},sn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=";Ta=()=>{let e=vM(Cx);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=Z2(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}},rx=({text:e,initialFontSize:t,minFontSize:r=8,maxWidthPx:n,styles:i})=>{let[o,a]=St(t),s=kr(null),l=kr(null);return mM(()=>{let c=s.current,d=l.current;if(!c||!d)return;n&&n>0?c.style.maxWidth=`${n}px`:c.style.maxWidth="";let u=t;c.style.fontSize=`${u}px`;let f=requestAnimationFrame(()=>{if(d.clientWidth>0)for(;c.scrollWidth>d.clientWidth&&u>r;)u-=1,c.style.fontSize=`${u}px`;a(u)});return()=>cancelAnimationFrame(f)},[e,t,r,n]),w("span",{ref:l,style:i,children:w("span",{ref:s,style:{fontSize:`${o}px`,display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle",maxWidth:"100%"},children:e})})},Ft={coinInfo:D`
|
|
216
216
|
display: flex;
|
|
217
217
|
gap: 24px;
|
|
218
218
|
width: 100%;
|
|
@@ -241,7 +241,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
241
241
|
`,coinIcon:D`
|
|
242
242
|
width: 16px;
|
|
243
243
|
height: 16px;
|
|
244
|
-
`},Mx=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=sn,formatter:n=a=>a>999?`${a}+`:`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ta(),l=13;return w("div",{style:
|
|
244
|
+
`},Mx=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=sn,formatter:n=a=>a>999?`${a}+`:`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ta(),l=13;return w("div",{style:Ft.coinInfo.styles,children:[!i&&w("div",{style:Ft.coinAmount.styles,children:[w(rx,{text:s("jolicoin.unlockNeeds"),initialFontSize:l,minFontSize:8,styles:Ft.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:Ft.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:Ft.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:Ft.coinAmount.styles,children:[w(rx,{text:s("jolicoin.balance"),initialFontSize:l,minFontSize:8,styles:Ft.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:Ft.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:Ft.coinIcon.styles}),w("span",{children:a})]})]})]})},Zr={card:D`
|
|
245
245
|
display: flex;
|
|
246
246
|
flex-direction: column;
|
|
247
247
|
align-items: center;
|
|
@@ -398,17 +398,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
398
398
|
background-color: rgba(255, 255, 255, 0.3);
|
|
399
399
|
border-radius: 2px;
|
|
400
400
|
margin: 0 auto;
|
|
401
|
-
`},oF=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=St(r),d=ad(),{t:u}=Ta(),f=()=>{n(l)},p=
|
|
401
|
+
`},oF=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=St(r),d=ad(),{t:u}=Ta(),f=()=>{n(l)},p=at(()=>{c(!l),o(!l)},[l]);return w("div",{style:`${re.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:re.header.styles,children:[w(Mx,{unlockNeedsAmount:e,balanceAmount:t,coinImage:sn}),w("button",{style:re.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:re.content.styles,children:[w("h2",{style:re.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&w("div",{style:re.autoDeductOption.styles,children:[w("span",{style:D`
|
|
402
402
|
font-size: 14px;
|
|
403
403
|
font-weight: 400;
|
|
404
404
|
line-height: 1.2;
|
|
405
|
-
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:l,onChange:p}),w("span",{style:`${re.toggleSlider.styles} ${l?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:f,children:u(a)}),w("button",{style:re.cancelButton.styles,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})},aF=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=St(r),{t:u}=Ta(),[f,p]=St(n[0].productId),m=()=>{i(f)},g=
|
|
405
|
+
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:l,onChange:p}),w("span",{style:`${re.toggleSlider.styles} ${l?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:f,children:u(a)}),w("button",{style:re.cancelButton.styles,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})},aF=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=St(r),{t:u}=Ta(),[f,p]=St(n[0].productId),m=()=>{i(f)},g=at(v=>{console.log(v),p(v)},[]),_=at(()=>{d(!c),a(!c)},[c]);return w("div",{style:re.modal.styles,children:[w("div",{style:re.header.styles,children:[w(Mx,{unlockNeedsAmount:e,balanceAmount:t,coinImage:sn}),w("button",{style:re.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:re.content.styles,children:[w("div",{style:D`
|
|
406
406
|
padding: 0px;
|
|
407
407
|
`.styles,children:w(iF,{options:n.map(v=>({id:v.productId,coins:v.quantity,price:v.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:v=>g(v.id)})}),!r&&w("div",{style:re.autoDeductOption.styles,children:[w("span",{style:D`
|
|
408
408
|
font-size: 14px;
|
|
409
409
|
font-weight: 400;
|
|
410
410
|
line-height: 1.2;
|
|
411
|
-
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:c,onChange:_}),w("span",{style:`${re.toggleSlider.styles} ${c?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:m,children:u(s)}),w("button",{style:re.cancelButton.styles,onClick:o.bind(null,{type:"FAILED"}),children:u(l)})]})]})},Fx=e=>{let t=sd({title:"",content:w(oF,{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},Bx=e=>{let t=sd({title:"",content:w(aF,{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}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},$x=new Map,ld=(e,t)=>{$x.set(e,t)};ld(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});ld(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:sn;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});sF=/^\{slot-i18n-(.+?)\}/,lF=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ta(),i=n(e,t);return w("span",{children:i||r})};ld(sF,(e,t)=>{var n;let r=e[1];return r?w(lF,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});Le="-ms-",wa="-moz-",
|
|
411
|
+
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:c,onChange:_}),w("span",{style:`${re.toggleSlider.styles} ${c?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:m,children:u(s)}),w("button",{style:re.cancelButton.styles,onClick:o.bind(null,{type:"FAILED"}),children:u(l)})]})]})},Fx=e=>{let t=sd({title:"",content:w(oF,{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},Bx=e=>{let t=sd({title:"",content:w(aF,{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}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},$x=new Map,ld=(e,t)=>{$x.set(e,t)};ld(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});ld(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:sn;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});sF=/^\{slot-i18n-(.+?)\}/,lF=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ta(),i=n(e,t);return w("span",{children:i||r})};ld(sF,(e,t)=>{var n;let r=e[1];return r?w(lF,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});Le="-ms-",wa="-moz-",M="-webkit-",Jx="comm",cd="rule",ud="decl",cF="@import",Hx="@keyframes",uF="@layer",dF=Math.abs,Ra=String.fromCharCode,fF=Yu.default;Ca=1,on=1,zx=0,Je=0,ve=0,ln="";kF=function(e,t,r){for(var n=0,i=0;n=i,i=At(),n===38&&i===12&&(t[r]=1),!Ri(i);)Qe();return Pi(e,Je)},TF=function(e,t){var r=-1,n=44;do switch(Ri(n)){case 0:n===38&&At()===12&&(t[r]=1),e[r]+=kF(Je-1,t,r);break;case 2:e[r]+=va(n);break;case 4:if(n===44){e[++r]=At()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ra(n)}while(n=Qe());return e},RF=function(e,t){return Kx(TF(Gx(e),t))},ox=new Wu.default,CF=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&&!ox.get(r))&&!n){ox.set(e,!0);for(var i=[],o=RF(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]}}},OF=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};PF=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ud:e.return=Wx(e.value,e.length);break;case Hx:return rn([bi(e,{value:F(e.value,"@","@"+M)})],n);case cd:if(e.length)return mF(e.props,function(i){switch(hF(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([bi(e,{props:[F(i,/:(read-\w+)/,":"+wa+"$1")]})],n);case"::placeholder":return rn([bi(e,{props:[F(i,/:(plac\w+)/,":"+M+"input-$1")]}),bi(e,{props:[F(i,/:(plac\w+)/,":"+wa+"$1")]}),bi(e,{props:[F(i,/:(plac\w+)/,Le+"input-$1")]})],n)}return""})}},NF=[PF],DF=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,we.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||NF,i={},o,a=[];o=e.container||document.head,(0,we.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=[CF,OF];{var c,d=[AF,IF(function(m){c.insert(m)})],u=SF((0,Ea.default)(l).call(l,n,d)),f=function(m){return rn(EF(m),u)};s=function(m,g,_,v){c=_,f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new vx({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 p.sheet.hydrate(a),p};qF=function(e){var t=DF(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=dr(s,t.registered,void 0);return Ia(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=dr(s,t.registered),d="animation-"+c.name;return ax(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=dr(s,t.registered);ax(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Du(t.registered,r,LF(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,we.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,qu.default)(Ii).call(Ii,null,t.registered),merge:(0,qu.default)(Du).call(Du,null,t.registered,r)}},LF=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,wi.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},UF=qF({key:"css"}),Yx=UF.css,jF=(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 $x.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let f=u.exec(e);f&&f.index<a&&(o=f,a=f.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=Yx`
|
|
412
412
|
display: 'flex',
|
|
413
413
|
alignItems: 'center',
|
|
414
414
|
gap: '4px',
|
|
@@ -419,7 +419,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
419
419
|
fontWeight: 600,
|
|
420
420
|
lineHeight: '18px',
|
|
421
421
|
width: 'max-content'
|
|
422
|
-
`;return r.length===1?r[0]:w("div",{className:i,children:r})},MF=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[i,o]=St(!0);
|
|
422
|
+
`;return r.length===1?r[0]:w("div",{className:i,children:r})},MF=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[i,o]=St(!0);cr(()=>{let s=setTimeout(()=>{o(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=Yx`
|
|
423
423
|
position: fixed;
|
|
424
424
|
top: max(20px, env(safe-area-inset-top));
|
|
425
425
|
left: 50%;
|
|
@@ -438,9 +438,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
438
438
|
transform: ${i?"translate(-50%, 0)":"translate(-50%, -20px)"};
|
|
439
439
|
text-align: center;
|
|
440
440
|
word-wrap: break-word;
|
|
441
|
-
`;return w("div",{className:`toast toast-${t} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},Qx=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},i=jF(e,t),o=Nx(),a=Rx[o].translations;qr(w(Ox,{definition:a,children:w(MF,{message:i,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n})}),r)}});function Xx(){return x(this,null,function*(){if(fd)return fd;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield le(t);return fd=r,r})}function Zx(){return x(this,null,function*(){let e=new Qt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(pd)return e.resolve(!0),e.promise;let t=yield Xx();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;pd=!0;let o=jx({games:r.games,title:n,buttons:i,onClose:a=>{var s;switch(pd=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;FF(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var fd,FF,pd,eA=I(()=>{"use strict";se();Me();N();Ni();Ot();fd=null;Xx();FF=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:o})},pd=!1});function $F(e){let t=T(T({},BF),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,f=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},p=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:E,iframeTransition:k}=f();X=document.createElement("div"),X.id="jolibox-modal-overlay",X.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;`,H=document.createElement("div"),H.id="jolibox-modal-container",H.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${E};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.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 R=document.createElement("style");R.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(R);let y=document.createElement("div");if(y.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",at=document.createElement("iframe"),at.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${k};`,at.src=r,at.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),at.style.opacity="1",g(),l==null||l(),_e.emit("onModalIframeLoaded",{url:r})},y.appendChild(at),y.appendChild(O),H.appendChild(y),i){let J=document.createElement("div");J.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",J.innerHTML="\u2715",J.onclick=v,H.appendChild(J)}X.appendChild(H),document.body.appendChild(X),X.addEventListener("click",function(J){J.target===X&&v()}),o&&_()}function g(){!X||!H||u||(X.style.visibility="visible",a?requestAnimationFrame(()=>{X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0}):(X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!H)return;let b=O=>{c=O.touches[0].clientY},E=O=>{if(!u)return;d=O.touches[0].clientY;let R=d-c;R>0&&(H&&(H.style.transition="none",H.style.transform=`translateY(${R}px)`),O.preventDefault())},k=()=>{!u||!H||(H.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():H.style.transform="translateY(0)")};H.addEventListener("touchstart",b),H.addEventListener("touchmove",E),H.addEventListener("touchend",k)}function v(){!X||!H||!u||(a?(H.style.transform="translateY(100%)",X.style.opacity="0"):X.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{X&&(X.remove(),X=null,H=null,at=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},p()))}return m(),{close:v}}function tA(){return window.joliboxUI=q(T({},window.joliboxUI),{createIframeModal:$F}),()=>{window.joliboxUI=void 0,X&&X.parentNode&&X.parentNode.removeChild(X),H&&H.parentNode&&H.parentNode.removeChild(H),at&&at.parentNode&&at.parentNode.removeChild(at),X=null,H=null,at=null}}var BF,X,H,at,rA=I(()=>{"use strict";Me();se();N();BF={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},X=null,H=null,at=null});var iA={};pf(iA,{config:()=>ZF});function HF(){fo.on("isAdShowing",e=>{Da=e,On(Da)&&L("updateContainerConfigSync",{displayCapsuleButton:!Da,webviewId:S.webviewId})})}function VF(){_e.on("onInterceptSystemExit",({intercept:e})=>{nA=e})}function zF(){_e.on("onInterceptBackPress",({intercept:e})=>{JF=e}),nt("onBeforeBackPress",({uuid:e})=>{var t,r;_e.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function GF(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),ze("onDocumentReady",{start_timestamp:La,timestamp:Date.now()})})}function KF(){nt("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function WF(e){S.mpType==="game"&&Pt.start(e)}function YF(){nt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),ze("joliboxServiceReady",{start_timestamp:La,timestamp:Date.now()}),WF(t),Px(()=>S.language)}),nt("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function QF(){let e=()=>{ze("onBeforeExit",{timestamp:Date.now()}),Pa==null||Pa(),Na==null||Na(),Pt.close(Date.now()-La)},t=()=>Da||nA;rt.onDoExit(()=>x(this,null,function*(){return t()?!0:On(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):qa!=null&&qa.canShowRecommended&&(yield Zx())?!0:(e(),!1)})),rt.onDoBackPress(()=>x(this,null,function*(){return!!t()}))}function XF(){return x(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield le(e);t&&(qa=t)})}function ZF(){La=Date.now(),YF(),HF(),VF(),zF(),QF(),GF(),KF(),XF(),Na=tA(),Pa=Tp()}var Pa,Na,La,Da,qa,nA,JF,oA=I(()=>{"use strict";Me();se();N();Zt();Rp();_l();eA();Ot();Ni();rA();Da=!1,qa=null,nA=!1,JF=!1;rt.onReady(()=>{})});function aA(e){let t=al.config[e];return t||(t={},al.config[e]=t),(r,n)=>{if(t[r]){ht.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var sA=I(()=>{"use strict";N()});function hd(e){lA=e}function Ua(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ua(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ua(e[r]),t),{})}function $t(e){return typeof e=="number"}function md(e){let t=vd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function vd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var lA,ge,ja,Ma,Fa,Ba,cn,$a,Ja,Ha,Va,za,Ga,Ka,Wa,Ya,Qa,Xa,Za,gd=I(()=>{"use strict";lA=!1;ge=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(lA)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 ${md(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ua(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ua(this._default)}optional(){return this._optional=!0,this}};ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:$t(t)?$t(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):$t(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):$t(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}},Ma=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Fa=class extends ge{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if($t(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if($t(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Ba=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},cn=class extends ge{validate(t){return!0}},$a=class extends ge{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ha=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Va=class extends ge{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 ${md(t)}`)}return!0}},za=class extends ge{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($t(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if($t(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if($t(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}},Ga=class extends ge{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(vd(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}},Ka=class extends ge{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(vd(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Wa=class extends ge{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:md(this.value),actual:r}):!0}},Ya=class extends ge{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(`
|
|
441
|
+
`;return w("div",{className:`toast toast-${t} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},Qx=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},i=jF(e,t),o=Nx(),a=Rx[o].translations;qr(w(Ox,{definition:a,children:w(MF,{message:i,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n})}),r)}});function Xx(){return x(this,null,function*(){if(fd)return fd;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield le(t);return fd=r,r})}function Zx(){return x(this,null,function*(){let e=new Xt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(pd)return e.resolve(!0),e.promise;let t=yield Xx();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;pd=!0;let o=jx({games:r.games,title:n,buttons:i,onClose:a=>{var s;switch(pd=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;FF(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var fd,FF,pd,eA=k(()=>{"use strict";se();Me();N();Ni();Pt();fd=null;Xx();FF=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",S.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})},pd=!1});function $F(e){let t=R(R({},BF),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,f=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},p=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:E,iframeTransition:I}=f();X=document.createElement("div"),X.id="jolibox-modal-overlay",X.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;`,H=document.createElement("div"),H.id="jolibox-modal-container",H.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${E};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let y=document.createElement("div");if(y.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",st=document.createElement("iframe"),st.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${I};`,st.src=r,st.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),st.style.opacity="1",g(),l==null||l(),_e.emit("onModalIframeLoaded",{url:r})},y.appendChild(st),y.appendChild(O),H.appendChild(y),i){let q=document.createElement("div");q.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;",q.innerHTML="\u2715",q.onclick=v,H.appendChild(q)}X.appendChild(H),document.body.appendChild(X),X.addEventListener("click",function(q){q.target===X&&v()}),o&&_()}function g(){!X||!H||u||(X.style.visibility="visible",a?requestAnimationFrame(()=>{X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0}):(X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!H)return;let b=O=>{c=O.touches[0].clientY},E=O=>{if(!u)return;d=O.touches[0].clientY;let T=d-c;T>0&&(H&&(H.style.transition="none",H.style.transform=`translateY(${T}px)`),O.preventDefault())},I=()=>{!u||!H||(H.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():H.style.transform="translateY(0)")};H.addEventListener("touchstart",b),H.addEventListener("touchmove",E),H.addEventListener("touchend",I)}function v(){!X||!H||!u||(a?(H.style.transform="translateY(100%)",X.style.opacity="0"):X.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{X&&(X.remove(),X=null,H=null,st=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},p()))}return m(),{close:v}}function tA(){return window.joliboxUI=L(R({},window.joliboxUI),{createIframeModal:$F}),()=>{window.joliboxUI=void 0,X&&X.parentNode&&X.parentNode.removeChild(X),H&&H.parentNode&&H.parentNode.removeChild(H),st&&st.parentNode&&st.parentNode.removeChild(st),X=null,H=null,st=null}}var BF,X,H,st,rA=k(()=>{"use strict";Me();se();N();BF={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},X=null,H=null,st=null});var iA={};pf(iA,{config:()=>ZF});function HF(){fo.on("isAdShowing",e=>{Da=e,On(Da)&&U("updateContainerConfigSync",{displayCapsuleButton:!Da,webviewId:S.webviewId})})}function VF(){_e.on("onInterceptSystemExit",({intercept:e})=>{nA=e})}function zF(){_e.on("onInterceptBackPress",({intercept:e})=>{JF=e}),it("onBeforeBackPress",({uuid:e})=>{var t,r;_e.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function GF(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),ze("onDocumentReady",{start_timestamp:La,timestamp:Date.now()})})}function KF(){it("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function WF(e){S.mpType==="game"&&Nt.start(e)}function YF(){it("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",R({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),ze("joliboxServiceReady",{start_timestamp:La,timestamp:Date.now()}),WF(t),Px(()=>S.language)}),it("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function QF(){let e=()=>{ze("onBeforeExit",{timestamp:Date.now()}),Pa==null||Pa(),Na==null||Na(),Nt.close(Date.now()-La)},t=()=>Da||nA;nt.onDoExit(()=>x(this,null,function*(){return t()?!0:On(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):qa!=null&&qa.canShowRecommended&&(yield Zx())?!0:(e(),!1)})),nt.onDoBackPress(()=>x(this,null,function*(){return!!t()}))}function XF(){return x(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield le(e);t&&(qa=t)})}function ZF(){La=Date.now(),YF(),HF(),VF(),zF(),QF(),GF(),KF(),XF(),Na=tA(),Pa=Tp()}var Pa,Na,La,Da,qa,nA,JF,oA=k(()=>{"use strict";Me();se();N();er();Rp();_l();eA();Pt();Ni();rA();Da=!1,qa=null,nA=!1,JF=!1;nt.onReady(()=>{})});function aA(e){let t=al.config[e];return t||(t={},al.config[e]=t),(r,n)=>{if(t[r]){ht.warn(`[can i use] ${r} already registered`);return}t[r]=R({},n)}}var sA=k(()=>{"use strict";N()});function hd(e){lA=e}function Ua(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ua(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ua(e[r]),t),{})}function Jt(e){return typeof e=="number"}function md(e){let t=vd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function vd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var lA,ge,ja,Ma,Fa,Ba,cn,$a,Ja,Ha,Va,za,Ga,Ka,Wa,Ya,Qa,Xa,Za,gd=k(()=>{"use strict";lA=!1;ge=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(lA)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 ${md(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ua(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ua(this._default)}optional(){return this._optional=!0,this}};ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:Jt(t)?Jt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Jt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Jt(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}},Ma=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Fa=class extends ge{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Jt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Jt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Ba=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},cn=class extends ge{validate(t){return!0}},$a=class extends ge{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ha=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Va=class extends ge{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 ${md(t)}`)}return!0}},za=class extends ge{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(Jt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Jt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Jt(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}},Ga=class extends ge{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(vd(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}},Ka=class extends ge{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(vd(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Wa=class extends ge{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:md(this.value),actual:r}):!0}},Ya=class extends ge{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(`
|
|
442
442
|
or `);this.errors.push(o)}return n}},Qa=class extends ge{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},Xa=class extends ge{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Za=class extends ge{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 yd(e,t,r="param"){if(e.errors=[],e.path=r,hd(!0),!e.validate(t)){let n=e.errors.join(`
|
|
443
|
-
`);throw e.errors.length=0,hd(!1),new TypeError(n)}}var A,_d=I(()=>{"use strict";gd();gd();A={object(e){return new Ka(e)},array(e){return new za(e)},tuple(...e){return new Qa(...e)},literal(e){return new Wa(e)},or(...e){return new Ya(...e)},symbol(){return new Ba},record(e){return new Ga(e)},function(){return new Ha},boolean(){return new Ma},string(){return new Fa},number(){return new ja},undefined(){return new $a},null(){return new Ja},unknown(){return new cn},any(){return new cn},as(){return new cn},arraybuffer(){return new Xa},enum(...e){return new Va(...e)},typedarray(e){return new Za(e)}}});var es,cA,uA=I(()=>{"use strict";N();lt();_d();Nr();es=1,cA=e=>{function t(n,i){return(...o)=>{var u,f,p,m;let a=Date.now(),s={method:n,trace_id:es};es+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{yd(i.paramsSchema,o,"params")}catch(b){throw hl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:E,message:k}=g;l=b,_=E,v=k}return{code:l,message:v,data:_}}catch(g){let _=g;d=(f=(u=_.code)!=null?u:_.errNo)!=null?f:2e3,l="FAILURE";let v=(m=(p=_.message)!=null?p:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new Nn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>x(this,null,function*(){var f,p,m,g;let a=Mf(o)?o:[o],s=Date.now(),l={method:n,trace_id:es};es+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{yd(i.paramsSchema,a,"params")}catch(b){throw hl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:E,message:k}=v;d=b,c=k,v=E}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(p=(f=v.code)!=null?f:v.errNo)!=null?p:2e3;d="FAILURE";let E=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,k=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:k}),Ae(new Nn(k,b)),u}finally{let _=Date.now()-s;e("apiInvoked",q(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Re,G,P,It=I(()=>{"use strict";sA();Zt();uA();_d();({createAPI:Re,createSyncAPI:G}=cA(ze)),P=aA("native")});var dA,t5,r5,n5,i5,fA=I(()=>{"use strict";N();It();Me();dA=pe(),t5="env",r5="getSystemInfoSync",n5=G(r5,{implement:()=>{var r;let e=L("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion}}}),i5=G(t5,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});dA.registerCommand("API.getSystemInfoSync",n5);dA.registerCommand("API.env",i5);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var pA=h(bd=>{"use strict";N();It();lt();Me();Zt();se();var o5="exitGame",a5="onReady",s5="onJoliboxShow",l5="onJoliboxHide",ts=pe(),rs=ao(Ae),c5=Re(o5,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>x(bd,null,function*(){rs(e).call(bd),On(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Df("onRetentionResult",{shouldStay:t},S.from,!0),yield Pe("exitAppAsync")})}),u5=G(s5,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);nt("onJoliboxEnterForeground",()=>{t.call(this),qn.emit("visible",!0)})}}),d5=G(l5,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);nt("onJoliboxEnterBackground",()=>{t.call(this),qn.emit("visible",!1)})}}),f5=G(a5,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});ts.registerCommand("LifecycleSDK.exit",c5);ts.registerCommand("LifecycleSDK.onReady",f5);ts.registerCommand("LifecycleSDK.onJoliboxShow",u5);ts.registerCommand("LifecycleSDK.onJoliboxHide",d5);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function hA(e){let t={};if(!mr(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 mA(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 vA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function gA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!mr(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 yA=I(()=>{"use strict";N()});var p5,h5,wd,Ed,_A,m5,v5,g5,bA=I(()=>{"use strict";Nr();gl();It();yA();N();lt();se();p5=15,h5=co("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),wd=0,Ed=[],_A=ao(Ae),m5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},v5=e=>{let t=new Qt,r=()=>{};return G("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object(),data:A.object().optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>x(this,null,function*(){var s,l;let a=_A(i.fail);try{if(wd+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:f,appendHostCookie:p}=i,m=hA(i.headers),g=mA(i.method),_=vA(i.timeout),v=gA(i.url,g,c),b=_A(i.success),E=Object.assign({},i,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:f,query:(s=i.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:p});_&&(E.timeout=_);let k=h5(v,E);{let{response:O}=yield k,{code:R,data:y,message:J}=O;if(y&&typeof y=="object"&&"status"in y&&y.status!==200)throw Xt({code:y.status||-1,msg:`request:fail status ${y.status}`});t.resolve({code:R!=null?R:"SUCCESS",data:y,message:J!=null?J:"request:ok"}),b({code:"SUCCESS",message:"request:ok",data:y})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{wd-=1,(l=Ed.shift())==null||l()}});return wd>=p5?(r=()=>{m5(Ed,a=>a===o)},Ed.push(o)):o(),t.promise}})(e),{abort(){t.reject(Xt({code:-1,msg:"request:fail abort"})),r()}}},g5=pe();g5.registerCommand("HttpSDK.request",v5);P("request",{version:"1.0.0"})});function wA(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),E5.includes(t)?t:""}function EA(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 xA(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,y5,_5,b5,w5,F8,B8,E5,Di,xd,Ad=I(()=>{"use strict";It();Me();N();Ot();se();ns=pe(),y5=Re("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let{response:t}=yield le(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield Pe("getLocalStorageAsync",{key:e}),s=EA(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",y5);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});_5=Re("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return x(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield le(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=wA(t),l=xA(t,s);return yield Pe("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ns.registerCommand("StorageSDK.setItem",_5);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});b5=Re("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let t=S.mpId,{response:r}=yield le(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield Pe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ns.registerCommand("StorageSDK.removeItem",b5);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});w5=Re("clearStorage",{implement(){return x(this,null,function*(){let e=S.mpId,{response:t}=yield le(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Pe("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",w5);P("storage.clear",{version:"1.0.0"});F8=Re("getStorageInfo",{implement(){return x(this,null,function*(){let{data:e}=yield Pe("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});B8=G("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),E5=["string","number","boolean","object",""];Di=Re("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield Pe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:EA(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),xd=Re("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return x(this,null,function*(){try{let r=wA(t),n=xA(t,r);return yield Pe("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 x5,A5,S5,Sd,AA=I(()=>{"use strict";N();Me();It();x5=G("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",q(T({},e),{defaultValue:r,maxLength:t}))}});P("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"}});A5=G("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});S5=G("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});Sd=pe();Sd.registerCommand("KeyboardSDK.showKeyboard",x5);Sd.registerCommand("KeyboardSDK.updateKeyboard",A5);Sd.registerCommand("KeyboardSDK.hideKeyboard",S5)});var SA=h(is=>{"use strict";N();It();Zt();var Id=pe(),I5=Re("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional()})),implement:e=>x(is,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Pt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Pt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),k5=Re("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number()})),implement:e=>x(is,null,function*(){let{duration:t,rating:r,score:n}=e;return Pt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),T5=Re("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>x(is,[r],function*({levelId:e,name:t}){let n=[];n.push(Pt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Id.registerCommand("TaskTrackerSDK.levelFinished",I5);Id.registerCommand("TaskTrackerSDK.gamePlayEnded",k5);Id.registerCommand("TaskTrackerSDK.levelUpgrade",T5);P("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var kd,R5,IA,Td=I(()=>{"use strict";se();Me();It();N();Nr();P("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"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});kd=Re("login",{implement(){return x(this,null,function*(){var a;let{data:{isLogin:e}}=yield Pe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};nt("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&i({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw Xt({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new Qt,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),_e.emit("onLoginComplete",o),o})}}),R5=Re("checkSession",{implement(){return x(this,null,function*(){let{data:{isLogin:e}}=yield Pe("checkLoginAsync");return{isLogin:e}})}}),IA=pe();IA.registerCommand("API.login",kd);IA.registerCommand("API.checkSession",R5)});var dn,os,kt,as,fn,ss,un,C5,K,pn,Cr=I(()=>{"use strict";N();dn="UNLOCK_OPTIONS_CHANGED",os="INVOKE_PAYMENT",kt="ON_PAYMENT_RESULT",as="ON_USE_MODAL_EVENT",fn="ON_USE_MODAL_RESULT",ss="ON_USE_MODAL_FREQUENCY",un=new mt,C5=()=>({on:un.on.bind(un),off:un.off.bind(un),emit:un.emit.bind(un)}),K=C5(),pn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Jt(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)}}var qi=I(()=>{"use strict"});var Rd,kA=I(()=>{"use strict";Rd=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)}});var ls,TA,RA,CA,OA,PA=I(()=>{"use strict";Ad();kA();ls=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},TA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Di("joli_coin_use_modal_frequency");if(!n.data)return!0;let i=ls(n.data),o=Rd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),RA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Di("joli_coin_use_modal_frequency"),r=ls((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield xd("joli_coin_use_modal_frequency",JSON.stringify(r))}),CA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Di("joli_coin_payment_frequency");if(!n.data)return!0;let i=ls(n.data),o=Rd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),OA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Di("joli_coin_payment_frequency"),r=ls((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield xd("joli_coin_payment_frequency",JSON.stringify(r))})});function NA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return x(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var DA=I(()=>{"use strict";lt()});var Cd=I(()=>{"use strict"});var P5,cs,Od,N5,us,qA=I(()=>{"use strict";Cd();N();se();Ot();P5=()=>{let[e,t]=[Vf,Gf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:cs,createPaymentInternalError:Od}=P5(),N5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",us=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>x(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{data:r,code:n,message:i}=yield this.placeOrder(t);if(n!=="SUCCESS"||!r||!r.orderId)throw cs(i,1001);if((r==null?void 0:r.status)!=="PENDING")throw Od(`Place order failed, status: ${r==null?void 0:r.status}`,1001);let{orderId:o}=r;this._orderId=o;let a=this.generateCallbackUrl()});this.cancelOrder=t=>x(this,null,function*(){var n,i;let{response:r}=yield le(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw cs((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${N5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Pd,LA,UA=I(()=>{"use strict";Ot();qA();Cd();Pd=class extends us{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId})}placeOrder(r){return x(this,null,function*(){var n,i,o,a;try{let{response:s}=yield le("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw cs((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),Od((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},LA=()=>{let e=new Map;return t=>x(void 0,null,function*(){let r=e.get(t);return r||(r=new Pd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Nd,jA=I(()=>{"use strict";DA();UA();Nd=NA();Nd.registerPaymentHandler("JOLI_COIN",LA())});var BA=h(Ht=>{"use strict";Cr();Ni();Ot();se();Td();qi();PA();jA();var qd=Jt(K,ss);qd.getData();var Dd=Promise.resolve(),FA=e=>x(Ht,null,function*(){Dd=Dd.then(()=>x(Ht,null,function*(){yield le("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Dd});K.on(as,(e,t)=>x(Ht,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield qd.getData();if(!(yield TA(n.joliCoinUseAndCharge.useJolicoin))){K.emit(fn,{useModalResult:"CONFIRM"});return}}let r=Fx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K.emit(fn,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{K.emit(fn,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>x(Ht,null,function*(){yield FA(n)})}});yield RA()}));K.on(os,(e,t)=>x(Ht,null,function*(){try{if(e==="ADS-JOLI_COIN"){let i=yield qd.getData();if(!(yield CA(i.joliCoinUseAndCharge.charge))){K.emit(kt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield MA();if(!r){K.emit(kt,{paymentResult:"FAILED"});return}let n=Bx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:i=>x(Ht,null,function*(){var a,s;if(!((a=S.hostUserInfo)!=null&&a.isLogin)){let{data:l}=yield kd();if(!(l!=null&&l.isLogin)){console.log("login failed");return}let c=yield MA();if(((s=c==null?void 0:c.balance)!=null?s:0)>=t.joliCoinQuantity){K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",i);let{code:o}=yield Nd.invokePayment("JOLI_COIN",i);if(o!=="SUCCESS"){K.emit(kt,{paymentResult:"FAILED"}),n.destroy();return}K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:i})=>{K.emit(kt,{paymentResult:(i!=null?i:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:i=>x(Ht,null,function*(){yield FA(i)})}});yield OA()}catch(r){console.info("payment failed",r),K.emit(kt,{paymentResult:"FAILED"})}}));var MA=()=>x(Ht,null,function*(){var t;let{response:e}=yield le("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function st(e,t,r){return(t=U5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U5(e){var t=j5(e,"string");return typeof t=="symbol"?t:t+""}function j5(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 ds(e,t,r){return(t=M5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M5(e){var t=F5(e,"string");return typeof t=="symbol"?t:t+""}function F5(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 W5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Y5(e){return typeof e=="string"}function Q5(e){return typeof e=="undefined"}function X5(e){return Q5(e)||e===null}function Z5(e){return typeof e=="function"}function pS(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 Li(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function hs(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 oB(e){let t=e.location?hs(e.location,zA):null,r=e.target?hs(e.target,zA):null;return hs(z5(V5({},e),{location:t,target:r}),nB)}function aB(e){let t=e.events.map(n=>oB(n)),r=hs(e.device,iB);return[e.protocolVersion,t,r,e.project]}function sB(){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 fB(e){return new Promise(t=>gS(e)(t))}function gS(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 pB(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Bi(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 mB(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)vB(e[n],t[n])}function vB(e,t){if(Y5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Z5(t)){try{if(e instanceof t)return}catch(r){}if(!X5(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 Ud(e,t,r){return(t=gB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gB(e){var t=yB(e,"string");return typeof t=="symbol"?t:t+""}function yB(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 fs(e,t,r){return(t=_B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(e){var t=bB(e,"string");return typeof t=="symbol"?t:t+""}function bB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vt(e,t,r){return(t=wB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wB(e){var t=EB(e,"string");return typeof t=="symbol"?t:t+""}function EB(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 xB(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 AB(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 CB(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function bS(e){return e.trim()}function OB(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,r){return e.replace(t,r)}function Qd(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function $i(e,t,r){return e.slice(t,r)}function Tt(e){return e.length}function cf(e){return e.length}function ps(e,t){return t.push(e),e}function PB(e,t){return e.map(t).join("")}function ks(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Is,column:gn,length:a,return:""}}function ji(e,t){return RB(ks("",null,null,"",null,null,0),e,{length:-e.length},t)}function NB(){return ye}function DB(){return ye=Ve>0?Ce(yn,--Ve):0,gn--,ye===10&&(gn=1,Is--),ye}function Ze(){return ye=Ve<wS?Ce(yn,Ve++):0,gn++,ye===10&&(gn=1,Is++),ye}function Rt(){return Ce(yn,Ve)}function ms(){return Ve}function Hi(e,t){return $i(yn,e,t)}function Ji(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 ES(e){return Is=gn=1,wS=Tt(yn=e),Ve=0,[]}function xS(e){return yn="",e}function vs(e){return bS(Hi(Ve-1,Xd(e===91?e+2:e===40?e+1:e)))}function qB(e){for(;(ye=Rt())&&ye<33;)Ze();return Ji(e)>2||Ji(ye)>3?"":" "}function LB(e,t){for(;--t&&Ze()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Hi(e,ms()+(t<6&&Rt()==32&&Ze()==32))}function Xd(e){for(;Ze();)switch(ye){case e:return Ve;case 34:case 39:e!==34&&e!==39&&Xd(ye);break;case 40:e===41&&Xd(e);break;case 92:Ze();break}return Ve}function UB(e,t){for(;Ze()&&e+ye!==57&&!(e+ye===84&&Rt()===47););return"/*"+Hi(t,Ve-1)+"*"+Ss(e===47?e:Ze())}function jB(e){for(;!Ji(Rt());)Ze();return Hi(e,Ve)}function MB(e){return xS(gs("",null,null,null,[""],e=ES(e),0,[0],e))}function gs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Ze()){case 40:if(m!=108&&Ce(y,u-1)==58){Qd(y+=B(vs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=vs(b);break;case 9:case 10:case 13:case 32:y+=qB(m);break;case 92:y+=LB(ms()-1,7);continue;case 47:switch(Rt()){case 42:case 47:ps(FB(UB(Ze(),ms()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=Tt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=B(y,/\f/g,"")),p>0&&Tt(y)-u&&ps(p>32?WA(y+";",n,r,u-1):WA(B(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ps(R=KA(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)gs(y,t,R,R,k,o,u,s,O);else switch(f===99&&Ce(y,3)===110?100:f){case 100:case 108:case 109:case 115:gs(e,R,R,n&&ps(KA(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:gs(y,R,R,R,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+Tt(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&DB()==125)continue}switch(y+=Ss(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(Tt(y)-1)*v,v=1;break;case 64:Rt()===45&&(y+=vs(Ze())),f=Rt(),d=u=Tt(E=y+=jB(ms())),b++;break;case 45:m===45&&Tt(y)==2&&(g=0)}}return o}function KA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=cf(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=$i(e,u+1,u=TB(g=a[m])),E=e;v<p;++v)(E=bS(g>0?f[v]+" "+b:B(b,/&\f/g,f[v])))&&(l[_++]=E);return ks(e,t,r,i===0?sf:s,l,c,d)}function FB(e,t,r){return ks(e,t,r,yS,Ss(NB()),$i(e,2,-2),0)}function WA(e,t,r,n){return ks(e,t,r,lf,$i(e,0,n),$i(e,n+1,-1),n)}function vn(e,t){for(var r="",n=cf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function BB(e,t,r,n){switch(e.type){case kB:if(e.children.length)break;case IB:case lf:return e.return=e.return||e.value;case yS:return"";case _S:return e.return=e.value+"{"+vn(e.children,n)+"}";case sf:e.value=e.props.join(",")}return Tt(r=vn(e.children,n))?e.return=e.value+"{"+r+"}":""}function $B(e){var t=cf(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 JB(e){return function(t){t.root||(t=t.return)&&e(t)}}function HB(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function AS(e,t){switch(CB(e,t)){case 5103:return F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+bs+e+Ue+e+e;case 6828:case 4268:return F+e+Ue+e+e;case 6165:return F+e+Ue+"flex-"+e+e;case 5187:return F+e+B(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return F+e+Ue+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return F+e+Ue+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Ue+B(e,"shrink","negative")+e;case 5292:return F+e+Ue+B(e,"basis","preferred-size")+e;case 6060:return F+"box-"+B(e,"-grow","")+F+e+Ue+B(e,"grow","positive")+e;case 4554:return F+B(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,F+"$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(Tt(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+bs+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qd(e,"stretch")?AS(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,Tt(e)-3-(~Qd(e,"!important")&&10))){case 107:return B(e,":",":"+F)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Ce(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Ue+e+e}return e}function ZB(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 ws(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 fr={name:i.name,styles:i.styles,next:fr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fr={name:a.name,styles:a.styles,next:fr},a=a.next;var s=o.styles+";";return s}return n3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function n3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ws(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]+"}":QA(s)&&(n+=jd(o)+":"+XA(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++)QA(a[l])&&(n+=jd(o)+":"+XA(o,a[l])+";");else{var c=ws(e,t,a);switch(o){case"animation":case"animationName":{n+=jd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Md(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="";fr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ws(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ws(r,t,e[s]),n){var l=o;i+=l[s]}ZA.lastIndex=0;for(var c="",d;(d=ZA.exec(i))!==null;)c+="-"+d[1];var u=ZB(i)+c;return{name:u,styles:i,next:fr}}function IS(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function eS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function tS(e,t,r){var n=[],i=IS(e,n,r);return n.length<2?r:i+t(n)}function c3(e,t){Ee.__h&&Ee.__h(Xe,e,nS||t),nS=0;var r=Xe.__H||(Xe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function TS(e,t){var r=c3(Zd++,7);return f3(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function u3(){for(var e;e=kS.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ys),e.__H.__h.forEach(ef),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}function d3(e){var t,r=function(){clearTimeout(n),uS&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);uS&&(t=requestAnimationFrame(r))}function ys(e){var t=Xe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Xe=t}function ef(e){var t=Xe;e.__c=e.__(),Xe=t}function f3(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ts(){if(pr>1)pr--;else{for(var e,t=!1;Mi!==void 0;){var r=Mi;for(Mi=void 0,tf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&CS(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(tf=0,pr--,t)throw e}}function He(e){if(pr>0)return e();pr++;try{return e()}finally{Ts()}}function RS(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.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=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function Oe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Oe(e)}function CS(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 OS(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 PS(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 bn(e){Oe.call(this,void 0),this.x=e,this.s=void 0,this.g=Es-1,this.f=4}function Fi(e){return new bn(e)}function NS(e){var t=e.u;if(e.u=void 0,typeof t=="function"){pr++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,uf(e),n}finally{z=r,Ts()}}}function uf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,NS(e)}function h3(e){if(z!==this)throw new Error("Out-of-order effect");PS(this),z=e,this.f&=-2,8&this.f&&uf(this),Ts()}function Vi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function zi(e){var t=new Vi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function wn(e,t){C[e]=t.bind(null,C[e]||function(){})}function xs(e){Bd&&Bd(),Bd=e&&e.S()}function LS(e){var t=this,r=e.data,n=US(r);n.value=r;var i=TS(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Fi(function(){var p=n.value.value;return p===0?0:p===!0?"":p||""}),d=Fi(function(){return!Array.isArray(c.value)&&!xl(c.value)}),u=zi(function(){if(this.N=jS,d.value){var p=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),f=t.__$u.d;return t.__$u.d=function(){u(),f.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function m3(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:zi(function(){this.N=jS;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function US(e){return TS(function(){return W(e)},[])}function g3(){He(function(){for(var e;e=qS.shift();)DS.call(e)})}function jS(){qS.push(this)===1&&(C.requestAnimationFrame||v3)(g3)}function y3(e,t){let r=ni(e);zr(()=>{r.current=e},[e]),ri(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function fe(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:--_3,__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 C.vnode&&C.vnode(c),c}function zt(e,t,r){return(t=O3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O3(e){var t=P3(e,"string");return typeof t=="symbol"?t:t+""}function P3(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 Gt(e,t,r){return(t=L3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L3(e){var t=U3(e,"string");return typeof t=="symbol"?t:t+""}function U3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dr(e,t,r){return(t=j3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j3(e){var t=M3(e,"string");return typeof t=="symbol"?t:t+""}function M3(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 $A,D5,q5,L5,$d,Jd,dS,B5,$5,JA,J5,H5,HA,V5,z5,G5,fS,K5,eB,tB,VA,rB,hS,mS,vS,zA,nB,iB,Hd,ne,lB,cB,Ui,Bi,uB,zd,dB,Ld,hB,Gd,GA,Kd,Wd,Yd,SB,Ue,bs,F,yS,sf,lf,IB,_S,kB,TB,Ss,RB,Is,gn,wS,Ve,ye,yn,VB,zB,GB,YA,KB,WB,YB,QB,XB,e3,t3,r3,SS,QA,jd,XA,ZA,fr,i3,o3,a3,s3,l3,_n,Zd,Xe,Fd,rS,nS,kS,Ee,iS,oS,aS,sS,lS,cS,uS,p3,z,Mi,pr,tf,Es,DS,Bd,qS,v3,je,_3,b3,Kt,rf,nf,_s,w3,E3,x3,A3,S3,I3,k3,T3,R3,C3,of,mn,hn,N3,D3,q3,af,As,QK,MS=I(()=>{"use strict";Lr();Oo();$A=Object.getOwnPropertySymbols,D5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,L5=(e,t)=>{var r={};for(var n in e)D5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$A)for(var n of $A(e))t.indexOf(n)<0&&q5.call(e,n)&&(r[n]=e[n]);return r};$d=class{constructor(t){st(this,"context",void 0),st(this,"continueCallback",void 0),st(this,"isBeforeAdCalled",!1),st(this,"isBeforeRewardCalled",!1),st(this,"isAdDismissedCalled",!1),st(this,"isAdViewedCalled",!1),st(this,"isAfterAdCalled",!1),st(this,"currentProvider",void 0),st(this,"currentClientParams",void 0),st(this,"adsHasResponse",!1),st(this,"videoChecker",window.document.createElement("video")),st(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),r()}),this.context=t}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()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s;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":{t==null||t(r),(a=this.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return x(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(i=>{this.continueCallback=i;let o;switch(r.type){case"preroll":{o={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{o={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:{o={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 a,s,l,c;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(c=this.continueCallback)==null||c.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(o,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Jd=class{constructor(t){ds(this,"context",void 0),ds(this,"adBreakIsShowing",!1),ds(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ds(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()})}},dS=Object.defineProperty,B5=Object.defineProperties,$5=Object.getOwnPropertyDescriptors,JA=Object.getOwnPropertySymbols,J5=Object.prototype.hasOwnProperty,H5=Object.prototype.propertyIsEnumerable,HA=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V5=(e,t)=>{for(var r in t||(t={}))J5.call(t,r)&&HA(e,r,t[r]);if(JA)for(var r of JA(t))H5.call(t,r)&&HA(e,r,t[r]);return e},z5=(e,t)=>B5(e,$5(t)),G5=(e,t)=>{for(var r in t)dS(e,r,{get:t[r],enumerable:!0})},fS=(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},K5=(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}eB=(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))(eB||{});tB={log:Li("log"),warn:Li("warn"),info:Li("info"),error:Li("error"),debug:Li("debug")};Object.assign(globalThis,{logger:tB});VA=Symbol.for("Jolibox.canIUseMap"),rB={};globalThis[VA]||(globalThis[VA]=rB);hS=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(hS||{}),mS=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(mS||{}),vS=(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))(vS||{}),zA=["name","params"],nB=["name","type","location","target","extra","timestamp","userId"],iB=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];sB();navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Hd=class Vd{constructor(t){this.element=t,this.next=Vd.Undefined,this.prev=Vd.Undefined}};Hd.Undefined=new Hd(void 0);ne=Hd,lB=class{constructor(){this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ne.Undefined}clear(){let e=this._first;for(;e!==ne.Undefined;){let t=e.next;e.prev=ne.Undefined,e.next=ne.Undefined,e=t}this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ne(e);if(this._first===ne.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!==ne.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ne.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ne.Undefined&&e.next!==ne.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ne.Undefined&&e.next===ne.Undefined?(this._first=ne.Undefined,this._last=ne.Undefined):e.next===ne.Undefined?(this._last=this._last.prev,this._last.next=ne.Undefined):e.prev===ne.Undefined&&(this._first=this._first.next,this._first.prev=ne.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ne.Undefined;)yield e.element,e=e.next}},cB=0,Ui=class{constructor(e){this.value=e,this.id=cB++}},Bi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Ui&&(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 Ui(e);return this._listeners?this._listeners instanceof Ui?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,f;if(!this._disposed){if(this._listeners instanceof Ui)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 p=this._listeners.indexOf(l);p>=0&&(this._listeners.splice(p,1),this._size--,this._size===0&&((f=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||f.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 Ui?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},uB=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 Bi,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 lB,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)}},zd={};G5(zd,{None:()=>dB,filter:()=>pB,once:()=>gS,toPromise:()=>fB});dB=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ld=Symbol.for("Jolibox.hostEmitter"),hB=()=>{let e=new uB;return globalThis[Ld]||(globalThis[Ld]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ld]};hB();Gd=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Bi,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return mB(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}};Gd=fS([pS],Gd);GA=class{constructor(){this._onWillExecuteCommand=new Bi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Bi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gd,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=W5(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 K5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),zd.toPromise(zd.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{}}};GA=fS([pS],GA);Kd=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ud(this,"context",void 0),Ud(this,"placement","GAME"),Ud(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:vS.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:hS.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:mS.WebSDK};return aB(i)}};Wd=class{constructor(t){fs(this,"configs",null),fs(this,"firstRun",!0),fs(this,"context",void 0),fs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return x(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}};Yd=class{constructor(t,r){Vt(this,"name","ADSENSE"),Vt(this,"context",void 0),Vt(this,"contextInfo",void 0),Vt(this,"configured",!1),Vt(this,"initParams",void 0),Vt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Vt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=L5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Vt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Vt(this,"adUnit",n=>x(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:f}=n,p;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?p=document.querySelector(l):p=l,!p)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),f&&_.setAttribute("style",f),(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",p.appendChild(_),_.appendChild(v)}else p.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let E=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"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 x(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),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};SB=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(AB(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xB(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}(),Ue="-ms-",bs="-moz-",F="-webkit-",yS="comm",sf="rule",lf="decl",IB="@import",_S="@keyframes",kB="@layer",TB=Math.abs,Ss=String.fromCharCode,RB=Object.assign;Is=1,gn=1,wS=0,Ve=0,ye=0,yn="";VB=function(e,t,r){for(var n=0,i=0;n=i,i=Rt(),n===38&&i===12&&(t[r]=1),!Ji(i);)Ze();return Hi(e,Ve)},zB=function(e,t){var r=-1,n=44;do switch(Ji(n)){case 0:n===38&&Rt()===12&&(t[r]=1),e[r]+=VB(Ve-1,t,r);break;case 2:e[r]+=vs(n);break;case 4:if(n===44){e[++r]=Rt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ss(n)}while(n=Ze());return e},GB=function(e,t){return xS(zB(ES(e),t))},YA=new WeakMap,KB=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&&!YA.get(r))&&!n){YA.set(e,!0);for(var i=[],o=GB(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]}}},WB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};YB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lf:e.return=AS(e.value,e.length);break;case _S:return vn([ji(e,{value:B(e.value,"@","@"+F)})],n);case sf:if(e.length)return PB(e.props,function(i){switch(OB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([ji(e,{props:[B(i,/:(read-\w+)/,":"+bs+"$1")]})],n);case"::placeholder":return vn([ji(e,{props:[B(i,/:(plac\w+)/,":"+F+"input-$1")]}),ji(e,{props:[B(i,/:(plac\w+)/,":"+bs+"$1")]}),ji(e,{props:[B(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},QB=[YB],XB=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||QB,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=[KB,WB];{var c,d=[BB,JB(function(m){c.insert(m)})],u=$B(l.concat(n,d)),f=function(m){return vn(MB(m),u)};s=function(m,g,_,v){c=_,f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new SB({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 p.sheet.hydrate(a),p};e3={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},t3=/[A-Z]|^ms/g,r3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SS=function(e){return e.charCodeAt(1)===45},QA=function(e){return e!=null&&typeof e!="boolean"},jd=HB(function(e){return SS(e)?e:e.replace(t3,"-$&").toLowerCase()}),XA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(r3,function(r,n,i){return fr={name:n,styles:i,next:fr},n})}return e3[e]!==1&&!SS(e)&&typeof t=="number"&&t!==0?t+"px":t};ZA=/label:\s*([^\s;{]+)\s*(;|$)/g;i3=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},o3=function(e,t,r){i3(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)}};a3=function(e){var t=XB(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=Md(s,t.registered,void 0);return o3(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=Md(s,t.registered),d="animation-"+c.name;return eS(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=Md(s,t.registered);eS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return tS(t.registered,r,s3(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:IS.bind(null,t.registered),merge:tS.bind(null,t.registered,r)}},s3=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},l3=a3({key:"css"}),_n=l3.css,nS=0,kS=[],Ee=C,iS=Ee.__b,oS=Ee.__r,aS=Ee.diffed,sS=Ee.__c,lS=Ee.unmount,cS=Ee.__;Ee.__b=function(e){Xe=null,iS&&iS(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),cS&&cS(e,t)},Ee.__r=function(e){oS&&oS(e),Zd=0;var t=(Xe=e.__c).__H;t&&(Fd===Xe?(t.__h=[],Xe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ys),t.__h.forEach(ef),t.__h=[],Zd=0)),Fd=Xe},Ee.diffed=function(e){aS&&aS(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kS.push(t)!==1&&rS===Ee.requestAnimationFrame||((rS=Ee.requestAnimationFrame)||d3)(u3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Fd=Xe=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ys),r.__h=r.__h.filter(function(n){return!n.__||ef(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(n,r.__v)}}),sS&&sS(e,t)},Ee.unmount=function(e){lS&&lS(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ys(n)}catch(i){t=i}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};uS=typeof requestAnimationFrame=="function";p3=Symbol.for("preact-signals");z=void 0,Mi=void 0,pr=0,tf=0,Es=0;Oe.prototype.brand=p3;Oe.prototype.h=function(){return!0};Oe.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)};Oe.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)}};Oe.prototype.subscribe=function(e){var t=this;return zi(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}})};Oe.prototype.valueOf=function(){return this.value};Oe.prototype.toString=function(){return this.value+""};Oe.prototype.toJSON=function(){return this.value};Oe.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}};Object.defineProperty(Oe.prototype,"value",{get:function(){var e=RS(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(tf>100)throw new Error("Cycle detected");this.v=e,this.i++,Es++,pr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ts()}}}});(bn.prototype=new Oe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Es))return!0;if(this.g=Es,this.f|=1,this.i>0&&!CS(this))return this.f&=-2,!0;var e=z;try{OS(this),z=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 z=e,PS(this),this.f&=-2,!0};bn.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)}Oe.prototype.S.call(this,e)};bn.prototype.U=function(e){if(this.t!==void 0&&(Oe.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)}};bn.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(bn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RS(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Vi.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()}};Vi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,NS(this),OS(this),pr++;var e=z;return z=this,h3.bind(this,e)};Vi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Mi,Mi=this)};Vi.prototype.d=function(){this.f|=8,1&this.f||uf(this)};qS=[];zi(function(){DS=this.N})();LS.displayName="_st";Object.defineProperties(Oe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:LS},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});wn("__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 Oe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});wn("__r",function(e,t){xs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return zi(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),xs(r),e(t)});wn("__e",function(e,t,r,n){xs(),e(t,r,n)});wn("diffed",function(e,t){xs();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=m3(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});wn("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)});wn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ge.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};v3=function(e){queueMicrotask(function(){queueMicrotask(e)})};je=_n`
|
|
443
|
+
`);throw e.errors.length=0,hd(!1),new TypeError(n)}}var A,_d=k(()=>{"use strict";gd();gd();A={object(e){return new Ka(e)},array(e){return new za(e)},tuple(...e){return new Qa(...e)},literal(e){return new Wa(e)},or(...e){return new Ya(...e)},symbol(){return new Ba},record(e){return new Ga(e)},function(){return new Ha},boolean(){return new Ma},string(){return new Fa},number(){return new ja},undefined(){return new $a},null(){return new Ja},unknown(){return new cn},any(){return new cn},as(){return new cn},arraybuffer(){return new Xa},enum(...e){return new Va(...e)},typedarray(e){return new Za(e)}}});var es,cA,uA=k(()=>{"use strict";N();lt();_d();Nr();es=1,cA=e=>{function t(n,i){return(...o)=>{var u,f,p,m;let a=Date.now(),s={method:n,trace_id:es};es+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{yd(i.paramsSchema,o,"params")}catch(b){throw hl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:E,message:I}=g;l=b,_=E,v=I}return{code:l,message:v,data:_}}catch(g){let _=g;d=(f=(u=_.code)!=null?u:_.errNo)!=null?f:2e3,l="FAILURE";let v=(m=(p=_.message)!=null?p:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new Nn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",L(R({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>x(this,null,function*(){var f,p,m,g;let a=Mf(o)?o:[o],s=Date.now(),l={method:n,trace_id:es};es+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{yd(i.paramsSchema,a,"params")}catch(b){throw hl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:E,message:I}=v;d=b,c=I,v=E}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(p=(f=v.code)!=null?f:v.errNo)!=null?p:2e3;d="FAILURE";let E=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,I=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:I}),Ae(new Nn(I,b)),u}finally{let _=Date.now()-s;e("apiInvoked",L(R({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Re,G,P,It=k(()=>{"use strict";sA();er();uA();_d();({createAPI:Re,createSyncAPI:G}=cA(ze)),P=aA("native")});var dA,tB,rB,nB,iB,fA=k(()=>{"use strict";N();It();Me();dA=pe(),tB="env",rB="getSystemInfoSync",nB=G(rB,{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}}}),iB=G(tB,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});dA.registerCommand("API.getSystemInfoSync",nB);dA.registerCommand("API.env",iB);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var pA=h(bd=>{"use strict";N();It();lt();Me();er();se();var oB="exitGame",aB="onReady",sB="onJoliboxShow",lB="onJoliboxHide",ts=pe(),rs=ao(Ae),cB=Re(oB,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>x(bd,null,function*(){rs(e).call(bd),On(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Df("onRetentionResult",{shouldStay:t},S.from,!0),yield Pe("exitAppAsync")})}),uB=G(sB,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);it("onJoliboxEnterForeground",()=>{t.call(this),qn.emit("visible",!0)})}}),dB=G(lB,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);it("onJoliboxEnterBackground",()=>{t.call(this),qn.emit("visible",!1)})}}),fB=G(aB,{paramsSchema:A.tuple(A.function()),implement(e){let t=rs(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});ts.registerCommand("LifecycleSDK.exit",cB);ts.registerCommand("LifecycleSDK.onReady",fB);ts.registerCommand("LifecycleSDK.onJoliboxShow",uB);ts.registerCommand("LifecycleSDK.onJoliboxHide",dB);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function hA(e){let t={};if(!mr(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 mA(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 vA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function gA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!mr(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 yA=k(()=>{"use strict";N()});var pB,hB,wd,Ed,_A,mB,vB,gB,bA=k(()=>{"use strict";Nr();gl();It();yA();N();lt();se();pB=15,hB=co("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),wd=0,Ed=[],_A=ao(Ae),mB=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},vB=e=>{let t=new Xt,r=()=>{};return G("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object(),data:A.object().optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>x(this,null,function*(){var s,l;let a=_A(i.fail);try{if(wd+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:f,appendHostCookie:p}=i,m=hA(i.headers),g=mA(i.method),_=vA(i.timeout),v=gA(i.url,g,c),b=_A(i.success),E=Object.assign({},i,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:f,query:(s=i.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:p});_&&(E.timeout=_);let I=hB(v,E);{let{response:O}=yield I,{code:T,data:y,message:q}=O;if(y&&typeof y=="object"&&"status"in y&&y.status!==200)throw Zt({code:y.status||-1,msg:`request:fail status ${y.status}`});t.resolve({code:T!=null?T:"SUCCESS",data:y,message:q!=null?q:"request:ok"}),b({code:"SUCCESS",message:"request:ok",data:y})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{wd-=1,(l=Ed.shift())==null||l()}});return wd>=pB?(r=()=>{mB(Ed,a=>a===o)},Ed.push(o)):o(),t.promise}})(e),{abort(){t.reject(Zt({code:-1,msg:"request:fail abort"})),r()}}},gB=pe();gB.registerCommand("HttpSDK.request",vB);P("request",{version:"1.0.0"})});function wA(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),EB.includes(t)?t:""}function EA(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 xA(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,yB,_B,bB,wB,F8,B8,EB,Di,xd,Ad=k(()=>{"use strict";It();Me();N();Pt();se();ns=pe(),yB=Re("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let{response:t}=yield le(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield Pe("getLocalStorageAsync",{key:e}),s=EA(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",yB);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});_B=Re("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return x(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield le(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=wA(t),l=xA(t,s);return yield Pe("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ns.registerCommand("StorageSDK.setItem",_B);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});bB=Re("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let t=S.mpId,{response:r}=yield le(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield Pe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ns.registerCommand("StorageSDK.removeItem",bB);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});wB=Re("clearStorage",{implement(){return x(this,null,function*(){let e=S.mpId,{response:t}=yield le(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Pe("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",wB);P("storage.clear",{version:"1.0.0"});F8=Re("getStorageInfo",{implement(){return x(this,null,function*(){let{data:e}=yield Pe("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});B8=G("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),EB=["string","number","boolean","object",""];Di=Re("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield Pe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:EA(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),xd=Re("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return x(this,null,function*(){try{let r=wA(t),n=xA(t,r);return yield Pe("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 xB,AB,SB,Sd,AA=k(()=>{"use strict";N();Me();It();xB=G("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.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",L(R({},e),{defaultValue:r,maxLength:t}))}});P("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"}});AB=G("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){U("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});SB=G("hideKeyboard",{implement(){U("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});Sd=pe();Sd.registerCommand("KeyboardSDK.showKeyboard",xB);Sd.registerCommand("KeyboardSDK.updateKeyboard",AB);Sd.registerCommand("KeyboardSDK.hideKeyboard",SB)});var SA=h(is=>{"use strict";N();It();er();var Id=pe(),IB=Re("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional()})),implement:e=>x(is,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Nt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Nt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),kB=Re("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number()})),implement:e=>x(is,null,function*(){let{duration:t,rating:r,score:n}=e;return Nt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),TB=Re("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>x(is,[r],function*({levelId:e,name:t}){let n=[];n.push(Nt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Id.registerCommand("TaskTrackerSDK.levelFinished",IB);Id.registerCommand("TaskTrackerSDK.gamePlayEnded",kB);Id.registerCommand("TaskTrackerSDK.levelUpgrade",TB);P("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var kd,RB,IA,Td=k(()=>{"use strict";se();Me();It();N();Nr();P("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"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});kd=Re("login",{implement(){return x(this,null,function*(){var a;let{data:{isLogin:e}}=yield Pe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};it("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&i({isLogin:s,token:l})});let t=U("loginSync"),{data:{uuid:r}}=t;if(!r)throw Zt({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new Xt,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),_e.emit("onLoginComplete",o),o})}}),RB=Re("checkSession",{implement(){return x(this,null,function*(){let{data:{isLogin:e}}=yield Pe("checkLoginAsync");return{isLogin:e}})}}),IA=pe();IA.registerCommand("API.login",kd);IA.registerCommand("API.checkSession",RB)});var dn,os,kt,as,fn,ss,un,CB,K,pn,Cr=k(()=>{"use strict";N();dn="UNLOCK_OPTIONS_CHANGED",os="INVOKE_PAYMENT",kt="ON_PAYMENT_RESULT",as="ON_USE_MODAL_EVENT",fn="ON_USE_MODAL_RESULT",ss="ON_USE_MODAL_FREQUENCY",un=new mt,CB=()=>({on:un.on.bind(un),off:un.off.bind(un),emit:un.emit.bind(un)}),K=CB(),pn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Ht(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)}}var qi=k(()=>{"use strict"});var Rd,kA=k(()=>{"use strict";Rd=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)}});var ls,TA,RA,CA,OA,PA=k(()=>{"use strict";Ad();kA();ls=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},TA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Di("joli_coin_use_modal_frequency");if(!n.data)return!0;let i=ls(n.data),o=Rd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),RA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Di("joli_coin_use_modal_frequency"),r=ls((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield xd("joli_coin_use_modal_frequency",JSON.stringify(r))}),CA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Di("joli_coin_payment_frequency");if(!n.data)return!0;let i=ls(n.data),o=Rd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),OA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Di("joli_coin_payment_frequency"),r=ls((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield xd("joli_coin_payment_frequency",JSON.stringify(r))})});function NA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return x(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var DA=k(()=>{"use strict";lt()});var Cd=k(()=>{"use strict"});var PB,cs,Od,NB,us,qA=k(()=>{"use strict";Cd();N();se();Pt();PB=()=>{let[e,t]=[Vf,Gf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:cs,createPaymentInternalError:Od}=PB(),NB=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",us=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>x(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{data:r,code:n,message:i}=yield this.placeOrder(t);if(n!=="SUCCESS"||!r||!r.orderId)throw cs(i,1001);if((r==null?void 0:r.status)!=="PENDING")throw Od(`Place order failed, status: ${r==null?void 0:r.status}`,1001);let{orderId:o}=r;this._orderId=o;let a=this.generateCallbackUrl()});this.cancelOrder=t=>x(this,null,function*(){var n,i;let{response:r}=yield le(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw cs((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(R({},this.generatePaymentContext()))),`${NB}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Pd,LA,UA=k(()=>{"use strict";Pt();qA();Cd();Pd=class extends us{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId})}placeOrder(r){return x(this,null,function*(){var n,i,o,a;try{let{response:s}=yield le("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw cs((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),Od((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},LA=()=>{let e=new Map;return t=>x(void 0,null,function*(){let r=e.get(t);return r||(r=new Pd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Nd,jA=k(()=>{"use strict";DA();UA();Nd=NA();Nd.registerPaymentHandler("JOLI_COIN",LA())});var BA=h(Vt=>{"use strict";Cr();Ni();Pt();se();Td();qi();PA();jA();var qd=Ht(K,ss);qd.getData();var Dd=Promise.resolve(),FA=e=>x(Vt,null,function*(){Dd=Dd.then(()=>x(Vt,null,function*(){yield le("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Dd});K.on(as,(e,t)=>x(Vt,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield qd.getData();if(!(yield TA(n.joliCoinUseAndCharge.useJolicoin))){K.emit(fn,{useModalResult:"CONFIRM"});return}}let r=Fx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K.emit(fn,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{K.emit(fn,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>x(Vt,null,function*(){yield FA(n)})}});yield RA()}));K.on(os,(e,t)=>x(Vt,null,function*(){try{if(e==="ADS-JOLI_COIN"){let i=yield qd.getData();if(!(yield CA(i.joliCoinUseAndCharge.charge))){K.emit(kt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield MA();if(!r){K.emit(kt,{paymentResult:"FAILED"});return}let n=Bx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:i=>x(Vt,null,function*(){var a,s;if(!((a=S.hostUserInfo)!=null&&a.isLogin)){let{data:l}=yield kd();if(!(l!=null&&l.isLogin)){console.log("login failed");return}let c=yield MA();if(((s=c==null?void 0:c.balance)!=null?s:0)>=t.joliCoinQuantity){K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",i);let{code:o}=yield Nd.invokePayment("JOLI_COIN",i);if(o!=="SUCCESS"){K.emit(kt,{paymentResult:"FAILED"}),n.destroy();return}K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:i})=>{K.emit(kt,{paymentResult:(i!=null?i:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:i=>x(Vt,null,function*(){yield FA(i)})}});yield OA()}catch(r){console.info("payment failed",r),K.emit(kt,{paymentResult:"FAILED"})}}));var MA=()=>x(Vt,null,function*(){var t;let{response:e}=yield le("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function Xe(e,t,r){return(t=UB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UB(e){var t=jB(e,"string");return typeof t=="symbol"?t:t+""}function jB(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 ds(e,t,r){return(t=MB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MB(e){var t=FB(e,"string");return typeof t=="symbol"?t:t+""}function FB(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 WB(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function YB(e){return typeof e=="string"}function QB(e){return typeof e=="undefined"}function XB(e){return QB(e)||e===null}function ZB(e){return typeof e=="function"}function pS(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 Li(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function hs(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 o5(e){let t=e.location?hs(e.location,zA):null,r=e.target?hs(e.target,zA):null;return hs(zB(VB({},e),{location:t,target:r}),n5)}function a5(e){let t=e.events.map(n=>o5(n)),r=hs(e.device,i5);return[e.protocolVersion,t,r,e.project]}function s5(){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 f5(e){return new Promise(t=>gS(e)(t))}function gS(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 p5(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Bi(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 m5(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)v5(e[n],t[n])}function v5(e,t){if(YB(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(ZB(t)){try{if(e instanceof t)return}catch(r){}if(!XB(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 Ud(e,t,r){return(t=g5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g5(e){var t=y5(e,"string");return typeof t=="symbol"?t:t+""}function y5(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 fs(e,t,r){return(t=_5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _5(e){var t=b5(e,"string");return typeof t=="symbol"?t:t+""}function b5(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 zt(e,t,r){return(t=w5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w5(e){var t=E5(e,"string");return typeof t=="symbol"?t:t+""}function E5(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 x5(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 A5(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 C5(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function bS(e){return e.trim()}function O5(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Qd(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function $i(e,t,r){return e.slice(t,r)}function Rt(e){return e.length}function cf(e){return e.length}function ps(e,t){return t.push(e),e}function P5(e,t){return e.map(t).join("")}function ks(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Is,column:gn,length:a,return:""}}function ji(e,t){return R5(ks("",null,null,"",null,null,0),e,{length:-e.length},t)}function N5(){return ye}function D5(){return ye=Ve>0?Ce(yn,--Ve):0,gn--,ye===10&&(gn=1,Is--),ye}function et(){return ye=Ve<wS?Ce(yn,Ve++):0,gn++,ye===10&&(gn=1,Is++),ye}function Ct(){return Ce(yn,Ve)}function ms(){return Ve}function Hi(e,t){return $i(yn,e,t)}function Ji(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 ES(e){return Is=gn=1,wS=Rt(yn=e),Ve=0,[]}function xS(e){return yn="",e}function vs(e){return bS(Hi(Ve-1,Xd(e===91?e+2:e===40?e+1:e)))}function q5(e){for(;(ye=Ct())&&ye<33;)et();return Ji(e)>2||Ji(ye)>3?"":" "}function L5(e,t){for(;--t&&et()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Hi(e,ms()+(t<6&&Ct()==32&&et()==32))}function Xd(e){for(;et();)switch(ye){case e:return Ve;case 34:case 39:e!==34&&e!==39&&Xd(ye);break;case 40:e===41&&Xd(e);break;case 92:et();break}return Ve}function U5(e,t){for(;et()&&e+ye!==57&&!(e+ye===84&&Ct()===47););return"/*"+Hi(t,Ve-1)+"*"+Ss(e===47?e:et())}function j5(e){for(;!Ji(Ct());)et();return Hi(e,Ve)}function M5(e){return xS(gs("",null,null,null,[""],e=ES(e),0,[0],e))}function gs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,E="",I=i,O=o,T=n,y=E;_;)switch(m=b,b=et()){case 40:if(m!=108&&Ce(y,u-1)==58){Qd(y+=$(vs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=vs(b);break;case 9:case 10:case 13:case 32:y+=q5(m);break;case 92:y+=L5(ms()-1,7);continue;case 47:switch(Ct()){case 42:case 47:ps(F5(U5(et(),ms()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=Rt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=$(y,/\f/g,"")),p>0&&Rt(y)-u&&ps(p>32?WA(y+";",n,r,u-1):WA($(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ps(T=KA(y,t,r,c,d,i,s,E,I=[],O=[],u),o),b===123)if(d===0)gs(y,t,T,T,I,o,u,s,O);else switch(f===99&&Ce(y,3)===110?100:f){case 100:case 108:case 109:case 115:gs(e,T,T,n&&ps(KA(e,T,T,0,0,i,s,E,i,I=[],u),O),i,O,u,s,n?I:O);break;default:gs(y,T,T,T,[""],O,0,s,O)}}c=d=p=0,g=v=1,E=y="",u=a;break;case 58:u=1+Rt(y),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&D5()==125)continue}switch(y+=Ss(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(Rt(y)-1)*v,v=1;break;case 64:Ct()===45&&(y+=vs(et())),f=Ct(),d=u=Rt(E=y+=j5(ms())),b++;break;case 45:m===45&&Rt(y)==2&&(g=0)}}return o}function KA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=cf(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=$i(e,u+1,u=T5(g=a[m])),E=e;v<p;++v)(E=bS(g>0?f[v]+" "+b:$(b,/&\f/g,f[v])))&&(l[_++]=E);return ks(e,t,r,i===0?sf:s,l,c,d)}function F5(e,t,r){return ks(e,t,r,yS,Ss(N5()),$i(e,2,-2),0)}function WA(e,t,r,n){return ks(e,t,r,lf,$i(e,0,n),$i(e,n+1,-1),n)}function vn(e,t){for(var r="",n=cf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function B5(e,t,r,n){switch(e.type){case k5:if(e.children.length)break;case I5:case lf:return e.return=e.return||e.value;case yS:return"";case _S:return e.return=e.value+"{"+vn(e.children,n)+"}";case sf:e.value=e.props.join(",")}return Rt(r=vn(e.children,n))?e.return=e.value+"{"+r+"}":""}function $5(e){var t=cf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function J5(e){return function(t){t.root||(t=t.return)&&e(t)}}function H5(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function AS(e,t){switch(C5(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+bs+e+Ue+e+e;case 6828:case 4268:return B+e+Ue+e+e;case 6165:return B+e+Ue+"flex-"+e+e;case 5187:return B+e+$(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return B+e+Ue+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return B+e+Ue+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Ue+$(e,"shrink","negative")+e;case 5292:return B+e+Ue+$(e,"basis","preferred-size")+e;case 6060:return B+"box-"+$(e,"-grow","")+B+e+Ue+$(e,"grow","positive")+e;case 4554:return B+$(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,B+"$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(Rt(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+bs+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qd(e,"stretch")?AS($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,Rt(e)-3-(~Qd(e,"!important")&&10))){case 107:return $(e,":",":"+B)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(Ce(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return B+e+Ue+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Ue+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Ue+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Ue+e+e}return e}function Z5(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 ws(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 fr={name:i.name,styles:i.styles,next:fr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fr={name:a.name,styles:a.styles,next:fr},a=a.next;var s=o.styles+";";return s}return n3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function n3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ws(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]+"}":QA(s)&&(n+=jd(o)+":"+XA(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++)QA(a[l])&&(n+=jd(o)+":"+XA(o,a[l])+";");else{var c=ws(e,t,a);switch(o){case"animation":case"animationName":{n+=jd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Md(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="";fr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ws(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ws(r,t,e[s]),n){var l=o;i+=l[s]}ZA.lastIndex=0;for(var c="",d;(d=ZA.exec(i))!==null;)c+="-"+d[1];var u=Z5(i)+c;return{name:u,styles:i,next:fr}}function IS(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function eS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function tS(e,t,r){var n=[],i=IS(e,n,r);return n.length<2?r:i+t(n)}function c3(e,t){Ee.__h&&Ee.__h(Ze,e,nS||t),nS=0;var r=Ze.__H||(Ze.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function TS(e,t){var r=c3(Zd++,7);return f3(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function u3(){for(var e;e=kS.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ys),e.__H.__h.forEach(ef),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}function d3(e){var t,r=function(){clearTimeout(n),uS&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);uS&&(t=requestAnimationFrame(r))}function ys(e){var t=Ze,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ze=t}function ef(e){var t=Ze;e.__c=e.__(),Ze=t}function f3(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ts(){if(pr>1)pr--;else{for(var e,t=!1;Mi!==void 0;){var r=Mi;for(Mi=void 0,tf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&CS(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(tf=0,pr--,t)throw e}}function He(e){if(pr>0)return e();pr++;try{return e()}finally{Ts()}}function RS(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.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=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function Oe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Oe(e)}function CS(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 OS(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 PS(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 bn(e){Oe.call(this,void 0),this.x=e,this.s=void 0,this.g=Es-1,this.f=4}function Fi(e){return new bn(e)}function NS(e){var t=e.u;if(e.u=void 0,typeof t=="function"){pr++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,uf(e),n}finally{z=r,Ts()}}}function uf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,NS(e)}function h3(e){if(z!==this)throw new Error("Out-of-order effect");PS(this),z=e,this.f&=-2,8&this.f&&uf(this),Ts()}function Vi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function zi(e){var t=new Vi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function wn(e,t){C[e]=t.bind(null,C[e]||function(){})}function xs(e){Bd&&Bd(),Bd=e&&e.S()}function LS(e){var t=this,r=e.data,n=US(r);n.value=r;var i=TS(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Fi(function(){var p=n.value.value;return p===0?0:p===!0?"":p||""}),d=Fi(function(){return!Array.isArray(c.value)&&!xl(c.value)}),u=zi(function(){if(this.N=jS,d.value){var p=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),f=t.__$u.d;return t.__$u.d=function(){u(),f.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function m3(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:zi(function(){this.N=jS;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function US(e){return TS(function(){return W(e)},[])}function g3(){He(function(){for(var e;e=qS.shift();)DS.call(e)})}function jS(){qS.push(this)===1&&(C.requestAnimationFrame||v3)(g3)}function y3(e,t){let r=ni(e);zr(()=>{r.current=e},[e]),ri(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function fe(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:--_3,__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 C.vnode&&C.vnode(c),c}function Gt(e,t,r){return(t=O3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O3(e){var t=P3(e,"string");return typeof t=="symbol"?t:t+""}function P3(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 Kt(e,t,r){return(t=L3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L3(e){var t=U3(e,"string");return typeof t=="symbol"?t:t+""}function U3(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=j3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j3(e){var t=M3(e,"string");return typeof t=="symbol"?t:t+""}function M3(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 $A,DB,qB,LB,$d,Jd,dS,BB,$B,JA,JB,HB,HA,VB,zB,GB,fS,KB,e5,t5,VA,r5,hS,mS,vS,zA,n5,i5,Hd,ne,l5,c5,Ui,Bi,u5,zd,d5,Ld,h5,Gd,GA,Kd,Wd,Yd,S5,Ue,bs,B,yS,sf,lf,I5,_S,k5,T5,Ss,R5,Is,gn,wS,Ve,ye,yn,V5,z5,G5,YA,K5,W5,Y5,Q5,X5,e3,t3,r3,SS,QA,jd,XA,ZA,fr,i3,o3,a3,s3,l3,_n,Zd,Ze,Fd,rS,nS,kS,Ee,iS,oS,aS,sS,lS,cS,uS,p3,z,Mi,pr,tf,Es,DS,Bd,qS,v3,je,_3,b3,Wt,rf,nf,_s,w3,E3,x3,A3,S3,I3,k3,T3,R3,C3,of,mn,hn,N3,D3,q3,af,As,QK,MS=k(()=>{"use strict";Lr();Oo();$A=Object.getOwnPropertySymbols,DB=Object.prototype.hasOwnProperty,qB=Object.prototype.propertyIsEnumerable,LB=(e,t)=>{var r={};for(var n in e)DB.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$A)for(var n of $A(e))t.indexOf(n)<0&&qB.call(e,n)&&(r[n]=e[n]);return r};$d=class{constructor(t){Xe(this,"context",void 0),Xe(this,"continueCallback",void 0),Xe(this,"adIsShowingCallback",void 0),Xe(this,"isBeforeAdCalled",!1),Xe(this,"isBeforeRewardCalled",!1),Xe(this,"isAdDismissedCalled",!1),Xe(this,"isAdViewedCalled",!1),Xe(this,"isAfterAdCalled",!1),Xe(this,"currentProvider",void 0),Xe(this,"currentClientParams",void 0),Xe(this,"adsHasResponse",!1),Xe(this,"videoChecker",window.document.createElement("video")),Xe(this,"wrapShowAdFn",r=>()=>{var n;this.adsHasResponse=!0;let i=!1;this.videoChecker.play().catch(()=>{i=!1}),i=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:i},this.paramsToTrack)),(n=this.adIsShowingCallback)==null||n.call(this,!0),r()}),this.context=t}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;this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0)))}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}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":{t==null||t(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 x(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")})})}};Jd=class{constructor(t){ds(this,"context",void 0),ds(this,"adBreakIsShowing",!1),ds(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ds(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()})}},dS=Object.defineProperty,BB=Object.defineProperties,$B=Object.getOwnPropertyDescriptors,JA=Object.getOwnPropertySymbols,JB=Object.prototype.hasOwnProperty,HB=Object.prototype.propertyIsEnumerable,HA=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VB=(e,t)=>{for(var r in t||(t={}))JB.call(t,r)&&HA(e,r,t[r]);if(JA)for(var r of JA(t))HB.call(t,r)&&HA(e,r,t[r]);return e},zB=(e,t)=>BB(e,$B(t)),GB=(e,t)=>{for(var r in t)dS(e,r,{get:t[r],enumerable:!0})},fS=(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},KB=(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}e5=(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))(e5||{});t5={log:Li("log"),warn:Li("warn"),info:Li("info"),error:Li("error"),debug:Li("debug")};Object.assign(globalThis,{logger:t5});VA=Symbol.for("Jolibox.canIUseMap"),r5={};globalThis[VA]||(globalThis[VA]=r5);hS=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(hS||{}),mS=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(mS||{}),vS=(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))(vS||{}),zA=["name","params"],n5=["name","type","location","target","extra","timestamp","userId"],i5=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];s5();navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Hd=class Vd{constructor(t){this.element=t,this.next=Vd.Undefined,this.prev=Vd.Undefined}};Hd.Undefined=new Hd(void 0);ne=Hd,l5=class{constructor(){this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ne.Undefined}clear(){let e=this._first;for(;e!==ne.Undefined;){let t=e.next;e.prev=ne.Undefined,e.next=ne.Undefined,e=t}this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ne(e);if(this._first===ne.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!==ne.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ne.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ne.Undefined&&e.next!==ne.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ne.Undefined&&e.next===ne.Undefined?(this._first=ne.Undefined,this._last=ne.Undefined):e.next===ne.Undefined?(this._last=this._last.prev,this._last.next=ne.Undefined):e.prev===ne.Undefined&&(this._first=this._first.next,this._first.prev=ne.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ne.Undefined;)yield e.element,e=e.next}},c5=0,Ui=class{constructor(e){this.value=e,this.id=c5++}},Bi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof Ui&&(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 Ui(e);return this._listeners?this._listeners instanceof Ui?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,f;if(!this._disposed){if(this._listeners instanceof Ui)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 p=this._listeners.indexOf(l);p>=0&&(this._listeners.splice(p,1),this._size--,this._size===0&&((f=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||f.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 Ui?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},u5=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 Bi,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 l5,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)}},zd={};GB(zd,{None:()=>d5,filter:()=>p5,once:()=>gS,toPromise:()=>f5});d5=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ld=Symbol.for("Jolibox.hostEmitter"),h5=()=>{let e=new u5;return globalThis[Ld]||(globalThis[Ld]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ld]};h5();Gd=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Bi,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return m5(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}};Gd=fS([pS],Gd);GA=class{constructor(){this._onWillExecuteCommand=new Bi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Bi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gd,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=WB(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 KB(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),zd.toPromise(zd.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{}}};GA=fS([pS],GA);Kd=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ud(this,"context",void 0),Ud(this,"placement","GAME"),Ud(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:vS.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:hS.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:mS.WebSDK};return a5(i)}};Wd=class{constructor(t){fs(this,"configs",null),fs(this,"firstRun",!0),fs(this,"context",void 0),fs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return x(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}};Yd=class{constructor(t,r){zt(this,"name","ADSENSE"),zt(this,"context",void 0),zt(this,"contextInfo",void 0),zt(this,"configured",!1),zt(this,"initParams",void 0),zt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),zt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=LB(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),zt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),zt(this,"adUnit",n=>x(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:f}=n,p;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?p=document.querySelector(l):p=l,!p)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),f&&_.setAttribute("style",f),(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",p.appendChild(_),_.appendChild(v)}else p.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let E=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"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 x(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&&this.initParams.admobRewardedSlot&&(i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),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)}})}};S5=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(A5(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=x5(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}(),Ue="-ms-",bs="-moz-",B="-webkit-",yS="comm",sf="rule",lf="decl",I5="@import",_S="@keyframes",k5="@layer",T5=Math.abs,Ss=String.fromCharCode,R5=Object.assign;Is=1,gn=1,wS=0,Ve=0,ye=0,yn="";V5=function(e,t,r){for(var n=0,i=0;n=i,i=Ct(),n===38&&i===12&&(t[r]=1),!Ji(i);)et();return Hi(e,Ve)},z5=function(e,t){var r=-1,n=44;do switch(Ji(n)){case 0:n===38&&Ct()===12&&(t[r]=1),e[r]+=V5(Ve-1,t,r);break;case 2:e[r]+=vs(n);break;case 4:if(n===44){e[++r]=Ct()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ss(n)}while(n=et());return e},G5=function(e,t){return xS(z5(ES(e),t))},YA=new WeakMap,K5=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&&!YA.get(r))&&!n){YA.set(e,!0);for(var i=[],o=G5(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]}}},W5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};Y5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lf:e.return=AS(e.value,e.length);break;case _S:return vn([ji(e,{value:$(e.value,"@","@"+B)})],n);case sf:if(e.length)return P5(e.props,function(i){switch(O5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([ji(e,{props:[$(i,/:(read-\w+)/,":"+bs+"$1")]})],n);case"::placeholder":return vn([ji(e,{props:[$(i,/:(plac\w+)/,":"+B+"input-$1")]}),ji(e,{props:[$(i,/:(plac\w+)/,":"+bs+"$1")]}),ji(e,{props:[$(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},Q5=[Y5],X5=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||Q5,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=[K5,W5];{var c,d=[B5,J5(function(m){c.insert(m)})],u=$5(l.concat(n,d)),f=function(m){return vn(M5(m),u)};s=function(m,g,_,v){c=_,f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new S5({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 p.sheet.hydrate(a),p};e3={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},t3=/[A-Z]|^ms/g,r3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SS=function(e){return e.charCodeAt(1)===45},QA=function(e){return e!=null&&typeof e!="boolean"},jd=H5(function(e){return SS(e)?e:e.replace(t3,"-$&").toLowerCase()}),XA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(r3,function(r,n,i){return fr={name:n,styles:i,next:fr},n})}return e3[e]!==1&&!SS(e)&&typeof t=="number"&&t!==0?t+"px":t};ZA=/label:\s*([^\s;{]+)\s*(;|$)/g;i3=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},o3=function(e,t,r){i3(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)}};a3=function(e){var t=X5(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=Md(s,t.registered,void 0);return o3(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=Md(s,t.registered),d="animation-"+c.name;return eS(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=Md(s,t.registered);eS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return tS(t.registered,r,s3(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:IS.bind(null,t.registered),merge:tS.bind(null,t.registered,r)}},s3=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},l3=a3({key:"css"}),_n=l3.css,nS=0,kS=[],Ee=C,iS=Ee.__b,oS=Ee.__r,aS=Ee.diffed,sS=Ee.__c,lS=Ee.unmount,cS=Ee.__;Ee.__b=function(e){Ze=null,iS&&iS(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),cS&&cS(e,t)},Ee.__r=function(e){oS&&oS(e),Zd=0;var t=(Ze=e.__c).__H;t&&(Fd===Ze?(t.__h=[],Ze.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ys),t.__h.forEach(ef),t.__h=[],Zd=0)),Fd=Ze},Ee.diffed=function(e){aS&&aS(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kS.push(t)!==1&&rS===Ee.requestAnimationFrame||((rS=Ee.requestAnimationFrame)||d3)(u3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Fd=Ze=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ys),r.__h=r.__h.filter(function(n){return!n.__||ef(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(n,r.__v)}}),sS&&sS(e,t)},Ee.unmount=function(e){lS&&lS(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ys(n)}catch(i){t=i}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};uS=typeof requestAnimationFrame=="function";p3=Symbol.for("preact-signals");z=void 0,Mi=void 0,pr=0,tf=0,Es=0;Oe.prototype.brand=p3;Oe.prototype.h=function(){return!0};Oe.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)};Oe.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)}};Oe.prototype.subscribe=function(e){var t=this;return zi(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}})};Oe.prototype.valueOf=function(){return this.value};Oe.prototype.toString=function(){return this.value+""};Oe.prototype.toJSON=function(){return this.value};Oe.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}};Object.defineProperty(Oe.prototype,"value",{get:function(){var e=RS(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(tf>100)throw new Error("Cycle detected");this.v=e,this.i++,Es++,pr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ts()}}}});(bn.prototype=new Oe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Es))return!0;if(this.g=Es,this.f|=1,this.i>0&&!CS(this))return this.f&=-2,!0;var e=z;try{OS(this),z=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 z=e,PS(this),this.f&=-2,!0};bn.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)}Oe.prototype.S.call(this,e)};bn.prototype.U=function(e){if(this.t!==void 0&&(Oe.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)}};bn.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(bn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RS(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Vi.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()}};Vi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,NS(this),OS(this),pr++;var e=z;return z=this,h3.bind(this,e)};Vi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Mi,Mi=this)};Vi.prototype.d=function(){this.f|=8,1&this.f||uf(this)};qS=[];zi(function(){DS=this.N})();LS.displayName="_st";Object.defineProperties(Oe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:LS},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});wn("__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 Oe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});wn("__r",function(e,t){xs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return zi(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),xs(r),e(t)});wn("__e",function(e,t,r,n){xs(),e(t,r,n)});wn("diffed",function(e,t){xs();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=m3(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});wn("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)});wn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ge.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};v3=function(e){queueMicrotask(function(){queueMicrotask(e)})};je=_n`
|
|
444
444
|
inset: 0;
|
|
445
445
|
clear: none;
|
|
446
446
|
float: none;
|
|
@@ -533,7 +533,7 @@ or `);this.errors.push(o)}return n}},Qa=class extends ge{constructor(...t){super
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
`,
|
|
536
|
+
`,Wt=W(null),rf=W(""),nf=W(""),_s=W(!1),w3=()=>{var e;(e=Wt.value)==null||e.call(Wt,!1)},E3=()=>{var e;(e=Wt.value)==null||e.call(Wt,!0)},x3=e=>x(void 0,null,function*(){let{title:t,content:r}=e;return Wt.value&&(Wt.value(!1),He(()=>{Wt.value=null,_s.value=!1})),He(()=>{rf.value=t||"",nf.value=r||"",_s.value=!0}),new Promise(n=>{Wt.value=i=>{He(()=>{Wt.value=null,_s.value=!1,rf.value="",nf.value=""}),n(i)}})}),A3=()=>_s.value?fe("div",{className:b3,children:fe("div",{className:"card-wrapper",children:[fe("div",{className:"body",children:[fe("div",{className:"title",children:rf.value}),fe("div",{className:"content",children:nf.value})]}),fe("div",{className:"footer",children:[fe("button",{onClick:w3,className:"cancel-btn",children:"Cancel"}),fe("button",{onClick:E3,className:"confirm-btm",children:"Confirm"})]})]})}):null,S3=_n`
|
|
537
537
|
${je}
|
|
538
538
|
position: relative;
|
|
539
539
|
display: flex;
|
|
@@ -585,7 +585,7 @@ or `);this.errors.push(o)}return n}},Qa=class extends ge{constructor(...t){super
|
|
|
585
585
|
width: 100%;
|
|
586
586
|
height: 100%;
|
|
587
587
|
}
|
|
588
|
-
`,C3=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=ii(()=>I3(),[]),[f,p]=Ro(!1),m=_=>{var v,b,E,
|
|
588
|
+
`,C3=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=ii(()=>I3(),[]),[f,p]=Ro(!1),m=_=>{var v,b,E,I;s.value=!1,_==="dismiss"?(v=n.value)==null||v.call(n):_==="viewed"&&((b=i.value)==null||b.call(i)),(E=r.value)==null||E.call(r),(I=o.value)==null||I.call(o),p(!1)},g=Gr(()=>{var _;f||(p(!0),(_=a.value)==null||_.call(a))},[f]);return ri(()=>{f&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[f,d.value]),s.value?fe("div",{className:R3,children:[fe(k3,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&fe("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"}),fe(A3,{})]}):null};of=class{constructor(t,r){Gt(this,"name","OKSPIN"),Gt(this,"initialized",!1),Gt(this,"initCompleter",null),Gt(this,"context",void 0),Gt(this,"initParams",void 0),Gt(this,"adsOverlay",null),Gt(this,"adsIsShowing",!1),Gt(this,"lastUnDisplayedAdBreak",null),Gt(this,"state",T3()),this.context=t,this.initParams=r}init(){return x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Ec(fe(C3,{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 x(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 p;this.adsIsShowing=!1,(p=t.afterAd)==null||p.call(t)},f=()=>{var p;this.adsIsShowing=!1,(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};He(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=f,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)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},p=()=>{var v;this.adsIsShowing=!1,f.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,f.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,f)};He(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=p,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{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,He(()=>{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,_);break}}})}},mn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||mn[e.data.type]&&mn[e.data.type].forEach(t=>{t(e.data.data)})});hn=(e,t)=>{ri(()=>(mn[e]||(mn[e]=new Set),mn[e].add(t),()=>{mn[e].delete(t)}),[e,t])},N3=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(),a=W(),s=W(!1),l=W("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},D3=_n`
|
|
589
589
|
${je}
|
|
590
590
|
position: fixed;
|
|
591
591
|
z-index: 2147483647;
|
|
@@ -604,7 +604,7 @@ or `);this.errors.push(o)}return n}},Qa=class extends ge{constructor(...t){super
|
|
|
604
604
|
width: 100%;
|
|
605
605
|
height: 100%;
|
|
606
606
|
}
|
|
607
|
-
`,q3=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Ro(!1),f=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)},p=()=>{var m;(m=a.value)==null||m.call(a)};return hn("appsrockets_ad_dismissed",()=>f("dismiss")),hn("appsrockets_ad_rewarded",()=>f("viewed")),hn("appsrockets_ad_completed",()=>f("viewed")),hn("appsrockets_ad_skipped",()=>f("viewed")),hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),hn("appsrockets_ad_loaded",()=>u(!0)),l.value?fe("div",{className:D3,style:{display:d?"flex":"none"},children:l.value&&fe("iframe",{src:c.value,onLoad:p,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};af=class{constructor(t,r){Gt(this,"name","APPSROCKETS"),Gt(this,"initialized",!1),Gt(this,"initCompleter",null),Gt(this,"context",void 0),Gt(this,"adsOverlay",null),Gt(this,"adsIsShowing",!1),Gt(this,"lastUnDisplayedAdBreak",null),Gt(this,"state",N3()),Gt(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 x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ec(fe(q3,{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=f=>{var p,m;(m=(p=this.context).handleLinkClicked)==null||m.call(p,f)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p=()=>{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"})};He(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=p,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 f=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var E;this.adsIsShowing=!1,p.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},g=()=>{var E;this.adsIsShowing=!1,p.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},_=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,p)},v=()=>{this.adsIsShowing=!1,p.breakStatus="noAdPreloaded"};He(()=>{this.state.afterAd.value=f,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 E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,He(()=>{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}}}};As=class{constructor(t){if(dr(this,"context",void 0),dr(this,"contextInfo",void 0),dr(this,"providers",{}),dr(this,"channelPolicy",void 0),dr(this,"adsActionDetection",void 0),dr(this,"adsTrackSerializer",void 0),dr(this,"initialized",!1),dr(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Wd(this.context),this.adsActionDetection=new Jd(this.context),this.adsTrackSerializer=new Kd(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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}}init(t){return x(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":{let i=new Yd(this.context,n.params);yield i.init(),this.providers.ADSENSE=i;break}case"OKSPIN":{let i=new of(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new af(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return x(this,null,function*(){var r,n,i,o,a,s,l,c,d;if(Date.now()-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.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(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:"noAdPreloaded"});return}try{let{data:u,code:f}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(f!=="SUCCESS"){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let p=u==null?void 0:u.sort((v,b)=>v.seq-b.seq);if(p.length===0){(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}let m=!0,g=null,_=new $d(this.context);for((s=this.context.eventEmitter)==null||s.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0;p.length>0;){let v=p.shift(),b=this.providers[v.provider];if(b){let[E,k]=yield _.callAdBreakAndContinue(b,t,v);m=E,g=k}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(u){(c=t.adBreakDone)==null||c.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.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.")}},QK=_n`
|
|
607
|
+
`,q3=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Ro(!1),f=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)},p=()=>{var m;(m=a.value)==null||m.call(a)};return hn("appsrockets_ad_dismissed",()=>f("dismiss")),hn("appsrockets_ad_rewarded",()=>f("viewed")),hn("appsrockets_ad_completed",()=>f("viewed")),hn("appsrockets_ad_skipped",()=>f("viewed")),hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),hn("appsrockets_ad_loaded",()=>u(!0)),l.value?fe("div",{className:D3,style:{display:d?"flex":"none"},children:l.value&&fe("iframe",{src:c.value,onLoad:p,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};af=class{constructor(t,r){Kt(this,"name","APPSROCKETS"),Kt(this,"initialized",!1),Kt(this,"initCompleter",null),Kt(this,"context",void 0),Kt(this,"adsOverlay",null),Kt(this,"adsIsShowing",!1),Kt(this,"lastUnDisplayedAdBreak",null),Kt(this,"state",N3()),Kt(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 x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ec(fe(q3,{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=f=>{var p,m;(m=(p=this.context).handleLinkClicked)==null||m.call(p,f)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p=()=>{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"})};He(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=p,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 f=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var E;this.adsIsShowing=!1,p.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},g=()=>{var E;this.adsIsShowing=!1,p.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},_=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,p)},v=()=>{this.adsIsShowing=!1,p.breakStatus="noAdPreloaded"};He(()=>{this.state.afterAd.value=f,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 E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,He(()=>{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}}}};As=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,"adsTrackSerializer",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 Wd(this.context),this.adsActionDetection=new Jd(this.context),this.adsTrackSerializer=new Kd(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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}}init(t){return x(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Yd(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new of(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new af(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return x(this,null,function*(){var r,n,i,o,a,s,l,c,d,u;let f=Date.now();if(f-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&&f-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=f,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{data:p,code:m}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(m!=="SUCCESS"){(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let g=p==null?void 0:p.sort((E,I)=>E.seq-I.seq);if(g.length===0){(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let _=!0,v=null,b=new $d(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;g.length>0;){let E=g.shift(),I=this.providers[E.provider];if(I){let[O,T]=yield b.callAdBreakAndContinue(I,t,E,y=>{var q;this.adsIsShowing=y,(q=this.context.eventEmitter)==null||q.emit("isAdShowing",y)});_=O,v=T}else _=!0,v={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!_)break}_&&v&&((c=t.adBreakDone)==null||c.call(t,v))}}catch(p){(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(u=this.context.eventEmitter)==null||u.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.")}},QK=_n`
|
|
608
608
|
${je}
|
|
609
609
|
position: fixed;
|
|
610
610
|
left: 0;
|
|
@@ -653,4 +653,4 @@ or `);this.errors.push(o)}return n}},Qa=class extends ge{constructor(...t){super
|
|
|
653
653
|
cursor: pointer;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
`});function BS(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return x(this,null,function*(){return yield i.reduce((s,l)=>x(this,null,function*(){let c=yield s;if(c===!0)return!0;FS&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return FS&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return x(this,null,function*(){t=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return x(this,null,function*(){r=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:pn}}})})},getRewardsTypes(...i){return x(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return x(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:pn}})}}}var FS,$S=I(()=>{"use strict";se();Cr();FS=S.testMode});var F3,B3,JS,HS,VS=I(()=>{"use strict";Cr();F3=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,B3=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(F3()):["ADS"],JS=e=>{e.registerRewardsFetcher(t=>x(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;K.emit(dn,{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 B3(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},HS=e=>{e.registerRewardFrequencyConfigFetcher(t=>x(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return K.emit(ss,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||pn}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||pn}}))}});var zS,GS=I(()=>{"use strict";zS=e=>t=>x(void 0,null,function*(){return e.adBreak(t),!0})});var KS,WS=I(()=>{"use strict";KS=(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 Rs,Cs,YS,Os,Ps=I(()=>{"use strict";se();N();Cr();WS();qi();Rs=(e,t)=>r=>x(void 0,null,function*(){let n=Jt(K,kt);return K.emit(os,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Cs=(e,t)=>r=>x(void 0,null,function*(){let n=Jt(K,fn);return K.emit(as,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),YS=e=>{if(e=="CANCEL")throw new Error("CANCEL")},Os=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>x(void 0,null,function*(){var s,l,c,d,u,f,p;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(E=>E.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!KS((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let E=yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(YS(E),E!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let E=yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(YS(E),E!=="CONFIRM")return r==null||r(a),!1}let b=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${so()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return b.code=="SUCCESS"?((f=a.adBreakDone)==null||f.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((p=a.adViewed)==null||p.call(a)),t==null||t({quantity:b.data.quantity,balance:b.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var QS,XS=I(()=>{"use strict";Cr();qi();Ps();Ps();QS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,dn),i=()=>{r==null||r()},o=Cs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Rs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var ZS,eI=I(()=>{"use strict";Cr();Ps();qi();ZS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,dn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Cs("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Rs("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Wt,tI=I(()=>{"use strict";$S();VS();GS();XS();eI();Wt=BS();JS(Wt);HS(Wt)});var YW,Ns,$3,Gi,J3,Ki,rI,H3,V3,z3,G3,nI=I(()=>{"use strict";N();It();Ni();YW=ae(BA());MS();Zt();se();Ot();Me();tI();_l();Ns=pe(),$3=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Gi={get:(e,t)=>le(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>le(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},J3={httpClient:Gi,checkNetwork:$3,track:ze,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=S.joliSource)!=null?l:""}}},Ki=new As(J3);Wt.getRewardFrequencyConfig(Gi).then(e=>{console.log("getRewardFrequencyConfig",e)});Wt.registerRewardHandler("ADS",zS(Ki));Wt.registerRewardHandler("JOLI_COIN",QS(Gi,{onUnlockSuccess:e=>{rI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Wt.registerRewardHandler("JOLI_COIN_ONLY",ZS(Gi,{onUnlockSuccess:e=>{rI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));rI=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Qx(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},H3=G("adInit",{implement:e=>{Ki.init(e)}}),V3=G("adConfig",{implement:e=>{Ki.adConfig(e)}}),z3=G("adBreak",{implement:e=>{e.type==="reward"?Wt.getRewardsTypes(Gi).then(t=>{Wt.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"})})}):Ki.adBreak(e)}}),G3=G("adUnit",{implement:e=>{Ki.adUnit(e)}});Ns.registerCommand("AdsSDK.init",H3);Ns.registerCommand("AdsSDK.adConfig",V3);Ns.registerCommand("AdsSDK.adBreak",z3);Ns.registerCommand("AdsSDK.adUnit",G3);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var Wi,K3,W3,Y3,Q3,X3,iI=I(()=>{"use strict";N();Me();It();se();Wi=pe(),K3=G("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pr(r.errMsg,r.errNo)}}),W3=G("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new Pr(r,t);return{webviewId:n.webviewId}}}),Y3=G("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new Pr(r,t)}}),Q3=G("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),X3=G("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory"),A.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=L("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new Pr(n,r)}});Wi.registerCommand("RouterSDK.openSchema",K3);Wi.registerCommand("RouterSDK.openPage",W3);Wi.registerCommand("RouterSDK.closePage",Y3);Wi.registerCommand("RouterSDK.interceptSystemExit",Q3);Wi.registerCommand("RouterSDK.navigateToNativePage",X3);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var Z3={};var d7,m7,oI=I(()=>{"use strict";fA();d7=ae(pA());bA();Ad();AA();m7=ae(SA());Td();nI();iI()});var aI=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[aI])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[aI]=!0;x(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(oA(),iA)),Promise.resolve().then(()=>(oI(),Z3)),Promise.resolve().then(()=>(Zt(),kp))]);e()});
|
|
656
|
+
`});function BS(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return x(this,null,function*(){return yield i.reduce((s,l)=>x(this,null,function*(){let c=yield s;if(c===!0)return!0;FS&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return FS&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return x(this,null,function*(){t=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return x(this,null,function*(){r=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:pn}}})})},getRewardsTypes(...i){return x(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return x(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:pn}})}}}var FS,$S=k(()=>{"use strict";se();Cr();FS=S.testMode});var F3,B3,JS,HS,VS=k(()=>{"use strict";Cr();F3=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,B3=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(F3()):["ADS"],JS=e=>{e.registerRewardsFetcher(t=>x(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;K.emit(dn,{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 B3(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},HS=e=>{e.registerRewardFrequencyConfigFetcher(t=>x(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return K.emit(ss,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||pn}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||pn}}))}});var zS,GS=k(()=>{"use strict";zS=e=>t=>x(void 0,null,function*(){return e.adBreak(t),!0})});var KS,WS=k(()=>{"use strict";KS=(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 Rs,Cs,YS,Os,Ps=k(()=>{"use strict";se();N();Cr();WS();qi();Rs=(e,t)=>r=>x(void 0,null,function*(){let n=Ht(K,kt);return K.emit(os,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Cs=(e,t)=>r=>x(void 0,null,function*(){let n=Ht(K,fn);return K.emit(as,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),YS=e=>{if(e=="CANCEL")throw new Error("CANCEL")},Os=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>x(void 0,null,function*(){var s,l,c,d,u,f,p;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(E=>E.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!KS((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let E=yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(YS(E),E!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let E=yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(YS(E),E!=="CONFIRM")return r==null||r(a),!1}let b=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${so()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return b.code=="SUCCESS"?((f=a.adBreakDone)==null||f.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((p=a.adViewed)==null||p.call(a)),t==null||t({quantity:b.data.quantity,balance:b.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var QS,XS=k(()=>{"use strict";Cr();qi();Ps();Ps();QS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Ht(K,dn),i=()=>{r==null||r()},o=Cs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Rs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var ZS,eI=k(()=>{"use strict";Cr();Ps();qi();ZS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Ht(K,dn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Cs("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Rs("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Yt,tI=k(()=>{"use strict";$S();VS();GS();XS();eI();Yt=BS();JS(Yt);HS(Yt)});var YW,Ns,$3,Gi,J3,Ki,rI,H3,V3,z3,G3,nI=k(()=>{"use strict";N();It();Ni();YW=ae(BA());MS();er();se();Pt();Me();tI();_l();Ns=pe(),$3=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Gi={get:(e,t)=>le(e,R({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>le(e,R({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},J3={httpClient:Gi,checkNetwork:$3,track:ze,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=S.joliSource)!=null?l:""}}},Ki=new As(J3);Yt.getRewardFrequencyConfig(Gi).then(e=>{console.log("getRewardFrequencyConfig",e)});Yt.registerRewardHandler("ADS",zS(Ki));Yt.registerRewardHandler("JOLI_COIN",QS(Gi,{onUnlockSuccess:e=>{rI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Yt.registerRewardHandler("JOLI_COIN_ONLY",ZS(Gi,{onUnlockSuccess:e=>{rI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));rI=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Qx(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},H3=G("adInit",{implement:e=>{Ki.init(e)}}),V3=G("adConfig",{implement:e=>{Ki.adConfig(e)}}),z3=G("adBreak",{implement:e=>{e.type==="reward"?Yt.getRewardsTypes(Gi).then(t=>{Yt.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"})})}):Ki.adBreak(e)}}),G3=G("adUnit",{implement:e=>{Ki.adUnit(e)}});Ns.registerCommand("AdsSDK.init",H3);Ns.registerCommand("AdsSDK.adConfig",V3);Ns.registerCommand("AdsSDK.adBreak",z3);Ns.registerCommand("AdsSDK.adUnit",G3);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var Wi,K3,W3,Y3,Q3,X3,iI=k(()=>{"use strict";N();Me();It();se();Wi=pe(),K3=G("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pr(r.errMsg,r.errNo)}}),W3=G("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Pr(r,t);return{webviewId:n.webviewId}}}),Y3=G("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Pr(r,t)}}),Q3=G("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),X3=G("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory"),A.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=U("callHostMethodAsync",{method:e,params:R({},t)});if(r!==0)throw new Pr(n,r)}});Wi.registerCommand("RouterSDK.openSchema",K3);Wi.registerCommand("RouterSDK.openPage",W3);Wi.registerCommand("RouterSDK.closePage",Y3);Wi.registerCommand("RouterSDK.interceptSystemExit",Q3);Wi.registerCommand("RouterSDK.navigateToNativePage",X3);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var Z3={};var d7,m7,oI=k(()=>{"use strict";fA();d7=ae(pA());bA();Ad();AA();m7=ae(SA());Td();nI();iI()});var aI=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[aI])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[aI]=!0;x(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(oA(),iA)),Promise.resolve().then(()=>(oI(),Z3)),Promise.resolve().then(()=>(er(),kp))]);e()});
|