@jolibox/implement 1.1.34 → 1.1.35

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 Nk=Object.create;var no=Object.defineProperty,Dk=Object.defineProperties,qk=Object.getOwnPropertyDescriptor,Lk=Object.getOwnPropertyDescriptors,Fk=Object.getOwnPropertyNames,ro=Object.getOwnPropertySymbols,Mk=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable;var Ep=(e,t,r)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))Vs.call(t,r)&&Ep(e,r,t[r]);if(ro)for(var r of ro(t))Sp.call(t,r)&&Ep(e,r,t[r]);return e},L=(e,t)=>Dk(e,Lk(t));var ot=(e,t)=>{var r={};for(var n in e)Vs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ro)for(var n of ro(e))t.indexOf(n)<0&&Sp.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xp=(e,t)=>{for(var r in t)no(e,r,{get:t[r],enumerable:!0})},jk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Fk(t))!Vs.call(e,i)&&i!==r&&no(e,i,{get:()=>t[i],enumerable:!(n=qk(t,i))||n.enumerable});return e};var le=(e,t,r)=>(r=e!=null?Nk(Mk(e)):{},jk(t||!e||!e.__esModule?no(r,"default",{value:e,enumerable:!0}):r,e));var I=(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 Vk(e){return!!(e!=null&&e.__nativeBuffers__)}function Zs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!Vk(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=zk(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function Wk(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:Gk(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function Zk(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Mp(e){return typeof e=="string"}function Lr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ap(e){return typeof e=="number"&&!isNaN(e)}function eA(e){return typeof e=="undefined"}function tA(e){return eA(e)||e===null}function jp(e){return typeof e=="function"}function rA(e){return Lr(e)&&jp(e.then)}function Up(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function cA(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 hA(){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 _A(e){return new Promise(t=>Bp(e)(t))}function Bp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function bA(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Cn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function IA(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)EA(e[n],t[n])}function EA(e,t){if(Mp(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jp(t)){try{if(e instanceof t)return}catch(r){}if(!tA(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 sl(e,t){if(el.config[e]){co.warn(`[can i use] ${e} already registered`);return}el.config[e]=Dt({},t)}function Pp(e,t){return`[${e}]:${t}`}function CA(e,t){Rp||(Ws=new oo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ks=new oo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Qs=new oo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ws.flush(),Ks.flush(),Qs.flush()}),Rp=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ws.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ks.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Qs.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function NA(e,t){let r=0,n=!0,i=OA.resolveMap,o=CA(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ys.forEach(l=>so(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Ys.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Zs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new Xk;if(i.set(r,m.resolve),!n&&kA.includes(l))return new Promise(A=>{Ys.push({method:l,args:c,resolve:A})});let g=$k(Dt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!PA&&xA.includes(l),v=Wk(c,y),_=y?v:JSON.stringify(v),w;if(l.endsWith("Sync")||AA.includes(l)?w=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof _=="string"?w=e.invoke(l,_,r):w=(u=e.call)==null?void 0:u.call(e,l,_,r),w){try{typeof w=="string"&&(w=JSON.parse(w)),w=Zs(w)}catch(A){co.error(A)}return i.delete(r),w.errorCode&&(w.errorCode=Pp(l,w.errorCode)),o(Dt(Dt({},g),w)),w}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Pp(l,A.errorCode)),o(Dt(Dt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return rA(d)?d.then(u=>Op(l,u)):Op(l,d)},invokeHandler:a}}function Op(e,t){if(!Lr(t)){co.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=Hk(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new aA(n,i,o,a);return s}function DA(e){if(globalThis[io])return globalThis[io];let t=new nl,r=new nl,n=new oo({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[io]={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=Zs(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===$p){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Tn.length),u,a)}catch(p){}});return}if(i.startsWith(Tn)){r.emit(i.slice(Tn.length),l,a);return}t.emit(i,l,a)}},globalThis[io]}function qA(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${Tn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish($p,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${Tn}${n}`,i])}}function LA(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=DA(e),{invokeNative:a,invokeHandler:s,applyNative:l}=NA(e,r),c=qA(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Hp(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var Uk,Bk,Jk,ao,Dp,qp,kp,Dt,$k,Hk,so,zk,Gk,Lp,Kk,Qk,Fp,Yk,Xk,nA,iA,lo,oA,aA,sA,zs,co,Tp,lA,Xs,uA,el,dA,pA,fA,mA,zJ,tl,te,vA,gA,An,Cn,nl,il,yA,Gs,wA,GJ,ol,Cp,WJ,Jp,SA,Tn,xA,kA,AA,$p,TA,oo,Rp,Ws,Ks,Qs,Ys,PA,al,RA,OA,io,ll,at,Vp,zp,FA,Gp,Np,he,F,ze,KJ,MA,Wp,QJ,YJ,Te=T(()=>{"use strict";Uk=Object.defineProperty,Bk=Object.defineProperties,Jk=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable,kp=(e,t,r)=>t in e?Uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t)=>{for(var r in t||(t={}))Dp.call(t,r)&&kp(e,r,t[r]);if(ao)for(var r of ao(t))qp.call(t,r)&&kp(e,r,t[r]);return e},$k=(e,t)=>Bk(e,Jk(t)),Hk=(e,t)=>{var r={};for(var n in e)Dp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ao)for(var n of ao(e))t.indexOf(n)<0&&qp.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())});zk=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};Gk=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)};Lp=Object.defineProperty,Kk=Object.getOwnPropertyDescriptor,Qk=(e,t)=>{for(var r in t)Lp(e,r,{get:t[r],enumerable:!0})},Fp=(e,t,r,n)=>{for(var i=n>1?void 0:n?Kk(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&&Lp(t,r,i),i},Yk=(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}Xk=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))}})}};nA=(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))(nA||{}),iA=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}},lo=class extends iA{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},oA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},aA=class extends lo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},sA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},zs=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};co={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:co});Tp=Symbol.for("Jolibox.canIUseMap"),lA={};globalThis[Tp]||(globalThis[Tp]=lA);Xs=Symbol.for("Jolibox.canIUseMap.native"),uA={};globalThis[Xs]||(globalThis[Xs]=uA);el={get config(){return globalThis[Xs]}},dA=(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))(dA||{}),pA=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(pA||{}),fA=(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))(fA||{});hA();mA=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),zJ={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")},tl=class rl{constructor(t){this.element=t,this.next=rl.Undefined,this.prev=rl.Undefined}};tl.Undefined=new tl(void 0);te=tl,vA=class{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){let t=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=t}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new te(e);if(this._first===te.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!==te.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}},gA=0,An=class{constructor(e){this.value=e,this.id=gA++}},Cn=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 An&&(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 An(t);return this._listeners?this._listeners instanceof An?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 An)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 An?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},nl=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 Cn,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 vA,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)}},il={};Qk(il,{None:()=>yA,filter:()=>bA,once:()=>Bp,toPromise:()=>_A});yA=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Gs=Symbol.for("Jolibox.hostEmitter"),wA=()=>{let e=new nl;return globalThis[Gs]||(globalThis[Gs]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Gs]},GJ=wA();ol=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Cn,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 IA(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};ol=Fp([Up],ol);Cp=class{constructor(){this._onWillExecuteCommand=new Cn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Cn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ol,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Zk(3e4)),this._starActivation}executeCommand(e,...t){return Yk(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),il.toPromise(il.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}}};Cp=Fp([Up],Cp);WJ=Symbol.for("Jolibox.commands");sl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});sl("requestProductDetailsAsync",{version:102e4});sl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Jp=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=el.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=cA(n,i);if(!a)return!1;if(Lr(a)){let s=a.version;return Ap(s)?typeof o=="number"&&o>=s:!0}return Ap(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};SA=()=>mA(),Tn="custom_event_",xA=[],kA=[],AA=["env","createRequestTask","login"],$p="__batch_event__",TA=e=>e==="pv"?e:"default",oo=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=TA(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&&Lr(a))throw new zs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Lr(a))l.push(...Object.keys(a));else if(Mp(a)){if(i.length>0)throw new zs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new zs(`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=Lr(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={}}},Rp=!1;Ys=[],PA=!1,al=Symbol.for("Jolibox.invokeResolverInstance"),RA=new Map;globalThis[al]||(globalThis[al]=RA);OA={get resolveMap(){return globalThis[al]}};io=Symbol.for("Jolibox.subscribeInstance");at={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){at.trigger=e},onDoExit(e){at.exit=e},onDoBackPress(e){at.backPress=e}},Vp=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new oA("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="")=>{at.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>so(void 0,null,function*(){let o=yield at.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ll={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Hp(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:Vp,doExit:r};globalThis.joliboxJSCore=Dt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{at.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>so(void 0,null,function*(){let a=yield at.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ll={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Hp(a,"joliboxJSCore");t.publish({event:o,paramsString:JSON.stringify(l),webviewIds:s})},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return so(this,null,function*(){let a=yield at.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Vp,doExit:n};globalThis.joliboxJSCore=Dt({},i)}zp=ll;if(!zp&&SA())throw new sA("No joliboxJScore is found, native bridge not found.");FA=Dt({},zp),Gp=LA(FA),{invokeHandler:Np}=Gp,{applyNative:he,invokeNative:F,onNative:ze,offNative:KJ,subscribeHandler:MA,publish:Wp,subscribe:QJ,unsubscribe:YJ}=Gp;globalThis.joliboxJSBridge={callHandler:Np,invokeHandler:Np,subscribeHandler:MA}});function VA(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Nn(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function ef(e){return typeof e=="object"&&Array.isArray(e)}function tf(e){return typeof e=="number"&&!isNaN(e)}function Dn(e){return e===!0||e===!1}function rf(e){return typeof e=="undefined"}function vl(e){return rf(e)||e===null}function zA(e){return typeof e=="function"}function nf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function of(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:Yp(l)&&Yp(s)?i[a]=n(JA({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Yp(e){return e&&typeof e=="object"&&e.constructor===Object}function af(e,t){if(Array.isArray(e))return e.concat(t)}function qn(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 WA(e,t){return(...r)=>t(e,...r)}function fo(e){return t=>WA(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Fr(`${i}`))}})}function Pn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Il(){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 n1(e){return new Promise(t=>mf(e)(t))}function mf(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 On(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function a1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)s1(e[n],t[n])}function s1(e,t){if(Nn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(zA(t)){try{if(e instanceof t)return}catch(r){}if(!vl(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 l1(){return typeof globalThis!="undefined"?globalThis[vf]:void 0}function c1(e){typeof globalThis!="undefined"&&(globalThis[vf]=e)}function ve(){let e=l1();if(e)return e;let t=new uo,r=new hl,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return c1(n),n}var ml,jA,Kp,UA,BA,Qp,JA,$A,Xp,HA,yt,GA,gl,po,yl,sf,Fr,lf,cf,uf,df,Ln,_l,_t,ul,KA,bl,Zp,QA,me,wl,YA,ho,Fn,ZA,XA,pf,ff,hf,dl,re,e1,t1,Rn,On,bt,fl,r1,cl,o1,Ee,uo,hl,vf,D=T(()=>{"use strict";ml=Object.defineProperty,jA=Object.getOwnPropertyDescriptor,Kp=Object.getOwnPropertySymbols,UA=Object.prototype.hasOwnProperty,BA=Object.prototype.propertyIsEnumerable,Qp=(e,t,r)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JA=(e,t)=>{for(var r in t||(t={}))UA.call(t,r)&&Qp(e,r,t[r]);if(Kp)for(var r of Kp(t))BA.call(t,r)&&Qp(e,r,t[r]);return e},$A=(e,t)=>{for(var r in t)ml(e,r,{get:t[r],enumerable:!0})},Xp=(e,t,r,n)=>{for(var i=n>1?void 0:n?jA(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ml(t,r,i),i},HA=(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}yt=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))}})}};GA=(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))(GA||{}),gl=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}},po=class extends gl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},yl=class extends gl{constructor(){super(...arguments),this.kind="USER_ERROR"}},sf=class extends yl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Fr=class extends yl{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))}},lf=class extends yl{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))}},cf=class extends po{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},uf=class extends po{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))}},df=class extends po{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Ln=class extends gl{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}}},_l=class extends po{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};_t={log:Pn("log"),warn:Pn("warn"),info:Pn("info"),error:Pn("error"),debug:Pn("debug")};Object.assign(globalThis,{logger:_t});ul=Symbol.for("Jolibox.canIUseMap"),KA={};globalThis[ul]||(globalThis[ul]=KA);bl={get config(){return globalThis[ul]}},Zp=Symbol.for("Jolibox.canIUseMap.native"),QA={};globalThis[Zp]||(globalThis[Zp]=QA);me=(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))(me||{}),wl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(wl||{}),YA=(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))(YA||{}),ho=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Il();Fn={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")},ZA="device_id",XA="advertising_id",pf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,ho()),window.__joliboxLocalStorage__.getItem(e)),ff=()=>new URLSearchParams(window.location.search).get("deviceId")||pf(ZA),hf=()=>new URLSearchParams(window.location.search).get("advertisingId")||pf(XA),dl=class pl{constructor(t){this.element=t,this.next=pl.Undefined,this.prev=pl.Undefined}};dl.Undefined=new dl(void 0);re=dl,e1=class{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let e=this._first;for(;e!==re.Undefined;){let t=e.next;e.prev=re.Undefined,e.next=re.Undefined,e=t}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new re(e);if(this._first===re.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!==re.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==re.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==re.Undefined&&e.next!==re.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===re.Undefined&&e.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):e.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):e.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==re.Undefined;)yield e.element,e=e.next}},t1=0,Rn=class{constructor(e){this.value=e,this.id=t1++}},On=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 Rn&&(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 Rn(t);return this._listeners?this._listeners instanceof Rn?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 Rn)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 Rn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},bt=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 On,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 e1,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},fl={};$A(fl,{None:()=>r1,filter:()=>i1,once:()=>mf,toPromise:()=>n1});r1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});cl=Symbol.for("Jolibox.hostEmitter"),o1=()=>{let e=new bt;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=o1();uo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new On,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 a1(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}};uo=Xp([nf],uo);hl=class{constructor(){this._onWillExecuteCommand=new On,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new On,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new uo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=VA(3e4)),this._starActivation}executeCommand(e,...t){return HA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),fl.toPromise(fl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};hl=Xp([nf],hl);vf=Symbol.for("Jolibox.commands")});function Ce(e,t={}){El.emit("ERROR_REPORT",{error:e,options:t})}var El,_r,ut=T(()=>{"use strict";D();D();El=new bt,_r=new bt;Ce.debounce=qn(Ce,50,{leading:!0})});var Sl,u1,gf,yf,_f=T(()=>{"use strict";D();ut();Sl=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{}}},u1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},gf=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:Sl(o),payloadJson:Sl(a),signature:Sl(s)}}else throw"joli_source is missing"}catch(r){return Ce(new cf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},yf=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=u1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var d1,xl,bf=T(()=>{"use strict";D();d1="1.1.34",xl=()=>d1});function f1(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var p1,wf,kl,If,ce,h1,S,Z=T(()=>{"use strict";D();_f();bf();D();p1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:ff(),adId:hf(),pixelRatio:window.devicePixelRatio||1,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:xl()},schema:window.location.href,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5"},kl=(wf=globalThis.joliboxJSCore)==null?void 0:wf.env,ce=Object.assign({},(If=kl==null?void 0:kl())!=null?If:p1);h1=()=>{var f,m,g,y,v,_,w,A,R,P,E;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?gf(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.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=(_=(v=(y=ce.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?_:n,l=!!((A=(w=e==null?void 0:e.testAdsMode)!=null?w:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(E=(P=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?P:o.get("joliboxEnv"))!=null?E:"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 k;return(k=o.get("joliSource"))!=null?k:null},get mpId(){var k;return(k=a!=null?a:e==null?void 0:e.id)!=null?k:""},get mpVersion(){var k;return(k=t==null?void 0:t.ver)!=null?k:xl()},get mpType(){var k,$;return($=(k=t==null?void 0:t.__mpType)!=null?k:e==null?void 0:e.__mpType)!=null?$:"game"},get platform(){var k;return((k=ce.platform)!=null?k:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var k,$;return($=(k=ce.clientSessionId)!=null?k:s)!=null?$:n},get channel(){return u},get webviewId(){var k;return(k=ce.webviewId)!=null?k:-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 k;return(k=ce.deviceInfo.adId)!=null?k:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return f1("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":"jolibox"},get viewport(){var $e,vt,gt;let k=($e=ce.deviceInfo.pixelRatio)!=null?$e:1,$=(vt=ce.deviceInfo.statusBarHeight)!=null?vt:e==null?void 0:e.__androidStatusBarHeight,Je=(gt=ce.deviceInfo.navigationBarHeight)!=null?gt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:$!==void 0?$/k:20,navigationBarHeight:Je!==void 0?Je/k:10}},onEnvConfigChanged:k=>{of(ce,k,af)},encodeJoliSourceQuery:k=>{var $,Je;return t&&r?yf(C(C({},e),k),($=o.get("joliSource"))!=null?$:""):(Je=o.get("joliSource"))!=null?Je:""},setDoExitDirectly:()=>{p=!1}}},S=h1()});var Al,Sf,m1,v1,Ef,g1,xf=T(()=>{"use strict";D();ut();Z();D();Al=!1,Sf=(e,t)=>e==null?!1:t in e,m1=e=>Sf(e,"kind"),v1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Ef=(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:v1(e.name)},i=L(C({},n),{env:t.environment,isFromUser:r});r?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},g1=e=>Sf(e,"kind")&&e.kind==="USER_ERROR";El.on("ERROR_REPORT",({error:e,options:t})=>{if(Al)return;Al=!0;let r=m1(e)&&e.raw?e.raw:e;try{let n=g1(e);Ef(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new _l(`${i}, origin error: ${r.message}`);_t.error(o),Ef(new _l(o.message),{environment:t.environment},!1)}finally{Al=!1}})});var tr,Tl,Mr=T(()=>{"use strict";ut();D();ut();tr=(e,t)=>{var r,n;return new Ln((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Tl=e=>new sf(e)});var kf=T(()=>{"use strict";xf();Mr();D();Te();_r.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});_r.on("GLOBAL_USER_ERROR",(e,t)=>{_t.log("UserError",e,t)})});var Cl=T(()=>{"use strict"});function Af(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=ot(c,["eventType"]),l=L(C({tag:n,eventType:a!=null?a:me.Other},t),{extra:C({},s)});n=="globalJsError"?Ce(new df(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=qn(r,500,{leading:!0}),r}function Tf(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=qn(t,500,{leading:!0}),t}var Cf=T(()=>{"use strict";D();D();ut()});function Pf(e,t){let r=Af(e,t),n=Tf(r);return{track:r,trackPerformance:n}}var Rf=T(()=>{"use strict";Cf()});var Of=T(()=>{"use strict";Z();D();D()});var Nf=T(()=>{"use strict";Rf();Cl();Of()});var mo,Df=T(()=>{"use strict";mo=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 vo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return ze("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=ot(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=ot(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else _t.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>I(this,[f,...m],function*(u,p={}){let g=Date.now(),y=y1(u,L(C({},p),{baseUrl:i})),{method:v="GET",responseType:_="text",dataType:w="json",timeout:A,enableCache:R=!1,appendHostCookie:P=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),k={url:y,method:v,header:E,enableCache:R,responseType:_,appendHostCookie:P};if(v=="POST"||v=="PUT"){let gt=b1(p.data,E["content-type"]);k.data=gt}A&&Object.assign(k,{timeout:A});let{data:{requestTaskId:$}}=F(e,k);if(typeof $!="string")throw tr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Je,reject:$e,promise:vt}=new yt;n.set($,{resolve:Je,reject:$e});try{let gt=yield vt,{data:gr}=gt;return w==="json"&&typeof gr=="string"&&(gr=_1(gr)),{url:y,timeout:A,method:v,response:L(C({},gt),{data:gr})}}catch(gt){let gr=gt;if(yr(gr)){let{errMsg:Hs,prefetchDetail:$J,isPrefetch:HJ,errNo:Ok}=gr;Nn(Hs)&&Ce(tr({code:-1,msg:Hs},{errNo:Ok,errMsg:Hs}))}throw gt}})}function _1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function b1(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 y1,Pl=T(()=>{"use strict";D();Te();ut();Mr();y1=(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 Rl,qf,ne,wt=T(()=>{"use strict";Pl();Z();Rl={};(qf=S.hostUserInfo)!=null&&qf.token&&(Rl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Rl["x-joli-source"]=S.joliSource);ne=vo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Rl})});var go,Lf=T(()=>{"use strict";Z();Df();wt();Te();go=class extends mo{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 I(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:C({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ne("/api/base/app-event",{method:"POST",data:i}):he("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return I(this,null,function*(){let{event:r,params:n}=t;yield he("userTrackAsync",{event:r,params:C({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Bf={};xp(Bf,{nativeTaskEmitter:()=>Mn,taskTracker:()=>qt,track:()=>K,trackPerformance:()=>jf});var w1,Ff,Mf,K,jf,Uf,Mn,qt,Lt=T(()=>{"use strict";kf();D();Cl();Nf();Z();Lf();Te();w1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=yr(n.extra)?n.extra:Nn(n.extra)?JSON.parse(n.extra):{},o=L(C({},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:me.Other;F("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:K,trackPerformance:jf}=Pf(w1,{type:wl.AppSDK,platform:"native",jssdk_version:(Mf=(Ff=S.sdkInfo)==null?void 0:Ff.jssdkVersion)!=null?Mf:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Uf=ve();Uf.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{jf(e,t,r)});Uf.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{K(e,t)});Mn=new bt,qt=new go(K,Mn)});function Jf(){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 Dk=Object.create;var no=Object.defineProperty,qk=Object.defineProperties,Lk=Object.getOwnPropertyDescriptor,Fk=Object.getOwnPropertyDescriptors,Mk=Object.getOwnPropertyNames,ro=Object.getOwnPropertySymbols,jk=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable;var Ep=(e,t,r)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))Vs.call(t,r)&&Ep(e,r,t[r]);if(ro)for(var r of ro(t))Sp.call(t,r)&&Ep(e,r,t[r]);return e},L=(e,t)=>qk(e,Fk(t));var ot=(e,t)=>{var r={};for(var n in e)Vs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ro)for(var n of ro(e))t.indexOf(n)<0&&Sp.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xp=(e,t)=>{for(var r in t)no(e,r,{get:t[r],enumerable:!0})},Uk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Mk(t))!Vs.call(e,i)&&i!==r&&no(e,i,{get:()=>t[i],enumerable:!(n=Lk(t,i))||n.enumerable});return e};var le=(e,t,r)=>(r=e!=null?Dk(jk(e)):{},Uk(t||!e||!e.__esModule?no(r,"default",{value:e,enumerable:!0}):r,e));var I=(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 zk(e){return!!(e!=null&&e.__nativeBuffers__)}function Zs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!zk(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=Gk(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function Kk(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:Wk(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function Xk(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Mp(e){return typeof e=="string"}function Lr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ap(e){return typeof e=="number"&&!isNaN(e)}function tA(e){return typeof e=="undefined"}function rA(e){return tA(e)||e===null}function jp(e){return typeof e=="function"}function nA(e){return Lr(e)&&jp(e.then)}function Up(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function uA(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 mA(){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 bA(e){return new Promise(t=>Bp(e)(t))}function Bp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function wA(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Cn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function EA(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)SA(e[n],t[n])}function SA(e,t){if(Mp(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jp(t)){try{if(e instanceof t)return}catch(r){}if(!rA(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 sl(e,t){if(el.config[e]){co.warn(`[can i use] ${e} already registered`);return}el.config[e]=Dt({},t)}function Pp(e,t){return`[${e}]:${t}`}function PA(e,t){Rp||(Ws=new oo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ks=new oo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Qs=new oo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ws.flush(),Ks.flush(),Qs.flush()}),Rp=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ws.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ks.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Qs.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function DA(e,t){let r=0,n=!0,i=NA.resolveMap,o=PA(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ys.forEach(l=>so(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Ys.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Zs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new eA;if(i.set(r,m.resolve),!n&&AA.includes(l))return new Promise(A=>{Ys.push({method:l,args:c,resolve:A})});let g=Hk(Dt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!RA&&kA.includes(l),v=Kk(c,y),_=y?v:JSON.stringify(v),w;if(l.endsWith("Sync")||TA.includes(l)?w=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof _=="string"?w=e.invoke(l,_,r):w=(u=e.call)==null?void 0:u.call(e,l,_,r),w){try{typeof w=="string"&&(w=JSON.parse(w)),w=Zs(w)}catch(A){co.error(A)}return i.delete(r),w.errorCode&&(w.errorCode=Pp(l,w.errorCode)),o(Dt(Dt({},g),w)),w}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Pp(l,A.errorCode)),o(Dt(Dt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return nA(d)?d.then(u=>Op(l,u)):Op(l,d)},invokeHandler:a}}function Op(e,t){if(!Lr(t)){co.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=Vk(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new sA(n,i,o,a);return s}function qA(e){if(globalThis[io])return globalThis[io];let t=new nl,r=new nl,n=new oo({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[io]={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=Zs(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===$p){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Tn.length),u,a)}catch(p){}});return}if(i.startsWith(Tn)){r.emit(i.slice(Tn.length),l,a);return}t.emit(i,l,a)}},globalThis[io]}function LA(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${Tn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish($p,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${Tn}${n}`,i])}}function FA(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=qA(e),{invokeNative:a,invokeHandler:s,applyNative:l}=DA(e,r),c=LA(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Hp(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var Bk,Jk,$k,ao,Dp,qp,kp,Dt,Hk,Vk,so,Gk,Wk,Lp,Qk,Yk,Fp,Zk,eA,iA,oA,lo,aA,sA,lA,zs,co,Tp,cA,Xs,dA,el,pA,fA,hA,vA,zJ,tl,te,gA,yA,An,Cn,nl,il,_A,Gs,IA,GJ,ol,Cp,WJ,Jp,xA,Tn,kA,AA,TA,$p,CA,oo,Rp,Ws,Ks,Qs,Ys,RA,al,OA,NA,io,ll,at,Vp,zp,MA,Gp,Np,he,F,ze,KJ,jA,Wp,QJ,YJ,Te=T(()=>{"use strict";Bk=Object.defineProperty,Jk=Object.defineProperties,$k=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable,kp=(e,t,r)=>t in e?Bk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t)=>{for(var r in t||(t={}))Dp.call(t,r)&&kp(e,r,t[r]);if(ao)for(var r of ao(t))qp.call(t,r)&&kp(e,r,t[r]);return e},Hk=(e,t)=>Jk(e,$k(t)),Vk=(e,t)=>{var r={};for(var n in e)Dp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ao)for(var n of ao(e))t.indexOf(n)<0&&qp.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())});Gk=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};Wk=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)};Lp=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,Yk=(e,t)=>{for(var r in t)Lp(e,r,{get:t[r],enumerable:!0})},Fp=(e,t,r,n)=>{for(var i=n>1?void 0:n?Qk(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&&Lp(t,r,i),i},Zk=(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}eA=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))}})}};iA=(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))(iA||{}),oA=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}},lo=class extends oA{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},aA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},sA=class extends lo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},lA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},zs=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};co={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:co});Tp=Symbol.for("Jolibox.canIUseMap"),cA={};globalThis[Tp]||(globalThis[Tp]=cA);Xs=Symbol.for("Jolibox.canIUseMap.native"),dA={};globalThis[Xs]||(globalThis[Xs]=dA);el={get config(){return globalThis[Xs]}},pA=(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))(pA||{}),fA=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(fA||{}),hA=(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))(hA||{});mA();vA=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),zJ={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")},tl=class rl{constructor(t){this.element=t,this.next=rl.Undefined,this.prev=rl.Undefined}};tl.Undefined=new tl(void 0);te=tl,gA=class{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){let t=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=t}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new te(e);if(this._first===te.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!==te.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}},yA=0,An=class{constructor(e){this.value=e,this.id=yA++}},Cn=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 An&&(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 An(t);return this._listeners?this._listeners instanceof An?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 An)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 An?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},nl=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 Cn,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 gA,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)}},il={};Yk(il,{None:()=>_A,filter:()=>wA,once:()=>Bp,toPromise:()=>bA});_A=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Gs=Symbol.for("Jolibox.hostEmitter"),IA=()=>{let e=new nl;return globalThis[Gs]||(globalThis[Gs]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Gs]},GJ=IA();ol=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Cn,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 EA(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};ol=Fp([Up],ol);Cp=class{constructor(){this._onWillExecuteCommand=new Cn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Cn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ol,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Xk(3e4)),this._starActivation}executeCommand(e,...t){return Zk(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),il.toPromise(il.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}}};Cp=Fp([Up],Cp);WJ=Symbol.for("Jolibox.commands");sl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});sl("requestProductDetailsAsync",{version:102e4});sl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Jp=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=el.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=uA(n,i);if(!a)return!1;if(Lr(a)){let s=a.version;return Ap(s)?typeof o=="number"&&o>=s:!0}return Ap(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};xA=()=>vA(),Tn="custom_event_",kA=[],AA=[],TA=["env","createRequestTask","login"],$p="__batch_event__",CA=e=>e==="pv"?e:"default",oo=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=CA(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&&Lr(a))throw new zs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Lr(a))l.push(...Object.keys(a));else if(Mp(a)){if(i.length>0)throw new zs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new zs(`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=Lr(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={}}},Rp=!1;Ys=[],RA=!1,al=Symbol.for("Jolibox.invokeResolverInstance"),OA=new Map;globalThis[al]||(globalThis[al]=OA);NA={get resolveMap(){return globalThis[al]}};io=Symbol.for("Jolibox.subscribeInstance");at={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){at.trigger=e},onDoExit(e){at.exit=e},onDoBackPress(e){at.backPress=e}},Vp=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new aA("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="")=>{at.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>so(void 0,null,function*(){let o=yield at.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ll={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Hp(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:Vp,doExit:r};globalThis.joliboxJSCore=Dt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{at.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>so(void 0,null,function*(){let a=yield at.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ll={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Hp(a,"joliboxJSCore");t.publish({event:o,paramsString:JSON.stringify(l),webviewIds:s})},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return so(this,null,function*(){let a=yield at.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Vp,doExit:n};globalThis.joliboxJSCore=Dt({},i)}zp=ll;if(!zp&&xA())throw new lA("No joliboxJScore is found, native bridge not found.");MA=Dt({},zp),Gp=FA(MA),{invokeHandler:Np}=Gp,{applyNative:he,invokeNative:F,onNative:ze,offNative:KJ,subscribeHandler:jA,publish:Wp,subscribe:QJ,unsubscribe:YJ}=Gp;globalThis.joliboxJSBridge={callHandler:Np,invokeHandler:Np,subscribeHandler:jA}});function zA(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Nn(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function ef(e){return typeof e=="object"&&Array.isArray(e)}function tf(e){return typeof e=="number"&&!isNaN(e)}function Dn(e){return e===!0||e===!1}function rf(e){return typeof e=="undefined"}function vl(e){return rf(e)||e===null}function GA(e){return typeof e=="function"}function nf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function of(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:Yp(l)&&Yp(s)?i[a]=n($A({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Yp(e){return e&&typeof e=="object"&&e.constructor===Object}function af(e,t){if(Array.isArray(e))return e.concat(t)}function qn(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 KA(e,t){return(...r)=>t(e,...r)}function fo(e){return t=>KA(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Fr(`${i}`))}})}function Pn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Il(){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 i1(e){return new Promise(t=>mf(e)(t))}function mf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function o1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new On(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function s1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)l1(e[n],t[n])}function l1(e,t){if(Nn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(GA(t)){try{if(e instanceof t)return}catch(r){}if(!vl(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 c1(){return typeof globalThis!="undefined"?globalThis[vf]:void 0}function u1(e){typeof globalThis!="undefined"&&(globalThis[vf]=e)}function ve(){let e=c1();if(e)return e;let t=new uo,r=new hl,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return u1(n),n}var ml,UA,Kp,BA,JA,Qp,$A,HA,Xp,VA,yt,WA,gl,po,yl,sf,Fr,lf,cf,uf,df,Ln,_l,_t,ul,QA,bl,Zp,YA,me,wl,ZA,ho,Fn,XA,e1,pf,ff,hf,dl,re,t1,r1,Rn,On,bt,fl,n1,cl,a1,Ee,uo,hl,vf,D=T(()=>{"use strict";ml=Object.defineProperty,UA=Object.getOwnPropertyDescriptor,Kp=Object.getOwnPropertySymbols,BA=Object.prototype.hasOwnProperty,JA=Object.prototype.propertyIsEnumerable,Qp=(e,t,r)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$A=(e,t)=>{for(var r in t||(t={}))BA.call(t,r)&&Qp(e,r,t[r]);if(Kp)for(var r of Kp(t))JA.call(t,r)&&Qp(e,r,t[r]);return e},HA=(e,t)=>{for(var r in t)ml(e,r,{get:t[r],enumerable:!0})},Xp=(e,t,r,n)=>{for(var i=n>1?void 0:n?UA(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ml(t,r,i),i},VA=(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}yt=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))}})}};WA=(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))(WA||{}),gl=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}},po=class extends gl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},yl=class extends gl{constructor(){super(...arguments),this.kind="USER_ERROR"}},sf=class extends yl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Fr=class extends yl{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))}},lf=class extends yl{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))}},cf=class extends po{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},uf=class extends po{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))}},df=class extends po{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Ln=class extends gl{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}}},_l=class extends po{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};_t={log:Pn("log"),warn:Pn("warn"),info:Pn("info"),error:Pn("error"),debug:Pn("debug")};Object.assign(globalThis,{logger:_t});ul=Symbol.for("Jolibox.canIUseMap"),QA={};globalThis[ul]||(globalThis[ul]=QA);bl={get config(){return globalThis[ul]}},Zp=Symbol.for("Jolibox.canIUseMap.native"),YA={};globalThis[Zp]||(globalThis[Zp]=YA);me=(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))(me||{}),wl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(wl||{}),ZA=(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))(ZA||{}),ho=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Il();Fn={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")},XA="device_id",e1="advertising_id",pf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,ho()),window.__joliboxLocalStorage__.getItem(e)),ff=()=>new URLSearchParams(window.location.search).get("deviceId")||pf(XA),hf=()=>new URLSearchParams(window.location.search).get("advertisingId")||pf(e1),dl=class pl{constructor(t){this.element=t,this.next=pl.Undefined,this.prev=pl.Undefined}};dl.Undefined=new dl(void 0);re=dl,t1=class{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let e=this._first;for(;e!==re.Undefined;){let t=e.next;e.prev=re.Undefined,e.next=re.Undefined,e=t}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new re(e);if(this._first===re.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!==re.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==re.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==re.Undefined&&e.next!==re.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===re.Undefined&&e.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):e.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):e.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==re.Undefined;)yield e.element,e=e.next}},r1=0,Rn=class{constructor(e){this.value=e,this.id=r1++}},On=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 Rn&&(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 Rn(t);return this._listeners?this._listeners instanceof Rn?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 Rn)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 Rn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},bt=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 On,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 t1,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},fl={};HA(fl,{None:()=>n1,filter:()=>o1,once:()=>mf,toPromise:()=>i1});n1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});cl=Symbol.for("Jolibox.hostEmitter"),a1=()=>{let e=new bt;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=a1();uo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new On,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 s1(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}};uo=Xp([nf],uo);hl=class{constructor(){this._onWillExecuteCommand=new On,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new On,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new uo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=zA(3e4)),this._starActivation}executeCommand(e,...t){return VA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),fl.toPromise(fl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};hl=Xp([nf],hl);vf=Symbol.for("Jolibox.commands")});function Ce(e,t={}){El.emit("ERROR_REPORT",{error:e,options:t})}var El,_r,ut=T(()=>{"use strict";D();D();El=new bt,_r=new bt;Ce.debounce=qn(Ce,50,{leading:!0})});var Sl,d1,gf,yf,_f=T(()=>{"use strict";D();ut();Sl=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{}}},d1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},gf=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:Sl(o),payloadJson:Sl(a),signature:Sl(s)}}else throw"joli_source is missing"}catch(r){return Ce(new cf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},yf=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=d1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var p1,xl,bf=T(()=>{"use strict";D();p1="1.1.35",xl=()=>p1});function wf(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var f1,If,kl,Ef,ce,h1,S,Z=T(()=>{"use strict";D();_f();bf();D();f1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:ff(),adId:hf(),pixelRatio:window.devicePixelRatio||1,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:xl()},schema:window.location.href,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5"},kl=(If=globalThis.joliboxJSCore)==null?void 0:If.env,ce=Object.assign({},(Ef=kl==null?void 0:kl())!=null?Ef:f1);h1=()=>{var f,m,g,y,v,_,w,A,R,P,E;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?gf(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.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=(_=(v=(y=ce.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?_:n,l=!!((A=(w=e==null?void 0:e.testAdsMode)!=null?w:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(E=(P=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?P:o.get("joliboxEnv"))!=null?E:"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 k;return(k=o.get("joliSource"))!=null?k:null},get mpId(){var k;return(k=a!=null?a:e==null?void 0:e.id)!=null?k:""},get mpVersion(){var k;return(k=t==null?void 0:t.ver)!=null?k:xl()},get mpType(){var k,H;return(H=(k=t==null?void 0:t.__mpType)!=null?k:e==null?void 0:e.__mpType)!=null?H:"game"},get platform(){var k;return((k=ce.platform)!=null?k:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var k,H;return(H=(k=ce.clientSessionId)!=null?k:s)!=null?H:n},get channel(){return u},get webviewId(){var k;return(k=ce.webviewId)!=null?k:-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 k;return(k=ce.deviceInfo.adId)!=null?k:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return wf("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":wf("gamedistribution","jolibox")?"gamedistribution":"jolibox"},get viewport(){var $e,vt,gt;let k=($e=ce.deviceInfo.pixelRatio)!=null?$e:1,H=(vt=ce.deviceInfo.statusBarHeight)!=null?vt:e==null?void 0:e.__androidStatusBarHeight,Je=(gt=ce.deviceInfo.navigationBarHeight)!=null?gt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:H!==void 0?H/k:20,navigationBarHeight:Je!==void 0?Je/k:10}},onEnvConfigChanged:k=>{of(ce,k,af)},encodeJoliSourceQuery:k=>{var H,Je;return t&&r?yf(C(C({},e),k),(H=o.get("joliSource"))!=null?H:""):(Je=o.get("joliSource"))!=null?Je:""},setDoExitDirectly:()=>{p=!1}}},S=h1()});var Al,xf,m1,v1,Sf,g1,kf=T(()=>{"use strict";D();ut();Z();D();Al=!1,xf=(e,t)=>e==null?!1:t in e,m1=e=>xf(e,"kind"),v1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Sf=(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:v1(e.name)},i=L(C({},n),{env:t.environment,isFromUser:r});r?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},g1=e=>xf(e,"kind")&&e.kind==="USER_ERROR";El.on("ERROR_REPORT",({error:e,options:t})=>{if(Al)return;Al=!0;let r=m1(e)&&e.raw?e.raw:e;try{let n=g1(e);Sf(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new _l(`${i}, origin error: ${r.message}`);_t.error(o),Sf(new _l(o.message),{environment:t.environment},!1)}finally{Al=!1}})});var tr,Tl,Mr=T(()=>{"use strict";ut();D();ut();tr=(e,t)=>{var r,n;return new Ln((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Tl=e=>new sf(e)});var Af=T(()=>{"use strict";kf();Mr();D();Te();_r.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});_r.on("GLOBAL_USER_ERROR",(e,t)=>{_t.log("UserError",e,t)})});var Cl=T(()=>{"use strict"});function Tf(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=ot(c,["eventType"]),l=L(C({tag:n,eventType:a!=null?a:me.Other},t),{extra:C({},s)});n=="globalJsError"?Ce(new df(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=qn(r,500,{leading:!0}),r}function Cf(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=qn(t,500,{leading:!0}),t}var Pf=T(()=>{"use strict";D();D();ut()});function Rf(e,t){let r=Tf(e,t),n=Cf(r);return{track:r,trackPerformance:n}}var Of=T(()=>{"use strict";Pf()});var Nf=T(()=>{"use strict";Z();D();D()});var Df=T(()=>{"use strict";Of();Cl();Nf()});var mo,qf=T(()=>{"use strict";mo=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 vo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return ze("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=ot(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=ot(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else _t.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>I(this,[f,...m],function*(u,p={}){let g=Date.now(),y=y1(u,L(C({},p),{baseUrl:i})),{method:v="GET",responseType:_="text",dataType:w="json",timeout:A,enableCache:R=!1,appendHostCookie:P=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),k={url:y,method:v,header:E,enableCache:R,responseType:_,appendHostCookie:P};if(v=="POST"||v=="PUT"){let gt=b1(p.data,E["content-type"]);k.data=gt}A&&Object.assign(k,{timeout:A});let{data:{requestTaskId:H}}=F(e,k);if(typeof H!="string")throw tr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Je,reject:$e,promise:vt}=new yt;n.set(H,{resolve:Je,reject:$e});try{let gt=yield vt,{data:gr}=gt;return w==="json"&&typeof gr=="string"&&(gr=_1(gr)),{url:y,timeout:A,method:v,response:L(C({},gt),{data:gr})}}catch(gt){let gr=gt;if(yr(gr)){let{errMsg:Hs,prefetchDetail:$J,isPrefetch:HJ,errNo:Nk}=gr;Nn(Hs)&&Ce(tr({code:-1,msg:Hs},{errNo:Nk,errMsg:Hs}))}throw gt}})}function _1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function b1(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 y1,Pl=T(()=>{"use strict";D();Te();ut();Mr();y1=(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 Rl,Lf,ne,wt=T(()=>{"use strict";Pl();Z();Rl={};(Lf=S.hostUserInfo)!=null&&Lf.token&&(Rl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Rl["x-joli-source"]=S.joliSource);ne=vo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Rl})});var go,Ff=T(()=>{"use strict";Z();qf();wt();Te();go=class extends mo{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 I(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:C({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ne("/api/base/app-event",{method:"POST",data:i}):he("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return I(this,null,function*(){let{event:r,params:n}=t;yield he("userTrackAsync",{event:r,params:C({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Jf={};xp(Jf,{nativeTaskEmitter:()=>Mn,taskTracker:()=>qt,track:()=>K,trackPerformance:()=>Uf});var w1,Mf,jf,K,Uf,Bf,Mn,qt,Lt=T(()=>{"use strict";Af();D();Cl();Df();Z();Ff();Te();w1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=yr(n.extra)?n.extra:Nn(n.extra)?JSON.parse(n.extra):{},o=L(C({},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:me.Other;F("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:K,trackPerformance:Uf}=Rf(w1,{type:wl.AppSDK,platform:"native",jssdk_version:(jf=(Mf=S.sdkInfo)==null?void 0:Mf.jssdkVersion)!=null?jf:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Bf=ve();Bf.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Uf(e,t,r)});Bf.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{K(e,t)});Mn=new bt,qt=new go(K,Mn)});function $f(){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,10 +16,10 @@ var Nk=Object.create;var no=Object.defineProperty,Dk=Object.defineProperties,qk=
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 I(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 $f=T(()=>{"use strict";Z()});var Hf=T(()=>{"use strict"});var Vf=T(()=>{"use strict";D();Il()});var zf=T(()=>{"use strict";Z()});var yo,Ol=T(()=>{"use strict";Hf();Vf();Z();zf();D();yo=new bt});function Ft(e,t){for(var r in t)e[r]=t[r];return e}function Ml(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Le(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?Io.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 bo(e,a,n,i,null)}function bo(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?++Qf:i,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(o),o}function Ze(e){return e.children}function Ye(e,t){this.props=e,this.context=t}function jr(e,t){if(t==null)return e.__?jr(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"?jr(e):null}function rh(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 rh(e)}}function ql(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!wo.__r++||Gf!==O.debounceRendering)&&((Gf=O.debounceRendering)||Yf)(wo)}function wo(){for(var e,t,r,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(Zf),e=br.shift(),s=br.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Ft({},n)).__v=n.__v+1,O.vnode&&O.vnode(r),jl(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?jr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,oh(o,r,a),r.__e!=i&&rh(r)));wo.__r=0}function nh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||th,_=t.length;for(l=E1(r,t,v,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?jn:v[f.__i]||jn,f.__i=u,y=jl(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ul(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=ih(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function E1(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?bo(null,a,null,null,null):Un(a)?bo(Ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?bo(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=S1(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=jr(s)),sh(s,s));return n}function ih(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=ih(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=jr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Bn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){Bn(r,t)}):t.push(e)),t}function S1(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 Wf(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||I1.test(t)?r:r+"px"}function _o(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||Wf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wf(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Xf,"$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=Fl,e.addEventListener(t,o?Dl:Nl,o)):e.removeEventListener(t,o?Dl:Nl,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 Kf(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Fl++;else if(t.u<r.t)return;return r(O.event?O.event(t):t)}}}function jl(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,_,w,A,R,P,E,k,$,Je,$e=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=O.__b)&&d(t);e:if(typeof $e=="function")try{if(v=t.props,_="prototype"in $e&&$e.prototype.render,w=(d=$e.contextType)&&n[d.__c],A=d?w?w.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new $e(v,A):(t.__c=u=new Ye(v,A),u.constructor=$e,u.render=k1),w&&w.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&$e.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ft({},u.__s)),Ft(u.__s,$e.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&$e.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&$e.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(vt){vt&&(vt.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),_&&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,P=O.__r,E=0,_){for(u.state=u.__s,u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=Ft(Ft({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),$=d,d!=null&&d.type===Ze&&d.key==null&&($=ah(d.props.children)),s=nh(e,Un($)?$:[$],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(vt){if(t.__v=null,l||o!=null)if(vt.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(Je=o.length;Je--;)Ml(o[Je]);else t.__e=r.__e,t.__k=r.__k;O.__e(vt,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=x1(r.__e,t,r,n,i,o,a,l,c);return(d=O.diffed)&&d(t),128&t.__u?void 0:s}function oh(e,t,r){for(var n=0;n<r.length;n++)Ul(r[n],r[++n],r[++n]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){O.__e(o,i.__v)}})}function ah(e){return typeof e!="object"||e==null?e:Un(e)?e.map(ah):Ft({},e)}function x1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="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==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(v);e=document.createElementNS(i,_,v.is&&v),s&&(O.__m&&O.__m(t,o),s=!1),o=null}if(_===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Io.call(e.childNodes),y=r.props||jn,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;_o(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||_o(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),nh(t.type==="template"?e.content:e,Un(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&jr(r,0),s,l),o!=null)for(c=o.length;c--;)Ml(o[c]);s||(c="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||_=="progress"&&!m||_=="option"&&m!==y[c])&&_o(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&_o(e,c,g,y[c],i))}return e}function Ul(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){O.__e(i,r)}}function sh(e,t,r){var n,i;if(O.unmount&&O.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ul(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){O.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&sh(n[i],t,r||typeof e.type!="function");r||Ml(e.__e),e.__c=e.__=e.__e=void 0}function k1(e,t,r){return this.constructor(e,r)}function rr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),O.__&&O.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],jl(t,e=(!n&&r||t).__k=Le(Ze,null,[e]),i||jn,jn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Io.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),oh(o,e,a)}function wr(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,ql(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"+eh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Io,O,Qf,Ll,br,Gf,Yf,Zf,Xf,Fl,Nl,Dl,eh,jn,th,I1,Un,Ur=T(()=>{jn={},th=[],I1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;Io=th.slice,O={__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}},Qf=0,Ll=function(e){return e!=null&&e.constructor==null},Ye.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ft({},this.state),typeof e=="function"&&(e=e(Ft({},r),this.props)),e&&Ft(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ql(this))},Ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ql(this))},Ye.prototype.render=Ze,br=[],Yf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zf=function(e,t){return e.__v.__b-t.__v.__b},wo.__r=0,Xf=/(PointerCapture)$|Capture$/i,Fl=0,Nl=Kf(!1),Dl=Kf(!0),eh=0});var ae=h((S9,lh)=>{"use strict";lh.exports=function(e){try{return!!e()}catch(t){return!0}}});var Br=h((x9,ch)=>{"use strict";var A1=ae();ch.exports=!A1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ge=h((k9,ph)=>{"use strict";var uh=Br(),dh=Function.prototype,Bl=dh.call,T1=uh&&dh.bind.bind(Bl,Bl);ph.exports=uh?T1:function(e){return function(){return Bl.apply(e,arguments)}}});var He=h((A9,fh)=>{"use strict";var C1=ge();fh.exports=C1({}.isPrototypeOf)});var se=h((Jl,hh)=>{"use strict";var Jn=function(e){return e&&e.Math===Math&&e};hh.exports=Jn(typeof globalThis=="object"&&globalThis)||Jn(typeof window=="object"&&window)||Jn(typeof self=="object"&&self)||Jn(typeof global=="object"&&global)||Jn(typeof Jl=="object"&&Jl)||function(){return this}()||Function("return this")()});var $l=h((T9,yh)=>{"use strict";var P1=Br(),gh=Function.prototype,mh=gh.apply,vh=gh.call;yh.exports=typeof Reflect=="object"&&Reflect.apply||(P1?vh.bind(mh):function(){return vh.apply(mh,arguments)})});var Mt=h((C9,bh)=>{"use strict";var _h=ge(),R1=_h({}.toString),O1=_h("".slice);bh.exports=function(e){return O1(R1(e),8,-1)}});var $n=h((P9,wh)=>{"use strict";var N1=Mt(),D1=ge();wh.exports=function(e){if(N1(e)==="Function")return D1(e)}});var Pe=h((R9,Ih)=>{"use strict";var Hl=typeof document=="object"&&document.all;Ih.exports=typeof Hl=="undefined"&&Hl!==void 0?function(e){return typeof e=="function"||e===Hl}:function(e){return typeof e=="function"}});var Ve=h((O9,Eh)=>{"use strict";var q1=ae();Eh.exports=!q1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var dt=h((N9,Sh)=>{"use strict";var L1=Br(),Eo=Function.prototype.call;Sh.exports=L1?Eo.bind(Eo):function(){return Eo.apply(Eo,arguments)}});var Vl=h(Ah=>{"use strict";var xh={}.propertyIsEnumerable,kh=Object.getOwnPropertyDescriptor,F1=kh&&!xh.call({1:2},1);Ah.f=F1?function(t){var r=kh(this,t);return!!r&&r.enumerable}:xh});var Hn=h((q9,Th)=>{"use strict";Th.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var So=h((L9,Ch)=>{"use strict";var M1=ge(),j1=ae(),U1=Mt(),zl=Object,B1=M1("".split);Ch.exports=j1(function(){return!zl("z").propertyIsEnumerable(0)})?function(e){return U1(e)==="String"?B1(e,""):zl(e)}:zl});var Ir=h((F9,Ph)=>{"use strict";Ph.exports=function(e){return e==null}});var Er=h((M9,Rh)=>{"use strict";var J1=Ir(),$1=TypeError;Rh.exports=function(e){if(J1(e))throw new $1("Can't call method on "+e);return e}});var nr=h((j9,Oh)=>{"use strict";var H1=So(),V1=Er();Oh.exports=function(e){return H1(V1(e))}});var Se=h((U9,Nh)=>{"use strict";var z1=Pe();Nh.exports=function(e){return typeof e=="object"?e!==null:z1(e)}});var It=h((B9,Dh)=>{"use strict";Dh.exports={}});var Jr=h((J9,Lh)=>{"use strict";var Gl=It(),Wl=se(),G1=Pe(),qh=function(e){return G1(e)?e:void 0};Lh.exports=function(e,t){return arguments.length<2?qh(Gl[e])||qh(Wl[e]):Gl[e]&&Gl[e][t]||Wl[e]&&Wl[e][t]}});var xo=h(($9,jh)=>{"use strict";var W1=se(),Fh=W1.navigator,Mh=Fh&&Fh.userAgent;jh.exports=Mh?String(Mh):""});var Ao=h((H9,Vh)=>{"use strict";var Hh=se(),Kl=xo(),Uh=Hh.process,Bh=Hh.Deno,Jh=Uh&&Uh.versions||Bh&&Bh.version,$h=Jh&&Jh.v8,pt,ko;$h&&(pt=$h.split("."),ko=pt[0]>0&&pt[0]<4?1:+(pt[0]+pt[1]));!ko&&Kl&&(pt=Kl.match(/Edge\/(\d+)/),(!pt||pt[1]>=74)&&(pt=Kl.match(/Chrome\/(\d+)/),pt&&(ko=+pt[1])));Vh.exports=ko});var Ql=h((V9,Gh)=>{"use strict";var zh=Ao(),K1=ae(),Q1=se(),Y1=Q1.String;Gh.exports=!!Object.getOwnPropertySymbols&&!K1(function(){var e=Symbol("symbol detection");return!Y1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zh&&zh<41})});var Yl=h((z9,Wh)=>{"use strict";var Z1=Ql();Wh.exports=Z1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Zl=h((G9,Kh)=>{"use strict";var X1=Jr(),eT=Pe(),tT=He(),rT=Yl(),nT=Object;Kh.exports=rT?function(e){return typeof e=="symbol"}:function(e){var t=X1("Symbol");return eT(t)&&tT(t.prototype,nT(e))}});var Vn=h((W9,Qh)=>{"use strict";var iT=String;Qh.exports=function(e){try{return iT(e)}catch(t){return"Object"}}});var Sr=h((K9,Yh)=>{"use strict";var oT=Pe(),aT=Vn(),sT=TypeError;Yh.exports=function(e){if(oT(e))return e;throw new sT(aT(e)+" is not a function")}});var To=h((Q9,Zh)=>{"use strict";var lT=Sr(),cT=Ir();Zh.exports=function(e,t){var r=e[t];return cT(r)?void 0:lT(r)}});var em=h((Y9,Xh)=>{"use strict";var Xl=dt(),ec=Pe(),tc=Se(),uT=TypeError;Xh.exports=function(e,t){var r,n;if(t==="string"&&ec(r=e.toString)&&!tc(n=Xl(r,e))||ec(r=e.valueOf)&&!tc(n=Xl(r,e))||t!=="string"&&ec(r=e.toString)&&!tc(n=Xl(r,e)))return n;throw new uT("Can't convert object to primitive value")}});var $r=h((Z9,tm)=>{"use strict";tm.exports=!0});var im=h((X9,nm)=>{"use strict";var rm=se(),dT=Object.defineProperty;nm.exports=function(e,t){try{dT(rm,e,{value:t,configurable:!0,writable:!0})}catch(r){rm[e]=t}return t}});var zn=h((eH,sm)=>{"use strict";var pT=$r(),fT=se(),hT=im(),om="__core-js_shared__",am=sm.exports=fT[om]||hT(om,{});(am.versions||(am.versions=[])).push({version:"3.41.0",mode:pT?"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 rc=h((tH,cm)=>{"use strict";var lm=zn();cm.exports=function(e,t){return lm[e]||(lm[e]=t||{})}});var Hr=h((rH,um)=>{"use strict";var mT=Er(),vT=Object;um.exports=function(e){return vT(mT(e))}});var Xe=h((nH,dm)=>{"use strict";var gT=ge(),yT=Hr(),_T=gT({}.hasOwnProperty);dm.exports=Object.hasOwn||function(t,r){return _T(yT(t),r)}});var Co=h((iH,pm)=>{"use strict";var bT=ge(),wT=0,IT=Math.random(),ET=bT(1 .toString);pm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ET(++wT+IT,36)}});var Fe=h((oH,hm)=>{"use strict";var ST=se(),xT=rc(),fm=Xe(),kT=Co(),AT=Ql(),TT=Yl(),Vr=ST.Symbol,nc=xT("wks"),CT=TT?Vr.for||Vr:Vr&&Vr.withoutSetter||kT;hm.exports=function(e){return fm(nc,e)||(nc[e]=AT&&fm(Vr,e)?Vr[e]:CT("Symbol."+e)),nc[e]}});var ym=h((aH,gm)=>{"use strict";var PT=dt(),mm=Se(),vm=Zl(),RT=To(),OT=em(),NT=Fe(),DT=TypeError,qT=NT("toPrimitive");gm.exports=function(e,t){if(!mm(e)||vm(e))return e;var r=RT(e,qT),n;if(r){if(t===void 0&&(t="default"),n=PT(r,e,t),!mm(n)||vm(n))return n;throw new DT("Can't convert object to primitive value")}return t===void 0&&(t="number"),OT(e,t)}});var ic=h((sH,_m)=>{"use strict";var LT=ym(),FT=Zl();_m.exports=function(e){var t=LT(e,"string");return FT(t)?t:t+""}});var ac=h((lH,wm)=>{"use strict";var MT=se(),bm=Se(),oc=MT.document,jT=bm(oc)&&bm(oc.createElement);wm.exports=function(e){return jT?oc.createElement(e):{}}});var sc=h((cH,Im)=>{"use strict";var UT=Ve(),BT=ae(),JT=ac();Im.exports=!UT&&!BT(function(){return Object.defineProperty(JT("div"),"a",{get:function(){return 7}}).a!==7})});var lc=h(Sm=>{"use strict";var $T=Ve(),HT=dt(),VT=Vl(),zT=Hn(),GT=nr(),WT=ic(),KT=Xe(),QT=sc(),Em=Object.getOwnPropertyDescriptor;Sm.f=$T?Em:function(t,r){if(t=GT(t),r=WT(r),QT)try{return Em(t,r)}catch(n){}if(KT(t,r))return zT(!HT(VT.f,t,r),t[r])}});var km=h((dH,xm)=>{"use strict";var YT=ae(),ZT=Pe(),XT=/#|\.prototype\./,Gn=function(e,t){var r=tC[eC(e)];return r===nC?!0:r===rC?!1:ZT(t)?YT(t):!!t},eC=Gn.normalize=function(e){return String(e).replace(XT,".").toLowerCase()},tC=Gn.data={},rC=Gn.NATIVE="N",nC=Gn.POLYFILL="P";xm.exports=Gn});var Wn=h((pH,Tm)=>{"use strict";var Am=$n(),iC=Sr(),oC=Br(),aC=Am(Am.bind);Tm.exports=function(e,t){return iC(e),t===void 0?e:oC?aC(e,t):function(){return e.apply(t,arguments)}}});var cc=h((fH,Cm)=>{"use strict";var sC=Ve(),lC=ae();Cm.exports=sC&&lC(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var jt=h((hH,Pm)=>{"use strict";var cC=Se(),uC=String,dC=TypeError;Pm.exports=function(e){if(cC(e))return e;throw new dC(uC(e)+" is not an object")}});var Ut=h(Om=>{"use strict";var pC=Ve(),fC=sc(),hC=cc(),Po=jt(),Rm=ic(),mC=TypeError,uc=Object.defineProperty,vC=Object.getOwnPropertyDescriptor,dc="enumerable",pc="configurable",fc="writable";Om.f=pC?hC?function(t,r,n){if(Po(t),r=Rm(r),Po(n),typeof t=="function"&&r==="prototype"&&"value"in n&&fc in n&&!n[fc]){var i=vC(t,r);i&&i[fc]&&(t[r]=n.value,n={configurable:pc in n?n[pc]:i[pc],enumerable:dc in n?n[dc]:i[dc],writable:!1})}return uc(t,r,n)}:uc:function(t,r,n){if(Po(t),r=Rm(r),Po(n),fC)try{return uc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new mC("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xr=h((vH,Nm)=>{"use strict";var gC=Ve(),yC=Ut(),_C=Hn();Nm.exports=gC?function(e,t,r){return yC.f(e,t,_C(1,r))}:function(e,t,r){return e[t]=r,e}});var z=h((gH,qm)=>{"use strict";var Kn=se(),bC=$l(),wC=$n(),IC=Pe(),EC=lc().f,SC=km(),zr=It(),xC=Wn(),Gr=xr(),Dm=Xe();zn();var kC=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 bC(e,this,arguments)};return t.prototype=e.prototype,t};qm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Kn:i?Kn[r]:Kn[r]&&Kn[r].prototype,s=n?zr:zr[r]||Gr(zr,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=SC(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Dm(a,p),m=s[p],d&&(e.dontCallGetSet?(v=EC(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=xC(f,Kn):e.wrap&&d?y=kC(f):o&&IC(f)?y=wC(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&Gr(y,"sham",!0),Gr(s,p,y),o&&(u=r+"Prototype",Dm(zr,u)||Gr(zr,u,{}),Gr(zr[u],p,f),e.real&&l&&(c||!l[p])&&Gr(l,p,f)))}});var Fm=h((yH,Lm)=>{"use strict";var AC=Math.ceil,TC=Math.floor;Lm.exports=Math.trunc||function(t){var r=+t;return(r>0?TC:AC)(r)}});var Qn=h((_H,Mm)=>{"use strict";var CC=Fm();Mm.exports=function(e){var t=+e;return t!==t||t===0?0:CC(t)}});var hc=h((bH,jm)=>{"use strict";var PC=Qn(),RC=Math.min;jm.exports=function(e){var t=PC(e);return t>0?RC(t,9007199254740991):0}});var Wr=h((wH,Um)=>{"use strict";var OC=hc();Um.exports=function(e){return OC(e.length)}});var Yn=h((IH,Bm)=>{"use strict";var NC=Mt();Bm.exports=Array.isArray||function(t){return NC(t)==="Array"}});var Ro=h((EH,$m)=>{"use strict";var DC=Fe(),qC=DC("toStringTag"),Jm={};Jm[qC]="z";$m.exports=String(Jm)==="[object z]"});var Kr=h((SH,Hm)=>{"use strict";var LC=Ro(),FC=Pe(),Oo=Mt(),MC=Fe(),jC=MC("toStringTag"),UC=Object,BC=Oo(function(){return arguments}())==="Arguments",JC=function(e,t){try{return e[t]}catch(r){}};Hm.exports=LC?Oo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=JC(t=UC(e),jC))=="string"?r:BC?Oo(t):(n=Oo(t))==="Object"&&FC(t.callee)?"Arguments":n}});var zm=h((xH,Vm)=>{"use strict";var $C=ge(),HC=Pe(),mc=zn(),VC=$C(Function.toString);HC(mc.inspectSource)||(mc.inspectSource=function(e){return VC(e)});Vm.exports=mc.inspectSource});var gc=h((kH,Ym)=>{"use strict";var zC=ge(),GC=ae(),Gm=Pe(),WC=Kr(),KC=Jr(),QC=zm(),Wm=function(){},Km=KC("Reflect","construct"),vc=/^\s*(?:class|function)\b/,YC=zC(vc.exec),ZC=!vc.test(Wm),Zn=function(t){if(!Gm(t))return!1;try{return Km(Wm,[],t),!0}catch(r){return!1}},Qm=function(t){if(!Gm(t))return!1;switch(WC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZC||!!YC(vc,QC(t))}catch(r){return!0}};Qm.sham=!0;Ym.exports=!Km||GC(function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn(function(){e=!0})||e})?Qm:Zn});var tv=h((AH,ev)=>{"use strict";var Zm=Yn(),XC=gc(),eP=Se(),tP=Fe(),rP=tP("species"),Xm=Array;ev.exports=function(e){var t;return Zm(e)&&(t=e.constructor,XC(t)&&(t===Xm||Zm(t.prototype))?t=void 0:eP(t)&&(t=t[rP],t===null&&(t=void 0))),t===void 0?Xm:t}});var yc=h((TH,rv)=>{"use strict";var nP=tv();rv.exports=function(e,t){return new(nP(e))(t===0?0:t)}});var or=h((CH,iv)=>{"use strict";var iP=Wn(),oP=ge(),aP=So(),sP=Hr(),lP=Wr(),cP=yc(),nv=oP([].push),ir=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=sP(l),f=aP(p),m=lP(f),g=iP(c,d),y=0,v=u||cP,_=t?v(l,m):r||a?v(l,0):void 0,w,A;m>y;y++)if((s||y in f)&&(w=f[y],A=g(w,y,p),e))if(t)_[y]=A;else if(A)switch(e){case 3:return!0;case 5:return w;case 6:return y;case 2:nv(_,w)}else switch(e){case 4:return!1;case 7:nv(_,w)}return o?-1:n||i?i:_}};iv.exports={forEach:ir(0),map:ir(1),filter:ir(2),some:ir(3),every:ir(4),find:ir(5),findIndex:ir(6),filterReject:ir(7)}});var Xn=h((PH,ov)=>{"use strict";var uP=ae(),dP=Fe(),pP=Ao(),fP=dP("species");ov.exports=function(e){return pP>=51||!uP(function(){var t=[],r=t.constructor={};return r[fP]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var av=h(()=>{"use strict";var hP=z(),mP=or().filter,vP=Xn(),gP=vP("filter");hP({target:"Array",proto:!0,forced:!gP},{filter:function(t){return mP(this,t,arguments.length>1?arguments[1]:void 0)}})});var st=h((NH,sv)=>{"use strict";var yP=se(),_P=It();sv.exports=function(e,t){var r=_P[e+"Prototype"],n=r&&r[t];if(n)return n;var i=yP[e],o=i&&i.prototype;return o&&o[t]}});var cv=h((DH,lv)=>{"use strict";av();var bP=st();lv.exports=bP("Array","filter")});var dv=h((qH,uv)=>{"use strict";var wP=He(),IP=cv(),_c=Array.prototype;uv.exports=function(e){var t=e.filter;return e===_c||wP(_c,e)&&t===_c.filter?IP:t}});var fv=h((LH,pv)=>{"use strict";var EP=dv();pv.exports=EP});var mv=h((FH,hv)=>{hv.exports=fv()});var ei=h((MH,vv)=>{"use strict";var SP=ae();vv.exports=function(e,t){var r=[][e];return!!r&&SP(function(){r.call(null,t||function(){return 1},1)})}});var gv=h(()=>{"use strict";var xP=z(),kP=or().every,AP=ei(),TP=AP("every");xP({target:"Array",proto:!0,forced:!TP},{every:function(t){return kP(this,t,arguments.length>1?arguments[1]:void 0)}})});var _v=h((BH,yv)=>{"use strict";gv();var CP=st();yv.exports=CP("Array","every")});var wv=h((JH,bv)=>{"use strict";var PP=He(),RP=_v(),bc=Array.prototype;bv.exports=function(e){var t=e.every;return e===bc||PP(bc,e)&&t===bc.every?RP:t}});var Ev=h(($H,Iv)=>{"use strict";var OP=wv();Iv.exports=OP});var xv=h((HH,Sv)=>{Sv.exports=Ev()});var Av=h((VH,kv)=>{"use strict";var NP=or().forEach,DP=ei(),qP=DP("forEach");kv.exports=qP?[].forEach:function(t){return NP(this,t,arguments.length>1?arguments[1]:void 0)}});var Cv=h(()=>{"use strict";var LP=z(),Tv=Av();LP({target:"Array",proto:!0,forced:[].forEach!==Tv},{forEach:Tv})});var Rv=h((WH,Pv)=>{"use strict";Cv();var FP=st();Pv.exports=FP("Array","forEach")});var Nv=h((KH,Ov)=>{"use strict";var MP=Rv();Ov.exports=MP});var Dv=h(()=>{});var Lv=h((ZH,qv)=>{"use strict";var jP=Kr(),UP=Xe(),BP=He(),JP=Nv();Dv();var wc=Array.prototype,$P={DOMTokenList:!0,NodeList:!0};qv.exports=function(e){var t=e.forEach;return e===wc||BP(wc,e)&&t===wc.forEach||UP($P,jP(e))?JP:t}});var Mv=h((XH,Fv)=>{Fv.exports=Lv()});var Uv=h((eV,jv)=>{"use strict";var HP=TypeError,VP=9007199254740991;jv.exports=function(e){if(e>VP)throw HP("Maximum allowed index exceeded");return e}});var Ic=h((tV,Bv)=>{"use strict";var zP=Ve(),GP=Ut(),WP=Hn();Bv.exports=function(e,t,r){zP?GP.f(e,t,WP(0,r)):e[t]=r}});var Vv=h(()=>{"use strict";var KP=z(),QP=ae(),YP=Yn(),ZP=Se(),XP=Hr(),eR=Wr(),Jv=Uv(),$v=Ic(),tR=yc(),rR=Xn(),nR=Fe(),iR=Ao(),Hv=nR("isConcatSpreadable"),oR=iR>=51||!QP(function(){var e=[];return e[Hv]=!1,e.concat()[0]!==e}),aR=function(e){if(!ZP(e))return!1;var t=e[Hv];return t!==void 0?!!t:YP(e)},sR=!oR||!rR("concat");KP({target:"Array",proto:!0,arity:1,forced:sR},{concat:function(t){var r=XP(this),n=tR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],aR(c))for(l=eR(c),Jv(i+l),a=0;a<l;a++,i++)a in c&&$v(n,i,c[a]);else Jv(i+1),$v(n,i++,c);return n.length=i,n}})});var Gv=h((iV,zv)=>{"use strict";Vv();var lR=st();zv.exports=lR("Array","concat")});var Kv=h((oV,Wv)=>{"use strict";var cR=He(),uR=Gv(),Ec=Array.prototype;Wv.exports=function(e){var t=e.concat;return e===Ec||cR(Ec,e)&&t===Ec.concat?uR:t}});var Yv=h((aV,Qv)=>{"use strict";var dR=Kv();Qv.exports=dR});var Xv=h((sV,Zv)=>{Zv.exports=Yv()});var eg=h(()=>{"use strict";var pR=z(),fR=or().some,hR=ei(),mR=hR("some");pR({target:"Array",proto:!0,forced:!mR},{some:function(t){return fR(this,t,arguments.length>1?arguments[1]:void 0)}})});var rg=h((uV,tg)=>{"use strict";eg();var vR=st();tg.exports=vR("Array","some")});var ig=h((dV,ng)=>{"use strict";var gR=He(),yR=rg(),Sc=Array.prototype;ng.exports=function(e){var t=e.some;return e===Sc||gR(Sc,e)&&t===Sc.some?yR:t}});var ag=h((pV,og)=>{"use strict";var _R=ig();og.exports=_R});var lg=h((fV,sg)=>{sg.exports=ag()});var ug=h((hV,cg)=>{"use strict";var ti=se(),bR=xo(),wR=Mt(),No=function(e){return bR.slice(0,e.length)===e};cg.exports=function(){return No("Bun/")?"BUN":No("Cloudflare-Workers")?"CLOUDFLARE":No("Deno/")?"DENO":No("Node.js/")?"NODE":ti.Bun&&typeof Bun.version=="string"?"BUN":ti.Deno&&typeof Deno.version=="object"?"DENO":wR(ti.process)==="process"?"NODE":ti.window&&ti.document?"BROWSER":"REST"}()});var ri=h((mV,dg)=>{"use strict";var IR=ge();dg.exports=IR([].slice)});var fg=h((vV,pg)=>{"use strict";var ER=TypeError;pg.exports=function(e,t){if(e<t)throw new ER("Not enough arguments");return e}});var xc=h((gV,mg)=>{"use strict";var hg=se(),SR=$l(),xR=Pe(),kR=ug(),AR=xo(),TR=ri(),CR=fg(),PR=hg.Function,RR=/MSIE .\./.test(AR)||kR==="BUN"&&function(){var e=hg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();mg.exports=function(e,t){var r=t?2:1;return RR?function(n,i){var o=CR(arguments.length,1)>r,a=xR(n)?n:PR(n),s=o?TR(arguments,r):[],l=o?function(){SR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var yg=h(()=>{"use strict";var OR=z(),gg=se(),NR=xc(),vg=NR(gg.setInterval,!0);OR({global:!0,bind:!0,forced:gg.setInterval!==vg},{setInterval:vg})});var wg=h(()=>{"use strict";var DR=z(),bg=se(),qR=xc(),_g=qR(bg.setTimeout,!0);DR({global:!0,bind:!0,forced:bg.setTimeout!==_g},{setTimeout:_g})});var Ig=h(()=>{"use strict";yg();wg()});var Sg=h((SV,Eg)=>{"use strict";Ig();var LR=It();Eg.exports=LR.setTimeout});var kg=h((xV,xg)=>{xg.exports=Sg()});function ii(e,t){ue.__h&&ue.__h(X,e,ni||t),ni=0;var r=X.__H||(X.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function qo(e){return ni=1,Lg(Fg,e)}function Lg(e,t,r){var n=ii(kr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Fg(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=X,!X.__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};X.__f=!0;var o=X.shouldComponentUpdate,a=X.componentWillUpdate;X.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)},X.shouldComponentUpdate=i}return n.__N||n.__}function oi(e,t){var r=ii(kr++,3);!ue.__s&&Tc(r.__H,t)&&(r.__=e,r.u=t,X.__H.__h.push(r))}function Qr(e,t){var r=ii(kr++,4);!ue.__s&&Tc(r.__H,t)&&(r.__=e,r.u=t,X.__h.push(r))}function ai(e){return ni=5,si(function(){return{current:e}},[])}function si(e,t){var r=ii(kr++,7);return Tc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Yr(e,t){return ni=8,si(function(){return e},t)}function Zr(e){var t=X.context[e.__c],r=ii(kr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(X)),t.props.value):e.__}function FR(){for(var e;e=qg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Do),e.__H.__h.forEach(Ac),e.__H.__h=[]}catch(t){e.__H.__h=[],ue.__e(t,e.__v)}}function MR(e){var t,r=function(){clearTimeout(n),Dg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Dg&&(t=requestAnimationFrame(r))}function Do(e){var t=X,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),X=t}function Ac(e){var t=X;e.__c=e.__(),X=t}function Tc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Fg(e,t){return typeof t=="function"?t(e):t}var kr,X,kc,Ag,ni,qg,ue,Tg,Cg,Pg,Rg,Og,Ng,Dg,Cc=T(()=>{Ur();ni=0,qg=[],ue=O,Tg=ue.__b,Cg=ue.__r,Pg=ue.diffed,Rg=ue.__c,Og=ue.unmount,Ng=ue.__;ue.__b=function(e){X=null,Tg&&Tg(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ng&&Ng(e,t)},ue.__r=function(e){Cg&&Cg(e),kr=0;var t=(X=e.__c).__H;t&&(kc===X?(t.__h=[],X.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Do),t.__h.forEach(Ac),t.__h=[],kr=0)),kc=X},ue.diffed=function(e){Pg&&Pg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qg.push(t)!==1&&Ag===ue.requestAnimationFrame||((Ag=ue.requestAnimationFrame)||MR)(FR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),kc=X=null},ue.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Do),r.__h=r.__h.filter(function(n){return!n.__||Ac(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ue.__e(n,r.__v)}}),Rg&&Rg(e,t)},ue.unmount=function(e){Og&&Og(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Do(n)}catch(i){t=i}}),r.__H=void 0,t&&ue.__e(t,r.__v))};Dg=typeof requestAnimationFrame=="function"});function Gg(e,t){for(var r in t)e[r]=t[r];return e}function Rc(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 Mg(e,t){this.props=e,this.context=t}function Nc(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:Rc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Le(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Dc(e){function t(r){var n=Gg({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=jR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Wg(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=Gg({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Wg(n,t,r)})),e}function Kg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Kg(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 Pc(){this.__u=0,this.o=null,this.__b=null}function Qg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lo(){this.i=null,this.l=null}function qc(e,t,r){return t.__k==null&&(t.textContent=""),rr(e,t),typeof r=="function"&&r(),e?e.__c:null}function GR(){}function WR(){return this.cancelBubble}function KR(){return this.defaultPrevented}var Oc,jg,jR,UR,Ug,Bg,BR,JR,$R,HR,VR,zR,Jg,Yg,QR,$g,Hg,Vg,Fo=T(()=>{Ur();Ur();Cc();Cc();Oc=Qr;(Mg.prototype=new Ye).isPureReactComponent=!0,Mg.prototype.shouldComponentUpdate=function(e,t){return Rc(this.props,e)||Rc(this.state,t)};jg=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jg&&jg(e)};jR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;UR=O.__e;O.__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)}UR(e,t,r,n)};Ug=O.unmount;O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ug&&Ug(e)},(Pc.prototype=new Ye).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Qg(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]=Kg(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)},Pc.prototype.componentWillUnmount=function(){this.o=[]},Pc.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]=Wg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Le(Ze,null,e.fallback);return i&&(i.__u&=-33),[Le(Ze,null,t.__a?null:e.children),i]};Bg=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]}};(Lo.prototype=new Ye).__a=function(e){var t=this,r=Qg(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Bg(t,e,n)):i()};r?r(o):o()}},Lo.prototype.render=function(e){this.i=null,this.l=new Map;var t=Bn(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},Lo.prototype.componentDidUpdate=Lo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Bg(e,r,t)})};BR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,JR=/^(?: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]/,$R=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,HR=/[A-Z0-9]/g,VR=typeof document!="undefined",zR=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Jg=O.event;O.event=function(e){return Jg&&(e=Jg(e)),e.persist=GR,e.isPropagationStopped=WR,e.isDefaultPrevented=KR,e.nativeEvent=e};QR={enumerable:!1,configurable:!0,get:function(){return this.class}},$g=O.vnode;O.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||VR&&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"||zR(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":$R.test(a)&&(a=l):l=a="oninput":o&&JR.test(a)?a=a.replace(HR,"-$&").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=Bn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Bn(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",QR)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=BR,$g&&$g(e)};Hg=O.__r;O.__r=function(e){Hg&&Hg(e),Yg=e.__c};Vg=O.diffed;O.diffed=function(e){Vg&&Vg(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),Yg=null}});var Fc=h(()=>{"use strict";var ZR=z(),Lc=se();ZR({global:!0,forced:Lc.globalThis!==Lc},{globalThis:Lc})});var Zg=h(()=>{"use strict";Fc()});var ey=h((BV,Xg)=>{"use strict";Fc();Xg.exports=se()});var ry=h((JV,ty)=>{"use strict";var XR=ey();ty.exports=XR});var iy=h(($V,ny)=>{"use strict";var eO=ry();ny.exports=eO});var ay=h((HV,oy)=>{"use strict";Zg();var tO=iy();oy.exports=tO});var ly=h((VV,sy)=>{"use strict";sy.exports=ay()});var uy=h((zV,cy)=>{cy.exports=ly()});var dy=h(()=>{"use strict";var rO=z(),nO=Yn();rO({target:"Array",stat:!0},{isArray:nO})});var fy=h((KV,py)=>{"use strict";dy();var iO=It();py.exports=iO.Array.isArray});var my=h((QV,hy)=>{"use strict";var oO=fy();hy.exports=oO});var gy=h((YV,vy)=>{vy.exports=my()});var _y=h((ZV,yy)=>{"use strict";yy.exports=function(){}});var Ar=h((XV,by)=>{"use strict";by.exports={}});var Mc=h((ez,Iy)=>{"use strict";var aO=se(),sO=Pe(),wy=aO.WeakMap;Iy.exports=sO(wy)&&/native code/.test(String(wy))});var Mo=h((tz,Sy)=>{"use strict";var lO=rc(),cO=Co(),Ey=lO("keys");Sy.exports=function(e){return Ey[e]||(Ey[e]=cO(e))}});var li=h((rz,xy)=>{"use strict";xy.exports={}});var Cr=h((nz,Ty)=>{"use strict";var uO=Mc(),Ay=se(),dO=Se(),pO=xr(),jc=Xe(),Uc=zn(),fO=Mo(),hO=li(),ky="Object already initialized",Bc=Ay.TypeError,mO=Ay.WeakMap,jo,ci,Uo,vO=function(e){return Uo(e)?ci(e):jo(e,{})},gO=function(e){return function(t){var r;if(!dO(t)||(r=ci(t)).type!==e)throw new Bc("Incompatible receiver, "+e+" required");return r}};uO||Uc.state?(ft=Uc.state||(Uc.state=new mO),ft.get=ft.get,ft.has=ft.has,ft.set=ft.set,jo=function(e,t){if(ft.has(e))throw new Bc(ky);return t.facade=e,ft.set(e,t),t},ci=function(e){return ft.get(e)||{}},Uo=function(e){return ft.has(e)}):(Tr=fO("state"),hO[Tr]=!0,jo=function(e,t){if(jc(e,Tr))throw new Bc(ky);return t.facade=e,pO(e,Tr,t),t},ci=function(e){return jc(e,Tr)?e[Tr]:{}},Uo=function(e){return jc(e,Tr)});var ft,Tr;Ty.exports={set:jo,get:ci,has:Uo,enforce:vO,getterFor:gO}});var Hc=h((iz,Py)=>{"use strict";var Jc=Ve(),yO=Xe(),Cy=Function.prototype,_O=Jc&&Object.getOwnPropertyDescriptor,$c=yO(Cy,"name"),bO=$c&&(function(){}).name==="something",wO=$c&&(!Jc||Jc&&_O(Cy,"name").configurable);Py.exports={EXISTS:$c,PROPER:bO,CONFIGURABLE:wO}});var Vc=h((oz,Ry)=>{"use strict";var IO=Qn(),EO=Math.max,SO=Math.min;Ry.exports=function(e,t){var r=IO(e);return r<0?EO(r+t,0):SO(r,t)}});var zc=h((az,Ny)=>{"use strict";var xO=nr(),kO=Vc(),AO=Wr(),Oy=function(e){return function(t,r,n){var i=xO(t),o=AO(i);if(o===0)return!e&&-1;var a=kO(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}};Ny.exports={includes:Oy(!0),indexOf:Oy(!1)}});var Wc=h((sz,qy)=>{"use strict";var TO=ge(),Gc=Xe(),CO=nr(),PO=zc().indexOf,RO=li(),Dy=TO([].push);qy.exports=function(e,t){var r=CO(e),n=0,i=[],o;for(o in r)!Gc(RO,o)&&Gc(r,o)&&Dy(i,o);for(;t.length>n;)Gc(r,o=t[n++])&&(~PO(i,o)||Dy(i,o));return i}});var Bo=h((lz,Ly)=>{"use strict";Ly.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Kc=h((cz,Fy)=>{"use strict";var OO=Wc(),NO=Bo();Fy.exports=Object.keys||function(t){return OO(t,NO)}});var jy=h(My=>{"use strict";var DO=Ve(),qO=cc(),LO=Ut(),FO=jt(),MO=nr(),jO=Kc();My.f=DO&&!qO?Object.defineProperties:function(t,r){FO(t);for(var n=MO(r),i=jO(r),o=i.length,a=0,s;o>a;)LO.f(t,s=i[a++],n[s]);return t}});var By=h((dz,Uy)=>{"use strict";var UO=Jr();Uy.exports=UO("document","documentElement")});var ui=h((pz,Wy)=>{"use strict";var BO=jt(),JO=jy(),Jy=Bo(),$O=li(),HO=By(),VO=ac(),zO=Mo(),$y=">",Hy="<",Yc="prototype",Zc="script",zy=zO("IE_PROTO"),Qc=function(){},Gy=function(e){return Hy+Zc+$y+e+Hy+"/"+Zc+$y},Vy=function(e){e.write(Gy("")),e.close();var t=e.parentWindow.Object;return e=null,t},GO=function(){var e=VO("iframe"),t="java"+Zc+":",r;return e.style.display="none",HO.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Gy("document.F=Object")),r.close(),r.F},Jo,$o=function(){try{Jo=new ActiveXObject("htmlfile")}catch(t){}$o=typeof document!="undefined"?document.domain&&Jo?Vy(Jo):GO():Vy(Jo);for(var e=Jy.length;e--;)delete $o[Yc][Jy[e]];return $o()};$O[zy]=!0;Wy.exports=Object.create||function(t,r){var n;return t!==null?(Qc[Yc]=BO(t),n=new Qc,Qc[Yc]=null,n[zy]=t):n=$o(),r===void 0?n:JO.f(n,r)}});var Qy=h((fz,Ky)=>{"use strict";var WO=ae();Ky.exports=!WO(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var eu=h((hz,Zy)=>{"use strict";var KO=Xe(),QO=Pe(),YO=Hr(),ZO=Mo(),XO=Qy(),Yy=ZO("IE_PROTO"),Xc=Object,eN=Xc.prototype;Zy.exports=XO?Xc.getPrototypeOf:function(e){var t=YO(e);if(KO(t,Yy))return t[Yy];var r=t.constructor;return QO(r)&&t instanceof r?r.prototype:t instanceof Xc?eN:null}});var Ho=h((mz,Xy)=>{"use strict";var tN=xr();Xy.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:tN(e,t,r),e}});var iu=h((vz,r_)=>{"use strict";var rN=ae(),nN=Pe(),iN=Se(),oN=ui(),e_=eu(),aN=Ho(),sN=Fe(),lN=$r(),nu=sN("iterator"),t_=!1,Bt,tu,ru;[].keys&&(ru=[].keys(),"next"in ru?(tu=e_(e_(ru)),tu!==Object.prototype&&(Bt=tu)):t_=!0);var cN=!iN(Bt)||rN(function(){var e={};return Bt[nu].call(e)!==e});cN?Bt={}:lN&&(Bt=oN(Bt));nN(Bt[nu])||aN(Bt,nu,function(){return this});r_.exports={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:t_}});var i_=h((gz,n_)=>{"use strict";var uN=Ro(),dN=Kr();n_.exports=uN?{}.toString:function(){return"[object "+dN(this)+"]"}});var di=h((yz,a_)=>{"use strict";var pN=Ro(),fN=Ut().f,hN=xr(),mN=Xe(),vN=i_(),gN=Fe(),o_=gN("toStringTag");a_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(mN(i,o_)||fN(i,o_,{configurable:!0,value:t}),n&&!pN&&hN(i,"toString",vN))}});var l_=h((_z,s_)=>{"use strict";var yN=iu().IteratorPrototype,_N=ui(),bN=Hn(),wN=di(),IN=Ar(),EN=function(){return this};s_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=_N(yN,{next:bN(+!n,r)}),wN(e,i,!1,!0),IN[i]=EN,e}});var u_=h((bz,c_)=>{"use strict";var SN=ge(),xN=Sr();c_.exports=function(e,t,r){try{return SN(xN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var p_=h((wz,d_)=>{"use strict";var kN=Se();d_.exports=function(e){return kN(e)||e===null}});var h_=h((Iz,f_)=>{"use strict";var AN=p_(),TN=String,CN=TypeError;f_.exports=function(e){if(AN(e))return e;throw new CN("Can't set "+TN(e)+" as a prototype")}});var v_=h((Ez,m_)=>{"use strict";var PN=u_(),RN=Se(),ON=Er(),NN=h_();m_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=PN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return ON(i),NN(o),RN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Go=h((Sz,k_)=>{"use strict";var DN=z(),qN=dt(),Vo=$r(),S_=Hc(),LN=Pe(),FN=l_(),g_=eu(),y_=v_(),MN=di(),jN=xr(),ou=Ho(),UN=Fe(),__=Ar(),x_=iu(),BN=S_.PROPER,JN=S_.CONFIGURABLE,b_=x_.IteratorPrototype,zo=x_.BUGGY_SAFARI_ITERATORS,pi=UN("iterator"),w_="keys",fi="values",I_="entries",E_=function(){return this};k_.exports=function(e,t,r,n,i,o,a){FN(r,t,n);var s=function(v){if(v===i&&p)return p;if(!zo&&v&&v in d)return d[v];switch(v){case w_:return function(){return new r(this,v)};case fi:return function(){return new r(this,v)};case I_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[pi]||d["@@iterator"]||i&&d[i],p=!zo&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=g_(f.call(new e)),m!==Object.prototype&&m.next&&(!Vo&&g_(m)!==b_&&(y_?y_(m,b_):LN(m[pi])||ou(m,pi,E_)),MN(m,l,!0,!0),Vo&&(__[l]=E_))),BN&&i===fi&&u&&u.name!==fi&&(!Vo&&JN?jN(d,"name",fi):(c=!0,p=function(){return qN(u,this)})),i)if(g={values:s(fi),keys:o?p:s(w_),entries:s(I_)},a)for(y in g)(zo||c||!(y in d))&&ou(d,y,g[y]);else DN({target:t,proto:!0,forced:zo||c},g);return(!Vo||a)&&d[pi]!==p&&ou(d,pi,p,{name:i}),__[t]=p,g}});var Wo=h((xz,A_)=>{"use strict";A_.exports=function(e,t){return{value:e,done:t}}});var Qo=h((kz,O_)=>{"use strict";var $N=nr(),au=_y(),T_=Ar(),P_=Cr(),HN=Ut().f,VN=Go(),Ko=Wo(),zN=$r(),GN=Ve(),R_="Array Iterator",WN=P_.set,KN=P_.getterFor(R_);O_.exports=VN(Array,"Array",function(e,t){WN(this,{type:R_,target:$N(e),index:0,kind:t})},function(){var e=KN(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ko(void 0,!0);switch(e.kind){case"keys":return Ko(r,!1);case"values":return Ko(t[r],!1)}return Ko([r,t[r]],!1)},"values");var C_=T_.Arguments=T_.Array;au("keys");au("values");au("entries");if(!zN&&GN&&C_.name!=="values")try{HN(C_,"name",{value:"values"})}catch(e){}});var su=h(()=>{});var lu=h((Cz,N_)=>{"use strict";var QN=ae();N_.exports=!QN(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Yo=h((Pz,D_)=>{"use strict";var YN=Ho();D_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:YN(e,n,t[n],r);return e}});var cu=h(q_=>{"use strict";var ZN=Wc(),XN=Bo(),eD=XN.concat("length","prototype");q_.f=Object.getOwnPropertyNames||function(t){return ZN(t,eD)}});var j_=h((Oz,M_)=>{"use strict";var tD=Mt(),rD=nr(),L_=cu().f,nD=ri(),F_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iD=function(e){try{return L_(e)}catch(t){return nD(F_)}};M_.exports.f=function(t){return F_&&tD(t)==="Window"?iD(t):L_(rD(t))}});var B_=h((Nz,U_)=>{"use strict";var oD=ae();U_.exports=oD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var H_=h((Dz,$_)=>{"use strict";var aD=ae(),sD=Se(),lD=Mt(),J_=B_(),Zo=Object.isExtensible,cD=aD(function(){Zo(1)});$_.exports=cD||J_?function(t){return!sD(t)||J_&&lD(t)==="ArrayBuffer"?!1:Zo?Zo(t):!0}:Zo});var hi=h((qz,G_)=>{"use strict";var uD=z(),dD=ge(),pD=li(),fD=Se(),uu=Xe(),hD=Ut().f,V_=cu(),mD=j_(),du=H_(),vD=Co(),gD=lu(),z_=!1,Jt=vD("meta"),yD=0,pu=function(e){hD(e,Jt,{value:{objectID:"O"+yD++,weakData:{}}})},_D=function(e,t){if(!fD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!uu(e,Jt)){if(!du(e))return"F";if(!t)return"E";pu(e)}return e[Jt].objectID},bD=function(e,t){if(!uu(e,Jt)){if(!du(e))return!0;if(!t)return!1;pu(e)}return e[Jt].weakData},wD=function(e){return gD&&z_&&du(e)&&!uu(e,Jt)&&pu(e),e},ID=function(){ED.enable=function(){},z_=!0;var e=V_.f,t=dD([].splice),r={};r[Jt]=1,e(r).length&&(V_.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Jt){t(i,o,1);break}return i},uD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mD.f}))},ED=G_.exports={enable:ID,fastKey:_D,getWeakData:bD,onFreeze:wD};pD[Jt]=!0});var K_=h((Lz,W_)=>{"use strict";var SD=Fe(),xD=Ar(),kD=SD("iterator"),AD=Array.prototype;W_.exports=function(e){return e!==void 0&&(xD.Array===e||AD[kD]===e)}});var fu=h((Fz,Y_)=>{"use strict";var TD=Kr(),Q_=To(),CD=Ir(),PD=Ar(),RD=Fe(),OD=RD("iterator");Y_.exports=function(e){if(!CD(e))return Q_(e,OD)||Q_(e,"@@iterator")||PD[TD(e)]}});var X_=h((Mz,Z_)=>{"use strict";var ND=dt(),DD=Sr(),qD=jt(),LD=Vn(),FD=fu(),MD=TypeError;Z_.exports=function(e,t){var r=arguments.length<2?FD(e):t;if(DD(r))return qD(ND(r,e));throw new MD(LD(e)+" is not iterable")}});var Xo=h((jz,tb)=>{"use strict";var jD=dt(),eb=jt(),UD=To();tb.exports=function(e,t,r){var n,i;eb(e);try{if(n=UD(e,"return"),!n){if(t==="throw")throw r;return r}n=jD(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return eb(n),r}});var ta=h((Uz,ob)=>{"use strict";var BD=Wn(),JD=dt(),$D=jt(),HD=Vn(),VD=K_(),zD=Wr(),rb=He(),GD=X_(),WD=fu(),nb=Xo(),KD=TypeError,ea=function(e,t){this.stopped=e,this.result=t},ib=ea.prototype;ob.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=BD(t,n),c,d,u,p,f,m,g,y=function(_){return c&&nb(c,"normal",_),new ea(!0,_)},v=function(_){return i?($D(_),s?l(_[0],_[1],y):l(_[0],_[1])):s?l(_,y):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=WD(e),!d)throw new KD(HD(e)+" is not iterable");if(VD(d)){for(u=0,p=zD(e);p>u;u++)if(f=v(e[u]),f&&rb(ib,f))return f;return new ea(!1)}c=GD(e,d)}for(m=o?e.next:c.next;!(g=JD(m,c)).done;){try{f=v(g.value)}catch(_){nb(c,"throw",_)}if(typeof f=="object"&&f&&rb(ib,f))return f}return new ea(!1)}});var ra=h((Bz,ab)=>{"use strict";var QD=He(),YD=TypeError;ab.exports=function(e,t){if(QD(t,e))return e;throw new YD("Incorrect invocation")}});var hu=h((Jz,lb)=>{"use strict";var ZD=z(),XD=se(),eq=hi(),tq=ae(),rq=xr(),nq=ta(),iq=ra(),oq=Pe(),aq=Se(),sq=Ir(),lq=di(),cq=Ut().f,uq=or().forEach,dq=Ve(),sb=Cr(),pq=sb.set,fq=sb.getterFor;lb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=XD[e],s=a&&a.prototype,l={},c;if(!dq||!oq(a)||!(i||s.forEach&&!tq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),eq.enable();else{c=t(function(p,f){pq(iq(p,d),{type:e,collection:new a}),sq(f)||nq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=fq(e);uq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&rq(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!aq(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||cq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return lq(c,e,!1,!0),l[e]=c,ZD({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var mb=h(($z,hb)=>{"use strict";var hq=ge(),cb=Yo(),na=hi().getWeakData,mq=ra(),vq=jt(),gq=Ir(),mu=Se(),yq=ta(),db=or(),ub=Xe(),pb=Cr(),_q=pb.set,bq=pb.getterFor,wq=db.find,Iq=db.findIndex,Eq=hq([].splice),Sq=0,ia=function(e){return e.frozen||(e.frozen=new fb)},fb=function(){this.entries=[]},vu=function(e,t){return wq(e.entries,function(r){return r[0]===t})};fb.prototype={get:function(e){var t=vu(this,e);if(t)return t[1]},has:function(e){return!!vu(this,e)},set:function(e,t){var r=vu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Iq(this.entries,function(r){return r[0]===e});return~t&&Eq(this.entries,t,1),!!~t}};hb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){mq(l,o),_q(l,{type:t,id:Sq++,frozen:null}),gq(c)||yq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=bq(t),s=function(l,c,d){var u=a(l),p=na(vq(c),!0);return p===!0?ia(u).set(c,d):p[u.id]=d,l};return cb(o,{delete:function(l){var c=a(this);if(!mu(l))return!1;var d=na(l);return d===!0?ia(c).delete(l):d&&ub(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!mu(c))return!1;var u=na(c);return u===!0?ia(d).has(c):u&&ub(u,d.id)}}),cb(o,r?{get:function(c){var d=a(this);if(mu(c)){var u=na(c);if(u===!0)return ia(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 Eb=h(()=>{"use strict";var xq=lu(),vb=se(),la=ge(),gb=Yo(),kq=hi(),Aq=hu(),yb=mb(),oa=Se(),aa=Cr().enforce,Tq=ae(),Cq=Mc(),yi=Object,Pq=Array.isArray,sa=yi.isExtensible,_b=yi.isFrozen,Rq=yi.isSealed,bb=yi.freeze,Oq=yi.seal,Nq=!vb.ActiveXObject&&"ActiveXObject"in vb,mi,wb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ib=Aq("WeakMap",wb,yb),Xr=Ib.prototype,ca=la(Xr.set),Dq=function(){return xq&&Tq(function(){var e=bb([]);return ca(new Ib,e,1),!_b(e)})};Cq&&(Nq?(mi=yb.getConstructor(wb,"WeakMap",!0),kq.enable(),gu=la(Xr.delete),gi=la(Xr.has),yu=la(Xr.get),gb(Xr,{delete:function(e){if(oa(e)&&!sa(e)){var t=aa(this);return t.frozen||(t.frozen=new mi),gu(this,e)||t.frozen.delete(e)}return gu(this,e)},has:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)||r.frozen.has(t)}return gi(this,t)},get:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)?yu(this,t):r.frozen.get(t)}return yu(this,t)},set:function(t,r){if(oa(t)&&!sa(t)){var n=aa(this);n.frozen||(n.frozen=new mi),gi(this,t)?ca(this,t,r):n.frozen.set(t,r)}else ca(this,t,r);return this}})):Dq()&&gb(Xr,{set:function(t,r){var n;return Pq(t)&&(_b(t)?n=bb:Rq(t)&&(n=Oq)),ca(this,t,r),n&&n(t),this}}));var gu,gi,yu});var Sb=h(()=>{"use strict";Eb()});var kb=h((Wz,xb)=>{"use strict";Qo();su();Sb();var qq=It();xb.exports=qq.WeakMap});var Tb=h((Kz,Ab)=>{"use strict";Ab.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 _u=h(()=>{"use strict";Qo();var Lq=Tb(),Fq=se(),Mq=di(),Cb=Ar();for(ua in Lq)Mq(Fq[ua],ua),Cb[ua]=Cb.Array;var ua});var Rb=h((Zz,Pb)=>{"use strict";var jq=kb();_u();Pb.exports=jq});var Nb=h((Xz,Ob)=>{Ob.exports=Rb()});var qb=h(()=>{"use strict";var Uq=z(),Bq=$n(),Jq=zc().indexOf,$q=ei(),bu=Bq([].indexOf),Db=!!bu&&1/bu([1],1,-0)<0,Hq=Db||!$q("indexOf");Uq({target:"Array",proto:!0,forced:Hq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Db?bu(this,t,r)||0:Jq(this,t,r)}})});var Fb=h((r6,Lb)=>{"use strict";qb();var Vq=st();Lb.exports=Vq("Array","indexOf")});var jb=h((n6,Mb)=>{"use strict";var zq=He(),Gq=Fb(),wu=Array.prototype;Mb.exports=function(e){var t=e.indexOf;return e===wu||zq(wu,e)&&t===wu.indexOf?Gq:t}});var Bb=h((i6,Ub)=>{"use strict";var Wq=jb();Ub.exports=Wq});var $b=h((o6,Jb)=>{Jb.exports=Bb()});var Hb=h(()=>{"use strict";var Kq=z(),Qq=or().map,Yq=Xn(),Zq=Yq("map");Kq({target:"Array",proto:!0,forced:!Zq},{map:function(t){return Qq(this,t,arguments.length>1?arguments[1]:void 0)}})});var zb=h((l6,Vb)=>{"use strict";Hb();var Xq=st();Vb.exports=Xq("Array","map")});var Wb=h((c6,Gb)=>{"use strict";var eL=He(),tL=zb(),Iu=Array.prototype;Gb.exports=function(e){var t=e.map;return e===Iu||eL(Iu,e)&&t===Iu.map?tL:t}});var Qb=h((u6,Kb)=>{"use strict";var rL=Wb();Kb.exports=rL});var Zb=h((d6,Yb)=>{Yb.exports=Qb()});var Xb=h(()=>{"use strict";var nL=z(),iL=Ve(),oL=ui();nL({target:"Object",stat:!0,sham:!iL},{create:oL})});var t0=h((h6,e0)=>{"use strict";Xb();var aL=It(),sL=aL.Object;e0.exports=function(t,r){return sL.create(t,r)}});var n0=h((m6,r0)=>{"use strict";var lL=t0();r0.exports=lL});var o0=h((v6,i0)=>{i0.exports=n0()});var Eu=h((g6,a0)=>{"use strict";var cL=Ut();a0.exports=function(e,t,r){return cL.f(e,t,r)}});var c0=h((y6,l0)=>{"use strict";var uL=Jr(),dL=Eu(),pL=Fe(),fL=Ve(),s0=pL("species");l0.exports=function(e){var t=uL(e);fL&&t&&!t[s0]&&dL(t,s0,{configurable:!0,get:function(){return this}})}});var v0=h((_6,m0)=>{"use strict";var u0=ui(),hL=Eu(),d0=Yo(),mL=Wn(),vL=ra(),gL=Ir(),yL=ta(),_L=Go(),da=Wo(),bL=c0(),_i=Ve(),p0=hi().fastKey,h0=Cr(),f0=h0.set,Su=h0.getterFor;m0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){vL(c,o),f0(c,{type:t,index:u0(null),first:null,last:null,size:0}),_i||(c.size=0),gL(d)||yL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Su(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=p0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),_i?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=p0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return d0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=u0(null),_i?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),_i?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=mL(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),d0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),_i&&hL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Su(t),o=Su(n);_L(e,t,function(a,s){f0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,da(void 0,!0)):da(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),bL(t)}}});var g0=h(()=>{"use strict";var wL=hu(),IL=v0();wL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},IL)});var y0=h(()=>{"use strict";g0()});var ar=h((S6,_0)=>{"use strict";var EL=Vn(),SL=TypeError;_0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new SL(EL(e)+" is not a set")}});var w0=h((x6,b0)=>{"use strict";b0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var sr=h((k6,E0)=>{"use strict";var xL=Jr(),xu=w0(),I0=xL("Set"),kL=I0.prototype;E0.exports={Set:I0,add:xu("add",1),has:xu("has",1),remove:xu("delete",1),proto:kL}});var lr=h((A6,S0)=>{"use strict";var AL=dt();S0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=AL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var en=h((T6,x0)=>{"use strict";var TL=lr();x0.exports=function(e,t,r){return r?TL(e.keys(),t,!0):e.forEach(t)}});var pa=h((C6,A0)=>{"use strict";var k0=sr(),CL=en(),PL=k0.Set,RL=k0.add;A0.exports=function(e){var t=new PL;return CL(e,function(r){RL(t,r)}),t}});var tn=h((P6,T0)=>{"use strict";T0.exports=function(e){return e.size}});var P0=h((R6,C0)=>{"use strict";C0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var cr=h((O6,L0)=>{"use strict";var R0=Sr(),D0=jt(),O0=dt(),OL=Qn(),NL=P0(),N0="Invalid size",DL=RangeError,qL=TypeError,LL=Math.max,q0=function(e,t){this.set=e,this.size=LL(t,0),this.has=R0(e.has),this.keys=R0(e.keys)};q0.prototype={getIterator:function(){return NL(D0(O0(this.keys,this.set)))},includes:function(e){return O0(this.has,this.set,e)}};L0.exports=function(e){D0(e);var t=+e.size;if(t!==t)throw new qL(N0);var r=OL(t);if(r<0)throw new DL(N0);return new q0(e,r)}});var U0=h((N6,j0)=>{"use strict";var FL=ar(),M0=sr(),ML=pa(),jL=tn(),UL=cr(),BL=en(),JL=lr(),$L=M0.has,F0=M0.remove;j0.exports=function(t){var r=FL(this),n=UL(t),i=ML(r);return jL(r)<=n.size?BL(r,function(o){n.includes(o)&&F0(i,o)}):JL(n.getIterator(),function(o){$L(r,o)&&F0(i,o)}),i}});var ur=h((D6,B0)=>{"use strict";B0.exports=function(){return!1}});var J0=h(()=>{"use strict";var HL=z(),VL=U0(),zL=ur(),GL=!zL("difference",function(e){return e.size===0});HL({target:"Set",proto:!0,real:!0,forced:GL},{difference:VL})});var V0=h((F6,H0)=>{"use strict";var WL=ar(),ku=sr(),KL=tn(),QL=cr(),YL=en(),ZL=lr(),XL=ku.Set,$0=ku.add,eF=ku.has;H0.exports=function(t){var r=WL(this),n=QL(t),i=new XL;return KL(r)>n.size?ZL(n.getIterator(),function(o){eF(r,o)&&$0(i,o)}):YL(r,function(o){n.includes(o)&&$0(i,o)}),i}});var z0=h(()=>{"use strict";var tF=z(),rF=ae(),nF=V0(),iF=ur(),oF=!iF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||rF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});tF({target:"Set",proto:!0,real:!0,forced:oF},{intersection:nF})});var W0=h((U6,G0)=>{"use strict";var aF=ar(),sF=sr().has,lF=tn(),cF=cr(),uF=en(),dF=lr(),pF=Xo();G0.exports=function(t){var r=aF(this),n=cF(t);if(lF(r)<=n.size)return uF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return dF(i,function(o){if(sF(r,o))return pF(i,"normal",!1)})!==!1}});var K0=h(()=>{"use strict";var fF=z(),hF=W0(),mF=ur(),vF=!mF("isDisjointFrom",function(e){return!e});fF({target:"Set",proto:!0,real:!0,forced:vF},{isDisjointFrom:hF})});var Y0=h(($6,Q0)=>{"use strict";var gF=ar(),yF=tn(),_F=en(),bF=cr();Q0.exports=function(t){var r=gF(this),n=bF(t);return yF(r)>n.size?!1:_F(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Z0=h(()=>{"use strict";var wF=z(),IF=Y0(),EF=ur(),SF=!EF("isSubsetOf",function(e){return e});wF({target:"Set",proto:!0,real:!0,forced:SF},{isSubsetOf:IF})});var ew=h((z6,X0)=>{"use strict";var xF=ar(),kF=sr().has,AF=tn(),TF=cr(),CF=lr(),PF=Xo();X0.exports=function(t){var r=xF(this),n=TF(t);if(AF(r)<n.size)return!1;var i=n.getIterator();return CF(i,function(o){if(!kF(r,o))return PF(i,"normal",!1)})!==!1}});var tw=h(()=>{"use strict";var RF=z(),OF=ew(),NF=ur(),DF=!NF("isSupersetOf",function(e){return!e});RF({target:"Set",proto:!0,real:!0,forced:DF},{isSupersetOf:OF})});var nw=h((K6,rw)=>{"use strict";var qF=ar(),Au=sr(),LF=pa(),FF=cr(),MF=lr(),jF=Au.add,UF=Au.has,BF=Au.remove;rw.exports=function(t){var r=qF(this),n=FF(t).getIterator(),i=LF(r);return MF(n,function(o){UF(r,o)?BF(i,o):jF(i,o)}),i}});var iw=h(()=>{"use strict";var JF=z(),$F=nw(),HF=ur();JF({target:"Set",proto:!0,real:!0,forced:!HF("symmetricDifference")},{symmetricDifference:$F})});var aw=h((Z6,ow)=>{"use strict";var VF=ar(),zF=sr().add,GF=pa(),WF=cr(),KF=lr();ow.exports=function(t){var r=VF(this),n=WF(t).getIterator(),i=GF(r);return KF(n,function(o){zF(i,o)}),i}});var sw=h(()=>{"use strict";var QF=z(),YF=aw(),ZF=ur();QF({target:"Set",proto:!0,real:!0,forced:!ZF("union")},{union:YF})});var bi=h((tG,lw)=>{"use strict";var XF=Kr(),eM=String;lw.exports=function(e){if(XF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return eM(e)}});var pw=h((rG,dw)=>{"use strict";var Tu=ge(),tM=Qn(),rM=bi(),nM=Er(),iM=Tu("".charAt),cw=Tu("".charCodeAt),oM=Tu("".slice),uw=function(e){return function(t,r){var n=rM(nM(t)),i=tM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=cw(n,i),a<55296||a>56319||i+1===o||(s=cw(n,i+1))<56320||s>57343?e?iM(n,i):a:e?oM(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};dw.exports={codeAt:uw(!1),charAt:uw(!0)}});var vw=h(()=>{"use strict";var aM=pw().charAt,sM=bi(),hw=Cr(),lM=Go(),fw=Wo(),mw="String Iterator",cM=hw.set,uM=hw.getterFor(mw);lM(String,"String",function(e){cM(this,{type:mw,string:sM(e),index:0})},function(){var t=uM(this),r=t.string,n=t.index,i;return n>=r.length?fw(void 0,!0):(i=aM(r,n),t.index+=i.length,fw(i,!1))})});var yw=h((oG,gw)=>{"use strict";Qo();su();y0();J0();z0();K0();Z0();tw();iw();sw();vw();var dM=It();gw.exports=dM.Set});var bw=h((aG,_w)=>{"use strict";var pM=yw();_u();_w.exports=pM});var Iw=h((sG,ww)=>{ww.exports=bw()});var Sw=h(Ew=>{"use strict";Ew.f=Object.getOwnPropertySymbols});var Tw=h((cG,Aw)=>{"use strict";var xw=Ve(),fM=ge(),hM=dt(),mM=ae(),Cu=Kc(),vM=Sw(),gM=Vl(),yM=Hr(),_M=So(),rn=Object.assign,kw=Object.defineProperty,bM=fM([].concat);Aw.exports=!rn||mM(function(){if(xw&&rn({b:1},rn(kw({},"a",{enumerable:!0,get:function(){kw(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}),rn({},e)[r]!==7||Cu(rn({},t)).join("")!==n})?function(t,r){for(var n=yM(t),i=arguments.length,o=1,a=vM.f,s=gM.f;i>o;)for(var l=_M(arguments[o++]),c=a?bM(Cu(l),a(l)):Cu(l),d=c.length,u=0,p;d>u;)p=c[u++],(!xw||hM(s,l,p))&&(n[p]=l[p]);return n}:rn});var Pw=h(()=>{"use strict";var wM=z(),Cw=Tw();wM({target:"Object",stat:!0,arity:2,forced:Object.assign!==Cw},{assign:Cw})});var Ow=h((pG,Rw)=>{"use strict";Pw();var IM=It();Rw.exports=IM.Object.assign});var Dw=h((fG,Nw)=>{"use strict";var EM=Ow();Nw.exports=EM});var Lw=h((hG,qw)=>{qw.exports=Dw()});var Pu=h((mG,Fw)=>{"use strict";Fw.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 Uw=h((vG,jw)=>{"use strict";var SM=ge(),xM=Er(),kM=bi(),Ou=Pu(),Mw=SM("".replace),AM=RegExp("^["+Ou+"]+"),TM=RegExp("(^|[^"+Ou+"])["+Ou+"]+$"),Ru=function(e){return function(t){var r=kM(xM(t));return e&1&&(r=Mw(r,AM,"")),e&2&&(r=Mw(r,TM,"$1")),r}};jw.exports={start:Ru(1),end:Ru(2),trim:Ru(3)}});var Hw=h((gG,$w)=>{"use strict";var CM=Hc().PROPER,PM=ae(),Bw=Pu(),Jw="\u200B\x85\u180E";$w.exports=function(e){return PM(function(){return!!Bw[e]()||Jw[e]()!==Jw||CM&&Bw[e].name!==e})}});var Vw=h(()=>{"use strict";var RM=z(),OM=Uw().trim,NM=Hw();RM({target:"String",proto:!0,forced:NM("trim")},{trim:function(){return OM(this)}})});var Gw=h((bG,zw)=>{"use strict";Vw();var DM=st();zw.exports=DM("String","trim")});var Kw=h((wG,Ww)=>{"use strict";var qM=He(),LM=Gw(),Nu=String.prototype;Ww.exports=function(e){var t=e.trim;return typeof e=="string"||e===Nu||qM(Nu,e)&&t===Nu.trim?LM:t}});var Yw=h((IG,Qw)=>{"use strict";var FM=Kw();Qw.exports=FM});var Xw=h((EG,Zw)=>{Zw.exports=Yw()});var rI=h(()=>{"use strict";var MM=z(),eI=Yn(),jM=gc(),UM=Se(),tI=Vc(),BM=Wr(),JM=nr(),$M=Ic(),HM=Fe(),VM=Xn(),zM=ri(),GM=VM("slice"),WM=HM("species"),Du=Array,KM=Math.max;MM({target:"Array",proto:!0,forced:!GM},{slice:function(t,r){var n=JM(this),i=BM(n),o=tI(t,i),a=tI(r===void 0?i:r,i),s,l,c;if(eI(n)&&(s=n.constructor,jM(s)&&(s===Du||eI(s.prototype))?s=void 0:UM(s)&&(s=s[WM],s===null&&(s=void 0)),s===Du||s===void 0))return zM(n,o,a);for(l=new(s===void 0?Du:s)(KM(a-o,0)),c=0;o<a;o++,c++)o in n&&$M(l,c,n[o]);return l.length=c,l}})});var iI=h((kG,nI)=>{"use strict";rI();var QM=st();nI.exports=QM("Array","slice")});var aI=h((AG,oI)=>{"use strict";var YM=He(),ZM=iI(),qu=Array.prototype;oI.exports=function(e){var t=e.slice;return e===qu||YM(qu,e)&&t===qu.slice?ZM:t}});var lI=h((TG,sI)=>{"use strict";var XM=aI();sI.exports=XM});var uI=h((CG,cI)=>{cI.exports=lI()});var Lu=T(()=>{});var pI=h((RG,dI)=>{"use strict";var ej=Se(),tj=Mt(),rj=Fe(),nj=rj("match");dI.exports=function(e){var t;return ej(e)&&((t=e[nj])!==void 0?!!t:tj(e)==="RegExp")}});var hI=h((OG,fI)=>{"use strict";var ij=pI(),oj=TypeError;fI.exports=function(e){if(ij(e))throw new oj("The method doesn't accept regular expressions");return e}});var vI=h((NG,mI)=>{"use strict";var aj=Fe(),sj=aj("match");mI.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[sj]=!1,"/./"[e](t)}catch(n){}}return!1}});var _I=h(()=>{"use strict";var lj=z(),cj=$n(),uj=lc().f,dj=hc(),gI=bi(),pj=hI(),fj=Er(),hj=vI(),mj=$r(),vj=cj("".slice),gj=Math.min,yI=hj("startsWith"),yj=!mj&&!yI&&!!function(){var e=uj(String.prototype,"startsWith");return e&&!e.writable}();lj({target:"String",proto:!0,forced:!yj&&!yI},{startsWith:function(t){var r=gI(fj(this));pj(t);var n=dj(gj(arguments.length>1?arguments[1]:void 0,r.length)),i=gI(t);return vj(r,n,n+i.length)===i}})});var wI=h((LG,bI)=>{"use strict";_I();var _j=st();bI.exports=_j("String","startsWith")});var EI=h((FG,II)=>{"use strict";var bj=He(),wj=wI(),Fu=String.prototype;II.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Fu||bj(Fu,e)&&t===Fu.startsWith?wj:t}});var xI=h((MG,SI)=>{"use strict";var Ij=EI();SI.exports=Ij});var AI=h((jG,kI)=>{kI.exports=xI()});var OI=h((UG,RI)=>{"use strict";var CI=ge(),Ej=Sr(),Sj=Se(),xj=Xe(),TI=ri(),kj=Br(),PI=Function,Aj=CI([].concat),Tj=CI([].join),Mu={},Cj=function(e,t,r){if(!xj(Mu,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Mu[t]=PI("C,a","return new C("+Tj(n,",")+")")}return Mu[t](e,r)};RI.exports=kj?PI.bind:function(t){var r=Ej(this),n=r.prototype,i=TI(arguments,1),o=function(){var s=Aj(i,TI(arguments));return this instanceof o?Cj(r,s.length,s):r.apply(t,s)};return Sj(n)&&(o.prototype=n),o}});var DI=h(()=>{"use strict";var Pj=z(),NI=OI();Pj({target:"Function",proto:!0,forced:Function.bind!==NI},{bind:NI})});var LI=h(($G,qI)=>{"use strict";DI();var Rj=st();qI.exports=Rj("Function","bind")});var MI=h((HG,FI)=>{"use strict";var Oj=He(),Nj=LI(),ju=Function.prototype;FI.exports=function(e){var t=e.bind;return e===ju||Oj(ju,e)&&t===ju.bind?Nj:t}});var UI=h((VG,jI)=>{"use strict";var Dj=MI();jI.exports=Dj});var JI=h((zG,BI)=>{BI.exports=UI()});function Ra(e,t){ye.__h&&ye.__h(ie,e,Ai||t),Ai=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ht(e){return Ai=1,qj(TE,e)}function qj(e,t,r){var n=Ra(ln++,2);if(n.t=e,!n.__c&&(n.__=[TE(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=ie,!ie.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,id.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,EE.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,xe.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};ie.__f=!0;var o=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.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)},ie.shouldComponentUpdate=i}return n.__N||n.__}function Rr(e,t){var r=Ra(ln++,3);!ye.__s&&AE(r.__H,t)&&(r.__=e,r.u=t,ie.__H.__h.push(r))}function Ei(e){return Ai=5,cd(function(){return{current:e}},[])}function cd(e,t){var r=Ra(ln++,7);return AE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lt(e,t){return Ai=8,cd(function(){return e},t)}function Lj(e){var t=ie.context[e.__c],r=Ra(ln++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Fj(){for(var e;e=kE.shift();)if(e.__P&&e.__H)try{var t,r;(0,xe.default)(t=e.__H.__h).call(t,ga),(0,xe.default)(r=e.__H.__h).call(r,Gu),e.__H.__h=[]}catch(n){e.__H.__h=[],ye.__e(n,e.__v)}}function Mj(e){var t,r=function(){clearTimeout(n),QI&&cancelAnimationFrame(t),(0,Tt.default)(e)},n=(0,Tt.default)(r,100);QI&&(t=requestAnimationFrame(r))}function ga(e){var t=ie,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ie=t}function Gu(e){var t=ie;e.__c=e.__(),ie=t}function AE(e,t){return!e||e.length!==t.length||(0,xa.default)(t).call(t,function(r,n){return r!==e[n]})}function TE(e,t){return typeof t=="function"?t(e):t}function jj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wu(){throw new Error("setTimeout has not been defined")}function Ku(){throw new Error("clearTimeout has not been defined")}function PE(e){if(Et===Tt.default)return(0,Tt.default)(e,0);if((Et===Wu||!Et)&&Tt.default)return Et=Tt.default,(0,Tt.default)(e,0);try{return Et(e,0)}catch(t){try{return Et.call(null,e,0)}catch(r){return Et.call(this,e,0)}}}function Uj(e){if(St===clearTimeout)return clearTimeout(e);if((St===Ku||!St)&&clearTimeout)return St=clearTimeout,clearTimeout(e);try{return St(e)}catch(t){try{return St.call(null,e)}catch(r){return St.call(this,e)}}}function Bj(){!on||!dr||(on=!1,dr.length?$t=(0,Pa.default)(dr).call(dr,$t):ya=-1,$t.length&&RE())}function RE(){if(!on){var e=PE(Bj);on=!0;for(var t=$t.length;t;){for(dr=$t,$t=[];++ya<t;)dr&&dr[ya].run();ya=-1,t=$t.length}dr=null,on=!1,Uj(e)}}function OE(e,t){this.fun=e,this.array=t}function zt(){}function Hj(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 Vj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function Kj(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function qE(e){return(0,sd.default)(e).call(e)}function Qj(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,r){return e.replace(t,r)}function Qu(e,t){return(0,Vt.default)(e).call(e,t)}function Re(e,t){return e.charCodeAt(t)|0}function Ti(e,t,r){return(0,ld.default)(e).call(e,t,r)}function xt(e){return e.length}function fd(e){return e.length}function fa(e,t){return t.push(e),e}function Yj(e,t){return(0,ki.default)(e).call(e,t).join("")}function Da(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Na,column:cn,length:a,return:""}}function wi(e,t){return Wj(Da("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zj(){return _e}function Xj(){return _e=Ge>0?Re(dn,--Ge):0,cn--,_e===10&&(cn=1,Na--),_e}function et(){return _e=Ge<LE?Re(dn,Ge++):0,cn++,_e===10&&(cn=1,Na++),_e}function Ct(){return Re(dn,Ge)}function _a(){return Ge}function Di(e,t){return Ti(dn,e,t)}function Ci(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 FE(e){return Na=cn=1,LE=xt(dn=e),Ge=0,[]}function ME(e){return dn="",e}function ba(e){return qE(Di(Ge-1,Yu(e===91?e+2:e===40?e+1:e)))}function eU(e){for(;(_e=Ct())&&_e<33;)et();return Ci(e)>2||Ci(_e)>3?"":" "}function tU(e,t){for(;--t&&et()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Di(e,_a()+(t<6&&Ct()==32&&et()==32))}function Yu(e){for(;et();)switch(_e){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Yu(_e);break;case 40:e===41&&Yu(e);break;case 92:et();break}return Ge}function rU(e,t){for(;et()&&e+_e!==57&&!(e+_e===84&&Ct()===47););return"/*"+Di(t,Ge-1)+"*"+Oa(e===47?e:et())}function nU(e){for(;!Ci(Ct());)et();return Di(e,Ge)}function iU(e){return ME(wa("",null,null,null,[""],e=FE(e),0,[0],e))}function wa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=et()){case 40:if(m!=108&&Re(E,u-1)==58){Qu(E+=H(ba(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ba(_);break;case 9:case 10:case 13:case 32:E+=eU(m);break;case 92:E+=tU(_a()-1,7);continue;case 47:switch(Ct()){case 42:case 47:fa(oU(rU(et(),_a()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=xt(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:f>0&&xt(E)-u&&fa(f>32?ZI(E+";",n,r,u-1):ZI(H(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(fa(P=YI(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)wa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Re(E,3)===110?100:p){case 100:case 109:case 115:wa(e,P,P,n&&fa(YI(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:wa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+xt(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&Xj()==125)continue}switch(E+=Oa(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(xt(E)-1)*v,v=1;break;case 64:Ct()===45&&(E+=ba(et())),p=Ct(),d=u=xt(w=E+=nU(_a())),_++;break;case 45:m===45&&xt(E)==2&&(g=0)}}return o}function YI(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=fd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Ti(e,u+1,u=Gj(g=a[m])),w=e;v<f;++v)(w=qE(g>0?p[v]+" "+_:H(_,/&\f/g,p[v])))&&(l[y++]=w);return Da(e,t,r,i===0?dd:s,l,c,d)}function oU(e,t,r){return Da(e,t,r,ud,Oa(Zj()),Ti(e,2,-2),0)}function ZI(e,t,r,n){return Da(e,t,r,pd,Ti(e,0,n),Ti(e,n+1,-1),n)}function an(e,t){for(var r="",n=fd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function aU(e,t,r,n){switch(e.type){case zj:case pd:return e.return=e.return||e.value;case ud:return"";case DE:return e.return=e.value+"{"+an(e.children,n)+"}";case dd:e.value=e.props.join(",")}return xt(r=an(e.children,n))?e.return=e.value+"{"+r+"}":""}function sU(e){var t=fd(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 lU(e){return function(t){t.root||(t=t.return)&&e(t)}}function UE(e,t){switch(Kj(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Aa+e+Me+e+e;case 6828:case 4268:return M+e+Me+e+e;case 6165:return M+e+Me+"flex-"+e+e;case 5187:return M+e+H(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return M+e+Me+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return M+e+Me+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Me+H(e,"shrink","negative")+e;case 5292:return M+e+Me+H(e,"basis","preferred-size")+e;case 6060:return M+"box-"+H(e,"-grow","")+M+e+Me+H(e,"grow","positive")+e;case 4554:return M+H(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Aa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qu(e,"stretch")?UE(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,xt(e)-3-(~Qu(e,"!important")&&10))){case 107:return H(e,":",":"+M)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(Re(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return M+e+Me+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Me+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Me+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Me+e+e}return e}function JE(){if(tE)return ha.exports;tE=1;let e=JE();return ha.exports={default:e},ha.exports.default=e,ha.exports}function Pi(e,t,r){var n,i="";return(0,xe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function IU(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 SU(e){var t=(0,SE.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ri(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 kt={name:i.name,styles:i.styles,next:kt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)kt={name:a.name,styles:a.styles,next:kt},a=a.next;var s=o.styles+";";return s}return AU(e,t,r)}case"function":{if(e!==void 0){var l=kt,c=r(e);return kt=l,Ri(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function AU(e,t,r){var n="";if((0,xi.default)(r))for(var i=0;i<r.length;i++)n+=Ri(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]+"}":rE(s)&&(n+=Bu(o)+":"+nE(o,s)+";")}else if((0,xi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)rE(a[l])&&(n+=Bu(o)+":"+nE(o,a[l])+";");else{var c=Ri(e,t,a);switch(o){case"animation":case"animationName":{n+=Bu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function pr(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="";kt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ri(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ri(r,t,e[s]),n){var l=o;i+=l[s]}iE.lastIndex=0;for(var c="",d;(d=iE.exec(i))!==null;)c+="-"+d[1];var u=IU(i)+c;return{name:u,styles:i,next:kt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pr(t)}function MU(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function b(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:--BU,__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 O.vnode&&O.vnode(c),c}function qi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Ht(e());return Rr(()=>{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 E2(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 XE(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=E2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function S2(e){let t=()=>XE(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function A2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=ot(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=k2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Le("img",L(C({},a),{ref:c,src:t!=null?t:"",style:C({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",L(C({},a),{ref:c,className:i,children:r}))}function T2(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?Le(i.type,L(C({},i.props),{style:L(C({},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?Le(e.type,L(C({},e.props),{style:L(C({},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 D2(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 gE(e,t,r){return La.call(t,"css")?b(gd,GE(e,t),r):b(e,t,r)}function U2(e,t,r){return La.call(t,"css")?b(gd,GE(e,t),r):b(e,t,r)}function Y2(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function pS(e){return(0,sd.default)(e).call(e)}function Z2(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function rd(e,t){return(0,Vt.default)(e).call(e,t)}function Oe(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return(0,ld.default)(e).call(e,t,r)}function At(e){return e.length}function wd(e){return e.length}function va(e,t){return t.push(e),e}function X2(e,t){return(0,ki.default)(e).call(e,t).join("")}function Ba(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ua,column:un,length:a,return:""}}function Ii(e,t){return Q2(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function eB(){return be}function tB(){return be=We>0?Oe(pn,--We):0,un--,be===10&&(un=1,Ua--),be}function tt(){return be=We<fS?Oe(pn,We++):0,un++,be===10&&(un=1,Ua++),be}function Pt(){return Oe(pn,We)}function Ia(){return We}function Mi(e,t){return Oi(pn,e,t)}function Ni(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 hS(e){return Ua=un=1,fS=At(pn=e),We=0,[]}function mS(e){return pn="",e}function Ea(e){return pS(Mi(We-1,nd(e===91?e+2:e===40?e+1:e)))}function rB(e){for(;(be=Pt())&&be<33;)tt();return Ni(e)>2||Ni(be)>3?"":" "}function nB(e,t){for(;--t&&tt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Mi(e,Ia()+(t<6&&Pt()==32&&tt()==32))}function nd(e){for(;tt();)switch(be){case e:return We;case 34:case 39:e!==34&&e!==39&&nd(be);break;case 40:e===41&&nd(e);break;case 92:tt();break}return We}function iB(e,t){for(;tt()&&e+be!==57&&!(e+be===84&&Pt()===47););return"/*"+Mi(t,We-1)+"*"+ja(e===47?e:tt())}function oB(e){for(;!Ni(Pt());)tt();return Mi(e,We)}function aB(e){return mS(Sa("",null,null,null,[""],e=hS(e),0,[0],e))}function Sa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=tt()){case 40:if(m!=108&&Oe(E,u-1)==58){rd(E+=U(Ea(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Ea(_);break;case 9:case 10:case 13:case 32:E+=rB(m);break;case 92:E+=nB(Ia()-1,7);continue;case 47:switch(Pt()){case 42:case 47:va(sB(iB(tt(),Ia()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=At(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=U(E,/\f/g,"")),f>0&&At(E)-u&&va(f>32?_E(E+";",n,r,u-1):_E(U(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(va(P=yE(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Sa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Oe(E,3)===110?100:p){case 100:case 108:case 109:case 115:Sa(e,P,P,n&&va(yE(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Sa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+At(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&tB()==125)continue}switch(E+=ja(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(At(E)-1)*v,v=1;break;case 64:Pt()===45&&(E+=Ea(tt())),p=Pt(),d=u=At(w=E+=oB(Ia())),_++;break;case 45:m===45&&At(E)==2&&(g=0)}}return o}function yE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=wd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Oi(e,u+1,u=K2(g=a[m])),w=e;v<f;++v)(w=pS(g>0?p[v]+" "+_:U(_,/&\f/g,p[v])))&&(l[y++]=w);return Ba(e,t,r,i===0?_d:s,l,c,d)}function sB(e,t,r){return Ba(e,t,r,uS,ja(eB()),Oi(e,2,-2),0)}function _E(e,t,r,n){return Ba(e,t,r,bd,Oi(e,0,n),Oi(e,n+1,-1),n)}function sn(e,t){for(var r="",n=wd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function lB(e,t,r,n){switch(e.type){case W2:if(e.children.length)break;case G2:case bd:return e.return=e.return||e.value;case uS:return"";case dS:return e.return=e.value+"{"+sn(e.children,n)+"}";case _d:e.value=e.props.join(",")}return At(r=sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function cB(e){var t=wd(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 uB(e){return function(t){t.root||(t=t.return)&&e(t)}}function vS(e,t){switch(Y2(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+Ca+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+U(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+U(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+U(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+U(e,"shrink","negative")+e;case 5292:return j+e+je+U(e,"basis","preferred-size")+e;case 6060:return j+"box-"+U(e,"-grow","")+j+e+je+U(e,"grow","positive")+e;case 4554:return j+U(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return U(U(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 U(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(At(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ca+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rd(e,"stretch")?vS(U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,At(e)-3-(~rd(e,"!important")&&10))){case 107:return U(e,":",":"+j)+e;case 101:return U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Oe(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function wE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Vu(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function Id(){let e=!1,t=null,r=0,n=new Set,i=a=>I(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Si.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),rr(b(kB,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Si.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&&(rr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Si.release()))};return{show:i,hide:o,get isLoading(){return e}}}var id,EE,xe,Pa,xa,Tt,ka,xi,od,Vt,ki,SE,xE,ad,sd,ld,YG,zu,ln,ie,Uu,$I,Ai,kE,ye,HI,VI,zI,GI,WI,KI,QI,CE,pe,Et,St,$t,on,dr,ya,Jj,ke,$j,NE,Me,Aa,M,ud,dd,pd,zj,DE,Gj,Oa,Wj,Na,cn,LE,Ge,_e,dn,cU,uU,dU,XI,pU,fU,hU,mU,vU,jE,gU,eE,yU,_U,bU,BE,ha,tE,wU,hd,qa,EU,xU,kU,$E,rE,Bu,nE,iE,kt,TU,HE,VE,oE,La,md,zE,vd,Fa,CU,PU,RU,OU,NU,Zu,Xu,GE,DU,gd,qU,aE,LU,FU,jU,UU,Ju,sE,$u,Hu,BU,lE,JU,$U,HU,VU,zU,cE,GU,uE,WU,dE,KU,pE,QU,YU,ZU,XU,e2,fE,t2,r2,n2,i2,o2,hE,a2,s2,l2,c2,u2,d2,p2,f2,h2,m2,v2,g2,y2,_2,b2,w2,WE,KE,QE,ed,I2,YE,ZE,Ta,Si,mE,x2,yd,k2,eS,tS,rS,C2,P2,R2,td,O2,nS,N2,Li,Ma,vE,Pr,iS,nn,q2,L2,F2,M2,j2,ma,oS,aS,de,B2,J2,sS,lS,cS,Fi,$2,H2,V2,z2,je,Ca,j,uS,_d,bd,G2,dS,W2,K2,ja,Q2,Ua,un,fS,We,be,pn,dB,pB,fB,bE,hB,mB,vB,gB,yB,_B,bB,wB,IB,EB,SB,ji,IE,xB,kB,ZG,Or=T(()=>{"use strict";Ur();id=le(mv(),1),EE=le(xv(),1),xe=le(Mv(),1),Pa=le(Xv(),1),xa=le(lg(),1),Tt=le(kg(),1);Fo();Fo();ka=le(uy(),1),xi=le(gy(),1),od=le(Nb(),1),Vt=le($b(),1),ki=le(Zb(),1),SE=le(o0(),1),xE=le(Iw(),1),ad=le(Lw(),1),sd=le(Xw(),1),ld=le(uI(),1);Lu();Lu();YG=le(AI(),1),zu=le(JI(),1),Ai=0,kE=[],ye=O,HI=ye.__b,VI=ye.__r,zI=ye.diffed,GI=ye.__c,WI=ye.unmount,KI=ye.__;ye.__b=function(e){ie=null,HI&&HI(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),KI&&KI(e,t)},ye.__r=function(e){var t,r,n;VI&&VI(e),ln=0;var i=(ie=e.__c).__H;i&&(Uu===ie?(i.__h=[],ie.__h=[],(0,xe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,xe.default)(r=i.__h).call(r,ga),(0,xe.default)(n=i.__h).call(n,Gu),i.__h=[],ln=0)),Uu=ie},ye.diffed=function(e){var t;zI&&zI(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(kE.push(r)!==1&&$I===ye.requestAnimationFrame||(($I=ye.requestAnimationFrame)||Mj)(Fj)),(0,xe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Uu=ie=null},ye.__c=function(e,t){(0,xa.default)(t).call(t,function(r){try{var n,i;(0,xe.default)(n=r.__h).call(n,ga),r.__h=(0,id.default)(i=r.__h).call(i,function(o){return!o.__||Gu(o)})}catch(o){(0,xa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ye.__e(o,r.__v)}}),GI&&GI(e,t)},ye.unmount=function(e){var t;WI&&WI(e);var r,n=e.__c;n&&n.__H&&((0,xe.default)(t=n.__H.__).call(t,function(i){try{ga(i)}catch(o){r=o}}),n.__H=void 0,r&&ye.__e(r,n.__v))};QI=typeof requestAnimationFrame=="function";CE={exports:{}},pe=CE.exports={};(function(){try{typeof Tt.default=="function"?Et=Tt.default:Et=Wu}catch(e){Et=Wu}try{typeof clearTimeout=="function"?St=clearTimeout:St=Ku}catch(e){St=Ku}})();$t=[],on=!1,ya=-1;pe.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];$t.push(new OE(e,t)),$t.length===1&&!on&&PE(RE)};OE.prototype.run=function(){this.fun.apply(null,this.array)};pe.title="browser";pe.browser=!0;pe.env={};pe.argv=[];pe.version="";pe.versions={};pe.on=zt;pe.addListener=zt;pe.once=zt;pe.off=zt;pe.removeListener=zt;pe.removeAllListeners=zt;pe.emit=zt;pe.prependListener=zt;pe.prependOnceListener=zt;pe.listeners=function(e){return[]};pe.binding=function(e){throw new Error("process.binding is not supported")};pe.cwd=function(){return"/"};pe.chdir=function(e){throw new Error("process.chdir is not supported")};pe.umask=function(){return 0};Jj=CE.exports,ke=jj(Jj),$j=ka.default||void 0||self;NE=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,xe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Hj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,xe.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}(),Me="-ms-",Aa="-moz-",M="-webkit-",ud="comm",dd="rule",pd="decl",zj="@import",DE="@keyframes",Gj=Math.abs,Oa=String.fromCharCode,Wj=ad.default;Na=1,cn=1,LE=0,Ge=0,_e=0,dn="";cU=function(e,t,r){for(var n=0,i=0;n=i,i=Ct(),n===38&&i===12&&(t[r]=1),!Ci(i);)et();return Di(e,Ge)},uU=function(e,t){var r=-1,n=44;do switch(Ci(n)){case 0:n===38&&Ct()===12&&(t[r]=1),e[r]+=cU(Ge-1,t,r);break;case 2:e[r]+=ba(n);break;case 4:if(n===44){e[++r]=Ct()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Oa(n)}while(n=et());return e},dU=function(e,t){return ME(uU(FE(e),t))},XI=new od.default,pU=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&&!XI.get(r))&&!n){XI.set(e,!0);for(var i=[],o=dU(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]}}},fU=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},hU="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",mU=function(e){var t;return e.type==="comm"&&(0,Vt.default)(t=e.children).call(t,hU)>-1},vU=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(mU(l))return;break}}(0,xe.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".')})}}}},jE=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},gU=function(e,t){for(var r=e-1;r>=0;r--)if(!jE(t[r]))return!0;return!1},eE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},yU=function(e,t,r){jE(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."),eE(e)):gU(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),eE(e)))};_U=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pd:e.return=UE(e.value,e.length);break;case DE:return an([wi(e,{value:H(e.value,"@","@"+M)})],n);case dd:if(e.length)return Yj(e.props,function(i){switch(Qj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([wi(e,{props:[H(i,/:(read-\w+)/,":"+Aa+"$1")]})],n);case"::placeholder":return an([wi(e,{props:[H(i,/:(plac\w+)/,":"+M+"input-$1")]}),wi(e,{props:[H(i,/:(plac\w+)/,":"+Aa+"$1")]}),wi(e,{props:[H(i,/:(plac\w+)/,Me+"input-$1")]})],n)}return""})}},bU=[_U],BE=function(e){var t=e.key;if(ke.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
21
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,xe.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||bU;if(ke.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,xe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[pU,fU];ke.env.NODE_ENV!=="production"&&l.push(vU({get compat(){return f.compat}}),yU);{var c,d=[aU,ke.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==ud&&c.insert(m.value+"{}"))}:lU(function(m){c.insert(m)})],u=sU((0,Pa.default)(l).call(l,n,d)),p=function(m){return an(iU(m),u)};s=function(m,g,y,v){c=y,ke.env.NODE_ENV!=="production"&&(0,ki.default)(g)!==void 0&&(c={insert:function(_){y.insert(_+(0,ki.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new NE({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},ha={exports:{}};JE();wU=!0;hd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||wU===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},qa=function(e,t,r){hd(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)}};EU={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};xU=/[A-Z]|^ms/g,kU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$E=function(e){return e.charCodeAt(1)===45},rE=function(e){return e!=null&&typeof e!="boolean"},Bu=SU(function(e){return $E(e)?e:e.replace(xU,"-$&").toLowerCase()}),nE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(kU,function(r,n,i){return kt={name:n,styles:i,next:kt},n})}return EU[e]!==1&&!$E(e)&&typeof t=="number"&&t!==0?t+"px":t};iE=/label:\s*([^\s;{]+)\s*(;|$)/g;TU=function(e){return e()},HE=Oc?Oc:!1,VE=HE||TU,oE=HE||Qr,La={}.hasOwnProperty,md=wr(typeof HTMLElement<"u"?BE({key:"css"}):null);ke.env.NODE_ENV!=="production"&&(md.displayName="EmotionCacheContext");zE=md.Provider,vd=function(e){return Dc(function(t,r){var n=Zr(md);return e(t,n,r)})},Fa=wr({});ke.env.NODE_ENV!=="production"&&(Fa.displayName="EmotionThemeContext");CU=function(e){var t=e.split(".");return t[t.length-1]},PU=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 CU(t[1])},RU=new xE.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),OU=function(e){return e.replace(/\$/g,"-")},NU=function(e){if(e)for(var t=e.split(`
22
- `),r=0;r<t.length;r++){var n=PU(t[r]);if(n){if(RU.has(n))break;if(/^[A-Z]/.test(n))return OU(n)}}},Zu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xu="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",GE=function(e,t){var r,n;if(ke.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Vt.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)La.call(t,o)&&(i[o]=t[o]);if(i[Zu]=e,ke.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Vt.default)(n=t.css.name).call(n,"-")===-1)){var a=NU(new Error().stack);a&&(i[Xu]=a)}return i},DU=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return hd(t,r,n),VE(function(){return qa(t,r,n)}),null},gd=vd(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Zu],a=[i],s="";typeof e.className=="string"?s=Pi(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=pr(a,void 0,Zr(Fa));if(ke.env.NODE_ENV!=="production"&&(0,Vt.default)(n=l.name).call(n,"-")===-1){var c=e[Xu];c&&(l=pr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)La.call(e,u)&&u!=="css"&&u!==Zu&&(ke.env.NODE_ENV==="production"||u!==Xu)&&(d[u]=e[u]);return d.ref=r,d.className=s,Le(Ze,null,Le(DU,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Le(o,d))});ke.env.NODE_ENV!=="production"&&(gd.displayName="EmotionCssPropInternal");qU={version:"11.10.5"},aE=!1,LU=vd(function(e,t){ke.env.NODE_ENV!=="production"&&!aE&&(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?"),aE=!0);var r=e.styles,n=pr([r],void 0,Zr(Fa)),i=ai();return oE(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]),oE(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});ke.env.NODE_ENV!=="production"&&(LU.displayName="EmotionGlobal");FU=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,xi.default)(o))a=e(o);else{ke.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};jU=function(e){var t=e.cache,r=e.serializedArr;return VE(function(){for(var n=0;n<r.length;n++)qa(t,r[n],!1)}),null},UU=vd(function(e,t){var r=!1,n=[],i=function(){if(r&&ke.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=pr(c,t.registered);return n.push(u),hd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&ke.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 MU(t.registered,i,FU(c))},a={css:i,cx:o,theme:Zr(Fa)},s=e.children(a);return r=!0,Le(Ze,null,Le(jU,{cache:t,serializedArr:n}),s)});ke.env.NODE_ENV!=="production"&&(UU.displayName="EmotionClassNames");ke.env.NODE_ENV!=="production"&&(Ju=!0,sE=typeof jest<"u"||typeof vi<"u",Ju&&!sE&&($u=typeof ka.default<"u"?ka.default:Ju?window:$j,Hu="__EMOTION_REACT_"+qU.version.split(".")[0]+"__",$u[Hu]&&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."),$u[Hu]=!0));BU=0;lE={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"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"}},JU=N`
19
+ `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=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 I(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 Hf=T(()=>{"use strict";Z()});var Vf=T(()=>{"use strict"});var zf=T(()=>{"use strict";D();Il()});var Gf=T(()=>{"use strict";Z()});var yo,Ol=T(()=>{"use strict";Vf();zf();Z();Gf();D();yo=new bt});function Ft(e,t){for(var r in t)e[r]=t[r];return e}function Ml(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Le(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?Io.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 bo(e,a,n,i,null)}function bo(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?++Yf:i,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(o),o}function Ze(e){return e.children}function Ye(e,t){this.props=e,this.context=t}function jr(e,t){if(t==null)return e.__?jr(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"?jr(e):null}function nh(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 nh(e)}}function ql(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!wo.__r++||Wf!==O.debounceRendering)&&((Wf=O.debounceRendering)||Zf)(wo)}function wo(){for(var e,t,r,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(Xf),e=br.shift(),s=br.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Ft({},n)).__v=n.__v+1,O.vnode&&O.vnode(r),jl(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?jr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ah(o,r,a),r.__e!=i&&nh(r)));wo.__r=0}function ih(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||rh,_=t.length;for(l=E1(r,t,v,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?jn:v[f.__i]||jn,f.__i=u,y=jl(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ul(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=oh(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function E1(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?bo(null,a,null,null,null):Un(a)?bo(Ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?bo(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=S1(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=jr(s)),lh(s,s));return n}function oh(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=oh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=jr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Bn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){Bn(r,t)}):t.push(e)),t}function S1(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 Kf(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||I1.test(t)?r:r+"px"}function _o(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||Kf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Kf(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(eh,"$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=Fl,e.addEventListener(t,o?Dl:Nl,o)):e.removeEventListener(t,o?Dl:Nl,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 Qf(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Fl++;else if(t.u<r.t)return;return r(O.event?O.event(t):t)}}}function jl(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,_,w,A,R,P,E,k,H,Je,$e=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=O.__b)&&d(t);e:if(typeof $e=="function")try{if(v=t.props,_="prototype"in $e&&$e.prototype.render,w=(d=$e.contextType)&&n[d.__c],A=d?w?w.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new $e(v,A):(t.__c=u=new Ye(v,A),u.constructor=$e,u.render=k1),w&&w.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&$e.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ft({},u.__s)),Ft(u.__s,$e.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&$e.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&$e.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(vt){vt&&(vt.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),_&&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,P=O.__r,E=0,_){for(u.state=u.__s,u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=Ft(Ft({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),H=d,d!=null&&d.type===Ze&&d.key==null&&(H=sh(d.props.children)),s=ih(e,Un(H)?H:[H],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(vt){if(t.__v=null,l||o!=null)if(vt.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(Je=o.length;Je--;)Ml(o[Je]);else t.__e=r.__e,t.__k=r.__k;O.__e(vt,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=x1(r.__e,t,r,n,i,o,a,l,c);return(d=O.diffed)&&d(t),128&t.__u?void 0:s}function ah(e,t,r){for(var n=0;n<r.length;n++)Ul(r[n],r[++n],r[++n]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){O.__e(o,i.__v)}})}function sh(e){return typeof e!="object"||e==null?e:Un(e)?e.map(sh):Ft({},e)}function x1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="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==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(v);e=document.createElementNS(i,_,v.is&&v),s&&(O.__m&&O.__m(t,o),s=!1),o=null}if(_===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Io.call(e.childNodes),y=r.props||jn,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;_o(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||_o(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ih(t.type==="template"?e.content:e,Un(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&jr(r,0),s,l),o!=null)for(c=o.length;c--;)Ml(o[c]);s||(c="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||_=="progress"&&!m||_=="option"&&m!==y[c])&&_o(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&_o(e,c,g,y[c],i))}return e}function Ul(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){O.__e(i,r)}}function lh(e,t,r){var n,i;if(O.unmount&&O.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ul(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){O.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&lh(n[i],t,r||typeof e.type!="function");r||Ml(e.__e),e.__c=e.__=e.__e=void 0}function k1(e,t,r){return this.constructor(e,r)}function rr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),O.__&&O.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],jl(t,e=(!n&&r||t).__k=Le(Ze,null,[e]),i||jn,jn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Io.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),ah(o,e,a)}function wr(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,ql(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"+th++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Io,O,Yf,Ll,br,Wf,Zf,Xf,eh,Fl,Nl,Dl,th,jn,rh,I1,Un,Ur=T(()=>{jn={},rh=[],I1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;Io=rh.slice,O={__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}},Yf=0,Ll=function(e){return e!=null&&e.constructor==null},Ye.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ft({},this.state),typeof e=="function"&&(e=e(Ft({},r),this.props)),e&&Ft(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ql(this))},Ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ql(this))},Ye.prototype.render=Ze,br=[],Zf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xf=function(e,t){return e.__v.__b-t.__v.__b},wo.__r=0,eh=/(PointerCapture)$|Capture$/i,Fl=0,Nl=Qf(!1),Dl=Qf(!0),th=0});var ae=h((S9,ch)=>{"use strict";ch.exports=function(e){try{return!!e()}catch(t){return!0}}});var Br=h((x9,uh)=>{"use strict";var A1=ae();uh.exports=!A1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ge=h((k9,fh)=>{"use strict";var dh=Br(),ph=Function.prototype,Bl=ph.call,T1=dh&&ph.bind.bind(Bl,Bl);fh.exports=dh?T1:function(e){return function(){return Bl.apply(e,arguments)}}});var He=h((A9,hh)=>{"use strict";var C1=ge();hh.exports=C1({}.isPrototypeOf)});var se=h((Jl,mh)=>{"use strict";var Jn=function(e){return e&&e.Math===Math&&e};mh.exports=Jn(typeof globalThis=="object"&&globalThis)||Jn(typeof window=="object"&&window)||Jn(typeof self=="object"&&self)||Jn(typeof global=="object"&&global)||Jn(typeof Jl=="object"&&Jl)||function(){return this}()||Function("return this")()});var $l=h((T9,_h)=>{"use strict";var P1=Br(),yh=Function.prototype,vh=yh.apply,gh=yh.call;_h.exports=typeof Reflect=="object"&&Reflect.apply||(P1?gh.bind(vh):function(){return gh.apply(vh,arguments)})});var Mt=h((C9,wh)=>{"use strict";var bh=ge(),R1=bh({}.toString),O1=bh("".slice);wh.exports=function(e){return O1(R1(e),8,-1)}});var $n=h((P9,Ih)=>{"use strict";var N1=Mt(),D1=ge();Ih.exports=function(e){if(N1(e)==="Function")return D1(e)}});var Pe=h((R9,Eh)=>{"use strict";var Hl=typeof document=="object"&&document.all;Eh.exports=typeof Hl=="undefined"&&Hl!==void 0?function(e){return typeof e=="function"||e===Hl}:function(e){return typeof e=="function"}});var Ve=h((O9,Sh)=>{"use strict";var q1=ae();Sh.exports=!q1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var dt=h((N9,xh)=>{"use strict";var L1=Br(),Eo=Function.prototype.call;xh.exports=L1?Eo.bind(Eo):function(){return Eo.apply(Eo,arguments)}});var Vl=h(Th=>{"use strict";var kh={}.propertyIsEnumerable,Ah=Object.getOwnPropertyDescriptor,F1=Ah&&!kh.call({1:2},1);Th.f=F1?function(t){var r=Ah(this,t);return!!r&&r.enumerable}:kh});var Hn=h((q9,Ch)=>{"use strict";Ch.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var So=h((L9,Ph)=>{"use strict";var M1=ge(),j1=ae(),U1=Mt(),zl=Object,B1=M1("".split);Ph.exports=j1(function(){return!zl("z").propertyIsEnumerable(0)})?function(e){return U1(e)==="String"?B1(e,""):zl(e)}:zl});var Ir=h((F9,Rh)=>{"use strict";Rh.exports=function(e){return e==null}});var Er=h((M9,Oh)=>{"use strict";var J1=Ir(),$1=TypeError;Oh.exports=function(e){if(J1(e))throw new $1("Can't call method on "+e);return e}});var nr=h((j9,Nh)=>{"use strict";var H1=So(),V1=Er();Nh.exports=function(e){return H1(V1(e))}});var Se=h((U9,Dh)=>{"use strict";var z1=Pe();Dh.exports=function(e){return typeof e=="object"?e!==null:z1(e)}});var It=h((B9,qh)=>{"use strict";qh.exports={}});var Jr=h((J9,Fh)=>{"use strict";var Gl=It(),Wl=se(),G1=Pe(),Lh=function(e){return G1(e)?e:void 0};Fh.exports=function(e,t){return arguments.length<2?Lh(Gl[e])||Lh(Wl[e]):Gl[e]&&Gl[e][t]||Wl[e]&&Wl[e][t]}});var xo=h(($9,Uh)=>{"use strict";var W1=se(),Mh=W1.navigator,jh=Mh&&Mh.userAgent;Uh.exports=jh?String(jh):""});var Ao=h((H9,zh)=>{"use strict";var Vh=se(),Kl=xo(),Bh=Vh.process,Jh=Vh.Deno,$h=Bh&&Bh.versions||Jh&&Jh.version,Hh=$h&&$h.v8,pt,ko;Hh&&(pt=Hh.split("."),ko=pt[0]>0&&pt[0]<4?1:+(pt[0]+pt[1]));!ko&&Kl&&(pt=Kl.match(/Edge\/(\d+)/),(!pt||pt[1]>=74)&&(pt=Kl.match(/Chrome\/(\d+)/),pt&&(ko=+pt[1])));zh.exports=ko});var Ql=h((V9,Wh)=>{"use strict";var Gh=Ao(),K1=ae(),Q1=se(),Y1=Q1.String;Wh.exports=!!Object.getOwnPropertySymbols&&!K1(function(){var e=Symbol("symbol detection");return!Y1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gh&&Gh<41})});var Yl=h((z9,Kh)=>{"use strict";var Z1=Ql();Kh.exports=Z1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Zl=h((G9,Qh)=>{"use strict";var X1=Jr(),eT=Pe(),tT=He(),rT=Yl(),nT=Object;Qh.exports=rT?function(e){return typeof e=="symbol"}:function(e){var t=X1("Symbol");return eT(t)&&tT(t.prototype,nT(e))}});var Vn=h((W9,Yh)=>{"use strict";var iT=String;Yh.exports=function(e){try{return iT(e)}catch(t){return"Object"}}});var Sr=h((K9,Zh)=>{"use strict";var oT=Pe(),aT=Vn(),sT=TypeError;Zh.exports=function(e){if(oT(e))return e;throw new sT(aT(e)+" is not a function")}});var To=h((Q9,Xh)=>{"use strict";var lT=Sr(),cT=Ir();Xh.exports=function(e,t){var r=e[t];return cT(r)?void 0:lT(r)}});var tm=h((Y9,em)=>{"use strict";var Xl=dt(),ec=Pe(),tc=Se(),uT=TypeError;em.exports=function(e,t){var r,n;if(t==="string"&&ec(r=e.toString)&&!tc(n=Xl(r,e))||ec(r=e.valueOf)&&!tc(n=Xl(r,e))||t!=="string"&&ec(r=e.toString)&&!tc(n=Xl(r,e)))return n;throw new uT("Can't convert object to primitive value")}});var $r=h((Z9,rm)=>{"use strict";rm.exports=!0});var om=h((X9,im)=>{"use strict";var nm=se(),dT=Object.defineProperty;im.exports=function(e,t){try{dT(nm,e,{value:t,configurable:!0,writable:!0})}catch(r){nm[e]=t}return t}});var zn=h((eH,lm)=>{"use strict";var pT=$r(),fT=se(),hT=om(),am="__core-js_shared__",sm=lm.exports=fT[am]||hT(am,{});(sm.versions||(sm.versions=[])).push({version:"3.41.0",mode:pT?"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 rc=h((tH,um)=>{"use strict";var cm=zn();um.exports=function(e,t){return cm[e]||(cm[e]=t||{})}});var Hr=h((rH,dm)=>{"use strict";var mT=Er(),vT=Object;dm.exports=function(e){return vT(mT(e))}});var Xe=h((nH,pm)=>{"use strict";var gT=ge(),yT=Hr(),_T=gT({}.hasOwnProperty);pm.exports=Object.hasOwn||function(t,r){return _T(yT(t),r)}});var Co=h((iH,fm)=>{"use strict";var bT=ge(),wT=0,IT=Math.random(),ET=bT(1 .toString);fm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ET(++wT+IT,36)}});var Fe=h((oH,mm)=>{"use strict";var ST=se(),xT=rc(),hm=Xe(),kT=Co(),AT=Ql(),TT=Yl(),Vr=ST.Symbol,nc=xT("wks"),CT=TT?Vr.for||Vr:Vr&&Vr.withoutSetter||kT;mm.exports=function(e){return hm(nc,e)||(nc[e]=AT&&hm(Vr,e)?Vr[e]:CT("Symbol."+e)),nc[e]}});var _m=h((aH,ym)=>{"use strict";var PT=dt(),vm=Se(),gm=Zl(),RT=To(),OT=tm(),NT=Fe(),DT=TypeError,qT=NT("toPrimitive");ym.exports=function(e,t){if(!vm(e)||gm(e))return e;var r=RT(e,qT),n;if(r){if(t===void 0&&(t="default"),n=PT(r,e,t),!vm(n)||gm(n))return n;throw new DT("Can't convert object to primitive value")}return t===void 0&&(t="number"),OT(e,t)}});var ic=h((sH,bm)=>{"use strict";var LT=_m(),FT=Zl();bm.exports=function(e){var t=LT(e,"string");return FT(t)?t:t+""}});var ac=h((lH,Im)=>{"use strict";var MT=se(),wm=Se(),oc=MT.document,jT=wm(oc)&&wm(oc.createElement);Im.exports=function(e){return jT?oc.createElement(e):{}}});var sc=h((cH,Em)=>{"use strict";var UT=Ve(),BT=ae(),JT=ac();Em.exports=!UT&&!BT(function(){return Object.defineProperty(JT("div"),"a",{get:function(){return 7}}).a!==7})});var lc=h(xm=>{"use strict";var $T=Ve(),HT=dt(),VT=Vl(),zT=Hn(),GT=nr(),WT=ic(),KT=Xe(),QT=sc(),Sm=Object.getOwnPropertyDescriptor;xm.f=$T?Sm:function(t,r){if(t=GT(t),r=WT(r),QT)try{return Sm(t,r)}catch(n){}if(KT(t,r))return zT(!HT(VT.f,t,r),t[r])}});var Am=h((dH,km)=>{"use strict";var YT=ae(),ZT=Pe(),XT=/#|\.prototype\./,Gn=function(e,t){var r=tC[eC(e)];return r===nC?!0:r===rC?!1:ZT(t)?YT(t):!!t},eC=Gn.normalize=function(e){return String(e).replace(XT,".").toLowerCase()},tC=Gn.data={},rC=Gn.NATIVE="N",nC=Gn.POLYFILL="P";km.exports=Gn});var Wn=h((pH,Cm)=>{"use strict";var Tm=$n(),iC=Sr(),oC=Br(),aC=Tm(Tm.bind);Cm.exports=function(e,t){return iC(e),t===void 0?e:oC?aC(e,t):function(){return e.apply(t,arguments)}}});var cc=h((fH,Pm)=>{"use strict";var sC=Ve(),lC=ae();Pm.exports=sC&&lC(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var jt=h((hH,Rm)=>{"use strict";var cC=Se(),uC=String,dC=TypeError;Rm.exports=function(e){if(cC(e))return e;throw new dC(uC(e)+" is not an object")}});var Ut=h(Nm=>{"use strict";var pC=Ve(),fC=sc(),hC=cc(),Po=jt(),Om=ic(),mC=TypeError,uc=Object.defineProperty,vC=Object.getOwnPropertyDescriptor,dc="enumerable",pc="configurable",fc="writable";Nm.f=pC?hC?function(t,r,n){if(Po(t),r=Om(r),Po(n),typeof t=="function"&&r==="prototype"&&"value"in n&&fc in n&&!n[fc]){var i=vC(t,r);i&&i[fc]&&(t[r]=n.value,n={configurable:pc in n?n[pc]:i[pc],enumerable:dc in n?n[dc]:i[dc],writable:!1})}return uc(t,r,n)}:uc:function(t,r,n){if(Po(t),r=Om(r),Po(n),fC)try{return uc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new mC("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xr=h((vH,Dm)=>{"use strict";var gC=Ve(),yC=Ut(),_C=Hn();Dm.exports=gC?function(e,t,r){return yC.f(e,t,_C(1,r))}:function(e,t,r){return e[t]=r,e}});var z=h((gH,Lm)=>{"use strict";var Kn=se(),bC=$l(),wC=$n(),IC=Pe(),EC=lc().f,SC=Am(),zr=It(),xC=Wn(),Gr=xr(),qm=Xe();zn();var kC=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 bC(e,this,arguments)};return t.prototype=e.prototype,t};Lm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Kn:i?Kn[r]:Kn[r]&&Kn[r].prototype,s=n?zr:zr[r]||Gr(zr,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=SC(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&qm(a,p),m=s[p],d&&(e.dontCallGetSet?(v=EC(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=xC(f,Kn):e.wrap&&d?y=kC(f):o&&IC(f)?y=wC(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&Gr(y,"sham",!0),Gr(s,p,y),o&&(u=r+"Prototype",qm(zr,u)||Gr(zr,u,{}),Gr(zr[u],p,f),e.real&&l&&(c||!l[p])&&Gr(l,p,f)))}});var Mm=h((yH,Fm)=>{"use strict";var AC=Math.ceil,TC=Math.floor;Fm.exports=Math.trunc||function(t){var r=+t;return(r>0?TC:AC)(r)}});var Qn=h((_H,jm)=>{"use strict";var CC=Mm();jm.exports=function(e){var t=+e;return t!==t||t===0?0:CC(t)}});var hc=h((bH,Um)=>{"use strict";var PC=Qn(),RC=Math.min;Um.exports=function(e){var t=PC(e);return t>0?RC(t,9007199254740991):0}});var Wr=h((wH,Bm)=>{"use strict";var OC=hc();Bm.exports=function(e){return OC(e.length)}});var Yn=h((IH,Jm)=>{"use strict";var NC=Mt();Jm.exports=Array.isArray||function(t){return NC(t)==="Array"}});var Ro=h((EH,Hm)=>{"use strict";var DC=Fe(),qC=DC("toStringTag"),$m={};$m[qC]="z";Hm.exports=String($m)==="[object z]"});var Kr=h((SH,Vm)=>{"use strict";var LC=Ro(),FC=Pe(),Oo=Mt(),MC=Fe(),jC=MC("toStringTag"),UC=Object,BC=Oo(function(){return arguments}())==="Arguments",JC=function(e,t){try{return e[t]}catch(r){}};Vm.exports=LC?Oo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=JC(t=UC(e),jC))=="string"?r:BC?Oo(t):(n=Oo(t))==="Object"&&FC(t.callee)?"Arguments":n}});var Gm=h((xH,zm)=>{"use strict";var $C=ge(),HC=Pe(),mc=zn(),VC=$C(Function.toString);HC(mc.inspectSource)||(mc.inspectSource=function(e){return VC(e)});zm.exports=mc.inspectSource});var gc=h((kH,Zm)=>{"use strict";var zC=ge(),GC=ae(),Wm=Pe(),WC=Kr(),KC=Jr(),QC=Gm(),Km=function(){},Qm=KC("Reflect","construct"),vc=/^\s*(?:class|function)\b/,YC=zC(vc.exec),ZC=!vc.test(Km),Zn=function(t){if(!Wm(t))return!1;try{return Qm(Km,[],t),!0}catch(r){return!1}},Ym=function(t){if(!Wm(t))return!1;switch(WC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZC||!!YC(vc,QC(t))}catch(r){return!0}};Ym.sham=!0;Zm.exports=!Qm||GC(function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn(function(){e=!0})||e})?Ym:Zn});var rv=h((AH,tv)=>{"use strict";var Xm=Yn(),XC=gc(),eP=Se(),tP=Fe(),rP=tP("species"),ev=Array;tv.exports=function(e){var t;return Xm(e)&&(t=e.constructor,XC(t)&&(t===ev||Xm(t.prototype))?t=void 0:eP(t)&&(t=t[rP],t===null&&(t=void 0))),t===void 0?ev:t}});var yc=h((TH,nv)=>{"use strict";var nP=rv();nv.exports=function(e,t){return new(nP(e))(t===0?0:t)}});var or=h((CH,ov)=>{"use strict";var iP=Wn(),oP=ge(),aP=So(),sP=Hr(),lP=Wr(),cP=yc(),iv=oP([].push),ir=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=sP(l),f=aP(p),m=lP(f),g=iP(c,d),y=0,v=u||cP,_=t?v(l,m):r||a?v(l,0):void 0,w,A;m>y;y++)if((s||y in f)&&(w=f[y],A=g(w,y,p),e))if(t)_[y]=A;else if(A)switch(e){case 3:return!0;case 5:return w;case 6:return y;case 2:iv(_,w)}else switch(e){case 4:return!1;case 7:iv(_,w)}return o?-1:n||i?i:_}};ov.exports={forEach:ir(0),map:ir(1),filter:ir(2),some:ir(3),every:ir(4),find:ir(5),findIndex:ir(6),filterReject:ir(7)}});var Xn=h((PH,av)=>{"use strict";var uP=ae(),dP=Fe(),pP=Ao(),fP=dP("species");av.exports=function(e){return pP>=51||!uP(function(){var t=[],r=t.constructor={};return r[fP]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var sv=h(()=>{"use strict";var hP=z(),mP=or().filter,vP=Xn(),gP=vP("filter");hP({target:"Array",proto:!0,forced:!gP},{filter:function(t){return mP(this,t,arguments.length>1?arguments[1]:void 0)}})});var st=h((NH,lv)=>{"use strict";var yP=se(),_P=It();lv.exports=function(e,t){var r=_P[e+"Prototype"],n=r&&r[t];if(n)return n;var i=yP[e],o=i&&i.prototype;return o&&o[t]}});var uv=h((DH,cv)=>{"use strict";sv();var bP=st();cv.exports=bP("Array","filter")});var pv=h((qH,dv)=>{"use strict";var wP=He(),IP=uv(),_c=Array.prototype;dv.exports=function(e){var t=e.filter;return e===_c||wP(_c,e)&&t===_c.filter?IP:t}});var hv=h((LH,fv)=>{"use strict";var EP=pv();fv.exports=EP});var vv=h((FH,mv)=>{mv.exports=hv()});var ei=h((MH,gv)=>{"use strict";var SP=ae();gv.exports=function(e,t){var r=[][e];return!!r&&SP(function(){r.call(null,t||function(){return 1},1)})}});var yv=h(()=>{"use strict";var xP=z(),kP=or().every,AP=ei(),TP=AP("every");xP({target:"Array",proto:!0,forced:!TP},{every:function(t){return kP(this,t,arguments.length>1?arguments[1]:void 0)}})});var bv=h((BH,_v)=>{"use strict";yv();var CP=st();_v.exports=CP("Array","every")});var Iv=h((JH,wv)=>{"use strict";var PP=He(),RP=bv(),bc=Array.prototype;wv.exports=function(e){var t=e.every;return e===bc||PP(bc,e)&&t===bc.every?RP:t}});var Sv=h(($H,Ev)=>{"use strict";var OP=Iv();Ev.exports=OP});var kv=h((HH,xv)=>{xv.exports=Sv()});var Tv=h((VH,Av)=>{"use strict";var NP=or().forEach,DP=ei(),qP=DP("forEach");Av.exports=qP?[].forEach:function(t){return NP(this,t,arguments.length>1?arguments[1]:void 0)}});var Pv=h(()=>{"use strict";var LP=z(),Cv=Tv();LP({target:"Array",proto:!0,forced:[].forEach!==Cv},{forEach:Cv})});var Ov=h((WH,Rv)=>{"use strict";Pv();var FP=st();Rv.exports=FP("Array","forEach")});var Dv=h((KH,Nv)=>{"use strict";var MP=Ov();Nv.exports=MP});var qv=h(()=>{});var Fv=h((ZH,Lv)=>{"use strict";var jP=Kr(),UP=Xe(),BP=He(),JP=Dv();qv();var wc=Array.prototype,$P={DOMTokenList:!0,NodeList:!0};Lv.exports=function(e){var t=e.forEach;return e===wc||BP(wc,e)&&t===wc.forEach||UP($P,jP(e))?JP:t}});var jv=h((XH,Mv)=>{Mv.exports=Fv()});var Bv=h((eV,Uv)=>{"use strict";var HP=TypeError,VP=9007199254740991;Uv.exports=function(e){if(e>VP)throw HP("Maximum allowed index exceeded");return e}});var Ic=h((tV,Jv)=>{"use strict";var zP=Ve(),GP=Ut(),WP=Hn();Jv.exports=function(e,t,r){zP?GP.f(e,t,WP(0,r)):e[t]=r}});var zv=h(()=>{"use strict";var KP=z(),QP=ae(),YP=Yn(),ZP=Se(),XP=Hr(),eR=Wr(),$v=Bv(),Hv=Ic(),tR=yc(),rR=Xn(),nR=Fe(),iR=Ao(),Vv=nR("isConcatSpreadable"),oR=iR>=51||!QP(function(){var e=[];return e[Vv]=!1,e.concat()[0]!==e}),aR=function(e){if(!ZP(e))return!1;var t=e[Vv];return t!==void 0?!!t:YP(e)},sR=!oR||!rR("concat");KP({target:"Array",proto:!0,arity:1,forced:sR},{concat:function(t){var r=XP(this),n=tR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],aR(c))for(l=eR(c),$v(i+l),a=0;a<l;a++,i++)a in c&&Hv(n,i,c[a]);else $v(i+1),Hv(n,i++,c);return n.length=i,n}})});var Wv=h((iV,Gv)=>{"use strict";zv();var lR=st();Gv.exports=lR("Array","concat")});var Qv=h((oV,Kv)=>{"use strict";var cR=He(),uR=Wv(),Ec=Array.prototype;Kv.exports=function(e){var t=e.concat;return e===Ec||cR(Ec,e)&&t===Ec.concat?uR:t}});var Zv=h((aV,Yv)=>{"use strict";var dR=Qv();Yv.exports=dR});var eg=h((sV,Xv)=>{Xv.exports=Zv()});var tg=h(()=>{"use strict";var pR=z(),fR=or().some,hR=ei(),mR=hR("some");pR({target:"Array",proto:!0,forced:!mR},{some:function(t){return fR(this,t,arguments.length>1?arguments[1]:void 0)}})});var ng=h((uV,rg)=>{"use strict";tg();var vR=st();rg.exports=vR("Array","some")});var og=h((dV,ig)=>{"use strict";var gR=He(),yR=ng(),Sc=Array.prototype;ig.exports=function(e){var t=e.some;return e===Sc||gR(Sc,e)&&t===Sc.some?yR:t}});var sg=h((pV,ag)=>{"use strict";var _R=og();ag.exports=_R});var cg=h((fV,lg)=>{lg.exports=sg()});var dg=h((hV,ug)=>{"use strict";var ti=se(),bR=xo(),wR=Mt(),No=function(e){return bR.slice(0,e.length)===e};ug.exports=function(){return No("Bun/")?"BUN":No("Cloudflare-Workers")?"CLOUDFLARE":No("Deno/")?"DENO":No("Node.js/")?"NODE":ti.Bun&&typeof Bun.version=="string"?"BUN":ti.Deno&&typeof Deno.version=="object"?"DENO":wR(ti.process)==="process"?"NODE":ti.window&&ti.document?"BROWSER":"REST"}()});var ri=h((mV,pg)=>{"use strict";var IR=ge();pg.exports=IR([].slice)});var hg=h((vV,fg)=>{"use strict";var ER=TypeError;fg.exports=function(e,t){if(e<t)throw new ER("Not enough arguments");return e}});var xc=h((gV,vg)=>{"use strict";var mg=se(),SR=$l(),xR=Pe(),kR=dg(),AR=xo(),TR=ri(),CR=hg(),PR=mg.Function,RR=/MSIE .\./.test(AR)||kR==="BUN"&&function(){var e=mg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();vg.exports=function(e,t){var r=t?2:1;return RR?function(n,i){var o=CR(arguments.length,1)>r,a=xR(n)?n:PR(n),s=o?TR(arguments,r):[],l=o?function(){SR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var _g=h(()=>{"use strict";var OR=z(),yg=se(),NR=xc(),gg=NR(yg.setInterval,!0);OR({global:!0,bind:!0,forced:yg.setInterval!==gg},{setInterval:gg})});var Ig=h(()=>{"use strict";var DR=z(),wg=se(),qR=xc(),bg=qR(wg.setTimeout,!0);DR({global:!0,bind:!0,forced:wg.setTimeout!==bg},{setTimeout:bg})});var Eg=h(()=>{"use strict";_g();Ig()});var xg=h((SV,Sg)=>{"use strict";Eg();var LR=It();Sg.exports=LR.setTimeout});var Ag=h((xV,kg)=>{kg.exports=xg()});function ii(e,t){ue.__h&&ue.__h(X,e,ni||t),ni=0;var r=X.__H||(X.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function qo(e){return ni=1,Fg(Mg,e)}function Fg(e,t,r){var n=ii(kr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Mg(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=X,!X.__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};X.__f=!0;var o=X.shouldComponentUpdate,a=X.componentWillUpdate;X.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)},X.shouldComponentUpdate=i}return n.__N||n.__}function oi(e,t){var r=ii(kr++,3);!ue.__s&&Tc(r.__H,t)&&(r.__=e,r.u=t,X.__H.__h.push(r))}function Qr(e,t){var r=ii(kr++,4);!ue.__s&&Tc(r.__H,t)&&(r.__=e,r.u=t,X.__h.push(r))}function ai(e){return ni=5,si(function(){return{current:e}},[])}function si(e,t){var r=ii(kr++,7);return Tc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Yr(e,t){return ni=8,si(function(){return e},t)}function Zr(e){var t=X.context[e.__c],r=ii(kr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(X)),t.props.value):e.__}function FR(){for(var e;e=Lg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Do),e.__H.__h.forEach(Ac),e.__H.__h=[]}catch(t){e.__H.__h=[],ue.__e(t,e.__v)}}function MR(e){var t,r=function(){clearTimeout(n),qg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);qg&&(t=requestAnimationFrame(r))}function Do(e){var t=X,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),X=t}function Ac(e){var t=X;e.__c=e.__(),X=t}function Tc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Mg(e,t){return typeof t=="function"?t(e):t}var kr,X,kc,Tg,ni,Lg,ue,Cg,Pg,Rg,Og,Ng,Dg,qg,Cc=T(()=>{Ur();ni=0,Lg=[],ue=O,Cg=ue.__b,Pg=ue.__r,Rg=ue.diffed,Og=ue.__c,Ng=ue.unmount,Dg=ue.__;ue.__b=function(e){X=null,Cg&&Cg(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Dg&&Dg(e,t)},ue.__r=function(e){Pg&&Pg(e),kr=0;var t=(X=e.__c).__H;t&&(kc===X?(t.__h=[],X.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Do),t.__h.forEach(Ac),t.__h=[],kr=0)),kc=X},ue.diffed=function(e){Rg&&Rg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lg.push(t)!==1&&Tg===ue.requestAnimationFrame||((Tg=ue.requestAnimationFrame)||MR)(FR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),kc=X=null},ue.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Do),r.__h=r.__h.filter(function(n){return!n.__||Ac(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ue.__e(n,r.__v)}}),Og&&Og(e,t)},ue.unmount=function(e){Ng&&Ng(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Do(n)}catch(i){t=i}}),r.__H=void 0,t&&ue.__e(t,r.__v))};qg=typeof requestAnimationFrame=="function"});function Wg(e,t){for(var r in t)e[r]=t[r];return e}function Rc(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 jg(e,t){this.props=e,this.context=t}function Nc(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:Rc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Le(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Dc(e){function t(r){var n=Wg({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=jR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Kg(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=Wg({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Kg(n,t,r)})),e}function Qg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Qg(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Pc(){this.__u=0,this.o=null,this.__b=null}function Yg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lo(){this.i=null,this.l=null}function qc(e,t,r){return t.__k==null&&(t.textContent=""),rr(e,t),typeof r=="function"&&r(),e?e.__c:null}function GR(){}function WR(){return this.cancelBubble}function KR(){return this.defaultPrevented}var Oc,Ug,jR,UR,Bg,Jg,BR,JR,$R,HR,VR,zR,$g,Zg,QR,Hg,Vg,zg,Fo=T(()=>{Ur();Ur();Cc();Cc();Oc=Qr;(jg.prototype=new Ye).isPureReactComponent=!0,jg.prototype.shouldComponentUpdate=function(e,t){return Rc(this.props,e)||Rc(this.state,t)};Ug=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ug&&Ug(e)};jR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;UR=O.__e;O.__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)}UR(e,t,r,n)};Bg=O.unmount;O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Bg&&Bg(e)},(Pc.prototype=new Ye).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Yg(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Qg(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Pc.prototype.componentWillUnmount=function(){this.o=[]},Pc.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]=Kg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Le(Ze,null,e.fallback);return i&&(i.__u&=-33),[Le(Ze,null,t.__a?null:e.children),i]};Jg=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]}};(Lo.prototype=new Ye).__a=function(e){var t=this,r=Yg(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Jg(t,e,n)):i()};r?r(o):o()}},Lo.prototype.render=function(e){this.i=null,this.l=new Map;var t=Bn(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},Lo.prototype.componentDidUpdate=Lo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Jg(e,r,t)})};BR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,JR=/^(?: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]/,$R=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,HR=/[A-Z0-9]/g,VR=typeof document!="undefined",zR=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});$g=O.event;O.event=function(e){return $g&&(e=$g(e)),e.persist=GR,e.isPropagationStopped=WR,e.isDefaultPrevented=KR,e.nativeEvent=e};QR={enumerable:!1,configurable:!0,get:function(){return this.class}},Hg=O.vnode;O.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||VR&&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"||zR(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":$R.test(a)&&(a=l):l=a="oninput":o&&JR.test(a)?a=a.replace(HR,"-$&").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=Bn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Bn(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",QR)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=BR,Hg&&Hg(e)};Vg=O.__r;O.__r=function(e){Vg&&Vg(e),Zg=e.__c};zg=O.diffed;O.diffed=function(e){zg&&zg(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),Zg=null}});var Fc=h(()=>{"use strict";var ZR=z(),Lc=se();ZR({global:!0,forced:Lc.globalThis!==Lc},{globalThis:Lc})});var Xg=h(()=>{"use strict";Fc()});var ty=h((BV,ey)=>{"use strict";Fc();ey.exports=se()});var ny=h((JV,ry)=>{"use strict";var XR=ty();ry.exports=XR});var oy=h(($V,iy)=>{"use strict";var eO=ny();iy.exports=eO});var sy=h((HV,ay)=>{"use strict";Xg();var tO=oy();ay.exports=tO});var cy=h((VV,ly)=>{"use strict";ly.exports=sy()});var dy=h((zV,uy)=>{uy.exports=cy()});var py=h(()=>{"use strict";var rO=z(),nO=Yn();rO({target:"Array",stat:!0},{isArray:nO})});var hy=h((KV,fy)=>{"use strict";py();var iO=It();fy.exports=iO.Array.isArray});var vy=h((QV,my)=>{"use strict";var oO=hy();my.exports=oO});var yy=h((YV,gy)=>{gy.exports=vy()});var by=h((ZV,_y)=>{"use strict";_y.exports=function(){}});var Ar=h((XV,wy)=>{"use strict";wy.exports={}});var Mc=h((ez,Ey)=>{"use strict";var aO=se(),sO=Pe(),Iy=aO.WeakMap;Ey.exports=sO(Iy)&&/native code/.test(String(Iy))});var Mo=h((tz,xy)=>{"use strict";var lO=rc(),cO=Co(),Sy=lO("keys");xy.exports=function(e){return Sy[e]||(Sy[e]=cO(e))}});var li=h((rz,ky)=>{"use strict";ky.exports={}});var Cr=h((nz,Cy)=>{"use strict";var uO=Mc(),Ty=se(),dO=Se(),pO=xr(),jc=Xe(),Uc=zn(),fO=Mo(),hO=li(),Ay="Object already initialized",Bc=Ty.TypeError,mO=Ty.WeakMap,jo,ci,Uo,vO=function(e){return Uo(e)?ci(e):jo(e,{})},gO=function(e){return function(t){var r;if(!dO(t)||(r=ci(t)).type!==e)throw new Bc("Incompatible receiver, "+e+" required");return r}};uO||Uc.state?(ft=Uc.state||(Uc.state=new mO),ft.get=ft.get,ft.has=ft.has,ft.set=ft.set,jo=function(e,t){if(ft.has(e))throw new Bc(Ay);return t.facade=e,ft.set(e,t),t},ci=function(e){return ft.get(e)||{}},Uo=function(e){return ft.has(e)}):(Tr=fO("state"),hO[Tr]=!0,jo=function(e,t){if(jc(e,Tr))throw new Bc(Ay);return t.facade=e,pO(e,Tr,t),t},ci=function(e){return jc(e,Tr)?e[Tr]:{}},Uo=function(e){return jc(e,Tr)});var ft,Tr;Cy.exports={set:jo,get:ci,has:Uo,enforce:vO,getterFor:gO}});var Hc=h((iz,Ry)=>{"use strict";var Jc=Ve(),yO=Xe(),Py=Function.prototype,_O=Jc&&Object.getOwnPropertyDescriptor,$c=yO(Py,"name"),bO=$c&&(function(){}).name==="something",wO=$c&&(!Jc||Jc&&_O(Py,"name").configurable);Ry.exports={EXISTS:$c,PROPER:bO,CONFIGURABLE:wO}});var Vc=h((oz,Oy)=>{"use strict";var IO=Qn(),EO=Math.max,SO=Math.min;Oy.exports=function(e,t){var r=IO(e);return r<0?EO(r+t,0):SO(r,t)}});var zc=h((az,Dy)=>{"use strict";var xO=nr(),kO=Vc(),AO=Wr(),Ny=function(e){return function(t,r,n){var i=xO(t),o=AO(i);if(o===0)return!e&&-1;var a=kO(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}};Dy.exports={includes:Ny(!0),indexOf:Ny(!1)}});var Wc=h((sz,Ly)=>{"use strict";var TO=ge(),Gc=Xe(),CO=nr(),PO=zc().indexOf,RO=li(),qy=TO([].push);Ly.exports=function(e,t){var r=CO(e),n=0,i=[],o;for(o in r)!Gc(RO,o)&&Gc(r,o)&&qy(i,o);for(;t.length>n;)Gc(r,o=t[n++])&&(~PO(i,o)||qy(i,o));return i}});var Bo=h((lz,Fy)=>{"use strict";Fy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Kc=h((cz,My)=>{"use strict";var OO=Wc(),NO=Bo();My.exports=Object.keys||function(t){return OO(t,NO)}});var Uy=h(jy=>{"use strict";var DO=Ve(),qO=cc(),LO=Ut(),FO=jt(),MO=nr(),jO=Kc();jy.f=DO&&!qO?Object.defineProperties:function(t,r){FO(t);for(var n=MO(r),i=jO(r),o=i.length,a=0,s;o>a;)LO.f(t,s=i[a++],n[s]);return t}});var Jy=h((dz,By)=>{"use strict";var UO=Jr();By.exports=UO("document","documentElement")});var ui=h((pz,Ky)=>{"use strict";var BO=jt(),JO=Uy(),$y=Bo(),$O=li(),HO=Jy(),VO=ac(),zO=Mo(),Hy=">",Vy="<",Yc="prototype",Zc="script",Gy=zO("IE_PROTO"),Qc=function(){},Wy=function(e){return Vy+Zc+Hy+e+Vy+"/"+Zc+Hy},zy=function(e){e.write(Wy("")),e.close();var t=e.parentWindow.Object;return e=null,t},GO=function(){var e=VO("iframe"),t="java"+Zc+":",r;return e.style.display="none",HO.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Wy("document.F=Object")),r.close(),r.F},Jo,$o=function(){try{Jo=new ActiveXObject("htmlfile")}catch(t){}$o=typeof document!="undefined"?document.domain&&Jo?zy(Jo):GO():zy(Jo);for(var e=$y.length;e--;)delete $o[Yc][$y[e]];return $o()};$O[Gy]=!0;Ky.exports=Object.create||function(t,r){var n;return t!==null?(Qc[Yc]=BO(t),n=new Qc,Qc[Yc]=null,n[Gy]=t):n=$o(),r===void 0?n:JO.f(n,r)}});var Yy=h((fz,Qy)=>{"use strict";var WO=ae();Qy.exports=!WO(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var eu=h((hz,Xy)=>{"use strict";var KO=Xe(),QO=Pe(),YO=Hr(),ZO=Mo(),XO=Yy(),Zy=ZO("IE_PROTO"),Xc=Object,eN=Xc.prototype;Xy.exports=XO?Xc.getPrototypeOf:function(e){var t=YO(e);if(KO(t,Zy))return t[Zy];var r=t.constructor;return QO(r)&&t instanceof r?r.prototype:t instanceof Xc?eN:null}});var Ho=h((mz,e_)=>{"use strict";var tN=xr();e_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:tN(e,t,r),e}});var iu=h((vz,n_)=>{"use strict";var rN=ae(),nN=Pe(),iN=Se(),oN=ui(),t_=eu(),aN=Ho(),sN=Fe(),lN=$r(),nu=sN("iterator"),r_=!1,Bt,tu,ru;[].keys&&(ru=[].keys(),"next"in ru?(tu=t_(t_(ru)),tu!==Object.prototype&&(Bt=tu)):r_=!0);var cN=!iN(Bt)||rN(function(){var e={};return Bt[nu].call(e)!==e});cN?Bt={}:lN&&(Bt=oN(Bt));nN(Bt[nu])||aN(Bt,nu,function(){return this});n_.exports={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:r_}});var o_=h((gz,i_)=>{"use strict";var uN=Ro(),dN=Kr();i_.exports=uN?{}.toString:function(){return"[object "+dN(this)+"]"}});var di=h((yz,s_)=>{"use strict";var pN=Ro(),fN=Ut().f,hN=xr(),mN=Xe(),vN=o_(),gN=Fe(),a_=gN("toStringTag");s_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(mN(i,a_)||fN(i,a_,{configurable:!0,value:t}),n&&!pN&&hN(i,"toString",vN))}});var c_=h((_z,l_)=>{"use strict";var yN=iu().IteratorPrototype,_N=ui(),bN=Hn(),wN=di(),IN=Ar(),EN=function(){return this};l_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=_N(yN,{next:bN(+!n,r)}),wN(e,i,!1,!0),IN[i]=EN,e}});var d_=h((bz,u_)=>{"use strict";var SN=ge(),xN=Sr();u_.exports=function(e,t,r){try{return SN(xN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var f_=h((wz,p_)=>{"use strict";var kN=Se();p_.exports=function(e){return kN(e)||e===null}});var m_=h((Iz,h_)=>{"use strict";var AN=f_(),TN=String,CN=TypeError;h_.exports=function(e){if(AN(e))return e;throw new CN("Can't set "+TN(e)+" as a prototype")}});var g_=h((Ez,v_)=>{"use strict";var PN=d_(),RN=Se(),ON=Er(),NN=m_();v_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=PN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return ON(i),NN(o),RN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Go=h((Sz,A_)=>{"use strict";var DN=z(),qN=dt(),Vo=$r(),x_=Hc(),LN=Pe(),FN=c_(),y_=eu(),__=g_(),MN=di(),jN=xr(),ou=Ho(),UN=Fe(),b_=Ar(),k_=iu(),BN=x_.PROPER,JN=x_.CONFIGURABLE,w_=k_.IteratorPrototype,zo=k_.BUGGY_SAFARI_ITERATORS,pi=UN("iterator"),I_="keys",fi="values",E_="entries",S_=function(){return this};A_.exports=function(e,t,r,n,i,o,a){FN(r,t,n);var s=function(v){if(v===i&&p)return p;if(!zo&&v&&v in d)return d[v];switch(v){case I_:return function(){return new r(this,v)};case fi:return function(){return new r(this,v)};case E_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[pi]||d["@@iterator"]||i&&d[i],p=!zo&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=y_(f.call(new e)),m!==Object.prototype&&m.next&&(!Vo&&y_(m)!==w_&&(__?__(m,w_):LN(m[pi])||ou(m,pi,S_)),MN(m,l,!0,!0),Vo&&(b_[l]=S_))),BN&&i===fi&&u&&u.name!==fi&&(!Vo&&JN?jN(d,"name",fi):(c=!0,p=function(){return qN(u,this)})),i)if(g={values:s(fi),keys:o?p:s(I_),entries:s(E_)},a)for(y in g)(zo||c||!(y in d))&&ou(d,y,g[y]);else DN({target:t,proto:!0,forced:zo||c},g);return(!Vo||a)&&d[pi]!==p&&ou(d,pi,p,{name:i}),b_[t]=p,g}});var Wo=h((xz,T_)=>{"use strict";T_.exports=function(e,t){return{value:e,done:t}}});var Qo=h((kz,N_)=>{"use strict";var $N=nr(),au=by(),C_=Ar(),R_=Cr(),HN=Ut().f,VN=Go(),Ko=Wo(),zN=$r(),GN=Ve(),O_="Array Iterator",WN=R_.set,KN=R_.getterFor(O_);N_.exports=VN(Array,"Array",function(e,t){WN(this,{type:O_,target:$N(e),index:0,kind:t})},function(){var e=KN(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ko(void 0,!0);switch(e.kind){case"keys":return Ko(r,!1);case"values":return Ko(t[r],!1)}return Ko([r,t[r]],!1)},"values");var P_=C_.Arguments=C_.Array;au("keys");au("values");au("entries");if(!zN&&GN&&P_.name!=="values")try{HN(P_,"name",{value:"values"})}catch(e){}});var su=h(()=>{});var lu=h((Cz,D_)=>{"use strict";var QN=ae();D_.exports=!QN(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Yo=h((Pz,q_)=>{"use strict";var YN=Ho();q_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:YN(e,n,t[n],r);return e}});var cu=h(L_=>{"use strict";var ZN=Wc(),XN=Bo(),eD=XN.concat("length","prototype");L_.f=Object.getOwnPropertyNames||function(t){return ZN(t,eD)}});var U_=h((Oz,j_)=>{"use strict";var tD=Mt(),rD=nr(),F_=cu().f,nD=ri(),M_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iD=function(e){try{return F_(e)}catch(t){return nD(M_)}};j_.exports.f=function(t){return M_&&tD(t)==="Window"?iD(t):F_(rD(t))}});var J_=h((Nz,B_)=>{"use strict";var oD=ae();B_.exports=oD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var V_=h((Dz,H_)=>{"use strict";var aD=ae(),sD=Se(),lD=Mt(),$_=J_(),Zo=Object.isExtensible,cD=aD(function(){Zo(1)});H_.exports=cD||$_?function(t){return!sD(t)||$_&&lD(t)==="ArrayBuffer"?!1:Zo?Zo(t):!0}:Zo});var hi=h((qz,W_)=>{"use strict";var uD=z(),dD=ge(),pD=li(),fD=Se(),uu=Xe(),hD=Ut().f,z_=cu(),mD=U_(),du=V_(),vD=Co(),gD=lu(),G_=!1,Jt=vD("meta"),yD=0,pu=function(e){hD(e,Jt,{value:{objectID:"O"+yD++,weakData:{}}})},_D=function(e,t){if(!fD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!uu(e,Jt)){if(!du(e))return"F";if(!t)return"E";pu(e)}return e[Jt].objectID},bD=function(e,t){if(!uu(e,Jt)){if(!du(e))return!0;if(!t)return!1;pu(e)}return e[Jt].weakData},wD=function(e){return gD&&G_&&du(e)&&!uu(e,Jt)&&pu(e),e},ID=function(){ED.enable=function(){},G_=!0;var e=z_.f,t=dD([].splice),r={};r[Jt]=1,e(r).length&&(z_.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Jt){t(i,o,1);break}return i},uD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mD.f}))},ED=W_.exports={enable:ID,fastKey:_D,getWeakData:bD,onFreeze:wD};pD[Jt]=!0});var Q_=h((Lz,K_)=>{"use strict";var SD=Fe(),xD=Ar(),kD=SD("iterator"),AD=Array.prototype;K_.exports=function(e){return e!==void 0&&(xD.Array===e||AD[kD]===e)}});var fu=h((Fz,Z_)=>{"use strict";var TD=Kr(),Y_=To(),CD=Ir(),PD=Ar(),RD=Fe(),OD=RD("iterator");Z_.exports=function(e){if(!CD(e))return Y_(e,OD)||Y_(e,"@@iterator")||PD[TD(e)]}});var eb=h((Mz,X_)=>{"use strict";var ND=dt(),DD=Sr(),qD=jt(),LD=Vn(),FD=fu(),MD=TypeError;X_.exports=function(e,t){var r=arguments.length<2?FD(e):t;if(DD(r))return qD(ND(r,e));throw new MD(LD(e)+" is not iterable")}});var Xo=h((jz,rb)=>{"use strict";var jD=dt(),tb=jt(),UD=To();rb.exports=function(e,t,r){var n,i;tb(e);try{if(n=UD(e,"return"),!n){if(t==="throw")throw r;return r}n=jD(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return tb(n),r}});var ta=h((Uz,ab)=>{"use strict";var BD=Wn(),JD=dt(),$D=jt(),HD=Vn(),VD=Q_(),zD=Wr(),nb=He(),GD=eb(),WD=fu(),ib=Xo(),KD=TypeError,ea=function(e,t){this.stopped=e,this.result=t},ob=ea.prototype;ab.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=BD(t,n),c,d,u,p,f,m,g,y=function(_){return c&&ib(c,"normal",_),new ea(!0,_)},v=function(_){return i?($D(_),s?l(_[0],_[1],y):l(_[0],_[1])):s?l(_,y):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=WD(e),!d)throw new KD(HD(e)+" is not iterable");if(VD(d)){for(u=0,p=zD(e);p>u;u++)if(f=v(e[u]),f&&nb(ob,f))return f;return new ea(!1)}c=GD(e,d)}for(m=o?e.next:c.next;!(g=JD(m,c)).done;){try{f=v(g.value)}catch(_){ib(c,"throw",_)}if(typeof f=="object"&&f&&nb(ob,f))return f}return new ea(!1)}});var ra=h((Bz,sb)=>{"use strict";var QD=He(),YD=TypeError;sb.exports=function(e,t){if(QD(t,e))return e;throw new YD("Incorrect invocation")}});var hu=h((Jz,cb)=>{"use strict";var ZD=z(),XD=se(),eq=hi(),tq=ae(),rq=xr(),nq=ta(),iq=ra(),oq=Pe(),aq=Se(),sq=Ir(),lq=di(),cq=Ut().f,uq=or().forEach,dq=Ve(),lb=Cr(),pq=lb.set,fq=lb.getterFor;cb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=XD[e],s=a&&a.prototype,l={},c;if(!dq||!oq(a)||!(i||s.forEach&&!tq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),eq.enable();else{c=t(function(p,f){pq(iq(p,d),{type:e,collection:new a}),sq(f)||nq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=fq(e);uq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&rq(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!aq(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||cq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return lq(c,e,!1,!0),l[e]=c,ZD({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var vb=h(($z,mb)=>{"use strict";var hq=ge(),ub=Yo(),na=hi().getWeakData,mq=ra(),vq=jt(),gq=Ir(),mu=Se(),yq=ta(),pb=or(),db=Xe(),fb=Cr(),_q=fb.set,bq=fb.getterFor,wq=pb.find,Iq=pb.findIndex,Eq=hq([].splice),Sq=0,ia=function(e){return e.frozen||(e.frozen=new hb)},hb=function(){this.entries=[]},vu=function(e,t){return wq(e.entries,function(r){return r[0]===t})};hb.prototype={get:function(e){var t=vu(this,e);if(t)return t[1]},has:function(e){return!!vu(this,e)},set:function(e,t){var r=vu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Iq(this.entries,function(r){return r[0]===e});return~t&&Eq(this.entries,t,1),!!~t}};mb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){mq(l,o),_q(l,{type:t,id:Sq++,frozen:null}),gq(c)||yq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=bq(t),s=function(l,c,d){var u=a(l),p=na(vq(c),!0);return p===!0?ia(u).set(c,d):p[u.id]=d,l};return ub(o,{delete:function(l){var c=a(this);if(!mu(l))return!1;var d=na(l);return d===!0?ia(c).delete(l):d&&db(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!mu(c))return!1;var u=na(c);return u===!0?ia(d).has(c):u&&db(u,d.id)}}),ub(o,r?{get:function(c){var d=a(this);if(mu(c)){var u=na(c);if(u===!0)return ia(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 Sb=h(()=>{"use strict";var xq=lu(),gb=se(),la=ge(),yb=Yo(),kq=hi(),Aq=hu(),_b=vb(),oa=Se(),aa=Cr().enforce,Tq=ae(),Cq=Mc(),yi=Object,Pq=Array.isArray,sa=yi.isExtensible,bb=yi.isFrozen,Rq=yi.isSealed,wb=yi.freeze,Oq=yi.seal,Nq=!gb.ActiveXObject&&"ActiveXObject"in gb,mi,Ib=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Eb=Aq("WeakMap",Ib,_b),Xr=Eb.prototype,ca=la(Xr.set),Dq=function(){return xq&&Tq(function(){var e=wb([]);return ca(new Eb,e,1),!bb(e)})};Cq&&(Nq?(mi=_b.getConstructor(Ib,"WeakMap",!0),kq.enable(),gu=la(Xr.delete),gi=la(Xr.has),yu=la(Xr.get),yb(Xr,{delete:function(e){if(oa(e)&&!sa(e)){var t=aa(this);return t.frozen||(t.frozen=new mi),gu(this,e)||t.frozen.delete(e)}return gu(this,e)},has:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)||r.frozen.has(t)}return gi(this,t)},get:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)?yu(this,t):r.frozen.get(t)}return yu(this,t)},set:function(t,r){if(oa(t)&&!sa(t)){var n=aa(this);n.frozen||(n.frozen=new mi),gi(this,t)?ca(this,t,r):n.frozen.set(t,r)}else ca(this,t,r);return this}})):Dq()&&yb(Xr,{set:function(t,r){var n;return Pq(t)&&(bb(t)?n=wb:Rq(t)&&(n=Oq)),ca(this,t,r),n&&n(t),this}}));var gu,gi,yu});var xb=h(()=>{"use strict";Sb()});var Ab=h((Wz,kb)=>{"use strict";Qo();su();xb();var qq=It();kb.exports=qq.WeakMap});var Cb=h((Kz,Tb)=>{"use strict";Tb.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 _u=h(()=>{"use strict";Qo();var Lq=Cb(),Fq=se(),Mq=di(),Pb=Ar();for(ua in Lq)Mq(Fq[ua],ua),Pb[ua]=Pb.Array;var ua});var Ob=h((Zz,Rb)=>{"use strict";var jq=Ab();_u();Rb.exports=jq});var Db=h((Xz,Nb)=>{Nb.exports=Ob()});var Lb=h(()=>{"use strict";var Uq=z(),Bq=$n(),Jq=zc().indexOf,$q=ei(),bu=Bq([].indexOf),qb=!!bu&&1/bu([1],1,-0)<0,Hq=qb||!$q("indexOf");Uq({target:"Array",proto:!0,forced:Hq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return qb?bu(this,t,r)||0:Jq(this,t,r)}})});var Mb=h((r6,Fb)=>{"use strict";Lb();var Vq=st();Fb.exports=Vq("Array","indexOf")});var Ub=h((n6,jb)=>{"use strict";var zq=He(),Gq=Mb(),wu=Array.prototype;jb.exports=function(e){var t=e.indexOf;return e===wu||zq(wu,e)&&t===wu.indexOf?Gq:t}});var Jb=h((i6,Bb)=>{"use strict";var Wq=Ub();Bb.exports=Wq});var Hb=h((o6,$b)=>{$b.exports=Jb()});var Vb=h(()=>{"use strict";var Kq=z(),Qq=or().map,Yq=Xn(),Zq=Yq("map");Kq({target:"Array",proto:!0,forced:!Zq},{map:function(t){return Qq(this,t,arguments.length>1?arguments[1]:void 0)}})});var Gb=h((l6,zb)=>{"use strict";Vb();var Xq=st();zb.exports=Xq("Array","map")});var Kb=h((c6,Wb)=>{"use strict";var eL=He(),tL=Gb(),Iu=Array.prototype;Wb.exports=function(e){var t=e.map;return e===Iu||eL(Iu,e)&&t===Iu.map?tL:t}});var Yb=h((u6,Qb)=>{"use strict";var rL=Kb();Qb.exports=rL});var Xb=h((d6,Zb)=>{Zb.exports=Yb()});var e0=h(()=>{"use strict";var nL=z(),iL=Ve(),oL=ui();nL({target:"Object",stat:!0,sham:!iL},{create:oL})});var r0=h((h6,t0)=>{"use strict";e0();var aL=It(),sL=aL.Object;t0.exports=function(t,r){return sL.create(t,r)}});var i0=h((m6,n0)=>{"use strict";var lL=r0();n0.exports=lL});var a0=h((v6,o0)=>{o0.exports=i0()});var Eu=h((g6,s0)=>{"use strict";var cL=Ut();s0.exports=function(e,t,r){return cL.f(e,t,r)}});var u0=h((y6,c0)=>{"use strict";var uL=Jr(),dL=Eu(),pL=Fe(),fL=Ve(),l0=pL("species");c0.exports=function(e){var t=uL(e);fL&&t&&!t[l0]&&dL(t,l0,{configurable:!0,get:function(){return this}})}});var g0=h((_6,v0)=>{"use strict";var d0=ui(),hL=Eu(),p0=Yo(),mL=Wn(),vL=ra(),gL=Ir(),yL=ta(),_L=Go(),da=Wo(),bL=u0(),_i=Ve(),f0=hi().fastKey,m0=Cr(),h0=m0.set,Su=m0.getterFor;v0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){vL(c,o),h0(c,{type:t,index:d0(null),first:null,last:null,size:0}),_i||(c.size=0),gL(d)||yL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Su(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=f0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),_i?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=f0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return p0(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=d0(null),_i?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),_i?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=mL(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)}}),p0(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)}}),_i&&hL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Su(t),o=Su(n);_L(e,t,function(a,s){h0(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,da(void 0,!0)):da(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),bL(t)}}});var y0=h(()=>{"use strict";var wL=hu(),IL=g0();wL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},IL)});var _0=h(()=>{"use strict";y0()});var ar=h((S6,b0)=>{"use strict";var EL=Vn(),SL=TypeError;b0.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 SL(EL(e)+" is not a set")}});var I0=h((x6,w0)=>{"use strict";w0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var sr=h((k6,S0)=>{"use strict";var xL=Jr(),xu=I0(),E0=xL("Set"),kL=E0.prototype;S0.exports={Set:E0,add:xu("add",1),has:xu("has",1),remove:xu("delete",1),proto:kL}});var lr=h((A6,x0)=>{"use strict";var AL=dt();x0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=AL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var en=h((T6,k0)=>{"use strict";var TL=lr();k0.exports=function(e,t,r){return r?TL(e.keys(),t,!0):e.forEach(t)}});var pa=h((C6,T0)=>{"use strict";var A0=sr(),CL=en(),PL=A0.Set,RL=A0.add;T0.exports=function(e){var t=new PL;return CL(e,function(r){RL(t,r)}),t}});var tn=h((P6,C0)=>{"use strict";C0.exports=function(e){return e.size}});var R0=h((R6,P0)=>{"use strict";P0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var cr=h((O6,F0)=>{"use strict";var O0=Sr(),q0=jt(),N0=dt(),OL=Qn(),NL=R0(),D0="Invalid size",DL=RangeError,qL=TypeError,LL=Math.max,L0=function(e,t){this.set=e,this.size=LL(t,0),this.has=O0(e.has),this.keys=O0(e.keys)};L0.prototype={getIterator:function(){return NL(q0(N0(this.keys,this.set)))},includes:function(e){return N0(this.has,this.set,e)}};F0.exports=function(e){q0(e);var t=+e.size;if(t!==t)throw new qL(D0);var r=OL(t);if(r<0)throw new DL(D0);return new L0(e,r)}});var B0=h((N6,U0)=>{"use strict";var FL=ar(),j0=sr(),ML=pa(),jL=tn(),UL=cr(),BL=en(),JL=lr(),$L=j0.has,M0=j0.remove;U0.exports=function(t){var r=FL(this),n=UL(t),i=ML(r);return jL(r)<=n.size?BL(r,function(o){n.includes(o)&&M0(i,o)}):JL(n.getIterator(),function(o){$L(r,o)&&M0(i,o)}),i}});var ur=h((D6,J0)=>{"use strict";J0.exports=function(){return!1}});var $0=h(()=>{"use strict";var HL=z(),VL=B0(),zL=ur(),GL=!zL("difference",function(e){return e.size===0});HL({target:"Set",proto:!0,real:!0,forced:GL},{difference:VL})});var z0=h((F6,V0)=>{"use strict";var WL=ar(),ku=sr(),KL=tn(),QL=cr(),YL=en(),ZL=lr(),XL=ku.Set,H0=ku.add,eF=ku.has;V0.exports=function(t){var r=WL(this),n=QL(t),i=new XL;return KL(r)>n.size?ZL(n.getIterator(),function(o){eF(r,o)&&H0(i,o)}):YL(r,function(o){n.includes(o)&&H0(i,o)}),i}});var G0=h(()=>{"use strict";var tF=z(),rF=ae(),nF=z0(),iF=ur(),oF=!iF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||rF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});tF({target:"Set",proto:!0,real:!0,forced:oF},{intersection:nF})});var K0=h((U6,W0)=>{"use strict";var aF=ar(),sF=sr().has,lF=tn(),cF=cr(),uF=en(),dF=lr(),pF=Xo();W0.exports=function(t){var r=aF(this),n=cF(t);if(lF(r)<=n.size)return uF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return dF(i,function(o){if(sF(r,o))return pF(i,"normal",!1)})!==!1}});var Q0=h(()=>{"use strict";var fF=z(),hF=K0(),mF=ur(),vF=!mF("isDisjointFrom",function(e){return!e});fF({target:"Set",proto:!0,real:!0,forced:vF},{isDisjointFrom:hF})});var Z0=h(($6,Y0)=>{"use strict";var gF=ar(),yF=tn(),_F=en(),bF=cr();Y0.exports=function(t){var r=gF(this),n=bF(t);return yF(r)>n.size?!1:_F(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var X0=h(()=>{"use strict";var wF=z(),IF=Z0(),EF=ur(),SF=!EF("isSubsetOf",function(e){return e});wF({target:"Set",proto:!0,real:!0,forced:SF},{isSubsetOf:IF})});var tw=h((z6,ew)=>{"use strict";var xF=ar(),kF=sr().has,AF=tn(),TF=cr(),CF=lr(),PF=Xo();ew.exports=function(t){var r=xF(this),n=TF(t);if(AF(r)<n.size)return!1;var i=n.getIterator();return CF(i,function(o){if(!kF(r,o))return PF(i,"normal",!1)})!==!1}});var rw=h(()=>{"use strict";var RF=z(),OF=tw(),NF=ur(),DF=!NF("isSupersetOf",function(e){return!e});RF({target:"Set",proto:!0,real:!0,forced:DF},{isSupersetOf:OF})});var iw=h((K6,nw)=>{"use strict";var qF=ar(),Au=sr(),LF=pa(),FF=cr(),MF=lr(),jF=Au.add,UF=Au.has,BF=Au.remove;nw.exports=function(t){var r=qF(this),n=FF(t).getIterator(),i=LF(r);return MF(n,function(o){UF(r,o)?BF(i,o):jF(i,o)}),i}});var ow=h(()=>{"use strict";var JF=z(),$F=iw(),HF=ur();JF({target:"Set",proto:!0,real:!0,forced:!HF("symmetricDifference")},{symmetricDifference:$F})});var sw=h((Z6,aw)=>{"use strict";var VF=ar(),zF=sr().add,GF=pa(),WF=cr(),KF=lr();aw.exports=function(t){var r=VF(this),n=WF(t).getIterator(),i=GF(r);return KF(n,function(o){zF(i,o)}),i}});var lw=h(()=>{"use strict";var QF=z(),YF=sw(),ZF=ur();QF({target:"Set",proto:!0,real:!0,forced:!ZF("union")},{union:YF})});var bi=h((tG,cw)=>{"use strict";var XF=Kr(),eM=String;cw.exports=function(e){if(XF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return eM(e)}});var fw=h((rG,pw)=>{"use strict";var Tu=ge(),tM=Qn(),rM=bi(),nM=Er(),iM=Tu("".charAt),uw=Tu("".charCodeAt),oM=Tu("".slice),dw=function(e){return function(t,r){var n=rM(nM(t)),i=tM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=uw(n,i),a<55296||a>56319||i+1===o||(s=uw(n,i+1))<56320||s>57343?e?iM(n,i):a:e?oM(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};pw.exports={codeAt:dw(!1),charAt:dw(!0)}});var gw=h(()=>{"use strict";var aM=fw().charAt,sM=bi(),mw=Cr(),lM=Go(),hw=Wo(),vw="String Iterator",cM=mw.set,uM=mw.getterFor(vw);lM(String,"String",function(e){cM(this,{type:vw,string:sM(e),index:0})},function(){var t=uM(this),r=t.string,n=t.index,i;return n>=r.length?hw(void 0,!0):(i=aM(r,n),t.index+=i.length,hw(i,!1))})});var _w=h((oG,yw)=>{"use strict";Qo();su();_0();$0();G0();Q0();X0();rw();ow();lw();gw();var dM=It();yw.exports=dM.Set});var ww=h((aG,bw)=>{"use strict";var pM=_w();_u();bw.exports=pM});var Ew=h((sG,Iw)=>{Iw.exports=ww()});var xw=h(Sw=>{"use strict";Sw.f=Object.getOwnPropertySymbols});var Cw=h((cG,Tw)=>{"use strict";var kw=Ve(),fM=ge(),hM=dt(),mM=ae(),Cu=Kc(),vM=xw(),gM=Vl(),yM=Hr(),_M=So(),rn=Object.assign,Aw=Object.defineProperty,bM=fM([].concat);Tw.exports=!rn||mM(function(){if(kw&&rn({b:1},rn(Aw({},"a",{enumerable:!0,get:function(){Aw(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}),rn({},e)[r]!==7||Cu(rn({},t)).join("")!==n})?function(t,r){for(var n=yM(t),i=arguments.length,o=1,a=vM.f,s=gM.f;i>o;)for(var l=_M(arguments[o++]),c=a?bM(Cu(l),a(l)):Cu(l),d=c.length,u=0,p;d>u;)p=c[u++],(!kw||hM(s,l,p))&&(n[p]=l[p]);return n}:rn});var Rw=h(()=>{"use strict";var wM=z(),Pw=Cw();wM({target:"Object",stat:!0,arity:2,forced:Object.assign!==Pw},{assign:Pw})});var Nw=h((pG,Ow)=>{"use strict";Rw();var IM=It();Ow.exports=IM.Object.assign});var qw=h((fG,Dw)=>{"use strict";var EM=Nw();Dw.exports=EM});var Fw=h((hG,Lw)=>{Lw.exports=qw()});var Pu=h((mG,Mw)=>{"use strict";Mw.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 Bw=h((vG,Uw)=>{"use strict";var SM=ge(),xM=Er(),kM=bi(),Ou=Pu(),jw=SM("".replace),AM=RegExp("^["+Ou+"]+"),TM=RegExp("(^|[^"+Ou+"])["+Ou+"]+$"),Ru=function(e){return function(t){var r=kM(xM(t));return e&1&&(r=jw(r,AM,"")),e&2&&(r=jw(r,TM,"$1")),r}};Uw.exports={start:Ru(1),end:Ru(2),trim:Ru(3)}});var Vw=h((gG,Hw)=>{"use strict";var CM=Hc().PROPER,PM=ae(),Jw=Pu(),$w="\u200B\x85\u180E";Hw.exports=function(e){return PM(function(){return!!Jw[e]()||$w[e]()!==$w||CM&&Jw[e].name!==e})}});var zw=h(()=>{"use strict";var RM=z(),OM=Bw().trim,NM=Vw();RM({target:"String",proto:!0,forced:NM("trim")},{trim:function(){return OM(this)}})});var Ww=h((bG,Gw)=>{"use strict";zw();var DM=st();Gw.exports=DM("String","trim")});var Qw=h((wG,Kw)=>{"use strict";var qM=He(),LM=Ww(),Nu=String.prototype;Kw.exports=function(e){var t=e.trim;return typeof e=="string"||e===Nu||qM(Nu,e)&&t===Nu.trim?LM:t}});var Zw=h((IG,Yw)=>{"use strict";var FM=Qw();Yw.exports=FM});var eI=h((EG,Xw)=>{Xw.exports=Zw()});var nI=h(()=>{"use strict";var MM=z(),tI=Yn(),jM=gc(),UM=Se(),rI=Vc(),BM=Wr(),JM=nr(),$M=Ic(),HM=Fe(),VM=Xn(),zM=ri(),GM=VM("slice"),WM=HM("species"),Du=Array,KM=Math.max;MM({target:"Array",proto:!0,forced:!GM},{slice:function(t,r){var n=JM(this),i=BM(n),o=rI(t,i),a=rI(r===void 0?i:r,i),s,l,c;if(tI(n)&&(s=n.constructor,jM(s)&&(s===Du||tI(s.prototype))?s=void 0:UM(s)&&(s=s[WM],s===null&&(s=void 0)),s===Du||s===void 0))return zM(n,o,a);for(l=new(s===void 0?Du:s)(KM(a-o,0)),c=0;o<a;o++,c++)o in n&&$M(l,c,n[o]);return l.length=c,l}})});var oI=h((kG,iI)=>{"use strict";nI();var QM=st();iI.exports=QM("Array","slice")});var sI=h((AG,aI)=>{"use strict";var YM=He(),ZM=oI(),qu=Array.prototype;aI.exports=function(e){var t=e.slice;return e===qu||YM(qu,e)&&t===qu.slice?ZM:t}});var cI=h((TG,lI)=>{"use strict";var XM=sI();lI.exports=XM});var dI=h((CG,uI)=>{uI.exports=cI()});var Lu=T(()=>{});var fI=h((RG,pI)=>{"use strict";var ej=Se(),tj=Mt(),rj=Fe(),nj=rj("match");pI.exports=function(e){var t;return ej(e)&&((t=e[nj])!==void 0?!!t:tj(e)==="RegExp")}});var mI=h((OG,hI)=>{"use strict";var ij=fI(),oj=TypeError;hI.exports=function(e){if(ij(e))throw new oj("The method doesn't accept regular expressions");return e}});var gI=h((NG,vI)=>{"use strict";var aj=Fe(),sj=aj("match");vI.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[sj]=!1,"/./"[e](t)}catch(n){}}return!1}});var bI=h(()=>{"use strict";var lj=z(),cj=$n(),uj=lc().f,dj=hc(),yI=bi(),pj=mI(),fj=Er(),hj=gI(),mj=$r(),vj=cj("".slice),gj=Math.min,_I=hj("startsWith"),yj=!mj&&!_I&&!!function(){var e=uj(String.prototype,"startsWith");return e&&!e.writable}();lj({target:"String",proto:!0,forced:!yj&&!_I},{startsWith:function(t){var r=yI(fj(this));pj(t);var n=dj(gj(arguments.length>1?arguments[1]:void 0,r.length)),i=yI(t);return vj(r,n,n+i.length)===i}})});var II=h((LG,wI)=>{"use strict";bI();var _j=st();wI.exports=_j("String","startsWith")});var SI=h((FG,EI)=>{"use strict";var bj=He(),wj=II(),Fu=String.prototype;EI.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Fu||bj(Fu,e)&&t===Fu.startsWith?wj:t}});var kI=h((MG,xI)=>{"use strict";var Ij=SI();xI.exports=Ij});var TI=h((jG,AI)=>{AI.exports=kI()});var NI=h((UG,OI)=>{"use strict";var PI=ge(),Ej=Sr(),Sj=Se(),xj=Xe(),CI=ri(),kj=Br(),RI=Function,Aj=PI([].concat),Tj=PI([].join),Mu={},Cj=function(e,t,r){if(!xj(Mu,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Mu[t]=RI("C,a","return new C("+Tj(n,",")+")")}return Mu[t](e,r)};OI.exports=kj?RI.bind:function(t){var r=Ej(this),n=r.prototype,i=CI(arguments,1),o=function(){var s=Aj(i,CI(arguments));return this instanceof o?Cj(r,s.length,s):r.apply(t,s)};return Sj(n)&&(o.prototype=n),o}});var qI=h(()=>{"use strict";var Pj=z(),DI=NI();Pj({target:"Function",proto:!0,forced:Function.bind!==DI},{bind:DI})});var FI=h(($G,LI)=>{"use strict";qI();var Rj=st();LI.exports=Rj("Function","bind")});var jI=h((HG,MI)=>{"use strict";var Oj=He(),Nj=FI(),ju=Function.prototype;MI.exports=function(e){var t=e.bind;return e===ju||Oj(ju,e)&&t===ju.bind?Nj:t}});var BI=h((VG,UI)=>{"use strict";var Dj=jI();UI.exports=Dj});var $I=h((zG,JI)=>{JI.exports=BI()});function Ra(e,t){ye.__h&&ye.__h(ie,e,Ai||t),Ai=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ht(e){return Ai=1,qj(CE,e)}function qj(e,t,r){var n=Ra(ln++,2);if(n.t=e,!n.__c&&(n.__=[CE(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=ie,!ie.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,id.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,SE.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,xe.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};ie.__f=!0;var o=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.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)},ie.shouldComponentUpdate=i}return n.__N||n.__}function Rr(e,t){var r=Ra(ln++,3);!ye.__s&&TE(r.__H,t)&&(r.__=e,r.u=t,ie.__H.__h.push(r))}function Ei(e){return Ai=5,cd(function(){return{current:e}},[])}function cd(e,t){var r=Ra(ln++,7);return TE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lt(e,t){return Ai=8,cd(function(){return e},t)}function Lj(e){var t=ie.context[e.__c],r=Ra(ln++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Fj(){for(var e;e=AE.shift();)if(e.__P&&e.__H)try{var t,r;(0,xe.default)(t=e.__H.__h).call(t,ga),(0,xe.default)(r=e.__H.__h).call(r,Gu),e.__H.__h=[]}catch(n){e.__H.__h=[],ye.__e(n,e.__v)}}function Mj(e){var t,r=function(){clearTimeout(n),YI&&cancelAnimationFrame(t),(0,Tt.default)(e)},n=(0,Tt.default)(r,100);YI&&(t=requestAnimationFrame(r))}function ga(e){var t=ie,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ie=t}function Gu(e){var t=ie;e.__c=e.__(),ie=t}function TE(e,t){return!e||e.length!==t.length||(0,xa.default)(t).call(t,function(r,n){return r!==e[n]})}function CE(e,t){return typeof t=="function"?t(e):t}function jj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wu(){throw new Error("setTimeout has not been defined")}function Ku(){throw new Error("clearTimeout has not been defined")}function RE(e){if(Et===Tt.default)return(0,Tt.default)(e,0);if((Et===Wu||!Et)&&Tt.default)return Et=Tt.default,(0,Tt.default)(e,0);try{return Et(e,0)}catch(t){try{return Et.call(null,e,0)}catch(r){return Et.call(this,e,0)}}}function Uj(e){if(St===clearTimeout)return clearTimeout(e);if((St===Ku||!St)&&clearTimeout)return St=clearTimeout,clearTimeout(e);try{return St(e)}catch(t){try{return St.call(null,e)}catch(r){return St.call(this,e)}}}function Bj(){!on||!dr||(on=!1,dr.length?$t=(0,Pa.default)(dr).call(dr,$t):ya=-1,$t.length&&OE())}function OE(){if(!on){var e=RE(Bj);on=!0;for(var t=$t.length;t;){for(dr=$t,$t=[];++ya<t;)dr&&dr[ya].run();ya=-1,t=$t.length}dr=null,on=!1,Uj(e)}}function NE(e,t){this.fun=e,this.array=t}function zt(){}function Hj(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 Vj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function Kj(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function LE(e){return(0,sd.default)(e).call(e)}function Qj(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Qu(e,t){return(0,Vt.default)(e).call(e,t)}function Re(e,t){return e.charCodeAt(t)|0}function Ti(e,t,r){return(0,ld.default)(e).call(e,t,r)}function xt(e){return e.length}function fd(e){return e.length}function fa(e,t){return t.push(e),e}function Yj(e,t){return(0,ki.default)(e).call(e,t).join("")}function Da(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Na,column:cn,length:a,return:""}}function wi(e,t){return Wj(Da("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zj(){return _e}function Xj(){return _e=Ge>0?Re(dn,--Ge):0,cn--,_e===10&&(cn=1,Na--),_e}function et(){return _e=Ge<FE?Re(dn,Ge++):0,cn++,_e===10&&(cn=1,Na++),_e}function Ct(){return Re(dn,Ge)}function _a(){return Ge}function Di(e,t){return Ti(dn,e,t)}function Ci(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 ME(e){return Na=cn=1,FE=xt(dn=e),Ge=0,[]}function jE(e){return dn="",e}function ba(e){return LE(Di(Ge-1,Yu(e===91?e+2:e===40?e+1:e)))}function eU(e){for(;(_e=Ct())&&_e<33;)et();return Ci(e)>2||Ci(_e)>3?"":" "}function tU(e,t){for(;--t&&et()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Di(e,_a()+(t<6&&Ct()==32&&et()==32))}function Yu(e){for(;et();)switch(_e){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Yu(_e);break;case 40:e===41&&Yu(e);break;case 92:et();break}return Ge}function rU(e,t){for(;et()&&e+_e!==57&&!(e+_e===84&&Ct()===47););return"/*"+Di(t,Ge-1)+"*"+Oa(e===47?e:et())}function nU(e){for(;!Ci(Ct());)et();return Di(e,Ge)}function iU(e){return jE(wa("",null,null,null,[""],e=ME(e),0,[0],e))}function wa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=et()){case 40:if(m!=108&&Re(E,u-1)==58){Qu(E+=$(ba(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ba(_);break;case 9:case 10:case 13:case 32:E+=eU(m);break;case 92:E+=tU(_a()-1,7);continue;case 47:switch(Ct()){case 42:case 47:fa(oU(rU(et(),_a()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=xt(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:f>0&&xt(E)-u&&fa(f>32?XI(E+";",n,r,u-1):XI($(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(fa(P=ZI(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)wa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Re(E,3)===110?100:p){case 100:case 109:case 115:wa(e,P,P,n&&fa(ZI(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:wa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+xt(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&Xj()==125)continue}switch(E+=Oa(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(xt(E)-1)*v,v=1;break;case 64:Ct()===45&&(E+=ba(et())),p=Ct(),d=u=xt(w=E+=nU(_a())),_++;break;case 45:m===45&&xt(E)==2&&(g=0)}}return o}function ZI(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=fd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Ti(e,u+1,u=Gj(g=a[m])),w=e;v<f;++v)(w=LE(g>0?p[v]+" "+_:$(_,/&\f/g,p[v])))&&(l[y++]=w);return Da(e,t,r,i===0?dd:s,l,c,d)}function oU(e,t,r){return Da(e,t,r,ud,Oa(Zj()),Ti(e,2,-2),0)}function XI(e,t,r,n){return Da(e,t,r,pd,Ti(e,0,n),Ti(e,n+1,-1),n)}function an(e,t){for(var r="",n=fd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function aU(e,t,r,n){switch(e.type){case zj:case pd:return e.return=e.return||e.value;case ud:return"";case qE:return e.return=e.value+"{"+an(e.children,n)+"}";case dd:e.value=e.props.join(",")}return xt(r=an(e.children,n))?e.return=e.value+"{"+r+"}":""}function sU(e){var t=fd(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 lU(e){return function(t){t.root||(t=t.return)&&e(t)}}function BE(e,t){switch(Kj(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Aa+e+Me+e+e;case 6828:case 4268:return M+e+Me+e+e;case 6165:return M+e+Me+"flex-"+e+e;case 5187:return M+e+$(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return M+e+Me+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return M+e+Me+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Me+$(e,"shrink","negative")+e;case 5292:return M+e+Me+$(e,"basis","preferred-size")+e;case 6060:return M+"box-"+$(e,"-grow","")+M+e+Me+$(e,"grow","positive")+e;case 4554:return M+$(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Aa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qu(e,"stretch")?BE($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,xt(e)-3-(~Qu(e,"!important")&&10))){case 107:return $(e,":",":"+M)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(Re(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Me+e+e}return e}function $E(){if(rE)return ha.exports;rE=1;let e=$E();return ha.exports={default:e},ha.exports.default=e,ha.exports}function Pi(e,t,r){var n,i="";return(0,xe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function IU(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 SU(e){var t=(0,xE.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ri(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 kt={name:i.name,styles:i.styles,next:kt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)kt={name:a.name,styles:a.styles,next:kt},a=a.next;var s=o.styles+";";return s}return AU(e,t,r)}case"function":{if(e!==void 0){var l=kt,c=r(e);return kt=l,Ri(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function AU(e,t,r){var n="";if((0,xi.default)(r))for(var i=0;i<r.length;i++)n+=Ri(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]+"}":nE(s)&&(n+=Bu(o)+":"+iE(o,s)+";")}else if((0,xi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)nE(a[l])&&(n+=Bu(o)+":"+iE(o,a[l])+";");else{var c=Ri(e,t,a);switch(o){case"animation":case"animationName":{n+=Bu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function pr(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="";kt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ri(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ri(r,t,e[s]),n){var l=o;i+=l[s]}oE.lastIndex=0;for(var c="",d;(d=oE.exec(i))!==null;)c+="-"+d[1];var u=IU(i)+c;return{name:u,styles:i,next:kt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pr(t)}function MU(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function b(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:--BU,__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 O.vnode&&O.vnode(c),c}function qi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Ht(e());return Rr(()=>{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 E2(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 eS(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=E2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function S2(e){let t=()=>eS(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function A2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=ot(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=k2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Le("img",L(C({},a),{ref:c,src:t!=null?t:"",style:C({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",L(C({},a),{ref:c,className:i,children:r}))}function T2(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?Le(i.type,L(C({},i.props),{style:L(C({},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?Le(e.type,L(C({},e.props),{style:L(C({},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 D2(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 yE(e,t,r){return La.call(t,"css")?b(gd,WE(e,t),r):b(e,t,r)}function U2(e,t,r){return La.call(t,"css")?b(gd,WE(e,t),r):b(e,t,r)}function Y2(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function fS(e){return(0,sd.default)(e).call(e)}function Z2(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function rd(e,t){return(0,Vt.default)(e).call(e,t)}function Oe(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return(0,ld.default)(e).call(e,t,r)}function At(e){return e.length}function wd(e){return e.length}function va(e,t){return t.push(e),e}function X2(e,t){return(0,ki.default)(e).call(e,t).join("")}function Ba(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ua,column:un,length:a,return:""}}function Ii(e,t){return Q2(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function eB(){return be}function tB(){return be=We>0?Oe(pn,--We):0,un--,be===10&&(un=1,Ua--),be}function tt(){return be=We<hS?Oe(pn,We++):0,un++,be===10&&(un=1,Ua++),be}function Pt(){return Oe(pn,We)}function Ia(){return We}function Mi(e,t){return Oi(pn,e,t)}function Ni(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 mS(e){return Ua=un=1,hS=At(pn=e),We=0,[]}function vS(e){return pn="",e}function Ea(e){return fS(Mi(We-1,nd(e===91?e+2:e===40?e+1:e)))}function rB(e){for(;(be=Pt())&&be<33;)tt();return Ni(e)>2||Ni(be)>3?"":" "}function nB(e,t){for(;--t&&tt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Mi(e,Ia()+(t<6&&Pt()==32&&tt()==32))}function nd(e){for(;tt();)switch(be){case e:return We;case 34:case 39:e!==34&&e!==39&&nd(be);break;case 40:e===41&&nd(e);break;case 92:tt();break}return We}function iB(e,t){for(;tt()&&e+be!==57&&!(e+be===84&&Pt()===47););return"/*"+Mi(t,We-1)+"*"+ja(e===47?e:tt())}function oB(e){for(;!Ni(Pt());)tt();return Mi(e,We)}function aB(e){return vS(Sa("",null,null,null,[""],e=mS(e),0,[0],e))}function Sa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=tt()){case 40:if(m!=108&&Oe(E,u-1)==58){rd(E+=U(Ea(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Ea(_);break;case 9:case 10:case 13:case 32:E+=rB(m);break;case 92:E+=nB(Ia()-1,7);continue;case 47:switch(Pt()){case 42:case 47:va(sB(iB(tt(),Ia()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=At(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=U(E,/\f/g,"")),f>0&&At(E)-u&&va(f>32?bE(E+";",n,r,u-1):bE(U(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(va(P=_E(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Sa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Oe(E,3)===110?100:p){case 100:case 108:case 109:case 115:Sa(e,P,P,n&&va(_E(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Sa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+At(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&tB()==125)continue}switch(E+=ja(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(At(E)-1)*v,v=1;break;case 64:Pt()===45&&(E+=Ea(tt())),p=Pt(),d=u=At(w=E+=oB(Ia())),_++;break;case 45:m===45&&At(E)==2&&(g=0)}}return o}function _E(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=wd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Oi(e,u+1,u=K2(g=a[m])),w=e;v<f;++v)(w=fS(g>0?p[v]+" "+_:U(_,/&\f/g,p[v])))&&(l[y++]=w);return Ba(e,t,r,i===0?_d:s,l,c,d)}function sB(e,t,r){return Ba(e,t,r,dS,ja(eB()),Oi(e,2,-2),0)}function bE(e,t,r,n){return Ba(e,t,r,bd,Oi(e,0,n),Oi(e,n+1,-1),n)}function sn(e,t){for(var r="",n=wd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function lB(e,t,r,n){switch(e.type){case W2:if(e.children.length)break;case G2:case bd:return e.return=e.return||e.value;case dS:return"";case pS:return e.return=e.value+"{"+sn(e.children,n)+"}";case _d:e.value=e.props.join(",")}return At(r=sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function cB(e){var t=wd(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 uB(e){return function(t){t.root||(t=t.return)&&e(t)}}function gS(e,t){switch(Y2(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+Ca+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+U(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+U(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+U(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+U(e,"shrink","negative")+e;case 5292:return j+e+je+U(e,"basis","preferred-size")+e;case 6060:return j+"box-"+U(e,"-grow","")+j+e+je+U(e,"grow","positive")+e;case 4554:return j+U(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return U(U(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 U(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(At(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ca+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rd(e,"stretch")?gS(U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,At(e)-3-(~rd(e,"!important")&&10))){case 107:return U(e,":",":"+j)+e;case 101:return U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Oe(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function IE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Vu(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function Id(){let e=!1,t=null,r=0,n=new Set,i=a=>I(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Si.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),rr(b(kB,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Si.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&&(rr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Si.release()))};return{show:i,hide:o,get isLoading(){return e}}}var id,SE,xe,Pa,xa,Tt,ka,xi,od,Vt,ki,xE,kE,ad,sd,ld,YG,zu,ln,ie,Uu,HI,Ai,AE,ye,VI,zI,GI,WI,KI,QI,YI,PE,pe,Et,St,$t,on,dr,ya,Jj,ke,$j,DE,Me,Aa,M,ud,dd,pd,zj,qE,Gj,Oa,Wj,Na,cn,FE,Ge,_e,dn,cU,uU,dU,eE,pU,fU,hU,mU,vU,UE,gU,tE,yU,_U,bU,JE,ha,rE,wU,hd,qa,EU,xU,kU,HE,nE,Bu,iE,oE,kt,TU,VE,zE,aE,La,md,GE,vd,Fa,CU,PU,RU,OU,NU,Zu,Xu,WE,DU,gd,qU,sE,LU,FU,jU,UU,Ju,lE,$u,Hu,BU,cE,JU,$U,HU,VU,zU,uE,GU,dE,WU,pE,KU,fE,QU,YU,ZU,XU,e2,hE,t2,r2,n2,i2,o2,mE,a2,s2,l2,c2,u2,d2,p2,f2,h2,m2,v2,g2,y2,_2,b2,w2,KE,QE,YE,ed,I2,ZE,XE,Ta,Si,vE,x2,yd,k2,tS,rS,nS,C2,P2,R2,td,O2,iS,N2,Li,Ma,gE,Pr,oS,nn,q2,L2,F2,M2,j2,ma,aS,sS,de,B2,J2,lS,cS,uS,Fi,$2,H2,V2,z2,je,Ca,j,dS,_d,bd,G2,pS,W2,K2,ja,Q2,Ua,un,hS,We,be,pn,dB,pB,fB,wE,hB,mB,vB,gB,yB,_B,bB,wB,IB,EB,SB,ji,EE,xB,kB,ZG,Or=T(()=>{"use strict";Ur();id=le(vv(),1),SE=le(kv(),1),xe=le(jv(),1),Pa=le(eg(),1),xa=le(cg(),1),Tt=le(Ag(),1);Fo();Fo();ka=le(dy(),1),xi=le(yy(),1),od=le(Db(),1),Vt=le(Hb(),1),ki=le(Xb(),1),xE=le(a0(),1),kE=le(Ew(),1),ad=le(Fw(),1),sd=le(eI(),1),ld=le(dI(),1);Lu();Lu();YG=le(TI(),1),zu=le($I(),1),Ai=0,AE=[],ye=O,VI=ye.__b,zI=ye.__r,GI=ye.diffed,WI=ye.__c,KI=ye.unmount,QI=ye.__;ye.__b=function(e){ie=null,VI&&VI(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),QI&&QI(e,t)},ye.__r=function(e){var t,r,n;zI&&zI(e),ln=0;var i=(ie=e.__c).__H;i&&(Uu===ie?(i.__h=[],ie.__h=[],(0,xe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,xe.default)(r=i.__h).call(r,ga),(0,xe.default)(n=i.__h).call(n,Gu),i.__h=[],ln=0)),Uu=ie},ye.diffed=function(e){var t;GI&&GI(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(AE.push(r)!==1&&HI===ye.requestAnimationFrame||((HI=ye.requestAnimationFrame)||Mj)(Fj)),(0,xe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Uu=ie=null},ye.__c=function(e,t){(0,xa.default)(t).call(t,function(r){try{var n,i;(0,xe.default)(n=r.__h).call(n,ga),r.__h=(0,id.default)(i=r.__h).call(i,function(o){return!o.__||Gu(o)})}catch(o){(0,xa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ye.__e(o,r.__v)}}),WI&&WI(e,t)},ye.unmount=function(e){var t;KI&&KI(e);var r,n=e.__c;n&&n.__H&&((0,xe.default)(t=n.__H.__).call(t,function(i){try{ga(i)}catch(o){r=o}}),n.__H=void 0,r&&ye.__e(r,n.__v))};YI=typeof requestAnimationFrame=="function";PE={exports:{}},pe=PE.exports={};(function(){try{typeof Tt.default=="function"?Et=Tt.default:Et=Wu}catch(e){Et=Wu}try{typeof clearTimeout=="function"?St=clearTimeout:St=Ku}catch(e){St=Ku}})();$t=[],on=!1,ya=-1;pe.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];$t.push(new NE(e,t)),$t.length===1&&!on&&RE(OE)};NE.prototype.run=function(){this.fun.apply(null,this.array)};pe.title="browser";pe.browser=!0;pe.env={};pe.argv=[];pe.version="";pe.versions={};pe.on=zt;pe.addListener=zt;pe.once=zt;pe.off=zt;pe.removeListener=zt;pe.removeAllListeners=zt;pe.emit=zt;pe.prependListener=zt;pe.prependOnceListener=zt;pe.listeners=function(e){return[]};pe.binding=function(e){throw new Error("process.binding is not supported")};pe.cwd=function(){return"/"};pe.chdir=function(e){throw new Error("process.chdir is not supported")};pe.umask=function(){return 0};Jj=PE.exports,ke=jj(Jj),$j=ka.default||void 0||self;DE=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,xe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Hj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,xe.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}(),Me="-ms-",Aa="-moz-",M="-webkit-",ud="comm",dd="rule",pd="decl",zj="@import",qE="@keyframes",Gj=Math.abs,Oa=String.fromCharCode,Wj=ad.default;Na=1,cn=1,FE=0,Ge=0,_e=0,dn="";cU=function(e,t,r){for(var n=0,i=0;n=i,i=Ct(),n===38&&i===12&&(t[r]=1),!Ci(i);)et();return Di(e,Ge)},uU=function(e,t){var r=-1,n=44;do switch(Ci(n)){case 0:n===38&&Ct()===12&&(t[r]=1),e[r]+=cU(Ge-1,t,r);break;case 2:e[r]+=ba(n);break;case 4:if(n===44){e[++r]=Ct()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Oa(n)}while(n=et());return e},dU=function(e,t){return jE(uU(ME(e),t))},eE=new od.default,pU=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&&!eE.get(r))&&!n){eE.set(e,!0);for(var i=[],o=dU(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]}}},fU=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},hU="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",mU=function(e){var t;return e.type==="comm"&&(0,Vt.default)(t=e.children).call(t,hU)>-1},vU=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(mU(l))return;break}}(0,xe.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".')})}}}},UE=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},gU=function(e,t){for(var r=e-1;r>=0;r--)if(!UE(t[r]))return!0;return!1},tE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},yU=function(e,t,r){UE(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."),tE(e)):gU(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tE(e)))};_U=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pd:e.return=BE(e.value,e.length);break;case qE:return an([wi(e,{value:$(e.value,"@","@"+M)})],n);case dd:if(e.length)return Yj(e.props,function(i){switch(Qj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([wi(e,{props:[$(i,/:(read-\w+)/,":"+Aa+"$1")]})],n);case"::placeholder":return an([wi(e,{props:[$(i,/:(plac\w+)/,":"+M+"input-$1")]}),wi(e,{props:[$(i,/:(plac\w+)/,":"+Aa+"$1")]}),wi(e,{props:[$(i,/:(plac\w+)/,Me+"input-$1")]})],n)}return""})}},bU=[_U],JE=function(e){var t=e.key;if(ke.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
21
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,xe.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||bU;if(ke.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,xe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[pU,fU];ke.env.NODE_ENV!=="production"&&l.push(vU({get compat(){return f.compat}}),yU);{var c,d=[aU,ke.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==ud&&c.insert(m.value+"{}"))}:lU(function(m){c.insert(m)})],u=sU((0,Pa.default)(l).call(l,n,d)),p=function(m){return an(iU(m),u)};s=function(m,g,y,v){c=y,ke.env.NODE_ENV!=="production"&&(0,ki.default)(g)!==void 0&&(c={insert:function(_){y.insert(_+(0,ki.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new DE({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},ha={exports:{}};$E();wU=!0;hd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||wU===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},qa=function(e,t,r){hd(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)}};EU={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};xU=/[A-Z]|^ms/g,kU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HE=function(e){return e.charCodeAt(1)===45},nE=function(e){return e!=null&&typeof e!="boolean"},Bu=SU(function(e){return HE(e)?e:e.replace(xU,"-$&").toLowerCase()}),iE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(kU,function(r,n,i){return kt={name:n,styles:i,next:kt},n})}return EU[e]!==1&&!HE(e)&&typeof t=="number"&&t!==0?t+"px":t};oE=/label:\s*([^\s;{]+)\s*(;|$)/g;TU=function(e){return e()},VE=Oc?Oc:!1,zE=VE||TU,aE=VE||Qr,La={}.hasOwnProperty,md=wr(typeof HTMLElement<"u"?JE({key:"css"}):null);ke.env.NODE_ENV!=="production"&&(md.displayName="EmotionCacheContext");GE=md.Provider,vd=function(e){return Dc(function(t,r){var n=Zr(md);return e(t,n,r)})},Fa=wr({});ke.env.NODE_ENV!=="production"&&(Fa.displayName="EmotionThemeContext");CU=function(e){var t=e.split(".");return t[t.length-1]},PU=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 CU(t[1])},RU=new kE.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),OU=function(e){return e.replace(/\$/g,"-")},NU=function(e){if(e)for(var t=e.split(`
22
+ `),r=0;r<t.length;r++){var n=PU(t[r]);if(n){if(RU.has(n))break;if(/^[A-Z]/.test(n))return OU(n)}}},Zu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xu="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",WE=function(e,t){var r,n;if(ke.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Vt.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)La.call(t,o)&&(i[o]=t[o]);if(i[Zu]=e,ke.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Vt.default)(n=t.css.name).call(n,"-")===-1)){var a=NU(new Error().stack);a&&(i[Xu]=a)}return i},DU=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return hd(t,r,n),zE(function(){return qa(t,r,n)}),null},gd=vd(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Zu],a=[i],s="";typeof e.className=="string"?s=Pi(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=pr(a,void 0,Zr(Fa));if(ke.env.NODE_ENV!=="production"&&(0,Vt.default)(n=l.name).call(n,"-")===-1){var c=e[Xu];c&&(l=pr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)La.call(e,u)&&u!=="css"&&u!==Zu&&(ke.env.NODE_ENV==="production"||u!==Xu)&&(d[u]=e[u]);return d.ref=r,d.className=s,Le(Ze,null,Le(DU,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Le(o,d))});ke.env.NODE_ENV!=="production"&&(gd.displayName="EmotionCssPropInternal");qU={version:"11.10.5"},sE=!1,LU=vd(function(e,t){ke.env.NODE_ENV!=="production"&&!sE&&(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?"),sE=!0);var r=e.styles,n=pr([r],void 0,Zr(Fa)),i=ai();return aE(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]),aE(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});ke.env.NODE_ENV!=="production"&&(LU.displayName="EmotionGlobal");FU=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,xi.default)(o))a=e(o);else{ke.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};jU=function(e){var t=e.cache,r=e.serializedArr;return zE(function(){for(var n=0;n<r.length;n++)qa(t,r[n],!1)}),null},UU=vd(function(e,t){var r=!1,n=[],i=function(){if(r&&ke.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=pr(c,t.registered);return n.push(u),hd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&ke.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 MU(t.registered,i,FU(c))},a={css:i,cx:o,theme:Zr(Fa)},s=e.children(a);return r=!0,Le(Ze,null,Le(jU,{cache:t,serializedArr:n}),s)});ke.env.NODE_ENV!=="production"&&(UU.displayName="EmotionClassNames");ke.env.NODE_ENV!=="production"&&(Ju=!0,lE=typeof jest<"u"||typeof vi<"u",Ju&&!lE&&($u=typeof ka.default<"u"?ka.default:Ju?window:$j,Hu="__EMOTION_REACT_"+qU.version.split(".")[0]+"__",$u[Hu]&&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."),$u[Hu]=!0));BU=0;cE={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"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"}},JU=N`
23
23
  width: 100%;
24
24
  overflow: auto;
25
25
  margin: 0 auto;
@@ -59,7 +59,7 @@ If multiple caches share the same key they might "fight" for each other's style
59
59
  .drawer-leave {
60
60
  animation: slideDown 0.3s ease forwards;
61
61
  }
62
- `,HU=({children:e,isOpen:t=!1,onClose:r,className:n=""},i)=>{let[o,a]=Ht(!1),[s,l]=Ht(null),[c,d]=Ht(!1),u=Ei(null),p=Ei(null),f=Ei(!1);Rr(()=>{if(o&&u.current){let k=u.current.ownerDocument,$=k.createElement("style");$.innerHTML=$U,k.head.appendChild($);let Je={overflow:k.body.style.overflow,position:k.body.style.position,width:k.body.style.width};return k.body.style.overflow="hidden",k.body.style.position="fixed",k.body.style.width="100%",()=>{k.head.contains($)&&k.head.removeChild($),k.body.style.overflow=Je.overflow,k.body.style.position=Je.position,k.body.style.width=Je.width}}},[o]),Rr(()=>{t?!o&&!f.current&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)})):o&&(f.current=!0,l("leave"),d(!1))},[t]);let m=lt(k=>{k.target===p.current&&(s==="leave"?(l(null),a(!1),f.current=!1,r&&r()):s==="enter"&&(l(null),d(!0)))},[s,r]),g=lt(()=>{o&&!f.current&&(f.current=!0,l("leave"),d(!1))},[o]),y=lt(k=>{k.preventDefault(),k.stopPropagation(),g()},[g]),v=lt(()=>{!f.current&&!o&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)}))},[o]),_=lt(()=>o&&!f.current,[o]);if(Rr(()=>{if(i){let k={show:v,hide:g,isOpen:_};typeof i=="function"?i(k):i&&(i.current=k)}},[v,g,_,i]),!o)return null;let w=L(C({},lE.drawerBackdrop),{backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",pointerEvents:"auto"},R=L(C({},lE.drawer),{height:"auto",pointerEvents:"auto"});o&&!c&&!s&&(R.transform="translateY(100%)");let P=s?`drawer-${s}`:"",E=s?`backdrop-${s}`:"";return b("div",{ref:u,style:w,children:[b("div",{style:A,className:E,onClick:y}),b("div",{ref:p,style:R,className:`${P} ${n}`,onAnimationEnd:m,onClick:k=>k.stopPropagation(),children:b("div",{style:JU.styles,children:e})})]})},VU=Dc(HU);zU={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},cE={jolicoin:zU},GU={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},uE={jolicoin:GU},WU={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},dE={jolicoin:WU},KU={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},pE={jolicoin:KU},QU={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},YU={jolicoin:QU},ZU={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},XU={jolicoin:ZU},e2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},fE={jolicoin:e2},t2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},r2={jolicoin:t2},n2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},i2={jolicoin:n2},o2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},hE={jolicoin:o2},a2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},s2={jolicoin:a2},l2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},c2={jolicoin:l2},u2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},d2={jolicoin:u2},p2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},f2={jolicoin:p2},h2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},m2={jolicoin:h2},v2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},g2={jolicoin:v2},y2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},_2={jolicoin:y2},b2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},w2={jolicoin:b2},WE={en:{translations:cE},en_GB:{translations:cE},zh:{translations:uE},"zh-Hans":{translations:uE},"zh-Hant":{translations:c2},id:{translations:dE},in:{translations:dE},ms:{translations:pE},my:{translations:pE},th:{translations:YU},vi:{translations:XU},fil:{translations:fE},tl:{translations:fE},es:{translations:r2},ja:{translations:i2},pt:{translations:hE},pt_PT:{translations:hE},ko:{translations:s2},de:{translations:d2},fr:{translations:f2},hi:{translations:m2},ru:{translations:g2},bn:{translations:_2},tr:{translations:w2}},KE=wr(void 0),QE=({definition:e,children:t})=>{let r={translations:e};return b(KE.Provider,{value:r,children:t})},ed=null,I2={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},YE=e=>{ed=e},ZE=()=>{var e;if(typeof ed!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=ed();return(e=I2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ta=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=BE({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=S2(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return I(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(XE(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},Si=new Ta(99999998,"auto"),mE=new Ta(99999999,"none"),x2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=qi(),l={container:N`
62
+ `,HU=({children:e,isOpen:t=!1,onClose:r,className:n=""},i)=>{let[o,a]=Ht(!1),[s,l]=Ht(null),[c,d]=Ht(!1),u=Ei(null),p=Ei(null),f=Ei(!1);Rr(()=>{if(o&&u.current){let k=u.current.ownerDocument,H=k.createElement("style");H.innerHTML=$U,k.head.appendChild(H);let Je={overflow:k.body.style.overflow,position:k.body.style.position,width:k.body.style.width};return k.body.style.overflow="hidden",k.body.style.position="fixed",k.body.style.width="100%",()=>{k.head.contains(H)&&k.head.removeChild(H),k.body.style.overflow=Je.overflow,k.body.style.position=Je.position,k.body.style.width=Je.width}}},[o]),Rr(()=>{t?!o&&!f.current&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)})):o&&(f.current=!0,l("leave"),d(!1))},[t]);let m=lt(k=>{k.target===p.current&&(s==="leave"?(l(null),a(!1),f.current=!1,r&&r()):s==="enter"&&(l(null),d(!0)))},[s,r]),g=lt(()=>{o&&!f.current&&(f.current=!0,l("leave"),d(!1))},[o]),y=lt(k=>{k.preventDefault(),k.stopPropagation(),g()},[g]),v=lt(()=>{!f.current&&!o&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)}))},[o]),_=lt(()=>o&&!f.current,[o]);if(Rr(()=>{if(i){let k={show:v,hide:g,isOpen:_};typeof i=="function"?i(k):i&&(i.current=k)}},[v,g,_,i]),!o)return null;let w=L(C({},cE.drawerBackdrop),{backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",pointerEvents:"auto"},R=L(C({},cE.drawer),{height:"auto",pointerEvents:"auto"});o&&!c&&!s&&(R.transform="translateY(100%)");let P=s?`drawer-${s}`:"",E=s?`backdrop-${s}`:"";return b("div",{ref:u,style:w,children:[b("div",{style:A,className:E,onClick:y}),b("div",{ref:p,style:R,className:`${P} ${n}`,onAnimationEnd:m,onClick:k=>k.stopPropagation(),children:b("div",{style:JU.styles,children:e})})]})},VU=Dc(HU);zU={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},uE={jolicoin:zU},GU={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},dE={jolicoin:GU},WU={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},pE={jolicoin:WU},KU={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},fE={jolicoin:KU},QU={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},YU={jolicoin:QU},ZU={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},XU={jolicoin:ZU},e2={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},hE={jolicoin:e2},t2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},r2={jolicoin:t2},n2={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},i2={jolicoin:n2},o2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},mE={jolicoin:o2},a2={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},s2={jolicoin:a2},l2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},c2={jolicoin:l2},u2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},d2={jolicoin:u2},p2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},f2={jolicoin:p2},h2={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},m2={jolicoin:h2},v2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},g2={jolicoin:v2},y2={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},_2={jolicoin:y2},b2={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},w2={jolicoin:b2},KE={en:{translations:uE},en_GB:{translations:uE},zh:{translations:dE},"zh-Hans":{translations:dE},"zh-Hant":{translations:c2},id:{translations:pE},in:{translations:pE},ms:{translations:fE},my:{translations:fE},th:{translations:YU},vi:{translations:XU},fil:{translations:hE},tl:{translations:hE},es:{translations:r2},ja:{translations:i2},pt:{translations:mE},pt_PT:{translations:mE},ko:{translations:s2},de:{translations:d2},fr:{translations:f2},hi:{translations:m2},ru:{translations:g2},bn:{translations:_2},tr:{translations:w2}},QE=wr(void 0),YE=({definition:e,children:t})=>{let r={translations:e};return b(QE.Provider,{value:r,children:t})},ed=null,I2={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},ZE=e=>{ed=e},XE=()=>{var e;if(typeof ed!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=ed();return(e=I2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ta=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=JE({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=S2(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return I(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(eS(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},Si=new Ta(99999998,"auto"),vE=new Ta(99999999,"none"),x2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=qi(),l={container:N`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  height: 100%;
@@ -96,7 +96,7 @@ If multiple caches share the same key they might "fight" for each other's style
96
96
  ${l.button}
97
97
  background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
98
98
  color: ${c.variant==="primary"?"#fff":"#333"};
99
- `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},yd=e=>{let t=!1,r=ZE(),n=WE[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),rr(b(zE,{value:a,children:b(QE,{definition:n,children:b(VU,{ref:f=>{},isOpen:p,onClose:c,backdropColor:e.backdropColor,children:b(x2,L(C({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}Si.release(),(f=e.onClose)==null||f.call(e)}}function d(){return I(this,null,function*(){let p=yield Si.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},k2=(e,t={threshold:.6})=>{let r=Ei(null),n=Ei(!1),i=lt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Rr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};eS=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=ot(a,["children","fluid","className","style"]);let s=C({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",L(C({className:r,style:s},i),{children:e}))},tS=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=ot(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=C({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?T2(e,t):e;return b("div",L(C({className:i,style:u},a),{children:p}))};rS=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=ot(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=C({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",L(C({className:l,style:f},d),{children:e}))},C2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Yr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Yr(()=>{},[e,t]);return b(rS,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,onTouchEnd:o,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(A2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},P2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=ot(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(eS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(tS,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>b(C2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},R2=Nc(P2),td=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(td||{}),O2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Ht(null),s=lt(u=>{i==null||i({type:u.type===td.Quit?"quit":"dismiss"})},[i]),l=lt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=qi();if(!t.length)return b(Ze,{});let d=lt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
99
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},yd=e=>{let t=!1,r=XE(),n=KE[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),rr(b(GE,{value:a,children:b(YE,{definition:n,children:b(VU,{ref:f=>{},isOpen:p,onClose:c,backdropColor:e.backdropColor,children:b(x2,L(C({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}Si.release(),(f=e.onClose)==null||f.call(e)}}function d(){return I(this,null,function*(){let p=yield Si.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},k2=(e,t={threshold:.6})=>{let r=Ei(null),n=Ei(!1),i=lt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Rr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};tS=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=ot(a,["children","fluid","className","style"]);let s=C({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",L(C({className:r,style:s},i),{children:e}))},rS=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=ot(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=C({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?T2(e,t):e;return b("div",L(C({className:i,style:u},a),{children:p}))};nS=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=ot(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=C({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",L(C({className:l,style:f},d),{children:e}))},C2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Yr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Yr(()=>{},[e,t]);return b(nS,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,onTouchEnd:o,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(A2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},P2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=ot(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(tS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(rS,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>b(C2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},R2=Nc(P2),td=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(td||{}),O2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Ht(null),s=lt(u=>{i==null||i({type:u.type===td.Quit?"quit":"dismiss"})},[i]),l=lt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=qi();if(!t.length)return b(Ze,{});let d=lt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
100
100
  .recommend-panel {
101
101
  display: flex;
102
102
  flex-direction: column;
@@ -218,7 +218,7 @@ If multiple caches share the same key they might "fight" for each other's style
218
218
  background-color: #7817FF;
219
219
  color: #fff;
220
220
  }
221
- `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Rr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&rr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(R2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===td.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},nS=e=>{let t=yd({title:e.title,content:b(O2,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},N2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=",Li="https://fe-oss.jolibox.com/static/coin/jolicoin.png";Ma=()=>{let e=Lj(KE);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=D2(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},vE=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Pr={coinInfo:N`
221
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Rr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&rr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(R2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===td.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},iS=e=>{let t=yd({title:e.title,content:b(O2,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},N2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=",Li="https://fe-oss.jolibox.com/static/coin/jolicoin.png";Ma=()=>{let e=Lj(QE);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=D2(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},gE=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Pr={coinInfo:N`
222
222
  display: flex;
223
223
  width: calc(100% - 40px);
224
224
  max-width: 720px;
@@ -275,7 +275,7 @@ If multiple caches share the same key they might "fight" for each other's style
275
275
  font-size: 16px;
276
276
  font-weight: 600;
277
277
  color: #d9d9d9;
278
- `},iS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Li,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ma(),l=14;return b("div",{style:Pr.coinInfo.styles,children:[!i&&b("div",{style:Pr.coinAmount.styles,children:[b(vE,{text:s("jolicoin.price"),initialFontSize:l,styles:Pr.coinLabelContainer.styles}),b("div",{style:Pr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:Pr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Pr.coinAmountBalance.styles,children:b(vE,{text:s("jolicoin.balance")+":\xA0"+a,initialFontSize:l,styles:Pr.coinValueText.styles})})]})},nn={card:N`
278
+ `},oS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Li,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ma(),l=14;return b("div",{style:Pr.coinInfo.styles,children:[!i&&b("div",{style:Pr.coinAmount.styles,children:[b(gE,{text:s("jolicoin.price"),initialFontSize:l,styles:Pr.coinLabelContainer.styles}),b("div",{style:Pr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:Pr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Pr.coinAmountBalance.styles,children:b(gE,{text:s("jolicoin.balance")+":\xA0"+a,initialFontSize:l,styles:Pr.coinValueText.styles})})]})},nn={card:N`
279
279
  display: flex;
280
280
  flex-direction: column;
281
281
  align-items: center;
@@ -317,7 +317,7 @@ If multiple caches share the same key they might "fight" for each other's style
317
317
  flex-direction: column;
318
318
  justify-content: center;
319
319
  -webkit-tap-highlight-color: transparent;
320
- `,F2=e=>b("div",{style:q2.styles,children:b("div",{style:L2.styles,children:b("div",{style:`${nn.card.styles} ${e.option.id===e.selectedId?nn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:nn.coinContainer.styles,children:[b("img",{src:Li,alt:"Coin",style:nn.coinIcon.styles}),b("span",{style:nn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:nn.price.styles,children:e.option.price})]})})}),M2=({options:e,selectedId:t,onSelect:r})=>{let n=qi(),i=o=>{r==null||r(o)};return b(eS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(tS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(o=>b(rS,{span:n==="landscape"?4:8,children:b(F2,{option:o,selectedId:t,coinImageSrc:Li,handleSelect:i})},o.id))})})},j2=Nc(M2);ma={toggleSwitch:N`
320
+ `,F2=e=>b("div",{style:q2.styles,children:b("div",{style:L2.styles,children:b("div",{style:`${nn.card.styles} ${e.option.id===e.selectedId?nn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:nn.coinContainer.styles,children:[b("img",{src:Li,alt:"Coin",style:nn.coinIcon.styles}),b("span",{style:nn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:nn.price.styles,children:e.option.price})]})})}),M2=({options:e,selectedId:t,onSelect:r})=>{let n=qi(),i=o=>{r==null||r(o)};return b(tS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(rS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(o=>b(nS,{span:n==="landscape"?4:8,children:b(F2,{option:o,selectedId:t,coinImageSrc:Li,handleSelect:i})},o.id))})})},j2=Nc(M2);ma={toggleSwitch:N`
321
321
  position: relative;
322
322
  display: inline-block;
323
323
  width: 33px;
@@ -354,7 +354,7 @@ If multiple caches share the same key they might "fight" for each other's style
354
354
  &:before {
355
355
  transform: translateX(18px);
356
356
  }
357
- `},oS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>U2("label",{css:ma.toggleSwitch,children:[gE("input",{css:ma.toggleInput,type:"checkbox",checked:e,onChange:t}),gE("span",{css:[ma.toggleSlider,e&&ma.toggleSliderActive]})]}),aS=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),de={modal:N`
357
+ `},aS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>U2("label",{css:ma.toggleSwitch,children:[yE("input",{css:ma.toggleInput,type:"checkbox",checked:e,onChange:t}),yE("span",{css:[ma.toggleSlider,e&&ma.toggleSliderActive]})]}),sS=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),de={modal:N`
358
358
  font-family: PingFangSC-Regular;
359
359
  background-color: #1a1a1a;
360
360
  color: white;
@@ -442,19 +442,19 @@ If multiple caches share the same key they might "fight" for each other's style
442
442
  border-radius: 2px;
443
443
  margin: 0 auto;
444
444
  -webkit-tap-highlight-color: transparent;
445
- `},B2=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=Ht(r),d=qi(),{t:u}=Ma(),p=()=>{n(l)},f=lt(()=>{c(!l),o(!l)},[l]);return b("div",{style:`${de.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:de.header.styles,children:[b(iS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:de.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:b(aS,{})})]}),b("div",{style:de.content.styles,children:[b("h2",{style:de.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&b("div",{style:de.autoDeductOption.styles,children:[b("span",{style:N`
445
+ `},B2=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=Ht(r),d=qi(),{t:u}=Ma(),p=()=>{n(l)},f=lt(()=>{c(!l),o(!l)},[l]);return b("div",{style:`${de.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:de.header.styles,children:[b(oS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:de.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:b(sS,{})})]}),b("div",{style:de.content.styles,children:[b("h2",{style:de.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&b("div",{style:de.autoDeductOption.styles,children:[b("span",{style:N`
446
446
  font-size: 12px;
447
447
  font-weight: 400;
448
448
  line-height: 1.2;
449
449
  color: #979797;
450
- `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),b(oS,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),b("section",{style:`${de.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${de.confirmButton.styles} ${de.buttonFlex.styles}`,onClick:p,children:u(a)}),b("button",{style:`${de.cancelButton.styles} ${de.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},J2=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=Ht(r),{t:p}=Ma(),[f,m]=Ht(()=>{var w,A;return((w=n.find(R=>R.defaultSelected))==null?void 0:w.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),g=qi(),y=()=>{i(f)},v=lt(w=>{console.log(w),m(w),s(w)},[]),_=lt(()=>{u(!d),a(!d)},[d]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:de.modal.styles,children:[b("div",{style:de.header.styles,children:[b(iS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:de.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(aS,{})})]}),b("div",{style:de.content.styles,children:[b("div",{style:N`
450
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),b(aS,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),b("section",{style:`${de.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${de.confirmButton.styles} ${de.buttonFlex.styles}`,onClick:p,children:u(a)}),b("button",{style:`${de.cancelButton.styles} ${de.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},J2=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=Ht(r),{t:p}=Ma(),[f,m]=Ht(()=>{var w,A;return((w=n.find(R=>R.defaultSelected))==null?void 0:w.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),g=qi(),y=()=>{i(f)},v=lt(w=>{console.log(w),m(w),s(w)},[]),_=lt(()=>{u(!d),a(!d)},[d]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:de.modal.styles,children:[b("div",{style:de.header.styles,children:[b(oS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:de.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(sS,{})})]}),b("div",{style:de.content.styles,children:[b("div",{style:N`
451
451
  padding: 16px 0px;
452
452
  `.styles,children:b(j2,{options:n.map(w=>({id:w.productId,coins:w.quantity,price:w.totalAmountStr})),selectedId:f,onSelect:w=>v(w.id)})}),!r&&b("div",{style:de.autoDeductOption.styles,children:[b("span",{style:N`
453
453
  font-size: 12px;
454
454
  font-weight: 400;
455
455
  line-height: 1.2;
456
456
  color: #979797;
457
- `.styles,children:p("jolicoin.unlockWithJolicoinDescription")}),b(oS,{enableAutoDeduct:d,toggleEnableAutoDeduct:_})]}),b("section",{style:`${de.buttonContainer.styles} ${g==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${de.confirmButton.styles} ${de.buttonFlex.styles}`,onClick:y,children:p(l)}),b("button",{style:`${de.cancelButton.styles} ${de.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},sS=e=>{let t=yd({title:"",content:b(B2,{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},lS=e=>{let t=yd({title:"",content:b(J2,{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},cS=new Map,Fi=(e,t)=>{cS.set(e,t)};Fi(/^\{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 b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("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"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Fi(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:N2;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});$2=/^\{slot-i18n-(.+?)\}/,H2=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ma(),i=n(e,t);return b("span",{children:i||r})};Fi($2,(e,t)=>{var n;let r=e[1];return r?b(H2,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});V2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Fi(/^\{slot-success\}/,(e,t)=>b("img",{src:V2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));z2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Fi(/^\{slot-error\}/,(e,t)=>b("img",{src:z2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));je="-ms-",Ca="-moz-",j="-webkit-",uS="comm",_d="rule",bd="decl",G2="@import",dS="@keyframes",W2="@layer",K2=Math.abs,ja=String.fromCharCode,Q2=ad.default;Ua=1,un=1,fS=0,We=0,be=0,pn="";dB=function(e,t,r){for(var n=0,i=0;n=i,i=Pt(),n===38&&i===12&&(t[r]=1),!Ni(i);)tt();return Mi(e,We)},pB=function(e,t){var r=-1,n=44;do switch(Ni(n)){case 0:n===38&&Pt()===12&&(t[r]=1),e[r]+=dB(We-1,t,r);break;case 2:e[r]+=Ea(n);break;case 4:if(n===44){e[++r]=Pt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ja(n)}while(n=tt());return e},fB=function(e,t){return mS(pB(hS(e),t))},bE=new od.default,hB=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&&!bE.get(r))&&!n){bE.set(e,!0);for(var i=[],o=fB(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]}}},mB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};vB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bd:e.return=vS(e.value,e.length);break;case dS:return sn([Ii(e,{value:U(e.value,"@","@"+j)})],n);case _d:if(e.length)return X2(e.props,function(i){switch(Z2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Ii(e,{props:[U(i,/:(read-\w+)/,":"+Ca+"$1")]})],n);case"::placeholder":return sn([Ii(e,{props:[U(i,/:(plac\w+)/,":"+j+"input-$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,":"+Ca+"$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},gB=[vB],yB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,xe.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||gB,i={},o,a=[];o=e.container||document.head,(0,xe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[hB,mB];{var c,d=[lB,uB(function(m){c.insert(m)})],u=cB((0,Pa.default)(l).call(l,n,d)),p=function(m){return sn(aB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new NE({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};_B=function(e){var t=yB(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=pr(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=pr(s,t.registered),d="animation-"+c.name;return wE(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=pr(s,t.registered);wE(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Vu(t.registered,r,bB(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,xe.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,zu.default)(Pi).call(Pi,null,t.registered),merge:(0,zu.default)(Vu).call(Vu,null,t.registered,r)}},bB=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,xi.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},wB=_B({key:"css"}),IB=wB.css,EB=(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 cS.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=IB`
457
+ `.styles,children:p("jolicoin.unlockWithJolicoinDescription")}),b(aS,{enableAutoDeduct:d,toggleEnableAutoDeduct:_})]}),b("section",{style:`${de.buttonContainer.styles} ${g==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${de.confirmButton.styles} ${de.buttonFlex.styles}`,onClick:y,children:p(l)}),b("button",{style:`${de.cancelButton.styles} ${de.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},lS=e=>{let t=yd({title:"",content:b(B2,{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},cS=e=>{let t=yd({title:"",content:b(J2,{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},uS=new Map,Fi=(e,t)=>{uS.set(e,t)};Fi(/^\{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 b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("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"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Fi(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:N2;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});$2=/^\{slot-i18n-(.+?)\}/,H2=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ma(),i=n(e,t);return b("span",{children:i||r})};Fi($2,(e,t)=>{var n;let r=e[1];return r?b(H2,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});V2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Fi(/^\{slot-success\}/,(e,t)=>b("img",{src:V2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));z2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Fi(/^\{slot-error\}/,(e,t)=>b("img",{src:z2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));je="-ms-",Ca="-moz-",j="-webkit-",dS="comm",_d="rule",bd="decl",G2="@import",pS="@keyframes",W2="@layer",K2=Math.abs,ja=String.fromCharCode,Q2=ad.default;Ua=1,un=1,hS=0,We=0,be=0,pn="";dB=function(e,t,r){for(var n=0,i=0;n=i,i=Pt(),n===38&&i===12&&(t[r]=1),!Ni(i);)tt();return Mi(e,We)},pB=function(e,t){var r=-1,n=44;do switch(Ni(n)){case 0:n===38&&Pt()===12&&(t[r]=1),e[r]+=dB(We-1,t,r);break;case 2:e[r]+=Ea(n);break;case 4:if(n===44){e[++r]=Pt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ja(n)}while(n=tt());return e},fB=function(e,t){return vS(pB(mS(e),t))},wE=new od.default,hB=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&&!wE.get(r))&&!n){wE.set(e,!0);for(var i=[],o=fB(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]}}},mB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};vB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bd:e.return=gS(e.value,e.length);break;case pS:return sn([Ii(e,{value:U(e.value,"@","@"+j)})],n);case _d:if(e.length)return X2(e.props,function(i){switch(Z2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Ii(e,{props:[U(i,/:(read-\w+)/,":"+Ca+"$1")]})],n);case"::placeholder":return sn([Ii(e,{props:[U(i,/:(plac\w+)/,":"+j+"input-$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,":"+Ca+"$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},gB=[vB],yB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,xe.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||gB,i={},o,a=[];o=e.container||document.head,(0,xe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[hB,mB];{var c,d=[lB,uB(function(m){c.insert(m)})],u=cB((0,Pa.default)(l).call(l,n,d)),p=function(m){return sn(aB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new DE({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};_B=function(e){var t=yB(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=pr(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=pr(s,t.registered),d="animation-"+c.name;return IE(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=pr(s,t.registered);IE(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Vu(t.registered,r,bB(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,xe.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,zu.default)(Pi).call(Pi,null,t.registered),merge:(0,zu.default)(Vu).call(Vu,null,t.registered,r)}},bB=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,xi.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},wB=_B({key:"css"}),IB=wB.css,EB=(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 uS.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=IB`
458
458
  display: 'flex',
459
459
  alignItems: 'flex-start',
460
460
  gap: '4px',
@@ -507,7 +507,7 @@ If multiple caches share the same key they might "fight" for each other's style
507
507
  opacity: 1;
508
508
  transform: translate(-50%, -50%) scale(1);
509
509
  `}
510
- `;return b("div",{className:`toast toast-${t}`,style:l.styles,children:e})},ji=(e,t)=>I(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield mE.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=()=>{i.body.removeChild(o),mE.release()},s=EB(e,t),l=ZE(),c=WE[l].translations;rr(b(zE,{value:n,children:b(QE,{definition:c,children:b(SB,{message:s,type:t==null?void 0:t.type,position:t==null?void 0:t.position,duration:t==null?void 0:t.duration,onClose:a})})}),o)}),IE={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},xB=`
510
+ `;return b("div",{className:`toast toast-${t}`,style:l.styles,children:e})},ji=(e,t)=>I(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield vE.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=()=>{i.body.removeChild(o),vE.release()},s=EB(e,t),l=XE(),c=KE[l].translations;rr(b(GE,{value:n,children:b(YE,{definition:c,children:b(SB,{message:s,type:t==null?void 0:t.type,position:t==null?void 0:t.position,duration:t==null?void 0:t.duration,onClose:a})})}),o)}),EE={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},xB=`
511
511
  @keyframes spin {
512
512
  0% {
513
513
  transform: rotate(0deg);
@@ -516,9 +516,9 @@ If multiple caches share the same key they might "fight" for each other's style
516
516
  transform: rotate(360deg);
517
517
  }
518
518
  }
519
- `,kB=()=>b("div",{style:IE.container,children:[b("style",{children:xB}),b("div",{style:IE.spinner})]});ZG=Id()});function gS(){return I(this,null,function*(){if(Ed)return Ed;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 ne(t);return Ed=r,r})}function yS(){return I(this,null,function*(){let e=new yt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Sd)return e.resolve(!0),e.promise;let t=yield gS();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Sd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};K("RecommendedGuide",C({eventType:me.View},o));let a=nS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Sd=!1,s.type){case"quit":K("RecommendedGuide",{eventType:me.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":K("RecommendedGuide",C({eventType:me.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;AB(c),K("GameItem",{eventType:me.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:K("RecommendedGuide",C({eventType:me.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Ed,AB,Sd,_S=T(()=>{"use strict";Z();Te();D();Or();wt();Lt();Ed=null;gS();AB=e=>{var a;let{data:t}=F("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()}`;F("openSchemaSync",{schema:o})},Sd=!1});function CB(e){let t=C(C({},TB),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:_,containerTransition:w,iframeTransition:A}=p();ee=document.createElement("div"),ee.id="jolibox-modal-overlay",ee.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:${_}; opacity:0; visibility:hidden;`,V=document.createElement("div"),V.id="jolibox-modal-container",V.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:${w};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.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 P=document.createElement("style");P.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(P);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ct=document.createElement("iframe"),ct.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,ct.src=r,ct.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),ct.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},E.appendChild(ct),E.appendChild(R),V.appendChild(E),i){let k=document.createElement("div");k.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;",k.innerHTML="\u2715",k.onclick=v,V.appendChild(k)}ee.appendChild(V),document.body.appendChild(ee),ee.addEventListener("click",function(k){k.target===ee&&v()}),o&&y()}function g(){!ee||!V||u||(ee.style.visibility="visible",a?requestAnimationFrame(()=>{ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0}):(ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function y(){if(!V)return;let _=R=>{c=R.touches[0].clientY},w=R=>{if(!u)return;d=R.touches[0].clientY;let P=d-c;P>0&&(V&&(V.style.transition="none",V.style.transform=`translateY(${P}px)`),R.preventDefault())},A=()=>{!u||!V||(V.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():V.style.transform="translateY(0)")};V.addEventListener("touchstart",_),V.addEventListener("touchmove",w),V.addEventListener("touchend",A)}function v(){!ee||!V||!u||(a?(V.style.transform="translateY(100%)",ee.style.opacity="0"):ee.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ee&&(ee.remove(),ee=null,V=null,ct=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function bS(){return window.joliboxUI=L(C({},window.joliboxUI),{createIframeModal:CB}),()=>{window.joliboxUI=void 0,ee&&ee.parentNode&&ee.parentNode.removeChild(ee),V&&V.parentNode&&V.parentNode.removeChild(V),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ee=null,V=null,ct=null}}var TB,ee,V,ct,wS=T(()=>{"use strict";Te();Z();D();TB={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ee=null,V=null,ct=null});var ES={};xp(ES,{config:()=>UB});function RB(){yo.on("isAdShowing",e=>{Ha=e,Dn(Ha)&&F("updateContainerConfigSync",{displayCapsuleButton:!Ha,webviewId:S.webviewId})})}function OB(){Ee.on("onInterceptSystemExit",({intercept:e})=>{IS=e})}function NB(){Ee.on("onInterceptBackPress",({intercept:e})=>{PB=e}),ze("onBeforeBackPress",({uuid:e})=>{var t,r;Ee.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function DB(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),K("onDocumentReady",{start_timestamp:za,timestamp:Date.now()})})}function qB(){ze("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function LB(e){S.mpType==="game"&&qt.start(e)}function FB(){ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",C({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),K("joliboxServiceReady",{start_timestamp:za,timestamp:Date.now()}),LB(t),YE(()=>S.language)}),ze("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function MB(){let e=()=>{K("onBeforeExit",{timestamp:Date.now()}),Ja==null||Ja(),$a==null||$a(),qt.close(Date.now()-za)},t=()=>Ha||IS;at.onDoExit(()=>I(this,null,function*(){return t()?!0:Dn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Va!=null&&Va.canShowRecommended&&(yield yS())?!0:(e(),!1)})),at.onDoBackPress(()=>I(this,null,function*(){return!!t()}))}function jB(){return I(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ne(e);t&&(Va=t)})}function UB(){za=Date.now(),FB(),RB(),OB(),NB(),MB(),DB(),qB(),jB(),$a=bS(),Ja=Jf()}var Ja,$a,za,Ha,Va,IS,PB,SS=T(()=>{"use strict";Te();Z();D();Lt();$f();Ol();_S();wt();Or();wS();Ha=!1,Va=null,IS=!1,PB=!1;at.onReady(()=>{})});function xS(e){let t=bl.config[e];return t||(t={},bl.config[e]=t),(r,n)=>{if(t[r]){_t.warn(`[can i use] ${r} already registered`);return}t[r]=C({},n)}}var kS=T(()=>{"use strict";D()});function xd(e){AS=e}function Ga(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ga(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ga(e[r]),t),{})}function Gt(e){return typeof e=="number"}function kd(e){let t=Ad(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Ad(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var AS,we,Wa,Ka,Qa,Ya,fn,Za,Xa,es,ts,rs,ns,is,os,as,ss,ls,cs,Td=T(()=>{"use strict";AS=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(AS)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 ${kd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ga(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ga(this._default)}optional(){return this._optional=!0,this}};Wa=class extends we{validate(t){return this._optional&&t===void 0?!0:Gt(t)?Gt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Gt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Gt(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}},Ka=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Qa=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Gt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Gt(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}},Ya=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},fn=class extends we{validate(t){return!0}},Za=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Xa=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},es=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ts=class extends we{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 ${kd(t)}`)}return!0}},rs=class extends we{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(Gt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Gt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Gt(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}},ns=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ad(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}},is=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ad(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}},os=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:kd(this.value),actual:r}):!0}},as=class extends we{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(`
519
+ `,kB=()=>b("div",{style:EE.container,children:[b("style",{children:xB}),b("div",{style:EE.spinner})]});ZG=Id()});function yS(){return I(this,null,function*(){if(Ed)return Ed;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 ne(t);return Ed=r,r})}function _S(){return I(this,null,function*(){let e=new yt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Sd)return e.resolve(!0),e.promise;let t=yield yS();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Sd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};K("RecommendedGuide",C({eventType:me.View},o));let a=iS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Sd=!1,s.type){case"quit":K("RecommendedGuide",{eventType:me.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":K("RecommendedGuide",C({eventType:me.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;AB(c),K("GameItem",{eventType:me.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:K("RecommendedGuide",C({eventType:me.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Ed,AB,Sd,bS=T(()=>{"use strict";Z();Te();D();Or();wt();Lt();Ed=null;yS();AB=e=>{var a;let{data:t}=F("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()}`;F("openSchemaSync",{schema:o})},Sd=!1});function CB(e){let t=C(C({},TB),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:_,containerTransition:w,iframeTransition:A}=p();ee=document.createElement("div"),ee.id="jolibox-modal-overlay",ee.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:${_}; opacity:0; visibility:hidden;`,V=document.createElement("div"),V.id="jolibox-modal-container",V.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:${w};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.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 P=document.createElement("style");P.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(P);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ct=document.createElement("iframe"),ct.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,ct.src=r,ct.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),ct.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},E.appendChild(ct),E.appendChild(R),V.appendChild(E),i){let k=document.createElement("div");k.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;",k.innerHTML="\u2715",k.onclick=v,V.appendChild(k)}ee.appendChild(V),document.body.appendChild(ee),ee.addEventListener("click",function(k){k.target===ee&&v()}),o&&y()}function g(){!ee||!V||u||(ee.style.visibility="visible",a?requestAnimationFrame(()=>{ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0}):(ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function y(){if(!V)return;let _=R=>{c=R.touches[0].clientY},w=R=>{if(!u)return;d=R.touches[0].clientY;let P=d-c;P>0&&(V&&(V.style.transition="none",V.style.transform=`translateY(${P}px)`),R.preventDefault())},A=()=>{!u||!V||(V.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():V.style.transform="translateY(0)")};V.addEventListener("touchstart",_),V.addEventListener("touchmove",w),V.addEventListener("touchend",A)}function v(){!ee||!V||!u||(a?(V.style.transform="translateY(100%)",ee.style.opacity="0"):ee.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ee&&(ee.remove(),ee=null,V=null,ct=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function wS(){return window.joliboxUI=L(C({},window.joliboxUI),{createIframeModal:CB}),()=>{window.joliboxUI=void 0,ee&&ee.parentNode&&ee.parentNode.removeChild(ee),V&&V.parentNode&&V.parentNode.removeChild(V),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ee=null,V=null,ct=null}}var TB,ee,V,ct,IS=T(()=>{"use strict";Te();Z();D();TB={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ee=null,V=null,ct=null});var SS={};xp(SS,{config:()=>UB});function RB(){yo.on("isAdShowing",e=>{Ha=e,Dn(Ha)&&F("updateContainerConfigSync",{displayCapsuleButton:!Ha,webviewId:S.webviewId})})}function OB(){Ee.on("onInterceptSystemExit",({intercept:e})=>{ES=e})}function NB(){Ee.on("onInterceptBackPress",({intercept:e})=>{PB=e}),ze("onBeforeBackPress",({uuid:e})=>{var t,r;Ee.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function DB(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),K("onDocumentReady",{start_timestamp:za,timestamp:Date.now()})})}function qB(){ze("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function LB(e){S.mpType==="game"&&qt.start(e)}function FB(){ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",C({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),K("joliboxServiceReady",{start_timestamp:za,timestamp:Date.now()}),LB(t),ZE(()=>S.language)}),ze("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function MB(){let e=()=>{K("onBeforeExit",{timestamp:Date.now()}),Ja==null||Ja(),$a==null||$a(),qt.close(Date.now()-za)},t=()=>Ha||ES;at.onDoExit(()=>I(this,null,function*(){return t()?!0:Dn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Va!=null&&Va.canShowRecommended&&(yield _S())?!0:(e(),!1)})),at.onDoBackPress(()=>I(this,null,function*(){return!!t()}))}function jB(){return I(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ne(e);t&&(Va=t)})}function UB(){za=Date.now(),FB(),RB(),OB(),NB(),MB(),DB(),qB(),jB(),$a=wS(),Ja=$f()}var Ja,$a,za,Ha,Va,ES,PB,xS=T(()=>{"use strict";Te();Z();D();Lt();Hf();Ol();bS();wt();Or();IS();Ha=!1,Va=null,ES=!1,PB=!1;at.onReady(()=>{})});function kS(e){let t=bl.config[e];return t||(t={},bl.config[e]=t),(r,n)=>{if(t[r]){_t.warn(`[can i use] ${r} already registered`);return}t[r]=C({},n)}}var AS=T(()=>{"use strict";D()});function xd(e){TS=e}function Ga(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ga(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ga(e[r]),t),{})}function Gt(e){return typeof e=="number"}function kd(e){let t=Ad(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Ad(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var TS,we,Wa,Ka,Qa,Ya,fn,Za,Xa,es,ts,rs,ns,is,os,as,ss,ls,cs,Td=T(()=>{"use strict";TS=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(TS)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 ${kd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ga(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ga(this._default)}optional(){return this._optional=!0,this}};Wa=class extends we{validate(t){return this._optional&&t===void 0?!0:Gt(t)?Gt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Gt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Gt(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}},Ka=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Qa=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Gt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Gt(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}},Ya=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},fn=class extends we{validate(t){return!0}},Za=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Xa=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},es=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ts=class extends we{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 ${kd(t)}`)}return!0}},rs=class extends we{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(Gt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Gt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Gt(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}},ns=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ad(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}},is=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ad(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}},os=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:kd(this.value),actual:r}):!0}},as=class extends we{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(`
520
520
  or `);this.errors.push(o)}return n}},ss=class extends we{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}},ls=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},cs=class extends we{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 Cd(e,t,r="param"){if(e.errors=[],e.path=r,xd(!0),!e.validate(t)){let n=e.errors.join(`
521
- `);throw e.errors.length=0,xd(!1),new TypeError(n)}}var x,Pd=T(()=>{"use strict";Td();Td();x={object(e){return new is(e)},array(e){return new rs(e)},tuple(...e){return new ss(...e)},literal(e){return new os(e)},or(...e){return new as(...e)},symbol(){return new Ya},record(e){return new ns(e)},function(){return new es},boolean(){return new Ka},string(){return new Qa},number(){return new Wa},undefined(){return new Za},null(){return new Xa},unknown(){return new fn},any(){return new fn},as(){return new fn},arraybuffer(){return new ls},enum(...e){return new ts(...e)},typedarray(e){return new cs(e)}}});var us,TS,CS=T(()=>{"use strict";D();ut();Pd();Mr();us=1,TS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:us};us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Cd(i.paramsSchema,o,"params")}catch(_){throw Tl(`${n}:fail ${_.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:_,data:w,message:A}=g;l=_,y=w,v=A}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ce(new Ln(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",L(C({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>I(this,null,function*(){var p,f,m,g;let a=ef(o)?o:[o],s=Date.now(),l={method:n,trace_id:us};us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Cd(i.paramsSchema,a,"params")}catch(_){throw Tl(_.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:_,data:w,message:A}=v;d=_,c=A,v=w}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,_=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let w=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,A=`${n}:${d} ${w.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ce(new Ln(A,_)),u}finally{let y=Date.now()-s;e("apiInvoked",L(C({},l),{duration:y,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Ne,Q,q,PS,ht=T(()=>{"use strict";kS();Lt();CS();Pd();Te();Z();({createAPI:Ne,createSyncAPI:Q}=TS(K)),q=xS("native"),{canIUseNative:PS}=Jp(()=>S.sdkInfo.nativeSDKVersionCode)});var RS,JB,$B,HB,VB,OS=T(()=>{"use strict";D();ht();Te();Z();RS=ve(),JB="env",$B="getSystemInfoSync",HB=Q($B,{implement:()=>{var r;let e=F("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}}}}),VB=Q(JB,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});RS.registerCommand("API.getSystemInfoSync",HB);RS.registerCommand("API.env",VB);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var NS=h(Rd=>{"use strict";D();ht();ut();Te();Lt();Z();var zB="exitGame",GB="onReady",WB="onJoliboxShow",KB="onJoliboxHide",ds=ve(),ps=fo(Ce),QB=Ne(zB,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>I(Rd,null,function*(){ps(e).call(Rd),Dn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Wp("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield he("exitAppAsync")})}),YB=Q(WB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterForeground",()=>{t.call(this),Mn.emit("visible",!0)})}}),ZB=Q(KB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterBackground",()=>{t.call(this),Mn.emit("visible",!1)})}}),XB=Q(GB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});ds.registerCommand("LifecycleSDK.exit",QB);ds.registerCommand("LifecycleSDK.onReady",XB);ds.registerCommand("LifecycleSDK.onJoliboxShow",YB);ds.registerCommand("LifecycleSDK.onJoliboxHide",ZB);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function DS(e){let t={};if(!yr(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 qS(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 LS(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function FS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!yr(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 MS=T(()=>{"use strict";D()});var e5,t5,Od,Nd,jS,r5,n5,i5,US=T(()=>{"use strict";Mr();Pl();ht();MS();D();ut();Z();e5=15,t5=vo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Od=0,Nd=[],jS=fo(Ce),r5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},n5=e=>{let t=new yt,r=()=>{};return Q("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.object().optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>I(this,null,function*(){var s,l,c;let a=jS(i.fail);try{if(Od+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=DS((s=i.headers)!=null?s:{}),y=qS(i.method),v=LS(i.timeout),_=FS(i.url,y,d),w=jS(i.success),A=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let R=t5(_,A);{let{response:P}=yield R,{code:E,data:k,message:$}=P;if(k&&typeof k=="object"&&"status"in k&&k.status!==200)throw tr({code:k.status||-1,msg:`request:fail status ${k.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:k,message:$!=null?$:"request:ok"}),w({code:"SUCCESS",message:"request:ok",data:k})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Od-=1,(c=Nd.shift())==null||c()}});return Od>=e5?(r=()=>{r5(Nd,a=>a===o)},Nd.push(o)):o(),t.promise}})(e),{abort(){t.reject(tr({code:-1,msg:"request:fail abort"})),r()}}},i5=ve();i5.registerCommand("HttpSDK.request",n5);q("request",{version:"1.0.0"})});function BS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),c5.includes(t)?t:""}function JS(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 $S(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 fs,o5,a5,s5,l5,AW,TW,c5,Ui,Dd,qd=T(()=>{"use strict";ht();Te();D();wt();Z();fs=ve(),o5=Ne("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let{response:t}=yield ne(`/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 he("getLocalStorageAsync",{key:e}),s=JS(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}}})}});fs.registerCommand("StorageSDK.getItem",o5);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});a5=Ne("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return I(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ne(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=BS(t),l=$S(t,s);return yield he("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});fs.registerCommand("StorageSDK.setItem",a5);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});s5=Ne("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let t=S.mpId,{response:r}=yield ne(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield he("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});fs.registerCommand("StorageSDK.removeItem",s5);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});l5=Ne("clearStorage",{implement(){return I(this,null,function*(){let e=S.mpId,{response:t}=yield ne(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});he("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});fs.registerCommand("StorageSDK.clear",l5);q("storage.clear",{version:"1.0.0"});AW=Ne("getStorageInfo",{implement(){return I(this,null,function*(){let{data:e}=yield he("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});TW=Q("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),c5=["string","number","boolean","object",""];Ui=Ne("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield he("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:JS(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Dd=Ne("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return I(this,null,function*(){try{let r=BS(t),n=$S(t,r);return yield he("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,d5,p5,Ld,HS=T(()=>{"use strict";D();Te();ht();u5=Q("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.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)),F("showKeyboardSync",L(C({},e),{defaultValue:r,maxLength:t}))}});q("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"}});d5=Q("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){F("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});p5=Q("hideKeyboard",{implement(){F("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});Ld=ve();Ld.registerCommand("KeyboardSDK.showKeyboard",u5);Ld.registerCommand("KeyboardSDK.updateKeyboard",d5);Ld.registerCommand("KeyboardSDK.hideKeyboard",p5)});var VS=h(hs=>{"use strict";D();ht();Lt();var Fd=ve(),f5=Ne("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>I(hs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(qt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(qt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),h5=Ne("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>I(hs,null,function*(){let{duration:t,rating:r,score:n}=e;return qt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),m5=Ne("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>I(hs,[r],function*({levelId:e,name:t}){let n=[];n.push(qt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Fd.registerCommand("TaskTrackerSDK.levelFinished",f5);Fd.registerCommand("TaskTrackerSDK.gamePlayEnded",h5);Fd.registerCommand("TaskTrackerSDK.levelUpgrade",m5);q("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Md,jd,v5,zS,Ud=T(()=>{"use strict";Z();Te();ht();D();Mr();q("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"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Md=new Map;ze("onLoginStateChange",({isLogin:e,token:t,uuid:r})=>{let n=Md.get(r);n&&(n.resolve({isLogin:e,token:t}),Md.delete(r))});jd=Ne("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return I(this,null,function*(){var l;let{data:{isLogin:t}}=yield he("checkLoginAsync");if(t)return{isLogin:!0,token:(l=S.hostUserInfo)==null?void 0:l.token};let{skipLogin:r,triggerFrom:n}=e!=null?e:{},i=F("loginSync",{skipLogin:r,triggerFrom:n}),{data:{uuid:o}}=i;if(!o)throw tr({code:-1,msg:"login failed"});let a=new yt;Md.set(o,a);let s=yield a.promise;return S.onEnvConfigChanged({hostUserInfo:s}),Ee.emit("onLoginComplete",s),s})}}),v5=Ne("checkSession",{implement(){return I(this,null,function*(){let{data:{isLogin:e}}=yield he("checkLoginAsync");return{isLogin:e}})}}),zS=ve();zS.registerCommand("API.login",jd);zS.registerCommand("API.checkSession",v5)});var mn,ms,mt,vs,Nr,gs,hn,g5,G,vn,Dr=T(()=>{"use strict";D();mn="UNLOCK_OPTIONS_CHANGED",ms="INVOKE_PAYMENT",mt="ON_PAYMENT_RESULT",vs="ON_USE_MODAL_EVENT",Nr="ON_USE_MODAL_RESULT",gs="ON_USE_MODAL_FREQUENCY",hn=new bt,g5=()=>({on:hn.on.bind(hn),off:hn.off.bind(hn),emit:hn.emit.bind(hn)}),G=g5(),vn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Wt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r)}}var Bi=T(()=>{"use strict"});var Bd,GS=T(()=>{"use strict";Bd=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});var ys,WS,KS,QS,YS,ZS=T(()=>{"use strict";qd();GS();ys=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},WS=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_use_modal_frequency");if(console.log("checkUseModalFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=Bd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),KS=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_use_modal_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Dd("joli_coin_use_modal_frequency",JSON.stringify(r))}),QS=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_payment_frequency");if(console.log("checkPaymentFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=Bd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),YS=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_payment_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Dd("joli_coin_payment_frequency",JSON.stringify(r))})});function XS(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return I(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 Ce(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var ex=T(()=>{"use strict";ut()});var _s=T(()=>{"use strict"});var y5,gn,fr,_5,qr,Jd=T(()=>{"use strict";_s();D();Z();wt();y5=()=>{let[e,t]=[lf,uf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:gn,createPaymentInternalError:fr}=y5(),_5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",qr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>I(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw gn(n,1001);return yield this.pay()});this.cancelOrder=t=>I(this,null,function*(){var n,i;let{response:r}=yield ne(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw gn((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(C({},this.generatePaymentContext()))),`${_5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var $d,rx,nx=T(()=>{"use strict";wt();Jd();_s();$d=class extends qr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>I(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return I(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ne("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw gn((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),fr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},rx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let r=e.get(t);return r||(r=new $d(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var ix,ox=T(()=>{"use strict";ix={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 Hd,ax,Vd,zd,b5,sx,lx=T(()=>{"use strict";wt();Jd();_s();Te();D();Z();Or();ox();Hd=new Map;ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Hd.get(t);if(o){if(r==="SUCCESS")ji("{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"&&tf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw fr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=ix[r];a&&ji(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Hd.delete(t)}});ax=e=>I(void 0,null,function*(){var n,i;let t=new yt,r;try{let o=yield he("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw fr("orderUUID is null",1002);Hd.set(r,t)}catch(o){throw fr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Vd=class extends qr{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=()=>I(this,null,function*(){return yield ax({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return I(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},zd=class extends qr{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=()=>I(this,null,function*(){return yield ax({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return I(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield ne("/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 fr("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"}})}},b5={android:Vd,ios:zd},sx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=b5[S.platform];if(!s)throw fr("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 gn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var bs,cx=T(()=>{"use strict";ex();nx();lx();bs=XS();bs.registerPaymentHandler("JOLI_COIN",rx());bs.registerPaymentHandler("JOLI_COIN_IAP",sx())});var px=h(Kt=>{"use strict";Dr();Or();wt();Z();Ud();D();Bi();ZS();cx();Or();ht();Te();D();Lt();var Wd=Wt(G,gs);Wd.getData();var hr=Id(),Gd=Promise.resolve(),dx=e=>I(Kt,null,function*(){Gd=Gd.then(()=>I(Kt,null,function*(){yield ne("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Gd});G.on(vs,(e,t)=>I(Kt,null,function*(){if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let n=yield Wd.getData(),{canShow:i,isFirst:o}=yield WS(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),hr.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){G.emit(Nr,{useModalResult:"CONFIRM"});return}if(!i){G.emit(Nr,{useModalResult:"CONFIRM"});return}}K("unlock_popup_show",{eventType:me.View,targetType:"game"});let r=sS({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K("coin_unlock_click",{targetType:"game",eventType:me.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),G.emit(Nr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&K("ad_unlock_click",{targetType:"game",eventType:me.Click}),G.emit(Nr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>I(Kt,null,function*(){yield dx(n)})}});yield KS()}));G.on(ms,(e,t)=>I(Kt,null,function*(){var r,n;try{if(!PS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{G.emit(mt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let a=yield Wd.getData(),{canShow:s}=yield QS(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),hr.hide(),!s){G.emit(mt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}yield hr.show({duration:3e3});let i=yield ux();if(hr.hide(),!i){G.emit(mt,{paymentResult:"FAILED"});return}K("coinorder_show",{targetType:"game",eventType:me.View});let o=lS({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return L(C({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>I(Kt,null,function*(){var c,d,u,p,f,m,g,y;if(K("order_pay_ensure",{targetType:"game",eventType:me.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 jd({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let _=yield ux();if(((p=_==null?void 0:_.balance)!=null?p:0)>=t.joliCoinQuantity){G.emit(mt,{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){G.emit(mt,{paymentResult:"FAILED"}),o.destroy();return}yield hr.show({duration:3e3});let{code:l}=yield bs.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(hr.hide(),K("order_pay_result",{eventType:me.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(y=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?y:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}G.emit(mt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{G.emit(mt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),K("ad_unlock_click",{targetType:"game",eventType:me.Click}),o.destroy()}},onEnableDeductChanged:a=>I(Kt,null,function*(){yield dx(a)})},onSelect:a=>{var s,l;K("coinorder_click",{targetType:"game",eventType:me.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield YS()}catch(i){console.info("payment failed",i),G.emit(mt,{paymentResult:"FAILED"})}}));var w5=(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=>!vl(r.totalAmountStr)),console.info("----mergeResponseData-----",e.paymentChoices)},ux=()=>I(Kt,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield ne("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield he("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&&w5((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})});function rt(e,t,r){return(t=x5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x5(e){var t=k5(e,"string");return typeof t=="symbol"?t:t+""}function k5(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 ws(e,t,r){return(t=A5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A5(e){var t=T5(e,"string");return typeof t=="symbol"?t:t+""}function T5(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 F5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function M5(e){return typeof e=="string"}function j5(e){return typeof e=="undefined"}function U5(e){return j5(e)||e===null}function B5(e){return typeof e=="function"}function jx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Ji(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ss(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 W5(e){let t=e.location?Ss(e.location,yx):null,r=e.target?Ss(e.target,yx):null;return Ss(D5(N5({},e),{location:t,target:r}),z5)}function K5(e){let t=e.events.map(n=>W5(n)),r=Ss(e.device,G5);return[e.protocolVersion,t,r,e.project]}function Q5(){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 t3(e){return new Promise(t=>$x(e)(t))}function $x(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function r3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Gi(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 i3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)o3(e[n],t[n])}function o3(e,t){if(M5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(B5(t)){try{if(e instanceof t)return}catch(r){}if(!U5(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 Qd(e,t,r){return(t=a3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a3(e){var t=s3(e,"string");return typeof t=="symbol"?t:t+""}function s3(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 Is(e,t,r){return(t=l3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l3(e){var t=c3(e,"string");return typeof t=="symbol"?t:t+""}function c3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qt(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=d3(e,"string");return typeof t=="symbol"?t:t+""}function d3(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 p3(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 f3(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 _3(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 zx(e){return e.trim()}function b3(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function up(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Wi(e,t,r){return e.slice(t,r)}function Ot(e){return e.length}function wp(e){return e.length}function Es(e,t){return t.push(e),e}function w3(e,t){return e.map(t).join("")}function Fs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ls,column:wn,length:a,return:""}}function Hi(e,t){return y3(Fs("",null,null,"",null,null,0),e,{length:-e.length},t)}function I3(){return Ie}function E3(){return Ie=Qe>0?De(In,--Qe):0,wn--,Ie===10&&(wn=1,Ls--),Ie}function it(){return Ie=Qe<Gx?De(In,Qe++):0,wn++,Ie===10&&(wn=1,Ls++),Ie}function Nt(){return De(In,Qe)}function xs(){return Qe}function Qi(e,t){return Wi(In,e,t)}function Ki(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 Ls=wn=1,Gx=Ot(In=e),Qe=0,[]}function Kx(e){return In="",e}function ks(e){return zx(Qi(Qe-1,dp(e===91?e+2:e===40?e+1:e)))}function S3(e){for(;(Ie=Nt())&&Ie<33;)it();return Ki(e)>2||Ki(Ie)>3?"":" "}function x3(e,t){for(;--t&&it()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Qi(e,xs()+(t<6&&Nt()==32&&it()==32))}function dp(e){for(;it();)switch(Ie){case e:return Qe;case 34:case 39:e!==34&&e!==39&&dp(Ie);break;case 40:e===41&&dp(e);break;case 92:it();break}return Qe}function k3(e,t){for(;it()&&e+Ie!==57&&!(e+Ie===84&&Nt()===47););return"/*"+Qi(t,Qe-1)+"*"+qs(e===47?e:it())}function A3(e){for(;!Ki(Nt());)it();return Qi(e,Qe)}function T3(e){return Kx(As("",null,null,null,[""],e=Wx(e),0,[0],e))}function As(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=it()){case 40:if(m!=108&&De(E,u-1)==58){up(E+=J(ks(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ks(_);break;case 9:case 10:case 13:case 32:E+=S3(m);break;case 92:E+=x3(xs()-1,7);continue;case 47:switch(Nt()){case 42:case 47:Es(C3(k3(it(),xs()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Ot(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=J(E,/\f/g,"")),f>0&&Ot(E)-u&&Es(f>32?wx(E+";",n,r,u-1):wx(J(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Es(P=bx(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)As(E,t,P,P,A,o,u,s,R);else switch(p===99&&De(E,3)===110?100:p){case 100:case 108:case 109:case 115:As(e,P,P,n&&Es(bx(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:As(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+Ot(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&E3()==125)continue}switch(E+=qs(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Ot(E)-1)*v,v=1;break;case 64:Nt()===45&&(E+=ks(it())),p=Nt(),d=u=Ot(w=E+=A3(xs())),_++;break;case 45:m===45&&Ot(E)==2&&(g=0)}}return o}function bx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=wp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Wi(e,u+1,u=g3(g=a[m])),w=e;v<f;++v)(w=zx(g>0?p[v]+" "+_:J(_,/&\f/g,p[v])))&&(l[y++]=w);return Fs(e,t,r,i===0?_p:s,l,c,d)}function C3(e,t,r){return Fs(e,t,r,Hx,qs(I3()),Wi(e,2,-2),0)}function wx(e,t,r,n){return Fs(e,t,r,bp,Wi(e,0,n),Wi(e,n+1,-1),n)}function bn(e,t){for(var r="",n=wp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function P3(e,t,r,n){switch(e.type){case v3:if(e.children.length)break;case m3:case bp:return e.return=e.return||e.value;case Hx:return"";case Vx:return e.return=e.value+"{"+bn(e.children,n)+"}";case _p:e.value=e.props.join(",")}return Ot(r=bn(e.children,n))?e.return=e.value+"{"+r+"}":""}function R3(e){var t=wp(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 O3(e){return function(t){t.root||(t=t.return)&&e(t)}}function N3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Qx(e,t){switch(_3(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+Ps+e+Ue+e+e;case 6828:case 4268:return B+e+Ue+e+e;case 6165:return B+e+Ue+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return B+e+Ue+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Ue+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Ue+J(e,"shrink","negative")+e;case 5292:return B+e+Ue+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Ue+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"+Ue+"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(Ot(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"+Ps+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~up(e,"stretch")?Qx(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Ot(e)-3-(~up(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"+Ue+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Ue+e+e}return e}function J3(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 Rs(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 mr={name:i.name,styles:i.styles,next:mr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)mr={name:a.name,styles:a.styles,next:mr},a=a.next;var s=o.styles+";";return s}return z3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function z3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Rs(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]+"}":Ex(s)&&(n+=Yd(o)+":"+Sx(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++)Ex(a[l])&&(n+=Yd(o)+":"+Sx(o,a[l])+";");else{var c=Rs(e,t,a);switch(o){case"animation":case"animationName":{n+=Yd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Zd(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="";mr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Rs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Rs(r,t,e[s]),n){var l=o;i+=l[s]}xx.lastIndex=0;for(var c="",d;(d=xx.exec(i))!==null;)c+="-"+d[1];var u=J3(i)+c;return{name:u,styles:i,next:mr}}function Zx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function kx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ax(e,t,r){var n=[],i=Zx(e,n,r);return n.length<2?r:i+t(n)}function Z3(e,t){Ae.__h&&Ae.__h(nt,e,Cx||t),Cx=0;var r=nt.__H||(nt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ek(e,t){var r=Z3(pp++,7);return tJ(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function X3(){for(var e;e=Xx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ts),e.__H.__h.forEach(fp),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function eJ(e){var t,r=function(){clearTimeout(n),Lx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Lx&&(t=requestAnimationFrame(r))}function Ts(e){var t=nt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),nt=t}function fp(e){var t=nt;e.__c=e.__(),nt=t}function tJ(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ms(){if(vr>1)vr--;else{for(var e,t=!1;Vi!==void 0;){var r=Vi;for(Vi=void 0,hp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&rk(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(hp=0,vr--,t)throw e}}function Ke(e){if(vr>0)return e();vr++;try{return e()}finally{Ms()}}function tk(e){if(W!==void 0){var t=e.n;if(t===void 0||t.t!==W)return t={i:0,S:e,p:W.s,n:void 0,t:W,e:void 0,x:void 0,r:t},W.s!==void 0&&(W.s.n=t),W.s=t,e.n=t,32&W.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=W.s,t.n=void 0,W.s.n=t,W.s=t),t}}function qe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Y(e){return new qe(e)}function rk(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 nk(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 ik(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 Sn(e){qe.call(this,void 0),this.x=e,this.s=void 0,this.g=Os-1,this.f=4}function zi(e){return new Sn(e)}function ok(e){var t=e.u;if(e.u=void 0,typeof t=="function"){vr++;var r=W;W=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Ip(e),n}finally{W=r,Ms()}}}function Ip(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ok(e)}function nJ(e){if(W!==this)throw new Error("Out-of-order effect");ik(this),W=e,this.f&=-2,8&this.f&&Ip(this),Ms()}function Yi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Zi(e){var t=new Yi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function xn(e,t){O[e]=t.bind(null,O[e]||function(){})}function Ns(e){ep&&ep(),ep=e&&e.S()}function lk(e){var t=this,r=e.data,n=ck(r);n.value=r;var i=ek(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=zi(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=zi(function(){return!Array.isArray(c.value)&&!Ll(c.value)}),u=Zi(function(){if(this.N=uk,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 iJ(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=Y(r);return{o:function(a,s){o.value=a,n=s},d:Zi(function(){this.N=uk;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function ck(e){return ek(function(){return Y(e)},[])}function aJ(){Ke(function(){for(var e;e=sk.shift();)ak.call(e)})}function uk(){sk.push(this)===1&&(O.requestAnimationFrame||oJ)(aJ)}function sJ(e,t){let r=ai(e);Qr(()=>{r.current=e},[e]),oi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function fe(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--lJ,__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 O.vnode&&O.vnode(c),c}function Yt(e,t,r){return(t=bJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bJ(e){var t=wJ(e,"string");return typeof t=="symbol"?t:t+""}function wJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zt(e,t,r){return(t=xJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xJ(e){var t=kJ(e,"string");return typeof t=="symbol"?t:t+""}function kJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rt(e,t,r){return(t=AJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AJ(e){var t=TJ(e,"string");return typeof t=="symbol"?t:t+""}function TJ(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 fx,I5,E5,S5,tp,rp,Fx,C5,P5,hx,R5,O5,mx,N5,D5,q5,Mx,L5,J5,$5,vx,H5,gx,V5,Ux,Bx,Jx,yx,z5,G5,np,oe,Y5,Z5,$i,Gi,X5,op,e3,Kd,n3,ap,_x,sp,lp,cp,h3,Ue,Ps,B,Hx,_p,bp,m3,Vx,v3,g3,qs,y3,Ls,wn,Gx,Qe,Ie,In,D3,q3,L3,Ix,F3,M3,j3,U3,B3,$3,H3,V3,Yx,Ex,Yd,Sx,xx,mr,G3,W3,K3,Q3,Y3,En,pp,nt,Xd,Tx,Cx,Xx,Ae,Px,Rx,Ox,Nx,Dx,qx,Lx,rJ,W,Vi,vr,hp,Os,ak,ep,sk,oJ,Be,lJ,cJ,Xt,mp,vp,Cs,uJ,dJ,pJ,fJ,hJ,mJ,vJ,gJ,yJ,_J,gp,_n,yn,IJ,EJ,SJ,yp,Ds,iK,dk=T(()=>{"use strict";Ur();Fo();fx=Object.getOwnPropertySymbols,I5=Object.prototype.hasOwnProperty,E5=Object.prototype.propertyIsEnumerable,S5=(e,t)=>{var r={};for(var n in e)I5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fx)for(var n of fx(e))t.indexOf(n)<0&&E5.call(e,n)&&(r[n]=e[n]);return r};tp=class{constructor(t){rt(this,"context",void 0),rt(this,"continueCallback",void 0),rt(this,"adIsShowingCallback",void 0),rt(this,"isBeforeAdCalled",!1),rt(this,"isBeforeRewardCalled",!1),rt(this,"isAdDismissedCalled",!1),rt(this,"isAdViewedCalled",!1),rt(this,"isAfterAdCalled",!1),rt(this,"currentProvider",void 0),rt(this,"currentClientParams",void 0),rt(this,"adsHasResponse",!1),rt(this,"videoChecker",window.document.createElement("video")),rt(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 I(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")})})}};rp=class{constructor(t){ws(this,"context",void 0),ws(this,"adBreakIsShowing",!1),ws(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ws(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()})}},Fx=Object.defineProperty,C5=Object.defineProperties,P5=Object.getOwnPropertyDescriptors,hx=Object.getOwnPropertySymbols,R5=Object.prototype.hasOwnProperty,O5=Object.prototype.propertyIsEnumerable,mx=(e,t,r)=>t in e?Fx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N5=(e,t)=>{for(var r in t||(t={}))R5.call(t,r)&&mx(e,r,t[r]);if(hx)for(var r of hx(t))O5.call(t,r)&&mx(e,r,t[r]);return e},D5=(e,t)=>C5(e,P5(t)),q5=(e,t)=>{for(var r in t)Fx(e,r,{get:t[r],enumerable:!0})},Mx=(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},L5=(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}J5=(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))(J5||{});$5={log:Ji("log"),warn:Ji("warn"),info:Ji("info"),error:Ji("error"),debug:Ji("debug")};Object.assign(globalThis,{logger:$5});vx=Symbol.for("Jolibox.canIUseMap"),H5={};globalThis[vx]||(globalThis[vx]=H5);gx=Symbol.for("Jolibox.canIUseMap.native"),V5={};globalThis[gx]||(globalThis[gx]=V5);Ux=(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))(Ux||{}),Bx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bx||{}),Jx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(Jx||{}),yx=["name","params"],z5=["name","type","location","target","extra","timestamp","userId"],G5=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];Q5();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");np=class ip{constructor(t){this.element=t,this.next=ip.Undefined,this.prev=ip.Undefined}};np.Undefined=new np(void 0);oe=np,Y5=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}},Z5=0,$i=class{constructor(e){this.value=e,this.id=Z5++}},Gi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof $i&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){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 $i(e);return this._listeners?this._listeners instanceof $i?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 $i)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 $i?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},X5=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 Gi,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 Y5,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)}},op={};q5(op,{None:()=>e3,filter:()=>r3,once:()=>$x,toPromise:()=>t3});e3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Kd=Symbol.for("Jolibox.hostEmitter"),n3=()=>{let e=new X5;return globalThis[Kd]||(globalThis[Kd]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Kd]};n3();ap=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gi,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 i3(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}};ap=Mx([jx],ap);_x=class{constructor(){this._onWillExecuteCommand=new Gi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ap,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=F5(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 L5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),op.toPromise(op.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{}}};_x=Mx([jx],_x);sp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Qd(this,"context",void 0),Qd(this,"placement","GAME"),Qd(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:Jx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:Ux.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Bx.WebSDK};return K5(i)}};lp=class{constructor(t){Is(this,"configs",null),Is(this,"firstRun",!0),Is(this,"context",void 0),Is(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return I(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}};cp=class{constructor(t,r){Qt(this,"name","ADSENSE"),Qt(this,"context",void 0),Qt(this,"contextInfo",void 0),Qt(this,"configured",!1),Qt(this,"initParams",void 0),Qt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Qt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=S5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Qt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Qt(this,"adUnit",n=>I(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let w=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:w!=null?w:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return I(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)}})}};h3=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(f3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=p3(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ue="-ms-",Ps="-moz-",B="-webkit-",Hx="comm",_p="rule",bp="decl",m3="@import",Vx="@keyframes",v3="@layer",g3=Math.abs,qs=String.fromCharCode,y3=Object.assign;Ls=1,wn=1,Gx=0,Qe=0,Ie=0,In="";D3=function(e,t,r){for(var n=0,i=0;n=i,i=Nt(),n===38&&i===12&&(t[r]=1),!Ki(i);)it();return Qi(e,Qe)},q3=function(e,t){var r=-1,n=44;do switch(Ki(n)){case 0:n===38&&Nt()===12&&(t[r]=1),e[r]+=D3(Qe-1,t,r);break;case 2:e[r]+=ks(n);break;case 4:if(n===44){e[++r]=Nt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qs(n)}while(n=it());return e},L3=function(e,t){return Kx(q3(Wx(e),t))},Ix=new WeakMap,F3=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&&!Ix.get(r))&&!n){Ix.set(e,!0);for(var i=[],o=L3(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]}}},M3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};j3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bp:e.return=Qx(e.value,e.length);break;case Vx:return bn([Hi(e,{value:J(e.value,"@","@"+B)})],n);case _p:if(e.length)return w3(e.props,function(i){switch(b3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bn([Hi(e,{props:[J(i,/:(read-\w+)/,":"+Ps+"$1")]})],n);case"::placeholder":return bn([Hi(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,":"+Ps+"$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},U3=[j3],B3=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||U3,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[F3,M3];{var c,d=[P3,O3(function(m){c.insert(m)})],u=R3(l.concat(n,d)),p=function(m){return bn(T3(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new h3({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};$3={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},H3=/[A-Z]|^ms/g,V3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yx=function(e){return e.charCodeAt(1)===45},Ex=function(e){return e!=null&&typeof e!="boolean"},Yd=N3(function(e){return Yx(e)?e:e.replace(H3,"-$&").toLowerCase()}),Sx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(V3,function(r,n,i){return mr={name:n,styles:i,next:mr},n})}return $3[e]!==1&&!Yx(e)&&typeof t=="number"&&t!==0?t+"px":t};xx=/label:\s*([^\s;{]+)\s*(;|$)/g;G3=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},W3=function(e,t,r){G3(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)}};K3=function(e){var t=B3(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=Zd(s,t.registered,void 0);return W3(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=Zd(s,t.registered),d="animation-"+c.name;return kx(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=Zd(s,t.registered);kx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Ax(t.registered,r,Q3(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Zx.bind(null,t.registered),merge:Ax.bind(null,t.registered,r)}},Q3=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},Y3=K3({key:"css"}),En=Y3.css,Cx=0,Xx=[],Ae=O,Px=Ae.__b,Rx=Ae.__r,Ox=Ae.diffed,Nx=Ae.__c,Dx=Ae.unmount,qx=Ae.__;Ae.__b=function(e){nt=null,Px&&Px(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qx&&qx(e,t)},Ae.__r=function(e){Rx&&Rx(e),pp=0;var t=(nt=e.__c).__H;t&&(Xd===nt?(t.__h=[],nt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ts),t.__h.forEach(fp),t.__h=[],pp=0)),Xd=nt},Ae.diffed=function(e){Ox&&Ox(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xx.push(t)!==1&&Tx===Ae.requestAnimationFrame||((Tx=Ae.requestAnimationFrame)||eJ)(X3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Xd=nt=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ts),r.__h=r.__h.filter(function(n){return!n.__||fp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),Nx&&Nx(e,t)},Ae.unmount=function(e){Dx&&Dx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ts(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};Lx=typeof requestAnimationFrame=="function";rJ=Symbol.for("preact-signals");W=void 0,Vi=void 0,vr=0,hp=0,Os=0;qe.prototype.brand=rJ;qe.prototype.h=function(){return!0};qe.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)};qe.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)}};qe.prototype.subscribe=function(e){var t=this;return Zi(function(){var r=t.value,n=W;W=void 0;try{e(r)}finally{W=n}})};qe.prototype.valueOf=function(){return this.value};qe.prototype.toString=function(){return this.value+""};qe.prototype.toJSON=function(){return this.value};qe.prototype.peek=function(){var e=W;W=void 0;try{return this.value}finally{W=e}};Object.defineProperty(qe.prototype,"value",{get:function(){var e=tk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(hp>100)throw new Error("Cycle detected");this.v=e,this.i++,Os++,vr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ms()}}}});(Sn.prototype=new qe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Os))return!0;if(this.g=Os,this.f|=1,this.i>0&&!rk(this))return this.f&=-2,!0;var e=W;try{nk(this),W=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 W=e,ik(this),this.f&=-2,!0};Sn.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)}qe.prototype.S.call(this,e)};Sn.prototype.U=function(e){if(this.t!==void 0&&(qe.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)}};Sn.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(Sn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=tk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Yi.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()}};Yi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ok(this),nk(this),vr++;var e=W;return W=this,nJ.bind(this,e)};Yi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Vi,Vi=this)};Yi.prototype.d=function(){this.f|=8,1&this.f||Ip(this)};sk=[];Zi(function(){ak=this.N})();lk.displayName="_st";Object.defineProperties(qe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:lk},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});xn("__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 qe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});xn("__r",function(e,t){Ns();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Zi(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ns(r),e(t)});xn("__e",function(e,t,r,n){Ns(),e(t,r,n)});xn("diffed",function(e,t){Ns();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=iJ(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});xn("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)});xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ye.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};oJ=function(e){queueMicrotask(function(){queueMicrotask(e)})};Be=En`
521
+ `);throw e.errors.length=0,xd(!1),new TypeError(n)}}var x,Pd=T(()=>{"use strict";Td();Td();x={object(e){return new is(e)},array(e){return new rs(e)},tuple(...e){return new ss(...e)},literal(e){return new os(e)},or(...e){return new as(...e)},symbol(){return new Ya},record(e){return new ns(e)},function(){return new es},boolean(){return new Ka},string(){return new Qa},number(){return new Wa},undefined(){return new Za},null(){return new Xa},unknown(){return new fn},any(){return new fn},as(){return new fn},arraybuffer(){return new ls},enum(...e){return new ts(...e)},typedarray(e){return new cs(e)}}});var us,CS,PS=T(()=>{"use strict";D();ut();Pd();Mr();us=1,CS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:us};us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Cd(i.paramsSchema,o,"params")}catch(_){throw Tl(`${n}:fail ${_.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:_,data:w,message:A}=g;l=_,y=w,v=A}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ce(new Ln(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",L(C({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>I(this,null,function*(){var p,f,m,g;let a=ef(o)?o:[o],s=Date.now(),l={method:n,trace_id:us};us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Cd(i.paramsSchema,a,"params")}catch(_){throw Tl(_.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:_,data:w,message:A}=v;d=_,c=A,v=w}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,_=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let w=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,A=`${n}:${d} ${w.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ce(new Ln(A,_)),u}finally{let y=Date.now()-s;e("apiInvoked",L(C({},l),{duration:y,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Ne,Q,q,RS,ht=T(()=>{"use strict";AS();Lt();PS();Pd();Te();Z();({createAPI:Ne,createSyncAPI:Q}=CS(K)),q=kS("native"),{canIUseNative:RS}=Jp(()=>S.sdkInfo.nativeSDKVersionCode)});var OS,JB,$B,HB,VB,NS=T(()=>{"use strict";D();ht();Te();Z();OS=ve(),JB="env",$B="getSystemInfoSync",HB=Q($B,{implement:()=>{var r;let e=F("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}}}}),VB=Q(JB,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});OS.registerCommand("API.getSystemInfoSync",HB);OS.registerCommand("API.env",VB);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var DS=h(Rd=>{"use strict";D();ht();ut();Te();Lt();Z();var zB="exitGame",GB="onReady",WB="onJoliboxShow",KB="onJoliboxHide",ds=ve(),ps=fo(Ce),QB=Ne(zB,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>I(Rd,null,function*(){ps(e).call(Rd),Dn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Wp("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield he("exitAppAsync")})}),YB=Q(WB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterForeground",()=>{t.call(this),Mn.emit("visible",!0)})}}),ZB=Q(KB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterBackground",()=>{t.call(this),Mn.emit("visible",!1)})}}),XB=Q(GB,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});ds.registerCommand("LifecycleSDK.exit",QB);ds.registerCommand("LifecycleSDK.onReady",XB);ds.registerCommand("LifecycleSDK.onJoliboxShow",YB);ds.registerCommand("LifecycleSDK.onJoliboxHide",ZB);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function qS(e){let t={};if(!yr(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 LS(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 FS(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function MS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!yr(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 jS=T(()=>{"use strict";D()});var e5,t5,Od,Nd,US,r5,n5,i5,BS=T(()=>{"use strict";Mr();Pl();ht();jS();D();ut();Z();e5=15,t5=vo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Od=0,Nd=[],US=fo(Ce),r5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},n5=e=>{let t=new yt,r=()=>{};return Q("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.object().optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>I(this,null,function*(){var s,l,c;let a=US(i.fail);try{if(Od+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=qS((s=i.headers)!=null?s:{}),y=LS(i.method),v=FS(i.timeout),_=MS(i.url,y,d),w=US(i.success),A=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let R=t5(_,A);{let{response:P}=yield R,{code:E,data:k,message:H}=P;if(k&&typeof k=="object"&&"status"in k&&k.status!==200)throw tr({code:k.status||-1,msg:`request:fail status ${k.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:k,message:H!=null?H:"request:ok"}),w({code:"SUCCESS",message:"request:ok",data:k})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Od-=1,(c=Nd.shift())==null||c()}});return Od>=e5?(r=()=>{r5(Nd,a=>a===o)},Nd.push(o)):o(),t.promise}})(e),{abort(){t.reject(tr({code:-1,msg:"request:fail abort"})),r()}}},i5=ve();i5.registerCommand("HttpSDK.request",n5);q("request",{version:"1.0.0"})});function JS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),c5.includes(t)?t:""}function $S(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 HS(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 fs,o5,a5,s5,l5,AW,TW,c5,Ui,Dd,qd=T(()=>{"use strict";ht();Te();D();wt();Z();fs=ve(),o5=Ne("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let{response:t}=yield ne(`/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 he("getLocalStorageAsync",{key:e}),s=$S(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}}})}});fs.registerCommand("StorageSDK.getItem",o5);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});a5=Ne("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return I(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ne(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=JS(t),l=HS(t,s);return yield he("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});fs.registerCommand("StorageSDK.setItem",a5);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});s5=Ne("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let t=S.mpId,{response:r}=yield ne(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield he("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});fs.registerCommand("StorageSDK.removeItem",s5);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});l5=Ne("clearStorage",{implement(){return I(this,null,function*(){let e=S.mpId,{response:t}=yield ne(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});he("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});fs.registerCommand("StorageSDK.clear",l5);q("storage.clear",{version:"1.0.0"});AW=Ne("getStorageInfo",{implement(){return I(this,null,function*(){let{data:e}=yield he("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});TW=Q("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),c5=["string","number","boolean","object",""];Ui=Ne("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield he("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:$S(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Dd=Ne("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return I(this,null,function*(){try{let r=JS(t),n=HS(t,r);return yield he("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,d5,p5,Ld,VS=T(()=>{"use strict";D();Te();ht();u5=Q("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.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)),F("showKeyboardSync",L(C({},e),{defaultValue:r,maxLength:t}))}});q("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"}});d5=Q("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){F("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});p5=Q("hideKeyboard",{implement(){F("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});Ld=ve();Ld.registerCommand("KeyboardSDK.showKeyboard",u5);Ld.registerCommand("KeyboardSDK.updateKeyboard",d5);Ld.registerCommand("KeyboardSDK.hideKeyboard",p5)});var zS=h(hs=>{"use strict";D();ht();Lt();var Fd=ve(),f5=Ne("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>I(hs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(qt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(qt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),h5=Ne("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>I(hs,null,function*(){let{duration:t,rating:r,score:n}=e;return qt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),m5=Ne("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>I(hs,[r],function*({levelId:e,name:t}){let n=[];n.push(qt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Fd.registerCommand("TaskTrackerSDK.levelFinished",f5);Fd.registerCommand("TaskTrackerSDK.gamePlayEnded",h5);Fd.registerCommand("TaskTrackerSDK.levelUpgrade",m5);q("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Md,jd,v5,GS,Ud=T(()=>{"use strict";Z();Te();ht();D();Mr();q("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"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Md=new Map;ze("onLoginStateChange",({isLogin:e,token:t,uuid:r})=>{let n=Md.get(r);n&&(n.resolve({isLogin:e,token:t}),Md.delete(r))});jd=Ne("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return I(this,null,function*(){var l;let{data:{isLogin:t}}=yield he("checkLoginAsync");if(t)return{isLogin:!0,token:(l=S.hostUserInfo)==null?void 0:l.token};let{skipLogin:r,triggerFrom:n}=e!=null?e:{},i=F("loginSync",{skipLogin:r,triggerFrom:n}),{data:{uuid:o}}=i;if(!o)throw tr({code:-1,msg:"login failed"});let a=new yt;Md.set(o,a);let s=yield a.promise;return S.onEnvConfigChanged({hostUserInfo:s}),Ee.emit("onLoginComplete",s),s})}}),v5=Ne("checkSession",{implement(){return I(this,null,function*(){let{data:{isLogin:e}}=yield he("checkLoginAsync");return{isLogin:e}})}}),GS=ve();GS.registerCommand("API.login",jd);GS.registerCommand("API.checkSession",v5)});var mn,ms,mt,vs,Nr,gs,hn,g5,G,vn,Dr=T(()=>{"use strict";D();mn="UNLOCK_OPTIONS_CHANGED",ms="INVOKE_PAYMENT",mt="ON_PAYMENT_RESULT",vs="ON_USE_MODAL_EVENT",Nr="ON_USE_MODAL_RESULT",gs="ON_USE_MODAL_FREQUENCY",hn=new bt,g5=()=>({on:hn.on.bind(hn),off:hn.off.bind(hn),emit:hn.emit.bind(hn)}),G=g5(),vn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Wt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r)}}var Bi=T(()=>{"use strict"});var Bd,WS=T(()=>{"use strict";Bd=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});var ys,KS,QS,YS,ZS,XS=T(()=>{"use strict";qd();WS();ys=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},KS=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_use_modal_frequency");if(console.log("checkUseModalFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=Bd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),QS=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_use_modal_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Dd("joli_coin_use_modal_frequency",JSON.stringify(r))}),YS=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_payment_frequency");if(console.log("checkPaymentFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=Bd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),ZS=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_payment_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Dd("joli_coin_payment_frequency",JSON.stringify(r))})});function ex(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return I(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 Ce(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var tx=T(()=>{"use strict";ut()});var _s=T(()=>{"use strict"});var y5,gn,fr,_5,qr,Jd=T(()=>{"use strict";_s();D();Z();wt();y5=()=>{let[e,t]=[lf,uf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:gn,createPaymentInternalError:fr}=y5(),_5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",qr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>I(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw gn(n,1001);return yield this.pay()});this.cancelOrder=t=>I(this,null,function*(){var n,i;let{response:r}=yield ne(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw gn((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(C({},this.generatePaymentContext()))),`${_5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var $d,nx,ix=T(()=>{"use strict";wt();Jd();_s();$d=class extends qr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>I(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return I(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ne("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw gn((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),fr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},nx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let r=e.get(t);return r||(r=new $d(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var ox,ax=T(()=>{"use strict";ox={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 Hd,sx,Vd,zd,b5,lx,cx=T(()=>{"use strict";wt();Jd();_s();Te();D();Z();Or();ax();Hd=new Map;ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Hd.get(t);if(o){if(r==="SUCCESS")ji("{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"&&tf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw fr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=ox[r];a&&ji(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Hd.delete(t)}});sx=e=>I(void 0,null,function*(){var n,i;let t=new yt,r;try{let o=yield he("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw fr("orderUUID is null",1002);Hd.set(r,t)}catch(o){throw fr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Vd=class extends qr{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=()=>I(this,null,function*(){return yield sx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return I(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},zd=class extends qr{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=()=>I(this,null,function*(){return yield sx({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return I(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield ne("/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 fr("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"}})}},b5={android:Vd,ios:zd},lx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=b5[S.platform];if(!s)throw fr("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 gn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var bs,ux=T(()=>{"use strict";tx();ix();cx();bs=ex();bs.registerPaymentHandler("JOLI_COIN",nx());bs.registerPaymentHandler("JOLI_COIN_IAP",lx())});var fx=h(Kt=>{"use strict";Dr();Or();wt();Z();Ud();D();Bi();XS();ux();Or();ht();Te();D();Lt();var Wd=Wt(G,gs);Wd.getData();var hr=Id(),Gd=Promise.resolve(),px=e=>I(Kt,null,function*(){Gd=Gd.then(()=>I(Kt,null,function*(){yield ne("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Gd});G.on(vs,(e,t)=>I(Kt,null,function*(){if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let n=yield Wd.getData(),{canShow:i,isFirst:o}=yield KS(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),hr.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){G.emit(Nr,{useModalResult:"CONFIRM"});return}if(!i){G.emit(Nr,{useModalResult:"CONFIRM"});return}}K("unlock_popup_show",{eventType:me.View,targetType:"game"});let r=lS({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K("coin_unlock_click",{targetType:"game",eventType:me.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),G.emit(Nr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&K("ad_unlock_click",{targetType:"game",eventType:me.Click}),G.emit(Nr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>I(Kt,null,function*(){yield px(n)})}});yield QS()}));G.on(ms,(e,t)=>I(Kt,null,function*(){var r,n;try{if(!RS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{G.emit(mt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let a=yield Wd.getData(),{canShow:s}=yield YS(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),hr.hide(),!s){G.emit(mt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}yield hr.show({duration:3e3});let i=yield dx();if(hr.hide(),!i){G.emit(mt,{paymentResult:"FAILED"});return}K("coinorder_show",{targetType:"game",eventType:me.View});let o=cS({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return L(C({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>I(Kt,null,function*(){var c,d,u,p,f,m,g,y;if(K("order_pay_ensure",{targetType:"game",eventType:me.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 jd({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let _=yield dx();if(((p=_==null?void 0:_.balance)!=null?p:0)>=t.joliCoinQuantity){G.emit(mt,{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){G.emit(mt,{paymentResult:"FAILED"}),o.destroy();return}yield hr.show({duration:3e3});let{code:l}=yield bs.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(hr.hide(),K("order_pay_result",{eventType:me.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(y=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?y:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}G.emit(mt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{G.emit(mt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),K("ad_unlock_click",{targetType:"game",eventType:me.Click}),o.destroy()}},onEnableDeductChanged:a=>I(Kt,null,function*(){yield px(a)})},onSelect:a=>{var s,l;K("coinorder_click",{targetType:"game",eventType:me.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield ZS()}catch(i){console.info("payment failed",i),G.emit(mt,{paymentResult:"FAILED"})}}));var w5=(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=>!vl(r.totalAmountStr)),console.info("----mergeResponseData-----",e.paymentChoices)},dx=()=>I(Kt,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield ne("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield he("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&&w5((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})});function rt(e,t,r){return(t=x5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x5(e){var t=k5(e,"string");return typeof t=="symbol"?t:t+""}function k5(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 ws(e,t,r){return(t=A5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A5(e){var t=T5(e,"string");return typeof t=="symbol"?t:t+""}function T5(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 F5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function M5(e){return typeof e=="string"}function j5(e){return typeof e=="undefined"}function U5(e){return j5(e)||e===null}function B5(e){return typeof e=="function"}function Ux(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 Ji(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ss(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 W5(e){let t=e.location?Ss(e.location,_x):null,r=e.target?Ss(e.target,_x):null;return Ss(D5(N5({},e),{location:t,target:r}),z5)}function K5(e){let t=e.events.map(n=>W5(n)),r=Ss(e.device,G5);return[e.protocolVersion,t,r,e.project]}function Q5(){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 t3(e){return new Promise(t=>Hx(e)(t))}function Hx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function r3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Gi(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 i3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)o3(e[n],t[n])}function o3(e,t){if(M5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(B5(t)){try{if(e instanceof t)return}catch(r){}if(!U5(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 Qd(e,t,r){return(t=a3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a3(e){var t=s3(e,"string");return typeof t=="symbol"?t:t+""}function s3(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 Is(e,t,r){return(t=l3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l3(e){var t=c3(e,"string");return typeof t=="symbol"?t:t+""}function c3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qt(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=d3(e,"string");return typeof t=="symbol"?t:t+""}function d3(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 p3(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 f3(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 _3(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 Gx(e){return e.trim()}function b3(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function up(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Wi(e,t,r){return e.slice(t,r)}function Ot(e){return e.length}function wp(e){return e.length}function Es(e,t){return t.push(e),e}function w3(e,t){return e.map(t).join("")}function Fs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ls,column:wn,length:a,return:""}}function Hi(e,t){return y3(Fs("",null,null,"",null,null,0),e,{length:-e.length},t)}function I3(){return Ie}function E3(){return Ie=Qe>0?De(In,--Qe):0,wn--,Ie===10&&(wn=1,Ls--),Ie}function it(){return Ie=Qe<Wx?De(In,Qe++):0,wn++,Ie===10&&(wn=1,Ls++),Ie}function Nt(){return De(In,Qe)}function xs(){return Qe}function Qi(e,t){return Wi(In,e,t)}function Ki(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Kx(e){return Ls=wn=1,Wx=Ot(In=e),Qe=0,[]}function Qx(e){return In="",e}function ks(e){return Gx(Qi(Qe-1,dp(e===91?e+2:e===40?e+1:e)))}function S3(e){for(;(Ie=Nt())&&Ie<33;)it();return Ki(e)>2||Ki(Ie)>3?"":" "}function x3(e,t){for(;--t&&it()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Qi(e,xs()+(t<6&&Nt()==32&&it()==32))}function dp(e){for(;it();)switch(Ie){case e:return Qe;case 34:case 39:e!==34&&e!==39&&dp(Ie);break;case 40:e===41&&dp(e);break;case 92:it();break}return Qe}function k3(e,t){for(;it()&&e+Ie!==57&&!(e+Ie===84&&Nt()===47););return"/*"+Qi(t,Qe-1)+"*"+qs(e===47?e:it())}function A3(e){for(;!Ki(Nt());)it();return Qi(e,Qe)}function T3(e){return Qx(As("",null,null,null,[""],e=Kx(e),0,[0],e))}function As(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=it()){case 40:if(m!=108&&De(E,u-1)==58){up(E+=J(ks(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ks(_);break;case 9:case 10:case 13:case 32:E+=S3(m);break;case 92:E+=x3(xs()-1,7);continue;case 47:switch(Nt()){case 42:case 47:Es(C3(k3(it(),xs()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Ot(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=J(E,/\f/g,"")),f>0&&Ot(E)-u&&Es(f>32?Ix(E+";",n,r,u-1):Ix(J(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Es(P=wx(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)As(E,t,P,P,A,o,u,s,R);else switch(p===99&&De(E,3)===110?100:p){case 100:case 108:case 109:case 115:As(e,P,P,n&&Es(wx(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:As(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+Ot(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&E3()==125)continue}switch(E+=qs(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Ot(E)-1)*v,v=1;break;case 64:Nt()===45&&(E+=ks(it())),p=Nt(),d=u=Ot(w=E+=A3(xs())),_++;break;case 45:m===45&&Ot(E)==2&&(g=0)}}return o}function wx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=wp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Wi(e,u+1,u=g3(g=a[m])),w=e;v<f;++v)(w=Gx(g>0?p[v]+" "+_:J(_,/&\f/g,p[v])))&&(l[y++]=w);return Fs(e,t,r,i===0?_p:s,l,c,d)}function C3(e,t,r){return Fs(e,t,r,Vx,qs(I3()),Wi(e,2,-2),0)}function Ix(e,t,r,n){return Fs(e,t,r,bp,Wi(e,0,n),Wi(e,n+1,-1),n)}function bn(e,t){for(var r="",n=wp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function P3(e,t,r,n){switch(e.type){case v3:if(e.children.length)break;case m3:case bp:return e.return=e.return||e.value;case Vx:return"";case zx:return e.return=e.value+"{"+bn(e.children,n)+"}";case _p:e.value=e.props.join(",")}return Ot(r=bn(e.children,n))?e.return=e.value+"{"+r+"}":""}function R3(e){var t=wp(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 O3(e){return function(t){t.root||(t=t.return)&&e(t)}}function N3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Yx(e,t){switch(_3(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+Ps+e+Ue+e+e;case 6828:case 4268:return B+e+Ue+e+e;case 6165:return B+e+Ue+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return B+e+Ue+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Ue+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Ue+J(e,"shrink","negative")+e;case 5292:return B+e+Ue+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Ue+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"+Ue+"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(Ot(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"+Ps+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~up(e,"stretch")?Yx(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Ot(e)-3-(~up(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"+Ue+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Ue+e+e}return e}function J3(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 Rs(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 mr={name:i.name,styles:i.styles,next:mr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)mr={name:a.name,styles:a.styles,next:mr},a=a.next;var s=o.styles+";";return s}return z3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function z3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Rs(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Sx(s)&&(n+=Yd(o)+":"+xx(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++)Sx(a[l])&&(n+=Yd(o)+":"+xx(o,a[l])+";");else{var c=Rs(e,t,a);switch(o){case"animation":case"animationName":{n+=Yd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Zd(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="";mr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Rs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Rs(r,t,e[s]),n){var l=o;i+=l[s]}kx.lastIndex=0;for(var c="",d;(d=kx.exec(i))!==null;)c+="-"+d[1];var u=J3(i)+c;return{name:u,styles:i,next:mr}}function Xx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Ax(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Tx(e,t,r){var n=[],i=Xx(e,n,r);return n.length<2?r:i+t(n)}function Z3(e,t){Ae.__h&&Ae.__h(nt,e,Px||t),Px=0;var r=nt.__H||(nt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tk(e,t){var r=Z3(pp++,7);return tJ(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function X3(){for(var e;e=ek.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ts),e.__H.__h.forEach(fp),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function eJ(e){var t,r=function(){clearTimeout(n),Fx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Fx&&(t=requestAnimationFrame(r))}function Ts(e){var t=nt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),nt=t}function fp(e){var t=nt;e.__c=e.__(),nt=t}function tJ(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ms(){if(vr>1)vr--;else{for(var e,t=!1;Vi!==void 0;){var r=Vi;for(Vi=void 0,hp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&nk(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(hp=0,vr--,t)throw e}}function Ke(e){if(vr>0)return e();vr++;try{return e()}finally{Ms()}}function rk(e){if(W!==void 0){var t=e.n;if(t===void 0||t.t!==W)return t={i:0,S:e,p:W.s,n:void 0,t:W,e:void 0,x:void 0,r:t},W.s!==void 0&&(W.s.n=t),W.s=t,e.n=t,32&W.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=W.s,t.n=void 0,W.s.n=t,W.s=t),t}}function qe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Y(e){return new qe(e)}function nk(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 ik(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 ok(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 Sn(e){qe.call(this,void 0),this.x=e,this.s=void 0,this.g=Os-1,this.f=4}function zi(e){return new Sn(e)}function ak(e){var t=e.u;if(e.u=void 0,typeof t=="function"){vr++;var r=W;W=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Ip(e),n}finally{W=r,Ms()}}}function Ip(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ak(e)}function nJ(e){if(W!==this)throw new Error("Out-of-order effect");ok(this),W=e,this.f&=-2,8&this.f&&Ip(this),Ms()}function Yi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Zi(e){var t=new Yi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function xn(e,t){O[e]=t.bind(null,O[e]||function(){})}function Ns(e){ep&&ep(),ep=e&&e.S()}function ck(e){var t=this,r=e.data,n=uk(r);n.value=r;var i=tk(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=zi(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=zi(function(){return!Array.isArray(c.value)&&!Ll(c.value)}),u=Zi(function(){if(this.N=dk,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 iJ(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=Y(r);return{o:function(a,s){o.value=a,n=s},d:Zi(function(){this.N=dk;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function uk(e){return tk(function(){return Y(e)},[])}function aJ(){Ke(function(){for(var e;e=lk.shift();)sk.call(e)})}function dk(){lk.push(this)===1&&(O.requestAnimationFrame||oJ)(aJ)}function sJ(e,t){let r=ai(e);Qr(()=>{r.current=e},[e]),oi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function fe(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--lJ,__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 O.vnode&&O.vnode(c),c}function Yt(e,t,r){return(t=bJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bJ(e){var t=wJ(e,"string");return typeof t=="symbol"?t:t+""}function wJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zt(e,t,r){return(t=xJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xJ(e){var t=kJ(e,"string");return typeof t=="symbol"?t:t+""}function kJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rt(e,t,r){return(t=AJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AJ(e){var t=TJ(e,"string");return typeof t=="symbol"?t:t+""}function TJ(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 hx,I5,E5,S5,tp,rp,Mx,C5,P5,mx,R5,O5,vx,N5,D5,q5,jx,L5,J5,$5,gx,H5,yx,V5,Bx,Jx,$x,_x,z5,G5,np,oe,Y5,Z5,$i,Gi,X5,op,e3,Kd,n3,ap,bx,sp,lp,cp,h3,Ue,Ps,B,Vx,_p,bp,m3,zx,v3,g3,qs,y3,Ls,wn,Wx,Qe,Ie,In,D3,q3,L3,Ex,F3,M3,j3,U3,B3,$3,H3,V3,Zx,Sx,Yd,xx,kx,mr,G3,W3,K3,Q3,Y3,En,pp,nt,Xd,Cx,Px,ek,Ae,Rx,Ox,Nx,Dx,qx,Lx,Fx,rJ,W,Vi,vr,hp,Os,sk,ep,lk,oJ,Be,lJ,cJ,Xt,mp,vp,Cs,uJ,dJ,pJ,fJ,hJ,mJ,vJ,gJ,yJ,_J,gp,_n,yn,IJ,EJ,SJ,yp,Ds,iK,pk=T(()=>{"use strict";Ur();Fo();hx=Object.getOwnPropertySymbols,I5=Object.prototype.hasOwnProperty,E5=Object.prototype.propertyIsEnumerable,S5=(e,t)=>{var r={};for(var n in e)I5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hx)for(var n of hx(e))t.indexOf(n)<0&&E5.call(e,n)&&(r[n]=e[n]);return r};tp=class{constructor(t){rt(this,"context",void 0),rt(this,"continueCallback",void 0),rt(this,"adIsShowingCallback",void 0),rt(this,"isBeforeAdCalled",!1),rt(this,"isBeforeRewardCalled",!1),rt(this,"isAdDismissedCalled",!1),rt(this,"isAdViewedCalled",!1),rt(this,"isAfterAdCalled",!1),rt(this,"currentProvider",void 0),rt(this,"currentClientParams",void 0),rt(this,"adsHasResponse",!1),rt(this,"videoChecker",window.document.createElement("video")),rt(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 I(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")})})}};rp=class{constructor(t){ws(this,"context",void 0),ws(this,"adBreakIsShowing",!1),ws(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ws(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()})}},Mx=Object.defineProperty,C5=Object.defineProperties,P5=Object.getOwnPropertyDescriptors,mx=Object.getOwnPropertySymbols,R5=Object.prototype.hasOwnProperty,O5=Object.prototype.propertyIsEnumerable,vx=(e,t,r)=>t in e?Mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N5=(e,t)=>{for(var r in t||(t={}))R5.call(t,r)&&vx(e,r,t[r]);if(mx)for(var r of mx(t))O5.call(t,r)&&vx(e,r,t[r]);return e},D5=(e,t)=>C5(e,P5(t)),q5=(e,t)=>{for(var r in t)Mx(e,r,{get:t[r],enumerable:!0})},jx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},L5=(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}J5=(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))(J5||{});$5={log:Ji("log"),warn:Ji("warn"),info:Ji("info"),error:Ji("error"),debug:Ji("debug")};Object.assign(globalThis,{logger:$5});gx=Symbol.for("Jolibox.canIUseMap"),H5={};globalThis[gx]||(globalThis[gx]=H5);yx=Symbol.for("Jolibox.canIUseMap.native"),V5={};globalThis[yx]||(globalThis[yx]=V5);Bx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Bx||{}),Jx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Jx||{}),$x=(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))($x||{}),_x=["name","params"],z5=["name","type","location","target","extra","timestamp","userId"],G5=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];Q5();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");np=class ip{constructor(t){this.element=t,this.next=ip.Undefined,this.prev=ip.Undefined}};np.Undefined=new np(void 0);oe=np,Y5=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}},Z5=0,$i=class{constructor(e){this.value=e,this.id=Z5++}},Gi=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof $i&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){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 $i(e);return this._listeners?this._listeners instanceof $i?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 $i)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 $i?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},X5=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 Gi,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 Y5,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)}},op={};q5(op,{None:()=>e3,filter:()=>r3,once:()=>Hx,toPromise:()=>t3});e3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Kd=Symbol.for("Jolibox.hostEmitter"),n3=()=>{let e=new X5;return globalThis[Kd]||(globalThis[Kd]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Kd]};n3();ap=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gi,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 i3(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}};ap=jx([Ux],ap);bx=class{constructor(){this._onWillExecuteCommand=new Gi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ap,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=F5(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 L5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),op.toPromise(op.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{}}};bx=jx([Ux],bx);sp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Qd(this,"context",void 0),Qd(this,"placement","GAME"),Qd(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:$x.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:Bx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Jx.WebSDK};return K5(i)}};lp=class{constructor(t){Is(this,"configs",null),Is(this,"firstRun",!0),Is(this,"context",void 0),Is(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return I(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}};cp=class{constructor(t,r){Qt(this,"name","ADSENSE"),Qt(this,"context",void 0),Qt(this,"contextInfo",void 0),Qt(this,"configured",!1),Qt(this,"initParams",void 0),Qt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Qt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=S5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Qt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Qt(this,"adUnit",n=>I(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let w=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:w!=null?w:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return I(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)}})}};h3=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(f3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=p3(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ue="-ms-",Ps="-moz-",B="-webkit-",Vx="comm",_p="rule",bp="decl",m3="@import",zx="@keyframes",v3="@layer",g3=Math.abs,qs=String.fromCharCode,y3=Object.assign;Ls=1,wn=1,Wx=0,Qe=0,Ie=0,In="";D3=function(e,t,r){for(var n=0,i=0;n=i,i=Nt(),n===38&&i===12&&(t[r]=1),!Ki(i);)it();return Qi(e,Qe)},q3=function(e,t){var r=-1,n=44;do switch(Ki(n)){case 0:n===38&&Nt()===12&&(t[r]=1),e[r]+=D3(Qe-1,t,r);break;case 2:e[r]+=ks(n);break;case 4:if(n===44){e[++r]=Nt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qs(n)}while(n=it());return e},L3=function(e,t){return Qx(q3(Kx(e),t))},Ex=new WeakMap,F3=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&&!Ex.get(r))&&!n){Ex.set(e,!0);for(var i=[],o=L3(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]}}},M3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};j3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bp:e.return=Yx(e.value,e.length);break;case zx:return bn([Hi(e,{value:J(e.value,"@","@"+B)})],n);case _p:if(e.length)return w3(e.props,function(i){switch(b3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bn([Hi(e,{props:[J(i,/:(read-\w+)/,":"+Ps+"$1")]})],n);case"::placeholder":return bn([Hi(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,":"+Ps+"$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},U3=[j3],B3=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||U3,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[F3,M3];{var c,d=[P3,O3(function(m){c.insert(m)})],u=R3(l.concat(n,d)),p=function(m){return bn(T3(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new h3({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};$3={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},H3=/[A-Z]|^ms/g,V3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zx=function(e){return e.charCodeAt(1)===45},Sx=function(e){return e!=null&&typeof e!="boolean"},Yd=N3(function(e){return Zx(e)?e:e.replace(H3,"-$&").toLowerCase()}),xx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(V3,function(r,n,i){return mr={name:n,styles:i,next:mr},n})}return $3[e]!==1&&!Zx(e)&&typeof t=="number"&&t!==0?t+"px":t};kx=/label:\s*([^\s;{]+)\s*(;|$)/g;G3=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},W3=function(e,t,r){G3(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)}};K3=function(e){var t=B3(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=Zd(s,t.registered,void 0);return W3(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=Zd(s,t.registered),d="animation-"+c.name;return Ax(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Zd(s,t.registered);Ax(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Tx(t.registered,r,Q3(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:Xx.bind(null,t.registered),merge:Tx.bind(null,t.registered,r)}},Q3=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},Y3=K3({key:"css"}),En=Y3.css,Px=0,ek=[],Ae=O,Rx=Ae.__b,Ox=Ae.__r,Nx=Ae.diffed,Dx=Ae.__c,qx=Ae.unmount,Lx=Ae.__;Ae.__b=function(e){nt=null,Rx&&Rx(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Lx&&Lx(e,t)},Ae.__r=function(e){Ox&&Ox(e),pp=0;var t=(nt=e.__c).__H;t&&(Xd===nt?(t.__h=[],nt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ts),t.__h.forEach(fp),t.__h=[],pp=0)),Xd=nt},Ae.diffed=function(e){Nx&&Nx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ek.push(t)!==1&&Cx===Ae.requestAnimationFrame||((Cx=Ae.requestAnimationFrame)||eJ)(X3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Xd=nt=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ts),r.__h=r.__h.filter(function(n){return!n.__||fp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),Dx&&Dx(e,t)},Ae.unmount=function(e){qx&&qx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ts(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};Fx=typeof requestAnimationFrame=="function";rJ=Symbol.for("preact-signals");W=void 0,Vi=void 0,vr=0,hp=0,Os=0;qe.prototype.brand=rJ;qe.prototype.h=function(){return!0};qe.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)};qe.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)}};qe.prototype.subscribe=function(e){var t=this;return Zi(function(){var r=t.value,n=W;W=void 0;try{e(r)}finally{W=n}})};qe.prototype.valueOf=function(){return this.value};qe.prototype.toString=function(){return this.value+""};qe.prototype.toJSON=function(){return this.value};qe.prototype.peek=function(){var e=W;W=void 0;try{return this.value}finally{W=e}};Object.defineProperty(qe.prototype,"value",{get:function(){var e=rk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(hp>100)throw new Error("Cycle detected");this.v=e,this.i++,Os++,vr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ms()}}}});(Sn.prototype=new qe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Os))return!0;if(this.g=Os,this.f|=1,this.i>0&&!nk(this))return this.f&=-2,!0;var e=W;try{ik(this),W=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 W=e,ok(this),this.f&=-2,!0};Sn.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)}qe.prototype.S.call(this,e)};Sn.prototype.U=function(e){if(this.t!==void 0&&(qe.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)}};Sn.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(Sn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Yi.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()}};Yi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ak(this),ik(this),vr++;var e=W;return W=this,nJ.bind(this,e)};Yi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Vi,Vi=this)};Yi.prototype.d=function(){this.f|=8,1&this.f||Ip(this)};lk=[];Zi(function(){sk=this.N})();ck.displayName="_st";Object.defineProperties(qe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ck},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});xn("__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 qe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});xn("__r",function(e,t){Ns();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Zi(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ns(r),e(t)});xn("__e",function(e,t,r,n){Ns(),e(t,r,n)});xn("diffed",function(e,t){Ns();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=iJ(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});xn("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)});xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ye.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};oJ=function(e){queueMicrotask(function(){queueMicrotask(e)})};Be=En`
522
522
  inset: 0;
523
523
  clear: none;
524
524
  float: none;
@@ -644,7 +644,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
644
644
  cursor: not-allowed;
645
645
  }
646
646
  }
647
- `,mJ=()=>{let e=Y(!1),t=Y(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},vJ=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=ck(t);sJ(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=zi(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=zi(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=zi(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>I(void 0,null,function*(){if(a.value=!0,!(yield pJ({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return fe("div",{className:hJ,children:[s.value>0&&r!=="interstitial"&&fe("div",{className:"timer",children:[s.value,"s"]}),fe("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:fe("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:fe("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},gJ=()=>{let e=Y(),t=Y(),r=Y(),n=Y(),i=Y(),o=Y(!1),a=Y(15),s=Y(""),l=Y("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},yJ=En`
647
+ `,mJ=()=>{let e=Y(!1),t=Y(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},vJ=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=uk(t);sJ(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=zi(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=zi(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=zi(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>I(void 0,null,function*(){if(a.value=!0,!(yield pJ({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return fe("div",{className:hJ,children:[s.value>0&&r!=="interstitial"&&fe("div",{className:"timer",children:[s.value,"s"]}),fe("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:fe("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:fe("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},gJ=()=>{let e=Y(),t=Y(),r=Y(),n=Y(),i=Y(),o=Y(!1),a=Y(15),s=Y(""),l=Y("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},yJ=En`
648
648
  ${Be}
649
649
  position: fixed;
650
650
  z-index: 2147483647;
@@ -731,4 +731,4 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
731
731
  cursor: pointer;
732
732
  }
733
733
  }
734
- `});function fk(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return I(this,null,function*(){return yield i.reduce((s,l)=>I(this,null,function*(){let c=yield s;if(c===!0)return!0;pk&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return pk&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return I(this,null,function*(){t=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return I(this,null,function*(){r=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:vn}}})})},getRewardsTypes(...i){return I(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return I(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:vn}})}}}var pk,hk=T(()=>{"use strict";Z();Dr();pk=S.testMode});var CJ,PJ,mk,vk,gk=T(()=>{"use strict";Dr();CJ=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,PJ=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(CJ()):["ADS"],mk=e=>{e.registerRewardsFetcher(t=>I(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;G.emit(mn,{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 PJ(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},vk=e=>{e.registerRewardFrequencyConfigFetcher(t=>I(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return G.emit(gs,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||vn}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||vn}}))}});var yk,_k=T(()=>{"use strict";yk=e=>t=>I(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var bk,wk=T(()=>{"use strict";bk=(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 js,Us,Bs,Js=T(()=>{"use strict";Z();D();Dr();wk();Bi();js=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(G,mt);return G.emit(ms,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Us=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(G,Nr);return G.emit(vs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),Bs=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>I(void 0,null,function*(){var s,l,c,d,u,p,f;try{let m=!1,g=yield n.getData(),y=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(w=>w.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!bk((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){if((yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m&&(yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="CONFIRM")return r==null||r(a),!1;let _=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${ho()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return _.code=="SUCCESS"?((p=a.adBreakDone)==null||p.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((f=a.adViewed)==null||f.call(a)),t==null||t({quantity:_.data.quantity,balance:_.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var Ik,Ek=T(()=>{"use strict";Dr();Bi();Js();Js();Ik=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(G,mn),i=()=>{r==null||r()},o=Us("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=js("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Sk,xk=T(()=>{"use strict";Dr();Js();Bi();Sk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(G,mn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Us("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=js("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var er,kk=T(()=>{"use strict";hk();gk();_k();Ek();xk();er=fk();mk(er);vk(er)});var nQ,$s,RJ,Xi,OJ,eo,Ak,NJ,DJ,qJ,LJ,Tk=T(()=>{"use strict";D();ht();Or();nQ=le(px());dk();Lt();Z();wt();Te();kk();Ol();$s=ve(),RJ=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Xi={get:(e,t)=>ne(e,C({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ne(e,C({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},OJ={httpClient:Xi,checkNetwork:RJ,track:K,eventEmitter:yo,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:""}}},eo=new Ds(OJ);er.getRewardFrequencyConfig(Xi).then(e=>{console.log("getRewardFrequencyConfig",e)});er.registerRewardHandler("ADS",yk(eo));er.registerRewardHandler("JOLI_COIN",Ik(Xi,{onUnlockSuccess:e=>{Ak(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));er.registerRewardHandler("JOLI_COIN_ONLY",Sk(Xi,{onUnlockSuccess:e=>{Ak(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ak=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;ji(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},NJ=Q("adInit",{implement:e=>{eo.init(e)}}),DJ=Q("adConfig",{implement:e=>{eo.adConfig(e)}}),qJ=Q("adBreak",{implement:e=>{e.type==="reward"?er.getRewardsTypes(Xi).then(t=>{er.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"})})}):eo.adBreak(e)}}),LJ=Q("adUnit",{implement:e=>{eo.adUnit(e)}});$s.registerCommand("AdsSDK.init",NJ);$s.registerCommand("AdsSDK.adConfig",DJ);$s.registerCommand("AdsSDK.adBreak",qJ);$s.registerCommand("AdsSDK.adUnit",LJ);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var to,FJ,MJ,jJ,UJ,BJ,Ck=T(()=>{"use strict";D();Te();ht();Z();to=ve(),FJ=Q("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Fr(r.errMsg,r.errNo)}}),MJ=Q("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Fr(r,t);return{webviewId:n.webviewId}}}),jJ=Q("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Fr(r,t)}}),UJ=Q("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),BJ=Q("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=F("callHostMethodAsync",{method:e,params:C({},t)});if(r!==0)throw new Fr(n,r)}});to.registerCommand("RouterSDK.openSchema",FJ);to.registerCommand("RouterSDK.openPage",MJ);to.registerCommand("RouterSDK.closePage",jJ);to.registerCommand("RouterSDK.interceptSystemExit",UJ);to.registerCommand("RouterSDK.navigateToNativePage",BJ);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});var JJ={};var yQ,IQ,Pk=T(()=>{"use strict";OS();yQ=le(NS());US();qd();HS();IQ=le(VS());Ud();Tk();Ck()});var Rk=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Rk])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Rk]=!0;I(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(SS(),ES)),Promise.resolve().then(()=>(Pk(),JJ)),Promise.resolve().then(()=>(Lt(),Bf))]);e()});
734
+ `});function hk(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return I(this,null,function*(){return yield i.reduce((s,l)=>I(this,null,function*(){let c=yield s;if(c===!0)return!0;fk&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return fk&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return I(this,null,function*(){t=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return I(this,null,function*(){r=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:vn}}})})},getRewardsTypes(...i){return I(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return I(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:vn}})}}}var fk,mk=T(()=>{"use strict";Z();Dr();fk=S.testMode});var CJ,PJ,vk,gk,yk=T(()=>{"use strict";Dr();CJ=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,PJ=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(CJ()):["ADS"],vk=e=>{e.registerRewardsFetcher(t=>I(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;G.emit(mn,{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 PJ(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},gk=e=>{e.registerRewardFrequencyConfigFetcher(t=>I(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return G.emit(gs,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||vn}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||vn}}))}});var _k,bk=T(()=>{"use strict";_k=e=>t=>I(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var wk,Ik=T(()=>{"use strict";wk=(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 js,Us,Bs,Js=T(()=>{"use strict";Z();D();Dr();Ik();Bi();js=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(G,mt);return G.emit(ms,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Us=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(G,Nr);return G.emit(vs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),Bs=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>I(void 0,null,function*(){var s,l,c,d,u,p,f;try{let m=!1,g=yield n.getData(),y=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(w=>w.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!wk((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){if((yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m&&(yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="CONFIRM")return r==null||r(a),!1;let _=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${ho()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return _.code=="SUCCESS"?((p=a.adBreakDone)==null||p.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((f=a.adViewed)==null||f.call(a)),t==null||t({quantity:_.data.quantity,balance:_.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var Ek,Sk=T(()=>{"use strict";Dr();Bi();Js();Js();Ek=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(G,mn),i=()=>{r==null||r()},o=Us("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=js("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var xk,kk=T(()=>{"use strict";Dr();Js();Bi();xk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(G,mn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Us("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=js("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var er,Ak=T(()=>{"use strict";mk();yk();bk();Sk();kk();er=hk();vk(er);gk(er)});var nQ,$s,RJ,Xi,OJ,eo,Tk,NJ,DJ,qJ,LJ,Ck=T(()=>{"use strict";D();ht();Or();nQ=le(fx());pk();Lt();Z();wt();Te();Ak();Ol();$s=ve(),RJ=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Xi={get:(e,t)=>ne(e,C({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ne(e,C({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},OJ={httpClient:Xi,checkNetwork:RJ,track:K,eventEmitter:yo,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:""}}},eo=new Ds(OJ);er.getRewardFrequencyConfig(Xi).then(e=>{console.log("getRewardFrequencyConfig",e)});er.registerRewardHandler("ADS",_k(eo));er.registerRewardHandler("JOLI_COIN",Ek(Xi,{onUnlockSuccess:e=>{Tk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));er.registerRewardHandler("JOLI_COIN_ONLY",xk(Xi,{onUnlockSuccess:e=>{Tk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tk=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;ji(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},NJ=Q("adInit",{implement:e=>{eo.init(e)}}),DJ=Q("adConfig",{implement:e=>{eo.adConfig(e)}}),qJ=Q("adBreak",{implement:e=>{e.type==="reward"?er.getRewardsTypes(Xi).then(t=>{er.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"})})}):eo.adBreak(e)}}),LJ=Q("adUnit",{implement:e=>{eo.adUnit(e)}});$s.registerCommand("AdsSDK.init",NJ);$s.registerCommand("AdsSDK.adConfig",DJ);$s.registerCommand("AdsSDK.adBreak",qJ);$s.registerCommand("AdsSDK.adUnit",LJ);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var to,FJ,MJ,jJ,UJ,BJ,Pk=T(()=>{"use strict";D();Te();ht();Z();to=ve(),FJ=Q("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Fr(r.errMsg,r.errNo)}}),MJ=Q("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Fr(r,t);return{webviewId:n.webviewId}}}),jJ=Q("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Fr(r,t)}}),UJ=Q("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),BJ=Q("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=F("callHostMethodAsync",{method:e,params:C({},t)});if(r!==0)throw new Fr(n,r)}});to.registerCommand("RouterSDK.openSchema",FJ);to.registerCommand("RouterSDK.openPage",MJ);to.registerCommand("RouterSDK.closePage",jJ);to.registerCommand("RouterSDK.interceptSystemExit",UJ);to.registerCommand("RouterSDK.navigateToNativePage",BJ);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});var JJ={};var yQ,IQ,Rk=T(()=>{"use strict";NS();yQ=le(DS());BS();qd();VS();IQ=le(zS());Ud();Ck();Pk()});var Ok=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Ok])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Ok]=!0;I(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(xS(),SS)),Promise.resolve().then(()=>(Rk(),JJ)),Promise.resolve().then(()=>(Lt(),Jf))]);e()});