@jolibox/implement 1.1.41-beta.1 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var LA=Object.create;var _o=Object.defineProperty,qA=Object.defineProperties,FA=Object.getOwnPropertyDescriptor,MA=Object.getOwnPropertyDescriptors,UA=Object.getOwnPropertyNames,yo=Object.getOwnPropertySymbols,jA=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable;var rf=(e,t,r)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))ul.call(t,r)&&rf(e,r,t[r]);if(yo)for(var r of yo(t))nf.call(t,r)&&rf(e,r,t[r]);return e},M=(e,t)=>qA(e,MA(t));var Qe=(e,t)=>{var r={};for(var n in e)ul.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yo)for(var n of yo(e))t.indexOf(n)<0&&nf.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),of=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})},BA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UA(t))!ul.call(e,i)&&i!==r&&_o(e,i,{get:()=>t[i],enumerable:!(n=FA(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?LA(jA(e)):{},BA(t||!e||!e.__esModule?_o(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function GA(e){return!!(e!=null&&e.__nativeBuffers__)}function gl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!GA(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=WA(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function QA(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:KA(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function e1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function yf(e){return typeof e=="string"}function $r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function sf(e){return typeof e=="number"&&!isNaN(e)}function r1(e){return typeof e=="undefined"}function n1(e){return r1(e)||e===null}function _f(e){return typeof e=="function"}function i1(e){return $r(e)&&_f(e.then)}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 Mn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function d1(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function v1(){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 w1(e){return new Promise(t=>wf(e)(t))}function wf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function I1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Bn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function x1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)E1(e[n],t[n])}function E1(e,t){if(yf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(_f(t)){try{if(e instanceof t)return}catch(r){}if(!n1(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 kl(e,t){if(_l.config[e]){Eo.warn(`[can i use] ${e} already registered`);return}_l.config[e]=Jt({},t)}function uf(e,t){return`[${e}]:${t}`}function R1(e,t){df||(fl=new wo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),hl=new wo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ml=new wo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{fl.flush(),hl.flush(),ml.flush()}),df=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";fl.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(hl.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),ml.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 q1(e,t){let r=0,n=!0,i=L1.resolveMap,o=R1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,vl.forEach(l=>So(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),vl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=gl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new t1;if(i.set(r,m.resolve),!n&&T1.includes(l))return new Promise(A=>{vl.push({method:l,args:c,resolve:A})});let g=VA(Jt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!N1&&A1.includes(l),v=QA(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||C1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=gl(I)}catch(A){Eo.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=uf(l,I.errorCode)),o(Jt(Jt({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=uf(l,A.errorCode)),o(Jt(Jt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return i1(d)?d.then(u=>pf(l,u)):pf(l,d)},invokeHandler:a}}function pf(e,t){if(!$r(t)){Eo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=zA(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new l1(n,i,o,a);return s}function F1(e){if(globalThis[bo])return globalThis[bo];let t=new Il,r=new Il,n=new wo({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[bo]={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=gl(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===Sf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(jn.length),u,a)}catch(p){}});return}if(i.startsWith(jn)){r.emit(i.slice(jn.length),l,a);return}t.emit(i,l,a)}},globalThis[bo]}function M1(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${jn}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Sf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${jn}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(P1,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function U1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=F1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=q1(e,r),{publish:c,emitNative:d}=M1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function xf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var JA,HA,$A,Io,hf,mf,af,Jt,VA,zA,So,WA,KA,vf,YA,XA,gf,ZA,t1,o1,a1,xo,s1,l1,c1,dl,Eo,lf,u1,yl,p1,_l,f1,h1,m1,g1,NH,bl,oe,y1,_1,Un,Bn,Il,Sl,b1,pl,S1,DH,xl,cf,LH,If,k1,jn,A1,T1,C1,Sf,P1,O1,wo,df,fl,hl,ml,vl,N1,El,D1,L1,bo,Al,pt,Ef,kf,j1,Af,ff,ge,U,Ye,qH,B1,Tf,Tl,FH,MH,xe=k(()=>{"use strict";JA=Object.defineProperty,HA=Object.defineProperties,$A=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,hf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,af=(e,t,r)=>t in e?JA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t)=>{for(var r in t||(t={}))hf.call(t,r)&&af(e,r,t[r]);if(Io)for(var r of Io(t))mf.call(t,r)&&af(e,r,t[r]);return e},VA=(e,t)=>HA(e,$A(t)),zA=(e,t)=>{var r={};for(var n in e)hf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Io)for(var n of Io(e))t.indexOf(n)<0&&mf.call(e,n)&&(r[n]=e[n]);return r},So=(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())});WA=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};KA=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)};vf=Object.defineProperty,YA=Object.getOwnPropertyDescriptor,XA=(e,t)=>{for(var r in t)vf(e,r,{get:t[r],enumerable:!0})},gf=(e,t,r,n)=>{for(var i=n>1?void 0:n?YA(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&&vf(t,r,i),i},ZA=(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}t1=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))}})}};o1=(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))(o1||{}),a1=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}},xo=class extends a1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},s1=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},l1=class extends xo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},c1=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},dl=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Eo={log:Mn("log"),warn:Mn("warn"),info:Mn("info"),error:Mn("error"),debug:Mn("debug")};Object.assign(globalThis,{logger:Eo});lf=Symbol.for("Jolibox.canIUseMap"),u1={};globalThis[lf]||(globalThis[lf]=u1);yl=Symbol.for("Jolibox.canIUseMap.native"),p1={};globalThis[yl]||(globalThis[yl]=p1);_l={get config(){return globalThis[yl]}},f1=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(f1||{}),h1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(h1||{}),m1=(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))(m1||{});v1();g1=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),NH={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")},bl=class wl{constructor(t){this.element=t,this.next=wl.Undefined,this.prev=wl.Undefined}};bl.Undefined=new bl(void 0);oe=bl,y1=class{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let e=this._first;for(;e!==oe.Undefined;){let t=e.next;e.prev=oe.Undefined,e.next=oe.Undefined,e=t}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new oe(e);if(this._first===oe.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!==oe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==oe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==oe.Undefined&&e.next!==oe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===oe.Undefined&&e.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):e.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):e.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==oe.Undefined;)yield e.element,e=e.next}},_1=0,Un=class{constructor(e){this.value=e,this.id=_1++}},Bn=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 Un&&(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 Un(t);return this._listeners?this._listeners instanceof Un?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Un)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Un?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Il=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 Bn,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 y1,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)}},Sl={};XA(Sl,{None:()=>b1,filter:()=>I1,once:()=>wf,toPromise:()=>w1});b1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});pl=Symbol.for("Jolibox.hostEmitter"),S1=()=>{let e=new Il;return globalThis[pl]||(globalThis[pl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[pl]},DH=S1();xl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Bn,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 x1(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}};xl=gf([bf],xl);cf=class{constructor(){this._onWillExecuteCommand=new Bn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Bn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new xl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=e1(3e4)),this._starActivation}executeCommand(e,...t){return ZA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Sl.toPromise(Sl.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}}};cf=gf([bf],cf);LH=Symbol.for("Jolibox.commands");kl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});kl("requestProductDetailsAsync",{version:102e4});kl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});If=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=_l.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=d1(n,i);if(!a)return!1;if($r(a)){let s=a.version;return sf(s)?typeof o=="number"&&o>=s:!0}return sf(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};k1=()=>g1(),jn="custom_event_",A1=[],T1=[],C1=["env","createRequestTask","login"],Sf="__batch_event__",P1="__native_batch_event__",O1=e=>e==="pv"?e:"default",wo=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=O1(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&&$r(a))throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if($r(a))l.push(...Object.keys(a));else if(yf(a)){if(i.length>0)throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new dl(`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=$r(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={}}},df=!1;vl=[],N1=!1,El=Symbol.for("Jolibox.invokeResolverInstance"),D1=new Map;globalThis[El]||(globalThis[El]=D1);L1={get resolveMap(){return globalThis[El]}};bo=Symbol.for("Jolibox.subscribeInstance");pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){pt.trigger=e},onDoExit(e){pt.exit=e},onDoBackPress(e){pt.backPress=e}},Ef=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new s1("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="")=>{pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>So(void 0,null,function*(){let o=yield pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Al={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=xf(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:Ef,doExit:r};globalThis.joliboxJSCore=Jt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>So(void 0,null,function*(){let a=yield pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Al={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=xf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return So(this,null,function*(){let a=yield pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Ef,doExit:n};globalThis.joliboxJSCore=Jt({},i)}kf=Al;if(!kf&&k1())throw new c1("No joliboxJScore is found, native bridge not found.");j1=Jt({},kf),Af=U1(j1),{invokeHandler:ff}=Af,{applyNative:ge,invokeNative:U,onNative:Ye,offNative:qH,subscribeHandler:B1,publish:Tf,emitNative:Tl,subscribe:FH,unsubscribe:MH}=Af;globalThis.joliboxJSBridge={callHandler:ff,invokeHandler:ff,subscribeHandler:B1}});function W1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Df(e){return new Promise(t=>setTimeout(t,e))}function Vn(e){return typeof e=="string"}function kr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Lf(e){return typeof e=="object"&&Array.isArray(e)}function qf(e){return typeof e=="number"&&!isNaN(e)}function zn(e){return e===!0||e===!1}function Ff(e){return typeof e=="undefined"}function ql(e){return Ff(e)||e===null}function K1(e){return typeof e=="function"}function Mf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Uf(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:Of(l)&&Of(s)?i[a]=n(V1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Of(e){return e&&typeof e=="object"&&e.constructor===Object}function jf(e,t){if(Array.isArray(e))return e.concat(t)}function Gn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function Y1(e,t){return(...r)=>t(e,...r)}function Ao(e){return t=>Y1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vr(`${i}`))}})}function Jn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Jl(){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 aT(e){return new Promise(t=>Qf(e)(t))}function Qf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function sT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new $n(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function cT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)uT(e[n],t[n])}function uT(e,t){if(Vn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(K1(t)){try{if(e instanceof t)return}catch(r){}if(!ql(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 dT(){return typeof globalThis!="undefined"?globalThis[Yf]:void 0}function pT(e){typeof globalThis!="undefined"&&(globalThis[Yf]=e)}function te(e=!1){let t=dT();if(!e&&t)return t;let r=new ko,n=new Dl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return pT(i),i}var Ll,J1,Cf,H1,$1,Pf,V1,z1,Nf,G1,Et,Q1,Fl,Wn,Ml,Bf,Vr,Jf,Hf,$f,Vf,zf,Kn,Ul,kt,Pl,X1,jl,Rf,Z1,pe,Bl,eT,To,Qn,tT,rT,Gf,Wf,Kf,Ol,ae,nT,iT,Hn,$n,At,Nl,oT,Cl,lT,Ee,ko,Dl,Yf,D=k(()=>{"use strict";Ll=Object.defineProperty,J1=Object.getOwnPropertyDescriptor,Cf=Object.getOwnPropertySymbols,H1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable,Pf=(e,t,r)=>t in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V1=(e,t)=>{for(var r in t||(t={}))H1.call(t,r)&&Pf(e,r,t[r]);if(Cf)for(var r of Cf(t))$1.call(t,r)&&Pf(e,r,t[r]);return e},z1=(e,t)=>{for(var r in t)Ll(e,r,{get:t[r],enumerable:!0})},Nf=(e,t,r,n)=>{for(var i=n>1?void 0:n?J1(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&&Ll(t,r,i),i},G1=(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}Et=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};Q1=(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))(Q1||{}),Fl=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}},Wn=class extends Fl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Ml=class extends Fl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Bf=class extends Ml{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vr=class extends Ml{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))}},Jf=class extends Ml{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))}},Hf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},$f=class extends Wn{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))}},Vf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},zf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Kn=class extends Fl{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}}},Ul=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};kt={log:Jn("log"),warn:Jn("warn"),info:Jn("info"),error:Jn("error"),debug:Jn("debug")};Object.assign(globalThis,{logger:kt});Pl=Symbol.for("Jolibox.canIUseMap"),X1={};globalThis[Pl]||(globalThis[Pl]=X1);jl={get config(){return globalThis[Pl]}},Rf=Symbol.for("Jolibox.canIUseMap.native"),Z1={};globalThis[Rf]||(globalThis[Rf]=Z1);pe=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(pe||{}),Bl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bl||{}),eT=(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))(eT||{}),To=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Jl();Qn={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")},tT="device_id",rT="advertising_id",Gf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,To()),window.__joliboxLocalStorage__.getItem(e)),Wf=()=>new URLSearchParams(window.location.search).get("deviceId")||Gf(tT),Kf=()=>new URLSearchParams(window.location.search).get("advertisingId")||Gf(rT),Ol=class Rl{constructor(t){this.element=t,this.next=Rl.Undefined,this.prev=Rl.Undefined}};Ol.Undefined=new Ol(void 0);ae=Ol,nT=class{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){let t=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=t}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ae(e);if(this._first===ae.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!==ae.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}},iT=0,Hn=class{constructor(e){this.value=e,this.id=iT++}},$n=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 Hn&&(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 Hn(t);return this._listeners?this._listeners instanceof Hn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Hn)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Hn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},At=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 $n,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 nT,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)}},Nl={};z1(Nl,{None:()=>oT,filter:()=>sT,once:()=>Qf,toPromise:()=>aT});oT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Cl=Symbol.for("Jolibox.hostEmitter"),lT=()=>{let e=new At;return globalThis[Cl]||(globalThis[Cl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Cl]},Ee=lT();ko=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new $n,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 cT(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}};ko=Nf([Mf],ko);Dl=class{constructor(){this._onWillExecuteCommand=new $n,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new $n,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ko,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=W1(3e4)),this._starActivation}executeCommand(e,...t){return G1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Nl.toPromise(Nl.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}}};Dl=Nf([Mf],Dl);Yf=Symbol.for("Jolibox.commands")});function ke(e,t={}){Hl.emit("ERROR_REPORT",{error:e,options:t})}var Hl,Ar,ft=k(()=>{"use strict";D();D();Hl=new At,Ar=new At;ke.debounce=Gn(ke,50,{leading:!0})});var $l,fT,Xf,Zf,eh=k(()=>{"use strict";D();ft();$l=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{}}},fT=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Xf=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:$l(o),payloadJson:$l(a),signature:$l(s)}}else throw"joli_source is missing"}catch(r){return ke(new Hf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Zf=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=fT(e),o=r[2];return`${n}.${i}.${o}`}return t}});var hT,Vl,th=k(()=>{"use strict";D();hT="1.1.41-beta.1",Vl=()=>hT});function rh(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var mT,nh,zl,ih,fe,vT,S,K=k(()=>{"use strict";D();eh();th();D();mT={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Wf(),adId:Kf(),pixelRatio:window.devicePixelRatio||1,platform:Qn.isAndroid?"android":Qn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Vl()},schema:window.location.href,platform:Qn.isAndroid?"android":Qn.isiOS?"ios":"h5"},zl=(nh=globalThis.joliboxJSCore)==null?void 0:nh.env,fe=Object.assign({},(ih=zl==null?void 0:zl())!=null?ih:mT);vT=()=>{var f,m,g,_,v,b,I,A,P,O,x;let{payloadJson:e,headerJson:t,signature:r}=fe.schema.length?Xf(fe.schema):{},n=`${fe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(fe.schema.length?fe.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=fe.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(x=(O=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?x:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var C;return(C=o.get("joliSource"))!=null?C:null},get mpId(){var C;return(C=a!=null?a:e==null?void 0:e.id)!=null?C:""},get mpVersion(){var C;return(C=t==null?void 0:t.ver)!=null?C:Vl()},get mpType(){var C,X;return(X=(C=t==null?void 0:t.__mpType)!=null?C:e==null?void 0:e.__mpType)!=null?X:"game"},get platform(){var C;return((C=fe.platform)!=null?C:fe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return fe.deviceInfo},get sdkInfo(){return fe.sdkInfo},get hostInfo(){return fe.hostInfo},get hostUserInfo(){return fe.hostUserInfo},get sessionId(){var C,X;return(X=(C=fe.clientSessionId)!=null?C:s)!=null?X:n},get channel(){return u},get webviewId(){var C;return(C=fe.webviewId)!=null?C:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var C;return(C=fe.deviceInfo.adId)!=null?C:fe.deviceInfo.did},get language(){return fe.deviceInfo.lang},get sdkEnvironment(){return rh("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":rh("gamedistribution","jolibox")?"gamedistribution":"jolibox"},get viewport(){var q,Ve,Ke;let C=(q=fe.deviceInfo.pixelRatio)!=null?q:1,X=(Ve=fe.deviceInfo.statusBarHeight)!=null?Ve:e==null?void 0:e.__androidStatusBarHeight,it=(Ke=fe.deviceInfo.navigationBarHeight)!=null?Ke:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:X!==void 0?X/C:20,navigationBarHeight:it!==void 0?it/C:10}},onEnvConfigChanged:C=>{Uf(fe,C,jf)},encodeJoliSourceQuery:C=>{var X,it;return t&&r?Zf(T(T({},e),C),(X=o.get("joliSource"))!=null?X:""):(it=o.get("joliSource"))!=null?it:""},setDoExitDirectly:()=>{p=!1}}},S=vT()});var Gl,ah,gT,yT,oh,_T,sh=k(()=>{"use strict";D();ft();K();D();Gl=!1,ah=(e,t)=>e==null?!1:t in e,gT=e=>ah(e,"kind"),yT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},oh=(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:yT(e.name)},i=M(T({},n),{env:t.environment,isFromUser:r});r?Ar.emit("GLOBAL_USER_ERROR",e,i):Ar.emit("GLOBAL_ERROR",e,i)},_T=e=>ah(e,"kind")&&e.kind==="USER_ERROR";Hl.on("ERROR_REPORT",({error:e,options:t})=>{if(Gl)return;Gl=!0;let r=gT(e)&&e.raw?e.raw:e;try{let n=_T(e);oh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Ul(`${i}, origin error: ${r.message}`);kt.error(o),oh(new Ul(o.message),{environment:t.environment},!1)}finally{Gl=!1}})});var sr,Wl,zr=k(()=>{"use strict";ft();D();ft();sr=(e,t)=>{var r,n;return new Kn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Wl=e=>new Bf(e)});var lh=k(()=>{"use strict";sh();zr();D();xe();Ar.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})});Ar.on("GLOBAL_USER_ERROR",(e,t)=>{kt.log("UserError",e,t)})});var Kl=k(()=>{"use strict"});function ch(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Qe(c,["eventType"]),l=M(T({tag:n,eventType:a!=null?a:pe.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new zf(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=Gn(r,500,{leading:!0}),r}function uh(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=Gn(t,500,{leading:!0}),t}var dh=k(()=>{"use strict";D();D();ft()});function ph(e,t){let r=ch(e,t),n=uh(r);return{track:r,trackPerformance:n}}var fh=k(()=>{"use strict";dh()});var hh=k(()=>{"use strict";K();D();D()});var mh=k(()=>{"use strict";fh();Kl();hh()});var Co,vh=k(()=>{"use strict";Co=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Po(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 Ye("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:_}=f,v=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=Qe(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else kt.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),_=bT(u,M(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:P=!1,appendHostCookie:O=!0}=p,x=Object.assign({"content-type":"application/json"},a,p.header),C={url:_,method:v,header:x,enableCache:P,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Ke=IT(p.data,x["content-type"]);C.data=Ke}A&&Object.assign(C,{timeout:A});let{data:{requestTaskId:X}}=U(e,C);if(typeof X!="string")throw sr({code:-1,msg:"requestTaskId is not a string"});let{resolve:it,reject:q,promise:Ve}=new Et;n.set(X,{resolve:it,reject:q});try{let Ke=yield Ve,{data:Er}=Ke;return I==="json"&&typeof Er=="string"&&(Er=wT(Er)),{url:_,timeout:A,method:v,response:M(T({},Ke),{data:Er})}}catch(Ke){let Er=Ke;if(kr(Er)){let{errMsg:cl,prefetchDetail:PH,isPrefetch:OH,errNo:DA}=Er;Vn(cl)&&ke(sr({code:-1,msg:cl},{errNo:DA,errMsg:cl}))}throw Ke}})}function wT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function IT(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 bT,Ql=k(()=>{"use strict";D();xe();ft();zr();bT=(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,gh,Z,ht=k(()=>{"use strict";Ql();K();Yl={};(gh=S.hostUserInfo)!=null&&gh.token&&(Yl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Yl["x-joli-source"]=S.joliSource);Z=Po("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Yl})});var Oo,yh=k(()=>{"use strict";K();vh();ht();xe();Oo=class extends Co{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 w(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"?Z("/api/base/app-event",{method:"POST",data:i}):ge("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ge("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Sh={};of(Sh,{nativeTaskEmitter:()=>Yn,taskTracker:()=>Ht,track:()=>Q,trackPerformance:()=>wh});var ST,_h,bh,Q,wh,Ih,Yn,Ht,Tt=k(()=>{"use strict";lh();D();Kl();mh();K();yh();xe();ST=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=kr(n.extra)?n.extra:Vn(n.extra)?JSON.parse(n.extra):{},o=M(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:S.sessionId,user_id:(d=(c=S.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:pe.Other;U("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:Q,trackPerformance:wh}=ph(ST,{type:Bl.AppSDK,platform:"native",jssdk_version:(bh=(_h=S.sdkInfo)==null?void 0:_h.jssdkVersion)!=null?bh:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ih=te();Ih.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{wh(e,t,r)});Ih.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Q(e,t)});Yn=new At,Ht=new Oo(Q,Yn)});function xh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
1
+ var LA=Object.create;var _o=Object.defineProperty,qA=Object.defineProperties,FA=Object.getOwnPropertyDescriptor,MA=Object.getOwnPropertyDescriptors,UA=Object.getOwnPropertyNames,yo=Object.getOwnPropertySymbols,jA=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable;var rf=(e,t,r)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))ul.call(t,r)&&rf(e,r,t[r]);if(yo)for(var r of yo(t))nf.call(t,r)&&rf(e,r,t[r]);return e},M=(e,t)=>qA(e,MA(t));var Qe=(e,t)=>{var r={};for(var n in e)ul.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yo)for(var n of yo(e))t.indexOf(n)<0&&nf.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),of=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})},BA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UA(t))!ul.call(e,i)&&i!==r&&_o(e,i,{get:()=>t[i],enumerable:!(n=FA(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?LA(jA(e)):{},BA(t||!e||!e.__esModule?_o(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function GA(e){return!!(e!=null&&e.__nativeBuffers__)}function gl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!GA(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=WA(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function QA(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:KA(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function e1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function yf(e){return typeof e=="string"}function $r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function sf(e){return typeof e=="number"&&!isNaN(e)}function r1(e){return typeof e=="undefined"}function n1(e){return r1(e)||e===null}function _f(e){return typeof e=="function"}function i1(e){return $r(e)&&_f(e.then)}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 Mn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function d1(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function v1(){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 w1(e){return new Promise(t=>wf(e)(t))}function wf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function I1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Bn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function x1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)E1(e[n],t[n])}function E1(e,t){if(yf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(_f(t)){try{if(e instanceof t)return}catch(r){}if(!n1(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 kl(e,t){if(_l.config[e]){Eo.warn(`[can i use] ${e} already registered`);return}_l.config[e]=Jt({},t)}function uf(e,t){return`[${e}]:${t}`}function R1(e,t){df||(fl=new wo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),hl=new wo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ml=new wo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{fl.flush(),hl.flush(),ml.flush()}),df=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";fl.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(hl.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),ml.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 q1(e,t){let r=0,n=!0,i=L1.resolveMap,o=R1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,vl.forEach(l=>So(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),vl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=gl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new t1;if(i.set(r,m.resolve),!n&&T1.includes(l))return new Promise(A=>{vl.push({method:l,args:c,resolve:A})});let g=VA(Jt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!N1&&A1.includes(l),v=QA(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||C1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=gl(I)}catch(A){Eo.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=uf(l,I.errorCode)),o(Jt(Jt({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=uf(l,A.errorCode)),o(Jt(Jt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return i1(d)?d.then(u=>pf(l,u)):pf(l,d)},invokeHandler:a}}function pf(e,t){if(!$r(t)){Eo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=zA(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new l1(n,i,o,a);return s}function F1(e){if(globalThis[bo])return globalThis[bo];let t=new Il,r=new Il,n=new wo({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[bo]={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=gl(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===Sf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(jn.length),u,a)}catch(p){}});return}if(i.startsWith(jn)){r.emit(i.slice(jn.length),l,a);return}t.emit(i,l,a)}},globalThis[bo]}function M1(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${jn}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Sf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${jn}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(P1,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function U1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=F1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=q1(e,r),{publish:c,emitNative:d}=M1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function xf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var JA,HA,$A,Io,hf,mf,af,Jt,VA,zA,So,WA,KA,vf,YA,XA,gf,ZA,t1,o1,a1,xo,s1,l1,c1,dl,Eo,lf,u1,yl,p1,_l,f1,h1,m1,g1,NH,bl,oe,y1,_1,Un,Bn,Il,Sl,b1,pl,S1,DH,xl,cf,LH,If,k1,jn,A1,T1,C1,Sf,P1,O1,wo,df,fl,hl,ml,vl,N1,El,D1,L1,bo,Al,pt,Ef,kf,j1,Af,ff,ge,U,Ye,qH,B1,Tf,Tl,FH,MH,xe=k(()=>{"use strict";JA=Object.defineProperty,HA=Object.defineProperties,$A=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,hf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,af=(e,t,r)=>t in e?JA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t)=>{for(var r in t||(t={}))hf.call(t,r)&&af(e,r,t[r]);if(Io)for(var r of Io(t))mf.call(t,r)&&af(e,r,t[r]);return e},VA=(e,t)=>HA(e,$A(t)),zA=(e,t)=>{var r={};for(var n in e)hf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Io)for(var n of Io(e))t.indexOf(n)<0&&mf.call(e,n)&&(r[n]=e[n]);return r},So=(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())});WA=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};KA=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)};vf=Object.defineProperty,YA=Object.getOwnPropertyDescriptor,XA=(e,t)=>{for(var r in t)vf(e,r,{get:t[r],enumerable:!0})},gf=(e,t,r,n)=>{for(var i=n>1?void 0:n?YA(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&&vf(t,r,i),i},ZA=(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}t1=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))}})}};o1=(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))(o1||{}),a1=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}},xo=class extends a1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},s1=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},l1=class extends xo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},c1=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},dl=class extends xo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Eo={log:Mn("log"),warn:Mn("warn"),info:Mn("info"),error:Mn("error"),debug:Mn("debug")};Object.assign(globalThis,{logger:Eo});lf=Symbol.for("Jolibox.canIUseMap"),u1={};globalThis[lf]||(globalThis[lf]=u1);yl=Symbol.for("Jolibox.canIUseMap.native"),p1={};globalThis[yl]||(globalThis[yl]=p1);_l={get config(){return globalThis[yl]}},f1=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(f1||{}),h1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(h1||{}),m1=(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))(m1||{});v1();g1=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),NH={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")},bl=class wl{constructor(t){this.element=t,this.next=wl.Undefined,this.prev=wl.Undefined}};bl.Undefined=new bl(void 0);oe=bl,y1=class{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let e=this._first;for(;e!==oe.Undefined;){let t=e.next;e.prev=oe.Undefined,e.next=oe.Undefined,e=t}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new oe(e);if(this._first===oe.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!==oe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==oe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==oe.Undefined&&e.next!==oe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===oe.Undefined&&e.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):e.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):e.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==oe.Undefined;)yield e.element,e=e.next}},_1=0,Un=class{constructor(e){this.value=e,this.id=_1++}},Bn=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 Un&&(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 Un(t);return this._listeners?this._listeners instanceof Un?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Un)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Un?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Il=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 Bn,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 y1,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)}},Sl={};XA(Sl,{None:()=>b1,filter:()=>I1,once:()=>wf,toPromise:()=>w1});b1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});pl=Symbol.for("Jolibox.hostEmitter"),S1=()=>{let e=new Il;return globalThis[pl]||(globalThis[pl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[pl]},DH=S1();xl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Bn,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 x1(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}};xl=gf([bf],xl);cf=class{constructor(){this._onWillExecuteCommand=new Bn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Bn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new xl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=e1(3e4)),this._starActivation}executeCommand(e,...t){return ZA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Sl.toPromise(Sl.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}}};cf=gf([bf],cf);LH=Symbol.for("Jolibox.commands");kl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});kl("requestProductDetailsAsync",{version:102e4});kl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});If=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=_l.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=d1(n,i);if(!a)return!1;if($r(a)){let s=a.version;return sf(s)?typeof o=="number"&&o>=s:!0}return sf(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};k1=()=>g1(),jn="custom_event_",A1=[],T1=[],C1=["env","createRequestTask","login"],Sf="__batch_event__",P1="__native_batch_event__",O1=e=>e==="pv"?e:"default",wo=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=O1(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&&$r(a))throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if($r(a))l.push(...Object.keys(a));else if(yf(a)){if(i.length>0)throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new dl(`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=$r(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={}}},df=!1;vl=[],N1=!1,El=Symbol.for("Jolibox.invokeResolverInstance"),D1=new Map;globalThis[El]||(globalThis[El]=D1);L1={get resolveMap(){return globalThis[El]}};bo=Symbol.for("Jolibox.subscribeInstance");pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){pt.trigger=e},onDoExit(e){pt.exit=e},onDoBackPress(e){pt.backPress=e}},Ef=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new s1("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="")=>{pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>So(void 0,null,function*(){let o=yield pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Al={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=xf(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:Ef,doExit:r};globalThis.joliboxJSCore=Jt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>So(void 0,null,function*(){let a=yield pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Al={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=xf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return So(this,null,function*(){let a=yield pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Ef,doExit:n};globalThis.joliboxJSCore=Jt({},i)}kf=Al;if(!kf&&k1())throw new c1("No joliboxJScore is found, native bridge not found.");j1=Jt({},kf),Af=U1(j1),{invokeHandler:ff}=Af,{applyNative:ge,invokeNative:U,onNative:Ye,offNative:qH,subscribeHandler:B1,publish:Tf,emitNative:Tl,subscribe:FH,unsubscribe:MH}=Af;globalThis.joliboxJSBridge={callHandler:ff,invokeHandler:ff,subscribeHandler:B1}});function W1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Df(e){return new Promise(t=>setTimeout(t,e))}function Vn(e){return typeof e=="string"}function kr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Lf(e){return typeof e=="object"&&Array.isArray(e)}function qf(e){return typeof e=="number"&&!isNaN(e)}function zn(e){return e===!0||e===!1}function Ff(e){return typeof e=="undefined"}function ql(e){return Ff(e)||e===null}function K1(e){return typeof e=="function"}function Mf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Uf(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:Of(l)&&Of(s)?i[a]=n(V1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Of(e){return e&&typeof e=="object"&&e.constructor===Object}function jf(e,t){if(Array.isArray(e))return e.concat(t)}function Gn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function Y1(e,t){return(...r)=>t(e,...r)}function Ao(e){return t=>Y1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vr(`${i}`))}})}function Jn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Jl(){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 aT(e){return new Promise(t=>Qf(e)(t))}function Qf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function sT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new $n(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function cT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)uT(e[n],t[n])}function uT(e,t){if(Vn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(K1(t)){try{if(e instanceof t)return}catch(r){}if(!ql(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 dT(){return typeof globalThis!="undefined"?globalThis[Yf]:void 0}function pT(e){typeof globalThis!="undefined"&&(globalThis[Yf]=e)}function te(e=!1){let t=dT();if(!e&&t)return t;let r=new ko,n=new Dl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return pT(i),i}var Ll,J1,Cf,H1,$1,Pf,V1,z1,Nf,G1,kt,Q1,Fl,Wn,Ml,Bf,Vr,Jf,Hf,$f,Vf,zf,Kn,Ul,At,Pl,X1,jl,Rf,Z1,pe,Bl,eT,To,Qn,tT,rT,Gf,Wf,Kf,Ol,ae,nT,iT,Hn,$n,Tt,Nl,oT,Cl,lT,Ee,ko,Dl,Yf,D=k(()=>{"use strict";Ll=Object.defineProperty,J1=Object.getOwnPropertyDescriptor,Cf=Object.getOwnPropertySymbols,H1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable,Pf=(e,t,r)=>t in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V1=(e,t)=>{for(var r in t||(t={}))H1.call(t,r)&&Pf(e,r,t[r]);if(Cf)for(var r of Cf(t))$1.call(t,r)&&Pf(e,r,t[r]);return e},z1=(e,t)=>{for(var r in t)Ll(e,r,{get:t[r],enumerable:!0})},Nf=(e,t,r,n)=>{for(var i=n>1?void 0:n?J1(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&&Ll(t,r,i),i},G1=(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}kt=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))}})}};Q1=(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))(Q1||{}),Fl=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}},Wn=class extends Fl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Ml=class extends Fl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Bf=class extends Ml{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vr=class extends Ml{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))}},Jf=class extends Ml{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))}},Hf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},$f=class extends Wn{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))}},Vf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},zf=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Kn=class extends Fl{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}}},Ul=class extends Wn{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};At={log:Jn("log"),warn:Jn("warn"),info:Jn("info"),error:Jn("error"),debug:Jn("debug")};Object.assign(globalThis,{logger:At});Pl=Symbol.for("Jolibox.canIUseMap"),X1={};globalThis[Pl]||(globalThis[Pl]=X1);jl={get config(){return globalThis[Pl]}},Rf=Symbol.for("Jolibox.canIUseMap.native"),Z1={};globalThis[Rf]||(globalThis[Rf]=Z1);pe=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(pe||{}),Bl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bl||{}),eT=(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))(eT||{}),To=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Jl();Qn={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")},tT="device_id",rT="advertising_id",Gf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,To()),window.__joliboxLocalStorage__.getItem(e)),Wf=()=>new URLSearchParams(window.location.search).get("deviceId")||Gf(tT),Kf=()=>new URLSearchParams(window.location.search).get("advertisingId")||Gf(rT),Ol=class Rl{constructor(t){this.element=t,this.next=Rl.Undefined,this.prev=Rl.Undefined}};Ol.Undefined=new Ol(void 0);ae=Ol,nT=class{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){let t=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=t}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ae(e);if(this._first===ae.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!==ae.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}},iT=0,Hn=class{constructor(e){this.value=e,this.id=iT++}},$n=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 Hn&&(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 Hn(t);return this._listeners?this._listeners instanceof Hn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Hn)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof Hn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Tt=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 $n,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 nT,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)}},Nl={};z1(Nl,{None:()=>oT,filter:()=>sT,once:()=>Qf,toPromise:()=>aT});oT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Cl=Symbol.for("Jolibox.hostEmitter"),lT=()=>{let e=new Tt;return globalThis[Cl]||(globalThis[Cl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Cl]},Ee=lT();ko=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new $n,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 cT(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}};ko=Nf([Mf],ko);Dl=class{constructor(){this._onWillExecuteCommand=new $n,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new $n,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ko,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=W1(3e4)),this._starActivation}executeCommand(e,...t){return G1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Nl.toPromise(Nl.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}}};Dl=Nf([Mf],Dl);Yf=Symbol.for("Jolibox.commands")});function ke(e,t={}){Hl.emit("ERROR_REPORT",{error:e,options:t})}var Hl,Ar,ft=k(()=>{"use strict";D();D();Hl=new Tt,Ar=new Tt;ke.debounce=Gn(ke,50,{leading:!0})});var $l,fT,Xf,Zf,eh=k(()=>{"use strict";D();ft();$l=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{}}},fT=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Xf=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:$l(o),payloadJson:$l(a),signature:$l(s)}}else throw"joli_source is missing"}catch(r){return ke(new Hf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Zf=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=fT(e),o=r[2];return`${n}.${i}.${o}`}return t}});var hT,Vl,th=k(()=>{"use strict";D();hT="1.1.41",Vl=()=>hT});function rh(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var mT,nh,zl,ih,fe,vT,S,Q=k(()=>{"use strict";D();eh();th();D();mT={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Wf(),adId:Kf(),pixelRatio:window.devicePixelRatio||1,platform:Qn.isAndroid?"android":Qn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Vl()},schema:window.location.href,platform:Qn.isAndroid?"android":Qn.isiOS?"ios":"h5"},zl=(nh=globalThis.joliboxJSCore)==null?void 0:nh.env,fe=Object.assign({},(ih=zl==null?void 0:zl())!=null?ih:mT);vT=()=>{var f,m,g,_,v,b,I,A,P,O,x;let{payloadJson:e,headerJson:t,signature:r}=fe.schema.length?Xf(fe.schema):{},n=`${fe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(fe.schema.length?fe.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=fe.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(x=(O=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?x:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var C;return(C=performance.timeOrigin)!=null?C:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var C;return(C=o.get("joliSource"))!=null?C:null},get mpId(){var C;return(C=a!=null?a:e==null?void 0:e.id)!=null?C:""},get mpVersion(){var C;return(C=t==null?void 0:t.ver)!=null?C:Vl()},get mpType(){var C,X;return(X=(C=t==null?void 0:t.__mpType)!=null?C:e==null?void 0:e.__mpType)!=null?X:"game"},get platform(){var C;return((C=fe.platform)!=null?C:fe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return fe.deviceInfo},get sdkInfo(){return fe.sdkInfo},get hostInfo(){return fe.hostInfo},get hostUserInfo(){return fe.hostUserInfo},get sessionId(){var C,X;return(X=(C=fe.clientSessionId)!=null?C:s)!=null?X:n},get channel(){return u},get webviewId(){var C;return(C=fe.webviewId)!=null?C:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var C;return(C=fe.deviceInfo.adId)!=null?C:fe.deviceInfo.did},get language(){return fe.deviceInfo.lang},get sdkEnvironment(){return rh("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":rh("gamedistribution","jolibox")?"gamedistribution":"jolibox"},get viewport(){var q,Ve,Ke;let C=(q=fe.deviceInfo.pixelRatio)!=null?q:1,X=(Ve=fe.deviceInfo.statusBarHeight)!=null?Ve:e==null?void 0:e.__androidStatusBarHeight,it=(Ke=fe.deviceInfo.navigationBarHeight)!=null?Ke:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:X!==void 0?X/C:20,navigationBarHeight:it!==void 0?it/C:10}},onEnvConfigChanged:C=>{Uf(fe,C,jf)},encodeJoliSourceQuery:C=>{var X,it;return t&&r?Zf(T(T({},e),C),(X=o.get("joliSource"))!=null?X:""):(it=o.get("joliSource"))!=null?it:""},setDoExitDirectly:()=>{p=!1}}},S=vT()});var Gl,ah,gT,yT,oh,_T,sh=k(()=>{"use strict";D();ft();Q();D();Gl=!1,ah=(e,t)=>e==null?!1:t in e,gT=e=>ah(e,"kind"),yT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},oh=(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:yT(e.name)},i=M(T({},n),{env:t.environment,isFromUser:r});r?Ar.emit("GLOBAL_USER_ERROR",e,i):Ar.emit("GLOBAL_ERROR",e,i)},_T=e=>ah(e,"kind")&&e.kind==="USER_ERROR";Hl.on("ERROR_REPORT",({error:e,options:t})=>{if(Gl)return;Gl=!0;let r=gT(e)&&e.raw?e.raw:e;try{let n=_T(e);oh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Ul(`${i}, origin error: ${r.message}`);At.error(o),oh(new Ul(o.message),{environment:t.environment},!1)}finally{Gl=!1}})});var sr,Wl,zr=k(()=>{"use strict";ft();D();ft();sr=(e,t)=>{var r,n;return new Kn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Wl=e=>new Bf(e)});var lh=k(()=>{"use strict";sh();zr();D();xe();Ar.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})});Ar.on("GLOBAL_USER_ERROR",(e,t)=>{At.log("UserError",e,t)})});var Kl=k(()=>{"use strict"});function ch(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Qe(c,["eventType"]),l=M(T({tag:n,eventType:a!=null?a:pe.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new zf(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=Gn(r,500,{leading:!0}),r}function uh(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=Gn(t,500,{leading:!0}),t}var dh=k(()=>{"use strict";D();D();ft()});function ph(e,t){let r=ch(e,t),n=uh(r);return{track:r,trackPerformance:n}}var fh=k(()=>{"use strict";dh()});var hh=k(()=>{"use strict";Q();D();D()});var mh=k(()=>{"use strict";fh();Kl();hh()});var Co,vh=k(()=>{"use strict";Co=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Po(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 Ye("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:_}=f,v=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=Qe(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else At.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),_=bT(u,M(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:P=!1,appendHostCookie:O=!0}=p,x=Object.assign({"content-type":"application/json"},a,p.header),C={url:_,method:v,header:x,enableCache:P,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Ke=IT(p.data,x["content-type"]);C.data=Ke}A&&Object.assign(C,{timeout:A});let{data:{requestTaskId:X}}=U(e,C);if(typeof X!="string")throw sr({code:-1,msg:"requestTaskId is not a string"});let{resolve:it,reject:q,promise:Ve}=new kt;n.set(X,{resolve:it,reject:q});try{let Ke=yield Ve,{data:Er}=Ke;return I==="json"&&typeof Er=="string"&&(Er=wT(Er)),{url:_,timeout:A,method:v,response:M(T({},Ke),{data:Er})}}catch(Ke){let Er=Ke;if(kr(Er)){let{errMsg:cl,prefetchDetail:PH,isPrefetch:OH,errNo:DA}=Er;Vn(cl)&&ke(sr({code:-1,msg:cl},{errNo:DA,errMsg:cl}))}throw Ke}})}function wT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function IT(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 bT,Ql=k(()=>{"use strict";D();xe();ft();zr();bT=(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,gh,Z,ht=k(()=>{"use strict";Ql();Q();Yl={};(gh=S.hostUserInfo)!=null&&gh.token&&(Yl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Yl["x-joli-source"]=S.joliSource);Z=Po("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Yl})});var Oo,yh=k(()=>{"use strict";Q();vh();ht();xe();Oo=class extends Co{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 w(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"?Z("/api/base/app-event",{method:"POST",data:i}):ge("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ge("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Sh={};of(Sh,{nativeTaskEmitter:()=>Yn,taskTracker:()=>Ht,track:()=>z,trackPerformance:()=>wh});var ST,_h,bh,z,wh,Ih,Yn,Ht,bt=k(()=>{"use strict";lh();D();Kl();mh();Q();yh();xe();ST=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=kr(n.extra)?n.extra:Vn(n.extra)?JSON.parse(n.extra):{},o=M(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:S.sessionId,user_id:(d=(c=S.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:pe.Other;U("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:z,trackPerformance:wh}=ph(ST,{type:Bl.AppSDK,platform:"native",jssdk_version:(bh=(_h=S.sdkInfo)==null?void 0:_h.jssdkVersion)!=null?bh:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ih=te();Ih.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{wh(e,t,r)});Ih.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{z(e,t)});Yn=new Tt,Ht=new Oo(z,Yn)});function xh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
2
2
  html[data-jolibox-root] {
3
3
  height: 100%;
4
4
  margin: 0;
@@ -16,8 +16,8 @@ var LA=Object.create;var _o=Object.defineProperty,qA=Object.defineProperties,FA=
16
16
  min-height: 100dvh;
17
17
  }
18
18
  }
19
- `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Eh=k(()=>{"use strict";K()});var kh=k(()=>{"use strict"});var Ah=k(()=>{"use strict";D();Jl()});var Th=k(()=>{"use strict";K()});var Ro,Xl=k(()=>{"use strict";kh();Ah();K();Th();D();Ro=new At});function $t(e,t){for(var r in t)e[r]=t[r];return e}function ic(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Me(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?qo.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 Do(e,a,n,i,null)}function Do(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?++Rh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function Oe(e){return e.children}function ot(e,t){this.props=e,this.context=t}function Gr(e,t){if(t==null)return e.__?Gr(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"?Gr(e):null}function Mh(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 Mh(e)}}function tc(e){(!e.__d&&(e.__d=!0)&&Tr.push(e)&&!Lo.__r++||Ch!==R.debounceRendering)&&((Ch=R.debounceRendering)||Nh)(Lo)}function Lo(){for(var e,t,r,n,i,o,a,s=1;Tr.length;)Tr.length>s&&Tr.sort(Dh),e=Tr.shift(),s=Tr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=$t({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),oc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Gr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Bh(o,r,a),r.__e!=i&&Mh(r)));Lo.__r=0}function Uh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Fh,b=t.length;for(l=ET(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Xn:v[f.__i]||Xn,f.__i=u,_=oc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&ac(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=jh(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function ET(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Do(null,a,null,null,null):Zn(a)?Do(Oe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Do(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=kT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Gr(s)),Hh(s,s));return n}function jh(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=jh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Gr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ei(e,t){return t=t||[],e==null||typeof e=="boolean"||(Zn(e)?e.some(function(r){ei(r,t)}):t.push(e)),t}function kT(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 Ph(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||xT.test(t)?r:r+"px"}function No(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||Ph(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Ph(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Lh,"$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=nc,e.addEventListener(t,o?ec:Zl,o)):e.removeEventListener(t,o?ec:Zl,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 Oh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=nc++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function oc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,I,A,P,O,x,C,X,it,q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof q=="function")try{if(v=t.props,b="prototype"in q&&q.prototype.render,I=(d=q.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new q(v,A):(t.__c=u=new ot(v,A),u.constructor=q,u.render=TT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=$t({},u.__s)),$t(u.__s,q.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&q.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Ve){Ve&&(Ve.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,x=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++x<25);u.state=u.__s,u.getChildContext!=null&&(n=$t($t({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),X=d,d!=null&&d.type===Oe&&d.key==null&&(X=Jh(d.props.children)),s=Uh(e,Zn(X)?X:[X],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(Ve){if(t.__v=null,l||o!=null)if(Ve.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(it=o.length;it--;)ic(o[it]);else t.__e=r.__e,t.__k=r.__k;R.__e(Ve,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=AT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function Bh(e,t,r){for(var n=0;n<r.length;n++)ac(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function Jh(e){return typeof e!="object"||e==null?e:Zn(e)?e.map(Jh):$t({},e)}function AT(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&qo.call(e.childNodes),_=r.props||Xn,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;No(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||No(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Uh(t.type==="template"?e.content:e,Zn(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Gr(r,0),s,l),o!=null)for(c=o.length;c--;)ic(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])&&No(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&No(e,c,g,_[c],i))}return e}function ac(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){R.__e(i,r)}}function Hh(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ac(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Hh(n[i],t,r||typeof e.type!="function");r||ic(e.__e),e.__c=e.__=e.__e=void 0}function TT(e,t,r){return this.constructor(e,r)}function lr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],oc(t,e=(!n&&r||t).__k=Me(Oe,null,[e]),i||Xn,Xn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?qo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Bh(o,e,a)}function Cr(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,tc(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"+qh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var qo,R,Rh,rc,Tr,Ch,Nh,Dh,Lh,nc,Zl,ec,qh,Xn,Fh,xT,Zn,Wr=k(()=>{Xn={},Fh=[],xT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zn=Array.isArray;qo=Fh.slice,R={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Rh=0,rc=function(e){return e!=null&&e.constructor==null},ot.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$t({},this.state),typeof e=="function"&&(e=e($t({},r),this.props)),e&&$t(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),tc(this))},ot.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),tc(this))},ot.prototype.render=Oe,Tr=[],Nh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dh=function(e,t){return e.__v.__b-t.__v.__b},Lo.__r=0,Lh=/(PointerCapture)$|Capture$/i,nc=0,Zl=Oh(!1),ec=Oh(!0),qh=0});var ce=h((pV,$h)=>{"use strict";$h.exports=function(e){try{return!!e()}catch(t){return!0}}});var Kr=h((fV,Vh)=>{"use strict";var CT=ce();Vh.exports=!CT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ye=h((hV,Wh)=>{"use strict";var zh=Kr(),Gh=Function.prototype,sc=Gh.call,PT=zh&&Gh.bind.bind(sc,sc);Wh.exports=zh?PT:function(e){return function(){return sc.apply(e,arguments)}}});var ze=h((mV,Kh)=>{"use strict";var OT=ye();Kh.exports=OT({}.isPrototypeOf)});var ue=h((lc,Qh)=>{"use strict";var ti=function(e){return e&&e.Math===Math&&e};Qh.exports=ti(typeof globalThis=="object"&&globalThis)||ti(typeof window=="object"&&window)||ti(typeof self=="object"&&self)||ti(typeof global=="object"&&global)||ti(typeof lc=="object"&&lc)||function(){return this}()||Function("return this")()});var cc=h((vV,em)=>{"use strict";var RT=Kr(),Zh=Function.prototype,Yh=Zh.apply,Xh=Zh.call;em.exports=typeof Reflect=="object"&&Reflect.apply||(RT?Xh.bind(Yh):function(){return Xh.apply(Yh,arguments)})});var Vt=h((gV,rm)=>{"use strict";var tm=ye(),NT=tm({}.toString),DT=tm("".slice);rm.exports=function(e){return DT(NT(e),8,-1)}});var ri=h((yV,nm)=>{"use strict";var LT=Vt(),qT=ye();nm.exports=function(e){if(LT(e)==="Function")return qT(e)}});var Re=h((_V,im)=>{"use strict";var uc=typeof document=="object"&&document.all;im.exports=typeof uc=="undefined"&&uc!==void 0?function(e){return typeof e=="function"||e===uc}:function(e){return typeof e=="function"}});var Ge=h((bV,om)=>{"use strict";var FT=ce();om.exports=!FT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var bt=h((wV,am)=>{"use strict";var MT=Kr(),Fo=Function.prototype.call;am.exports=MT?Fo.bind(Fo):function(){return Fo.apply(Fo,arguments)}});var dc=h(cm=>{"use strict";var sm={}.propertyIsEnumerable,lm=Object.getOwnPropertyDescriptor,UT=lm&&!sm.call({1:2},1);cm.f=UT?function(t){var r=lm(this,t);return!!r&&r.enumerable}:sm});var ni=h((SV,um)=>{"use strict";um.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Mo=h((xV,dm)=>{"use strict";var jT=ye(),BT=ce(),JT=Vt(),pc=Object,HT=jT("".split);dm.exports=BT(function(){return!pc("z").propertyIsEnumerable(0)})?function(e){return JT(e)==="String"?HT(e,""):pc(e)}:pc});var Pr=h((EV,pm)=>{"use strict";pm.exports=function(e){return e==null}});var Or=h((kV,fm)=>{"use strict";var $T=Pr(),VT=TypeError;fm.exports=function(e){if($T(e))throw new VT("Can't call method on "+e);return e}});var cr=h((AV,hm)=>{"use strict";var zT=Mo(),GT=Or();hm.exports=function(e){return zT(GT(e))}});var Ae=h((TV,mm)=>{"use strict";var WT=Re();mm.exports=function(e){return typeof e=="object"?e!==null:WT(e)}});var Ct=h((CV,vm)=>{"use strict";vm.exports={}});var Qr=h((PV,ym)=>{"use strict";var fc=Ct(),hc=ue(),KT=Re(),gm=function(e){return KT(e)?e:void 0};ym.exports=function(e,t){return arguments.length<2?gm(fc[e])||gm(hc[e]):fc[e]&&fc[e][t]||hc[e]&&hc[e][t]}});var Uo=h((OV,wm)=>{"use strict";var QT=ue(),_m=QT.navigator,bm=_m&&_m.userAgent;wm.exports=bm?String(bm):""});var Bo=h((RV,Am)=>{"use strict";var km=ue(),mc=Uo(),Im=km.process,Sm=km.Deno,xm=Im&&Im.versions||Sm&&Sm.version,Em=xm&&xm.v8,wt,jo;Em&&(wt=Em.split("."),jo=wt[0]>0&&wt[0]<4?1:+(wt[0]+wt[1]));!jo&&mc&&(wt=mc.match(/Edge\/(\d+)/),(!wt||wt[1]>=74)&&(wt=mc.match(/Chrome\/(\d+)/),wt&&(jo=+wt[1])));Am.exports=jo});var vc=h((NV,Cm)=>{"use strict";var Tm=Bo(),YT=ce(),XT=ue(),ZT=XT.String;Cm.exports=!!Object.getOwnPropertySymbols&&!YT(function(){var e=Symbol("symbol detection");return!ZT(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tm&&Tm<41})});var gc=h((DV,Pm)=>{"use strict";var eC=vc();Pm.exports=eC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var yc=h((LV,Om)=>{"use strict";var tC=Qr(),rC=Re(),nC=ze(),iC=gc(),oC=Object;Om.exports=iC?function(e){return typeof e=="symbol"}:function(e){var t=tC("Symbol");return rC(t)&&nC(t.prototype,oC(e))}});var ii=h((qV,Rm)=>{"use strict";var aC=String;Rm.exports=function(e){try{return aC(e)}catch(t){return"Object"}}});var Rr=h((FV,Nm)=>{"use strict";var sC=Re(),lC=ii(),cC=TypeError;Nm.exports=function(e){if(sC(e))return e;throw new cC(lC(e)+" is not a function")}});var Jo=h((MV,Dm)=>{"use strict";var uC=Rr(),dC=Pr();Dm.exports=function(e,t){var r=e[t];return dC(r)?void 0:uC(r)}});var qm=h((UV,Lm)=>{"use strict";var _c=bt(),bc=Re(),wc=Ae(),pC=TypeError;Lm.exports=function(e,t){var r,n;if(t==="string"&&bc(r=e.toString)&&!wc(n=_c(r,e))||bc(r=e.valueOf)&&!wc(n=_c(r,e))||t!=="string"&&bc(r=e.toString)&&!wc(n=_c(r,e)))return n;throw new pC("Can't convert object to primitive value")}});var Yr=h((jV,Fm)=>{"use strict";Fm.exports=!0});var jm=h((BV,Um)=>{"use strict";var Mm=ue(),fC=Object.defineProperty;Um.exports=function(e,t){try{fC(Mm,e,{value:t,configurable:!0,writable:!0})}catch(r){Mm[e]=t}return t}});var oi=h((JV,Hm)=>{"use strict";var hC=Yr(),mC=ue(),vC=jm(),Bm="__core-js_shared__",Jm=Hm.exports=mC[Bm]||vC(Bm,{});(Jm.versions||(Jm.versions=[])).push({version:"3.41.0",mode:hC?"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 Ic=h((HV,Vm)=>{"use strict";var $m=oi();Vm.exports=function(e,t){return $m[e]||($m[e]=t||{})}});var Xr=h(($V,zm)=>{"use strict";var gC=Or(),yC=Object;zm.exports=function(e){return yC(gC(e))}});var at=h((VV,Gm)=>{"use strict";var _C=ye(),bC=Xr(),wC=_C({}.hasOwnProperty);Gm.exports=Object.hasOwn||function(t,r){return wC(bC(t),r)}});var Ho=h((zV,Wm)=>{"use strict";var IC=ye(),SC=0,xC=Math.random(),EC=IC(1 .toString);Wm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EC(++SC+xC,36)}});var Ue=h((GV,Qm)=>{"use strict";var kC=ue(),AC=Ic(),Km=at(),TC=Ho(),CC=vc(),PC=gc(),Zr=kC.Symbol,Sc=AC("wks"),OC=PC?Zr.for||Zr:Zr&&Zr.withoutSetter||TC;Qm.exports=function(e){return Km(Sc,e)||(Sc[e]=CC&&Km(Zr,e)?Zr[e]:OC("Symbol."+e)),Sc[e]}});var ev=h((WV,Zm)=>{"use strict";var RC=bt(),Ym=Ae(),Xm=yc(),NC=Jo(),DC=qm(),LC=Ue(),qC=TypeError,FC=LC("toPrimitive");Zm.exports=function(e,t){if(!Ym(e)||Xm(e))return e;var r=NC(e,FC),n;if(r){if(t===void 0&&(t="default"),n=RC(r,e,t),!Ym(n)||Xm(n))return n;throw new qC("Can't convert object to primitive value")}return t===void 0&&(t="number"),DC(e,t)}});var xc=h((KV,tv)=>{"use strict";var MC=ev(),UC=yc();tv.exports=function(e){var t=MC(e,"string");return UC(t)?t:t+""}});var kc=h((QV,nv)=>{"use strict";var jC=ue(),rv=Ae(),Ec=jC.document,BC=rv(Ec)&&rv(Ec.createElement);nv.exports=function(e){return BC?Ec.createElement(e):{}}});var Ac=h((YV,iv)=>{"use strict";var JC=Ge(),HC=ce(),$C=kc();iv.exports=!JC&&!HC(function(){return Object.defineProperty($C("div"),"a",{get:function(){return 7}}).a!==7})});var Tc=h(av=>{"use strict";var VC=Ge(),zC=bt(),GC=dc(),WC=ni(),KC=cr(),QC=xc(),YC=at(),XC=Ac(),ov=Object.getOwnPropertyDescriptor;av.f=VC?ov:function(t,r){if(t=KC(t),r=QC(r),XC)try{return ov(t,r)}catch(n){}if(YC(t,r))return WC(!zC(GC.f,t,r),t[r])}});var lv=h((ZV,sv)=>{"use strict";var ZC=ce(),eP=Re(),tP=/#|\.prototype\./,ai=function(e,t){var r=nP[rP(e)];return r===oP?!0:r===iP?!1:eP(t)?ZC(t):!!t},rP=ai.normalize=function(e){return String(e).replace(tP,".").toLowerCase()},nP=ai.data={},iP=ai.NATIVE="N",oP=ai.POLYFILL="P";sv.exports=ai});var si=h((ez,uv)=>{"use strict";var cv=ri(),aP=Rr(),sP=Kr(),lP=cv(cv.bind);uv.exports=function(e,t){return aP(e),t===void 0?e:sP?lP(e,t):function(){return e.apply(t,arguments)}}});var Cc=h((tz,dv)=>{"use strict";var cP=Ge(),uP=ce();dv.exports=cP&&uP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((rz,pv)=>{"use strict";var dP=Ae(),pP=String,fP=TypeError;pv.exports=function(e){if(dP(e))return e;throw new fP(pP(e)+" is not an object")}});var Gt=h(hv=>{"use strict";var hP=Ge(),mP=Ac(),vP=Cc(),$o=zt(),fv=xc(),gP=TypeError,Pc=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,Oc="enumerable",Rc="configurable",Nc="writable";hv.f=hP?vP?function(t,r,n){if($o(t),r=fv(r),$o(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Nc in n&&!n[Nc]){var i=yP(t,r);i&&i[Nc]&&(t[r]=n.value,n={configurable:Rc in n?n[Rc]:i[Rc],enumerable:Oc in n?n[Oc]:i[Oc],writable:!1})}return Pc(t,r,n)}:Pc:function(t,r,n){if($o(t),r=fv(r),$o(n),mP)try{return Pc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new gP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Nr=h((iz,mv)=>{"use strict";var _P=Ge(),bP=Gt(),wP=ni();mv.exports=_P?function(e,t,r){return bP.f(e,t,wP(1,r))}:function(e,t,r){return e[t]=r,e}});var W=h((oz,gv)=>{"use strict";var li=ue(),IP=cc(),SP=ri(),xP=Re(),EP=Tc().f,kP=lv(),en=Ct(),AP=si(),tn=Nr(),vv=at();oi();var TP=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 IP(e,this,arguments)};return t.prototype=e.prototype,t};gv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?li:i?li[r]:li[r]&&li[r].prototype,s=n?en:en[r]||tn(en,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=kP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&vv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=EP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=AP(f,li):e.wrap&&d?_=TP(f):o&&xP(f)?_=SP(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&tn(_,"sham",!0),tn(s,p,_),o&&(u=r+"Prototype",vv(en,u)||tn(en,u,{}),tn(en[u],p,f),e.real&&l&&(c||!l[p])&&tn(l,p,f)))}});var _v=h((az,yv)=>{"use strict";var CP=Math.ceil,PP=Math.floor;yv.exports=Math.trunc||function(t){var r=+t;return(r>0?PP:CP)(r)}});var ci=h((sz,bv)=>{"use strict";var OP=_v();bv.exports=function(e){var t=+e;return t!==t||t===0?0:OP(t)}});var Dc=h((lz,wv)=>{"use strict";var RP=ci(),NP=Math.min;wv.exports=function(e){var t=RP(e);return t>0?NP(t,9007199254740991):0}});var rn=h((cz,Iv)=>{"use strict";var DP=Dc();Iv.exports=function(e){return DP(e.length)}});var ui=h((uz,Sv)=>{"use strict";var LP=Vt();Sv.exports=Array.isArray||function(t){return LP(t)==="Array"}});var Vo=h((dz,Ev)=>{"use strict";var qP=Ue(),FP=qP("toStringTag"),xv={};xv[FP]="z";Ev.exports=String(xv)==="[object z]"});var nn=h((pz,kv)=>{"use strict";var MP=Vo(),UP=Re(),zo=Vt(),jP=Ue(),BP=jP("toStringTag"),JP=Object,HP=zo(function(){return arguments}())==="Arguments",$P=function(e,t){try{return e[t]}catch(r){}};kv.exports=MP?zo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=$P(t=JP(e),BP))=="string"?r:HP?zo(t):(n=zo(t))==="Object"&&UP(t.callee)?"Arguments":n}});var Tv=h((fz,Av)=>{"use strict";var VP=ye(),zP=Re(),Lc=oi(),GP=VP(Function.toString);zP(Lc.inspectSource)||(Lc.inspectSource=function(e){return GP(e)});Av.exports=Lc.inspectSource});var Fc=h((hz,Nv)=>{"use strict";var WP=ye(),KP=ce(),Cv=Re(),QP=nn(),YP=Qr(),XP=Tv(),Pv=function(){},Ov=YP("Reflect","construct"),qc=/^\s*(?:class|function)\b/,ZP=WP(qc.exec),eO=!qc.test(Pv),di=function(t){if(!Cv(t))return!1;try{return Ov(Pv,[],t),!0}catch(r){return!1}},Rv=function(t){if(!Cv(t))return!1;switch(QP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eO||!!ZP(qc,XP(t))}catch(r){return!0}};Rv.sham=!0;Nv.exports=!Ov||KP(function(){var e;return di(di.call)||!di(Object)||!di(function(){e=!0})||e})?Rv:di});var Fv=h((mz,qv)=>{"use strict";var Dv=ui(),tO=Fc(),rO=Ae(),nO=Ue(),iO=nO("species"),Lv=Array;qv.exports=function(e){var t;return Dv(e)&&(t=e.constructor,tO(t)&&(t===Lv||Dv(t.prototype))?t=void 0:rO(t)&&(t=t[iO],t===null&&(t=void 0))),t===void 0?Lv:t}});var Mc=h((vz,Mv)=>{"use strict";var oO=Fv();Mv.exports=function(e,t){return new(oO(e))(t===0?0:t)}});var dr=h((gz,jv)=>{"use strict";var aO=si(),sO=ye(),lO=Mo(),cO=Xr(),uO=rn(),dO=Mc(),Uv=sO([].push),ur=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=cO(l),f=lO(p),m=uO(f),g=aO(c,d),_=0,v=u||dO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in f)&&(I=f[_],A=g(I,_,p),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:Uv(b,I)}else switch(e){case 4:return!1;case 7:Uv(b,I)}return o?-1:n||i?i:b}};jv.exports={forEach:ur(0),map:ur(1),filter:ur(2),some:ur(3),every:ur(4),find:ur(5),findIndex:ur(6),filterReject:ur(7)}});var pi=h((yz,Bv)=>{"use strict";var pO=ce(),fO=Ue(),hO=Bo(),mO=fO("species");Bv.exports=function(e){return hO>=51||!pO(function(){var t=[],r=t.constructor={};return r[mO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Jv=h(()=>{"use strict";var vO=W(),gO=dr().filter,yO=pi(),_O=yO("filter");vO({target:"Array",proto:!0,forced:!_O},{filter:function(t){return gO(this,t,arguments.length>1?arguments[1]:void 0)}})});var mt=h((wz,Hv)=>{"use strict";var bO=ue(),wO=Ct();Hv.exports=function(e,t){var r=wO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=bO[e],o=i&&i.prototype;return o&&o[t]}});var Vv=h((Iz,$v)=>{"use strict";Jv();var IO=mt();$v.exports=IO("Array","filter")});var Gv=h((Sz,zv)=>{"use strict";var SO=ze(),xO=Vv(),Uc=Array.prototype;zv.exports=function(e){var t=e.filter;return e===Uc||SO(Uc,e)&&t===Uc.filter?xO:t}});var Kv=h((xz,Wv)=>{"use strict";var EO=Gv();Wv.exports=EO});var Yv=h((Ez,Qv)=>{Qv.exports=Kv()});var fi=h((kz,Xv)=>{"use strict";var kO=ce();Xv.exports=function(e,t){var r=[][e];return!!r&&kO(function(){r.call(null,t||function(){return 1},1)})}});var Zv=h(()=>{"use strict";var AO=W(),TO=dr().every,CO=fi(),PO=CO("every");AO({target:"Array",proto:!0,forced:!PO},{every:function(t){return TO(this,t,arguments.length>1?arguments[1]:void 0)}})});var tg=h((Cz,eg)=>{"use strict";Zv();var OO=mt();eg.exports=OO("Array","every")});var ng=h((Pz,rg)=>{"use strict";var RO=ze(),NO=tg(),jc=Array.prototype;rg.exports=function(e){var t=e.every;return e===jc||RO(jc,e)&&t===jc.every?NO:t}});var og=h((Oz,ig)=>{"use strict";var DO=ng();ig.exports=DO});var sg=h((Rz,ag)=>{ag.exports=og()});var cg=h((Nz,lg)=>{"use strict";var LO=dr().forEach,qO=fi(),FO=qO("forEach");lg.exports=FO?[].forEach:function(t){return LO(this,t,arguments.length>1?arguments[1]:void 0)}});var dg=h(()=>{"use strict";var MO=W(),ug=cg();MO({target:"Array",proto:!0,forced:[].forEach!==ug},{forEach:ug})});var fg=h((qz,pg)=>{"use strict";dg();var UO=mt();pg.exports=UO("Array","forEach")});var mg=h((Fz,hg)=>{"use strict";var jO=fg();hg.exports=jO});var vg=h(()=>{});var yg=h((jz,gg)=>{"use strict";var BO=nn(),JO=at(),HO=ze(),$O=mg();vg();var Bc=Array.prototype,VO={DOMTokenList:!0,NodeList:!0};gg.exports=function(e){var t=e.forEach;return e===Bc||HO(Bc,e)&&t===Bc.forEach||JO(VO,BO(e))?$O:t}});var bg=h((Bz,_g)=>{_g.exports=yg()});var Ig=h((Jz,wg)=>{"use strict";var zO=TypeError,GO=9007199254740991;wg.exports=function(e){if(e>GO)throw zO("Maximum allowed index exceeded");return e}});var Jc=h((Hz,Sg)=>{"use strict";var WO=Ge(),KO=Gt(),QO=ni();Sg.exports=function(e,t,r){WO?KO.f(e,t,QO(0,r)):e[t]=r}});var Ag=h(()=>{"use strict";var YO=W(),XO=ce(),ZO=ui(),eR=Ae(),tR=Xr(),rR=rn(),xg=Ig(),Eg=Jc(),nR=Mc(),iR=pi(),oR=Ue(),aR=Bo(),kg=oR("isConcatSpreadable"),sR=aR>=51||!XO(function(){var e=[];return e[kg]=!1,e.concat()[0]!==e}),lR=function(e){if(!eR(e))return!1;var t=e[kg];return t!==void 0?!!t:ZO(e)},cR=!sR||!iR("concat");YO({target:"Array",proto:!0,arity:1,forced:cR},{concat:function(t){var r=tR(this),n=nR(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],lR(c))for(l=rR(c),xg(i+l),a=0;a<l;a++,i++)a in c&&Eg(n,i,c[a]);else xg(i+1),Eg(n,i++,c);return n.length=i,n}})});var Cg=h((zz,Tg)=>{"use strict";Ag();var uR=mt();Tg.exports=uR("Array","concat")});var Og=h((Gz,Pg)=>{"use strict";var dR=ze(),pR=Cg(),Hc=Array.prototype;Pg.exports=function(e){var t=e.concat;return e===Hc||dR(Hc,e)&&t===Hc.concat?pR:t}});var Ng=h((Wz,Rg)=>{"use strict";var fR=Og();Rg.exports=fR});var Lg=h((Kz,Dg)=>{Dg.exports=Ng()});var qg=h(()=>{"use strict";var hR=W(),mR=dr().some,vR=fi(),gR=vR("some");hR({target:"Array",proto:!0,forced:!gR},{some:function(t){return mR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Mg=h((Xz,Fg)=>{"use strict";qg();var yR=mt();Fg.exports=yR("Array","some")});var jg=h((Zz,Ug)=>{"use strict";var _R=ze(),bR=Mg(),$c=Array.prototype;Ug.exports=function(e){var t=e.some;return e===$c||_R($c,e)&&t===$c.some?bR:t}});var Jg=h((eG,Bg)=>{"use strict";var wR=jg();Bg.exports=wR});var $g=h((tG,Hg)=>{Hg.exports=Jg()});var zg=h((rG,Vg)=>{"use strict";var hi=ue(),IR=Uo(),SR=Vt(),Go=function(e){return IR.slice(0,e.length)===e};Vg.exports=function(){return Go("Bun/")?"BUN":Go("Cloudflare-Workers")?"CLOUDFLARE":Go("Deno/")?"DENO":Go("Node.js/")?"NODE":hi.Bun&&typeof Bun.version=="string"?"BUN":hi.Deno&&typeof Deno.version=="object"?"DENO":SR(hi.process)==="process"?"NODE":hi.window&&hi.document?"BROWSER":"REST"}()});var mi=h((nG,Gg)=>{"use strict";var xR=ye();Gg.exports=xR([].slice)});var Kg=h((iG,Wg)=>{"use strict";var ER=TypeError;Wg.exports=function(e,t){if(e<t)throw new ER("Not enough arguments");return e}});var Vc=h((oG,Yg)=>{"use strict";var Qg=ue(),kR=cc(),AR=Re(),TR=zg(),CR=Uo(),PR=mi(),OR=Kg(),RR=Qg.Function,NR=/MSIE .\./.test(CR)||TR==="BUN"&&function(){var e=Qg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Yg.exports=function(e,t){var r=t?2:1;return NR?function(n,i){var o=OR(arguments.length,1)>r,a=AR(n)?n:RR(n),s=o?PR(arguments,r):[],l=o?function(){kR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var ey=h(()=>{"use strict";var DR=W(),Zg=ue(),LR=Vc(),Xg=LR(Zg.setInterval,!0);DR({global:!0,bind:!0,forced:Zg.setInterval!==Xg},{setInterval:Xg})});var ny=h(()=>{"use strict";var qR=W(),ry=ue(),FR=Vc(),ty=FR(ry.setTimeout,!0);qR({global:!0,bind:!0,forced:ry.setTimeout!==ty},{setTimeout:ty})});var iy=h(()=>{"use strict";ey();ny()});var ay=h((pG,oy)=>{"use strict";iy();var MR=Ct();oy.exports=MR.setTimeout});var ly=h((fG,sy)=>{sy.exports=ay()});function yi(e,t){he.__h&&he.__h(re,e,gi||t),gi=0;var r=re.__H||(re.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ko(e){return gi=1,yy(_y,e)}function yy(e,t,r){var n=yi(Dr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):_y(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=re,!re.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};re.__f=!0;var o=re.shouldComponentUpdate,a=re.componentWillUpdate;re.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)},re.shouldComponentUpdate=i}return n.__N||n.__}function _i(e,t){var r=yi(Dr++,3);!he.__s&&Wc(r.__H,t)&&(r.__=e,r.u=t,re.__H.__h.push(r))}function on(e,t){var r=yi(Dr++,4);!he.__s&&Wc(r.__H,t)&&(r.__=e,r.u=t,re.__h.push(r))}function bi(e){return gi=5,wi(function(){return{current:e}},[])}function wi(e,t){var r=yi(Dr++,7);return Wc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function an(e,t){return gi=8,wi(function(){return e},t)}function sn(e){var t=re.context[e.__c],r=yi(Dr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(re)),t.props.value):e.__}function UR(){for(var e;e=gy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wo),e.__H.__h.forEach(Gc),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}function jR(e){var t,r=function(){clearTimeout(n),vy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);vy&&(t=requestAnimationFrame(r))}function Wo(e){var t=re,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),re=t}function Gc(e){var t=re;e.__c=e.__(),re=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function _y(e,t){return typeof t=="function"?t(e):t}var Dr,re,zc,cy,gi,gy,he,uy,dy,py,fy,hy,my,vy,Kc=k(()=>{Wr();gi=0,gy=[],he=R,uy=he.__b,dy=he.__r,py=he.diffed,fy=he.__c,hy=he.unmount,my=he.__;he.__b=function(e){re=null,uy&&uy(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),my&&my(e,t)},he.__r=function(e){dy&&dy(e),Dr=0;var t=(re=e.__c).__H;t&&(zc===re?(t.__h=[],re.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wo),t.__h.forEach(Gc),t.__h=[],Dr=0)),zc=re},he.diffed=function(e){py&&py(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gy.push(t)!==1&&cy===he.requestAnimationFrame||((cy=he.requestAnimationFrame)||jR)(UR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),zc=re=null},he.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wo),r.__h=r.__h.filter(function(n){return!n.__||Gc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],he.__e(n,r.__v)}}),fy&&fy(e,t)},he.unmount=function(e){hy&&hy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wo(n)}catch(i){t=i}}),r.__H=void 0,t&&he.__e(t,r.__v))};vy=typeof requestAnimationFrame=="function"});function Cy(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 by(e,t){this.props=e,this.context=t}function Zc(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,Me(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function eu(e){function t(r){var n=Cy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=BR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Py(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=Cy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Py(n,t,r)})),e}function Oy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Oy(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 Qc(){this.__u=0,this.o=null,this.__b=null}function Ry(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Qo(){this.i=null,this.l=null}function tu(e,t,r){return t.__k==null&&(t.textContent=""),lr(e,t),typeof r=="function"&&r(),e?e.__c:null}function KR(){}function QR(){return this.cancelBubble}function YR(){return this.defaultPrevented}var Xc,wy,BR,JR,Iy,Sy,HR,$R,VR,zR,GR,WR,xy,Ny,XR,Ey,ky,Ay,Yo=k(()=>{Wr();Wr();Kc();Kc();Xc=on;(by.prototype=new ot).isPureReactComponent=!0,by.prototype.shouldComponentUpdate=function(e,t){return Yc(this.props,e)||Yc(this.state,t)};wy=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wy&&wy(e)};BR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;JR=R.__e;R.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}JR(e,t,r,n)};Iy=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Iy&&Iy(e)},(Qc.prototype=new ot).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ry(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]=Oy(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)},Qc.prototype.componentWillUnmount=function(){this.o=[]},Qc.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]=Py(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Me(Oe,null,e.fallback);return i&&(i.__u&=-33),[Me(Oe,null,t.__a?null:e.children),i]};Sy=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]}};(Qo.prototype=new ot).__a=function(e){var t=this,r=Ry(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Sy(t,e,n)):i()};r?r(o):o()}},Qo.prototype.render=function(e){this.i=null,this.l=new Map;var t=ei(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},Qo.prototype.componentDidUpdate=Qo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Sy(e,r,t)})};HR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,$R=/^(?: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]/,VR=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zR=/[A-Z0-9]/g,GR=typeof document!="undefined",WR=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ot.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ot.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});xy=R.event;R.event=function(e){return xy&&(e=xy(e)),e.persist=KR,e.isPropagationStopped=QR,e.isDefaultPrevented=YR,e.nativeEvent=e};XR={enumerable:!1,configurable:!0,get:function(){return this.class}},Ey=R.vnode;R.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||GR&&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"||WR(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":VR.test(a)&&(a=l):l=a="oninput":o&&$R.test(a)?a=a.replace(zR,"-$&").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=ei(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ei(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",XR)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=HR,Ey&&Ey(e)};ky=R.__r;R.__r=function(e){ky&&ky(e),Ny=e.__c};Ay=R.diffed;R.diffed=function(e){Ay&&Ay(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),Ny=null}});var nu=h(()=>{"use strict";var eN=W(),ru=ue();eN({global:!0,forced:ru.globalThis!==ru},{globalThis:ru})});var Dy=h(()=>{"use strict";nu()});var qy=h((CG,Ly)=>{"use strict";nu();Ly.exports=ue()});var My=h((PG,Fy)=>{"use strict";var tN=qy();Fy.exports=tN});var jy=h((OG,Uy)=>{"use strict";var rN=My();Uy.exports=rN});var Jy=h((RG,By)=>{"use strict";Dy();var nN=jy();By.exports=nN});var $y=h((NG,Hy)=>{"use strict";Hy.exports=Jy()});var zy=h((DG,Vy)=>{Vy.exports=$y()});var Gy=h(()=>{"use strict";var iN=W(),oN=ui();iN({target:"Array",stat:!0},{isArray:oN})});var Ky=h((FG,Wy)=>{"use strict";Gy();var aN=Ct();Wy.exports=aN.Array.isArray});var Yy=h((MG,Qy)=>{"use strict";var sN=Ky();Qy.exports=sN});var Zy=h((UG,Xy)=>{Xy.exports=Yy()});var t_=h((jG,e_)=>{"use strict";e_.exports=function(){}});var Lr=h((BG,r_)=>{"use strict";r_.exports={}});var iu=h((JG,i_)=>{"use strict";var lN=ue(),cN=Re(),n_=lN.WeakMap;i_.exports=cN(n_)&&/native code/.test(String(n_))});var Xo=h((HG,a_)=>{"use strict";var uN=Ic(),dN=Ho(),o_=uN("keys");a_.exports=function(e){return o_[e]||(o_[e]=dN(e))}});var Ii=h(($G,s_)=>{"use strict";s_.exports={}});var Fr=h((VG,u_)=>{"use strict";var pN=iu(),c_=ue(),fN=Ae(),hN=Nr(),ou=at(),au=oi(),mN=Xo(),vN=Ii(),l_="Object already initialized",su=c_.TypeError,gN=c_.WeakMap,Zo,Si,ea,yN=function(e){return ea(e)?Si(e):Zo(e,{})},_N=function(e){return function(t){var r;if(!fN(t)||(r=Si(t)).type!==e)throw new su("Incompatible receiver, "+e+" required");return r}};pN||au.state?(It=au.state||(au.state=new gN),It.get=It.get,It.has=It.has,It.set=It.set,Zo=function(e,t){if(It.has(e))throw new su(l_);return t.facade=e,It.set(e,t),t},Si=function(e){return It.get(e)||{}},ea=function(e){return It.has(e)}):(qr=mN("state"),vN[qr]=!0,Zo=function(e,t){if(ou(e,qr))throw new su(l_);return t.facade=e,hN(e,qr,t),t},Si=function(e){return ou(e,qr)?e[qr]:{}},ea=function(e){return ou(e,qr)});var It,qr;u_.exports={set:Zo,get:Si,has:ea,enforce:yN,getterFor:_N}});var uu=h((zG,p_)=>{"use strict";var lu=Ge(),bN=at(),d_=Function.prototype,wN=lu&&Object.getOwnPropertyDescriptor,cu=bN(d_,"name"),IN=cu&&(function(){}).name==="something",SN=cu&&(!lu||lu&&wN(d_,"name").configurable);p_.exports={EXISTS:cu,PROPER:IN,CONFIGURABLE:SN}});var du=h((GG,f_)=>{"use strict";var xN=ci(),EN=Math.max,kN=Math.min;f_.exports=function(e,t){var r=xN(e);return r<0?EN(r+t,0):kN(r,t)}});var pu=h((WG,m_)=>{"use strict";var AN=cr(),TN=du(),CN=rn(),h_=function(e){return function(t,r,n){var i=AN(t),o=CN(i);if(o===0)return!e&&-1;var a=TN(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}};m_.exports={includes:h_(!0),indexOf:h_(!1)}});var hu=h((KG,g_)=>{"use strict";var PN=ye(),fu=at(),ON=cr(),RN=pu().indexOf,NN=Ii(),v_=PN([].push);g_.exports=function(e,t){var r=ON(e),n=0,i=[],o;for(o in r)!fu(NN,o)&&fu(r,o)&&v_(i,o);for(;t.length>n;)fu(r,o=t[n++])&&(~RN(i,o)||v_(i,o));return i}});var ta=h((QG,y_)=>{"use strict";y_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var mu=h((YG,__)=>{"use strict";var DN=hu(),LN=ta();__.exports=Object.keys||function(t){return DN(t,LN)}});var w_=h(b_=>{"use strict";var qN=Ge(),FN=Cc(),MN=Gt(),UN=zt(),jN=cr(),BN=mu();b_.f=qN&&!FN?Object.defineProperties:function(t,r){UN(t);for(var n=jN(r),i=BN(r),o=i.length,a=0,s;o>a;)MN.f(t,s=i[a++],n[s]);return t}});var S_=h((ZG,I_)=>{"use strict";var JN=Qr();I_.exports=JN("document","documentElement")});var xi=h((e6,P_)=>{"use strict";var HN=zt(),$N=w_(),x_=ta(),VN=Ii(),zN=S_(),GN=kc(),WN=Xo(),E_=">",k_="<",gu="prototype",yu="script",T_=WN("IE_PROTO"),vu=function(){},C_=function(e){return k_+yu+E_+e+k_+"/"+yu+E_},A_=function(e){e.write(C_("")),e.close();var t=e.parentWindow.Object;return e=null,t},KN=function(){var e=GN("iframe"),t="java"+yu+":",r;return e.style.display="none",zN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(C_("document.F=Object")),r.close(),r.F},ra,na=function(){try{ra=new ActiveXObject("htmlfile")}catch(t){}na=typeof document!="undefined"?document.domain&&ra?A_(ra):KN():A_(ra);for(var e=x_.length;e--;)delete na[gu][x_[e]];return na()};VN[T_]=!0;P_.exports=Object.create||function(t,r){var n;return t!==null?(vu[gu]=HN(t),n=new vu,vu[gu]=null,n[T_]=t):n=na(),r===void 0?n:$N.f(n,r)}});var R_=h((t6,O_)=>{"use strict";var QN=ce();O_.exports=!QN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var bu=h((r6,D_)=>{"use strict";var YN=at(),XN=Re(),ZN=Xr(),eD=Xo(),tD=R_(),N_=eD("IE_PROTO"),_u=Object,rD=_u.prototype;D_.exports=tD?_u.getPrototypeOf:function(e){var t=ZN(e);if(YN(t,N_))return t[N_];var r=t.constructor;return XN(r)&&t instanceof r?r.prototype:t instanceof _u?rD:null}});var ia=h((n6,L_)=>{"use strict";var nD=Nr();L_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:nD(e,t,r),e}});var xu=h((i6,M_)=>{"use strict";var iD=ce(),oD=Re(),aD=Ae(),sD=xi(),q_=bu(),lD=ia(),cD=Ue(),uD=Yr(),Su=cD("iterator"),F_=!1,Wt,wu,Iu;[].keys&&(Iu=[].keys(),"next"in Iu?(wu=q_(q_(Iu)),wu!==Object.prototype&&(Wt=wu)):F_=!0);var dD=!aD(Wt)||iD(function(){var e={};return Wt[Su].call(e)!==e});dD?Wt={}:uD&&(Wt=sD(Wt));oD(Wt[Su])||lD(Wt,Su,function(){return this});M_.exports={IteratorPrototype:Wt,BUGGY_SAFARI_ITERATORS:F_}});var j_=h((o6,U_)=>{"use strict";var pD=Vo(),fD=nn();U_.exports=pD?{}.toString:function(){return"[object "+fD(this)+"]"}});var Ei=h((a6,J_)=>{"use strict";var hD=Vo(),mD=Gt().f,vD=Nr(),gD=at(),yD=j_(),_D=Ue(),B_=_D("toStringTag");J_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(gD(i,B_)||mD(i,B_,{configurable:!0,value:t}),n&&!hD&&vD(i,"toString",yD))}});var $_=h((s6,H_)=>{"use strict";var bD=xu().IteratorPrototype,wD=xi(),ID=ni(),SD=Ei(),xD=Lr(),ED=function(){return this};H_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=wD(bD,{next:ID(+!n,r)}),SD(e,i,!1,!0),xD[i]=ED,e}});var z_=h((l6,V_)=>{"use strict";var kD=ye(),AD=Rr();V_.exports=function(e,t,r){try{return kD(AD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var W_=h((c6,G_)=>{"use strict";var TD=Ae();G_.exports=function(e){return TD(e)||e===null}});var Q_=h((u6,K_)=>{"use strict";var CD=W_(),PD=String,OD=TypeError;K_.exports=function(e){if(CD(e))return e;throw new OD("Can't set "+PD(e)+" as a prototype")}});var X_=h((d6,Y_)=>{"use strict";var RD=z_(),ND=Ae(),DD=Or(),LD=Q_();Y_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=RD(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return DD(i),LD(o),ND(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var sa=h((p6,lb)=>{"use strict";var qD=W(),FD=bt(),oa=Yr(),ab=uu(),MD=Re(),UD=$_(),Z_=bu(),eb=X_(),jD=Ei(),BD=Nr(),Eu=ia(),JD=Ue(),tb=Lr(),sb=xu(),HD=ab.PROPER,$D=ab.CONFIGURABLE,rb=sb.IteratorPrototype,aa=sb.BUGGY_SAFARI_ITERATORS,ki=JD("iterator"),nb="keys",Ai="values",ib="entries",ob=function(){return this};lb.exports=function(e,t,r,n,i,o,a){UD(r,t,n);var s=function(v){if(v===i&&p)return p;if(!aa&&v&&v in d)return d[v];switch(v){case nb:return function(){return new r(this,v)};case Ai:return function(){return new r(this,v)};case ib:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ki]||d["@@iterator"]||i&&d[i],p=!aa&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=Z_(f.call(new e)),m!==Object.prototype&&m.next&&(!oa&&Z_(m)!==rb&&(eb?eb(m,rb):MD(m[ki])||Eu(m,ki,ob)),jD(m,l,!0,!0),oa&&(tb[l]=ob))),HD&&i===Ai&&u&&u.name!==Ai&&(!oa&&$D?BD(d,"name",Ai):(c=!0,p=function(){return FD(u,this)})),i)if(g={values:s(Ai),keys:o?p:s(nb),entries:s(ib)},a)for(_ in g)(aa||c||!(_ in d))&&Eu(d,_,g[_]);else qD({target:t,proto:!0,forced:aa||c},g);return(!oa||a)&&d[ki]!==p&&Eu(d,ki,p,{name:i}),tb[t]=p,g}});var la=h((f6,cb)=>{"use strict";cb.exports=function(e,t){return{value:e,done:t}}});var ua=h((h6,hb)=>{"use strict";var VD=cr(),ku=t_(),ub=Lr(),pb=Fr(),zD=Gt().f,GD=sa(),ca=la(),WD=Yr(),KD=Ge(),fb="Array Iterator",QD=pb.set,YD=pb.getterFor(fb);hb.exports=GD(Array,"Array",function(e,t){QD(this,{type:fb,target:VD(e),index:0,kind:t})},function(){var e=YD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ca(void 0,!0);switch(e.kind){case"keys":return ca(r,!1);case"values":return ca(t[r],!1)}return ca([r,t[r]],!1)},"values");var db=ub.Arguments=ub.Array;ku("keys");ku("values");ku("entries");if(!WD&&KD&&db.name!=="values")try{zD(db,"name",{value:"values"})}catch(e){}});var Au=h(()=>{});var Tu=h((g6,mb)=>{"use strict";var XD=ce();mb.exports=!XD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var da=h((y6,vb)=>{"use strict";var ZD=ia();vb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:ZD(e,n,t[n],r);return e}});var Cu=h(gb=>{"use strict";var eL=hu(),tL=ta(),rL=tL.concat("length","prototype");gb.f=Object.getOwnPropertyNames||function(t){return eL(t,rL)}});var wb=h((b6,bb)=>{"use strict";var nL=Vt(),iL=cr(),yb=Cu().f,oL=mi(),_b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aL=function(e){try{return yb(e)}catch(t){return oL(_b)}};bb.exports.f=function(t){return _b&&nL(t)==="Window"?aL(t):yb(iL(t))}});var Sb=h((w6,Ib)=>{"use strict";var sL=ce();Ib.exports=sL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var kb=h((I6,Eb)=>{"use strict";var lL=ce(),cL=Ae(),uL=Vt(),xb=Sb(),pa=Object.isExtensible,dL=lL(function(){pa(1)});Eb.exports=dL||xb?function(t){return!cL(t)||xb&&uL(t)==="ArrayBuffer"?!1:pa?pa(t):!0}:pa});var Ti=h((S6,Cb)=>{"use strict";var pL=W(),fL=ye(),hL=Ii(),mL=Ae(),Pu=at(),vL=Gt().f,Ab=Cu(),gL=wb(),Ou=kb(),yL=Ho(),_L=Tu(),Tb=!1,Kt=yL("meta"),bL=0,Ru=function(e){vL(e,Kt,{value:{objectID:"O"+bL++,weakData:{}}})},wL=function(e,t){if(!mL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Pu(e,Kt)){if(!Ou(e))return"F";if(!t)return"E";Ru(e)}return e[Kt].objectID},IL=function(e,t){if(!Pu(e,Kt)){if(!Ou(e))return!0;if(!t)return!1;Ru(e)}return e[Kt].weakData},SL=function(e){return _L&&Tb&&Ou(e)&&!Pu(e,Kt)&&Ru(e),e},xL=function(){EL.enable=function(){},Tb=!0;var e=Ab.f,t=fL([].splice),r={};r[Kt]=1,e(r).length&&(Ab.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Kt){t(i,o,1);break}return i},pL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gL.f}))},EL=Cb.exports={enable:xL,fastKey:wL,getWeakData:IL,onFreeze:SL};hL[Kt]=!0});var Ob=h((x6,Pb)=>{"use strict";var kL=Ue(),AL=Lr(),TL=kL("iterator"),CL=Array.prototype;Pb.exports=function(e){return e!==void 0&&(AL.Array===e||CL[TL]===e)}});var Nu=h((E6,Nb)=>{"use strict";var PL=nn(),Rb=Jo(),OL=Pr(),RL=Lr(),NL=Ue(),DL=NL("iterator");Nb.exports=function(e){if(!OL(e))return Rb(e,DL)||Rb(e,"@@iterator")||RL[PL(e)]}});var Lb=h((k6,Db)=>{"use strict";var LL=bt(),qL=Rr(),FL=zt(),ML=ii(),UL=Nu(),jL=TypeError;Db.exports=function(e,t){var r=arguments.length<2?UL(e):t;if(qL(r))return FL(LL(r,e));throw new jL(ML(e)+" is not iterable")}});var fa=h((A6,Fb)=>{"use strict";var BL=bt(),qb=zt(),JL=Jo();Fb.exports=function(e,t,r){var n,i;qb(e);try{if(n=JL(e,"return"),!n){if(t==="throw")throw r;return r}n=BL(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return qb(n),r}});var ma=h((T6,Bb)=>{"use strict";var HL=si(),$L=bt(),VL=zt(),zL=ii(),GL=Ob(),WL=rn(),Mb=ze(),KL=Lb(),QL=Nu(),Ub=fa(),YL=TypeError,ha=function(e,t){this.stopped=e,this.result=t},jb=ha.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=HL(t,n),c,d,u,p,f,m,g,_=function(b){return c&&Ub(c,"normal",b),new ha(!0,b)},v=function(b){return i?(VL(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=QL(e),!d)throw new YL(zL(e)+" is not iterable");if(GL(d)){for(u=0,p=WL(e);p>u;u++)if(f=v(e[u]),f&&Mb(jb,f))return f;return new ha(!1)}c=KL(e,d)}for(m=o?e.next:c.next;!(g=$L(m,c)).done;){try{f=v(g.value)}catch(b){Ub(c,"throw",b)}if(typeof f=="object"&&f&&Mb(jb,f))return f}return new ha(!1)}});var va=h((C6,Jb)=>{"use strict";var XL=ze(),ZL=TypeError;Jb.exports=function(e,t){if(XL(t,e))return e;throw new ZL("Incorrect invocation")}});var Du=h((P6,$b)=>{"use strict";var eq=W(),tq=ue(),rq=Ti(),nq=ce(),iq=Nr(),oq=ma(),aq=va(),sq=Re(),lq=Ae(),cq=Pr(),uq=Ei(),dq=Gt().f,pq=dr().forEach,fq=Ge(),Hb=Fr(),hq=Hb.set,mq=Hb.getterFor;$b.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=tq[e],s=a&&a.prototype,l={},c;if(!fq||!sq(a)||!(i||s.forEach&&!nq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),rq.enable();else{c=t(function(p,f){hq(aq(p,d),{type:e,collection:new a}),cq(f)||oq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=mq(e);pq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&iq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!lq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||dq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return uq(c,e,!1,!0),l[e]=c,eq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Yb=h((O6,Qb)=>{"use strict";var vq=ye(),Vb=da(),ga=Ti().getWeakData,gq=va(),yq=zt(),_q=Pr(),Lu=Ae(),bq=ma(),Gb=dr(),zb=at(),Wb=Fr(),wq=Wb.set,Iq=Wb.getterFor,Sq=Gb.find,xq=Gb.findIndex,Eq=vq([].splice),kq=0,ya=function(e){return e.frozen||(e.frozen=new Kb)},Kb=function(){this.entries=[]},qu=function(e,t){return Sq(e.entries,function(r){return r[0]===t})};Kb.prototype={get:function(e){var t=qu(this,e);if(t)return t[1]},has:function(e){return!!qu(this,e)},set:function(e,t){var r=qu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=xq(this.entries,function(r){return r[0]===e});return~t&&Eq(this.entries,t,1),!!~t}};Qb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){gq(l,o),wq(l,{type:t,id:kq++,frozen:null}),_q(c)||bq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Iq(t),s=function(l,c,d){var u=a(l),p=ga(yq(c),!0);return p===!0?ya(u).set(c,d):p[u.id]=d,l};return Vb(o,{delete:function(l){var c=a(this);if(!Lu(l))return!1;var d=ga(l);return d===!0?ya(c).delete(l):d&&zb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Lu(c))return!1;var u=ga(c);return u===!0?ya(d).has(c):u&&zb(u,d.id)}}),Vb(o,r?{get:function(c){var d=a(this);if(Lu(c)){var u=ga(c);if(u===!0)return ya(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 ow=h(()=>{"use strict";var Aq=Tu(),Xb=ue(),Ia=ye(),Zb=da(),Tq=Ti(),Cq=Du(),ew=Yb(),_a=Ae(),ba=Fr().enforce,Pq=ce(),Oq=iu(),Oi=Object,Rq=Array.isArray,wa=Oi.isExtensible,tw=Oi.isFrozen,Nq=Oi.isSealed,rw=Oi.freeze,Dq=Oi.seal,Lq=!Xb.ActiveXObject&&"ActiveXObject"in Xb,Ci,nw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iw=Cq("WeakMap",nw,ew),ln=iw.prototype,Sa=Ia(ln.set),qq=function(){return Aq&&Pq(function(){var e=rw([]);return Sa(new iw,e,1),!tw(e)})};Oq&&(Lq?(Ci=ew.getConstructor(nw,"WeakMap",!0),Tq.enable(),Fu=Ia(ln.delete),Pi=Ia(ln.has),Mu=Ia(ln.get),Zb(ln,{delete:function(e){if(_a(e)&&!wa(e)){var t=ba(this);return t.frozen||(t.frozen=new Ci),Fu(this,e)||t.frozen.delete(e)}return Fu(this,e)},has:function(t){if(_a(t)&&!wa(t)){var r=ba(this);return r.frozen||(r.frozen=new Ci),Pi(this,t)||r.frozen.has(t)}return Pi(this,t)},get:function(t){if(_a(t)&&!wa(t)){var r=ba(this);return r.frozen||(r.frozen=new Ci),Pi(this,t)?Mu(this,t):r.frozen.get(t)}return Mu(this,t)},set:function(t,r){if(_a(t)&&!wa(t)){var n=ba(this);n.frozen||(n.frozen=new Ci),Pi(this,t)?Sa(this,t,r):n.frozen.set(t,r)}else Sa(this,t,r);return this}})):qq()&&Zb(ln,{set:function(t,r){var n;return Rq(t)&&(tw(t)?n=rw:Nq(t)&&(n=Dq)),Sa(this,t,r),n&&n(t),this}}));var Fu,Pi,Mu});var aw=h(()=>{"use strict";ow()});var lw=h((q6,sw)=>{"use strict";ua();Au();aw();var Fq=Ct();sw.exports=Fq.WeakMap});var uw=h((F6,cw)=>{"use strict";cw.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 Uu=h(()=>{"use strict";ua();var Mq=uw(),Uq=ue(),jq=Ei(),dw=Lr();for(xa in Mq)jq(Uq[xa],xa),dw[xa]=dw.Array;var xa});var fw=h((j6,pw)=>{"use strict";var Bq=lw();Uu();pw.exports=Bq});var mw=h((B6,hw)=>{hw.exports=fw()});var gw=h(()=>{"use strict";var Jq=W(),Hq=ri(),$q=pu().indexOf,Vq=fi(),ju=Hq([].indexOf),vw=!!ju&&1/ju([1],1,-0)<0,zq=vw||!Vq("indexOf");Jq({target:"Array",proto:!0,forced:zq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return vw?ju(this,t,r)||0:$q(this,t,r)}})});var _w=h(($6,yw)=>{"use strict";gw();var Gq=mt();yw.exports=Gq("Array","indexOf")});var ww=h((V6,bw)=>{"use strict";var Wq=ze(),Kq=_w(),Bu=Array.prototype;bw.exports=function(e){var t=e.indexOf;return e===Bu||Wq(Bu,e)&&t===Bu.indexOf?Kq:t}});var Sw=h((z6,Iw)=>{"use strict";var Qq=ww();Iw.exports=Qq});var Ew=h((G6,xw)=>{xw.exports=Sw()});var kw=h(()=>{"use strict";var Yq=W(),Xq=dr().map,Zq=pi(),eF=Zq("map");Yq({target:"Array",proto:!0,forced:!eF},{map:function(t){return Xq(this,t,arguments.length>1?arguments[1]:void 0)}})});var Tw=h((Q6,Aw)=>{"use strict";kw();var tF=mt();Aw.exports=tF("Array","map")});var Pw=h((Y6,Cw)=>{"use strict";var rF=ze(),nF=Tw(),Ju=Array.prototype;Cw.exports=function(e){var t=e.map;return e===Ju||rF(Ju,e)&&t===Ju.map?nF:t}});var Rw=h((X6,Ow)=>{"use strict";var iF=Pw();Ow.exports=iF});var Dw=h((Z6,Nw)=>{Nw.exports=Rw()});var Lw=h(()=>{"use strict";var oF=W(),aF=Ge(),sF=xi();oF({target:"Object",stat:!0,sham:!aF},{create:sF})});var Fw=h((rW,qw)=>{"use strict";Lw();var lF=Ct(),cF=lF.Object;qw.exports=function(t,r){return cF.create(t,r)}});var Uw=h((nW,Mw)=>{"use strict";var uF=Fw();Mw.exports=uF});var Bw=h((iW,jw)=>{jw.exports=Uw()});var Hu=h((oW,Jw)=>{"use strict";var dF=Gt();Jw.exports=function(e,t,r){return dF.f(e,t,r)}});var Vw=h((aW,$w)=>{"use strict";var pF=Qr(),fF=Hu(),hF=Ue(),mF=Ge(),Hw=hF("species");$w.exports=function(e){var t=pF(e);mF&&t&&!t[Hw]&&fF(t,Hw,{configurable:!0,get:function(){return this}})}});var Xw=h((sW,Yw)=>{"use strict";var zw=xi(),vF=Hu(),Gw=da(),gF=si(),yF=va(),_F=Pr(),bF=ma(),wF=sa(),Ea=la(),IF=Vw(),Ri=Ge(),Ww=Ti().fastKey,Qw=Fr(),Kw=Qw.set,$u=Qw.getterFor;Yw.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){yF(c,o),Kw(c,{type:t,index:zw(null),first:null,last:null,size:0}),Ri||(c.size=0),_F(d)||bF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=$u(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=Ww(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ri?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=Ww(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return Gw(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=zw(null),Ri?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Ri?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=gF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),Gw(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)}}),Ri&&vF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=$u(t),o=$u(n);wF(e,t,function(a,s){Kw(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,Ea(void 0,!0)):Ea(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),IF(t)}}});var Zw=h(()=>{"use strict";var SF=Du(),xF=Xw();SF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},xF)});var e0=h(()=>{"use strict";Zw()});var pr=h((pW,t0)=>{"use strict";var EF=ii(),kF=TypeError;t0.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 kF(EF(e)+" is not a set")}});var n0=h((fW,r0)=>{"use strict";r0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var fr=h((hW,o0)=>{"use strict";var AF=Qr(),Vu=n0(),i0=AF("Set"),TF=i0.prototype;o0.exports={Set:i0,add:Vu("add",1),has:Vu("has",1),remove:Vu("delete",1),proto:TF}});var hr=h((mW,a0)=>{"use strict";var CF=bt();a0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=CF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var cn=h((vW,s0)=>{"use strict";var PF=hr();s0.exports=function(e,t,r){return r?PF(e.keys(),t,!0):e.forEach(t)}});var ka=h((gW,c0)=>{"use strict";var l0=fr(),OF=cn(),RF=l0.Set,NF=l0.add;c0.exports=function(e){var t=new RF;return OF(e,function(r){NF(t,r)}),t}});var un=h((yW,u0)=>{"use strict";u0.exports=function(e){return e.size}});var p0=h((_W,d0)=>{"use strict";d0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var mr=h((bW,y0)=>{"use strict";var f0=Rr(),v0=zt(),h0=bt(),DF=ci(),LF=p0(),m0="Invalid size",qF=RangeError,FF=TypeError,MF=Math.max,g0=function(e,t){this.set=e,this.size=MF(t,0),this.has=f0(e.has),this.keys=f0(e.keys)};g0.prototype={getIterator:function(){return LF(v0(h0(this.keys,this.set)))},includes:function(e){return h0(this.has,this.set,e)}};y0.exports=function(e){v0(e);var t=+e.size;if(t!==t)throw new FF(m0);var r=DF(t);if(r<0)throw new qF(m0);return new g0(e,r)}});var I0=h((wW,w0)=>{"use strict";var UF=pr(),b0=fr(),jF=ka(),BF=un(),JF=mr(),HF=cn(),$F=hr(),VF=b0.has,_0=b0.remove;w0.exports=function(t){var r=UF(this),n=JF(t),i=jF(r);return BF(r)<=n.size?HF(r,function(o){n.includes(o)&&_0(i,o)}):$F(n.getIterator(),function(o){VF(r,o)&&_0(i,o)}),i}});var vr=h((IW,S0)=>{"use strict";S0.exports=function(){return!1}});var x0=h(()=>{"use strict";var zF=W(),GF=I0(),WF=vr(),KF=!WF("difference",function(e){return e.size===0});zF({target:"Set",proto:!0,real:!0,forced:KF},{difference:GF})});var A0=h((EW,k0)=>{"use strict";var QF=pr(),zu=fr(),YF=un(),XF=mr(),ZF=cn(),eM=hr(),tM=zu.Set,E0=zu.add,rM=zu.has;k0.exports=function(t){var r=QF(this),n=XF(t),i=new tM;return YF(r)>n.size?eM(n.getIterator(),function(o){rM(r,o)&&E0(i,o)}):ZF(r,function(o){n.includes(o)&&E0(i,o)}),i}});var T0=h(()=>{"use strict";var nM=W(),iM=ce(),oM=A0(),aM=vr(),sM=!aM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||iM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});nM({target:"Set",proto:!0,real:!0,forced:sM},{intersection:oM})});var P0=h((TW,C0)=>{"use strict";var lM=pr(),cM=fr().has,uM=un(),dM=mr(),pM=cn(),fM=hr(),hM=fa();C0.exports=function(t){var r=lM(this),n=dM(t);if(uM(r)<=n.size)return pM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return fM(i,function(o){if(cM(r,o))return hM(i,"normal",!1)})!==!1}});var O0=h(()=>{"use strict";var mM=W(),vM=P0(),gM=vr(),yM=!gM("isDisjointFrom",function(e){return!e});mM({target:"Set",proto:!0,real:!0,forced:yM},{isDisjointFrom:vM})});var N0=h((OW,R0)=>{"use strict";var _M=pr(),bM=un(),wM=cn(),IM=mr();R0.exports=function(t){var r=_M(this),n=IM(t);return bM(r)>n.size?!1:wM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var D0=h(()=>{"use strict";var SM=W(),xM=N0(),EM=vr(),kM=!EM("isSubsetOf",function(e){return e});SM({target:"Set",proto:!0,real:!0,forced:kM},{isSubsetOf:xM})});var q0=h((DW,L0)=>{"use strict";var AM=pr(),TM=fr().has,CM=un(),PM=mr(),OM=hr(),RM=fa();L0.exports=function(t){var r=AM(this),n=PM(t);if(CM(r)<n.size)return!1;var i=n.getIterator();return OM(i,function(o){if(!TM(r,o))return RM(i,"normal",!1)})!==!1}});var F0=h(()=>{"use strict";var NM=W(),DM=q0(),LM=vr(),qM=!LM("isSupersetOf",function(e){return!e});NM({target:"Set",proto:!0,real:!0,forced:qM},{isSupersetOf:DM})});var U0=h((FW,M0)=>{"use strict";var FM=pr(),Gu=fr(),MM=ka(),UM=mr(),jM=hr(),BM=Gu.add,JM=Gu.has,HM=Gu.remove;M0.exports=function(t){var r=FM(this),n=UM(t).getIterator(),i=MM(r);return jM(n,function(o){JM(r,o)?HM(i,o):BM(i,o)}),i}});var j0=h(()=>{"use strict";var $M=W(),VM=U0(),zM=vr();$M({target:"Set",proto:!0,real:!0,forced:!zM("symmetricDifference")},{symmetricDifference:VM})});var J0=h((jW,B0)=>{"use strict";var GM=pr(),WM=fr().add,KM=ka(),QM=mr(),YM=hr();B0.exports=function(t){var r=GM(this),n=QM(t).getIterator(),i=KM(r);return YM(n,function(o){WM(i,o)}),i}});var H0=h(()=>{"use strict";var XM=W(),ZM=J0(),eU=vr();XM({target:"Set",proto:!0,real:!0,forced:!eU("union")},{union:ZM})});var Ni=h((HW,$0)=>{"use strict";var tU=nn(),rU=String;$0.exports=function(e){if(tU(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return rU(e)}});var W0=h(($W,G0)=>{"use strict";var Wu=ye(),nU=ci(),iU=Ni(),oU=Or(),aU=Wu("".charAt),V0=Wu("".charCodeAt),sU=Wu("".slice),z0=function(e){return function(t,r){var n=iU(oU(t)),i=nU(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=V0(n,i),a<55296||a>56319||i+1===o||(s=V0(n,i+1))<56320||s>57343?e?aU(n,i):a:e?sU(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};G0.exports={codeAt:z0(!1),charAt:z0(!0)}});var X0=h(()=>{"use strict";var lU=W0().charAt,cU=Ni(),Q0=Fr(),uU=sa(),K0=la(),Y0="String Iterator",dU=Q0.set,pU=Q0.getterFor(Y0);uU(String,"String",function(e){dU(this,{type:Y0,string:cU(e),index:0})},function(){var t=pU(this),r=t.string,n=t.index,i;return n>=r.length?K0(void 0,!0):(i=lU(r,n),t.index+=i.length,K0(i,!1))})});var eI=h((GW,Z0)=>{"use strict";ua();Au();e0();x0();T0();O0();D0();F0();j0();H0();X0();var fU=Ct();Z0.exports=fU.Set});var rI=h((WW,tI)=>{"use strict";var hU=eI();Uu();tI.exports=hU});var iI=h((KW,nI)=>{nI.exports=rI()});var aI=h(oI=>{"use strict";oI.f=Object.getOwnPropertySymbols});var uI=h((YW,cI)=>{"use strict";var sI=Ge(),mU=ye(),vU=bt(),gU=ce(),Ku=mu(),yU=aI(),_U=dc(),bU=Xr(),wU=Mo(),dn=Object.assign,lI=Object.defineProperty,IU=mU([].concat);cI.exports=!dn||gU(function(){if(sI&&dn({b:1},dn(lI({},"a",{enumerable:!0,get:function(){lI(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}),dn({},e)[r]!==7||Ku(dn({},t)).join("")!==n})?function(t,r){for(var n=bU(t),i=arguments.length,o=1,a=yU.f,s=_U.f;i>o;)for(var l=wU(arguments[o++]),c=a?IU(Ku(l),a(l)):Ku(l),d=c.length,u=0,p;d>u;)p=c[u++],(!sI||vU(s,l,p))&&(n[p]=l[p]);return n}:dn});var pI=h(()=>{"use strict";var SU=W(),dI=uI();SU({target:"Object",stat:!0,arity:2,forced:Object.assign!==dI},{assign:dI})});var hI=h((e8,fI)=>{"use strict";pI();var xU=Ct();fI.exports=xU.Object.assign});var vI=h((t8,mI)=>{"use strict";var EU=hI();mI.exports=EU});var yI=h((r8,gI)=>{gI.exports=vI()});var Qu=h((n8,_I)=>{"use strict";_I.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 II=h((i8,wI)=>{"use strict";var kU=ye(),AU=Or(),TU=Ni(),Xu=Qu(),bI=kU("".replace),CU=RegExp("^["+Xu+"]+"),PU=RegExp("(^|[^"+Xu+"])["+Xu+"]+$"),Yu=function(e){return function(t){var r=TU(AU(t));return e&1&&(r=bI(r,CU,"")),e&2&&(r=bI(r,PU,"$1")),r}};wI.exports={start:Yu(1),end:Yu(2),trim:Yu(3)}});var kI=h((o8,EI)=>{"use strict";var OU=uu().PROPER,RU=ce(),SI=Qu(),xI="\u200B\x85\u180E";EI.exports=function(e){return RU(function(){return!!SI[e]()||xI[e]()!==xI||OU&&SI[e].name!==e})}});var AI=h(()=>{"use strict";var NU=W(),DU=II().trim,LU=kI();NU({target:"String",proto:!0,forced:LU("trim")},{trim:function(){return DU(this)}})});var CI=h((l8,TI)=>{"use strict";AI();var qU=mt();TI.exports=qU("String","trim")});var OI=h((c8,PI)=>{"use strict";var FU=ze(),MU=CI(),Zu=String.prototype;PI.exports=function(e){var t=e.trim;return typeof e=="string"||e===Zu||FU(Zu,e)&&t===Zu.trim?MU:t}});var NI=h((u8,RI)=>{"use strict";var UU=OI();RI.exports=UU});var LI=h((d8,DI)=>{DI.exports=NI()});var MI=h(()=>{"use strict";var jU=W(),qI=ui(),BU=Fc(),JU=Ae(),FI=du(),HU=rn(),$U=cr(),VU=Jc(),zU=Ue(),GU=pi(),WU=mi(),KU=GU("slice"),QU=zU("species"),ed=Array,YU=Math.max;jU({target:"Array",proto:!0,forced:!KU},{slice:function(t,r){var n=$U(this),i=HU(n),o=FI(t,i),a=FI(r===void 0?i:r,i),s,l,c;if(qI(n)&&(s=n.constructor,BU(s)&&(s===ed||qI(s.prototype))?s=void 0:JU(s)&&(s=s[QU],s===null&&(s=void 0)),s===ed||s===void 0))return WU(n,o,a);for(l=new(s===void 0?ed:s)(YU(a-o,0)),c=0;o<a;o++,c++)o in n&&VU(l,c,n[o]);return l.length=c,l}})});var jI=h((h8,UI)=>{"use strict";MI();var XU=mt();UI.exports=XU("Array","slice")});var JI=h((m8,BI)=>{"use strict";var ZU=ze(),ej=jI(),td=Array.prototype;BI.exports=function(e){var t=e.slice;return e===td||ZU(td,e)&&t===td.slice?ej:t}});var $I=h((v8,HI)=>{"use strict";var tj=JI();HI.exports=tj});var zI=h((g8,VI)=>{VI.exports=$I()});var rd=k(()=>{});var WI=h((_8,GI)=>{"use strict";var rj=Ae(),nj=Vt(),ij=Ue(),oj=ij("match");GI.exports=function(e){var t;return rj(e)&&((t=e[oj])!==void 0?!!t:nj(e)==="RegExp")}});var QI=h((b8,KI)=>{"use strict";var aj=WI(),sj=TypeError;KI.exports=function(e){if(aj(e))throw new sj("The method doesn't accept regular expressions");return e}});var XI=h((w8,YI)=>{"use strict";var lj=Ue(),cj=lj("match");YI.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[cj]=!1,"/./"[e](t)}catch(n){}}return!1}});var tS=h(()=>{"use strict";var uj=W(),dj=ri(),pj=Tc().f,fj=Dc(),ZI=Ni(),hj=QI(),mj=Or(),vj=XI(),gj=Yr(),yj=dj("".slice),_j=Math.min,eS=vj("startsWith"),bj=!gj&&!eS&&!!function(){var e=pj(String.prototype,"startsWith");return e&&!e.writable}();uj({target:"String",proto:!0,forced:!bj&&!eS},{startsWith:function(t){var r=ZI(mj(this));hj(t);var n=fj(_j(arguments.length>1?arguments[1]:void 0,r.length)),i=ZI(t);return yj(r,n,n+i.length)===i}})});var nS=h((x8,rS)=>{"use strict";tS();var wj=mt();rS.exports=wj("String","startsWith")});var oS=h((E8,iS)=>{"use strict";var Ij=ze(),Sj=nS(),nd=String.prototype;iS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===nd||Ij(nd,e)&&t===nd.startsWith?Sj:t}});var sS=h((k8,aS)=>{"use strict";var xj=oS();aS.exports=xj});var cS=h((A8,lS)=>{lS.exports=sS()});var hS=h((T8,fS)=>{"use strict";var dS=ye(),Ej=Rr(),kj=Ae(),Aj=at(),uS=mi(),Tj=Kr(),pS=Function,Cj=dS([].concat),Pj=dS([].join),id={},Oj=function(e,t,r){if(!Aj(id,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";id[t]=pS("C,a","return new C("+Pj(n,",")+")")}return id[t](e,r)};fS.exports=Tj?pS.bind:function(t){var r=Ej(this),n=r.prototype,i=uS(arguments,1),o=function(){var s=Cj(i,uS(arguments));return this instanceof o?Oj(r,s.length,s):r.apply(t,s)};return kj(n)&&(o.prototype=n),o}});var vS=h(()=>{"use strict";var Rj=W(),mS=hS();Rj({target:"Function",proto:!0,forced:Function.bind!==mS},{bind:mS})});var yS=h((O8,gS)=>{"use strict";vS();var Nj=mt();gS.exports=Nj("Function","bind")});var bS=h((R8,_S)=>{"use strict";var Dj=ze(),Lj=yS(),od=Function.prototype;_S.exports=function(e){var t=e.bind;return e===od||Dj(od,e)&&t===od.bind?Lj:t}});var IS=h((N8,wS)=>{"use strict";var qj=bS();wS.exports=qj});var xS=h((D8,SS)=>{SS.exports=IS()});function za(e,t){_e.__h&&_e.__h(se,e,ji||t),ji=0;var r=se.__H||(se.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function qt(e){return ji=1,Fj(px,e)}function Fj(e,t,r){var n=za(vn++,2);if(n.t=e,!n.__c&&(n.__=[px(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=se,!se.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,kd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,sx.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};se.__f=!0;var o=se.shouldComponentUpdate,a=se.componentWillUpdate;se.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)},se.shouldComponentUpdate=i}return n.__N||n.__}function Ur(e,t){var r=za(vn++,3);!_e.__s&&dx(r.__H,t)&&(r.__=e,r.u=t,se.__H.__h.push(r))}function qi(e){return ji=5,Od(function(){return{current:e}},[])}function Od(e,t){var r=za(vn++,7);return dx(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function vt(e,t){return ji=8,Od(function(){return e},t)}function Mj(e){var t=se.context[e.__c],r=za(vn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(se)),t.props.value):e.__}function Uj(){for(var e;e=ux.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Oa),(0,Te.default)(r=e.__H.__h).call(r,hd),e.__H.__h=[]}catch(n){e.__H.__h=[],_e.__e(n,e.__v)}}function jj(e){var t,r=function(){clearTimeout(n),RS&&cancelAnimationFrame(t),(0,Lt.default)(e)},n=(0,Lt.default)(r,100);RS&&(t=requestAnimationFrame(r))}function Oa(e){var t=se,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),se=t}function hd(e){var t=se;e.__c=e.__(),se=t}function dx(e,t){return!e||e.length!==t.length||(0,Ua.default)(t).call(t,function(r,n){return r!==e[n]})}function px(e,t){return typeof t=="function"?t(e):t}function Bj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function md(){throw new Error("setTimeout has not been defined")}function vd(){throw new Error("clearTimeout has not been defined")}function hx(e){if(Pt===Lt.default)return(0,Lt.default)(e,0);if((Pt===md||!Pt)&&Lt.default)return Pt=Lt.default,(0,Lt.default)(e,0);try{return Pt(e,0)}catch(t){try{return Pt.call(null,e,0)}catch(r){return Pt.call(this,e,0)}}}function Jj(e){if(Ot===clearTimeout)return clearTimeout(e);if((Ot===vd||!Ot)&&clearTimeout)return Ot=clearTimeout,clearTimeout(e);try{return Ot(e)}catch(t){try{return Ot.call(null,e)}catch(r){return Ot.call(this,e)}}}function Hj(){!fn||!gr||(fn=!1,gr.length?Qt=(0,Va.default)(gr).call(gr,Qt):Ra=-1,Qt.length&&mx())}function mx(){if(!fn){var e=hx(Hj);fn=!0;for(var t=Qt.length;t;){for(gr=Qt,Qt=[];++Ra<t;)gr&&gr[Ra].run();Ra=-1,t=Qt.length}gr=null,fn=!1,Jj(e)}}function vx(e,t){this.fun=e,this.array=t}function Xt(){}function zj(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 Gj(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 Yj(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function _x(e){return(0,Cd.default)(e).call(e)}function Xj(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function gd(e,t){return(0,Yt.default)(e).call(e,t)}function Ne(e,t){return e.charCodeAt(t)|0}function Bi(e,t,r){return(0,Pd.default)(e).call(e,t,r)}function Rt(e){return e.length}function Ld(e){return e.length}function Aa(e,t){return t.push(e),e}function Zj(e,t){return(0,Ui.default)(e).call(e,t).join("")}function Ka(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Wa,column:gn,length:a,return:""}}function Di(e,t){return Qj(Ka("",null,null,"",null,null,0),e,{length:-e.length},t)}function e2(){return be}function t2(){return be=Xe>0?Ne(_n,--Xe):0,gn--,be===10&&(gn=1,Wa--),be}function st(){return be=Xe<bx?Ne(_n,Xe++):0,gn++,be===10&&(gn=1,Wa++),be}function Ft(){return Ne(_n,Xe)}function Na(){return Xe}function Gi(e,t){return Bi(_n,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 wx(e){return Wa=gn=1,bx=Rt(_n=e),Xe=0,[]}function Ix(e){return _n="",e}function Da(e){return _x(Gi(Xe-1,yd(e===91?e+2:e===40?e+1:e)))}function r2(e){for(;(be=Ft())&&be<33;)st();return Ji(e)>2||Ji(be)>3?"":" "}function n2(e,t){for(;--t&&st()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Gi(e,Na()+(t<6&&Ft()==32&&st()==32))}function yd(e){for(;st();)switch(be){case e:return Xe;case 34:case 39:e!==34&&e!==39&&yd(be);break;case 40:e===41&&yd(e);break;case 92:st();break}return Xe}function i2(e,t){for(;st()&&e+be!==57&&!(e+be===84&&Ft()===47););return"/*"+Gi(t,Xe-1)+"*"+Ga(e===47?e:st())}function o2(e){for(;!Ji(Ft());)st();return Gi(e,Xe)}function a2(e){return Ix(La("",null,null,null,[""],e=wx(e),0,[0],e))}function La(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=st()){case 40:if(m!=108&&Ne(x,u-1)==58){gd(x+=V(Da(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Da(b);break;case 9:case 10:case 13:case 32:x+=r2(m);break;case 92:x+=n2(Na()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Aa(s2(i2(st(),Na()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Rt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&Rt(x)-u&&Aa(f>32?DS(x+";",n,r,u-1):DS(V(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Aa(O=NS(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)La(x,t,O,O,A,o,u,s,P);else switch(p===99&&Ne(x,3)===110?100:p){case 100:case 109:case 115:La(e,O,O,n&&Aa(NS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:La(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Rt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&t2()==125)continue}switch(x+=Ga(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Rt(x)-1)*v,v=1;break;case 64:Ft()===45&&(x+=Da(st())),p=Ft(),d=u=Rt(I=x+=o2(Na())),b++;break;case 45:m===45&&Rt(x)==2&&(g=0)}}return o}function NS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ld(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Bi(e,u+1,u=Kj(g=a[m])),I=e;v<f;++v)(I=_x(g>0?p[v]+" "+b:V(b,/&\f/g,p[v])))&&(l[_++]=I);return Ka(e,t,r,i===0?Nd:s,l,c,d)}function s2(e,t,r){return Ka(e,t,r,Rd,Ga(e2()),Bi(e,2,-2),0)}function DS(e,t,r,n){return Ka(e,t,r,Dd,Bi(e,0,n),Bi(e,n+1,-1),n)}function hn(e,t){for(var r="",n=Ld(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l2(e,t,r,n){switch(e.type){case Wj:case Dd:return e.return=e.return||e.value;case Rd:return"";case yx:return e.return=e.value+"{"+hn(e.children,n)+"}";case Nd:e.value=e.props.join(",")}return Rt(r=hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function c2(e){var t=Ld(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 u2(e){return function(t){t.root||(t=t.return)&&e(t)}}function xx(e,t){switch(Yj(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+je+e+e;case 6828:case 4268:return j+e+je+e+e;case 6165:return j+e+je+"flex-"+e+e;case 5187:return j+e+V(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+V(e,"shrink","negative")+e;case 5292:return j+e+je+V(e,"basis","preferred-size")+e;case 6060:return j+"box-"+V(e,"-grow","")+j+e+je+V(e,"grow","positive")+e;case 4554:return j+V(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return V(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(Rt(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ba+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gd(e,"stretch")?xx(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Rt(e)-3-(~gd(e,"!important")&&10))){case 107:return V(e,":",":"+j)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Ne(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function kx(){if(FS)return Ta.exports;FS=1;let e=kx();return Ta.exports={default:e},Ta.exports.default=e,Ta.exports}function Hi(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function x2(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 k2(e){var t=(0,lx.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function $i(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 Nt={name:i.name,styles:i.styles,next:Nt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Nt={name:a.name,styles:a.styles,next:Nt},a=a.next;var s=o.styles+";";return s}return C2(e,t,r)}case"function":{if(e!==void 0){var l=Nt,c=r(e);return Nt=l,$i(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function C2(e,t,r){var n="";if((0,Mi.default)(r))for(var i=0;i<r.length;i++)n+=$i(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]+"}":MS(s)&&(n+=sd(o)+":"+US(o,s)+";")}else if((0,Mi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)MS(a[l])&&(n+=sd(o)+":"+US(o,a[l])+";");else{var c=$i(e,t,a);switch(o){case"animation":case"animationName":{n+=sd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function yr(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="";Nt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=$i(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=$i(r,t,e[s]),n){var l=o;i+=l[s]}jS.lastIndex=0;for(var c="",d;(d=jS.exec(i))!==null;)c+="-"+d[1];var u=x2(i)+c;return{name:u,styles:i,next:Nt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yr(t)}function j2(e,t,r){var n=[],i=Hi(e,n,r);return n.length<2?r:i+t(n)}function y(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--H2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function Wi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=qt(e());return Ur(()=>{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 HB(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 Fx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=HB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function $B(e){let t=()=>Fx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function GB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Qe(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=zB(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Me("img",M(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",M(T({},a),{ref:c,className:i,children:r}))}function WB(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?Me(i.type,M(T({},i.props),{style:M(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?Me(e.type,M(T({},e.props),{style:M(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 ZB(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 XS(e,t,r){return Ya.call(t,"css")?y(Ud,Ox(e,t),r):y(e,t,r)}function oJ(e,t,r){return Ya.call(t,"css")?y(Ud,Ox(e,t),r):y(e,t,r)}function Sd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?y(Oe,{children:t[s]},o):null}return y(Oe,{children:i},o)})})}function lJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=qt(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function dJ({children:e,style:t}){return y("div",{style:`${cJ.styles} ${t}`,children:[e,y("svg",{style:`${uJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function EJ(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function Qx(e){return(0,Cd.default)(e).call(e)}function kJ(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function xd(e,t){return(0,Yt.default)(e).call(e,t)}function De(e,t){return e.charCodeAt(t)|0}function Vi(e,t,r){return(0,Pd.default)(e).call(e,t,r)}function Dt(e){return e.length}function Hd(e){return e.length}function Pa(e,t){return t.push(e),e}function AJ(e,t){return(0,Ui.default)(e).call(e,t).join("")}function rs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ts,column:yn,length:a,return:""}}function Li(e,t){return xJ(rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function TJ(){return we}function CJ(){return we=Ze>0?De(In,--Ze):0,yn--,we===10&&(yn=1,ts--),we}function lt(){return we=Ze<Yx?De(In,Ze++):0,yn++,we===10&&(yn=1,ts++),we}function Mt(){return De(In,Ze)}function qa(){return Ze}function Qi(e,t){return Vi(In,e,t)}function zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xx(e){return ts=yn=1,Yx=Dt(In=e),Ze=0,[]}function Zx(e){return In="",e}function Fa(e){return Qx(Qi(Ze-1,Ed(e===91?e+2:e===40?e+1:e)))}function PJ(e){for(;(we=Mt())&&we<33;)lt();return zi(e)>2||zi(we)>3?"":" "}function OJ(e,t){for(;--t&&lt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Qi(e,qa()+(t<6&&Mt()==32&&lt()==32))}function Ed(e){for(;lt();)switch(we){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Ed(we);break;case 40:e===41&&Ed(e);break;case 92:lt();break}return Ze}function RJ(e,t){for(;lt()&&e+we!==57&&!(e+we===84&&Mt()===47););return"/*"+Qi(t,Ze-1)+"*"+es(e===47?e:lt())}function NJ(e){for(;!zi(Mt());)lt();return Qi(e,Ze)}function DJ(e){return Zx(Ma("",null,null,null,[""],e=Xx(e),0,[0],e))}function Ma(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=lt()){case 40:if(m!=108&&De(x,u-1)==58){xd(x+=J(Fa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Fa(b);break;case 9:case 10:case 13:case 32:x+=PJ(m);break;case 92:x+=OJ(qa()-1,7);continue;case 47:switch(Mt()){case 42:case 47:Pa(LJ(RJ(lt(),qa()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Dt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=J(x,/\f/g,"")),f>0&&Dt(x)-u&&Pa(f>32?ex(x+";",n,r,u-1):ex(J(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Pa(O=ZS(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)Ma(x,t,O,O,A,o,u,s,P);else switch(p===99&&De(x,3)===110?100:p){case 100:case 108:case 109:case 115:Ma(e,O,O,n&&Pa(ZS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Ma(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Dt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&CJ()==125)continue}switch(x+=es(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Dt(x)-1)*v,v=1;break;case 64:Mt()===45&&(x+=Fa(lt())),p=Mt(),d=u=Dt(I=x+=NJ(qa())),b++;break;case 45:m===45&&Dt(x)==2&&(g=0)}}return o}function ZS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Hd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Vi(e,u+1,u=SJ(g=a[m])),I=e;v<f;++v)(I=Qx(g>0?p[v]+" "+b:J(b,/&\f/g,p[v])))&&(l[_++]=I);return rs(e,t,r,i===0?Bd:s,l,c,d)}function LJ(e,t,r){return rs(e,t,r,Wx,es(TJ()),Vi(e,2,-2),0)}function ex(e,t,r,n){return rs(e,t,r,Jd,Vi(e,0,n),Vi(e,n+1,-1),n)}function mn(e,t){for(var r="",n=Hd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function qJ(e,t,r,n){switch(e.type){case IJ:if(e.children.length)break;case wJ:case Jd:return e.return=e.return||e.value;case Wx:return"";case Kx:return e.return=e.value+"{"+mn(e.children,n)+"}";case Bd:e.value=e.props.join(",")}return Dt(r=mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function FJ(e){var t=Hd(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function MJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function eE(e,t){switch(EJ(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+$a+e+Be+e+e;case 6828:case 4268:return B+e+Be+e+e;case 6165:return B+e+Be+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return B+e+Be+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Be+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Be+J(e,"shrink","negative")+e;case 5292:return B+e+Be+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Be+J(e,"grow","positive")+e;case 4554:return B+J(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return J(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(Dt(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+$a+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xd(e,"stretch")?eE(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Dt(e)-3-(~xd(e,"!important")&&10))){case 107:return J(e,":",":"+B)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(De(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Be+e+e}return e}function rx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function pd(e,t,r){var n=[],i=Hi(e,n,r);return n.length<2?r:i+t(n)}function ox(e){if(e==="top"){let t=0;tE.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${nx}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${nx}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+ix)})}else if(e==="center"){let t=0;rE.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+ix)})}}function Yi(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Fi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),lr(y(t5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Fi.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(lr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Fi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var kd,sx,Te,Va,Ua,Lt,ja,Mi,Ad,Yt,Ui,lx,cx,Td,Cd,Pd,U8,fd,vn,se,ad,ES,ji,ux,_e,kS,AS,TS,CS,PS,OS,RS,fx,me,Pt,Ot,Qt,fn,gr,Ra,$j,Ce,Vj,gx,je,Ba,j,Rd,Nd,Dd,Wj,yx,Kj,Ga,Qj,Wa,gn,bx,Xe,be,_n,d2,p2,f2,LS,h2,m2,v2,g2,y2,Sx,_2,qS,b2,w2,I2,Ex,Ta,FS,S2,qd,Qa,E2,A2,T2,Ax,MS,sd,US,jS,Nt,P2,Tx,Cx,BS,Ya,Fd,Px,Md,Xa,O2,R2,N2,D2,L2,_d,bd,Ox,q2,Ud,F2,JS,M2,U2,B2,J2,ld,HS,cd,ud,H2,dd,$2,V2,z2,G2,W2,K2,$S,Q2,Y2,VS,X2,Z2,zS,eB,tB,GS,rB,nB,iB,oB,aB,sB,lB,cB,WS,uB,dB,pB,fB,hB,mB,vB,gB,KS,yB,_B,bB,wB,IB,SB,xB,EB,kB,AB,TB,CB,PB,OB,RB,NB,DB,LB,qB,FB,MB,UB,jB,BB,Rx,Nx,Dx,wd,JB,Lx,qx,Ja,Fi,QS,VB,Za,zB,Mx,Ux,jx,KB,QB,YB,Id,XB,Bx,Ha,Ki,bn,YS,Mr,Jx,pn,eJ,tJ,rJ,nJ,iJ,Ca,Hx,jd,de,aJ,sJ,cJ,uJ,St,pJ,fJ,$x,Vx,zx,Gx,wn,hJ,mJ,vJ,gJ,yJ,_J,bJ,Be,$a,B,Wx,Bd,Jd,wJ,Kx,IJ,SJ,es,xJ,ts,yn,Yx,Ze,we,In,UJ,jJ,BJ,tx,JJ,HJ,$J,VJ,zJ,GJ,WJ,KJ,QJ,YJ,XJ,ZJ,nx,ix,tE,rE,jr,ax,e5,t5,j8,Zt=k(()=>{"use strict";Wr();kd=ie(Yv(),1),sx=ie(sg(),1),Te=ie(bg(),1),Va=ie(Lg(),1),Ua=ie($g(),1),Lt=ie(ly(),1);Yo();Yo();ja=ie(zy(),1),Mi=ie(Zy(),1),Ad=ie(mw(),1),Yt=ie(Ew(),1),Ui=ie(Dw(),1),lx=ie(Bw(),1),cx=ie(iI(),1),Td=ie(yI(),1),Cd=ie(LI(),1),Pd=ie(zI(),1);rd();rd();U8=ie(cS(),1),fd=ie(xS(),1),ji=0,ux=[],_e=R,kS=_e.__b,AS=_e.__r,TS=_e.diffed,CS=_e.__c,PS=_e.unmount,OS=_e.__;_e.__b=function(e){se=null,kS&&kS(e)},_e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),OS&&OS(e,t)},_e.__r=function(e){var t,r,n;AS&&AS(e),vn=0;var i=(se=e.__c).__H;i&&(ad===se?(i.__h=[],se.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Oa),(0,Te.default)(n=i.__h).call(n,hd),i.__h=[],vn=0)),ad=se},_e.diffed=function(e){var t;TS&&TS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(ux.push(r)!==1&&ES===_e.requestAnimationFrame||((ES=_e.requestAnimationFrame)||jj)(Uj)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),ad=se=null},_e.__c=function(e,t){(0,Ua.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Oa),r.__h=(0,kd.default)(i=r.__h).call(i,function(o){return!o.__||hd(o)})}catch(o){(0,Ua.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(o,r.__v)}}),CS&&CS(e,t)},_e.unmount=function(e){var t;PS&&PS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Oa(i)}catch(o){r=o}}),n.__H=void 0,r&&_e.__e(r,n.__v))};RS=typeof requestAnimationFrame=="function";fx={exports:{}},me=fx.exports={};(function(){try{typeof Lt.default=="function"?Pt=Lt.default:Pt=md}catch(e){Pt=md}try{typeof clearTimeout=="function"?Ot=clearTimeout:Ot=vd}catch(e){Ot=vd}})();Qt=[],fn=!1,Ra=-1;me.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];Qt.push(new vx(e,t)),Qt.length===1&&!fn&&hx(mx)};vx.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};me.on=Xt;me.addListener=Xt;me.once=Xt;me.off=Xt;me.removeListener=Xt;me.removeAllListeners=Xt;me.emit=Xt;me.prependListener=Xt;me.prependOnceListener=Xt;me.listeners=function(e){return[]};me.binding=function(e){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(e){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};$j=fx.exports,Ce=Bj($j),Vj=ja.default||void 0||self;gx=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Gj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=zj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),je="-ms-",Ba="-moz-",j="-webkit-",Rd="comm",Nd="rule",Dd="decl",Wj="@import",yx="@keyframes",Kj=Math.abs,Ga=String.fromCharCode,Qj=Td.default;Wa=1,gn=1,bx=0,Xe=0,be=0,_n="";d2=function(e,t,r){for(var n=0,i=0;n=i,i=Ft(),n===38&&i===12&&(t[r]=1),!Ji(i);)st();return Gi(e,Xe)},p2=function(e,t){var r=-1,n=44;do switch(Ji(n)){case 0:n===38&&Ft()===12&&(t[r]=1),e[r]+=d2(Xe-1,t,r);break;case 2:e[r]+=Da(n);break;case 4:if(n===44){e[++r]=Ft()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ga(n)}while(n=st());return e},f2=function(e,t){return Ix(p2(wx(e),t))},LS=new Ad.default,h2=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&&!LS.get(r))&&!n){LS.set(e,!0);for(var i=[],o=f2(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]}}},m2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},v2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",g2=function(e){var t;return e.type==="comm"&&(0,Yt.default)(t=e.children).call(t,v2)>-1},y2=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(g2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Sx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},_2=function(e,t){for(var r=e-1;r>=0;r--)if(!Sx(t[r]))return!0;return!1},qS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},b2=function(e,t,r){Sx(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."),qS(e)):_2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qS(e)))};w2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dd:e.return=xx(e.value,e.length);break;case yx:return hn([Di(e,{value:V(e.value,"@","@"+j)})],n);case Nd:if(e.length)return Zj(e.props,function(i){switch(Xj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([Di(e,{props:[V(i,/:(read-\w+)/,":"+Ba+"$1")]})],n);case"::placeholder":return hn([Di(e,{props:[V(i,/:(plac\w+)/,":"+j+"input-$1")]}),Di(e,{props:[V(i,/:(plac\w+)/,":"+Ba+"$1")]}),Di(e,{props:[V(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},I2=[w2],Ex=function(e){var t=e.key;if(Ce.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
19
+ `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Eh=k(()=>{"use strict";Q()});var kh=k(()=>{"use strict"});var Ah=k(()=>{"use strict";D();Jl()});var Th=k(()=>{"use strict";Q()});var Ro,Xl=k(()=>{"use strict";kh();Ah();Q();Th();D();Ro=new Tt});function $t(e,t){for(var r in t)e[r]=t[r];return e}function ic(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Me(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?qo.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 Do(e,a,n,i,null)}function Do(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?++Rh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function Oe(e){return e.children}function ot(e,t){this.props=e,this.context=t}function Gr(e,t){if(t==null)return e.__?Gr(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"?Gr(e):null}function Mh(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 Mh(e)}}function tc(e){(!e.__d&&(e.__d=!0)&&Tr.push(e)&&!Lo.__r++||Ch!==R.debounceRendering)&&((Ch=R.debounceRendering)||Nh)(Lo)}function Lo(){for(var e,t,r,n,i,o,a,s=1;Tr.length;)Tr.length>s&&Tr.sort(Dh),e=Tr.shift(),s=Tr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=$t({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),oc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Gr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Bh(o,r,a),r.__e!=i&&Mh(r)));Lo.__r=0}function Uh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Fh,b=t.length;for(l=ET(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Xn:v[f.__i]||Xn,f.__i=u,_=oc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&ac(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=jh(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function ET(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Do(null,a,null,null,null):Zn(a)?Do(Oe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Do(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=kT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Gr(s)),Hh(s,s));return n}function jh(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=jh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Gr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ei(e,t){return t=t||[],e==null||typeof e=="boolean"||(Zn(e)?e.some(function(r){ei(r,t)}):t.push(e)),t}function kT(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 Ph(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||xT.test(t)?r:r+"px"}function No(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||Ph(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Ph(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Lh,"$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=nc,e.addEventListener(t,o?ec:Zl,o)):e.removeEventListener(t,o?ec:Zl,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 Oh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=nc++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function oc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,I,A,P,O,x,C,X,it,q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof q=="function")try{if(v=t.props,b="prototype"in q&&q.prototype.render,I=(d=q.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new q(v,A):(t.__c=u=new ot(v,A),u.constructor=q,u.render=TT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=$t({},u.__s)),$t(u.__s,q.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&q.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Ve){Ve&&(Ve.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,x=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++x<25);u.state=u.__s,u.getChildContext!=null&&(n=$t($t({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),X=d,d!=null&&d.type===Oe&&d.key==null&&(X=Jh(d.props.children)),s=Uh(e,Zn(X)?X:[X],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(Ve){if(t.__v=null,l||o!=null)if(Ve.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(it=o.length;it--;)ic(o[it]);else t.__e=r.__e,t.__k=r.__k;R.__e(Ve,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=AT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function Bh(e,t,r){for(var n=0;n<r.length;n++)ac(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function Jh(e){return typeof e!="object"||e==null?e:Zn(e)?e.map(Jh):$t({},e)}function AT(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&qo.call(e.childNodes),_=r.props||Xn,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;No(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||No(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Uh(t.type==="template"?e.content:e,Zn(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Gr(r,0),s,l),o!=null)for(c=o.length;c--;)ic(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])&&No(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&No(e,c,g,_[c],i))}return e}function ac(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){R.__e(i,r)}}function Hh(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ac(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Hh(n[i],t,r||typeof e.type!="function");r||ic(e.__e),e.__c=e.__=e.__e=void 0}function TT(e,t,r){return this.constructor(e,r)}function lr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],oc(t,e=(!n&&r||t).__k=Me(Oe,null,[e]),i||Xn,Xn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?qo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Bh(o,e,a)}function Cr(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,tc(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"+qh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var qo,R,Rh,rc,Tr,Ch,Nh,Dh,Lh,nc,Zl,ec,qh,Xn,Fh,xT,Zn,Wr=k(()=>{Xn={},Fh=[],xT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zn=Array.isArray;qo=Fh.slice,R={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Rh=0,rc=function(e){return e!=null&&e.constructor==null},ot.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$t({},this.state),typeof e=="function"&&(e=e($t({},r),this.props)),e&&$t(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),tc(this))},ot.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),tc(this))},ot.prototype.render=Oe,Tr=[],Nh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dh=function(e,t){return e.__v.__b-t.__v.__b},Lo.__r=0,Lh=/(PointerCapture)$|Capture$/i,nc=0,Zl=Oh(!1),ec=Oh(!0),qh=0});var ce=h((pV,$h)=>{"use strict";$h.exports=function(e){try{return!!e()}catch(t){return!0}}});var Kr=h((fV,Vh)=>{"use strict";var CT=ce();Vh.exports=!CT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ye=h((hV,Wh)=>{"use strict";var zh=Kr(),Gh=Function.prototype,sc=Gh.call,PT=zh&&Gh.bind.bind(sc,sc);Wh.exports=zh?PT:function(e){return function(){return sc.apply(e,arguments)}}});var ze=h((mV,Kh)=>{"use strict";var OT=ye();Kh.exports=OT({}.isPrototypeOf)});var ue=h((lc,Qh)=>{"use strict";var ti=function(e){return e&&e.Math===Math&&e};Qh.exports=ti(typeof globalThis=="object"&&globalThis)||ti(typeof window=="object"&&window)||ti(typeof self=="object"&&self)||ti(typeof global=="object"&&global)||ti(typeof lc=="object"&&lc)||function(){return this}()||Function("return this")()});var cc=h((vV,em)=>{"use strict";var RT=Kr(),Zh=Function.prototype,Yh=Zh.apply,Xh=Zh.call;em.exports=typeof Reflect=="object"&&Reflect.apply||(RT?Xh.bind(Yh):function(){return Xh.apply(Yh,arguments)})});var Vt=h((gV,rm)=>{"use strict";var tm=ye(),NT=tm({}.toString),DT=tm("".slice);rm.exports=function(e){return DT(NT(e),8,-1)}});var ri=h((yV,nm)=>{"use strict";var LT=Vt(),qT=ye();nm.exports=function(e){if(LT(e)==="Function")return qT(e)}});var Re=h((_V,im)=>{"use strict";var uc=typeof document=="object"&&document.all;im.exports=typeof uc=="undefined"&&uc!==void 0?function(e){return typeof e=="function"||e===uc}:function(e){return typeof e=="function"}});var Ge=h((bV,om)=>{"use strict";var FT=ce();om.exports=!FT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var wt=h((wV,am)=>{"use strict";var MT=Kr(),Fo=Function.prototype.call;am.exports=MT?Fo.bind(Fo):function(){return Fo.apply(Fo,arguments)}});var dc=h(cm=>{"use strict";var sm={}.propertyIsEnumerable,lm=Object.getOwnPropertyDescriptor,UT=lm&&!sm.call({1:2},1);cm.f=UT?function(t){var r=lm(this,t);return!!r&&r.enumerable}:sm});var ni=h((SV,um)=>{"use strict";um.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Mo=h((xV,dm)=>{"use strict";var jT=ye(),BT=ce(),JT=Vt(),pc=Object,HT=jT("".split);dm.exports=BT(function(){return!pc("z").propertyIsEnumerable(0)})?function(e){return JT(e)==="String"?HT(e,""):pc(e)}:pc});var Pr=h((EV,pm)=>{"use strict";pm.exports=function(e){return e==null}});var Or=h((kV,fm)=>{"use strict";var $T=Pr(),VT=TypeError;fm.exports=function(e){if($T(e))throw new VT("Can't call method on "+e);return e}});var cr=h((AV,hm)=>{"use strict";var zT=Mo(),GT=Or();hm.exports=function(e){return zT(GT(e))}});var Ae=h((TV,mm)=>{"use strict";var WT=Re();mm.exports=function(e){return typeof e=="object"?e!==null:WT(e)}});var Ct=h((CV,vm)=>{"use strict";vm.exports={}});var Qr=h((PV,ym)=>{"use strict";var fc=Ct(),hc=ue(),KT=Re(),gm=function(e){return KT(e)?e:void 0};ym.exports=function(e,t){return arguments.length<2?gm(fc[e])||gm(hc[e]):fc[e]&&fc[e][t]||hc[e]&&hc[e][t]}});var Uo=h((OV,wm)=>{"use strict";var QT=ue(),_m=QT.navigator,bm=_m&&_m.userAgent;wm.exports=bm?String(bm):""});var Bo=h((RV,Am)=>{"use strict";var km=ue(),mc=Uo(),Im=km.process,Sm=km.Deno,xm=Im&&Im.versions||Sm&&Sm.version,Em=xm&&xm.v8,It,jo;Em&&(It=Em.split("."),jo=It[0]>0&&It[0]<4?1:+(It[0]+It[1]));!jo&&mc&&(It=mc.match(/Edge\/(\d+)/),(!It||It[1]>=74)&&(It=mc.match(/Chrome\/(\d+)/),It&&(jo=+It[1])));Am.exports=jo});var vc=h((NV,Cm)=>{"use strict";var Tm=Bo(),YT=ce(),XT=ue(),ZT=XT.String;Cm.exports=!!Object.getOwnPropertySymbols&&!YT(function(){var e=Symbol("symbol detection");return!ZT(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tm&&Tm<41})});var gc=h((DV,Pm)=>{"use strict";var eC=vc();Pm.exports=eC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var yc=h((LV,Om)=>{"use strict";var tC=Qr(),rC=Re(),nC=ze(),iC=gc(),oC=Object;Om.exports=iC?function(e){return typeof e=="symbol"}:function(e){var t=tC("Symbol");return rC(t)&&nC(t.prototype,oC(e))}});var ii=h((qV,Rm)=>{"use strict";var aC=String;Rm.exports=function(e){try{return aC(e)}catch(t){return"Object"}}});var Rr=h((FV,Nm)=>{"use strict";var sC=Re(),lC=ii(),cC=TypeError;Nm.exports=function(e){if(sC(e))return e;throw new cC(lC(e)+" is not a function")}});var Jo=h((MV,Dm)=>{"use strict";var uC=Rr(),dC=Pr();Dm.exports=function(e,t){var r=e[t];return dC(r)?void 0:uC(r)}});var qm=h((UV,Lm)=>{"use strict";var _c=wt(),bc=Re(),wc=Ae(),pC=TypeError;Lm.exports=function(e,t){var r,n;if(t==="string"&&bc(r=e.toString)&&!wc(n=_c(r,e))||bc(r=e.valueOf)&&!wc(n=_c(r,e))||t!=="string"&&bc(r=e.toString)&&!wc(n=_c(r,e)))return n;throw new pC("Can't convert object to primitive value")}});var Yr=h((jV,Fm)=>{"use strict";Fm.exports=!0});var jm=h((BV,Um)=>{"use strict";var Mm=ue(),fC=Object.defineProperty;Um.exports=function(e,t){try{fC(Mm,e,{value:t,configurable:!0,writable:!0})}catch(r){Mm[e]=t}return t}});var oi=h((JV,Hm)=>{"use strict";var hC=Yr(),mC=ue(),vC=jm(),Bm="__core-js_shared__",Jm=Hm.exports=mC[Bm]||vC(Bm,{});(Jm.versions||(Jm.versions=[])).push({version:"3.41.0",mode:hC?"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 Ic=h((HV,Vm)=>{"use strict";var $m=oi();Vm.exports=function(e,t){return $m[e]||($m[e]=t||{})}});var Xr=h(($V,zm)=>{"use strict";var gC=Or(),yC=Object;zm.exports=function(e){return yC(gC(e))}});var at=h((VV,Gm)=>{"use strict";var _C=ye(),bC=Xr(),wC=_C({}.hasOwnProperty);Gm.exports=Object.hasOwn||function(t,r){return wC(bC(t),r)}});var Ho=h((zV,Wm)=>{"use strict";var IC=ye(),SC=0,xC=Math.random(),EC=IC(1 .toString);Wm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EC(++SC+xC,36)}});var Ue=h((GV,Qm)=>{"use strict";var kC=ue(),AC=Ic(),Km=at(),TC=Ho(),CC=vc(),PC=gc(),Zr=kC.Symbol,Sc=AC("wks"),OC=PC?Zr.for||Zr:Zr&&Zr.withoutSetter||TC;Qm.exports=function(e){return Km(Sc,e)||(Sc[e]=CC&&Km(Zr,e)?Zr[e]:OC("Symbol."+e)),Sc[e]}});var ev=h((WV,Zm)=>{"use strict";var RC=wt(),Ym=Ae(),Xm=yc(),NC=Jo(),DC=qm(),LC=Ue(),qC=TypeError,FC=LC("toPrimitive");Zm.exports=function(e,t){if(!Ym(e)||Xm(e))return e;var r=NC(e,FC),n;if(r){if(t===void 0&&(t="default"),n=RC(r,e,t),!Ym(n)||Xm(n))return n;throw new qC("Can't convert object to primitive value")}return t===void 0&&(t="number"),DC(e,t)}});var xc=h((KV,tv)=>{"use strict";var MC=ev(),UC=yc();tv.exports=function(e){var t=MC(e,"string");return UC(t)?t:t+""}});var kc=h((QV,nv)=>{"use strict";var jC=ue(),rv=Ae(),Ec=jC.document,BC=rv(Ec)&&rv(Ec.createElement);nv.exports=function(e){return BC?Ec.createElement(e):{}}});var Ac=h((YV,iv)=>{"use strict";var JC=Ge(),HC=ce(),$C=kc();iv.exports=!JC&&!HC(function(){return Object.defineProperty($C("div"),"a",{get:function(){return 7}}).a!==7})});var Tc=h(av=>{"use strict";var VC=Ge(),zC=wt(),GC=dc(),WC=ni(),KC=cr(),QC=xc(),YC=at(),XC=Ac(),ov=Object.getOwnPropertyDescriptor;av.f=VC?ov:function(t,r){if(t=KC(t),r=QC(r),XC)try{return ov(t,r)}catch(n){}if(YC(t,r))return WC(!zC(GC.f,t,r),t[r])}});var lv=h((ZV,sv)=>{"use strict";var ZC=ce(),eP=Re(),tP=/#|\.prototype\./,ai=function(e,t){var r=nP[rP(e)];return r===oP?!0:r===iP?!1:eP(t)?ZC(t):!!t},rP=ai.normalize=function(e){return String(e).replace(tP,".").toLowerCase()},nP=ai.data={},iP=ai.NATIVE="N",oP=ai.POLYFILL="P";sv.exports=ai});var si=h((ez,uv)=>{"use strict";var cv=ri(),aP=Rr(),sP=Kr(),lP=cv(cv.bind);uv.exports=function(e,t){return aP(e),t===void 0?e:sP?lP(e,t):function(){return e.apply(t,arguments)}}});var Cc=h((tz,dv)=>{"use strict";var cP=Ge(),uP=ce();dv.exports=cP&&uP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((rz,pv)=>{"use strict";var dP=Ae(),pP=String,fP=TypeError;pv.exports=function(e){if(dP(e))return e;throw new fP(pP(e)+" is not an object")}});var Gt=h(hv=>{"use strict";var hP=Ge(),mP=Ac(),vP=Cc(),$o=zt(),fv=xc(),gP=TypeError,Pc=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,Oc="enumerable",Rc="configurable",Nc="writable";hv.f=hP?vP?function(t,r,n){if($o(t),r=fv(r),$o(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Nc in n&&!n[Nc]){var i=yP(t,r);i&&i[Nc]&&(t[r]=n.value,n={configurable:Rc in n?n[Rc]:i[Rc],enumerable:Oc in n?n[Oc]:i[Oc],writable:!1})}return Pc(t,r,n)}:Pc:function(t,r,n){if($o(t),r=fv(r),$o(n),mP)try{return Pc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new gP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Nr=h((iz,mv)=>{"use strict";var _P=Ge(),bP=Gt(),wP=ni();mv.exports=_P?function(e,t,r){return bP.f(e,t,wP(1,r))}:function(e,t,r){return e[t]=r,e}});var K=h((oz,gv)=>{"use strict";var li=ue(),IP=cc(),SP=ri(),xP=Re(),EP=Tc().f,kP=lv(),en=Ct(),AP=si(),tn=Nr(),vv=at();oi();var TP=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 IP(e,this,arguments)};return t.prototype=e.prototype,t};gv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?li:i?li[r]:li[r]&&li[r].prototype,s=n?en:en[r]||tn(en,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=kP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&vv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=EP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=AP(f,li):e.wrap&&d?_=TP(f):o&&xP(f)?_=SP(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&tn(_,"sham",!0),tn(s,p,_),o&&(u=r+"Prototype",vv(en,u)||tn(en,u,{}),tn(en[u],p,f),e.real&&l&&(c||!l[p])&&tn(l,p,f)))}});var _v=h((az,yv)=>{"use strict";var CP=Math.ceil,PP=Math.floor;yv.exports=Math.trunc||function(t){var r=+t;return(r>0?PP:CP)(r)}});var ci=h((sz,bv)=>{"use strict";var OP=_v();bv.exports=function(e){var t=+e;return t!==t||t===0?0:OP(t)}});var Dc=h((lz,wv)=>{"use strict";var RP=ci(),NP=Math.min;wv.exports=function(e){var t=RP(e);return t>0?NP(t,9007199254740991):0}});var rn=h((cz,Iv)=>{"use strict";var DP=Dc();Iv.exports=function(e){return DP(e.length)}});var ui=h((uz,Sv)=>{"use strict";var LP=Vt();Sv.exports=Array.isArray||function(t){return LP(t)==="Array"}});var Vo=h((dz,Ev)=>{"use strict";var qP=Ue(),FP=qP("toStringTag"),xv={};xv[FP]="z";Ev.exports=String(xv)==="[object z]"});var nn=h((pz,kv)=>{"use strict";var MP=Vo(),UP=Re(),zo=Vt(),jP=Ue(),BP=jP("toStringTag"),JP=Object,HP=zo(function(){return arguments}())==="Arguments",$P=function(e,t){try{return e[t]}catch(r){}};kv.exports=MP?zo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=$P(t=JP(e),BP))=="string"?r:HP?zo(t):(n=zo(t))==="Object"&&UP(t.callee)?"Arguments":n}});var Tv=h((fz,Av)=>{"use strict";var VP=ye(),zP=Re(),Lc=oi(),GP=VP(Function.toString);zP(Lc.inspectSource)||(Lc.inspectSource=function(e){return GP(e)});Av.exports=Lc.inspectSource});var Fc=h((hz,Nv)=>{"use strict";var WP=ye(),KP=ce(),Cv=Re(),QP=nn(),YP=Qr(),XP=Tv(),Pv=function(){},Ov=YP("Reflect","construct"),qc=/^\s*(?:class|function)\b/,ZP=WP(qc.exec),eO=!qc.test(Pv),di=function(t){if(!Cv(t))return!1;try{return Ov(Pv,[],t),!0}catch(r){return!1}},Rv=function(t){if(!Cv(t))return!1;switch(QP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eO||!!ZP(qc,XP(t))}catch(r){return!0}};Rv.sham=!0;Nv.exports=!Ov||KP(function(){var e;return di(di.call)||!di(Object)||!di(function(){e=!0})||e})?Rv:di});var Fv=h((mz,qv)=>{"use strict";var Dv=ui(),tO=Fc(),rO=Ae(),nO=Ue(),iO=nO("species"),Lv=Array;qv.exports=function(e){var t;return Dv(e)&&(t=e.constructor,tO(t)&&(t===Lv||Dv(t.prototype))?t=void 0:rO(t)&&(t=t[iO],t===null&&(t=void 0))),t===void 0?Lv:t}});var Mc=h((vz,Mv)=>{"use strict";var oO=Fv();Mv.exports=function(e,t){return new(oO(e))(t===0?0:t)}});var dr=h((gz,jv)=>{"use strict";var aO=si(),sO=ye(),lO=Mo(),cO=Xr(),uO=rn(),dO=Mc(),Uv=sO([].push),ur=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=cO(l),f=lO(p),m=uO(f),g=aO(c,d),_=0,v=u||dO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in f)&&(I=f[_],A=g(I,_,p),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:Uv(b,I)}else switch(e){case 4:return!1;case 7:Uv(b,I)}return o?-1:n||i?i:b}};jv.exports={forEach:ur(0),map:ur(1),filter:ur(2),some:ur(3),every:ur(4),find:ur(5),findIndex:ur(6),filterReject:ur(7)}});var pi=h((yz,Bv)=>{"use strict";var pO=ce(),fO=Ue(),hO=Bo(),mO=fO("species");Bv.exports=function(e){return hO>=51||!pO(function(){var t=[],r=t.constructor={};return r[mO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Jv=h(()=>{"use strict";var vO=K(),gO=dr().filter,yO=pi(),_O=yO("filter");vO({target:"Array",proto:!0,forced:!_O},{filter:function(t){return gO(this,t,arguments.length>1?arguments[1]:void 0)}})});var mt=h((wz,Hv)=>{"use strict";var bO=ue(),wO=Ct();Hv.exports=function(e,t){var r=wO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=bO[e],o=i&&i.prototype;return o&&o[t]}});var Vv=h((Iz,$v)=>{"use strict";Jv();var IO=mt();$v.exports=IO("Array","filter")});var Gv=h((Sz,zv)=>{"use strict";var SO=ze(),xO=Vv(),Uc=Array.prototype;zv.exports=function(e){var t=e.filter;return e===Uc||SO(Uc,e)&&t===Uc.filter?xO:t}});var Kv=h((xz,Wv)=>{"use strict";var EO=Gv();Wv.exports=EO});var Yv=h((Ez,Qv)=>{Qv.exports=Kv()});var fi=h((kz,Xv)=>{"use strict";var kO=ce();Xv.exports=function(e,t){var r=[][e];return!!r&&kO(function(){r.call(null,t||function(){return 1},1)})}});var Zv=h(()=>{"use strict";var AO=K(),TO=dr().every,CO=fi(),PO=CO("every");AO({target:"Array",proto:!0,forced:!PO},{every:function(t){return TO(this,t,arguments.length>1?arguments[1]:void 0)}})});var tg=h((Cz,eg)=>{"use strict";Zv();var OO=mt();eg.exports=OO("Array","every")});var ng=h((Pz,rg)=>{"use strict";var RO=ze(),NO=tg(),jc=Array.prototype;rg.exports=function(e){var t=e.every;return e===jc||RO(jc,e)&&t===jc.every?NO:t}});var og=h((Oz,ig)=>{"use strict";var DO=ng();ig.exports=DO});var sg=h((Rz,ag)=>{ag.exports=og()});var cg=h((Nz,lg)=>{"use strict";var LO=dr().forEach,qO=fi(),FO=qO("forEach");lg.exports=FO?[].forEach:function(t){return LO(this,t,arguments.length>1?arguments[1]:void 0)}});var dg=h(()=>{"use strict";var MO=K(),ug=cg();MO({target:"Array",proto:!0,forced:[].forEach!==ug},{forEach:ug})});var fg=h((qz,pg)=>{"use strict";dg();var UO=mt();pg.exports=UO("Array","forEach")});var mg=h((Fz,hg)=>{"use strict";var jO=fg();hg.exports=jO});var vg=h(()=>{});var yg=h((jz,gg)=>{"use strict";var BO=nn(),JO=at(),HO=ze(),$O=mg();vg();var Bc=Array.prototype,VO={DOMTokenList:!0,NodeList:!0};gg.exports=function(e){var t=e.forEach;return e===Bc||HO(Bc,e)&&t===Bc.forEach||JO(VO,BO(e))?$O:t}});var bg=h((Bz,_g)=>{_g.exports=yg()});var Ig=h((Jz,wg)=>{"use strict";var zO=TypeError,GO=9007199254740991;wg.exports=function(e){if(e>GO)throw zO("Maximum allowed index exceeded");return e}});var Jc=h((Hz,Sg)=>{"use strict";var WO=Ge(),KO=Gt(),QO=ni();Sg.exports=function(e,t,r){WO?KO.f(e,t,QO(0,r)):e[t]=r}});var Ag=h(()=>{"use strict";var YO=K(),XO=ce(),ZO=ui(),eR=Ae(),tR=Xr(),rR=rn(),xg=Ig(),Eg=Jc(),nR=Mc(),iR=pi(),oR=Ue(),aR=Bo(),kg=oR("isConcatSpreadable"),sR=aR>=51||!XO(function(){var e=[];return e[kg]=!1,e.concat()[0]!==e}),lR=function(e){if(!eR(e))return!1;var t=e[kg];return t!==void 0?!!t:ZO(e)},cR=!sR||!iR("concat");YO({target:"Array",proto:!0,arity:1,forced:cR},{concat:function(t){var r=tR(this),n=nR(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],lR(c))for(l=rR(c),xg(i+l),a=0;a<l;a++,i++)a in c&&Eg(n,i,c[a]);else xg(i+1),Eg(n,i++,c);return n.length=i,n}})});var Cg=h((zz,Tg)=>{"use strict";Ag();var uR=mt();Tg.exports=uR("Array","concat")});var Og=h((Gz,Pg)=>{"use strict";var dR=ze(),pR=Cg(),Hc=Array.prototype;Pg.exports=function(e){var t=e.concat;return e===Hc||dR(Hc,e)&&t===Hc.concat?pR:t}});var Ng=h((Wz,Rg)=>{"use strict";var fR=Og();Rg.exports=fR});var Lg=h((Kz,Dg)=>{Dg.exports=Ng()});var qg=h(()=>{"use strict";var hR=K(),mR=dr().some,vR=fi(),gR=vR("some");hR({target:"Array",proto:!0,forced:!gR},{some:function(t){return mR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Mg=h((Xz,Fg)=>{"use strict";qg();var yR=mt();Fg.exports=yR("Array","some")});var jg=h((Zz,Ug)=>{"use strict";var _R=ze(),bR=Mg(),$c=Array.prototype;Ug.exports=function(e){var t=e.some;return e===$c||_R($c,e)&&t===$c.some?bR:t}});var Jg=h((eG,Bg)=>{"use strict";var wR=jg();Bg.exports=wR});var $g=h((tG,Hg)=>{Hg.exports=Jg()});var zg=h((rG,Vg)=>{"use strict";var hi=ue(),IR=Uo(),SR=Vt(),Go=function(e){return IR.slice(0,e.length)===e};Vg.exports=function(){return Go("Bun/")?"BUN":Go("Cloudflare-Workers")?"CLOUDFLARE":Go("Deno/")?"DENO":Go("Node.js/")?"NODE":hi.Bun&&typeof Bun.version=="string"?"BUN":hi.Deno&&typeof Deno.version=="object"?"DENO":SR(hi.process)==="process"?"NODE":hi.window&&hi.document?"BROWSER":"REST"}()});var mi=h((nG,Gg)=>{"use strict";var xR=ye();Gg.exports=xR([].slice)});var Kg=h((iG,Wg)=>{"use strict";var ER=TypeError;Wg.exports=function(e,t){if(e<t)throw new ER("Not enough arguments");return e}});var Vc=h((oG,Yg)=>{"use strict";var Qg=ue(),kR=cc(),AR=Re(),TR=zg(),CR=Uo(),PR=mi(),OR=Kg(),RR=Qg.Function,NR=/MSIE .\./.test(CR)||TR==="BUN"&&function(){var e=Qg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Yg.exports=function(e,t){var r=t?2:1;return NR?function(n,i){var o=OR(arguments.length,1)>r,a=AR(n)?n:RR(n),s=o?PR(arguments,r):[],l=o?function(){kR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var ey=h(()=>{"use strict";var DR=K(),Zg=ue(),LR=Vc(),Xg=LR(Zg.setInterval,!0);DR({global:!0,bind:!0,forced:Zg.setInterval!==Xg},{setInterval:Xg})});var ny=h(()=>{"use strict";var qR=K(),ry=ue(),FR=Vc(),ty=FR(ry.setTimeout,!0);qR({global:!0,bind:!0,forced:ry.setTimeout!==ty},{setTimeout:ty})});var iy=h(()=>{"use strict";ey();ny()});var ay=h((pG,oy)=>{"use strict";iy();var MR=Ct();oy.exports=MR.setTimeout});var ly=h((fG,sy)=>{sy.exports=ay()});function yi(e,t){he.__h&&he.__h(re,e,gi||t),gi=0;var r=re.__H||(re.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ko(e){return gi=1,yy(_y,e)}function yy(e,t,r){var n=yi(Dr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):_y(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=re,!re.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};re.__f=!0;var o=re.shouldComponentUpdate,a=re.componentWillUpdate;re.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)},re.shouldComponentUpdate=i}return n.__N||n.__}function _i(e,t){var r=yi(Dr++,3);!he.__s&&Wc(r.__H,t)&&(r.__=e,r.u=t,re.__H.__h.push(r))}function on(e,t){var r=yi(Dr++,4);!he.__s&&Wc(r.__H,t)&&(r.__=e,r.u=t,re.__h.push(r))}function bi(e){return gi=5,wi(function(){return{current:e}},[])}function wi(e,t){var r=yi(Dr++,7);return Wc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function an(e,t){return gi=8,wi(function(){return e},t)}function sn(e){var t=re.context[e.__c],r=yi(Dr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(re)),t.props.value):e.__}function UR(){for(var e;e=gy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wo),e.__H.__h.forEach(Gc),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}function jR(e){var t,r=function(){clearTimeout(n),vy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);vy&&(t=requestAnimationFrame(r))}function Wo(e){var t=re,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),re=t}function Gc(e){var t=re;e.__c=e.__(),re=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function _y(e,t){return typeof t=="function"?t(e):t}var Dr,re,zc,cy,gi,gy,he,uy,dy,py,fy,hy,my,vy,Kc=k(()=>{Wr();gi=0,gy=[],he=R,uy=he.__b,dy=he.__r,py=he.diffed,fy=he.__c,hy=he.unmount,my=he.__;he.__b=function(e){re=null,uy&&uy(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),my&&my(e,t)},he.__r=function(e){dy&&dy(e),Dr=0;var t=(re=e.__c).__H;t&&(zc===re?(t.__h=[],re.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wo),t.__h.forEach(Gc),t.__h=[],Dr=0)),zc=re},he.diffed=function(e){py&&py(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gy.push(t)!==1&&cy===he.requestAnimationFrame||((cy=he.requestAnimationFrame)||jR)(UR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),zc=re=null},he.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wo),r.__h=r.__h.filter(function(n){return!n.__||Gc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],he.__e(n,r.__v)}}),fy&&fy(e,t)},he.unmount=function(e){hy&&hy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wo(n)}catch(i){t=i}}),r.__H=void 0,t&&he.__e(t,r.__v))};vy=typeof requestAnimationFrame=="function"});function Cy(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 by(e,t){this.props=e,this.context=t}function Zc(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,Me(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function eu(e){function t(r){var n=Cy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=BR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Py(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=Cy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Py(n,t,r)})),e}function Oy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Oy(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 Qc(){this.__u=0,this.o=null,this.__b=null}function Ry(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Qo(){this.i=null,this.l=null}function tu(e,t,r){return t.__k==null&&(t.textContent=""),lr(e,t),typeof r=="function"&&r(),e?e.__c:null}function KR(){}function QR(){return this.cancelBubble}function YR(){return this.defaultPrevented}var Xc,wy,BR,JR,Iy,Sy,HR,$R,VR,zR,GR,WR,xy,Ny,XR,Ey,ky,Ay,Yo=k(()=>{Wr();Wr();Kc();Kc();Xc=on;(by.prototype=new ot).isPureReactComponent=!0,by.prototype.shouldComponentUpdate=function(e,t){return Yc(this.props,e)||Yc(this.state,t)};wy=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wy&&wy(e)};BR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;JR=R.__e;R.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}JR(e,t,r,n)};Iy=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Iy&&Iy(e)},(Qc.prototype=new ot).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ry(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]=Oy(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)},Qc.prototype.componentWillUnmount=function(){this.o=[]},Qc.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]=Py(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Me(Oe,null,e.fallback);return i&&(i.__u&=-33),[Me(Oe,null,t.__a?null:e.children),i]};Sy=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]}};(Qo.prototype=new ot).__a=function(e){var t=this,r=Ry(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Sy(t,e,n)):i()};r?r(o):o()}},Qo.prototype.render=function(e){this.i=null,this.l=new Map;var t=ei(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},Qo.prototype.componentDidUpdate=Qo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Sy(e,r,t)})};HR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,$R=/^(?: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]/,VR=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zR=/[A-Z0-9]/g,GR=typeof document!="undefined",WR=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ot.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ot.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});xy=R.event;R.event=function(e){return xy&&(e=xy(e)),e.persist=KR,e.isPropagationStopped=QR,e.isDefaultPrevented=YR,e.nativeEvent=e};XR={enumerable:!1,configurable:!0,get:function(){return this.class}},Ey=R.vnode;R.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||GR&&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"||WR(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":VR.test(a)&&(a=l):l=a="oninput":o&&$R.test(a)?a=a.replace(zR,"-$&").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=ei(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ei(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",XR)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=HR,Ey&&Ey(e)};ky=R.__r;R.__r=function(e){ky&&ky(e),Ny=e.__c};Ay=R.diffed;R.diffed=function(e){Ay&&Ay(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),Ny=null}});var nu=h(()=>{"use strict";var eN=K(),ru=ue();eN({global:!0,forced:ru.globalThis!==ru},{globalThis:ru})});var Dy=h(()=>{"use strict";nu()});var qy=h((CG,Ly)=>{"use strict";nu();Ly.exports=ue()});var My=h((PG,Fy)=>{"use strict";var tN=qy();Fy.exports=tN});var jy=h((OG,Uy)=>{"use strict";var rN=My();Uy.exports=rN});var Jy=h((RG,By)=>{"use strict";Dy();var nN=jy();By.exports=nN});var $y=h((NG,Hy)=>{"use strict";Hy.exports=Jy()});var zy=h((DG,Vy)=>{Vy.exports=$y()});var Gy=h(()=>{"use strict";var iN=K(),oN=ui();iN({target:"Array",stat:!0},{isArray:oN})});var Ky=h((FG,Wy)=>{"use strict";Gy();var aN=Ct();Wy.exports=aN.Array.isArray});var Yy=h((MG,Qy)=>{"use strict";var sN=Ky();Qy.exports=sN});var Zy=h((UG,Xy)=>{Xy.exports=Yy()});var t_=h((jG,e_)=>{"use strict";e_.exports=function(){}});var Lr=h((BG,r_)=>{"use strict";r_.exports={}});var iu=h((JG,i_)=>{"use strict";var lN=ue(),cN=Re(),n_=lN.WeakMap;i_.exports=cN(n_)&&/native code/.test(String(n_))});var Xo=h((HG,a_)=>{"use strict";var uN=Ic(),dN=Ho(),o_=uN("keys");a_.exports=function(e){return o_[e]||(o_[e]=dN(e))}});var Ii=h(($G,s_)=>{"use strict";s_.exports={}});var Fr=h((VG,u_)=>{"use strict";var pN=iu(),c_=ue(),fN=Ae(),hN=Nr(),ou=at(),au=oi(),mN=Xo(),vN=Ii(),l_="Object already initialized",su=c_.TypeError,gN=c_.WeakMap,Zo,Si,ea,yN=function(e){return ea(e)?Si(e):Zo(e,{})},_N=function(e){return function(t){var r;if(!fN(t)||(r=Si(t)).type!==e)throw new su("Incompatible receiver, "+e+" required");return r}};pN||au.state?(St=au.state||(au.state=new gN),St.get=St.get,St.has=St.has,St.set=St.set,Zo=function(e,t){if(St.has(e))throw new su(l_);return t.facade=e,St.set(e,t),t},Si=function(e){return St.get(e)||{}},ea=function(e){return St.has(e)}):(qr=mN("state"),vN[qr]=!0,Zo=function(e,t){if(ou(e,qr))throw new su(l_);return t.facade=e,hN(e,qr,t),t},Si=function(e){return ou(e,qr)?e[qr]:{}},ea=function(e){return ou(e,qr)});var St,qr;u_.exports={set:Zo,get:Si,has:ea,enforce:yN,getterFor:_N}});var uu=h((zG,p_)=>{"use strict";var lu=Ge(),bN=at(),d_=Function.prototype,wN=lu&&Object.getOwnPropertyDescriptor,cu=bN(d_,"name"),IN=cu&&(function(){}).name==="something",SN=cu&&(!lu||lu&&wN(d_,"name").configurable);p_.exports={EXISTS:cu,PROPER:IN,CONFIGURABLE:SN}});var du=h((GG,f_)=>{"use strict";var xN=ci(),EN=Math.max,kN=Math.min;f_.exports=function(e,t){var r=xN(e);return r<0?EN(r+t,0):kN(r,t)}});var pu=h((WG,m_)=>{"use strict";var AN=cr(),TN=du(),CN=rn(),h_=function(e){return function(t,r,n){var i=AN(t),o=CN(i);if(o===0)return!e&&-1;var a=TN(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}};m_.exports={includes:h_(!0),indexOf:h_(!1)}});var hu=h((KG,g_)=>{"use strict";var PN=ye(),fu=at(),ON=cr(),RN=pu().indexOf,NN=Ii(),v_=PN([].push);g_.exports=function(e,t){var r=ON(e),n=0,i=[],o;for(o in r)!fu(NN,o)&&fu(r,o)&&v_(i,o);for(;t.length>n;)fu(r,o=t[n++])&&(~RN(i,o)||v_(i,o));return i}});var ta=h((QG,y_)=>{"use strict";y_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var mu=h((YG,__)=>{"use strict";var DN=hu(),LN=ta();__.exports=Object.keys||function(t){return DN(t,LN)}});var w_=h(b_=>{"use strict";var qN=Ge(),FN=Cc(),MN=Gt(),UN=zt(),jN=cr(),BN=mu();b_.f=qN&&!FN?Object.defineProperties:function(t,r){UN(t);for(var n=jN(r),i=BN(r),o=i.length,a=0,s;o>a;)MN.f(t,s=i[a++],n[s]);return t}});var S_=h((ZG,I_)=>{"use strict";var JN=Qr();I_.exports=JN("document","documentElement")});var xi=h((e6,P_)=>{"use strict";var HN=zt(),$N=w_(),x_=ta(),VN=Ii(),zN=S_(),GN=kc(),WN=Xo(),E_=">",k_="<",gu="prototype",yu="script",T_=WN("IE_PROTO"),vu=function(){},C_=function(e){return k_+yu+E_+e+k_+"/"+yu+E_},A_=function(e){e.write(C_("")),e.close();var t=e.parentWindow.Object;return e=null,t},KN=function(){var e=GN("iframe"),t="java"+yu+":",r;return e.style.display="none",zN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(C_("document.F=Object")),r.close(),r.F},ra,na=function(){try{ra=new ActiveXObject("htmlfile")}catch(t){}na=typeof document!="undefined"?document.domain&&ra?A_(ra):KN():A_(ra);for(var e=x_.length;e--;)delete na[gu][x_[e]];return na()};VN[T_]=!0;P_.exports=Object.create||function(t,r){var n;return t!==null?(vu[gu]=HN(t),n=new vu,vu[gu]=null,n[T_]=t):n=na(),r===void 0?n:$N.f(n,r)}});var R_=h((t6,O_)=>{"use strict";var QN=ce();O_.exports=!QN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var bu=h((r6,D_)=>{"use strict";var YN=at(),XN=Re(),ZN=Xr(),eD=Xo(),tD=R_(),N_=eD("IE_PROTO"),_u=Object,rD=_u.prototype;D_.exports=tD?_u.getPrototypeOf:function(e){var t=ZN(e);if(YN(t,N_))return t[N_];var r=t.constructor;return XN(r)&&t instanceof r?r.prototype:t instanceof _u?rD:null}});var ia=h((n6,L_)=>{"use strict";var nD=Nr();L_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:nD(e,t,r),e}});var xu=h((i6,M_)=>{"use strict";var iD=ce(),oD=Re(),aD=Ae(),sD=xi(),q_=bu(),lD=ia(),cD=Ue(),uD=Yr(),Su=cD("iterator"),F_=!1,Wt,wu,Iu;[].keys&&(Iu=[].keys(),"next"in Iu?(wu=q_(q_(Iu)),wu!==Object.prototype&&(Wt=wu)):F_=!0);var dD=!aD(Wt)||iD(function(){var e={};return Wt[Su].call(e)!==e});dD?Wt={}:uD&&(Wt=sD(Wt));oD(Wt[Su])||lD(Wt,Su,function(){return this});M_.exports={IteratorPrototype:Wt,BUGGY_SAFARI_ITERATORS:F_}});var j_=h((o6,U_)=>{"use strict";var pD=Vo(),fD=nn();U_.exports=pD?{}.toString:function(){return"[object "+fD(this)+"]"}});var Ei=h((a6,J_)=>{"use strict";var hD=Vo(),mD=Gt().f,vD=Nr(),gD=at(),yD=j_(),_D=Ue(),B_=_D("toStringTag");J_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(gD(i,B_)||mD(i,B_,{configurable:!0,value:t}),n&&!hD&&vD(i,"toString",yD))}});var $_=h((s6,H_)=>{"use strict";var bD=xu().IteratorPrototype,wD=xi(),ID=ni(),SD=Ei(),xD=Lr(),ED=function(){return this};H_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=wD(bD,{next:ID(+!n,r)}),SD(e,i,!1,!0),xD[i]=ED,e}});var z_=h((l6,V_)=>{"use strict";var kD=ye(),AD=Rr();V_.exports=function(e,t,r){try{return kD(AD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var W_=h((c6,G_)=>{"use strict";var TD=Ae();G_.exports=function(e){return TD(e)||e===null}});var Q_=h((u6,K_)=>{"use strict";var CD=W_(),PD=String,OD=TypeError;K_.exports=function(e){if(CD(e))return e;throw new OD("Can't set "+PD(e)+" as a prototype")}});var X_=h((d6,Y_)=>{"use strict";var RD=z_(),ND=Ae(),DD=Or(),LD=Q_();Y_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=RD(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return DD(i),LD(o),ND(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var sa=h((p6,lb)=>{"use strict";var qD=K(),FD=wt(),oa=Yr(),ab=uu(),MD=Re(),UD=$_(),Z_=bu(),eb=X_(),jD=Ei(),BD=Nr(),Eu=ia(),JD=Ue(),tb=Lr(),sb=xu(),HD=ab.PROPER,$D=ab.CONFIGURABLE,rb=sb.IteratorPrototype,aa=sb.BUGGY_SAFARI_ITERATORS,ki=JD("iterator"),nb="keys",Ai="values",ib="entries",ob=function(){return this};lb.exports=function(e,t,r,n,i,o,a){UD(r,t,n);var s=function(v){if(v===i&&p)return p;if(!aa&&v&&v in d)return d[v];switch(v){case nb:return function(){return new r(this,v)};case Ai:return function(){return new r(this,v)};case ib:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ki]||d["@@iterator"]||i&&d[i],p=!aa&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=Z_(f.call(new e)),m!==Object.prototype&&m.next&&(!oa&&Z_(m)!==rb&&(eb?eb(m,rb):MD(m[ki])||Eu(m,ki,ob)),jD(m,l,!0,!0),oa&&(tb[l]=ob))),HD&&i===Ai&&u&&u.name!==Ai&&(!oa&&$D?BD(d,"name",Ai):(c=!0,p=function(){return FD(u,this)})),i)if(g={values:s(Ai),keys:o?p:s(nb),entries:s(ib)},a)for(_ in g)(aa||c||!(_ in d))&&Eu(d,_,g[_]);else qD({target:t,proto:!0,forced:aa||c},g);return(!oa||a)&&d[ki]!==p&&Eu(d,ki,p,{name:i}),tb[t]=p,g}});var la=h((f6,cb)=>{"use strict";cb.exports=function(e,t){return{value:e,done:t}}});var ua=h((h6,hb)=>{"use strict";var VD=cr(),ku=t_(),ub=Lr(),pb=Fr(),zD=Gt().f,GD=sa(),ca=la(),WD=Yr(),KD=Ge(),fb="Array Iterator",QD=pb.set,YD=pb.getterFor(fb);hb.exports=GD(Array,"Array",function(e,t){QD(this,{type:fb,target:VD(e),index:0,kind:t})},function(){var e=YD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ca(void 0,!0);switch(e.kind){case"keys":return ca(r,!1);case"values":return ca(t[r],!1)}return ca([r,t[r]],!1)},"values");var db=ub.Arguments=ub.Array;ku("keys");ku("values");ku("entries");if(!WD&&KD&&db.name!=="values")try{zD(db,"name",{value:"values"})}catch(e){}});var Au=h(()=>{});var Tu=h((g6,mb)=>{"use strict";var XD=ce();mb.exports=!XD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var da=h((y6,vb)=>{"use strict";var ZD=ia();vb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:ZD(e,n,t[n],r);return e}});var Cu=h(gb=>{"use strict";var eL=hu(),tL=ta(),rL=tL.concat("length","prototype");gb.f=Object.getOwnPropertyNames||function(t){return eL(t,rL)}});var wb=h((b6,bb)=>{"use strict";var nL=Vt(),iL=cr(),yb=Cu().f,oL=mi(),_b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aL=function(e){try{return yb(e)}catch(t){return oL(_b)}};bb.exports.f=function(t){return _b&&nL(t)==="Window"?aL(t):yb(iL(t))}});var Sb=h((w6,Ib)=>{"use strict";var sL=ce();Ib.exports=sL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var kb=h((I6,Eb)=>{"use strict";var lL=ce(),cL=Ae(),uL=Vt(),xb=Sb(),pa=Object.isExtensible,dL=lL(function(){pa(1)});Eb.exports=dL||xb?function(t){return!cL(t)||xb&&uL(t)==="ArrayBuffer"?!1:pa?pa(t):!0}:pa});var Ti=h((S6,Cb)=>{"use strict";var pL=K(),fL=ye(),hL=Ii(),mL=Ae(),Pu=at(),vL=Gt().f,Ab=Cu(),gL=wb(),Ou=kb(),yL=Ho(),_L=Tu(),Tb=!1,Kt=yL("meta"),bL=0,Ru=function(e){vL(e,Kt,{value:{objectID:"O"+bL++,weakData:{}}})},wL=function(e,t){if(!mL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Pu(e,Kt)){if(!Ou(e))return"F";if(!t)return"E";Ru(e)}return e[Kt].objectID},IL=function(e,t){if(!Pu(e,Kt)){if(!Ou(e))return!0;if(!t)return!1;Ru(e)}return e[Kt].weakData},SL=function(e){return _L&&Tb&&Ou(e)&&!Pu(e,Kt)&&Ru(e),e},xL=function(){EL.enable=function(){},Tb=!0;var e=Ab.f,t=fL([].splice),r={};r[Kt]=1,e(r).length&&(Ab.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Kt){t(i,o,1);break}return i},pL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gL.f}))},EL=Cb.exports={enable:xL,fastKey:wL,getWeakData:IL,onFreeze:SL};hL[Kt]=!0});var Ob=h((x6,Pb)=>{"use strict";var kL=Ue(),AL=Lr(),TL=kL("iterator"),CL=Array.prototype;Pb.exports=function(e){return e!==void 0&&(AL.Array===e||CL[TL]===e)}});var Nu=h((E6,Nb)=>{"use strict";var PL=nn(),Rb=Jo(),OL=Pr(),RL=Lr(),NL=Ue(),DL=NL("iterator");Nb.exports=function(e){if(!OL(e))return Rb(e,DL)||Rb(e,"@@iterator")||RL[PL(e)]}});var Lb=h((k6,Db)=>{"use strict";var LL=wt(),qL=Rr(),FL=zt(),ML=ii(),UL=Nu(),jL=TypeError;Db.exports=function(e,t){var r=arguments.length<2?UL(e):t;if(qL(r))return FL(LL(r,e));throw new jL(ML(e)+" is not iterable")}});var fa=h((A6,Fb)=>{"use strict";var BL=wt(),qb=zt(),JL=Jo();Fb.exports=function(e,t,r){var n,i;qb(e);try{if(n=JL(e,"return"),!n){if(t==="throw")throw r;return r}n=BL(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return qb(n),r}});var ma=h((T6,Bb)=>{"use strict";var HL=si(),$L=wt(),VL=zt(),zL=ii(),GL=Ob(),WL=rn(),Mb=ze(),KL=Lb(),QL=Nu(),Ub=fa(),YL=TypeError,ha=function(e,t){this.stopped=e,this.result=t},jb=ha.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=HL(t,n),c,d,u,p,f,m,g,_=function(b){return c&&Ub(c,"normal",b),new ha(!0,b)},v=function(b){return i?(VL(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=QL(e),!d)throw new YL(zL(e)+" is not iterable");if(GL(d)){for(u=0,p=WL(e);p>u;u++)if(f=v(e[u]),f&&Mb(jb,f))return f;return new ha(!1)}c=KL(e,d)}for(m=o?e.next:c.next;!(g=$L(m,c)).done;){try{f=v(g.value)}catch(b){Ub(c,"throw",b)}if(typeof f=="object"&&f&&Mb(jb,f))return f}return new ha(!1)}});var va=h((C6,Jb)=>{"use strict";var XL=ze(),ZL=TypeError;Jb.exports=function(e,t){if(XL(t,e))return e;throw new ZL("Incorrect invocation")}});var Du=h((P6,$b)=>{"use strict";var eq=K(),tq=ue(),rq=Ti(),nq=ce(),iq=Nr(),oq=ma(),aq=va(),sq=Re(),lq=Ae(),cq=Pr(),uq=Ei(),dq=Gt().f,pq=dr().forEach,fq=Ge(),Hb=Fr(),hq=Hb.set,mq=Hb.getterFor;$b.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=tq[e],s=a&&a.prototype,l={},c;if(!fq||!sq(a)||!(i||s.forEach&&!nq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),rq.enable();else{c=t(function(p,f){hq(aq(p,d),{type:e,collection:new a}),cq(f)||oq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=mq(e);pq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&iq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!lq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||dq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return uq(c,e,!1,!0),l[e]=c,eq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Yb=h((O6,Qb)=>{"use strict";var vq=ye(),Vb=da(),ga=Ti().getWeakData,gq=va(),yq=zt(),_q=Pr(),Lu=Ae(),bq=ma(),Gb=dr(),zb=at(),Wb=Fr(),wq=Wb.set,Iq=Wb.getterFor,Sq=Gb.find,xq=Gb.findIndex,Eq=vq([].splice),kq=0,ya=function(e){return e.frozen||(e.frozen=new Kb)},Kb=function(){this.entries=[]},qu=function(e,t){return Sq(e.entries,function(r){return r[0]===t})};Kb.prototype={get:function(e){var t=qu(this,e);if(t)return t[1]},has:function(e){return!!qu(this,e)},set:function(e,t){var r=qu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=xq(this.entries,function(r){return r[0]===e});return~t&&Eq(this.entries,t,1),!!~t}};Qb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){gq(l,o),wq(l,{type:t,id:kq++,frozen:null}),_q(c)||bq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Iq(t),s=function(l,c,d){var u=a(l),p=ga(yq(c),!0);return p===!0?ya(u).set(c,d):p[u.id]=d,l};return Vb(o,{delete:function(l){var c=a(this);if(!Lu(l))return!1;var d=ga(l);return d===!0?ya(c).delete(l):d&&zb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Lu(c))return!1;var u=ga(c);return u===!0?ya(d).has(c):u&&zb(u,d.id)}}),Vb(o,r?{get:function(c){var d=a(this);if(Lu(c)){var u=ga(c);if(u===!0)return ya(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 ow=h(()=>{"use strict";var Aq=Tu(),Xb=ue(),Ia=ye(),Zb=da(),Tq=Ti(),Cq=Du(),ew=Yb(),_a=Ae(),ba=Fr().enforce,Pq=ce(),Oq=iu(),Oi=Object,Rq=Array.isArray,wa=Oi.isExtensible,tw=Oi.isFrozen,Nq=Oi.isSealed,rw=Oi.freeze,Dq=Oi.seal,Lq=!Xb.ActiveXObject&&"ActiveXObject"in Xb,Ci,nw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iw=Cq("WeakMap",nw,ew),ln=iw.prototype,Sa=Ia(ln.set),qq=function(){return Aq&&Pq(function(){var e=rw([]);return Sa(new iw,e,1),!tw(e)})};Oq&&(Lq?(Ci=ew.getConstructor(nw,"WeakMap",!0),Tq.enable(),Fu=Ia(ln.delete),Pi=Ia(ln.has),Mu=Ia(ln.get),Zb(ln,{delete:function(e){if(_a(e)&&!wa(e)){var t=ba(this);return t.frozen||(t.frozen=new Ci),Fu(this,e)||t.frozen.delete(e)}return Fu(this,e)},has:function(t){if(_a(t)&&!wa(t)){var r=ba(this);return r.frozen||(r.frozen=new Ci),Pi(this,t)||r.frozen.has(t)}return Pi(this,t)},get:function(t){if(_a(t)&&!wa(t)){var r=ba(this);return r.frozen||(r.frozen=new Ci),Pi(this,t)?Mu(this,t):r.frozen.get(t)}return Mu(this,t)},set:function(t,r){if(_a(t)&&!wa(t)){var n=ba(this);n.frozen||(n.frozen=new Ci),Pi(this,t)?Sa(this,t,r):n.frozen.set(t,r)}else Sa(this,t,r);return this}})):qq()&&Zb(ln,{set:function(t,r){var n;return Rq(t)&&(tw(t)?n=rw:Nq(t)&&(n=Dq)),Sa(this,t,r),n&&n(t),this}}));var Fu,Pi,Mu});var aw=h(()=>{"use strict";ow()});var lw=h((q6,sw)=>{"use strict";ua();Au();aw();var Fq=Ct();sw.exports=Fq.WeakMap});var uw=h((F6,cw)=>{"use strict";cw.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 Uu=h(()=>{"use strict";ua();var Mq=uw(),Uq=ue(),jq=Ei(),dw=Lr();for(xa in Mq)jq(Uq[xa],xa),dw[xa]=dw.Array;var xa});var fw=h((j6,pw)=>{"use strict";var Bq=lw();Uu();pw.exports=Bq});var mw=h((B6,hw)=>{hw.exports=fw()});var gw=h(()=>{"use strict";var Jq=K(),Hq=ri(),$q=pu().indexOf,Vq=fi(),ju=Hq([].indexOf),vw=!!ju&&1/ju([1],1,-0)<0,zq=vw||!Vq("indexOf");Jq({target:"Array",proto:!0,forced:zq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return vw?ju(this,t,r)||0:$q(this,t,r)}})});var _w=h(($6,yw)=>{"use strict";gw();var Gq=mt();yw.exports=Gq("Array","indexOf")});var ww=h((V6,bw)=>{"use strict";var Wq=ze(),Kq=_w(),Bu=Array.prototype;bw.exports=function(e){var t=e.indexOf;return e===Bu||Wq(Bu,e)&&t===Bu.indexOf?Kq:t}});var Sw=h((z6,Iw)=>{"use strict";var Qq=ww();Iw.exports=Qq});var Ew=h((G6,xw)=>{xw.exports=Sw()});var kw=h(()=>{"use strict";var Yq=K(),Xq=dr().map,Zq=pi(),eF=Zq("map");Yq({target:"Array",proto:!0,forced:!eF},{map:function(t){return Xq(this,t,arguments.length>1?arguments[1]:void 0)}})});var Tw=h((Q6,Aw)=>{"use strict";kw();var tF=mt();Aw.exports=tF("Array","map")});var Pw=h((Y6,Cw)=>{"use strict";var rF=ze(),nF=Tw(),Ju=Array.prototype;Cw.exports=function(e){var t=e.map;return e===Ju||rF(Ju,e)&&t===Ju.map?nF:t}});var Rw=h((X6,Ow)=>{"use strict";var iF=Pw();Ow.exports=iF});var Dw=h((Z6,Nw)=>{Nw.exports=Rw()});var Lw=h(()=>{"use strict";var oF=K(),aF=Ge(),sF=xi();oF({target:"Object",stat:!0,sham:!aF},{create:sF})});var Fw=h((rW,qw)=>{"use strict";Lw();var lF=Ct(),cF=lF.Object;qw.exports=function(t,r){return cF.create(t,r)}});var Uw=h((nW,Mw)=>{"use strict";var uF=Fw();Mw.exports=uF});var Bw=h((iW,jw)=>{jw.exports=Uw()});var Hu=h((oW,Jw)=>{"use strict";var dF=Gt();Jw.exports=function(e,t,r){return dF.f(e,t,r)}});var Vw=h((aW,$w)=>{"use strict";var pF=Qr(),fF=Hu(),hF=Ue(),mF=Ge(),Hw=hF("species");$w.exports=function(e){var t=pF(e);mF&&t&&!t[Hw]&&fF(t,Hw,{configurable:!0,get:function(){return this}})}});var Xw=h((sW,Yw)=>{"use strict";var zw=xi(),vF=Hu(),Gw=da(),gF=si(),yF=va(),_F=Pr(),bF=ma(),wF=sa(),Ea=la(),IF=Vw(),Ri=Ge(),Ww=Ti().fastKey,Qw=Fr(),Kw=Qw.set,$u=Qw.getterFor;Yw.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){yF(c,o),Kw(c,{type:t,index:zw(null),first:null,last:null,size:0}),Ri||(c.size=0),_F(d)||bF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=$u(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=Ww(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ri?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=Ww(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return Gw(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=zw(null),Ri?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Ri?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=gF(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),Gw(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)}}),Ri&&vF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=$u(t),o=$u(n);wF(e,t,function(a,s){Kw(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,Ea(void 0,!0)):Ea(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),IF(t)}}});var Zw=h(()=>{"use strict";var SF=Du(),xF=Xw();SF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},xF)});var e0=h(()=>{"use strict";Zw()});var pr=h((pW,t0)=>{"use strict";var EF=ii(),kF=TypeError;t0.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 kF(EF(e)+" is not a set")}});var n0=h((fW,r0)=>{"use strict";r0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var fr=h((hW,o0)=>{"use strict";var AF=Qr(),Vu=n0(),i0=AF("Set"),TF=i0.prototype;o0.exports={Set:i0,add:Vu("add",1),has:Vu("has",1),remove:Vu("delete",1),proto:TF}});var hr=h((mW,a0)=>{"use strict";var CF=wt();a0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=CF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var cn=h((vW,s0)=>{"use strict";var PF=hr();s0.exports=function(e,t,r){return r?PF(e.keys(),t,!0):e.forEach(t)}});var ka=h((gW,c0)=>{"use strict";var l0=fr(),OF=cn(),RF=l0.Set,NF=l0.add;c0.exports=function(e){var t=new RF;return OF(e,function(r){NF(t,r)}),t}});var un=h((yW,u0)=>{"use strict";u0.exports=function(e){return e.size}});var p0=h((_W,d0)=>{"use strict";d0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var mr=h((bW,y0)=>{"use strict";var f0=Rr(),v0=zt(),h0=wt(),DF=ci(),LF=p0(),m0="Invalid size",qF=RangeError,FF=TypeError,MF=Math.max,g0=function(e,t){this.set=e,this.size=MF(t,0),this.has=f0(e.has),this.keys=f0(e.keys)};g0.prototype={getIterator:function(){return LF(v0(h0(this.keys,this.set)))},includes:function(e){return h0(this.has,this.set,e)}};y0.exports=function(e){v0(e);var t=+e.size;if(t!==t)throw new FF(m0);var r=DF(t);if(r<0)throw new qF(m0);return new g0(e,r)}});var I0=h((wW,w0)=>{"use strict";var UF=pr(),b0=fr(),jF=ka(),BF=un(),JF=mr(),HF=cn(),$F=hr(),VF=b0.has,_0=b0.remove;w0.exports=function(t){var r=UF(this),n=JF(t),i=jF(r);return BF(r)<=n.size?HF(r,function(o){n.includes(o)&&_0(i,o)}):$F(n.getIterator(),function(o){VF(r,o)&&_0(i,o)}),i}});var vr=h((IW,S0)=>{"use strict";S0.exports=function(){return!1}});var x0=h(()=>{"use strict";var zF=K(),GF=I0(),WF=vr(),KF=!WF("difference",function(e){return e.size===0});zF({target:"Set",proto:!0,real:!0,forced:KF},{difference:GF})});var A0=h((EW,k0)=>{"use strict";var QF=pr(),zu=fr(),YF=un(),XF=mr(),ZF=cn(),eM=hr(),tM=zu.Set,E0=zu.add,rM=zu.has;k0.exports=function(t){var r=QF(this),n=XF(t),i=new tM;return YF(r)>n.size?eM(n.getIterator(),function(o){rM(r,o)&&E0(i,o)}):ZF(r,function(o){n.includes(o)&&E0(i,o)}),i}});var T0=h(()=>{"use strict";var nM=K(),iM=ce(),oM=A0(),aM=vr(),sM=!aM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||iM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});nM({target:"Set",proto:!0,real:!0,forced:sM},{intersection:oM})});var P0=h((TW,C0)=>{"use strict";var lM=pr(),cM=fr().has,uM=un(),dM=mr(),pM=cn(),fM=hr(),hM=fa();C0.exports=function(t){var r=lM(this),n=dM(t);if(uM(r)<=n.size)return pM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return fM(i,function(o){if(cM(r,o))return hM(i,"normal",!1)})!==!1}});var O0=h(()=>{"use strict";var mM=K(),vM=P0(),gM=vr(),yM=!gM("isDisjointFrom",function(e){return!e});mM({target:"Set",proto:!0,real:!0,forced:yM},{isDisjointFrom:vM})});var N0=h((OW,R0)=>{"use strict";var _M=pr(),bM=un(),wM=cn(),IM=mr();R0.exports=function(t){var r=_M(this),n=IM(t);return bM(r)>n.size?!1:wM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var D0=h(()=>{"use strict";var SM=K(),xM=N0(),EM=vr(),kM=!EM("isSubsetOf",function(e){return e});SM({target:"Set",proto:!0,real:!0,forced:kM},{isSubsetOf:xM})});var q0=h((DW,L0)=>{"use strict";var AM=pr(),TM=fr().has,CM=un(),PM=mr(),OM=hr(),RM=fa();L0.exports=function(t){var r=AM(this),n=PM(t);if(CM(r)<n.size)return!1;var i=n.getIterator();return OM(i,function(o){if(!TM(r,o))return RM(i,"normal",!1)})!==!1}});var F0=h(()=>{"use strict";var NM=K(),DM=q0(),LM=vr(),qM=!LM("isSupersetOf",function(e){return!e});NM({target:"Set",proto:!0,real:!0,forced:qM},{isSupersetOf:DM})});var U0=h((FW,M0)=>{"use strict";var FM=pr(),Gu=fr(),MM=ka(),UM=mr(),jM=hr(),BM=Gu.add,JM=Gu.has,HM=Gu.remove;M0.exports=function(t){var r=FM(this),n=UM(t).getIterator(),i=MM(r);return jM(n,function(o){JM(r,o)?HM(i,o):BM(i,o)}),i}});var j0=h(()=>{"use strict";var $M=K(),VM=U0(),zM=vr();$M({target:"Set",proto:!0,real:!0,forced:!zM("symmetricDifference")},{symmetricDifference:VM})});var J0=h((jW,B0)=>{"use strict";var GM=pr(),WM=fr().add,KM=ka(),QM=mr(),YM=hr();B0.exports=function(t){var r=GM(this),n=QM(t).getIterator(),i=KM(r);return YM(n,function(o){WM(i,o)}),i}});var H0=h(()=>{"use strict";var XM=K(),ZM=J0(),eU=vr();XM({target:"Set",proto:!0,real:!0,forced:!eU("union")},{union:ZM})});var Ni=h((HW,$0)=>{"use strict";var tU=nn(),rU=String;$0.exports=function(e){if(tU(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return rU(e)}});var W0=h(($W,G0)=>{"use strict";var Wu=ye(),nU=ci(),iU=Ni(),oU=Or(),aU=Wu("".charAt),V0=Wu("".charCodeAt),sU=Wu("".slice),z0=function(e){return function(t,r){var n=iU(oU(t)),i=nU(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=V0(n,i),a<55296||a>56319||i+1===o||(s=V0(n,i+1))<56320||s>57343?e?aU(n,i):a:e?sU(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};G0.exports={codeAt:z0(!1),charAt:z0(!0)}});var X0=h(()=>{"use strict";var lU=W0().charAt,cU=Ni(),Q0=Fr(),uU=sa(),K0=la(),Y0="String Iterator",dU=Q0.set,pU=Q0.getterFor(Y0);uU(String,"String",function(e){dU(this,{type:Y0,string:cU(e),index:0})},function(){var t=pU(this),r=t.string,n=t.index,i;return n>=r.length?K0(void 0,!0):(i=lU(r,n),t.index+=i.length,K0(i,!1))})});var eI=h((GW,Z0)=>{"use strict";ua();Au();e0();x0();T0();O0();D0();F0();j0();H0();X0();var fU=Ct();Z0.exports=fU.Set});var rI=h((WW,tI)=>{"use strict";var hU=eI();Uu();tI.exports=hU});var iI=h((KW,nI)=>{nI.exports=rI()});var aI=h(oI=>{"use strict";oI.f=Object.getOwnPropertySymbols});var uI=h((YW,cI)=>{"use strict";var sI=Ge(),mU=ye(),vU=wt(),gU=ce(),Ku=mu(),yU=aI(),_U=dc(),bU=Xr(),wU=Mo(),dn=Object.assign,lI=Object.defineProperty,IU=mU([].concat);cI.exports=!dn||gU(function(){if(sI&&dn({b:1},dn(lI({},"a",{enumerable:!0,get:function(){lI(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}),dn({},e)[r]!==7||Ku(dn({},t)).join("")!==n})?function(t,r){for(var n=bU(t),i=arguments.length,o=1,a=yU.f,s=_U.f;i>o;)for(var l=wU(arguments[o++]),c=a?IU(Ku(l),a(l)):Ku(l),d=c.length,u=0,p;d>u;)p=c[u++],(!sI||vU(s,l,p))&&(n[p]=l[p]);return n}:dn});var pI=h(()=>{"use strict";var SU=K(),dI=uI();SU({target:"Object",stat:!0,arity:2,forced:Object.assign!==dI},{assign:dI})});var hI=h((e8,fI)=>{"use strict";pI();var xU=Ct();fI.exports=xU.Object.assign});var vI=h((t8,mI)=>{"use strict";var EU=hI();mI.exports=EU});var yI=h((r8,gI)=>{gI.exports=vI()});var Qu=h((n8,_I)=>{"use strict";_I.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 II=h((i8,wI)=>{"use strict";var kU=ye(),AU=Or(),TU=Ni(),Xu=Qu(),bI=kU("".replace),CU=RegExp("^["+Xu+"]+"),PU=RegExp("(^|[^"+Xu+"])["+Xu+"]+$"),Yu=function(e){return function(t){var r=TU(AU(t));return e&1&&(r=bI(r,CU,"")),e&2&&(r=bI(r,PU,"$1")),r}};wI.exports={start:Yu(1),end:Yu(2),trim:Yu(3)}});var kI=h((o8,EI)=>{"use strict";var OU=uu().PROPER,RU=ce(),SI=Qu(),xI="\u200B\x85\u180E";EI.exports=function(e){return RU(function(){return!!SI[e]()||xI[e]()!==xI||OU&&SI[e].name!==e})}});var AI=h(()=>{"use strict";var NU=K(),DU=II().trim,LU=kI();NU({target:"String",proto:!0,forced:LU("trim")},{trim:function(){return DU(this)}})});var CI=h((l8,TI)=>{"use strict";AI();var qU=mt();TI.exports=qU("String","trim")});var OI=h((c8,PI)=>{"use strict";var FU=ze(),MU=CI(),Zu=String.prototype;PI.exports=function(e){var t=e.trim;return typeof e=="string"||e===Zu||FU(Zu,e)&&t===Zu.trim?MU:t}});var NI=h((u8,RI)=>{"use strict";var UU=OI();RI.exports=UU});var LI=h((d8,DI)=>{DI.exports=NI()});var MI=h(()=>{"use strict";var jU=K(),qI=ui(),BU=Fc(),JU=Ae(),FI=du(),HU=rn(),$U=cr(),VU=Jc(),zU=Ue(),GU=pi(),WU=mi(),KU=GU("slice"),QU=zU("species"),ed=Array,YU=Math.max;jU({target:"Array",proto:!0,forced:!KU},{slice:function(t,r){var n=$U(this),i=HU(n),o=FI(t,i),a=FI(r===void 0?i:r,i),s,l,c;if(qI(n)&&(s=n.constructor,BU(s)&&(s===ed||qI(s.prototype))?s=void 0:JU(s)&&(s=s[QU],s===null&&(s=void 0)),s===ed||s===void 0))return WU(n,o,a);for(l=new(s===void 0?ed:s)(YU(a-o,0)),c=0;o<a;o++,c++)o in n&&VU(l,c,n[o]);return l.length=c,l}})});var jI=h((h8,UI)=>{"use strict";MI();var XU=mt();UI.exports=XU("Array","slice")});var JI=h((m8,BI)=>{"use strict";var ZU=ze(),ej=jI(),td=Array.prototype;BI.exports=function(e){var t=e.slice;return e===td||ZU(td,e)&&t===td.slice?ej:t}});var $I=h((v8,HI)=>{"use strict";var tj=JI();HI.exports=tj});var zI=h((g8,VI)=>{VI.exports=$I()});var rd=k(()=>{});var WI=h((_8,GI)=>{"use strict";var rj=Ae(),nj=Vt(),ij=Ue(),oj=ij("match");GI.exports=function(e){var t;return rj(e)&&((t=e[oj])!==void 0?!!t:nj(e)==="RegExp")}});var QI=h((b8,KI)=>{"use strict";var aj=WI(),sj=TypeError;KI.exports=function(e){if(aj(e))throw new sj("The method doesn't accept regular expressions");return e}});var XI=h((w8,YI)=>{"use strict";var lj=Ue(),cj=lj("match");YI.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[cj]=!1,"/./"[e](t)}catch(n){}}return!1}});var tS=h(()=>{"use strict";var uj=K(),dj=ri(),pj=Tc().f,fj=Dc(),ZI=Ni(),hj=QI(),mj=Or(),vj=XI(),gj=Yr(),yj=dj("".slice),_j=Math.min,eS=vj("startsWith"),bj=!gj&&!eS&&!!function(){var e=pj(String.prototype,"startsWith");return e&&!e.writable}();uj({target:"String",proto:!0,forced:!bj&&!eS},{startsWith:function(t){var r=ZI(mj(this));hj(t);var n=fj(_j(arguments.length>1?arguments[1]:void 0,r.length)),i=ZI(t);return yj(r,n,n+i.length)===i}})});var nS=h((x8,rS)=>{"use strict";tS();var wj=mt();rS.exports=wj("String","startsWith")});var oS=h((E8,iS)=>{"use strict";var Ij=ze(),Sj=nS(),nd=String.prototype;iS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===nd||Ij(nd,e)&&t===nd.startsWith?Sj:t}});var sS=h((k8,aS)=>{"use strict";var xj=oS();aS.exports=xj});var cS=h((A8,lS)=>{lS.exports=sS()});var hS=h((T8,fS)=>{"use strict";var dS=ye(),Ej=Rr(),kj=Ae(),Aj=at(),uS=mi(),Tj=Kr(),pS=Function,Cj=dS([].concat),Pj=dS([].join),id={},Oj=function(e,t,r){if(!Aj(id,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";id[t]=pS("C,a","return new C("+Pj(n,",")+")")}return id[t](e,r)};fS.exports=Tj?pS.bind:function(t){var r=Ej(this),n=r.prototype,i=uS(arguments,1),o=function(){var s=Cj(i,uS(arguments));return this instanceof o?Oj(r,s.length,s):r.apply(t,s)};return kj(n)&&(o.prototype=n),o}});var vS=h(()=>{"use strict";var Rj=K(),mS=hS();Rj({target:"Function",proto:!0,forced:Function.bind!==mS},{bind:mS})});var yS=h((O8,gS)=>{"use strict";vS();var Nj=mt();gS.exports=Nj("Function","bind")});var bS=h((R8,_S)=>{"use strict";var Dj=ze(),Lj=yS(),od=Function.prototype;_S.exports=function(e){var t=e.bind;return e===od||Dj(od,e)&&t===od.bind?Lj:t}});var IS=h((N8,wS)=>{"use strict";var qj=bS();wS.exports=qj});var xS=h((D8,SS)=>{SS.exports=IS()});function za(e,t){_e.__h&&_e.__h(se,e,ji||t),ji=0;var r=se.__H||(se.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function qt(e){return ji=1,Fj(px,e)}function Fj(e,t,r){var n=za(vn++,2);if(n.t=e,!n.__c&&(n.__=[px(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=se,!se.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,kd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,sx.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};se.__f=!0;var o=se.shouldComponentUpdate,a=se.componentWillUpdate;se.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)},se.shouldComponentUpdate=i}return n.__N||n.__}function Ur(e,t){var r=za(vn++,3);!_e.__s&&dx(r.__H,t)&&(r.__=e,r.u=t,se.__H.__h.push(r))}function qi(e){return ji=5,Od(function(){return{current:e}},[])}function Od(e,t){var r=za(vn++,7);return dx(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function vt(e,t){return ji=8,Od(function(){return e},t)}function Mj(e){var t=se.context[e.__c],r=za(vn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(se)),t.props.value):e.__}function Uj(){for(var e;e=ux.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Oa),(0,Te.default)(r=e.__H.__h).call(r,hd),e.__H.__h=[]}catch(n){e.__H.__h=[],_e.__e(n,e.__v)}}function jj(e){var t,r=function(){clearTimeout(n),RS&&cancelAnimationFrame(t),(0,Lt.default)(e)},n=(0,Lt.default)(r,100);RS&&(t=requestAnimationFrame(r))}function Oa(e){var t=se,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),se=t}function hd(e){var t=se;e.__c=e.__(),se=t}function dx(e,t){return!e||e.length!==t.length||(0,Ua.default)(t).call(t,function(r,n){return r!==e[n]})}function px(e,t){return typeof t=="function"?t(e):t}function Bj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function md(){throw new Error("setTimeout has not been defined")}function vd(){throw new Error("clearTimeout has not been defined")}function hx(e){if(Pt===Lt.default)return(0,Lt.default)(e,0);if((Pt===md||!Pt)&&Lt.default)return Pt=Lt.default,(0,Lt.default)(e,0);try{return Pt(e,0)}catch(t){try{return Pt.call(null,e,0)}catch(r){return Pt.call(this,e,0)}}}function Jj(e){if(Ot===clearTimeout)return clearTimeout(e);if((Ot===vd||!Ot)&&clearTimeout)return Ot=clearTimeout,clearTimeout(e);try{return Ot(e)}catch(t){try{return Ot.call(null,e)}catch(r){return Ot.call(this,e)}}}function Hj(){!fn||!gr||(fn=!1,gr.length?Qt=(0,Va.default)(gr).call(gr,Qt):Ra=-1,Qt.length&&mx())}function mx(){if(!fn){var e=hx(Hj);fn=!0;for(var t=Qt.length;t;){for(gr=Qt,Qt=[];++Ra<t;)gr&&gr[Ra].run();Ra=-1,t=Qt.length}gr=null,fn=!1,Jj(e)}}function vx(e,t){this.fun=e,this.array=t}function Xt(){}function zj(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 Gj(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 Yj(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function _x(e){return(0,Cd.default)(e).call(e)}function Xj(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function gd(e,t){return(0,Yt.default)(e).call(e,t)}function Ne(e,t){return e.charCodeAt(t)|0}function Bi(e,t,r){return(0,Pd.default)(e).call(e,t,r)}function Rt(e){return e.length}function Ld(e){return e.length}function Aa(e,t){return t.push(e),e}function Zj(e,t){return(0,Ui.default)(e).call(e,t).join("")}function Ka(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Wa,column:gn,length:a,return:""}}function Di(e,t){return Qj(Ka("",null,null,"",null,null,0),e,{length:-e.length},t)}function e2(){return be}function t2(){return be=Xe>0?Ne(_n,--Xe):0,gn--,be===10&&(gn=1,Wa--),be}function st(){return be=Xe<bx?Ne(_n,Xe++):0,gn++,be===10&&(gn=1,Wa++),be}function Ft(){return Ne(_n,Xe)}function Na(){return Xe}function Gi(e,t){return Bi(_n,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 wx(e){return Wa=gn=1,bx=Rt(_n=e),Xe=0,[]}function Ix(e){return _n="",e}function Da(e){return _x(Gi(Xe-1,yd(e===91?e+2:e===40?e+1:e)))}function r2(e){for(;(be=Ft())&&be<33;)st();return Ji(e)>2||Ji(be)>3?"":" "}function n2(e,t){for(;--t&&st()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Gi(e,Na()+(t<6&&Ft()==32&&st()==32))}function yd(e){for(;st();)switch(be){case e:return Xe;case 34:case 39:e!==34&&e!==39&&yd(be);break;case 40:e===41&&yd(e);break;case 92:st();break}return Xe}function i2(e,t){for(;st()&&e+be!==57&&!(e+be===84&&Ft()===47););return"/*"+Gi(t,Xe-1)+"*"+Ga(e===47?e:st())}function o2(e){for(;!Ji(Ft());)st();return Gi(e,Xe)}function a2(e){return Ix(La("",null,null,null,[""],e=wx(e),0,[0],e))}function La(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=st()){case 40:if(m!=108&&Ne(x,u-1)==58){gd(x+=V(Da(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Da(b);break;case 9:case 10:case 13:case 32:x+=r2(m);break;case 92:x+=n2(Na()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Aa(s2(i2(st(),Na()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Rt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&Rt(x)-u&&Aa(f>32?DS(x+";",n,r,u-1):DS(V(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Aa(O=NS(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)La(x,t,O,O,A,o,u,s,P);else switch(p===99&&Ne(x,3)===110?100:p){case 100:case 109:case 115:La(e,O,O,n&&Aa(NS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:La(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Rt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&t2()==125)continue}switch(x+=Ga(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Rt(x)-1)*v,v=1;break;case 64:Ft()===45&&(x+=Da(st())),p=Ft(),d=u=Rt(I=x+=o2(Na())),b++;break;case 45:m===45&&Rt(x)==2&&(g=0)}}return o}function NS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ld(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Bi(e,u+1,u=Kj(g=a[m])),I=e;v<f;++v)(I=_x(g>0?p[v]+" "+b:V(b,/&\f/g,p[v])))&&(l[_++]=I);return Ka(e,t,r,i===0?Nd:s,l,c,d)}function s2(e,t,r){return Ka(e,t,r,Rd,Ga(e2()),Bi(e,2,-2),0)}function DS(e,t,r,n){return Ka(e,t,r,Dd,Bi(e,0,n),Bi(e,n+1,-1),n)}function hn(e,t){for(var r="",n=Ld(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l2(e,t,r,n){switch(e.type){case Wj:case Dd:return e.return=e.return||e.value;case Rd:return"";case yx:return e.return=e.value+"{"+hn(e.children,n)+"}";case Nd:e.value=e.props.join(",")}return Rt(r=hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function c2(e){var t=Ld(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 u2(e){return function(t){t.root||(t=t.return)&&e(t)}}function xx(e,t){switch(Yj(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+je+e+e;case 6828:case 4268:return j+e+je+e+e;case 6165:return j+e+je+"flex-"+e+e;case 5187:return j+e+V(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+V(e,"shrink","negative")+e;case 5292:return j+e+je+V(e,"basis","preferred-size")+e;case 6060:return j+"box-"+V(e,"-grow","")+j+e+je+V(e,"grow","positive")+e;case 4554:return j+V(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return V(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(Rt(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ba+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gd(e,"stretch")?xx(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Rt(e)-3-(~gd(e,"!important")&&10))){case 107:return V(e,":",":"+j)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Ne(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function kx(){if(FS)return Ta.exports;FS=1;let e=kx();return Ta.exports={default:e},Ta.exports.default=e,Ta.exports}function Hi(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function x2(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 k2(e){var t=(0,lx.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function $i(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 Nt={name:i.name,styles:i.styles,next:Nt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Nt={name:a.name,styles:a.styles,next:Nt},a=a.next;var s=o.styles+";";return s}return C2(e,t,r)}case"function":{if(e!==void 0){var l=Nt,c=r(e);return Nt=l,$i(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function C2(e,t,r){var n="";if((0,Mi.default)(r))for(var i=0;i<r.length;i++)n+=$i(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]+"}":MS(s)&&(n+=sd(o)+":"+US(o,s)+";")}else if((0,Mi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)MS(a[l])&&(n+=sd(o)+":"+US(o,a[l])+";");else{var c=$i(e,t,a);switch(o){case"animation":case"animationName":{n+=sd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function yr(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="";Nt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=$i(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=$i(r,t,e[s]),n){var l=o;i+=l[s]}jS.lastIndex=0;for(var c="",d;(d=jS.exec(i))!==null;)c+="-"+d[1];var u=x2(i)+c;return{name:u,styles:i,next:Nt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yr(t)}function j2(e,t,r){var n=[],i=Hi(e,n,r);return n.length<2?r:i+t(n)}function y(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--H2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function Wi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=qt(e());return Ur(()=>{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 HB(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 Fx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=HB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function $B(e){let t=()=>Fx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function GB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Qe(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=zB(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Me("img",M(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",M(T({},a),{ref:c,className:i,children:r}))}function WB(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?Me(i.type,M(T({},i.props),{style:M(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?Me(e.type,M(T({},e.props),{style:M(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 ZB(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 XS(e,t,r){return Ya.call(t,"css")?y(Ud,Ox(e,t),r):y(e,t,r)}function oJ(e,t,r){return Ya.call(t,"css")?y(Ud,Ox(e,t),r):y(e,t,r)}function Sd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?y(Oe,{children:t[s]},o):null}return y(Oe,{children:i},o)})})}function lJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=qt(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function dJ({children:e,style:t}){return y("div",{style:`${cJ.styles} ${t}`,children:[e,y("svg",{style:`${uJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function EJ(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function Qx(e){return(0,Cd.default)(e).call(e)}function kJ(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function xd(e,t){return(0,Yt.default)(e).call(e,t)}function De(e,t){return e.charCodeAt(t)|0}function Vi(e,t,r){return(0,Pd.default)(e).call(e,t,r)}function Dt(e){return e.length}function Hd(e){return e.length}function Pa(e,t){return t.push(e),e}function AJ(e,t){return(0,Ui.default)(e).call(e,t).join("")}function rs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ts,column:yn,length:a,return:""}}function Li(e,t){return xJ(rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function TJ(){return we}function CJ(){return we=Ze>0?De(In,--Ze):0,yn--,we===10&&(yn=1,ts--),we}function lt(){return we=Ze<Yx?De(In,Ze++):0,yn++,we===10&&(yn=1,ts++),we}function Mt(){return De(In,Ze)}function qa(){return Ze}function Qi(e,t){return Vi(In,e,t)}function zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xx(e){return ts=yn=1,Yx=Dt(In=e),Ze=0,[]}function Zx(e){return In="",e}function Fa(e){return Qx(Qi(Ze-1,Ed(e===91?e+2:e===40?e+1:e)))}function PJ(e){for(;(we=Mt())&&we<33;)lt();return zi(e)>2||zi(we)>3?"":" "}function OJ(e,t){for(;--t&&lt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Qi(e,qa()+(t<6&&Mt()==32&&lt()==32))}function Ed(e){for(;lt();)switch(we){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Ed(we);break;case 40:e===41&&Ed(e);break;case 92:lt();break}return Ze}function RJ(e,t){for(;lt()&&e+we!==57&&!(e+we===84&&Mt()===47););return"/*"+Qi(t,Ze-1)+"*"+es(e===47?e:lt())}function NJ(e){for(;!zi(Mt());)lt();return Qi(e,Ze)}function DJ(e){return Zx(Ma("",null,null,null,[""],e=Xx(e),0,[0],e))}function Ma(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=lt()){case 40:if(m!=108&&De(x,u-1)==58){xd(x+=J(Fa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Fa(b);break;case 9:case 10:case 13:case 32:x+=PJ(m);break;case 92:x+=OJ(qa()-1,7);continue;case 47:switch(Mt()){case 42:case 47:Pa(LJ(RJ(lt(),qa()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Dt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=J(x,/\f/g,"")),f>0&&Dt(x)-u&&Pa(f>32?ex(x+";",n,r,u-1):ex(J(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Pa(O=ZS(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)Ma(x,t,O,O,A,o,u,s,P);else switch(p===99&&De(x,3)===110?100:p){case 100:case 108:case 109:case 115:Ma(e,O,O,n&&Pa(ZS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Ma(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+Dt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&CJ()==125)continue}switch(x+=es(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Dt(x)-1)*v,v=1;break;case 64:Mt()===45&&(x+=Fa(lt())),p=Mt(),d=u=Dt(I=x+=NJ(qa())),b++;break;case 45:m===45&&Dt(x)==2&&(g=0)}}return o}function ZS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Hd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Vi(e,u+1,u=SJ(g=a[m])),I=e;v<f;++v)(I=Qx(g>0?p[v]+" "+b:J(b,/&\f/g,p[v])))&&(l[_++]=I);return rs(e,t,r,i===0?Bd:s,l,c,d)}function LJ(e,t,r){return rs(e,t,r,Wx,es(TJ()),Vi(e,2,-2),0)}function ex(e,t,r,n){return rs(e,t,r,Jd,Vi(e,0,n),Vi(e,n+1,-1),n)}function mn(e,t){for(var r="",n=Hd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function qJ(e,t,r,n){switch(e.type){case IJ:if(e.children.length)break;case wJ:case Jd:return e.return=e.return||e.value;case Wx:return"";case Kx:return e.return=e.value+"{"+mn(e.children,n)+"}";case Bd:e.value=e.props.join(",")}return Dt(r=mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function FJ(e){var t=Hd(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function MJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function eE(e,t){switch(EJ(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+$a+e+Be+e+e;case 6828:case 4268:return B+e+Be+e+e;case 6165:return B+e+Be+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return B+e+Be+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Be+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Be+J(e,"shrink","negative")+e;case 5292:return B+e+Be+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Be+J(e,"grow","positive")+e;case 4554:return B+J(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return J(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(Dt(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+$a+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xd(e,"stretch")?eE(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Dt(e)-3-(~xd(e,"!important")&&10))){case 107:return J(e,":",":"+B)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(De(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Be+e+e}return e}function rx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function pd(e,t,r){var n=[],i=Hi(e,n,r);return n.length<2?r:i+t(n)}function ox(e){if(e==="top"){let t=0;tE.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${nx}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${nx}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+ix)})}else if(e==="center"){let t=0;rE.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+ix)})}}function Yi(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Fi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),lr(y(t5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Fi.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(lr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Fi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var kd,sx,Te,Va,Ua,Lt,ja,Mi,Ad,Yt,Ui,lx,cx,Td,Cd,Pd,U8,fd,vn,se,ad,ES,ji,ux,_e,kS,AS,TS,CS,PS,OS,RS,fx,me,Pt,Ot,Qt,fn,gr,Ra,$j,Ce,Vj,gx,je,Ba,j,Rd,Nd,Dd,Wj,yx,Kj,Ga,Qj,Wa,gn,bx,Xe,be,_n,d2,p2,f2,LS,h2,m2,v2,g2,y2,Sx,_2,qS,b2,w2,I2,Ex,Ta,FS,S2,qd,Qa,E2,A2,T2,Ax,MS,sd,US,jS,Nt,P2,Tx,Cx,BS,Ya,Fd,Px,Md,Xa,O2,R2,N2,D2,L2,_d,bd,Ox,q2,Ud,F2,JS,M2,U2,B2,J2,ld,HS,cd,ud,H2,dd,$2,V2,z2,G2,W2,K2,$S,Q2,Y2,VS,X2,Z2,zS,eB,tB,GS,rB,nB,iB,oB,aB,sB,lB,cB,WS,uB,dB,pB,fB,hB,mB,vB,gB,KS,yB,_B,bB,wB,IB,SB,xB,EB,kB,AB,TB,CB,PB,OB,RB,NB,DB,LB,qB,FB,MB,UB,jB,BB,Rx,Nx,Dx,wd,JB,Lx,qx,Ja,Fi,QS,VB,Za,zB,Mx,Ux,jx,KB,QB,YB,Id,XB,Bx,Ha,Ki,bn,YS,Mr,Jx,pn,eJ,tJ,rJ,nJ,iJ,Ca,Hx,jd,de,aJ,sJ,cJ,uJ,xt,pJ,fJ,$x,Vx,zx,Gx,wn,hJ,mJ,vJ,gJ,yJ,_J,bJ,Be,$a,B,Wx,Bd,Jd,wJ,Kx,IJ,SJ,es,xJ,ts,yn,Yx,Ze,we,In,UJ,jJ,BJ,tx,JJ,HJ,$J,VJ,zJ,GJ,WJ,KJ,QJ,YJ,XJ,ZJ,nx,ix,tE,rE,jr,ax,e5,t5,j8,Zt=k(()=>{"use strict";Wr();kd=ie(Yv(),1),sx=ie(sg(),1),Te=ie(bg(),1),Va=ie(Lg(),1),Ua=ie($g(),1),Lt=ie(ly(),1);Yo();Yo();ja=ie(zy(),1),Mi=ie(Zy(),1),Ad=ie(mw(),1),Yt=ie(Ew(),1),Ui=ie(Dw(),1),lx=ie(Bw(),1),cx=ie(iI(),1),Td=ie(yI(),1),Cd=ie(LI(),1),Pd=ie(zI(),1);rd();rd();U8=ie(cS(),1),fd=ie(xS(),1),ji=0,ux=[],_e=R,kS=_e.__b,AS=_e.__r,TS=_e.diffed,CS=_e.__c,PS=_e.unmount,OS=_e.__;_e.__b=function(e){se=null,kS&&kS(e)},_e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),OS&&OS(e,t)},_e.__r=function(e){var t,r,n;AS&&AS(e),vn=0;var i=(se=e.__c).__H;i&&(ad===se?(i.__h=[],se.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Oa),(0,Te.default)(n=i.__h).call(n,hd),i.__h=[],vn=0)),ad=se},_e.diffed=function(e){var t;TS&&TS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(ux.push(r)!==1&&ES===_e.requestAnimationFrame||((ES=_e.requestAnimationFrame)||jj)(Uj)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),ad=se=null},_e.__c=function(e,t){(0,Ua.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Oa),r.__h=(0,kd.default)(i=r.__h).call(i,function(o){return!o.__||hd(o)})}catch(o){(0,Ua.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(o,r.__v)}}),CS&&CS(e,t)},_e.unmount=function(e){var t;PS&&PS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Oa(i)}catch(o){r=o}}),n.__H=void 0,r&&_e.__e(r,n.__v))};RS=typeof requestAnimationFrame=="function";fx={exports:{}},me=fx.exports={};(function(){try{typeof Lt.default=="function"?Pt=Lt.default:Pt=md}catch(e){Pt=md}try{typeof clearTimeout=="function"?Ot=clearTimeout:Ot=vd}catch(e){Ot=vd}})();Qt=[],fn=!1,Ra=-1;me.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];Qt.push(new vx(e,t)),Qt.length===1&&!fn&&hx(mx)};vx.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};me.on=Xt;me.addListener=Xt;me.once=Xt;me.off=Xt;me.removeListener=Xt;me.removeAllListeners=Xt;me.emit=Xt;me.prependListener=Xt;me.prependOnceListener=Xt;me.listeners=function(e){return[]};me.binding=function(e){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(e){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};$j=fx.exports,Ce=Bj($j),Vj=ja.default||void 0||self;gx=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Gj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=zj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),je="-ms-",Ba="-moz-",j="-webkit-",Rd="comm",Nd="rule",Dd="decl",Wj="@import",yx="@keyframes",Kj=Math.abs,Ga=String.fromCharCode,Qj=Td.default;Wa=1,gn=1,bx=0,Xe=0,be=0,_n="";d2=function(e,t,r){for(var n=0,i=0;n=i,i=Ft(),n===38&&i===12&&(t[r]=1),!Ji(i);)st();return Gi(e,Xe)},p2=function(e,t){var r=-1,n=44;do switch(Ji(n)){case 0:n===38&&Ft()===12&&(t[r]=1),e[r]+=d2(Xe-1,t,r);break;case 2:e[r]+=Da(n);break;case 4:if(n===44){e[++r]=Ft()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ga(n)}while(n=st());return e},f2=function(e,t){return Ix(p2(wx(e),t))},LS=new Ad.default,h2=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&&!LS.get(r))&&!n){LS.set(e,!0);for(var i=[],o=f2(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]}}},m2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},v2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",g2=function(e){var t;return e.type==="comm"&&(0,Yt.default)(t=e.children).call(t,v2)>-1},y2=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(g2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Sx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},_2=function(e,t){for(var r=e-1;r>=0;r--)if(!Sx(t[r]))return!0;return!1},qS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},b2=function(e,t,r){Sx(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."),qS(e)):_2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qS(e)))};w2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dd:e.return=xx(e.value,e.length);break;case yx:return hn([Di(e,{value:V(e.value,"@","@"+j)})],n);case Nd:if(e.length)return Zj(e.props,function(i){switch(Xj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([Di(e,{props:[V(i,/:(read-\w+)/,":"+Ba+"$1")]})],n);case"::placeholder":return hn([Di(e,{props:[V(i,/:(plac\w+)/,":"+j+"input-$1")]}),Di(e,{props:[V(i,/:(plac\w+)/,":"+Ba+"$1")]}),Di(e,{props:[V(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},I2=[w2],Ex=function(e){var t=e.key;if(Ce.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
21
21
  If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Yt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||I2;if(Ce.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[h2,m2];Ce.env.NODE_ENV!=="production"&&l.push(y2({get compat(){return f.compat}}),b2);{var c,d=[l2,Ce.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Rd&&c.insert(m.value+"{}"))}:u2(function(m){c.insert(m)})],u=c2((0,Va.default)(l).call(l,n,d)),p=function(m){return hn(a2(m),u)};s=function(m,g,_,v){c=_,Ce.env.NODE_ENV!=="production"&&(0,Ui.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,Ui.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new gx({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},Ta={exports:{}};kx();S2=!0;qd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||S2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Qa=function(e,t,r){qd(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)}};E2={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};A2=/[A-Z]|^ms/g,T2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ax=function(e){return e.charCodeAt(1)===45},MS=function(e){return e!=null&&typeof e!="boolean"},sd=k2(function(e){return Ax(e)?e:e.replace(A2,"-$&").toLowerCase()}),US=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(T2,function(r,n,i){return Nt={name:n,styles:i,next:Nt},n})}return E2[e]!==1&&!Ax(e)&&typeof t=="number"&&t!==0?t+"px":t};jS=/label:\s*([^\s;{]+)\s*(;|$)/g;P2=function(e){return e()},Tx=Xc?Xc:!1,Cx=Tx||P2,BS=Tx||on,Ya={}.hasOwnProperty,Fd=Cr(typeof HTMLElement<"u"?Ex({key:"css"}):null);Ce.env.NODE_ENV!=="production"&&(Fd.displayName="EmotionCacheContext");Px=Fd.Provider,Md=function(e){return eu(function(t,r){var n=sn(Fd);return e(t,n,r)})},Xa=Cr({});Ce.env.NODE_ENV!=="production"&&(Xa.displayName="EmotionThemeContext");O2=function(e){var t=e.split(".");return t[t.length-1]},R2=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return O2(t[1])},N2=new cx.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),D2=function(e){return e.replace(/\$/g,"-")},L2=function(e){if(e)for(var t=e.split(`
22
22
  `),r=0;r<t.length;r++){var n=R2(t[r]);if(n){if(N2.has(n))break;if(/^[A-Z]/.test(n))return D2(n)}}},_d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ox=function(e,t){var r,n;if(Ce.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Yt.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)Ya.call(t,o)&&(i[o]=t[o]);if(i[_d]=e,Ce.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Yt.default)(n=t.css.name).call(n,"-")===-1)){var a=L2(new Error().stack);a&&(i[bd]=a)}return i},q2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return qd(t,r,n),Cx(function(){return Qa(t,r,n)}),null},Ud=Md(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[_d],a=[i],s="";typeof e.className=="string"?s=Hi(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=yr(a,void 0,sn(Xa));if(Ce.env.NODE_ENV!=="production"&&(0,Yt.default)(n=l.name).call(n,"-")===-1){var c=e[bd];c&&(l=yr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Ya.call(e,u)&&u!=="css"&&u!==_d&&(Ce.env.NODE_ENV==="production"||u!==bd)&&(d[u]=e[u]);return d.ref=r,d.className=s,Me(Oe,null,Me(q2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Me(o,d))});Ce.env.NODE_ENV!=="production"&&(Ud.displayName="EmotionCssPropInternal");F2={version:"11.10.5"},JS=!1,M2=Md(function(e,t){Ce.env.NODE_ENV!=="production"&&!JS&&(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?"),JS=!0);var r=e.styles,n=yr([r],void 0,sn(Xa)),i=bi();return BS(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]),BS(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Qa(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});Ce.env.NODE_ENV!=="production"&&(M2.displayName="EmotionGlobal");U2=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,Mi.default)(o))a=e(o);else{Ce.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};B2=function(e){var t=e.cache,r=e.serializedArr;return Cx(function(){for(var n=0;n<r.length;n++)Qa(t,r[n],!1)}),null},J2=Md(function(e,t){var r=!1,n=[],i=function(){if(r&&Ce.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=yr(c,t.registered);return n.push(u),qd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ce.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 j2(t.registered,i,U2(c))},a={css:i,cx:o,theme:sn(Xa)},s=e.children(a);return r=!0,Me(Oe,null,Me(B2,{cache:t,serializedArr:n}),s)});Ce.env.NODE_ENV!=="production"&&(J2.displayName="EmotionClassNames");Ce.env.NODE_ENV!=="production"&&(ld=!0,HS=typeof jest<"u"||typeof vi<"u",ld&&!HS&&(cd=typeof ja.default<"u"?ja.default:ld?window:Vj,ud="__EMOTION_REACT_"+F2.version.split(".")[0]+"__",cd[ud]&&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."),cd[ud]=!0));H2=0;dd={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},$2=N`
23
23
  width: 100%;
@@ -486,7 +486,7 @@ If multiple caches share the same key they might "fight" for each other's style
486
486
  transform: translateX(-50%);
487
487
  z-index: 2;
488
488
  pointer-events: none;
489
- `;St=M(T({},de),{header:N`
489
+ `;xt=M(T({},de),{header:N`
490
490
  display: flex;
491
491
  justify-content: flex-end;
492
492
  align-items: center;
@@ -540,7 +540,7 @@ If multiple caches share the same key they might "fight" for each other's style
540
540
  border-top: 8px solid #4f396d;
541
541
  z-index: 2;
542
542
  }
543
- `}),pJ={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},fJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=bn(),l=pJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${St.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(lJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:St.header.styles,children:y("button",{style:`${St.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(jd,{})})}),y("div",{style:St.introduct.styles,children:[a?y("span",{style:St.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:St.introductTitle.styles,children:y(Sd,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:Ha,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${St.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(dJ,{children:y(Sd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(Oe,{children:[y("img",{src:Ha,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${St.confirmButton.styles} ${St.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${St.cancelButton.styles} ${St.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},$x=e=>{let t=Za({title:"",content:y(aJ,{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},Vx=e=>{let t=Za({title:"",content:y(sJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},zx=e=>{let t=Za({title:"",content:y(fJ,{rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},Gx=new Map,wn=(e,t)=>{Gx.set(e,t)};wn(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});wn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Ha;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});hJ=/^\{slot-i18n-(.+?)\}/,mJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=bn(),i=n(e,t);return y("span",{children:i||r})};wn(hJ,(e,t)=>{var n;let r=e[1];return r?y(mJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});vJ=/^\{slot-i18ntran-(.+?)\}/,gJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=bn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(Sd,{children:o||n,values:T(T({},t),a)})},yJ={coin:e=>y(Oe,{children:[y("img",{src:Ha,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};wn(vJ,(e,t)=>{var n,i;let r=e[1];return r?y(gJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:yJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});_J="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";wn(/^\{slot-success\}/,(e,t)=>y("img",{src:_J,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));bJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";wn(/^\{slot-error\}/,(e,t)=>y("img",{src:bJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));Be="-ms-",$a="-moz-",B="-webkit-",Wx="comm",Bd="rule",Jd="decl",wJ="@import",Kx="@keyframes",IJ="@layer",SJ=Math.abs,es=String.fromCharCode,xJ=Td.default;ts=1,yn=1,Yx=0,Ze=0,we=0,In="";UJ=function(e,t,r){for(var n=0,i=0;n=i,i=Mt(),n===38&&i===12&&(t[r]=1),!zi(i);)lt();return Qi(e,Ze)},jJ=function(e,t){var r=-1,n=44;do switch(zi(n)){case 0:n===38&&Mt()===12&&(t[r]=1),e[r]+=UJ(Ze-1,t,r);break;case 2:e[r]+=Fa(n);break;case 4:if(n===44){e[++r]=Mt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=es(n)}while(n=lt());return e},BJ=function(e,t){return Zx(jJ(Xx(e),t))},tx=new Ad.default,JJ=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&&!tx.get(r))&&!n){tx.set(e,!0);for(var i=[],o=BJ(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]}}},HJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};$J=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jd:e.return=eE(e.value,e.length);break;case Kx:return mn([Li(e,{value:J(e.value,"@","@"+B)})],n);case Bd:if(e.length)return AJ(e.props,function(i){switch(kJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([Li(e,{props:[J(i,/:(read-\w+)/,":"+$a+"$1")]})],n);case"::placeholder":return mn([Li(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Li(e,{props:[J(i,/:(plac\w+)/,":"+$a+"$1")]}),Li(e,{props:[J(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},VJ=[$J],zJ=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Yt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||VJ,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[JJ,HJ];{var c,d=[qJ,MJ(function(m){c.insert(m)})],u=FJ((0,Va.default)(l).call(l,n,d)),p=function(m){return mn(DJ(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new gx({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};GJ=function(e){var t=zJ(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=yr(s,t.registered,void 0);return Qa(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=yr(s,t.registered),d="animation-"+c.name;return rx(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=yr(s,t.registered);rx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return pd(t.registered,r,WJ(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,fd.default)(Hi).call(Hi,null,t.registered),merge:(0,fd.default)(pd).call(pd,null,t.registered,r)}},WJ=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,Mi.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},KJ=GJ({key:"css"}),QJ=KJ.css,YJ=(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 Gx.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=QJ`
543
+ `}),pJ={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},fJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=bn(),l=pJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${xt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(lJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:xt.header.styles,children:y("button",{style:`${xt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(jd,{})})}),y("div",{style:xt.introduct.styles,children:[a?y("span",{style:xt.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:xt.introductTitle.styles,children:y(Sd,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:Ha,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${xt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(dJ,{children:y(Sd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(Oe,{children:[y("img",{src:Ha,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${xt.confirmButton.styles} ${xt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${xt.cancelButton.styles} ${xt.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},$x=e=>{let t=Za({title:"",content:y(aJ,{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},Vx=e=>{let t=Za({title:"",content:y(sJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},zx=e=>{let t=Za({title:"",content:y(fJ,{rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},Gx=new Map,wn=(e,t)=>{Gx.set(e,t)};wn(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});wn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Ha;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});hJ=/^\{slot-i18n-(.+?)\}/,mJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=bn(),i=n(e,t);return y("span",{children:i||r})};wn(hJ,(e,t)=>{var n;let r=e[1];return r?y(mJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});vJ=/^\{slot-i18ntran-(.+?)\}/,gJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=bn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(Sd,{children:o||n,values:T(T({},t),a)})},yJ={coin:e=>y(Oe,{children:[y("img",{src:Ha,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};wn(vJ,(e,t)=>{var n,i;let r=e[1];return r?y(gJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:yJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});_J="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";wn(/^\{slot-success\}/,(e,t)=>y("img",{src:_J,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));bJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";wn(/^\{slot-error\}/,(e,t)=>y("img",{src:bJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));Be="-ms-",$a="-moz-",B="-webkit-",Wx="comm",Bd="rule",Jd="decl",wJ="@import",Kx="@keyframes",IJ="@layer",SJ=Math.abs,es=String.fromCharCode,xJ=Td.default;ts=1,yn=1,Yx=0,Ze=0,we=0,In="";UJ=function(e,t,r){for(var n=0,i=0;n=i,i=Mt(),n===38&&i===12&&(t[r]=1),!zi(i);)lt();return Qi(e,Ze)},jJ=function(e,t){var r=-1,n=44;do switch(zi(n)){case 0:n===38&&Mt()===12&&(t[r]=1),e[r]+=UJ(Ze-1,t,r);break;case 2:e[r]+=Fa(n);break;case 4:if(n===44){e[++r]=Mt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=es(n)}while(n=lt());return e},BJ=function(e,t){return Zx(jJ(Xx(e),t))},tx=new Ad.default,JJ=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&&!tx.get(r))&&!n){tx.set(e,!0);for(var i=[],o=BJ(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]}}},HJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};$J=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jd:e.return=eE(e.value,e.length);break;case Kx:return mn([Li(e,{value:J(e.value,"@","@"+B)})],n);case Bd:if(e.length)return AJ(e.props,function(i){switch(kJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([Li(e,{props:[J(i,/:(read-\w+)/,":"+$a+"$1")]})],n);case"::placeholder":return mn([Li(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Li(e,{props:[J(i,/:(plac\w+)/,":"+$a+"$1")]}),Li(e,{props:[J(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},VJ=[$J],zJ=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Yt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||VJ,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[JJ,HJ];{var c,d=[qJ,MJ(function(m){c.insert(m)})],u=FJ((0,Va.default)(l).call(l,n,d)),p=function(m){return mn(DJ(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new gx({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};GJ=function(e){var t=zJ(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=yr(s,t.registered,void 0);return Qa(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=yr(s,t.registered),d="animation-"+c.name;return rx(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=yr(s,t.registered);rx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return pd(t.registered,r,WJ(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,fd.default)(Hi).call(Hi,null,t.registered),merge:(0,fd.default)(pd).call(pd,null,t.registered,r)}},WJ=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,Mi.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},KJ=GJ({key:"css"}),QJ=KJ.css,YJ=(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 Gx.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=QJ`
544
544
  display: 'flex',
545
545
  alignItems: 'flex-start',
546
546
  gap: '4px',
@@ -602,9 +602,9 @@ If multiple caches share the same key they might "fight" for each other's style
602
602
  transform: rotate(360deg);
603
603
  }
604
604
  }
605
- `,t5=()=>y("div",{style:ax.container,children:[y("style",{children:e5}),y("div",{style:ax.spinner})]});j8=Yi()});function nE(){return w(this,null,function*(){if($d)return $d;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 Z(t);return $d=r,r})}function iE(){return w(this,null,function*(){let e=new Et;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Vd)return e.resolve(!0),e.promise;let t=yield nE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Vd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};Q("RecommendedGuide",T({eventType:pe.View},o));let a=Bx({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Vd=!1,s.type){case"quit":Q("RecommendedGuide",{eventType:pe.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":Q("RecommendedGuide",T({eventType:pe.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;r5(c),Q("GameItem",{eventType:pe.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:Q("RecommendedGuide",T({eventType:pe.Hide},o)),e.resolve(!0);break}}});return e.promise})}var $d,r5,Vd,oE=k(()=>{"use strict";K();xe();D();Zt();ht();Tt();$d=null;nE();r5=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})},Vd=!1});function i5(e){let t=T(T({},n5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:I,iframeTransition:A}=p();ne=document.createElement("div"),ne.id="jolibox-modal-overlay",ne.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;`,z=document.createElement("div"),z.id="jolibox-modal-container",z.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${I};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let x=document.createElement("div");if(x.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",gt=document.createElement("iframe"),gt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,gt.src=r,gt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),gt.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},x.appendChild(gt),x.appendChild(P),z.appendChild(x),i){let C=document.createElement("div");C.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;",C.innerHTML="\u2715",C.onclick=v,z.appendChild(C)}ne.appendChild(z),document.body.appendChild(ne),ne.addEventListener("click",function(C){C.target===ne&&v()}),o&&_()}function g(){!ne||!z||u||(ne.style.visibility="visible",a?requestAnimationFrame(()=>{ne&&(ne.style.opacity="1"),z&&(z.style.transform="translateY(0)"),u=!0}):(ne&&(ne.style.opacity="1"),z&&(z.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!z)return;let b=P=>{c=P.touches[0].clientY},I=P=>{if(!u)return;d=P.touches[0].clientY;let O=d-c;O>0&&(z&&(z.style.transition="none",z.style.transform=`translateY(${O}px)`),P.preventDefault())},A=()=>{!u||!z||(z.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():z.style.transform="translateY(0)")};z.addEventListener("touchstart",b),z.addEventListener("touchmove",I),z.addEventListener("touchend",A)}function v(){!ne||!z||!u||(a?(z.style.transform="translateY(100%)",ne.style.opacity="0"):ne.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ne&&(ne.remove(),ne=null,z=null,gt=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function aE(){return window.joliboxUI=M(T({},window.joliboxUI),{createIframeModal:i5}),()=>{window.joliboxUI=void 0,ne&&ne.parentNode&&ne.parentNode.removeChild(ne),z&&z.parentNode&&z.parentNode.removeChild(z),gt&&gt.parentNode&&gt.parentNode.removeChild(gt),ne=null,z=null,gt=null}}var n5,ne,z,gt,sE=k(()=>{"use strict";xe();K();D();n5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ne=null,z=null,gt=null});var cE={};of(cE,{config:()=>m5});function a5(){Ro.on("isAdShowing",e=>{os=e,zn(os)&&U("updateContainerConfigSync",{displayCapsuleButton:!os,webviewId:S.webviewId})})}function s5(){Ee.on("onInterceptSystemExit",({intercept:e})=>{lE=e})}function l5(){Ee.on("onInterceptBackPress",({intercept:e})=>{o5=e}),Ye("onBeforeBackPress",({uuid:e})=>{var t,r;Ee.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function c5(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Q("onDocumentReady",{start_timestamp:ss,timestamp:Date.now()})})}function u5(){Ye("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function d5(e){S.mpType==="game"&&Ht.start(e)}function p5(){Ye("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Q("joliboxServiceReady",{start_timestamp:ss,timestamp:Date.now()}),d5(t),Lx(()=>S.language)}),Ye("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function f5(){let e=()=>{Q("onBeforeExit",{timestamp:Date.now()}),ns==null||ns(),is==null||is(),Ht.close(Date.now()-ss)},t=()=>os||lE;pt.onDoExit(()=>w(this,null,function*(){return t()?!0:zn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):as!=null&&as.canShowRecommended&&(yield iE())?!0:(e(),!1)})),pt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function h5(){return w(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield Z(e);t&&(as=t)})}function m5(){ss=Date.now(),p5(),a5(),s5(),l5(),f5(),c5(),u5(),h5(),is=aE(),ns=xh()}var ns,is,ss,os,as,lE,o5,uE=k(()=>{"use strict";xe();K();D();Tt();Eh();Xl();oE();ht();Zt();sE();os=!1,as=null,lE=!1,o5=!1;pt.onReady(()=>{})});function dE(e){let t=jl.config[e];return t||(t={},jl.config[e]=t),(r,n)=>{if(t[r]){kt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var pE=k(()=>{"use strict";D()});function zd(e){fE=e}function ls(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ls(t)):Object.keys(e).reduce((t,r)=>(t[r]=ls(e[r]),t),{})}function er(e){return typeof e=="number"}function Gd(e){let t=Wd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Wd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var fE,Ie,cs,us,ds,ps,Sn,fs,hs,ms,vs,gs,ys,_s,bs,ws,Is,Ss,xs,Kd=k(()=>{"use strict";fE=!1;Ie=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(fE)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 ${Gd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ls(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ls(this._default)}optional(){return this._optional=!0,this}};cs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:er(t)?er(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):er(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):er(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}},us=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ds=class extends Ie{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(er(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(er(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}},ps=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Sn=class extends Ie{validate(t){return!0}},fs=class extends Ie{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},hs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ms=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},vs=class extends Ie{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 ${Gd(t)}`)}return!0}},gs=class extends Ie{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(er(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(er(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(er(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}},ys=class extends Ie{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Wd(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}},_s=class extends Ie{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Wd(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}},bs=class extends Ie{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Gd(this.value),actual:r}):!0}},ws=class extends Ie{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(`
605
+ `,t5=()=>y("div",{style:ax.container,children:[y("style",{children:e5}),y("div",{style:ax.spinner})]});j8=Yi()});function nE(){return w(this,null,function*(){if($d)return $d;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 Z(t);return $d=r,r})}function iE(){return w(this,null,function*(){let e=new kt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Vd)return e.resolve(!0),e.promise;let t=yield nE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Vd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};z("RecommendedGuide",T({eventType:pe.View},o));let a=Bx({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Vd=!1,s.type){case"quit":z("RecommendedGuide",{eventType:pe.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":z("RecommendedGuide",T({eventType:pe.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;r5(c),z("GameItem",{eventType:pe.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:z("RecommendedGuide",T({eventType:pe.Hide},o)),e.resolve(!0);break}}});return e.promise})}var $d,r5,Vd,oE=k(()=>{"use strict";Q();xe();D();Zt();ht();bt();$d=null;nE();r5=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})},Vd=!1});function i5(e){let t=T(T({},n5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:I,iframeTransition:A}=p();ne=document.createElement("div"),ne.id="jolibox-modal-overlay",ne.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;`,G=document.createElement("div"),G.id="jolibox-modal-container",G.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${I};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let x=document.createElement("div");if(x.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",gt=document.createElement("iframe"),gt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,gt.src=r,gt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),gt.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},x.appendChild(gt),x.appendChild(P),G.appendChild(x),i){let C=document.createElement("div");C.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;",C.innerHTML="\u2715",C.onclick=v,G.appendChild(C)}ne.appendChild(G),document.body.appendChild(ne),ne.addEventListener("click",function(C){C.target===ne&&v()}),o&&_()}function g(){!ne||!G||u||(ne.style.visibility="visible",a?requestAnimationFrame(()=>{ne&&(ne.style.opacity="1"),G&&(G.style.transform="translateY(0)"),u=!0}):(ne&&(ne.style.opacity="1"),G&&(G.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!G)return;let b=P=>{c=P.touches[0].clientY},I=P=>{if(!u)return;d=P.touches[0].clientY;let O=d-c;O>0&&(G&&(G.style.transition="none",G.style.transform=`translateY(${O}px)`),P.preventDefault())},A=()=>{!u||!G||(G.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():G.style.transform="translateY(0)")};G.addEventListener("touchstart",b),G.addEventListener("touchmove",I),G.addEventListener("touchend",A)}function v(){!ne||!G||!u||(a?(G.style.transform="translateY(100%)",ne.style.opacity="0"):ne.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ne&&(ne.remove(),ne=null,G=null,gt=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function aE(){return window.joliboxUI=M(T({},window.joliboxUI),{createIframeModal:i5}),()=>{window.joliboxUI=void 0,ne&&ne.parentNode&&ne.parentNode.removeChild(ne),G&&G.parentNode&&G.parentNode.removeChild(G),gt&&gt.parentNode&&gt.parentNode.removeChild(gt),ne=null,G=null,gt=null}}var n5,ne,G,gt,sE=k(()=>{"use strict";xe();Q();D();n5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ne=null,G=null,gt=null});var cE={};of(cE,{config:()=>m5});function a5(){Ro.on("isAdShowing",e=>{os=e,zn(os)&&U("updateContainerConfigSync",{displayCapsuleButton:!os,webviewId:S.webviewId})})}function s5(){Ee.on("onInterceptSystemExit",({intercept:e})=>{lE=e})}function l5(){Ee.on("onInterceptBackPress",({intercept:e})=>{o5=e}),Ye("onBeforeBackPress",({uuid:e})=>{var t,r;Ee.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function c5(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),z("onDocumentReady",{start_timestamp:ss,timestamp:Date.now()})})}function u5(){Ye("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function d5(e){S.mpType==="game"&&Ht.start(e)}function p5(){Ye("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),z("joliboxServiceReady",{start_timestamp:ss,timestamp:Date.now()}),d5(t),Lx(()=>S.language)}),Ye("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function f5(){let e=()=>{z("onBeforeExit",{timestamp:Date.now()}),ns==null||ns(),is==null||is(),Ht.close(Date.now()-ss)},t=()=>os||lE;pt.onDoExit(()=>w(this,null,function*(){return t()?!0:zn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):as!=null&&as.canShowRecommended&&(yield iE())?!0:(e(),!1)})),pt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function h5(){return w(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield Z(e);t&&(as=t)})}function m5(){ss=Date.now(),p5(),a5(),s5(),l5(),f5(),c5(),u5(),h5(),is=aE(),ns=xh()}var ns,is,ss,os,as,lE,o5,uE=k(()=>{"use strict";xe();Q();D();bt();Eh();Xl();oE();ht();Zt();sE();os=!1,as=null,lE=!1,o5=!1;pt.onReady(()=>{})});function dE(e){let t=jl.config[e];return t||(t={},jl.config[e]=t),(r,n)=>{if(t[r]){At.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var pE=k(()=>{"use strict";D()});function zd(e){fE=e}function ls(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ls(t)):Object.keys(e).reduce((t,r)=>(t[r]=ls(e[r]),t),{})}function er(e){return typeof e=="number"}function Gd(e){let t=Wd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Wd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var fE,Ie,cs,us,ds,ps,Sn,fs,hs,ms,vs,gs,ys,_s,bs,ws,Is,Ss,xs,Kd=k(()=>{"use strict";fE=!1;Ie=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(fE)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 ${Gd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ls(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ls(this._default)}optional(){return this._optional=!0,this}};cs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:er(t)?er(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):er(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):er(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}},us=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ds=class extends Ie{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(er(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(er(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}},ps=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Sn=class extends Ie{validate(t){return!0}},fs=class extends Ie{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},hs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ms=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},vs=class extends Ie{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 ${Gd(t)}`)}return!0}},gs=class extends Ie{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(er(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(er(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(er(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}},ys=class extends Ie{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Wd(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}},_s=class extends Ie{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Wd(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}},bs=class extends Ie{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Gd(this.value),actual:r}):!0}},ws=class extends Ie{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
606
606
  or `);this.errors.push(o)}return n}},Is=class extends Ie{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}},Ss=class extends Ie{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},xs=class extends Ie{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 Qd(e,t,r="param"){if(e.errors=[],e.path=r,zd(!0),!e.validate(t)){let n=e.errors.join(`
607
- `);throw e.errors.length=0,zd(!1),new TypeError(n)}}var E,Yd=k(()=>{"use strict";Kd();Kd();E={object(e){return new _s(e)},array(e){return new gs(e)},tuple(...e){return new Is(...e)},literal(e){return new bs(e)},or(...e){return new ws(...e)},symbol(){return new ps},record(e){return new ys(e)},function(){return new ms},boolean(){return new us},string(){return new ds},number(){return new cs},undefined(){return new fs},null(){return new hs},unknown(){return new Sn},any(){return new Sn},as(){return new Sn},arraybuffer(){return new Ss},enum(...e){return new vs(...e)},typedarray(e){return new xs(e)}}});var Es,hE,mE=k(()=>{"use strict";D();ft();Yd();zr();Es=1,hE=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Es};Es+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Qd(i.paramsSchema,o,"params")}catch(b){throw Wl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new Kn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",M(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=Lf(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{Qd(i.paramsSchema,a,"params")}catch(b){throw Wl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new Kn(A,b)),u}finally{let _=Date.now()-s;e("apiInvoked",M(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Le,G,F,vE,yt=k(()=>{"use strict";pE();Tt();mE();Yd();xe();K();({createAPI:Le,createSyncAPI:G}=hE(Q)),F=dE("native"),{canIUseNative:vE}=If(()=>S.sdkInfo.nativeSDKVersionCode)});var gE,g5,y5,_5,b5,yE=k(()=>{"use strict";D();yt();xe();K();gE=te(),g5="env",y5="getSystemInfoSync",_5=G(y5,{implement:()=>{var r;let e=U("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),b5=G(g5,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});gE.registerCommand("API.getSystemInfoSync",_5);gE.registerCommand("API.env",b5);F("env",{version:"1.0.0"});F("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var _E=h(Xd=>{"use strict";D();yt();ft();xe();Tt();K();var w5="exitGame",I5="onReady",S5="onJoliboxShow",x5="onJoliboxHide",ks=te(),As=Ao(ke),E5=Le(w5,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>w(Xd,null,function*(){As(e).call(Xd),zn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Tf("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield ge("exitAppAsync")})}),k5=G(S5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ye("onJoliboxEnterForeground",()=>{t.call(this),Yn.emit("visible",!0)})}}),A5=G(x5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ye("onJoliboxEnterBackground",()=>{t.call(this),Yn.emit("visible",!1)})}}),T5=G(I5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});ks.registerCommand("LifecycleSDK.exit",E5);ks.registerCommand("LifecycleSDK.onReady",T5);ks.registerCommand("LifecycleSDK.onJoliboxShow",k5);ks.registerCommand("LifecycleSDK.onJoliboxHide",A5);F("lifeCycle.exit",{version:"1.0.0"});F("lifeCycle.onReady",{version:"1.0.0"});F("lifeCycle.onJoliboxShow",{version:"1.0.0"});F("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function bE(e){let t={};if(!kr(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 wE(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 IE(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function SE(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!kr(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 xE=k(()=>{"use strict";D()});var C5,P5,Zd,ep,EE,O5,R5,N5,kE=k(()=>{"use strict";zr();Ql();yt();xE();D();ft();K();C5=15,P5=Po("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Zd=0,ep=[],EE=Ao(ke),O5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},R5=e=>{let t=new Et,r=()=>{};return G("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object().optional(),data:E.object().optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=EE(i.fail);try{if(Zd+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=bE((s=i.headers)!=null?s:{}),_=wE(i.method),v=IE(i.timeout),b=SE(i.url,_,d),I=EE(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=P5(b,A);{let{response:O}=yield P,{code:x,data:C,message:X}=O;if(C&&typeof C=="object"&&"status"in C&&C.status!==200)throw sr({code:C.status||-1,msg:`request:fail status ${C.status}`});t.resolve({code:x!=null?x:"SUCCESS",data:C,message:X!=null?X:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:C})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Zd-=1,(c=ep.shift())==null||c()}});return Zd>=C5?(r=()=>{O5(ep,a=>a===o)},ep.push(o)):o(),t.promise}})(e),{abort(){t.reject(sr({code:-1,msg:"request:fail abort"})),r()}}},N5=te();N5.registerCommand("HttpSDK.request",R5);F("request",{version:"1.0.0"})});function AE(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),M5.includes(t)?t:""}function TE(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 CE(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 Ts,D5,L5,q5,F5,mK,vK,M5,tp,PE,rp=k(()=>{"use strict";yt();xe();D();ht();K();Ts=te(),D5=Le("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let{response:t}=yield Z(`/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 ge("getLocalStorageAsync",{key:e}),s=TE(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}}})}});Ts.registerCommand("StorageSDK.getItem",D5);F("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});L5=Le("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return w(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Z(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=AE(t),l=CE(t,s);return yield ge("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Ts.registerCommand("StorageSDK.setItem",L5);F("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});q5=Le("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let t=S.mpId,{response:r}=yield Z(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ge("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Ts.registerCommand("StorageSDK.removeItem",q5);F("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});F5=Le("clearStorage",{implement(){return w(this,null,function*(){let e=S.mpId,{response:t}=yield Z(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ge("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Ts.registerCommand("StorageSDK.clear",F5);F("storage.clear",{version:"1.0.0"});mK=Le("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ge("getStorageInfoAsync");return e})}});F("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});vK=G("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),M5=["string","number","boolean","object",""];tp=Le("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ge("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:TE(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),PE=Le("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return w(this,null,function*(){try{let r=AE(t),n=CE(t,r);return yield ge("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 U5,j5,B5,np,OE=k(()=>{"use strict";D();xe();yt();U5=G("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),U("showKeyboardSync",M(T({},e),{defaultValue:r,maxLength:t}))}});F("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"}});j5=G("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){U("updateKeyboardSync",e)}});F("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});B5=G("hideKeyboard",{implement(){U("hideKeyboardSync")}});F("keyboard.hideKeyboard",{version:"1.0.0"});np=te();np.registerCommand("KeyboardSDK.showKeyboard",U5);np.registerCommand("KeyboardSDK.updateKeyboard",j5);np.registerCommand("KeyboardSDK.hideKeyboard",B5)});var RE=h(Cs=>{"use strict";D();yt();Tt();var ip=te(),J5=Le("levelFinished",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),duration:E.number().optional(),rating:E.number().optional(),score:E.number().optional()})),implement:e=>w(Cs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Ht.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Ht.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),H5=Le("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number()})),implement:e=>w(Cs,null,function*(){let{duration:t,rating:r,score:n}=e;return Ht.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),$5=Le("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>w(Cs,[r],function*({levelId:e,name:t}){let n=[];n.push(Ht.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});ip.registerCommand("TaskTrackerSDK.levelFinished",J5);ip.registerCommand("TaskTrackerSDK.gamePlayEnded",H5);ip.registerCommand("TaskTrackerSDK.levelUpgrade",$5);F("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var op,ap,sp,V5,NE,Ps=k(()=>{"use strict";K();xe();yt();D();zr();F("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"}});F("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});op=new Map;Ye("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=op.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),op.delete(r))});ap=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ge("checkLoginAsync");if(r)return{isLogin:!0,token:(u=S.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw sr({code:-1,msg:"login failed"});let s=new Et;op.set(a,s);let l=yield s.promise;S.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Qe(p,["extra"]);return Ee.emit("onLoginComplete",d),t?l:d}),sp=Le("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield ap(e!=null?e:{})})}}),V5=Le("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ge("checkLoginAsync");return{isLogin:e}})}}),NE=te();NE.registerCommand("API.login",sp);NE.registerCommand("API.checkSession",V5)});var DE,LE=k(()=>{"use strict";DE=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function lp(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield tp(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=qE(i.data),a=DE(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function cp(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield tp(e),n=qE((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield PE(e,JSON.stringify(n))})}var qE,FE,ME,UE,jE,BE,JE,Os=k(()=>{"use strict";rp();LE();qE=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};FE=lp("joli_coin_use_modal_frequency"),ME=lp("joli_coin_payment_frequency"),UE=lp("joli_coin_unlogin_modal_frequency");jE=cp("joli_coin_use_modal_frequency"),BE=cp("joli_coin_payment_frequency"),JE=cp("joli_coin_unlogin_modal_frequency")});var up,Rs,dp=k(()=>{"use strict";ht();up=Promise.resolve(),Rs=e=>w(void 0,null,function*(){up=up.then(()=>w(void 0,null,function*(){yield Z("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield up})});var Ns,Ds,xt,Ls,Br,_r,tr,qs,xn,z5,L,En,kn,We=k(()=>{"use strict";D();Ns="UNLOCK_OPTIONS_CHANGED",Ds="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",Ls="ON_USE_MODAL_EVENT",Br="ON_USE_MODAL_RESULT",_r="ON_USE_MODAL_FREQUENCY",tr="ON_USE_UNLOGIN_MODAL_EVENT",qs="INVOKE_UNLOGIN_MODAL_EVENT",xn=new At,z5=()=>({on:xn.on.bind(xn),off:xn.off.bind(xn),emit:xn.emit.bind(xn)}),L=z5(),En={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},kn={show:!0,minInterval:8*60*60*1e3}});function et(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var br=k(()=>{"use strict"});var VE=h(pp=>{"use strict";Os();dp();We();We();Zt();Tt();D();br();var HE=Yi(),$E=et(L,_r);$E.getData();L.on(Ls,(e,t)=>w(pp,null,function*(){if(e==="ADS-JOLI_COIN"){yield HE.show({duration:3e3});let n=yield $E.getData(),{canShow:i,isFirst:o}=yield FE(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),HE.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){L.emit(Br,{useModalResult:"CONFIRM"});return}if(!i){L.emit(Br,{useModalResult:"FAILED"});return}}Q("unlock_popup_show",{eventType:pe.View,targetType:"game"});let r=$x({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{Q("coin_unlock_click",{targetType:"game",eventType:pe.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),L.emit(Br,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&Q("ad_unlock_click",{targetType:"game",eventType:pe.Click}),L.emit(Br,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(pp,null,function*(){yield Rs(n)})}});yield jE()}))});function zE(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var GE=k(()=>{"use strict";ft()});var Fs=k(()=>{"use strict"});var G5,An,wr,W5,Jr,fp=k(()=>{"use strict";Fs();D();K();ht();G5=()=>{let[e,t]=[Jf,$f].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:An,createPaymentInternalError:wr}=G5(),W5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Jr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw An(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield Z(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw An((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()))),`${W5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var hp,KE,QE=k(()=>{"use strict";ht();fp();Fs();hp=class extends Jr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Z("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw An((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),wr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},KE=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new hp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var YE,XE=k(()=>{"use strict";YE={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var mp,ZE,vp,gp,K5,ek,tk=k(()=>{"use strict";ht();fp();Fs();xe();D();K();Zt();XE();mp=new Map;Ye("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=mp.get(t);if(o){if(r==="SUCCESS")jr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&qf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw wr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=YE[r];a&&jr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}mp.delete(t)}});ZE=e=>w(void 0,null,function*(){var n,i;let t=new Et,r;try{let o=yield ge("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw wr("orderUUID is null",1002);mp.set(r,t)}catch(o){throw wr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),vp=class extends Jr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield ZE({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},gp=class extends Jr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield ZE({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Z("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw wr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},K5={android:vp,ios:gp},ek=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=K5[S.platform];if(!s)throw wr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw An(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Ms,rk=k(()=>{"use strict";GE();QE();tk();Ms=zE();Ms.registerPaymentHandler("JOLI_COIN",KE());Ms.registerPaymentHandler("JOLI_COIN_IAP",ek())});var ik=h(Xi=>{"use strict";We();Zt();ht();K();Ps();D();Os();rk();Zt();yt();xe();D();Tt();dp();br();var Tn=Yi(),Q5=et(L,_r);L.on(Ds,(e,t)=>w(Xi,null,function*(){var r,n;try{if(!vE("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{L.emit(xt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield Tn.show({duration:3e3});let a=yield Q5.getData(),{canShow:s}=yield ME(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),Tn.hide(),!s){L.emit(xt,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield Tn.show({duration:3e3});let i=yield nk();if(Tn.hide(),!i){L.emit(xt,{paymentResult:"FAILED"});return}Q("coinorder_show",{targetType:"game",eventType:pe.View});let o=Vx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return M(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(Xi,null,function*(){var c,d,u,p,f,m,g,_;if(Q("order_pay_ensure",{targetType:"game",eventType:pe.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=S.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield sp({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield nk();if(((p=b==null?void 0:b.balance)!=null?p:0)>=t.joliCoinQuantity){L.emit(xt,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){L.emit(xt,{paymentResult:"FAILED"}),o.destroy();return}yield Tn.show({duration:3e3});let{code:l}=yield Ms.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(Tn.hide(),Q("order_pay_result",{eventType:pe.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}L.emit(xt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{L.emit(xt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),Q("ad_unlock_click",{targetType:"game",eventType:pe.Click}),o.destroy()}},onEnableDeductChanged:a=>w(Xi,null,function*(){yield Rs(a)})},onSelect:a=>{var s,l;Q("coinorder_click",{targetType:"game",eventType:pe.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield BE()}catch(i){console.info("payment failed",i),L.emit(xt,{paymentResult:"FAILED"})}}));var Y5=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!ql(r.totalAmountStr))},nk=()=>w(Xi,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield Z("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ge("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&Y5((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var ak=h(Us=>{"use strict";We();br();Os();ht();ft();D();Ps();Zt();var ok=et(L,_r);ok.getData();L.on(qs,(e,t)=>w(Us,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield ok.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){L.emit(tr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield UE(o.loginGuide);if(console.log("canShowUseModal",a),!a){L.emit(tr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield X5())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),L.emit(tr,{result:"NOT_SUPPORT"});return}let i=zx({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Us,null,function*(){var l,c,d,u;let{isLogin:o,extra:a,isFirstLogin:s}=yield ap({},!0);if(!o){console.log("login failed");return}if(s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:p}=a.firstLogin.reward;jr("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:p},position:"top",duration:3e3})}L.emit(tr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:()=>{L.emit(tr,{result:"FAILED"}),i.destroy()}}}});yield JE()}catch(n){ke(new Vf(n)),L.emit(tr,{result:"FAILED"})}}));var X5=()=>w(Us,null,function*(){var t;let{response:e}=yield Z("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var vY,gY,yY,sk=k(()=>{"use strict";vY=ie(VE()),gY=ie(ik()),yY=ie(ak())});function ct(e,t,r){return(t=r3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r3(e){var t=n3(e,"string");return typeof t=="symbol"?t:t+""}function n3(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 js(e,t,r){return(t=i3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i3(e){var t=o3(e,"string");return typeof t=="symbol"?t:t+""}function o3(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 h3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function m3(e){return typeof e=="string"}function v3(e){return typeof e=="undefined"}function g3(e){return v3(e)||e===null}function y3(e){return typeof e=="function"}function Dk(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 Zi(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 E3(e){let t=e.location?Hs(e.location,fk):null,r=e.target?Hs(e.target,fk):null;return Hs(d3(u3({},e),{location:t,target:r}),S3)}function k3(e){let t=e.events.map(n=>E3(n)),r=Hs(e.device,x3);return[e.protocolVersion,t,r,e.project]}function A3(){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 R3(e){return new Promise(t=>Mk(e)(t))}function Mk(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 N3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new io(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function L3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)q3(e[n],t[n])}function q3(e,t){if(m3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(y3(t)){try{if(e instanceof t)return}catch(r){}if(!g3(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 _p(e,t,r){return(t=F3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F3(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)}function Bs(e,t,r){return(t=U3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(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 rr(e,t,r){return(t=B3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B3(e){var t=J3(e,"string");return typeof t=="symbol"?t:t+""}function J3(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 H3(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 $3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function Q3(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Bk(e){return e.trim()}function Y3(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Np(e,t){return e.indexOf(t)}function qe(e,t){return e.charCodeAt(t)|0}function oo(e,t,r){return e.slice(t,r)}function jt(e){return e.length}function Gp(e){return e.length}function Js(e,t){return t.push(e),e}function X3(e,t){return e.map(t).join("")}function rl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:tl,column:Rn,length:a,return:""}}function to(e,t){return K3(rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function Z3(){return Se}function e4(){return Se=nt>0?qe(Nn,--nt):0,Rn--,Se===10&&(Rn=1,tl--),Se}function dt(){return Se=nt<Jk?qe(Nn,nt++):0,Rn++,Se===10&&(Rn=1,tl++),Se}function Bt(){return qe(Nn,nt)}function $s(){return nt}function so(e,t){return oo(Nn,e,t)}function ao(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 Hk(e){return tl=Rn=1,Jk=jt(Nn=e),nt=0,[]}function $k(e){return Nn="",e}function Vs(e){return Bk(so(nt-1,Dp(e===91?e+2:e===40?e+1:e)))}function t4(e){for(;(Se=Bt())&&Se<33;)dt();return ao(e)>2||ao(Se)>3?"":" "}function r4(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return so(e,$s()+(t<6&&Bt()==32&&dt()==32))}function Dp(e){for(;dt();)switch(Se){case e:return nt;case 34:case 39:e!==34&&e!==39&&Dp(Se);break;case 40:e===41&&Dp(e);break;case 92:dt();break}return nt}function n4(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Bt()===47););return"/*"+so(t,nt-1)+"*"+el(e===47?e:dt())}function i4(e){for(;!ao(Bt());)dt();return so(e,nt)}function o4(e){return $k(zs("",null,null,null,[""],e=Hk(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=dt()){case 40:if(m!=108&&qe(x,u-1)==58){Np(x+=$(Vs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Vs(b);break;case 9:case 10:case 13:case 32:x+=t4(m);break;case 92:x+=r4($s()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Js(a4(n4(dt(),$s()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=jt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=$(x,/\f/g,"")),f>0&&jt(x)-u&&Js(f>32?vk(x+";",n,r,u-1):vk($(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Js(O=mk(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)zs(x,t,O,O,A,o,u,s,P);else switch(p===99&&qe(x,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,O,O,n&&Js(mk(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:zs(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+jt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&e4()==125)continue}switch(x+=el(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(jt(x)-1)*v,v=1;break;case 64:Bt()===45&&(x+=Vs(dt())),p=Bt(),d=u=jt(I=x+=i4($s())),b++;break;case 45:m===45&&jt(x)==2&&(g=0)}}return o}function mk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Gp(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=oo(e,u+1,u=W3(g=a[m])),I=e;v<f;++v)(I=Bk(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[_++]=I);return rl(e,t,r,i===0?Vp:s,l,c,d)}function a4(e,t,r){return rl(e,t,r,Uk,el(Z3()),oo(e,2,-2),0)}function vk(e,t,r,n){return rl(e,t,r,zp,oo(e,0,n),oo(e,n+1,-1),n)}function On(e,t){for(var r="",n=Gp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function s4(e,t,r,n){switch(e.type){case G3:if(e.children.length)break;case z3:case zp:return e.return=e.return||e.value;case Uk:return"";case jk:return e.return=e.value+"{"+On(e.children,n)+"}";case Vp:e.value=e.props.join(",")}return jt(r=On(e.children,n))?e.return=e.value+"{"+r+"}":""}function l4(e){var t=Gp(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 c4(e){return function(t){t.root||(t=t.return)&&e(t)}}function u4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Vk(e,t){switch(Q3(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Ks+e+He+e+e;case 6828:case 4268:return H+e+He+e+e;case 6165:return H+e+He+"flex-"+e+e;case 5187:return H+e+$(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return H+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return H+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+He+$(e,"shrink","negative")+e;case 5292:return H+e+He+$(e,"basis","preferred-size")+e;case 6060:return H+"box-"+$(e,"-grow","")+H+e+He+$(e,"grow","positive")+e;case 4554:return H+$(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Ks+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?Vk($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,jt(e)-3-(~Np(e,"!important")&&10))){case 107:return $(e,":",":"+H)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(qe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+He+e+e}return e}function _4(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 Qs(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 Ir={name:i.name,styles:i.styles,next:Ir},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ir={name:a.name,styles:a.styles,next:Ir},a=a.next;var s=o.styles+";";return s}return S4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function S4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qs(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]+"}":yk(s)&&(n+=bp(o)+":"+_k(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++)yk(a[l])&&(n+=bp(o)+":"+_k(o,a[l])+";");else{var c=Qs(e,t,a);switch(o){case"animation":case"animationName":{n+=bp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function wp(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="";Ir=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qs(r,t,e[s]),n){var l=o;i+=l[s]}bk.lastIndex=0;for(var c="",d;(d=bk.exec(i))!==null;)c+="-"+d[1];var u=_4(i)+c;return{name:u,styles:i,next:Ir}}function Gk(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function wk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ik(e,t,r){var n=[],i=Gk(e,n,r);return n.length<2?r:i+t(n)}function C4(e,t){Pe.__h&&Pe.__h(ut,e,xk||t),xk=0;var r=ut.__H||(ut.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Kk(e,t){var r=C4(Lp++,7);return R4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function P4(){for(var e;e=Wk.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gs),e.__H.__h.forEach(qp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function O4(e){var t,r=function(){clearTimeout(n),Ok&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ok&&(t=requestAnimationFrame(r))}function Gs(e){var t=ut,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ut=t}function qp(e){var t=ut;e.__c=e.__(),ut=t}function R4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function nl(){if(Sr>1)Sr--;else{for(var e,t=!1;ro!==void 0;){var r=ro;for(ro=void 0,Fp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Yk(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Fp=0,Sr--,t)throw e}}function rt(e){if(Sr>0)return e();Sr++;try{return e()}finally{nl()}}function Qk(e){if(Y!==void 0){var t=e.n;if(t===void 0||t.t!==Y)return t={i:0,S:e,p:Y.s,n:void 0,t:Y,e:void 0,x:void 0,r:t},Y.s!==void 0&&(Y.s.n=t),Y.s=t,e.n=t,32&Y.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=Y.s,t.n=void 0,Y.s.n=t,Y.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ee(e){return new Fe(e)}function Yk(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 Xk(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 Zk(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 Ln(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=Ys-1,this.f=4}function no(e){return new Ln(e)}function eA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Sr++;var r=Y;Y=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Wp(e),n}finally{Y=r,nl()}}}function Wp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eA(e)}function D4(e){if(Y!==this)throw new Error("Out-of-order effect");Zk(this),Y=e,this.f&=-2,8&this.f&&Wp(this),nl()}function lo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function co(e){var t=new lo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function qn(e,t){R[e]=t.bind(null,R[e]||function(){})}function Xs(e){Sp&&Sp(),Sp=e&&e.S()}function nA(e){var t=this,r=e.data,n=iA(r);n.value=r;var i=Kk(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=no(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=no(function(){return!Array.isArray(c.value)&&!rc(c.value)}),u=co(function(){if(this.N=oA,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function L4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ee(r);return{o:function(a,s){o.value=a,n=s},d:co(function(){this.N=oA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function iA(e){return Kk(function(){return ee(e)},[])}function F4(){rt(function(){for(var e;e=rA.shift();)tA.call(e)})}function oA(){rA.push(this)===1&&(R.requestAnimationFrame||q4)(F4)}function M4(e,t){let r=bi(e);on(()=>{r.current=e},[e]),_i(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ve(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:--U4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function nr(e,t,r){return(t=Y4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y4(e){var t=X4(e,"string");return typeof t=="symbol"?t:t+""}function X4(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 ir(e,t,r){return(t=rH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rH(e){var t=nH(e,"string");return typeof t=="symbol"?t:t+""}function nH(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 Je(e,t,r){return(t=iH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iH(e){var t=oH(e,"string");return typeof t=="symbol"?t:t+""}function oH(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=aH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aH(e){var t=sH(e,"string");return typeof t=="symbol"?t:t+""}function sH(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 Hr(e,t,r){return(t=lH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return typeof t=="symbol"?t:t+""}function cH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ut(e,t,r){return(t=uH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uH(e){var t=dH(e,"string");return typeof t=="symbol"?t:t+""}function dH(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 lk,Z5,e3,t3,xp,Ep,Rk,a3,s3,ck,l3,c3,uk,u3,d3,p3,Nk,f3,_3,b3,dk,w3,pk,I3,Lk,qk,Fk,fk,S3,x3,kp,le,T3,C3,eo,io,P3,Tp,O3,yp,D3,Cp,hk,Pp,Op,Rp,V3,He,Ks,H,Uk,Vp,zp,z3,jk,G3,W3,el,K3,tl,Rn,Jk,nt,Se,Nn,d4,p4,f4,gk,h4,m4,v4,g4,y4,b4,w4,I4,zk,yk,bp,_k,bk,Ir,x4,E4,k4,A4,T4,Dn,Lp,ut,Ip,Sk,xk,Wk,Pe,Ek,kk,Ak,Tk,Ck,Pk,Ok,N4,Y,ro,Sr,Fp,Ys,tA,Sp,rA,q4,$e,U4,j4,or,Mp,Up,Ws,B4,J4,H4,$4,V4,z4,G4,W4,K4,Q4,jp,Pn,Cn,Z4,eH,tH,Bp,aA,Jp,Hp,$p,Zs,wY,sA=k(()=>{"use strict";Wr();Yo();lk=Object.getOwnPropertySymbols,Z5=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable,t3=(e,t)=>{var r={};for(var n in e)Z5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lk)for(var n of lk(e))t.indexOf(n)<0&&e3.call(e,n)&&(r[n]=e[n]);return r};xp=class{constructor(t){ct(this,"context",void 0),ct(this,"continueCallback",void 0),ct(this,"adIsShowingCallback",void 0),ct(this,"isBeforeAdCalled",!1),ct(this,"isBeforeRewardCalled",!1),ct(this,"isAdDismissedCalled",!1),ct(this,"isAdViewedCalled",!1),ct(this,"isAfterAdCalled",!1),ct(this,"currentProvider",void 0),ct(this,"currentClientParams",void 0),ct(this,"adsHasResponse",!1),ct(this,"videoChecker",window.document.createElement("video")),ct(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 w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Ep=class{constructor(t){js(this,"context",void 0),js(this,"adBreakIsShowing",!1),js(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),js(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()})}},Rk=Object.defineProperty,a3=Object.defineProperties,s3=Object.getOwnPropertyDescriptors,ck=Object.getOwnPropertySymbols,l3=Object.prototype.hasOwnProperty,c3=Object.prototype.propertyIsEnumerable,uk=(e,t,r)=>t in e?Rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u3=(e,t)=>{for(var r in t||(t={}))l3.call(t,r)&&uk(e,r,t[r]);if(ck)for(var r of ck(t))c3.call(t,r)&&uk(e,r,t[r]);return e},d3=(e,t)=>a3(e,s3(t)),p3=(e,t)=>{for(var r in t)Rk(e,r,{get:t[r],enumerable:!0})},Nk=(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},f3=(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}_3=(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))(_3||{});b3={log:Zi("log"),warn:Zi("warn"),info:Zi("info"),error:Zi("error"),debug:Zi("debug")};Object.assign(globalThis,{logger:b3});dk=Symbol.for("Jolibox.canIUseMap"),w3={};globalThis[dk]||(globalThis[dk]=w3);pk=Symbol.for("Jolibox.canIUseMap.native"),I3={};globalThis[pk]||(globalThis[pk]=I3);Lk=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Lk||{}),qk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qk||{}),Fk=(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))(Fk||{}),fk=["name","params"],S3=["name","type","location","target","extra","timestamp","userId"],x3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];A3();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");kp=class Ap{constructor(t){this.element=t,this.next=Ap.Undefined,this.prev=Ap.Undefined}};kp.Undefined=new kp(void 0);le=kp,T3=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},C3=0,eo=class{constructor(e){this.value=e,this.id=C3++}},io=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof eo&&(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 eo(e);return this._listeners?this._listeners instanceof eo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof eo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof eo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},P3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new T3,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)}},Tp={};p3(Tp,{None:()=>O3,filter:()=>N3,once:()=>Mk,toPromise:()=>R3});O3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});yp=Symbol.for("Jolibox.hostEmitter"),D3=()=>{let e=new P3;return globalThis[yp]||(globalThis[yp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[yp]};D3();Cp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new io,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return L3(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}};Cp=Nk([Dk],Cp);hk=class{constructor(){this._onWillExecuteCommand=new io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Cp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=h3(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 f3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Tp.toPromise(Tp.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{}}};hk=Nk([Dk],hk);Pp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";_p(this,"context",void 0),_p(this,"placement","GAME"),_p(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:Fk.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:Lk.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:qk.WebSDK};return k3(i)}};Op=class{constructor(t){Bs(this,"configs",null),Bs(this,"firstRun",!0),Bs(this,"context",void 0),Bs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Rp=class{constructor(t,r){rr(this,"name","ADSENSE"),rr(this,"context",void 0),rr(this,"contextInfo",void 0),rr(this,"configured",!1),rr(this,"initParams",void 0),rr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),rr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=t3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),rr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),rr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&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)}})}};V3=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($3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=H3(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}(),He="-ms-",Ks="-moz-",H="-webkit-",Uk="comm",Vp="rule",zp="decl",z3="@import",jk="@keyframes",G3="@layer",W3=Math.abs,el=String.fromCharCode,K3=Object.assign;tl=1,Rn=1,Jk=0,nt=0,Se=0,Nn="";d4=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!ao(i);)dt();return so(e,nt)},p4=function(e,t){var r=-1,n=44;do switch(ao(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=d4(nt-1,t,r);break;case 2:e[r]+=Vs(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=el(n)}while(n=dt());return e},f4=function(e,t){return $k(p4(Hk(e),t))},gk=new WeakMap,h4=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&&!gk.get(r))&&!n){gk.set(e,!0);for(var i=[],o=f4(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]}}},m4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};v4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case zp:e.return=Vk(e.value,e.length);break;case jk:return On([to(e,{value:$(e.value,"@","@"+H)})],n);case Vp:if(e.length)return X3(e.props,function(i){switch(Y3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return On([to(e,{props:[$(i,/:(read-\w+)/,":"+Ks+"$1")]})],n);case"::placeholder":return On([to(e,{props:[$(i,/:(plac\w+)/,":"+H+"input-$1")]}),to(e,{props:[$(i,/:(plac\w+)/,":"+Ks+"$1")]}),to(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},g4=[v4],y4=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||g4,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=[h4,m4];{var c,d=[s4,c4(function(m){c.insert(m)})],u=l4(l.concat(n,d)),p=function(m){return On(o4(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new V3({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};b4={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},w4=/[A-Z]|^ms/g,I4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zk=function(e){return e.charCodeAt(1)===45},yk=function(e){return e!=null&&typeof e!="boolean"},bp=u4(function(e){return zk(e)?e:e.replace(w4,"-$&").toLowerCase()}),_k=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(I4,function(r,n,i){return Ir={name:n,styles:i,next:Ir},n})}return b4[e]!==1&&!zk(e)&&typeof t=="number"&&t!==0?t+"px":t};bk=/label:\s*([^\s;{]+)\s*(;|$)/g;x4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},E4=function(e,t,r){x4(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)}};k4=function(e){var t=y4(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=wp(s,t.registered,void 0);return E4(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=wp(s,t.registered),d="animation-"+c.name;return wk(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=wp(s,t.registered);wk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Ik(t.registered,r,A4(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:Gk.bind(null,t.registered),merge:Ik.bind(null,t.registered,r)}},A4=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},T4=k4({key:"css"}),Dn=T4.css,xk=0,Wk=[],Pe=R,Ek=Pe.__b,kk=Pe.__r,Ak=Pe.diffed,Tk=Pe.__c,Ck=Pe.unmount,Pk=Pe.__;Pe.__b=function(e){ut=null,Ek&&Ek(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pk&&Pk(e,t)},Pe.__r=function(e){kk&&kk(e),Lp=0;var t=(ut=e.__c).__H;t&&(Ip===ut?(t.__h=[],ut.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Gs),t.__h.forEach(qp),t.__h=[],Lp=0)),Ip=ut},Pe.diffed=function(e){Ak&&Ak(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wk.push(t)!==1&&Sk===Pe.requestAnimationFrame||((Sk=Pe.requestAnimationFrame)||O4)(P4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ip=ut=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Gs),r.__h=r.__h.filter(function(n){return!n.__||qp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),Tk&&Tk(e,t)},Pe.unmount=function(e){Ck&&Ck(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Gs(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};Ok=typeof requestAnimationFrame=="function";N4=Symbol.for("preact-signals");Y=void 0,ro=void 0,Sr=0,Fp=0,Ys=0;Fe.prototype.brand=N4;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return co(function(){var r=t.value,n=Y;Y=void 0;try{e(r)}finally{Y=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=Y;Y=void 0;try{return this.value}finally{Y=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Qk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Fp>100)throw new Error("Cycle detected");this.v=e,this.i++,Ys++,Sr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{nl()}}}});(Ln.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ys))return!0;if(this.g=Ys,this.f|=1,this.i>0&&!Yk(this))return this.f&=-2,!0;var e=Y;try{Xk(this),Y=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 Y=e,Zk(this),this.f&=-2,!0};Ln.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Ln.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ln.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(Ln.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Qk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});lo.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()}};lo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eA(this),Xk(this),Sr++;var e=Y;return Y=this,D4.bind(this,e)};lo.prototype.N=function(){2&this.f||(this.f|=2,this.o=ro,ro=this)};lo.prototype.d=function(){this.f|=8,1&this.f||Wp(this)};rA=[];co(function(){tA=this.N})();nA.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:nA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});qn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});qn("__r",function(e,t){Xs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return co(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Xs(r),e(t)});qn("__e",function(e,t,r,n){Xs(),e(t,r,n)});qn("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=L4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});qn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});qn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ot.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};q4=function(e){queueMicrotask(function(){queueMicrotask(e)})};$e=Dn`
607
+ `);throw e.errors.length=0,zd(!1),new TypeError(n)}}var E,Yd=k(()=>{"use strict";Kd();Kd();E={object(e){return new _s(e)},array(e){return new gs(e)},tuple(...e){return new Is(...e)},literal(e){return new bs(e)},or(...e){return new ws(...e)},symbol(){return new ps},record(e){return new ys(e)},function(){return new ms},boolean(){return new us},string(){return new ds},number(){return new cs},undefined(){return new fs},null(){return new hs},unknown(){return new Sn},any(){return new Sn},as(){return new Sn},arraybuffer(){return new Ss},enum(...e){return new vs(...e)},typedarray(e){return new xs(e)}}});var Es,hE,mE=k(()=>{"use strict";D();ft();Yd();zr();Es=1,hE=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Es};Es+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Qd(i.paramsSchema,o,"params")}catch(b){throw Wl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new Kn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",M(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=Lf(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{Qd(i.paramsSchema,a,"params")}catch(b){throw Wl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new Kn(A,b)),u}finally{let _=Date.now()-s;e("apiInvoked",M(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Le,W,F,vE,yt=k(()=>{"use strict";pE();bt();mE();Yd();xe();Q();({createAPI:Le,createSyncAPI:W}=hE(z)),F=dE("native"),{canIUseNative:vE}=If(()=>S.sdkInfo.nativeSDKVersionCode)});var gE,g5,y5,_5,b5,yE=k(()=>{"use strict";D();yt();xe();Q();gE=te(),g5="env",y5="getSystemInfoSync",_5=W(y5,{implement:()=>{var r;let e=U("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),b5=W(g5,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});gE.registerCommand("API.getSystemInfoSync",_5);gE.registerCommand("API.env",b5);F("env",{version:"1.0.0"});F("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var _E=h(Xd=>{"use strict";D();yt();ft();xe();bt();Q();var w5="exitGame",I5="onReady",S5="onJoliboxShow",x5="onJoliboxHide",ks=te(),As=Ao(ke),E5=Le(w5,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>w(Xd,null,function*(){As(e).call(Xd),zn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Tf("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield ge("exitAppAsync")})}),k5=W(S5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ye("onJoliboxEnterForeground",()=>{t.call(this),Yn.emit("visible",!0)})}}),A5=W(x5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ye("onJoliboxEnterBackground",()=>{t.call(this),Yn.emit("visible",!1)})}}),T5=W(I5,{paramsSchema:E.tuple(E.function()),implement(e){let t=As(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});ks.registerCommand("LifecycleSDK.exit",E5);ks.registerCommand("LifecycleSDK.onReady",T5);ks.registerCommand("LifecycleSDK.onJoliboxShow",k5);ks.registerCommand("LifecycleSDK.onJoliboxHide",A5);F("lifeCycle.exit",{version:"1.0.0"});F("lifeCycle.onReady",{version:"1.0.0"});F("lifeCycle.onJoliboxShow",{version:"1.0.0"});F("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function bE(e){let t={};if(!kr(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 wE(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 IE(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function SE(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!kr(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 xE=k(()=>{"use strict";D()});var C5,P5,Zd,ep,EE,O5,R5,N5,kE=k(()=>{"use strict";zr();Ql();yt();xE();D();ft();Q();C5=15,P5=Po("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Zd=0,ep=[],EE=Ao(ke),O5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},R5=e=>{let t=new kt,r=()=>{};return W("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object().optional(),data:E.object().optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=EE(i.fail);try{if(Zd+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=bE((s=i.headers)!=null?s:{}),_=wE(i.method),v=IE(i.timeout),b=SE(i.url,_,d),I=EE(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=P5(b,A);{let{response:O}=yield P,{code:x,data:C,message:X}=O;if(C&&typeof C=="object"&&"status"in C&&C.status!==200)throw sr({code:C.status||-1,msg:`request:fail status ${C.status}`});t.resolve({code:x!=null?x:"SUCCESS",data:C,message:X!=null?X:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:C})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Zd-=1,(c=ep.shift())==null||c()}});return Zd>=C5?(r=()=>{O5(ep,a=>a===o)},ep.push(o)):o(),t.promise}})(e),{abort(){t.reject(sr({code:-1,msg:"request:fail abort"})),r()}}},N5=te();N5.registerCommand("HttpSDK.request",R5);F("request",{version:"1.0.0"})});function AE(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),M5.includes(t)?t:""}function TE(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 CE(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 Ts,D5,L5,q5,F5,mK,vK,M5,tp,PE,rp=k(()=>{"use strict";yt();xe();D();ht();Q();Ts=te(),D5=Le("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let{response:t}=yield Z(`/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 ge("getLocalStorageAsync",{key:e}),s=TE(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}}})}});Ts.registerCommand("StorageSDK.getItem",D5);F("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});L5=Le("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return w(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Z(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=AE(t),l=CE(t,s);return yield ge("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Ts.registerCommand("StorageSDK.setItem",L5);F("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});q5=Le("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let t=S.mpId,{response:r}=yield Z(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ge("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Ts.registerCommand("StorageSDK.removeItem",q5);F("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});F5=Le("clearStorage",{implement(){return w(this,null,function*(){let e=S.mpId,{response:t}=yield Z(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ge("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Ts.registerCommand("StorageSDK.clear",F5);F("storage.clear",{version:"1.0.0"});mK=Le("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ge("getStorageInfoAsync");return e})}});F("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});vK=W("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),M5=["string","number","boolean","object",""];tp=Le("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ge("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:TE(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),PE=Le("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return w(this,null,function*(){try{let r=AE(t),n=CE(t,r);return yield ge("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 U5,j5,B5,np,OE=k(()=>{"use strict";D();xe();yt();U5=W("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),U("showKeyboardSync",M(T({},e),{defaultValue:r,maxLength:t}))}});F("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"}});j5=W("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){U("updateKeyboardSync",e)}});F("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});B5=W("hideKeyboard",{implement(){U("hideKeyboardSync")}});F("keyboard.hideKeyboard",{version:"1.0.0"});np=te();np.registerCommand("KeyboardSDK.showKeyboard",U5);np.registerCommand("KeyboardSDK.updateKeyboard",j5);np.registerCommand("KeyboardSDK.hideKeyboard",B5)});var RE=h(Cs=>{"use strict";D();yt();bt();var ip=te(),J5=Le("levelFinished",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),duration:E.number().optional(),rating:E.number().optional(),score:E.number().optional()})),implement:e=>w(Cs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Ht.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Ht.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),H5=Le("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number()})),implement:e=>w(Cs,null,function*(){let{duration:t,rating:r,score:n}=e;return Ht.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),$5=Le("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>w(Cs,[r],function*({levelId:e,name:t}){let n=[];n.push(Ht.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});ip.registerCommand("TaskTrackerSDK.levelFinished",J5);ip.registerCommand("TaskTrackerSDK.gamePlayEnded",H5);ip.registerCommand("TaskTrackerSDK.levelUpgrade",$5);F("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var op,ap,sp,V5,NE,Ps=k(()=>{"use strict";Q();xe();yt();D();zr();F("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"}});F("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});op=new Map;Ye("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=op.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),op.delete(r))});ap=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ge("checkLoginAsync");if(r)return{isLogin:!0,token:(u=S.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw sr({code:-1,msg:"login failed"});let s=new kt;op.set(a,s);let l=yield s.promise;S.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Qe(p,["extra"]);return Ee.emit("onLoginComplete",d),t?l:d}),sp=Le("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield ap(e!=null?e:{})})}}),V5=Le("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ge("checkLoginAsync");return{isLogin:e}})}}),NE=te();NE.registerCommand("API.login",sp);NE.registerCommand("API.checkSession",V5)});var DE,LE=k(()=>{"use strict";DE=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function lp(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield tp(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=qE(i.data),a=DE(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function cp(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield tp(e),n=qE((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield PE(e,JSON.stringify(n))})}var qE,FE,ME,UE,jE,BE,JE,Os=k(()=>{"use strict";rp();LE();qE=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};FE=lp("joli_coin_use_modal_frequency"),ME=lp("joli_coin_payment_frequency"),UE=lp("joli_coin_unlogin_modal_frequency");jE=cp("joli_coin_use_modal_frequency"),BE=cp("joli_coin_payment_frequency"),JE=cp("joli_coin_unlogin_modal_frequency")});var up,Rs,dp=k(()=>{"use strict";ht();up=Promise.resolve(),Rs=e=>w(void 0,null,function*(){up=up.then(()=>w(void 0,null,function*(){yield Z("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield up})});var Ns,Ds,Et,Ls,Br,_r,tr,qs,xn,z5,L,En,kn,We=k(()=>{"use strict";D();Ns="UNLOCK_OPTIONS_CHANGED",Ds="INVOKE_PAYMENT",Et="ON_PAYMENT_RESULT",Ls="ON_USE_MODAL_EVENT",Br="ON_USE_MODAL_RESULT",_r="ON_USE_MODAL_FREQUENCY",tr="ON_USE_UNLOGIN_MODAL_EVENT",qs="INVOKE_UNLOGIN_MODAL_EVENT",xn=new Tt,z5=()=>({on:xn.on.bind(xn),off:xn.off.bind(xn),emit:xn.emit.bind(xn)}),L=z5(),En={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},kn={show:!0,minInterval:8*60*60*1e3}});function et(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var br=k(()=>{"use strict"});var VE=h(pp=>{"use strict";Os();dp();We();We();Zt();bt();D();br();var HE=Yi(),$E=et(L,_r);$E.getData();L.on(Ls,(e,t)=>w(pp,null,function*(){if(e==="ADS-JOLI_COIN"){yield HE.show({duration:3e3});let n=yield $E.getData(),{canShow:i,isFirst:o}=yield FE(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),HE.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){L.emit(Br,{useModalResult:"CONFIRM"});return}if(!i){L.emit(Br,{useModalResult:"FAILED"});return}}z("unlock_popup_show",{eventType:pe.View,targetType:"game"});let r=$x({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{z("coin_unlock_click",{targetType:"game",eventType:pe.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),L.emit(Br,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&z("ad_unlock_click",{targetType:"game",eventType:pe.Click}),L.emit(Br,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(pp,null,function*(){yield Rs(n)})}});yield jE()}))});function zE(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var GE=k(()=>{"use strict";ft()});var Fs=k(()=>{"use strict"});var G5,An,wr,W5,Jr,fp=k(()=>{"use strict";Fs();D();Q();ht();G5=()=>{let[e,t]=[Jf,$f].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:An,createPaymentInternalError:wr}=G5(),W5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Jr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw An(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield Z(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw An((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()))),`${W5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var hp,KE,QE=k(()=>{"use strict";ht();fp();Fs();hp=class extends Jr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Z("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw An((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),wr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},KE=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new hp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var YE,XE=k(()=>{"use strict";YE={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var mp,ZE,vp,gp,K5,ek,tk=k(()=>{"use strict";ht();fp();Fs();xe();D();Q();Zt();XE();mp=new Map;Ye("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=mp.get(t);if(o){if(r==="SUCCESS")jr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&qf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw wr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=YE[r];a&&jr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}mp.delete(t)}});ZE=e=>w(void 0,null,function*(){var n,i;let t=new kt,r;try{let o=yield ge("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw wr("orderUUID is null",1002);mp.set(r,t)}catch(o){throw wr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),vp=class extends Jr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield ZE({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},gp=class extends Jr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield ZE({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Z("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw wr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},K5={android:vp,ios:gp},ek=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=K5[S.platform];if(!s)throw wr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw An(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Ms,rk=k(()=>{"use strict";GE();QE();tk();Ms=zE();Ms.registerPaymentHandler("JOLI_COIN",KE());Ms.registerPaymentHandler("JOLI_COIN_IAP",ek())});var ik=h(Xi=>{"use strict";We();Zt();ht();Q();Ps();D();Os();rk();Zt();yt();xe();D();bt();dp();br();var Tn=Yi(),Q5=et(L,_r);L.on(Ds,(e,t)=>w(Xi,null,function*(){var r,n;try{if(!vE("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{L.emit(Et,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield Tn.show({duration:3e3});let a=yield Q5.getData(),{canShow:s}=yield ME(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),Tn.hide(),!s){L.emit(Et,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield Tn.show({duration:3e3});let i=yield nk();if(Tn.hide(),!i){L.emit(Et,{paymentResult:"FAILED"});return}z("coinorder_show",{targetType:"game",eventType:pe.View});let o=Vx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return M(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(Xi,null,function*(){var c,d,u,p,f,m,g,_;if(z("order_pay_ensure",{targetType:"game",eventType:pe.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=S.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield sp({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield nk();if(((p=b==null?void 0:b.balance)!=null?p:0)>=t.joliCoinQuantity){L.emit(Et,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){L.emit(Et,{paymentResult:"FAILED"}),o.destroy();return}yield Tn.show({duration:3e3});let{code:l}=yield Ms.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(Tn.hide(),z("order_pay_result",{eventType:pe.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}L.emit(Et,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{L.emit(Et,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),z("ad_unlock_click",{targetType:"game",eventType:pe.Click}),o.destroy()}},onEnableDeductChanged:a=>w(Xi,null,function*(){yield Rs(a)})},onSelect:a=>{var s,l;z("coinorder_click",{targetType:"game",eventType:pe.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield BE()}catch(i){console.info("payment failed",i),L.emit(Et,{paymentResult:"FAILED"})}}));var Y5=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!ql(r.totalAmountStr))},nk=()=>w(Xi,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield Z("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ge("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&Y5((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var ak=h(Us=>{"use strict";We();br();Os();ht();ft();D();Ps();Zt();var ok=et(L,_r);ok.getData();L.on(qs,(e,t)=>w(Us,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield ok.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){L.emit(tr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield UE(o.loginGuide);if(console.log("canShowUseModal",a),!a){L.emit(tr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield X5())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),L.emit(tr,{result:"NOT_SUPPORT"});return}let i=zx({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Us,null,function*(){var l,c,d,u;let{isLogin:o,extra:a,isFirstLogin:s}=yield ap({},!0);if(!o){console.log("login failed");return}if(s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:p}=a.firstLogin.reward;jr("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:p},position:"top",duration:3e3})}L.emit(tr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:()=>{L.emit(tr,{result:"FAILED"}),i.destroy()}}}});yield JE()}catch(n){ke(new Vf(n)),L.emit(tr,{result:"FAILED"})}}));var X5=()=>w(Us,null,function*(){var t;let{response:e}=yield Z("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var vY,gY,yY,sk=k(()=>{"use strict";vY=ie(VE()),gY=ie(ik()),yY=ie(ak())});function ct(e,t,r){return(t=r3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r3(e){var t=n3(e,"string");return typeof t=="symbol"?t:t+""}function n3(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 js(e,t,r){return(t=i3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i3(e){var t=o3(e,"string");return typeof t=="symbol"?t:t+""}function o3(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 h3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function m3(e){return typeof e=="string"}function v3(e){return typeof e=="undefined"}function g3(e){return v3(e)||e===null}function y3(e){return typeof e=="function"}function Dk(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 Zi(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 E3(e){let t=e.location?Hs(e.location,fk):null,r=e.target?Hs(e.target,fk):null;return Hs(d3(u3({},e),{location:t,target:r}),S3)}function k3(e){let t=e.events.map(n=>E3(n)),r=Hs(e.device,x3);return[e.protocolVersion,t,r,e.project]}function A3(){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 R3(e){return new Promise(t=>Mk(e)(t))}function Mk(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 N3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new io(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function L3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)q3(e[n],t[n])}function q3(e,t){if(m3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(y3(t)){try{if(e instanceof t)return}catch(r){}if(!g3(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 _p(e,t,r){return(t=F3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F3(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)}function Bs(e,t,r){return(t=U3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(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 rr(e,t,r){return(t=B3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B3(e){var t=J3(e,"string");return typeof t=="symbol"?t:t+""}function J3(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 H3(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 $3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function Q3(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Bk(e){return e.trim()}function Y3(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Np(e,t){return e.indexOf(t)}function qe(e,t){return e.charCodeAt(t)|0}function oo(e,t,r){return e.slice(t,r)}function jt(e){return e.length}function Gp(e){return e.length}function Js(e,t){return t.push(e),e}function X3(e,t){return e.map(t).join("")}function rl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:tl,column:Rn,length:a,return:""}}function to(e,t){return K3(rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function Z3(){return Se}function e4(){return Se=nt>0?qe(Nn,--nt):0,Rn--,Se===10&&(Rn=1,tl--),Se}function dt(){return Se=nt<Jk?qe(Nn,nt++):0,Rn++,Se===10&&(Rn=1,tl++),Se}function Bt(){return qe(Nn,nt)}function $s(){return nt}function so(e,t){return oo(Nn,e,t)}function ao(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 Hk(e){return tl=Rn=1,Jk=jt(Nn=e),nt=0,[]}function $k(e){return Nn="",e}function Vs(e){return Bk(so(nt-1,Dp(e===91?e+2:e===40?e+1:e)))}function t4(e){for(;(Se=Bt())&&Se<33;)dt();return ao(e)>2||ao(Se)>3?"":" "}function r4(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return so(e,$s()+(t<6&&Bt()==32&&dt()==32))}function Dp(e){for(;dt();)switch(Se){case e:return nt;case 34:case 39:e!==34&&e!==39&&Dp(Se);break;case 40:e===41&&Dp(e);break;case 92:dt();break}return nt}function n4(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Bt()===47););return"/*"+so(t,nt-1)+"*"+el(e===47?e:dt())}function i4(e){for(;!ao(Bt());)dt();return so(e,nt)}function o4(e){return $k(zs("",null,null,null,[""],e=Hk(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=dt()){case 40:if(m!=108&&qe(x,u-1)==58){Np(x+=$(Vs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Vs(b);break;case 9:case 10:case 13:case 32:x+=t4(m);break;case 92:x+=r4($s()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Js(a4(n4(dt(),$s()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=jt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=$(x,/\f/g,"")),f>0&&jt(x)-u&&Js(f>32?vk(x+";",n,r,u-1):vk($(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Js(O=mk(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)zs(x,t,O,O,A,o,u,s,P);else switch(p===99&&qe(x,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,O,O,n&&Js(mk(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:zs(x,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=x="",u=a;break;case 58:u=1+jt(x),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&e4()==125)continue}switch(x+=el(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(jt(x)-1)*v,v=1;break;case 64:Bt()===45&&(x+=Vs(dt())),p=Bt(),d=u=jt(I=x+=i4($s())),b++;break;case 45:m===45&&jt(x)==2&&(g=0)}}return o}function mk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Gp(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=oo(e,u+1,u=W3(g=a[m])),I=e;v<f;++v)(I=Bk(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[_++]=I);return rl(e,t,r,i===0?Vp:s,l,c,d)}function a4(e,t,r){return rl(e,t,r,Uk,el(Z3()),oo(e,2,-2),0)}function vk(e,t,r,n){return rl(e,t,r,zp,oo(e,0,n),oo(e,n+1,-1),n)}function On(e,t){for(var r="",n=Gp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function s4(e,t,r,n){switch(e.type){case G3:if(e.children.length)break;case z3:case zp:return e.return=e.return||e.value;case Uk:return"";case jk:return e.return=e.value+"{"+On(e.children,n)+"}";case Vp:e.value=e.props.join(",")}return jt(r=On(e.children,n))?e.return=e.value+"{"+r+"}":""}function l4(e){var t=Gp(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 c4(e){return function(t){t.root||(t=t.return)&&e(t)}}function u4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Vk(e,t){switch(Q3(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Ks+e+He+e+e;case 6828:case 4268:return H+e+He+e+e;case 6165:return H+e+He+"flex-"+e+e;case 5187:return H+e+$(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return H+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return H+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+He+$(e,"shrink","negative")+e;case 5292:return H+e+He+$(e,"basis","preferred-size")+e;case 6060:return H+"box-"+$(e,"-grow","")+H+e+He+$(e,"grow","positive")+e;case 4554:return H+$(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Ks+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?Vk($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,jt(e)-3-(~Np(e,"!important")&&10))){case 107:return $(e,":",":"+H)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(qe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+He+e+e}return e}function _4(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 Qs(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 Ir={name:i.name,styles:i.styles,next:Ir},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ir={name:a.name,styles:a.styles,next:Ir},a=a.next;var s=o.styles+";";return s}return S4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function S4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qs(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]+"}":yk(s)&&(n+=bp(o)+":"+_k(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++)yk(a[l])&&(n+=bp(o)+":"+_k(o,a[l])+";");else{var c=Qs(e,t,a);switch(o){case"animation":case"animationName":{n+=bp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function wp(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="";Ir=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qs(r,t,e[s]),n){var l=o;i+=l[s]}bk.lastIndex=0;for(var c="",d;(d=bk.exec(i))!==null;)c+="-"+d[1];var u=_4(i)+c;return{name:u,styles:i,next:Ir}}function Gk(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function wk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ik(e,t,r){var n=[],i=Gk(e,n,r);return n.length<2?r:i+t(n)}function C4(e,t){Pe.__h&&Pe.__h(ut,e,xk||t),xk=0;var r=ut.__H||(ut.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Kk(e,t){var r=C4(Lp++,7);return R4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function P4(){for(var e;e=Wk.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gs),e.__H.__h.forEach(qp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function O4(e){var t,r=function(){clearTimeout(n),Ok&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ok&&(t=requestAnimationFrame(r))}function Gs(e){var t=ut,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ut=t}function qp(e){var t=ut;e.__c=e.__(),ut=t}function R4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function nl(){if(Sr>1)Sr--;else{for(var e,t=!1;ro!==void 0;){var r=ro;for(ro=void 0,Fp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Yk(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Fp=0,Sr--,t)throw e}}function rt(e){if(Sr>0)return e();Sr++;try{return e()}finally{nl()}}function Qk(e){if(Y!==void 0){var t=e.n;if(t===void 0||t.t!==Y)return t={i:0,S:e,p:Y.s,n:void 0,t:Y,e:void 0,x:void 0,r:t},Y.s!==void 0&&(Y.s.n=t),Y.s=t,e.n=t,32&Y.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=Y.s,t.n=void 0,Y.s.n=t,Y.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ee(e){return new Fe(e)}function Yk(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 Xk(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 Zk(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 Ln(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=Ys-1,this.f=4}function no(e){return new Ln(e)}function eA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Sr++;var r=Y;Y=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Wp(e),n}finally{Y=r,nl()}}}function Wp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eA(e)}function D4(e){if(Y!==this)throw new Error("Out-of-order effect");Zk(this),Y=e,this.f&=-2,8&this.f&&Wp(this),nl()}function lo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function co(e){var t=new lo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function qn(e,t){R[e]=t.bind(null,R[e]||function(){})}function Xs(e){Sp&&Sp(),Sp=e&&e.S()}function nA(e){var t=this,r=e.data,n=iA(r);n.value=r;var i=Kk(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=no(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=no(function(){return!Array.isArray(c.value)&&!rc(c.value)}),u=co(function(){if(this.N=oA,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function L4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ee(r);return{o:function(a,s){o.value=a,n=s},d:co(function(){this.N=oA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function iA(e){return Kk(function(){return ee(e)},[])}function F4(){rt(function(){for(var e;e=rA.shift();)tA.call(e)})}function oA(){rA.push(this)===1&&(R.requestAnimationFrame||q4)(F4)}function M4(e,t){let r=bi(e);on(()=>{r.current=e},[e]),_i(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ve(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:--U4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function nr(e,t,r){return(t=Y4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y4(e){var t=X4(e,"string");return typeof t=="symbol"?t:t+""}function X4(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 ir(e,t,r){return(t=rH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rH(e){var t=nH(e,"string");return typeof t=="symbol"?t:t+""}function nH(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 Je(e,t,r){return(t=iH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iH(e){var t=oH(e,"string");return typeof t=="symbol"?t:t+""}function oH(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=aH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aH(e){var t=sH(e,"string");return typeof t=="symbol"?t:t+""}function sH(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 Hr(e,t,r){return(t=lH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return typeof t=="symbol"?t:t+""}function cH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ut(e,t,r){return(t=uH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uH(e){var t=dH(e,"string");return typeof t=="symbol"?t:t+""}function dH(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 lk,Z5,e3,t3,xp,Ep,Rk,a3,s3,ck,l3,c3,uk,u3,d3,p3,Nk,f3,_3,b3,dk,w3,pk,I3,Lk,qk,Fk,fk,S3,x3,kp,le,T3,C3,eo,io,P3,Tp,O3,yp,D3,Cp,hk,Pp,Op,Rp,V3,He,Ks,H,Uk,Vp,zp,z3,jk,G3,W3,el,K3,tl,Rn,Jk,nt,Se,Nn,d4,p4,f4,gk,h4,m4,v4,g4,y4,b4,w4,I4,zk,yk,bp,_k,bk,Ir,x4,E4,k4,A4,T4,Dn,Lp,ut,Ip,Sk,xk,Wk,Pe,Ek,kk,Ak,Tk,Ck,Pk,Ok,N4,Y,ro,Sr,Fp,Ys,tA,Sp,rA,q4,$e,U4,j4,or,Mp,Up,Ws,B4,J4,H4,$4,V4,z4,G4,W4,K4,Q4,jp,Pn,Cn,Z4,eH,tH,Bp,aA,Jp,Hp,$p,Zs,wY,sA=k(()=>{"use strict";Wr();Yo();lk=Object.getOwnPropertySymbols,Z5=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable,t3=(e,t)=>{var r={};for(var n in e)Z5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lk)for(var n of lk(e))t.indexOf(n)<0&&e3.call(e,n)&&(r[n]=e[n]);return r};xp=class{constructor(t){ct(this,"context",void 0),ct(this,"continueCallback",void 0),ct(this,"adIsShowingCallback",void 0),ct(this,"isBeforeAdCalled",!1),ct(this,"isBeforeRewardCalled",!1),ct(this,"isAdDismissedCalled",!1),ct(this,"isAdViewedCalled",!1),ct(this,"isAfterAdCalled",!1),ct(this,"currentProvider",void 0),ct(this,"currentClientParams",void 0),ct(this,"adsHasResponse",!1),ct(this,"videoChecker",window.document.createElement("video")),ct(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 w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Ep=class{constructor(t){js(this,"context",void 0),js(this,"adBreakIsShowing",!1),js(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),js(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()})}},Rk=Object.defineProperty,a3=Object.defineProperties,s3=Object.getOwnPropertyDescriptors,ck=Object.getOwnPropertySymbols,l3=Object.prototype.hasOwnProperty,c3=Object.prototype.propertyIsEnumerable,uk=(e,t,r)=>t in e?Rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u3=(e,t)=>{for(var r in t||(t={}))l3.call(t,r)&&uk(e,r,t[r]);if(ck)for(var r of ck(t))c3.call(t,r)&&uk(e,r,t[r]);return e},d3=(e,t)=>a3(e,s3(t)),p3=(e,t)=>{for(var r in t)Rk(e,r,{get:t[r],enumerable:!0})},Nk=(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},f3=(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}_3=(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))(_3||{});b3={log:Zi("log"),warn:Zi("warn"),info:Zi("info"),error:Zi("error"),debug:Zi("debug")};Object.assign(globalThis,{logger:b3});dk=Symbol.for("Jolibox.canIUseMap"),w3={};globalThis[dk]||(globalThis[dk]=w3);pk=Symbol.for("Jolibox.canIUseMap.native"),I3={};globalThis[pk]||(globalThis[pk]=I3);Lk=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Lk||{}),qk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qk||{}),Fk=(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))(Fk||{}),fk=["name","params"],S3=["name","type","location","target","extra","timestamp","userId"],x3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];A3();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");kp=class Ap{constructor(t){this.element=t,this.next=Ap.Undefined,this.prev=Ap.Undefined}};kp.Undefined=new kp(void 0);le=kp,T3=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},C3=0,eo=class{constructor(e){this.value=e,this.id=C3++}},io=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof eo&&(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 eo(e);return this._listeners?this._listeners instanceof eo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof eo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof eo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},P3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new T3,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)}},Tp={};p3(Tp,{None:()=>O3,filter:()=>N3,once:()=>Mk,toPromise:()=>R3});O3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});yp=Symbol.for("Jolibox.hostEmitter"),D3=()=>{let e=new P3;return globalThis[yp]||(globalThis[yp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[yp]};D3();Cp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new io,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return L3(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}};Cp=Nk([Dk],Cp);hk=class{constructor(){this._onWillExecuteCommand=new io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Cp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=h3(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 f3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Tp.toPromise(Tp.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{}}};hk=Nk([Dk],hk);Pp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";_p(this,"context",void 0),_p(this,"placement","GAME"),_p(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:Fk.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:Lk.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:qk.WebSDK};return k3(i)}};Op=class{constructor(t){Bs(this,"configs",null),Bs(this,"firstRun",!0),Bs(this,"context",void 0),Bs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Rp=class{constructor(t,r){rr(this,"name","ADSENSE"),rr(this,"context",void 0),rr(this,"contextInfo",void 0),rr(this,"configured",!1),rr(this,"initParams",void 0),rr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),rr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=t3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),rr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),rr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&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)}})}};V3=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($3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=H3(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}(),He="-ms-",Ks="-moz-",H="-webkit-",Uk="comm",Vp="rule",zp="decl",z3="@import",jk="@keyframes",G3="@layer",W3=Math.abs,el=String.fromCharCode,K3=Object.assign;tl=1,Rn=1,Jk=0,nt=0,Se=0,Nn="";d4=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!ao(i);)dt();return so(e,nt)},p4=function(e,t){var r=-1,n=44;do switch(ao(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=d4(nt-1,t,r);break;case 2:e[r]+=Vs(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=el(n)}while(n=dt());return e},f4=function(e,t){return $k(p4(Hk(e),t))},gk=new WeakMap,h4=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&&!gk.get(r))&&!n){gk.set(e,!0);for(var i=[],o=f4(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]}}},m4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};v4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case zp:e.return=Vk(e.value,e.length);break;case jk:return On([to(e,{value:$(e.value,"@","@"+H)})],n);case Vp:if(e.length)return X3(e.props,function(i){switch(Y3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return On([to(e,{props:[$(i,/:(read-\w+)/,":"+Ks+"$1")]})],n);case"::placeholder":return On([to(e,{props:[$(i,/:(plac\w+)/,":"+H+"input-$1")]}),to(e,{props:[$(i,/:(plac\w+)/,":"+Ks+"$1")]}),to(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},g4=[v4],y4=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||g4,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=[h4,m4];{var c,d=[s4,c4(function(m){c.insert(m)})],u=l4(l.concat(n,d)),p=function(m){return On(o4(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new V3({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};b4={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},w4=/[A-Z]|^ms/g,I4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zk=function(e){return e.charCodeAt(1)===45},yk=function(e){return e!=null&&typeof e!="boolean"},bp=u4(function(e){return zk(e)?e:e.replace(w4,"-$&").toLowerCase()}),_k=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(I4,function(r,n,i){return Ir={name:n,styles:i,next:Ir},n})}return b4[e]!==1&&!zk(e)&&typeof t=="number"&&t!==0?t+"px":t};bk=/label:\s*([^\s;{]+)\s*(;|$)/g;x4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},E4=function(e,t,r){x4(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)}};k4=function(e){var t=y4(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=wp(s,t.registered,void 0);return E4(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=wp(s,t.registered),d="animation-"+c.name;return wk(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=wp(s,t.registered);wk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Ik(t.registered,r,A4(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:Gk.bind(null,t.registered),merge:Ik.bind(null,t.registered,r)}},A4=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},T4=k4({key:"css"}),Dn=T4.css,xk=0,Wk=[],Pe=R,Ek=Pe.__b,kk=Pe.__r,Ak=Pe.diffed,Tk=Pe.__c,Ck=Pe.unmount,Pk=Pe.__;Pe.__b=function(e){ut=null,Ek&&Ek(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pk&&Pk(e,t)},Pe.__r=function(e){kk&&kk(e),Lp=0;var t=(ut=e.__c).__H;t&&(Ip===ut?(t.__h=[],ut.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Gs),t.__h.forEach(qp),t.__h=[],Lp=0)),Ip=ut},Pe.diffed=function(e){Ak&&Ak(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wk.push(t)!==1&&Sk===Pe.requestAnimationFrame||((Sk=Pe.requestAnimationFrame)||O4)(P4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ip=ut=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Gs),r.__h=r.__h.filter(function(n){return!n.__||qp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),Tk&&Tk(e,t)},Pe.unmount=function(e){Ck&&Ck(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Gs(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};Ok=typeof requestAnimationFrame=="function";N4=Symbol.for("preact-signals");Y=void 0,ro=void 0,Sr=0,Fp=0,Ys=0;Fe.prototype.brand=N4;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return co(function(){var r=t.value,n=Y;Y=void 0;try{e(r)}finally{Y=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=Y;Y=void 0;try{return this.value}finally{Y=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Qk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Fp>100)throw new Error("Cycle detected");this.v=e,this.i++,Ys++,Sr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{nl()}}}});(Ln.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ys))return!0;if(this.g=Ys,this.f|=1,this.i>0&&!Yk(this))return this.f&=-2,!0;var e=Y;try{Xk(this),Y=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 Y=e,Zk(this),this.f&=-2,!0};Ln.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Ln.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ln.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(Ln.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Qk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});lo.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()}};lo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eA(this),Xk(this),Sr++;var e=Y;return Y=this,D4.bind(this,e)};lo.prototype.N=function(){2&this.f||(this.f|=2,this.o=ro,ro=this)};lo.prototype.d=function(){this.f|=8,1&this.f||Wp(this)};rA=[];co(function(){tA=this.N})();nA.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:nA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});qn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});qn("__r",function(e,t){Xs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return co(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Xs(r),e(t)});qn("__e",function(e,t,r,n){Xs(),e(t,r,n)});qn("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=L4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});qn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});qn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ot.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};q4=function(e){queueMicrotask(function(){queueMicrotask(e)})};$e=Dn`
608
608
  inset: 0;
609
609
  clear: none;
610
610
  float: none;
@@ -817,4 +817,4 @@ or `);this.errors.push(o)}return n}},Is=class extends Ie{constructor(...t){super
817
817
  cursor: pointer;
818
818
  }
819
819
  }
820
- `});function cA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;lA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return lA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:En,loginGuide:kn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:En,loginGuide:kn}})}}}var lA,uA=k(()=>{"use strict";K();We();lA=S.testMode});var pH,fH,dA,pA,fA=k(()=>{"use strict";We();pH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,fH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(pH()):["ADS"],dA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;L.emit(Ns,{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 fH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},pA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return L.emit(_r,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||En,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||kn}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||En,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||kn}}))}});var hA,mA=k(()=>{"use strict";hA=e=>t=>w(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var _t,Fn=k(()=>{"use strict";We();br();We();_t=et(L,Ns)});var xr,uo=k(()=>{"use strict";D();xr=te()});var Kp,po,vA=k(()=>{"use strict";uo();Fn();br();We();We();Kp=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;xr.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield _t.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},po=(e,t)=>r=>w(void 0,null,function*(){let n=et(L,Br);return L.emit(Ls,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var il,Qp=k(()=>{"use strict";il=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var gA,yA=k(()=>{"use strict";gA=(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 Yp,fo,_A=k(()=>{"use strict";Qp();uo();Fn();yA();We();br();We();Yp=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;xr.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,p,f;let i=yield _t.getData(),o=yield il(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(f=(p=i==null?void 0:i.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?f:!1};return _t.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),gA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},fo=(e,t)=>r=>w(void 0,null,function*(){let n=et(L,xt);return L.emit(Ds,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Xp,ho,bA=k(()=>{"use strict";K();uo();br();We();We();D();Qp();Fn();Xp=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;xr.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,p,f,m;let i=(a=S.hostUserInfo)==null?void 0:a.isLogin,o=yield _t.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield Df(3e3));let b=yield il(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(P=>P.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(p=b==null?void 0:b.balance)!=null?p:0,enableAutoDeduct:(m=(f=o==null?void 0:o.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?m:!1};if(_t.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},ho=(e,t)=>()=>w(void 0,null,function*(){let r=et(L,tr);return L.emit(qs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var ol=k(()=>{"use strict";vA();_A();bA()});var al,Zp=k(()=>{"use strict";K();D();ol();uo();al=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>(Xp(e,{httpClient:t,showUnloginModal:s}),Yp(e,{httpClient:t,initiateAndAwaitPayment:o}),Kp(e,{showUnlockWithJolicoinModal:a}),l=>w(void 0,null,function*(){var c,d,u;try{let p=!0,f=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];for(let g of f){let _=yield xr.executeCommand(g);if(p=p&&_.result!=="FAILED",_.result!=="CONTINUE")break}if(!p)return n==null||n(l),!1;let m=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${To()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return console.log("-----unlockWithJolicoin request result-----",m),m.code=="SUCCESS"?((d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),r==null||r({quantity:m.data.quantity,balance:m.data.balance}),!0):(n==null||n(l),!1)}catch(p){if(console.info("JolicoinRewardHandler error:",p),p instanceof Error&&p.message=="CANCEL")throw p;return n==null||n(l),!1}finally{i.clearCache()}}))});var wA,IA=k(()=>{"use strict";Fn();Zp();ol();wA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=po("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=fo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=ho("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return al("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:_t,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var SA,xA=k(()=>{"use strict";Zp();Fn();ol();SA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=po("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=fo("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=ho("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return al("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:_t,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var ar,EA=k(()=>{"use strict";uA();fA();mA();IA();xA();ar=cA();dA(ar);pA(ar)});var sl,hH,mo,mH,vo,kA,vH,gH,ef,yH,_H,AA=k(()=>{"use strict";D();yt();Zt();sk();sA();Tt();K();ht();xe();EA();Xl();sl=te(),hH=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},mo={get:(e,t)=>Z(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Z(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},mH={httpClient:mo,checkNetwork:hH,track:Q,eventEmitter:Ro,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:""}}},vo=new Zs(mH);ar.getRewardFrequencyConfig(mo).then(e=>{console.log("getRewardFrequencyConfig",e)});ar.registerRewardHandler("ADS",hA(vo));ar.registerRewardHandler("JOLI_COIN",wA(mo,{onUnlockSuccess:e=>{kA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));ar.registerRewardHandler("JOLI_COIN_ONLY",SA(mo,{onUnlockSuccess:e=>{kA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));kA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;jr(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},vH=G("adInit",{implement:e=>{vo.init(e)}}),gH=G("adConfig",{implement:e=>{vo.adConfig(e)}}),ef=!1,yH=G("adBreak",{implement:e=>{if(e.type==="reward"){if(ef)return;ef=!0,ar.getRewardsTypes(mo).then(t=>{ar.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{ef=!1})})}else vo.adBreak(e)}}),_H=G("adUnit",{implement:e=>{vo.adUnit(e)}});sl.registerCommand("AdsSDK.init",vH);sl.registerCommand("AdsSDK.adConfig",gH);sl.registerCommand("AdsSDK.adBreak",yH);sl.registerCommand("AdsSDK.adUnit",_H);F("AdsSDK.init",{version:"1.0.0"});F("AdsSDK.adConfig",{version:"1.0.0"});F("AdsSDK.adBreak",{version:"1.0.0"});F("AdsSDK.adUnit",{version:"1.0.0"})});var go,bH,wH,IH,SH,xH,TA=k(()=>{"use strict";D();xe();yt();K();go=te(),bH=G("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vr(r.errMsg,r.errNo)}}),wH=G("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Vr(r,t);return{webviewId:n.webviewId}}}),IH=G("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Vr(r,t)}}),SH=G("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),xH=G("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),E.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=U("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new Vr(n,r)}});go.registerCommand("RouterSDK.openSchema",bH);go.registerCommand("RouterSDK.openPage",wH);go.registerCommand("RouterSDK.closePage",IH);go.registerCommand("RouterSDK.interceptSystemExit",SH);go.registerCommand("RouterSDK.navigateToNativePage",xH);F("router.openSchema",{version:"1.1.10"});F("router.openPage",{version:"1.1.10"});F("router.closePage",{version:"1.1.10"});F("router.interceptSystemExit",{version:"1.1.18"});F("router.navigateToNativePage",{version:"1.1.19"})});function AH(e){Tl("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var PA,EH,ll,tf,CA,kH,TH,OA=k(()=>{"use strict";D();yt();xe();K();PA=te(),EH=G("onLoadFinished",{implement:()=>{Tl("cpLoadFinishEvent",{},S.webviewId,!0)}}),ll=null,tf=!1,CA=0,kH=200;TH=G("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{ll=e,tf||(tf=!0,requestAnimationFrame(function t(){let r=Date.now();r-CA>=kH?(ll!==null&&(AH(ll),CA=r,ll=null),tf=!1):requestAnimationFrame(t)}))}});PA.registerCommand("RuntimeSDK.loadFinishedEvent",EH);PA.registerCommand("RuntimeSDK.loadProgressEvent",TH)});var CH={};var wZ,EZ,RA=k(()=>{"use strict";yE();wZ=ie(_E());kE();rp();OE();EZ=ie(RE());Ps();AA();TA();OA()});var NA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[NA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[NA]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(uE(),cE)),Promise.resolve().then(()=>(RA(),CH)),Promise.resolve().then(()=>(Tt(),Sh))]);e()});
820
+ `});function cA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;lA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return lA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:En,loginGuide:kn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:En,loginGuide:kn}})}}}var lA,uA=k(()=>{"use strict";Q();We();lA=S.testMode});var pH,fH,dA,pA,fA=k(()=>{"use strict";We();pH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,fH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(pH()):["ADS"],dA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;L.emit(Ns,{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 fH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},pA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return L.emit(_r,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||En,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||kn}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||En,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||kn}}))}});var hA,mA=k(()=>{"use strict";hA=e=>t=>w(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var _t,Fn=k(()=>{"use strict";We();br();We();_t=et(L,Ns)});var xr,uo=k(()=>{"use strict";D();xr=te()});var Kp,po,vA=k(()=>{"use strict";uo();Fn();br();We();We();Kp=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;xr.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield _t.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},po=(e,t)=>r=>w(void 0,null,function*(){let n=et(L,Br);return L.emit(Ls,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var il,Qp=k(()=>{"use strict";il=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var gA,yA=k(()=>{"use strict";gA=(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 Yp,fo,_A=k(()=>{"use strict";Qp();uo();Fn();yA();We();br();We();Yp=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;xr.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,p,f;let i=yield _t.getData(),o=yield il(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(f=(p=i==null?void 0:i.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?f:!1};return _t.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),gA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},fo=(e,t)=>r=>w(void 0,null,function*(){let n=et(L,Et);return L.emit(Ds,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Xp,ho,bA=k(()=>{"use strict";Q();uo();br();We();We();D();Qp();Fn();Xp=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;xr.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,p,f,m;let i=(a=S.hostUserInfo)==null?void 0:a.isLogin,o=yield _t.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield Df(3e3));let b=yield il(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(P=>P.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(p=b==null?void 0:b.balance)!=null?p:0,enableAutoDeduct:(m=(f=o==null?void 0:o.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?m:!1};if(_t.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},ho=(e,t)=>()=>w(void 0,null,function*(){let r=et(L,tr);return L.emit(qs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var ol=k(()=>{"use strict";vA();_A();bA()});var al,Zp=k(()=>{"use strict";Q();D();ol();uo();al=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>(Xp(e,{httpClient:t,showUnloginModal:s}),Yp(e,{httpClient:t,initiateAndAwaitPayment:o}),Kp(e,{showUnlockWithJolicoinModal:a}),l=>w(void 0,null,function*(){var c,d,u;try{let p=!0,f=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];for(let g of f){let _=yield xr.executeCommand(g);if(p=p&&_.result!=="FAILED",_.result!=="CONTINUE")break}if(!p)return n==null||n(l),!1;let m=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${To()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return console.log("-----unlockWithJolicoin request result-----",m),m.code=="SUCCESS"?((d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),r==null||r({quantity:m.data.quantity,balance:m.data.balance}),!0):(n==null||n(l),!1)}catch(p){if(console.info("JolicoinRewardHandler error:",p),p instanceof Error&&p.message=="CANCEL")throw p;return n==null||n(l),!1}finally{i.clearCache()}}))});var wA,IA=k(()=>{"use strict";Fn();Zp();ol();wA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=po("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=fo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=ho("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return al("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:_t,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var SA,xA=k(()=>{"use strict";Zp();Fn();ol();SA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=po("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=fo("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=ho("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return al("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:_t,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var ar,EA=k(()=>{"use strict";uA();fA();mA();IA();xA();ar=cA();dA(ar);pA(ar)});var sl,hH,mo,mH,vo,kA,vH,gH,ef,yH,_H,AA=k(()=>{"use strict";D();yt();Zt();sk();sA();bt();Q();ht();xe();EA();Xl();sl=te(),hH=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},mo={get:(e,t)=>Z(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Z(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},mH={httpClient:mo,checkNetwork:hH,track:z,eventEmitter:Ro,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:""}}},vo=new Zs(mH);ar.getRewardFrequencyConfig(mo).then(e=>{console.log("getRewardFrequencyConfig",e)});ar.registerRewardHandler("ADS",hA(vo));ar.registerRewardHandler("JOLI_COIN",wA(mo,{onUnlockSuccess:e=>{kA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));ar.registerRewardHandler("JOLI_COIN_ONLY",SA(mo,{onUnlockSuccess:e=>{kA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));kA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;jr(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},vH=W("adInit",{implement:e=>{vo.init(e)}}),gH=W("adConfig",{implement:e=>{vo.adConfig(e)}}),ef=!1,yH=W("adBreak",{implement:e=>{if(e.type==="reward"){if(ef)return;ef=!0,ar.getRewardsTypes(mo).then(t=>{ar.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{ef=!1})})}else vo.adBreak(e)}}),_H=W("adUnit",{implement:e=>{vo.adUnit(e)}});sl.registerCommand("AdsSDK.init",vH);sl.registerCommand("AdsSDK.adConfig",gH);sl.registerCommand("AdsSDK.adBreak",yH);sl.registerCommand("AdsSDK.adUnit",_H);F("AdsSDK.init",{version:"1.0.0"});F("AdsSDK.adConfig",{version:"1.0.0"});F("AdsSDK.adBreak",{version:"1.0.0"});F("AdsSDK.adUnit",{version:"1.0.0"})});var go,bH,wH,IH,SH,xH,TA=k(()=>{"use strict";D();xe();yt();Q();go=te(),bH=W("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vr(r.errMsg,r.errNo)}}),wH=W("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new Vr(r,t);return{webviewId:n.webviewId}}}),IH=W("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new Vr(r,t)}}),SH=W("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),xH=W("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),E.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=U("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new Vr(n,r)}});go.registerCommand("RouterSDK.openSchema",bH);go.registerCommand("RouterSDK.openPage",wH);go.registerCommand("RouterSDK.closePage",IH);go.registerCommand("RouterSDK.interceptSystemExit",SH);go.registerCommand("RouterSDK.navigateToNativePage",xH);F("router.openSchema",{version:"1.1.10"});F("router.openPage",{version:"1.1.10"});F("router.closePage",{version:"1.1.10"});F("router.interceptSystemExit",{version:"1.1.18"});F("router.navigateToNativePage",{version:"1.1.19"})});function AH(e){Tl("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var PA,EH,ll,tf,CA,kH,TH,OA=k(()=>{"use strict";D();yt();xe();Q();bt();PA=te(),EH=W("onLoadFinished",{implement:()=>{Tl("cpLoadFinishEvent",{},S.webviewId,!0),z("loadFinished",{duration:performance.now()})}}),ll=null,tf=!1,CA=0,kH=200;TH=W("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{ll=e,tf||(tf=!0,requestAnimationFrame(function t(){let r=Date.now();r-CA>=kH?(ll!==null&&(AH(ll),CA=r,ll=null),tf=!1):requestAnimationFrame(t)}))}});PA.registerCommand("RuntimeSDK.loadFinishedEvent",EH);PA.registerCommand("RuntimeSDK.loadProgressEvent",TH)});var CH={};var IZ,kZ,RA=k(()=>{"use strict";yE();IZ=ie(_E());kE();rp();OE();kZ=ie(RE());Ps();AA();TA();OA()});var NA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[NA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[NA]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(uE(),cE)),Promise.resolve().then(()=>(RA(),CH)),Promise.resolve().then(()=>(bt(),Sh))]);e()});