@jolibox/implement 1.1.24 → 1.1.26

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.
Files changed (38) hide show
  1. package/.rush/temp/package-deps_build.json +19 -14
  2. package/dist/common/context/index.d.ts +1 -0
  3. package/dist/common/context/url-parse.d.ts +1 -0
  4. package/dist/common/report/task-track/index.d.ts +1 -1
  5. package/dist/h5/api/base.d.ts +1 -1
  6. package/dist/h5/api/storage.d.ts +1 -1
  7. package/dist/index.js +8 -8
  8. package/dist/index.native.js +119 -103
  9. package/dist/native/api/base.d.ts +1 -1
  10. package/dist/native/api/keyboard.d.ts +3 -3
  11. package/dist/native/api/login.d.ts +1 -1
  12. package/dist/native/api/storage.d.ts +5 -5
  13. package/dist/native/payment/index.d.ts +4 -0
  14. package/dist/native/payment/payment-helper.d.ts +13 -0
  15. package/dist/native/payment/registers/base.d.ts +21 -0
  16. package/dist/native/payment/registers/joli-coin.d.ts +17 -0
  17. package/dist/native/payment/registers/type.d.ts +14 -0
  18. package/dist/native/report/task-tracker.d.ts +1 -1
  19. package/implement.build.log +2 -2
  20. package/package.json +5 -5
  21. package/src/common/context/index.ts +3 -0
  22. package/src/common/context/url-parse.ts +1 -0
  23. package/src/common/report/task-track/index.ts +5 -3
  24. package/src/common/rewards/registers/use-jolicoin-only.ts +4 -4
  25. package/src/common/rewards/registers/use-jolicoin.ts +4 -4
  26. package/src/h5/api/task.ts +43 -131
  27. package/src/native/api/ads.ts +4 -1
  28. package/src/native/api/storage.ts +9 -7
  29. package/src/native/api/task.ts +41 -159
  30. package/src/native/bootstrap/index.ts +2 -0
  31. package/src/native/payment/index.ts +5 -0
  32. package/src/native/payment/payment-helper.ts +44 -0
  33. package/src/native/payment/registers/base.ts +97 -0
  34. package/src/native/payment/registers/joli-coin.ts +83 -0
  35. package/src/native/payment/registers/type.ts +15 -0
  36. package/src/native/report/task-tracker.ts +1 -1
  37. package/src/native/rewards/check-frequency.ts +28 -15
  38. package/src/native/rewards/index.ts +8 -2
@@ -1,4 +1,4 @@
1
- var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=Object.getOwnPropertyDescriptor,aE=Object.getOwnPropertyDescriptors,sE=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,lE=Object.getPrototypeOf,la=Object.prototype.hasOwnProperty,pu=Object.prototype.propertyIsEnumerable;var fu=(e,t,r)=>t in e?Vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))la.call(t,r)&&fu(e,r,t[r]);if(Jn)for(var r of Jn(t))pu.call(t,r)&&fu(e,r,t[r]);return e},q=(e,t)=>oE(e,aE(t));var et=(e,t)=>{var r={};for(var n in e)la.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jn)for(var n of Jn(e))t.indexOf(n)<0&&pu.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hu=(e,t)=>{for(var r in t)Vn(e,r,{get:t[r],enumerable:!0})},cE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sE(t))!la.call(e,o)&&o!==r&&Vn(e,o,{get:()=>t[o],enumerable:!(n=iE(t,o))||n.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?nE(lE(e)):{},cE(t||!e||!e.__esModule?Vn(r,"default",{value:e,enumerable:!0}):r,e));var x=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});function mE(e){return!!(e!=null&&e.__nativeBuffers__)}function ma(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!mE(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 o;n.value?o=n.value:n.base64&&(o=vE(n.base64)),typeof o!="undefined"&&o instanceof ArrayBuffer&&(e[n.key]=o)}}return e}function _E(e={},t=!1){let r=e,n=[];for(let[o,i]of Object.entries(r))if(i!==void 0&&i instanceof ArrayBuffer&&i.byteLength!==void 0){let a=t?{value:i,key:o}:{base64:gE(i),key:o};n.push(a),delete r[o]}return n.length>0&&(r.__nativeBuffers__=n),r}function EE(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Iu(e){return typeof e=="string"}function Lr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function AE(e){return typeof e=="undefined"}function SE(e){return AE(e)||e===null}function Tu(e){return typeof e=="function"}function IE(e){return Lr(e)&&Tu(e.then)}function Ru(e){let t=e,r=null,n=function(...o){return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Dr(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function LE(){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 BE(e){return new Promise(t=>ku(e)(t))}function ku(e){return(t,r=null)=>{let n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function $E(e,t){return(r=>{let n,o={onWillAddFirstListener(){n=r(i.fire,i)}},i=new Mr(o);return i.event})((r,n=null)=>e(o=>t(o)&&r.call(n,o),null))}function JE(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)VE(e[n],t[n])}function VE(e,t){if(Iu(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Tu(t)){try{if(e instanceof t)return}catch(r){}if(!SE(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 _u(e,t){return`[${e}]:${t}`}function QE(e,t){yu||(da=new Kn({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),fa=new Kn({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),pa=new Kn({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),t("onJoliboxEnterBackground",()=>{da.flush(),fa.flush(),pa.flush()}),yu=!0);function r(o){var i,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:h=0,__timing:p={receiveJSInvoke:0,invokeCallback:0}}=o,{receiveJSInvoke:m,invokeCallback:g}=p,_=(a=(i=u.match(/\S:(\S+)\s?/))==null?void 0:i[1])!=null?a:"fail";da.report({status:_,method:n(s,l),errNo:`${h}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(fa.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),pa.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(o,i){return(o==="callHostMethod"||o==="callHostMethodSync")&&i!=null&&i.method?`${o}-${i.method}`:o}return r}function tx(e,t){let r=0,n=!0,o=ex.resolveMap,i=QE(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,ha.forEach(l=>Wn(this,[l],function*({method:c,args:d,resolve:u}){let h=yield s(c,d);u(h)})),ha.length=0});let a=(l,c)=>{let d=o.get(Number(l));if(!d)return;let u=ma(c);d(u),o.delete(Number(l))},s=(l,c)=>{var d,u;let h=Date.now(),p=`${n}`;r+=1;let m=new xE;if(o.set(r,m.resolve),!n&&zE.includes(l))return new Promise(k=>{ha.push({method:l,args:c,resolve:k})});let g=pE(Rt({},{method:l,startTime:h,args:c,isForeground:p}),{invokeType:"js-bridge"}),_=!XE&&KE.includes(l),v=_E(c,_),y=_?v:JSON.stringify(v),A;if(l.endsWith("Sync")||WE.includes(l)?A=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof y=="string"?A=e.invoke(l,y,r):A=(u=e.call)==null?void 0:u.call(e,l,y,r),A){try{typeof A=="string"&&(A=JSON.parse(A)),A=ma(A)}catch(k){Ea.error(k)}return o.delete(r),A.errorCode&&(A.errorCode=_u(l,A.errorCode)),i(Rt(Rt({},g),A)),A}return l.endsWith("Sync")&&o.delete(r),m.promise.then(k=>(k.errorCode&&(k.errorCode=_u(l,k.errorCode)),i(Rt(Rt({},g),k)),k))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return IE(d)?d.then(u=>bu(l,u)):bu(l,d)},invokeHandler:a}}function bu(e,t){if(!Lr(t)){Ea.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:o,errorType:i,errorCode:a}=r,s=hE(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new CE(n,o,i,a);return s}function rx(e){if(globalThis[Gn])return globalThis[Gn];let t=new _a,r=new _a,n=new Kn({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Gn]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(o,i,a){let s=ma(i),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:o,duration:Date.now()-d})}else l=s;if(o===Cu){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Ur.length),u,a)}catch(h){}});return}if(o.startsWith(Ur)){r.emit(o.slice(Ur.length),l,a);return}t.emit(o,l,a)}},globalThis[Gn]}function nx(e){let t=new Map,r;return(n,o,i,a)=>{if(a){let l=i?[i]:"*";e.publish(`${Ur}${n}`,o,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(Cu,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(i);s||(s=[],t.set(i,s)),s.push([`${Ur}${n}`,o])}}function ox(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:o,unsubscribe:i}=rx(e),{invokeNative:a,invokeHandler:s,applyNative:l}=tx(e,r),c=nx(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:o,unsubscribe:i}}function Ou(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var uE,dE,fE,zn,Eu,xu,mu,Rt,pE,hE,Wn,vE,gE,Au,yE,bE,Su,wE,xE,TE,RE,Yn,kE,CE,OE,ca,Ea,vu,PE,NE,DE,qE,UE,SU,va,K,ME,FE,qr,Mr,_a,ya,jE,ua,HE,IU,ba,gu,TU,GE,Ur,KE,zE,WE,Cu,YE,Kn,yu,da,fa,pa,ha,XE,wa,ZE,ex,Gn,xa,Je,Pu,Nu,ix,Du,wu,Ee,L,Ve,RU,ax,qu,kU,CU,Ie=T(()=>{"use strict";uE=Object.defineProperty,dE=Object.defineProperties,fE=Object.getOwnPropertyDescriptors,zn=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,mu=(e,t,r)=>t in e?uE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t)=>{for(var r in t||(t={}))Eu.call(t,r)&&mu(e,r,t[r]);if(zn)for(var r of zn(t))xu.call(t,r)&&mu(e,r,t[r]);return e},pE=(e,t)=>dE(e,fE(t)),hE=(e,t)=>{var r={};for(var n in e)Eu.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zn)for(var n of zn(e))t.indexOf(n)<0&&xu.call(e,n)&&(r[n]=e[n]);return r},Wn=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});vE=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer};gE=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let o=0;o<n;o++)t+=String.fromCharCode(r[o]);return btoa(t)};Au=Object.defineProperty,yE=Object.getOwnPropertyDescriptor,bE=(e,t)=>{for(var r in t)Au(e,r,{get:t[r],enumerable:!0})},Su=(e,t,r,n)=>{for(var o=n>1?void 0:n?yE(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Au(t,r,o),o},wE=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,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}xE=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))}})}};TE=(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))(TE||{}),RE=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}},Yn=class extends RE{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},kE=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},CE=class extends Yn{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},OE=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ca=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ea={log:Dr("log"),warn:Dr("warn"),info:Dr("info"),error:Dr("error"),debug:Dr("debug")};Object.assign(globalThis,{logger:Ea});vu=Symbol.for("Jolibox.canIUseMap"),PE={};globalThis[vu]||(globalThis[vu]=PE);NE=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(NE||{}),DE=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(DE||{}),qE=(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))(qE||{});LE();UE=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),SU={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")},va=class ga{constructor(t){this.element=t,this.next=ga.Undefined,this.prev=ga.Undefined}};va.Undefined=new va(void 0);K=va,ME=class{constructor(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===K.Undefined}clear(){let e=this._first;for(;e!==K.Undefined;){let t=e.next;e.prev=K.Undefined,e.next=K.Undefined,e=t}this._first=K.Undefined,this._last=K.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new K(e);if(this._first===K.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==K.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==K.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==K.Undefined&&e.next!==K.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===K.Undefined&&e.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):e.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):e.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==K.Undefined;)yield e.element,e=e.next}},FE=0,qr=class{constructor(e){this.value=e,this.id=FE++}},Mr=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 qr&&(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,o,i,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new qr(t);return this._listeners?this._listeners instanceof qr?this._listeners=[this._listeners,c]:this._listeners.push(c):((o=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||o.call(n,this),this._listeners=c,(a=(i=this.options)==null?void 0:i.onDidFirstListener)==null||a.call(i,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,h,p;if(!this._disposed){if(this._listeners instanceof qr)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||p.call(h)))}}}}),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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof qr?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},_a=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let o=(n=this.listeners.get(e))!=null?n:new Mr,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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 ME,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)}},ya={};bE(ya,{None:()=>jE,filter:()=>$E,once:()=>ku,toPromise:()=>BE});jE=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ua=Symbol.for("Jolibox.hostEmitter"),HE=()=>{let e=new _a;return globalThis[ua]||(globalThis[ua]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ua]},IU=HE();ba=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Mr,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(...o){return JE(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}};ba=Su([Ru],ba);gu=class{constructor(){this._onWillExecuteCommand=new Mr,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Mr,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ba,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=EE(3e4)),this._starActivation}executeCommand(e,...t){return wE(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ya.toPromise(ya.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}}};gu=Su([Ru],gu);TU=Symbol.for("Jolibox.commands");GE=()=>UE(),Ur="custom_event_",KE=[],zE=[],WE=["env","createRequestTask","login"],Cu="__batch_event__",YE=e=>e==="pv"?e:"default",Kn=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:o,metricName:i,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=o,this.metricName=i,this.type=YE(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,o,i)=>{let a=n.shift();if(a){let s=i[a];r[s]||(r[s]={}),t(r[s],n,o,i)}else r[o]||(r[o]=[]),r[o].push(i[o])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,o,i,a)=>{let s=o.shift();if(!s&&Lr(a))throw new ca(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Lr(a))l.push(...Object.keys(a));else if(Iu(a)){if(o.length>0)throw new ca(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new ca(`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],[...o],i,d)})}else n[i]?n[i]++:n[i]=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={}}},yu=!1;ha=[],XE=!1,wa=Symbol.for("Jolibox.invokeResolverInstance"),ZE=new Map;globalThis[wa]||(globalThis[wa]=ZE);ex={get resolveMap(){return globalThis[wa]}};Gn=Symbol.for("Jolibox.subscribeInstance");Je={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Je.trigger=e},onDoExit(e){Je.exit=e},onDoBackPress(e){Je.backPress=e}},Pu=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new kE("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=(o="")=>{Je.trigger(),e.onDocumentReady.postMessage({path:o})},r=o=>Wn(void 0,null,function*(){let i=yield Je.exit();e.doExit.postMessage({uuid:o,shouldInterrupt:i})});xa={onDocumentReady:t,doExit:r,invoke(o,i,a){e.invoke.postMessage({event:o,paramsString:i,callbackId:a})},publish(o,i,a){let s=Ou(i,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:o,paramsString:JSON.stringify(s),webviewIds:a}))},call(o,i,a){let s=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(i),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Pu,doExit:r};globalThis.joliboxJSCore=Rt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(i="")=>{Je.trigger(),t.onDocumentReady(JSON.stringify({path:i}))},n=i=>Wn(void 0,null,function*(){let a=yield Je.exit();t.doExit(JSON.stringify({uuid:i,shouldInterrupt:a}))});xa={onDocumentReady:r,invoke(i,a,s){t.invoke(JSON.stringify({event:i,paramsString:a,callbackId:s}))},doExit:n,publish(i,a,s){let l=Ou(a,"joliboxJSCore");t.publish({event:i,paramsString:JSON.stringify(l),webviewIds:s})},call(i,a,s){let l=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(i){return Wn(this,null,function*(){let a=yield Je.backPress();t.doBackPress(JSON.stringify({uuid:i,shouldInterrupt:a}))})}};let o={onDocumentReady:r,env:Pu,doExit:n};globalThis.joliboxJSCore=Rt({},o)}Nu=xa;if(!Nu&&GE())throw new OE("No joliboxJScore is found, native bridge not found.");ix=Rt({},Nu),Du=ox(ix),{invokeHandler:wu}=Du,{applyNative:Ee,invokeNative:L,onNative:Ve,offNative:RU,subscribeHandler:ax,publish:qu,subscribe:kU,unsubscribe:CU}=Du;globalThis.joliboxJSBridge={callHandler:wu,invokeHandler:wu,subscribeHandler:ax}});function px(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function $r(e){return typeof e=="string"}function Ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function ju(e){return typeof e=="object"&&Array.isArray(e)}function Hr(e){return e===!0||e===!1}function Bu(e){return typeof e=="undefined"}function hx(e){return Bu(e)||e===null}function mx(e){return typeof e=="function"}function $u(e){let t=e,r=null,n=function(...o){return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Hu(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(o,i){for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let s=o[a],l=i[a],c=r(s,l,a,o,i);c!==void 0?o[a]=c:Mu(l)&&Mu(s)?o[a]=n(ux({},s),l):Array.isArray(l)&&Array.isArray(s)?o[a]=[...s,...l]:o[a]=l}return o}return n(e,t)}function Mu(e){return e&&typeof e=="object"&&e.constructor===Object}function Ju(e,t){if(Array.isArray(e))return e.concat(t)}function Jr(e,t,r={}){let n=null,o,i,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(i,o),o=void 0,i=void 0,a),d=function(...u){o=u,i=this;let h=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!h&&c()},t),h)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,o=i=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function gx(e,t){return(...r)=>t(e,...r)}function Xn(e){return t=>gx(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(o){e(new er(`${o}`))}})}function Fr(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function La(){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 Ix(e){return new Promise(t=>Xu(e)(t))}function Xu(e){return(t,r=null)=>{let n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function Tx(e,t){return(r=>{let n,o={onWillAddFirstListener(){n=r(i.fire,i)}},i=new Br(o);return i.event})((r,n=null)=>e(o=>t(o)&&r.call(n,o),null))}function kx(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)Cx(e[n],t[n])}function Cx(e,t){if($r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(mx(t)){try{if(e instanceof t)return}catch(r){}if(!hx(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 Ox(){return typeof globalThis!="undefined"?globalThis[Zu]:void 0}function Px(e){typeof globalThis!="undefined"&&(globalThis[Zu]=e)}function ee(){let e=Ox();if(e)return e;let t=new Qn,r=new ka,n={registerCommand(o,i,a){t.registerCommand({id:o,handler:i,metadata:a})},executeCommand(o,...i){return r.executeCommand(o,...i)},excuteCommandSync(o,...i){return r.executeCommandThowErr(o,...i)}};return Px(n),n}var Ca,sx,Lu,lx,cx,Uu,ux,dx,Fu,fx,kt,vx,Oa,Pa,Vu,Gu,er,Ku,zu,Vr,Na,tt,Sa,_x,Da,yx,qa,bx,Zn,Gr,wx,Ex,Wu,Yu,Qu,Ia,z,xx,Ax,jr,Br,rt,Ra,Sx,Aa,Rx,de,Qn,ka,Zu,D=T(()=>{"use strict";Ca=Object.defineProperty,sx=Object.getOwnPropertyDescriptor,Lu=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,cx=Object.prototype.propertyIsEnumerable,Uu=(e,t,r)=>t in e?Ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ux=(e,t)=>{for(var r in t||(t={}))lx.call(t,r)&&Uu(e,r,t[r]);if(Lu)for(var r of Lu(t))cx.call(t,r)&&Uu(e,r,t[r]);return e},dx=(e,t)=>{for(var r in t)Ca(e,r,{get:t[r],enumerable:!0})},Fu=(e,t,r,n)=>{for(var o=n>1?void 0:n?sx(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Ca(t,r,o),o},fx=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}kt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};vx=(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))(vx||{}),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}},Pa=class extends Oa{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Vu=class extends Oa{constructor(){super(...arguments),this.kind="USER_ERROR"}},Gu=class extends Vu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},er=class extends Vu{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))}},Ku=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},zu=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Vr=class extends Oa{constructor(e,t,r,n,o){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),o&&(this.priority=o)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Na=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};tt={log:Fr("log"),warn:Fr("warn"),info:Fr("info"),error:Fr("error"),debug:Fr("debug")};Object.assign(globalThis,{logger:tt});Sa=Symbol.for("Jolibox.canIUseMap"),_x={};globalThis[Sa]||(globalThis[Sa]=_x);Da={get config(){return globalThis[Sa]}},yx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(yx||{}),qa=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qa||{}),bx=(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))(bx||{}),Zn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});La();Gr={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")},wx="device_id",Ex="advertising_id",Wu=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Zn()),window.__joliboxLocalStorage__.getItem(e)),Yu=()=>new URLSearchParams(window.location.search).get("deviceId")||Wu(wx),Qu=()=>new URLSearchParams(window.location.search).get("advertisingId")||Wu(Ex),Ia=class Ta{constructor(t){this.element=t,this.next=Ta.Undefined,this.prev=Ta.Undefined}};Ia.Undefined=new Ia(void 0);z=Ia,xx=class{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let e=this._first;for(;e!==z.Undefined;){let t=e.next;e.prev=z.Undefined,e.next=z.Undefined,e=t}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new z(e);if(this._first===z.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==z.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==z.Undefined&&e.next!==z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===z.Undefined&&e.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):e.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):e.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==z.Undefined;)yield e.element,e=e.next}},Ax=0,jr=class{constructor(e){this.value=e,this.id=Ax++}},Br=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 jr&&(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,o,i,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new jr(t);return this._listeners?this._listeners instanceof jr?this._listeners=[this._listeners,c]:this._listeners.push(c):((o=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||o.call(n,this),this._listeners=c,(a=(i=this.options)==null?void 0:i.onDidFirstListener)==null||a.call(i,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,h,p;if(!this._disposed){if(this._listeners instanceof jr)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||p.call(h)))}}}}),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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof jr?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},rt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let o=(n=this.listeners.get(e))!=null?n:new Br,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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 xx,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)}},Ra={};dx(Ra,{None:()=>Sx,filter:()=>Tx,once:()=>Xu,toPromise:()=>Ix});Sx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Aa=Symbol.for("Jolibox.hostEmitter"),Rx=()=>{let e=new rt;return globalThis[Aa]||(globalThis[Aa]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Aa]},de=Rx();Qn=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Br,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(...o){return kx(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}};Qn=Fu([$u],Qn);ka=class{constructor(){this._onWillExecuteCommand=new Br,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Br,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Qn,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=px(3e4)),this._starActivation}executeCommand(e,...t){return fx(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ra.toPromise(Ra.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}}};ka=Fu([$u],ka);Zu=Symbol.for("Jolibox.commands")});function Te(e,t={}){Ua.emit("ERROR_REPORT",{error:e,options:t})}var Ua,Jt,nt=T(()=>{"use strict";D();D();Ua=new rt,Jt=new rt;Te.debounce=Jr(Te,50,{leading:!0})});var Ma,Nx,ed,td,rd=T(()=>{"use strict";D();nt();Ma=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(o){return{}}},Nx=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ed=e=>{var t;try{let o=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(o!=null&&o.length){let[i,a,s]=o;return{headerJson:Ma(i),payloadJson:Ma(a),signature:Ma(s)}}else throw"joli_source is missing"}catch(r){return Te(new Ku(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},td=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],o=Nx(e),i=r[2];return`${n}.${o}.${i}`}return t}});var Dx,Fa,nd=T(()=>{"use strict";D();Dx="1.1.24",Fa=()=>Dx});var qx,od,ja,id,me,Lx,S,te=T(()=>{"use strict";D();rd();nd();D();qx={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Yu(),adId:Qu(),pixelRatio:window.devicePixelRatio||1,platform:Gr.isAndroid?"android":Gr.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Fa()},schema:window.location.href,platform:Gr.isAndroid?"android":Gr.isiOS?"ios":"h5"},ja=(od=globalThis.joliboxJSCore)==null?void 0:od.env,me=Object.assign({},(id=ja==null?void 0:ja())!=null?id:qx),Lx=()=>{var h,p,m,g,_,v,y,A,k,O,I;let{payloadJson:e,headerJson:t,signature:r}=me.schema.length?ed(me.schema):{},n=`${me.deviceInfo.did}-${new Date().getTime()}`,i=new URL(me.schema.length?me.schema:window.location.href).searchParams,a=(m=(p=(h=i.get("mpId"))!=null?h:i.get("appId"))!=null?p:i.get("gameId"))!=null?m:"",s=(v=(_=(g=me.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:i.get("sessionId"))!=null?v:n,l=!!((A=(y=e==null?void 0:e.testAdsMode)!=null?y:e==null?void 0:e.__testAdsMode)!=null?A:i.get("testAdsMode")==="true"),c=(I=(O=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?O:i.get("joliboxEnv"))!=null?I:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var w;return(w=i.get("joliSource"))!=null?w:null},get mpId(){var w;return(w=a!=null?a:e==null?void 0:e.id)!=null?w:""},get mpVersion(){var w;return(w=t==null?void 0:t.ver)!=null?w:Fa()},get mpType(){var w,B;return(B=(w=t==null?void 0:t.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?B:"game"},get platform(){var w;return((w=me.platform)!=null?w:me.deviceInfo.platform).toLowerCase()},get deviceInfo(){return me.deviceInfo},get sdkInfo(){return me.sdkInfo},get hostInfo(){return me.hostInfo},get hostUserInfo(){return me.hostUserInfo},get sessionId(){var w,B;return(B=(w=me.clientSessionId)!=null?w:s)!=null?B:n},get channel(){return u},get webviewId(){var w;return(w=me.webviewId)!=null?w:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var w;return(w=me.deviceInfo.adId)!=null?w:me.deviceInfo.did},onEnvConfigChanged:w=>{Hu(me,w,Ju)},encodeJoliSourceQuery:w=>{var B,$e;return t&&r?td(R(R({},e),w),(B=i.get("joliSource"))!=null?B:""):($e=i.get("joliSource"))!=null?$e:""}}},S=Lx()});var Ba,sd,Ux,Mx,ad,Fx,ld=T(()=>{"use strict";D();nt();te();D();Ba=!1,sd=(e,t)=>e==null?!1:t in e,Ux=e=>sd(e,"kind"),Mx=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},ad=(e,t={},r)=>{var i,a,s;let n={user_id:(a=(i=S.hostUserInfo)==null?void 0:i.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:Mx(e.name)},o=q(R({},n),{env:t.environment,isFromUser:r});r?Jt.emit("GLOBAL_USER_ERROR",e,o):Jt.emit("GLOBAL_ERROR",e,o)},Fx=e=>sd(e,"kind")&&e.kind==="USER_ERROR";Ua.on("ERROR_REPORT",({error:e,options:t})=>{if(Ba)return;Ba=!0;let r=Ux(e)&&e.raw?e.raw:e;try{let n=Fx(e);ad(e,t,n)}catch(n){let o=n instanceof Error?n.message:String(n),i=new Na(`${o}, origin error: ${r.message}`);tt.error(i),ad(new Na(i.message),{environment:t.environment},!1)}finally{Ba=!1}})});var Ct,$a,tr=T(()=>{"use strict";nt();D();nt();Ct=(e,t)=>{var r,n;return new Vr((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},$a=e=>new Gu(e)});var cd=T(()=>{"use strict";ld();tr();D();Ie();Jt.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});Jt.on("GLOBAL_USER_ERROR",(e,t)=>{tt.log("UserError",e,t)})});var Ha=T(()=>{"use strict"});function ud(e,t){let r=(n,o,i)=>{let a=q(R({tag:n},t),{extra:R({},o)});n=="globalJsError"?Te(new zu(JSON.stringify(a))):e("systemLog",a,i)};return r.debounce=Jr(r,500,{leading:!0}),r}function dd(e){let t=(r,n,o)=>{var s;let i=(s=o&&JSON.stringify(o))!=null?s:0,a={speed_value_type:r,total_duration:n};i&&Object.assign(a,{extra:i}),e("joliboxSpeedAnalysis",a)};return t.debounce=Jr(t,500,{leading:!0}),t}var fd=T(()=>{"use strict";D();D();nt()});function pd(e,t){let r=ud(e,t),n=dd(r);return{track:r,trackPerformance:n}}var hd=T(()=>{"use strict";fd()});var md=T(()=>{"use strict";te();D();D()});var vd=T(()=>{"use strict";hd();Ha();md()});var eo,gd=T(()=>{"use strict";eo=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,o,i=!1,a=0,s=()=>{if(!i)return;let p=Date.now(),m=p-r;m>=this.interval&&(this.visible&&(a+=m,t(a)),r=p),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),o=window.setInterval(()=>{if(!i)return;let p=Date.now();p-r>=this.interval&&(r=p)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{o&&(clearInterval(o),o=0)};this.eventEmitter.on("visible",p=>{i&&(console.log("visible",p),p?c():l())});let h=this.visible;return{start(){i||(i=!0,h?c():l())},stop(){i=!1,d(),u()}}}}});var Ja=T(()=>{"use strict"});function yd(e,t,r){let{response:n,startTime:o,endTime:i,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:i-o,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&_d<Bx||a==="inner")&&(d.joli_request_number=_d++,setTimeout(()=>{Le("joliboxNetRequestResult",d)},500))}var _d,Bx,bd=T(()=>{"use strict";Ja();Ot();_d=0,Bx=10});function to(e,t,r){var l,c,d;let n=new Map,o=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",i=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ve("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let h=n.get(u.requestTaskId);if(h)if(u.state==="success"){let p=u,{requestTaskId:g,state:_}=p,v=et(p,["requestTaskId","state"]);u.statusCode===200?h.resolve(v):h.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=et(m,["requestTaskId","state"]);h.reject(v),n.delete(g)}else tt.warn("onRequestTaskStateChange unknown event",u)}),de.on("onLoginComplete",({isLogin:u,token:h})=>{u&&h&&(a["X-JOLI-TOKEN"]=h)}),(p,...m)=>x(this,[p,...m],function*(u,h={}){let g=Date.now(),_=$x(u,q(R({},h),{baseUrl:o})),{method:v="GET",responseType:y="text",dataType:A="json",timeout:k,enableCache:O=!1,appendHostCookie:I=!0}=h,w=Object.assign({"content-type":"application/json"},a,h.header),B={url:_,method:v,header:w,enableCache:O,responseType:y,appendHostCookie:I};if(v=="POST"||v=="PUT"){let Ze=Jx(h.data,w["content-type"]);B.data=Ze}k&&Object.assign(B,{timeout:k});let{data:{requestTaskId:$e}}=L(e,B);if(typeof $e!="string")throw Ct({code:-1,msg:"requestTaskId is not a string"});let Zt=(Ze,dt)=>{yd("request",_,{state:Ze,startTime:g,endTime:Date.now(),params:B,response:dt,requestId:$e,requestFrom:i=="public"?"public":"inner"})},{resolve:He,reject:$t,promise:Zw}=new kt;n.set($e,{resolve:He,reject:$t});try{let Ze=yield Zw;Zt("success",Ze);let{data:dt}=Ze;return A==="json"&&typeof dt=="string"&&(dt=Hx(dt)),{url:_,timeout:k,method:v,response:q(R({},Ze),{data:dt})}}catch(Ze){let dt=Ze;if(Ht(dt)){let{errMsg:Hn,prefetchDetail:eE,isPrefetch:tE,errNo:rE}=dt;$r(Hn)&&(Zt("fail",{errMsg:Hn,isPrefetch:tE,prefetchDetail:eE}),Te(Ct({code:-1,msg:Hn},{errNo:rE,errMsg:Hn})))}throw Ze}})}function Hx(e){try{return JSON.parse(e.trim())}catch(t){return e}}function Jx(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 $x,Va=T(()=>{"use strict";D();bd();Ja();Ie();nt();tr();$x=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,o=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${o?`?${o}`:""}`:`${e}${o?`?${o}`:""}`}});var Ga,wd,ve,Vt=T(()=>{"use strict";Va();te();Ga={};(wd=S.hostUserInfo)!=null&&wd.token&&(Ga["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Ga["x-joli-source"]=S.joliSource);ve=to("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Ga})});var ro,Ed=T(()=>{"use strict";te();gd();Vt();Ie();ro=class extends eo{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return x(this,null,function*(){let{event:r,params:n}=t,o={eventType:r,gameInfo:R({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ve("/api/base/app-event",{method:"POST",data:o}):Ee("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return x(this,null,function*(){let{event:r,params:n}=t;yield Ee("userTrackAsync",{event:r,params:R({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Td={};hu(Td,{nativeTaskEmitter:()=>Kr,taskTracker:()=>Oe,track:()=>Le,trackPerformance:()=>Sd});var Vx,xd,Ad,Le,Sd,Id,Kr,Oe,Ot=T(()=>{"use strict";cd();D();Ha();vd();te();Ed();Ie();Vx=(e,t,r)=>{var a,s,l,c,d;let n=t,o=Ht(n.extra)?n.extra:$r(n.extra)?JSON.parse(n.extra):{},i=q(R({},o),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});L("trackAsync",{event:(d=t.tag)!=null?d:e,data:i,webviewId:r})},{track:Le,trackPerformance:Sd}=pd(Vx,{type:qa.AppSDK,platform:"native",jssdk_version:(Ad=(xd=S.sdkInfo)==null?void 0:xd.jssdkVersion)!=null?Ad:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Id=ee();Id.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Sd(e,t,r)});Id.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Le(e,t)});Kr=new rt,Oe=new ro(Le,Kr)});function Rd(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let a=`
1
+ var sI=Object.create;var Vi=Object.defineProperty,lI=Object.defineProperties,cI=Object.getOwnPropertyDescriptor,uI=Object.getOwnPropertyDescriptors,dI=Object.getOwnPropertyNames,Hi=Object.getOwnPropertySymbols,fI=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable;var lf=(e,t,r)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Cs.call(t,r)&&lf(e,r,t[r]);if(Hi)for(var r of Hi(t))cf.call(t,r)&&lf(e,r,t[r]);return e},q=(e,t)=>lI(e,uI(t));var pt=(e,t)=>{var r={};for(var n in e)Cs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Hi)for(var n of Hi(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};var I=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uf=(e,t)=>{for(var r in t)Vi(e,r,{get:t[r],enumerable:!0})},pI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dI(t))!Cs.call(e,i)&&i!==r&&Vi(e,i,{get:()=>t[i],enumerable:!(n=cI(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?sI(fI(e)):{},pI(t||!e||!e.__esModule?Vi(r,"default",{value:e,enumerable:!0}):r,e));var E=(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 _I(e){return!!(e!=null&&e.__nativeBuffers__)}function Us(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!_I(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=bI(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function EI(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:wI(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function II(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ef(e){return typeof e=="string"}function bn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function kI(e){return typeof e=="undefined"}function RI(e){return kI(e)||e===null}function xf(e){return typeof e=="function"}function CI(e){return bn(e)&&xf(e.then)}function Af(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function yn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function FI(){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 VI(e){return new Promise(t=>Sf(e)(t))}function Sf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function GI(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new En(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function KI(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)WI(e[n],t[n])}function WI(e,t){if(Ef(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(xf(t)){try{if(e instanceof t)return}catch(r){}if(!RI(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 hf(e,t){return`[${e}]:${t}`}function t1(e,t){mf||(Ns=new zi({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ds=new zi({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),qs=new zi({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ns.flush(),Ds.flush(),qs.flush()}),mf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:h=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ns.report({status:_,method:n(s,l),errNo:`${h}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ds.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),qs.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function o1(e,t){let r=0,n=!0,i=i1.resolveMap,o=t1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ls.forEach(l=>Wi(this,[l],function*({method:c,args:d,resolve:u}){let h=yield s(c,d);u(h)})),Ls.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Us(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let h=Date.now(),f=`${n}`;r+=1;let m=new TI;if(i.set(r,m.resolve),!n&&XI.includes(l))return new Promise(T=>{Ls.push({method:l,args:c,resolve:T})});let g=gI(Wt({},{method:l,startTime:h,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!r1&&QI.includes(l),v=EI(c,_),b=_?v:JSON.stringify(v),x;if(l.endsWith("Sync")||ZI.includes(l)?x=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?x=e.invoke(l,b,r):x=(u=e.call)==null?void 0:u.call(e,l,b,r),x){try{typeof x=="string"&&(x=JSON.parse(x)),x=Us(x)}catch(T){Hs.error(T)}return i.delete(r),x.errorCode&&(x.errorCode=hf(l,x.errorCode)),o(Wt(Wt({},g),x)),x}return l.endsWith("Sync")&&i.delete(r),m.promise.then(T=>(T.errorCode&&(T.errorCode=hf(l,T.errorCode)),o(Wt(Wt({},g),T)),T))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return CI(d)?d.then(u=>vf(l,u)):vf(l,d)},invokeHandler:a}}function vf(e,t){if(!bn(t)){Hs.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=yI(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new DI(n,i,o,a);return s}function a1(e){if(globalThis[Gi])return globalThis[Gi];let t=new Fs,r=new Fs,n=new zi({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[Gi]={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=Us(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===If){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(wn.length),u,a)}catch(h){}});return}if(i.startsWith(wn)){r.emit(i.slice(wn.length),l,a);return}t.emit(i,l,a)}},globalThis[Gi]}function s1(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${wn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(If,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${wn}${n}`,i])}}function l1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=a1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=o1(e,r),c=s1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Tf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var hI,mI,vI,Ki,yf,_f,df,Wt,gI,yI,Wi,bI,wI,bf,xI,AI,wf,SI,TI,OI,PI,Yi,NI,DI,qI,Os,Hs,ff,LI,UI,MI,jI,BI,W3,Ms,Q,$I,JI,_n,En,Fs,Bs,HI,Ps,zI,Y3,$s,pf,Q3,YI,wn,QI,XI,ZI,If,e1,zi,mf,Ns,Ds,qs,Ls,r1,Js,n1,i1,Gi,Vs,tt,kf,Rf,c1,Cf,gf,Pe,L,rt,X3,u1,Of,Z3,e4,Me=I(()=>{"use strict";hI=Object.defineProperty,mI=Object.defineProperties,vI=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertySymbols,yf=Object.prototype.hasOwnProperty,_f=Object.prototype.propertyIsEnumerable,df=(e,t,r)=>t in e?hI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))yf.call(t,r)&&df(e,r,t[r]);if(Ki)for(var r of Ki(t))_f.call(t,r)&&df(e,r,t[r]);return e},gI=(e,t)=>mI(e,vI(t)),yI=(e,t)=>{var r={};for(var n in e)yf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ki)for(var n of Ki(e))t.indexOf(n)<0&&_f.call(e,n)&&(r[n]=e[n]);return r},Wi=(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())});bI=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};wI=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)};bf=Object.defineProperty,xI=Object.getOwnPropertyDescriptor,AI=(e,t)=>{for(var r in t)bf(e,r,{get:t[r],enumerable:!0})},wf=(e,t,r,n)=>{for(var i=n>1?void 0:n?xI(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&&bf(t,r,i),i},SI=(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}TI=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))}})}};OI=(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))(OI||{}),PI=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}},Yi=class extends PI{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},NI=class extends Yi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},DI=class extends Yi{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},qI=class extends Yi{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Os=class extends Yi{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Hs={log:yn("log"),warn:yn("warn"),info:yn("info"),error:yn("error"),debug:yn("debug")};Object.assign(globalThis,{logger:Hs});ff=Symbol.for("Jolibox.canIUseMap"),LI={};globalThis[ff]||(globalThis[ff]=LI);UI=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(UI||{}),MI=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(MI||{}),jI=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(jI||{});FI();BI=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),W3={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")},Ms=class js{constructor(t){this.element=t,this.next=js.Undefined,this.prev=js.Undefined}};Ms.Undefined=new Ms(void 0);Q=Ms,$I=class{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let e=this._first;for(;e!==Q.Undefined;){let t=e.next;e.prev=Q.Undefined,e.next=Q.Undefined,e=t}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Q(e);if(this._first===Q.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!==Q.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Q.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Q.Undefined&&e.next!==Q.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Q.Undefined&&e.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):e.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):e.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Q.Undefined;)yield e.element,e=e.next}},JI=0,_n=class{constructor(e){this.value=e,this.id=JI++}},En=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof _n&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new _n(t);return this._listeners?this._listeners instanceof _n?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,h,f;if(!this._disposed){if(this._listeners instanceof _n)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||f.call(h)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof _n?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Fs=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 En,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 $I,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)}},Bs={};AI(Bs,{None:()=>HI,filter:()=>GI,once:()=>Sf,toPromise:()=>VI});HI=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ps=Symbol.for("Jolibox.hostEmitter"),zI=()=>{let e=new Fs;return globalThis[Ps]||(globalThis[Ps]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ps]},Y3=zI();$s=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new En,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 KI(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}};$s=wf([Af],$s);pf=class{constructor(){this._onWillExecuteCommand=new En,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new En,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new $s,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=II(3e4)),this._starActivation}executeCommand(e,...t){return SI(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Bs.toPromise(Bs.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}}};pf=wf([Af],pf);Q3=Symbol.for("Jolibox.commands");YI=()=>BI(),wn="custom_event_",QI=[],XI=[],ZI=["env","createRequestTask","login"],If="__batch_event__",e1=e=>e==="pv"?e:"default",zi=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=e1(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&&bn(a))throw new Os(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(bn(a))l.push(...Object.keys(a));else if(Ef(a)){if(i.length>0)throw new Os(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Os(`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=bn(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={}}},mf=!1;Ls=[],r1=!1,Js=Symbol.for("Jolibox.invokeResolverInstance"),n1=new Map;globalThis[Js]||(globalThis[Js]=n1);i1={get resolveMap(){return globalThis[Js]}};Gi=Symbol.for("Jolibox.subscribeInstance");tt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){tt.trigger=e},onDoExit(e){tt.exit=e},onDoBackPress(e){tt.backPress=e}},kf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new NI("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="")=>{tt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Wi(void 0,null,function*(){let o=yield tt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Vs={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Tf(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:kf,doExit:r};globalThis.joliboxJSCore=Wt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{tt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Wi(void 0,null,function*(){let a=yield tt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Vs={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Tf(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 Wi(this,null,function*(){let a=yield tt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:kf,doExit:n};globalThis.joliboxJSCore=Wt({},i)}Rf=Vs;if(!Rf&&YI())throw new qI("No joliboxJScore is found, native bridge not found.");c1=Wt({},Rf),Cf=l1(c1),{invokeHandler:gf}=Cf,{applyNative:Pe,invokeNative:L,onNative:rt,offNative:X3,subscribeHandler:u1,publish:Of,subscribe:Z3,unsubscribe:e4}=Cf;globalThis.joliboxJSBridge={callHandler:gf,invokeHandler:gf,subscribeHandler:u1}});function g1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function In(e){return typeof e=="string"}function hr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Lf(e){return typeof e=="object"&&Array.isArray(e)}function Tn(e){return e===!0||e===!1}function Uf(e){return typeof e=="undefined"}function y1(e){return Uf(e)||e===null}function _1(e){return typeof e=="function"}function Mf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function jf(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:Df(l)&&Df(s)?i[a]=n(h1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Df(e){return e&&typeof e=="object"&&e.constructor===Object}function Ff(e,t){if(Array.isArray(e))return e.concat(t)}function kn(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 h=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!h&&c()},t),h)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 w1(e,t){return(...r)=>t(e,...r)}function Zi(e){return t=>w1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Or(`${i}`))}})}function xn(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 C1(e){return new Promise(t=>Wf(e)(t))}function Wf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function O1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Sn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function N1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)D1(e[n],t[n])}function D1(e,t){if(In(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(_1(t)){try{if(e instanceof t)return}catch(r){}if(!y1(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 q1(){return typeof globalThis!="undefined"?globalThis[Yf]:void 0}function L1(e){typeof globalThis!="undefined"&&(globalThis[Yf]=e)}function ue(){let e=q1();if(e)return e;let t=new Qi,r=new Qs,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 L1(n),n}var Xs,d1,Pf,f1,p1,Nf,h1,m1,qf,v1,Yt,b1,Zs,Xi,el,Bf,Or,$f,Jf,Hf,Vf,Rn,tl,ht,zs,E1,rl,x1,nl,A1,eo,Cn,S1,I1,Gf,zf,Kf,Ks,X,T1,k1,An,Sn,mt,Ys,R1,Gs,P1,ge,Qi,Qs,Yf,N=I(()=>{"use strict";Xs=Object.defineProperty,d1=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertySymbols,f1=Object.prototype.hasOwnProperty,p1=Object.prototype.propertyIsEnumerable,Nf=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h1=(e,t)=>{for(var r in t||(t={}))f1.call(t,r)&&Nf(e,r,t[r]);if(Pf)for(var r of Pf(t))p1.call(t,r)&&Nf(e,r,t[r]);return e},m1=(e,t)=>{for(var r in t)Xs(e,r,{get:t[r],enumerable:!0})},qf=(e,t,r,n)=>{for(var i=n>1?void 0:n?d1(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&&Xs(t,r,i),i},v1=(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))}})}};b1=(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))(b1||{}),Zs=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}},Xi=class extends Zs{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},el=class extends Zs{constructor(){super(...arguments),this.kind="USER_ERROR"}},Bf=class extends el{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Or=class extends el{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))}},$f=class extends el{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))}},Jf=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Hf=class extends Xi{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Vf=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Rn=class extends Zs{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}}},tl=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};ht={log:xn("log"),warn:xn("warn"),info:xn("info"),error:xn("error"),debug:xn("debug")};Object.assign(globalThis,{logger:ht});zs=Symbol.for("Jolibox.canIUseMap"),E1={};globalThis[zs]||(globalThis[zs]=E1);rl={get config(){return globalThis[zs]}},x1=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(x1||{}),nl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nl||{}),A1=(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))(A1||{}),eo=()=>"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();Cn={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")},S1="device_id",I1="advertising_id",Gf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,eo()),window.__joliboxLocalStorage__.getItem(e)),zf=()=>new URLSearchParams(window.location.search).get("deviceId")||Gf(S1),Kf=()=>new URLSearchParams(window.location.search).get("advertisingId")||Gf(I1),Ks=class Ws{constructor(t){this.element=t,this.next=Ws.Undefined,this.prev=Ws.Undefined}};Ks.Undefined=new Ks(void 0);X=Ks,T1=class{constructor(){this._first=X.Undefined,this._last=X.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===X.Undefined}clear(){let e=this._first;for(;e!==X.Undefined;){let t=e.next;e.prev=X.Undefined,e.next=X.Undefined,e=t}this._first=X.Undefined,this._last=X.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new X(e);if(this._first===X.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!==X.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==X.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==X.Undefined&&e.next!==X.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===X.Undefined&&e.next===X.Undefined?(this._first=X.Undefined,this._last=X.Undefined):e.next===X.Undefined?(this._last=this._last.prev,this._last.next=X.Undefined):e.prev===X.Undefined&&(this._first=this._first.next,this._first.prev=X.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==X.Undefined;)yield e.element,e=e.next}},k1=0,An=class{constructor(e){this.value=e,this.id=k1++}},Sn=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,h,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=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||f.call(h)))}}}}),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}},mt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new Sn,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)}},Ys={};m1(Ys,{None:()=>R1,filter:()=>O1,once:()=>Wf,toPromise:()=>C1});R1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Gs=Symbol.for("Jolibox.hostEmitter"),P1=()=>{let e=new mt;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]},ge=P1();Qi=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Sn,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 N1(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}};Qi=qf([Mf],Qi);Qs=class{constructor(){this._onWillExecuteCommand=new Sn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Sn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Qi,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=g1(3e4)),this._starActivation}executeCommand(e,...t){return v1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ys.toPromise(Ys.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}}};Qs=qf([Mf],Qs);Yf=Symbol.for("Jolibox.commands")});function Ee(e,t={}){ol.emit("ERROR_REPORT",{error:e,options:t})}var ol,mr,lt=I(()=>{"use strict";N();N();ol=new mt,mr=new mt;Ee.debounce=kn(Ee,50,{leading:!0})});var al,U1,Qf,Xf,Zf=I(()=>{"use strict";N();lt();al=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,"")},Qf=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:al(o),payloadJson:al(a),signature:al(s)}}else throw"joli_source is missing"}catch(r){return Ee(new Jf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Xf=(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 M1,sl,ep=I(()=>{"use strict";N();M1="1.1.26",sl=()=>M1});var j1,tp,ll,rp,be,F1,S,oe=I(()=>{"use strict";N();Zf();ep();N();j1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:zf(),adId:Kf(),pixelRatio:window.devicePixelRatio||1,platform:Cn.isAndroid?"android":Cn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:sl()},schema:window.location.href,platform:Cn.isAndroid?"android":Cn.isiOS?"ios":"h5"},ll=(tp=globalThis.joliboxJSCore)==null?void 0:tp.env,be=Object.assign({},(rp=ll==null?void 0:ll())!=null?rp:j1),F1=()=>{var h,f,m,g,_,v,b,x,T,O,R;let{payloadJson:e,headerJson:t,signature:r}=be.schema.length?Qf(be.schema):{},n=`${be.deviceInfo.did}-${new Date().getTime()}`,o=new URL(be.schema.length?be.schema:window.location.href).searchParams,a=(m=(f=(h=o.get("mpId"))!=null?h:o.get("appId"))!=null?f:o.get("gameId"))!=null?m:"",s=(v=(_=(g=be.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:o.get("sessionId"))!=null?v:n,l=!!((x=(b=e==null?void 0:e.testAdsMode)!=null?b:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(R=(O=(T=e==null?void 0:e.joliboxEnv)!=null?T:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?R:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var y;return(y=o.get("joliSource"))!=null?y:null},get mpId(){var y;return(y=a!=null?a:e==null?void 0:e.id)!=null?y:""},get mpVersion(){var y;return(y=t==null?void 0:t.ver)!=null?y:sl()},get mpType(){var y,J;return(J=(y=t==null?void 0:t.__mpType)!=null?y:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var y;return((y=be.platform)!=null?y:be.deviceInfo.platform).toLowerCase()},get deviceInfo(){return be.deviceInfo},get sdkInfo(){return be.sdkInfo},get hostInfo(){return be.hostInfo},get hostUserInfo(){return be.hostUserInfo},get sessionId(){var y,J;return(J=(y=be.clientSessionId)!=null?y:s)!=null?J:n},get channel(){return u},get webviewId(){var y;return(y=be.webviewId)!=null?y:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var y;return(y=be.deviceInfo.adId)!=null?y:be.deviceInfo.did},get language(){return be.deviceInfo.lang},onEnvConfigChanged:y=>{jf(be,y,Ff)},encodeJoliSourceQuery:y=>{var J,Ze;return t&&r?Xf(k(k({},e),y),(J=o.get("joliSource"))!=null?J:""):(Ze=o.get("joliSource"))!=null?Ze:""}}},S=F1()});var cl,ip,B1,$1,np,J1,op=I(()=>{"use strict";N();lt();oe();N();cl=!1,ip=(e,t)=>e==null?!1:t in e,B1=e=>ip(e,"kind"),$1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},np=(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:$1(e.name)},i=q(k({},n),{env:t.environment,isFromUser:r});r?mr.emit("GLOBAL_USER_ERROR",e,i):mr.emit("GLOBAL_ERROR",e,i)},J1=e=>ip(e,"kind")&&e.kind==="USER_ERROR";ol.on("ERROR_REPORT",({error:e,options:t})=>{if(cl)return;cl=!0;let r=B1(e)&&e.raw?e.raw:e;try{let n=J1(e);np(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new tl(`${i}, origin error: ${r.message}`);ht.error(o),np(new tl(o.message),{environment:t.environment},!1)}finally{cl=!1}})});var Qt,ul,Pr=I(()=>{"use strict";lt();N();lt();Qt=(e,t)=>{var r,n;return new Rn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},ul=e=>new Bf(e)});var ap=I(()=>{"use strict";op();Pr();N();Me();mr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});mr.on("GLOBAL_USER_ERROR",(e,t)=>{ht.log("UserError",e,t)})});var dl=I(()=>{"use strict"});function sp(e,t){let r=(n,i,o)=>{let a=q(k({tag:n},t),{extra:k({},i)});n=="globalJsError"?Ee(new Vf(JSON.stringify(a))):e("systemLog",a,o)};return r.debounce=kn(r,500,{leading:!0}),r}function lp(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=kn(t,500,{leading:!0}),t}var cp=I(()=>{"use strict";N();N();lt()});function up(e,t){let r=sp(e,t),n=lp(r);return{track:r,trackPerformance:n}}var dp=I(()=>{"use strict";cp()});var fp=I(()=>{"use strict";oe();N();N()});var pp=I(()=>{"use strict";dp();dl();fp()});var to,hp=I(()=>{"use strict";to=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 h=this.visible;return{start(){o||(o=!0,h?c():l())},stop(){o=!1,d(),u()}}}}});var fl=I(()=>{"use strict"});function vp(e,t,r){let{response:n,startTime:i,endTime:o,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:o-i,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&mp<V1||a==="inner")&&(d.joli_request_number=mp++,setTimeout(()=>{Ge("joliboxNetRequestResult",d)},500))}var mp,V1,gp=I(()=>{"use strict";fl();Xt();mp=0,V1=10});function ro(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 rt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let h=n.get(u.requestTaskId);if(h)if(u.state==="success"){let f=u,{requestTaskId:g,state:_}=f,v=pt(f,["requestTaskId","state"]);u.statusCode===200?h.resolve(v):h.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=pt(m,["requestTaskId","state"]);h.reject(v),n.delete(g)}else ht.warn("onRequestTaskStateChange unknown event",u)}),ge.on("onLoginComplete",({isLogin:u,token:h})=>{u&&h&&(a["X-JOLI-TOKEN"]=h)}),(f,...m)=>E(this,[f,...m],function*(u,h={}){let g=Date.now(),_=G1(u,q(k({},h),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:x="json",timeout:T,enableCache:O=!1,appendHostCookie:R=!0}=h,y=Object.assign({"content-type":"application/json"},a,h.header),J={url:_,method:v,header:y,enableCache:O,responseType:b,appendHostCookie:R};if(v=="POST"||v=="PUT"){let ft=K1(h.data,y["content-type"]);J.data=ft}T&&Object.assign(J,{timeout:T});let{data:{requestTaskId:Ze}}=L(e,J);if(typeof Ze!="string")throw Qt({code:-1,msg:"requestTaskId is not a string"});let Cr=(ft,Ct)=>{vp("request",_,{state:ft,startTime:g,endTime:Date.now(),params:J,response:Ct,requestId:Ze,requestFrom:o=="public"?"public":"inner"})},{resolve:et,reject:pr,promise:nI}=new Yt;n.set(Ze,{resolve:et,reject:pr});try{let ft=yield nI;Cr("success",ft);let{data:Ct}=ft;return x==="json"&&typeof Ct=="string"&&(Ct=z1(Ct)),{url:_,timeout:T,method:v,response:q(k({},ft),{data:Ct})}}catch(ft){let Ct=ft;if(hr(Ct)){let{errMsg:Ji,prefetchDetail:iI,isPrefetch:oI,errNo:aI}=Ct;In(Ji)&&(Cr("fail",{errMsg:Ji,isPrefetch:oI,prefetchDetail:iI}),Ee(Qt({code:-1,msg:Ji},{errNo:aI,errMsg:Ji})))}throw ft}})}function z1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function K1(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 G1,pl=I(()=>{"use strict";N();gp();fl();Me();lt();Pr();G1=(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 hl,yp,ae,Ot=I(()=>{"use strict";pl();oe();hl={};(yp=S.hostUserInfo)!=null&&yp.token&&(hl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(hl["x-joli-source"]=S.joliSource);ae=ro("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:hl})});var no,_p=I(()=>{"use strict";oe();hp();Ot();Me();no=class extends to{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 E(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:k({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ae("/api/base/app-event",{method:"POST",data:i}):Pe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return E(this,null,function*(){let{event:r,params:n}=t;yield Pe("userTrackAsync",{event:r,params:k({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Ap={};uf(Ap,{nativeTaskEmitter:()=>On,taskTracker:()=>Pt,track:()=>Ge,trackPerformance:()=>Ep});var W1,bp,wp,Ge,Ep,xp,On,Pt,Xt=I(()=>{"use strict";ap();N();dl();pp();oe();_p();Me();W1=(e,t,r)=>{var a,s,l,c,d;let n=t,i=hr(n.extra)?n.extra:In(n.extra)?JSON.parse(n.extra):{},o=q(k({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});L("trackAsync",{event:(d=t.tag)!=null?d:e,data:o,webviewId:r})},{track:Ge,trackPerformance:Ep}=up(W1,{type:nl.AppSDK,platform:"native",jssdk_version:(wp=(bp=S.sdkInfo)==null?void 0:bp.jssdkVersion)!=null?wp:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),xp=ue();xp.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Ep(e,t,r)});xp.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Ge(e,t)});On=new mt,Pt=new no(Ge,On)});function Sp(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let a=`
2
2
  html[data-jolibox-root] {
3
3
  height: 100%;
4
4
  margin: 0;
@@ -16,8 +16,8 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
16
16
  min-height: 100dvh;
17
17
  }
18
18
  }
19
- `;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},o=()=>{function a(l){return x(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,h)=>{let p=new XMLHttpRequest;p.open("GET",c),p.responseType="arraybuffer",p.addEventListener("load",()=>u(p.response)),p.addEventListener("error",h),p.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},i=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=r};return n(),o(),i}var kd=T(()=>{"use strict"});var Cd=T(()=>{"use strict"});var Od=T(()=>{"use strict";D();La()});var Pd=T(()=>{"use strict";te()});var no,Ka=T(()=>{"use strict";Cd();Od();te();Pd();D();no=new rt});function ft(e,t){for(var r in t)e[r]=t[r];return e}function Xa(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ot(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?so.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return io(e,a,n,o,null)}function io(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Ud:o,__i:-1,__u:0};return o==null&&C.vnode!=null&&C.vnode(i),i}function it(e){return e.children}function Ue(e,t){this.props=e,this.context=t}function rr(e,t){if(t==null)return e.__?rr(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"?rr(e):null}function $d(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 $d(e)}}function Dd(e){(!e.__d&&(e.__d=!0)&&Gt.push(e)&&!ao.__r++||Nd!==C.debounceRendering)&&((Nd=C.debounceRendering)||Md)(ao)}function ao(){for(var e,t,r,n,o,i,a,s=1;Gt.length;)Gt.length>s&&Gt.sort(Fd),e=Gt.shift(),s=Gt.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ft({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),Za(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?rr(n):o,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Vd(i,r,a),r.__e!=o&&$d(r)));ao.__r=0}function Hd(e,t,r,n,o,i,a,s,l,c,d){var u,h,p,m,g,_,v=n&&n.__k||Bd,y=t.length;for(l=zx(r,t,v,l,y),u=0;u<y;u++)(p=r.__k[u])!=null&&(h=p.__i===-1?zr:v[p.__i]||zr,p.__i=u,_=Za(e,p,h,o,i,a,s,l,c,d),m=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&es(h.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),4&p.__u||h.__k===p.__k?l=Jd(p,l,e):typeof p.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),p.__u&=-7);return r.__e=g,l}function zx(e,t,r,n,o){var i,a,s,l,c,d=r.length,u=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?io(null,a,null,null,null):Wr(a)?io(it,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?io(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=Wx(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(o>d?h--:o<d&&h++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<d;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=rr(s)),Kd(s,s));return n}function Jd(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Jd(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=rr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Yr(e,t){return t=t||[],e==null||typeof e=="boolean"||(Wr(e)?e.some(function(r){Yr(r,t)}):t.push(e)),t}function Wx(e,t,r,n){var o,i,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(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i++}}return-1}function qd(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Kx.test(t)?r:r+"px"}function oo(e,t,r,n,o){var i;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||qd(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||qd(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(jd,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.t=n.t:(r.t=Qa,e.addEventListener(t,i?Wa:za,i)):e.removeEventListener(t,i?Wa:za,i);else{if(o=="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 Ld(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Qa++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function Za(e,t,r,n,o,i,a,s,l,c){var d,u,h,p,m,g,_,v,y,A,k,O,I,w,B,$e,Zt,He=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof He=="function")try{if(v=t.props,y="prototype"in He&&He.prototype.render,A=(d=He.contextType)&&n[d.__c],k=d?A?A.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(y?t.__c=u=new He(v,k):(t.__c=u=new Ue(v,k),u.constructor=He,u.render=Qx),A&&A.sub(u),u.props=v,u.state||(u.state={}),u.context=k,u.__n=n,h=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&He.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ft({},u.__s)),ft(u.__s,He.getDerivedStateFromProps(v,u.__s))),p=u.props,m=u.state,u.__v=t,h)y&&He.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&He.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,k)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function($t){$t&&($t.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,k),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,g)})}if(u.context=k,u.props=v,u.__P=e,u.__e=!1,I=C.__r,w=0,y){for(u.state=u.__s,u.__d=!1,I&&I(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=!1,I&&I(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++w<25);u.state=u.__s,u.getChildContext!=null&&(n=ft(ft({},n),u.getChildContext())),y&&!h&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(p,m)),$e=d,d!=null&&d.type===it&&d.key==null&&($e=Gd(d.props.children)),s=Hd(e,Wr($e)?$e:[$e],t,r,n,o,i,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch($t){if(t.__v=null,l||i!=null)if($t.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Zt=i.length;Zt--;)Xa(i[Zt]);else t.__e=r.__e,t.__k=r.__k;C.__e($t,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Yx(r.__e,t,r,n,o,i,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function Vd(e,t,r){for(var n=0;n<r.length;n++)es(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){C.__e(i,o.__v)}})}function Gd(e){return typeof e!="object"||e==null?e:Wr(e)?e.map(Gd):ft({},e)}function Yx(e,t,r,n,o,i,a,s,l){var c,d,u,h,p,m,g,_=r.props,v=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,i[c]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),s&&(C.__m&&C.__m(t,i),s=!1),i=null}if(y===null)_===v||s&&e.data===v||(e.data=v);else{if(i=i&&so.call(e.childNodes),_=r.props||zr,!s&&i!=null)for(_={},c=0;c<e.attributes.length;c++)_[(p=e.attributes[c]).name]=p.value;for(c in _)if(p=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;oo(e,c,null,p,o)}}for(c in v)p=v[c],c=="children"?h=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?m=p:c=="checked"?g=p:s&&typeof p!="function"||_[c]===p||oo(e,c,p,_[c],o);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Hd(t.type==="template"?e.content:e,Wr(h)?h:[h],t,r,n,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&rr(r,0),s,l),i!=null)for(c=i.length;c--;)Xa(i[c]);s||(c="value",y=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||y=="progress"&&!m||y=="option"&&m!==_[c])&&oo(e,c,m,_[c],o),c="checked",g!==void 0&&g!==e[c]&&oo(e,c,g,_[c],o))}return e}function es(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(o){C.__e(o,r)}}function Kd(e,t,r){var n,o;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||es(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){C.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Kd(n[o],t,r||typeof e.type!="function");r||Xa(e.__e),e.__c=e.__=e.__e=void 0}function Qx(e,t,r){return this.constructor(e,r)}function nr(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Za(t,e=(!n&&r||t).__k=ot(it,null,[e]),o||zr,zr,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?so.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Vd(i,e,a)}var so,C,Ud,Ya,Gt,Nd,Md,Fd,jd,Qa,za,Wa,Gx,zr,Bd,Kx,Wr,or=T(()=>{zr={},Bd=[],Kx=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;so=Bd.slice,C={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Ud=0,Ya=function(e){return e!=null&&e.constructor==null},Ue.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),Dd(this))},Ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dd(this))},Ue.prototype.render=it,Gt=[],Md=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fd=function(e,t){return e.__v.__b-t.__v.__b},ao.__r=0,jd=/(PointerCapture)$|Capture$/i,Qa=0,za=Ld(!1),Wa=Ld(!0),Gx=0});var Q=f((cj,zd)=>{"use strict";zd.exports=function(e){try{return!!e()}catch(t){return!0}}});var ir=f((uj,Wd)=>{"use strict";var Xx=Q();Wd.exports=!Xx(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var fe=f((dj,Xd)=>{"use strict";var Yd=ir(),Qd=Function.prototype,ts=Qd.call,Zx=Yd&&Qd.bind.bind(ts,ts);Xd.exports=Yd?Zx:function(e){return function(){return ts.apply(e,arguments)}}});var Re=f((fj,Zd)=>{"use strict";var eA=fe();Zd.exports=eA({}.isPrototypeOf)});var re=f((rs,ef)=>{"use strict";var Qr=function(e){return e&&e.Math===Math&&e};ef.exports=Qr(typeof globalThis=="object"&&globalThis)||Qr(typeof window=="object"&&window)||Qr(typeof self=="object"&&self)||Qr(typeof global=="object"&&global)||Qr(typeof rs=="object"&&rs)||function(){return this}()||Function("return this")()});var ns=f((pj,of)=>{"use strict";var tA=ir(),nf=Function.prototype,tf=nf.apply,rf=nf.call;of.exports=typeof Reflect=="object"&&Reflect.apply||(tA?rf.bind(tf):function(){return rf.apply(tf,arguments)})});var pt=f((hj,sf)=>{"use strict";var af=fe(),rA=af({}.toString),nA=af("".slice);sf.exports=function(e){return nA(rA(e),8,-1)}});var Xr=f((mj,lf)=>{"use strict";var oA=pt(),iA=fe();lf.exports=function(e){if(oA(e)==="Function")return iA(e)}});var ge=f((vj,cf)=>{"use strict";var os=typeof document=="object"&&document.all;cf.exports=typeof os=="undefined"&&os!==void 0?function(e){return typeof e=="function"||e===os}:function(e){return typeof e=="function"}});var Me=f((gj,uf)=>{"use strict";var aA=Q();uf.exports=!aA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ht=f((_j,df)=>{"use strict";var sA=ir(),lo=Function.prototype.call;df.exports=sA?lo.bind(lo):function(){return lo.apply(lo,arguments)}});var is=f(hf=>{"use strict";var ff={}.propertyIsEnumerable,pf=Object.getOwnPropertyDescriptor,lA=pf&&!ff.call({1:2},1);hf.f=lA?function(t){var r=pf(this,t);return!!r&&r.enumerable}:ff});var Zr=f((bj,mf)=>{"use strict";mf.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var co=f((wj,vf)=>{"use strict";var cA=fe(),uA=Q(),dA=pt(),as=Object,fA=cA("".split);vf.exports=uA(function(){return!as("z").propertyIsEnumerable(0)})?function(e){return dA(e)==="String"?fA(e,""):as(e)}:as});var ar=f((Ej,gf)=>{"use strict";gf.exports=function(e){return e==null}});var sr=f((xj,_f)=>{"use strict";var pA=ar(),hA=TypeError;_f.exports=function(e){if(pA(e))throw new hA("Can't call method on "+e);return e}});var Pt=f((Aj,yf)=>{"use strict";var mA=co(),vA=sr();yf.exports=function(e){return mA(vA(e))}});var pe=f((Sj,bf)=>{"use strict";var gA=ge();bf.exports=function(e){return typeof e=="object"?e!==null:gA(e)}});var mt=f((Ij,wf)=>{"use strict";wf.exports={}});var uo=f((Tj,xf)=>{"use strict";var ss=mt(),ls=re(),_A=ge(),Ef=function(e){return _A(e)?e:void 0};xf.exports=function(e,t){return arguments.length<2?Ef(ss[e])||Ef(ls[e]):ss[e]&&ss[e][t]||ls[e]&&ls[e][t]}});var fo=f((Rj,If)=>{"use strict";var yA=re(),Af=yA.navigator,Sf=Af&&Af.userAgent;If.exports=Sf?String(Sf):""});var ho=f((kj,Pf)=>{"use strict";var Of=re(),cs=fo(),Tf=Of.process,Rf=Of.Deno,kf=Tf&&Tf.versions||Rf&&Rf.version,Cf=kf&&kf.v8,Qe,po;Cf&&(Qe=Cf.split("."),po=Qe[0]>0&&Qe[0]<4?1:+(Qe[0]+Qe[1]));!po&&cs&&(Qe=cs.match(/Edge\/(\d+)/),(!Qe||Qe[1]>=74)&&(Qe=cs.match(/Chrome\/(\d+)/),Qe&&(po=+Qe[1])));Pf.exports=po});var us=f((Cj,Df)=>{"use strict";var Nf=ho(),bA=Q(),wA=re(),EA=wA.String;Df.exports=!!Object.getOwnPropertySymbols&&!bA(function(){var e=Symbol("symbol detection");return!EA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nf&&Nf<41})});var ds=f((Oj,qf)=>{"use strict";var xA=us();qf.exports=xA&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fs=f((Pj,Lf)=>{"use strict";var AA=uo(),SA=ge(),IA=Re(),TA=ds(),RA=Object;Lf.exports=TA?function(e){return typeof e=="symbol"}:function(e){var t=AA("Symbol");return SA(t)&&IA(t.prototype,RA(e))}});var mo=f((Nj,Uf)=>{"use strict";var kA=String;Uf.exports=function(e){try{return kA(e)}catch(t){return"Object"}}});var lr=f((Dj,Mf)=>{"use strict";var CA=ge(),OA=mo(),PA=TypeError;Mf.exports=function(e){if(CA(e))return e;throw new PA(OA(e)+" is not a function")}});var vo=f((qj,Ff)=>{"use strict";var NA=lr(),DA=ar();Ff.exports=function(e,t){var r=e[t];return DA(r)?void 0:NA(r)}});var Bf=f((Lj,jf)=>{"use strict";var ps=ht(),hs=ge(),ms=pe(),qA=TypeError;jf.exports=function(e,t){var r,n;if(t==="string"&&hs(r=e.toString)&&!ms(n=ps(r,e))||hs(r=e.valueOf)&&!ms(n=ps(r,e))||t!=="string"&&hs(r=e.toString)&&!ms(n=ps(r,e)))return n;throw new qA("Can't convert object to primitive value")}});var cr=f((Uj,$f)=>{"use strict";$f.exports=!0});var Vf=f((Mj,Jf)=>{"use strict";var Hf=re(),LA=Object.defineProperty;Jf.exports=function(e,t){try{LA(Hf,e,{value:t,configurable:!0,writable:!0})}catch(r){Hf[e]=t}return t}});var en=f((Fj,zf)=>{"use strict";var UA=cr(),MA=re(),FA=Vf(),Gf="__core-js_shared__",Kf=zf.exports=MA[Gf]||FA(Gf,{});(Kf.versions||(Kf.versions=[])).push({version:"3.41.0",mode:UA?"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 vs=f((jj,Yf)=>{"use strict";var Wf=en();Yf.exports=function(e,t){return Wf[e]||(Wf[e]=t||{})}});var ur=f((Bj,Qf)=>{"use strict";var jA=sr(),BA=Object;Qf.exports=function(e){return BA(jA(e))}});var Fe=f(($j,Xf)=>{"use strict";var $A=fe(),HA=ur(),JA=$A({}.hasOwnProperty);Xf.exports=Object.hasOwn||function(t,r){return JA(HA(t),r)}});var go=f((Hj,Zf)=>{"use strict";var VA=fe(),GA=0,KA=Math.random(),zA=VA(1 .toString);Zf.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zA(++GA+KA,36)}});var ke=f((Jj,tp)=>{"use strict";var WA=re(),YA=vs(),ep=Fe(),QA=go(),XA=us(),ZA=ds(),dr=WA.Symbol,gs=YA("wks"),eS=ZA?dr.for||dr:dr&&dr.withoutSetter||QA;tp.exports=function(e){return ep(gs,e)||(gs[e]=XA&&ep(dr,e)?dr[e]:eS("Symbol."+e)),gs[e]}});var ip=f((Vj,op)=>{"use strict";var tS=ht(),rp=pe(),np=fs(),rS=vo(),nS=Bf(),oS=ke(),iS=TypeError,aS=oS("toPrimitive");op.exports=function(e,t){if(!rp(e)||np(e))return e;var r=rS(e,aS),n;if(r){if(t===void 0&&(t="default"),n=tS(r,e,t),!rp(n)||np(n))return n;throw new iS("Can't convert object to primitive value")}return t===void 0&&(t="number"),nS(e,t)}});var _s=f((Gj,ap)=>{"use strict";var sS=ip(),lS=fs();ap.exports=function(e){var t=sS(e,"string");return lS(t)?t:t+""}});var bs=f((Kj,lp)=>{"use strict";var cS=re(),sp=pe(),ys=cS.document,uS=sp(ys)&&sp(ys.createElement);lp.exports=function(e){return uS?ys.createElement(e):{}}});var ws=f((zj,cp)=>{"use strict";var dS=Me(),fS=Q(),pS=bs();cp.exports=!dS&&!fS(function(){return Object.defineProperty(pS("div"),"a",{get:function(){return 7}}).a!==7})});var Es=f(dp=>{"use strict";var hS=Me(),mS=ht(),vS=is(),gS=Zr(),_S=Pt(),yS=_s(),bS=Fe(),wS=ws(),up=Object.getOwnPropertyDescriptor;dp.f=hS?up:function(t,r){if(t=_S(t),r=yS(r),wS)try{return up(t,r)}catch(n){}if(bS(t,r))return gS(!mS(vS.f,t,r),t[r])}});var pp=f((Yj,fp)=>{"use strict";var ES=Q(),xS=ge(),AS=/#|\.prototype\./,tn=function(e,t){var r=IS[SS(e)];return r===RS?!0:r===TS?!1:xS(t)?ES(t):!!t},SS=tn.normalize=function(e){return String(e).replace(AS,".").toLowerCase()},IS=tn.data={},TS=tn.NATIVE="N",RS=tn.POLYFILL="P";fp.exports=tn});var _o=f((Qj,mp)=>{"use strict";var hp=Xr(),kS=lr(),CS=ir(),OS=hp(hp.bind);mp.exports=function(e,t){return kS(e),t===void 0?e:CS?OS(e,t):function(){return e.apply(t,arguments)}}});var xs=f((Xj,vp)=>{"use strict";var PS=Me(),NS=Q();vp.exports=PS&&NS(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Nt=f((Zj,gp)=>{"use strict";var DS=pe(),qS=String,LS=TypeError;gp.exports=function(e){if(DS(e))return e;throw new LS(qS(e)+" is not an object")}});var Dt=f(yp=>{"use strict";var US=Me(),MS=ws(),FS=xs(),yo=Nt(),_p=_s(),jS=TypeError,As=Object.defineProperty,BS=Object.getOwnPropertyDescriptor,Ss="enumerable",Is="configurable",Ts="writable";yp.f=US?FS?function(t,r,n){if(yo(t),r=_p(r),yo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ts in n&&!n[Ts]){var o=BS(t,r);o&&o[Ts]&&(t[r]=n.value,n={configurable:Is in n?n[Is]:o[Is],enumerable:Ss in n?n[Ss]:o[Ss],writable:!1})}return As(t,r,n)}:As:function(t,r,n){if(yo(t),r=_p(r),yo(n),MS)try{return As(t,r,n)}catch(o){}if("get"in n||"set"in n)throw new jS("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Kt=f((t2,bp)=>{"use strict";var $S=Me(),HS=Dt(),JS=Zr();bp.exports=$S?function(e,t,r){return HS.f(e,t,JS(1,r))}:function(e,t,r){return e[t]=r,e}});var ne=f((r2,Ep)=>{"use strict";var rn=re(),VS=ns(),GS=Xr(),KS=ge(),zS=Es().f,WS=pp(),fr=mt(),YS=_o(),pr=Kt(),wp=Fe();en();var QS=function(e){var t=function(r,n,o){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,o)}return VS(e,this,arguments)};return t.prototype=e.prototype,t};Ep.exports=function(e,t){var r=e.target,n=e.global,o=e.stat,i=e.proto,a=n?rn:o?rn[r]:rn[r]&&rn[r].prototype,s=n?fr:fr[r]||pr(fr,r,{})[r],l=s.prototype,c,d,u,h,p,m,g,_,v;for(h in t)c=WS(n?h:r+(o?".":"#")+h,e.forced),d=!c&&a&&wp(a,h),m=s[h],d&&(e.dontCallGetSet?(v=zS(a,h),g=v&&v.value):g=a[h]),p=d&&g?g:t[h],!(!c&&!i&&typeof m==typeof p)&&(e.bind&&d?_=YS(p,rn):e.wrap&&d?_=QS(p):i&&KS(p)?_=GS(p):_=p,(e.sham||p&&p.sham||m&&m.sham)&&pr(_,"sham",!0),pr(s,h,_),i&&(u=r+"Prototype",wp(fr,u)||pr(fr,u,{}),pr(fr[u],h,p),e.real&&l&&(c||!l[h])&&pr(l,h,p)))}});var Ap=f((n2,xp)=>{"use strict";var XS=Math.ceil,ZS=Math.floor;xp.exports=Math.trunc||function(t){var r=+t;return(r>0?ZS:XS)(r)}});var Rs=f((o2,Sp)=>{"use strict";var eI=Ap();Sp.exports=function(e){var t=+e;return t!==t||t===0?0:eI(t)}});var ks=f((i2,Ip)=>{"use strict";var tI=Rs(),rI=Math.min;Ip.exports=function(e){var t=tI(e);return t>0?rI(t,9007199254740991):0}});var hr=f((a2,Tp)=>{"use strict";var nI=ks();Tp.exports=function(e){return nI(e.length)}});var nn=f((s2,Rp)=>{"use strict";var oI=pt();Rp.exports=Array.isArray||function(t){return oI(t)==="Array"}});var bo=f((l2,Cp)=>{"use strict";var iI=ke(),aI=iI("toStringTag"),kp={};kp[aI]="z";Cp.exports=String(kp)==="[object z]"});var mr=f((c2,Op)=>{"use strict";var sI=bo(),lI=ge(),wo=pt(),cI=ke(),uI=cI("toStringTag"),dI=Object,fI=wo(function(){return arguments}())==="Arguments",pI=function(e,t){try{return e[t]}catch(r){}};Op.exports=sI?wo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=pI(t=dI(e),uI))=="string"?r:fI?wo(t):(n=wo(t))==="Object"&&lI(t.callee)?"Arguments":n}});var Np=f((u2,Pp)=>{"use strict";var hI=fe(),mI=ge(),Cs=en(),vI=hI(Function.toString);mI(Cs.inspectSource)||(Cs.inspectSource=function(e){return vI(e)});Pp.exports=Cs.inspectSource});var Ps=f((d2,Mp)=>{"use strict";var gI=fe(),_I=Q(),Dp=ge(),yI=mr(),bI=uo(),wI=Np(),qp=function(){},Lp=bI("Reflect","construct"),Os=/^\s*(?:class|function)\b/,EI=gI(Os.exec),xI=!Os.test(qp),on=function(t){if(!Dp(t))return!1;try{return Lp(qp,[],t),!0}catch(r){return!1}},Up=function(t){if(!Dp(t))return!1;switch(yI(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xI||!!EI(Os,wI(t))}catch(r){return!0}};Up.sham=!0;Mp.exports=!Lp||_I(function(){var e;return on(on.call)||!on(Object)||!on(function(){e=!0})||e})?Up:on});var $p=f((f2,Bp)=>{"use strict";var Fp=nn(),AI=Ps(),SI=pe(),II=ke(),TI=II("species"),jp=Array;Bp.exports=function(e){var t;return Fp(e)&&(t=e.constructor,AI(t)&&(t===jp||Fp(t.prototype))?t=void 0:SI(t)&&(t=t[TI],t===null&&(t=void 0))),t===void 0?jp:t}});var Ns=f((p2,Hp)=>{"use strict";var RI=$p();Hp.exports=function(e,t){return new(RI(e))(t===0?0:t)}});var Lt=f((h2,Vp)=>{"use strict";var kI=_o(),CI=fe(),OI=co(),PI=ur(),NI=hr(),DI=Ns(),Jp=CI([].push),qt=function(e){var t=e===1,r=e===2,n=e===3,o=e===4,i=e===6,a=e===7,s=e===5||i;return function(l,c,d,u){for(var h=PI(l),p=OI(h),m=NI(p),g=kI(c,d),_=0,v=u||DI,y=t?v(l,m):r||a?v(l,0):void 0,A,k;m>_;_++)if((s||_ in p)&&(A=p[_],k=g(A,_,h),e))if(t)y[_]=k;else if(k)switch(e){case 3:return!0;case 5:return A;case 6:return _;case 2:Jp(y,A)}else switch(e){case 4:return!1;case 7:Jp(y,A)}return i?-1:n||o?o:y}};Vp.exports={forEach:qt(0),map:qt(1),filter:qt(2),some:qt(3),every:qt(4),find:qt(5),findIndex:qt(6),filterReject:qt(7)}});var an=f((m2,Gp)=>{"use strict";var qI=Q(),LI=ke(),UI=ho(),MI=LI("species");Gp.exports=function(e){return UI>=51||!qI(function(){var t=[],r=t.constructor={};return r[MI]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Kp=f(()=>{"use strict";var FI=ne(),jI=Lt().filter,BI=an(),$I=BI("filter");FI({target:"Array",proto:!0,forced:!$I},{filter:function(t){return jI(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ge=f((_2,zp)=>{"use strict";var HI=re(),JI=mt();zp.exports=function(e,t){var r=JI[e+"Prototype"],n=r&&r[t];if(n)return n;var o=HI[e],i=o&&o.prototype;return i&&i[t]}});var Yp=f((y2,Wp)=>{"use strict";Kp();var VI=Ge();Wp.exports=VI("Array","filter")});var Xp=f((b2,Qp)=>{"use strict";var GI=Re(),KI=Yp(),Ds=Array.prototype;Qp.exports=function(e){var t=e.filter;return e===Ds||GI(Ds,e)&&t===Ds.filter?KI:t}});var eh=f((w2,Zp)=>{"use strict";var zI=Xp();Zp.exports=zI});var rh=f((E2,th)=>{th.exports=eh()});var sn=f((x2,nh)=>{"use strict";var WI=Q();nh.exports=function(e,t){var r=[][e];return!!r&&WI(function(){r.call(null,t||function(){return 1},1)})}});var oh=f(()=>{"use strict";var YI=ne(),QI=Lt().every,XI=sn(),ZI=XI("every");YI({target:"Array",proto:!0,forced:!ZI},{every:function(t){return QI(this,t,arguments.length>1?arguments[1]:void 0)}})});var ah=f((I2,ih)=>{"use strict";oh();var eT=Ge();ih.exports=eT("Array","every")});var lh=f((T2,sh)=>{"use strict";var tT=Re(),rT=ah(),qs=Array.prototype;sh.exports=function(e){var t=e.every;return e===qs||tT(qs,e)&&t===qs.every?rT:t}});var uh=f((R2,ch)=>{"use strict";var nT=lh();ch.exports=nT});var fh=f((k2,dh)=>{dh.exports=uh()});var hh=f((C2,ph)=>{"use strict";var oT=Lt().forEach,iT=sn(),aT=iT("forEach");ph.exports=aT?[].forEach:function(t){return oT(this,t,arguments.length>1?arguments[1]:void 0)}});var vh=f(()=>{"use strict";var sT=ne(),mh=hh();sT({target:"Array",proto:!0,forced:[].forEach!==mh},{forEach:mh})});var _h=f((N2,gh)=>{"use strict";vh();var lT=Ge();gh.exports=lT("Array","forEach")});var bh=f((D2,yh)=>{"use strict";var cT=_h();yh.exports=cT});var wh=f(()=>{});var xh=f((U2,Eh)=>{"use strict";var uT=mr(),dT=Fe(),fT=Re(),pT=bh();wh();var Ls=Array.prototype,hT={DOMTokenList:!0,NodeList:!0};Eh.exports=function(e){var t=e.forEach;return e===Ls||fT(Ls,e)&&t===Ls.forEach||dT(hT,uT(e))?pT:t}});var Sh=f((M2,Ah)=>{Ah.exports=xh()});var Th=f((F2,Ih)=>{"use strict";var mT=TypeError,vT=9007199254740991;Ih.exports=function(e){if(e>vT)throw mT("Maximum allowed index exceeded");return e}});var Us=f((j2,Rh)=>{"use strict";var gT=Me(),_T=Dt(),yT=Zr();Rh.exports=function(e,t,r){gT?_T.f(e,t,yT(0,r)):e[t]=r}});var Ph=f(()=>{"use strict";var bT=ne(),wT=Q(),ET=nn(),xT=pe(),AT=ur(),ST=hr(),kh=Th(),Ch=Us(),IT=Ns(),TT=an(),RT=ke(),kT=ho(),Oh=RT("isConcatSpreadable"),CT=kT>=51||!wT(function(){var e=[];return e[Oh]=!1,e.concat()[0]!==e}),OT=function(e){if(!xT(e))return!1;var t=e[Oh];return t!==void 0?!!t:ET(e)},PT=!CT||!TT("concat");bT({target:"Array",proto:!0,arity:1,forced:PT},{concat:function(t){var r=AT(this),n=IT(r,0),o=0,i,a,s,l,c;for(i=-1,s=arguments.length;i<s;i++)if(c=i===-1?r:arguments[i],OT(c))for(l=ST(c),kh(o+l),a=0;a<l;a++,o++)a in c&&Ch(n,o,c[a]);else kh(o+1),Ch(n,o++,c);return n.length=o,n}})});var Dh=f((H2,Nh)=>{"use strict";Ph();var NT=Ge();Nh.exports=NT("Array","concat")});var Lh=f((J2,qh)=>{"use strict";var DT=Re(),qT=Dh(),Ms=Array.prototype;qh.exports=function(e){var t=e.concat;return e===Ms||DT(Ms,e)&&t===Ms.concat?qT:t}});var Mh=f((V2,Uh)=>{"use strict";var LT=Lh();Uh.exports=LT});var jh=f((G2,Fh)=>{Fh.exports=Mh()});var Bh=f(()=>{"use strict";var UT=ne(),MT=Lt().some,FT=sn(),jT=FT("some");UT({target:"Array",proto:!0,forced:!jT},{some:function(t){return MT(this,t,arguments.length>1?arguments[1]:void 0)}})});var Hh=f((W2,$h)=>{"use strict";Bh();var BT=Ge();$h.exports=BT("Array","some")});var Vh=f((Y2,Jh)=>{"use strict";var $T=Re(),HT=Hh(),Fs=Array.prototype;Jh.exports=function(e){var t=e.some;return e===Fs||$T(Fs,e)&&t===Fs.some?HT:t}});var Kh=f((Q2,Gh)=>{"use strict";var JT=Vh();Gh.exports=JT});var Wh=f((X2,zh)=>{zh.exports=Kh()});var Qh=f((Z2,Yh)=>{"use strict";var ln=re(),VT=fo(),GT=pt(),Eo=function(e){return VT.slice(0,e.length)===e};Yh.exports=function(){return Eo("Bun/")?"BUN":Eo("Cloudflare-Workers")?"CLOUDFLARE":Eo("Deno/")?"DENO":Eo("Node.js/")?"NODE":ln.Bun&&typeof Bun.version=="string"?"BUN":ln.Deno&&typeof Deno.version=="object"?"DENO":GT(ln.process)==="process"?"NODE":ln.window&&ln.document?"BROWSER":"REST"}()});var cn=f((eB,Xh)=>{"use strict";var KT=fe();Xh.exports=KT([].slice)});var em=f((tB,Zh)=>{"use strict";var zT=TypeError;Zh.exports=function(e,t){if(e<t)throw new zT("Not enough arguments");return e}});var js=f((rB,rm)=>{"use strict";var tm=re(),WT=ns(),YT=ge(),QT=Qh(),XT=fo(),ZT=cn(),e1=em(),t1=tm.Function,r1=/MSIE .\./.test(XT)||QT==="BUN"&&function(){var e=tm.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();rm.exports=function(e,t){var r=t?2:1;return r1?function(n,o){var i=e1(arguments.length,1)>r,a=YT(n)?n:t1(n),s=i?ZT(arguments,r):[],l=i?function(){WT(a,this,s)}:a;return t?e(l,o):e(l)}:e}});var im=f(()=>{"use strict";var n1=ne(),om=re(),o1=js(),nm=o1(om.setInterval,!0);n1({global:!0,bind:!0,forced:om.setInterval!==nm},{setInterval:nm})});var lm=f(()=>{"use strict";var i1=ne(),sm=re(),a1=js(),am=a1(sm.setTimeout,!0);i1({global:!0,bind:!0,forced:sm.setTimeout!==am},{setTimeout:am})});var cm=f(()=>{"use strict";im();lm()});var dm=f((cB,um)=>{"use strict";cm();var s1=mt();um.exports=s1.setTimeout});var pm=f((uB,fm)=>{fm.exports=dm()});function Hs(e,t){X.__h&&X.__h(Ce,e,Ao||t),Ao=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Js(e,t){var r=Hs(un++,3);!X.__s&&Ks(r.__H,t)&&(r.__=e,r.u=t,Ce.__H.__h.push(r))}function Vs(e,t){var r=Hs(un++,4);!X.__s&&Ks(r.__H,t)&&(r.__=e,r.u=t,Ce.__h.push(r))}function Gs(e){return Ao=5,dn(function(){return{current:e}},[])}function dn(e,t){var r=Hs(un++,7);return Ks(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function So(e,t){return Ao=8,dn(function(){return e},t)}function l1(){for(var e;e=Em.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xo),e.__H.__h.forEach($s),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}function c1(e){var t,r=function(){clearTimeout(n),wm&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wm&&(t=requestAnimationFrame(r))}function xo(e){var t=Ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ce=t}function $s(e){var t=Ce;e.__c=e.__(),Ce=t}function Ks(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}var un,Ce,Bs,hm,Ao,Em,X,mm,vm,gm,_m,ym,bm,wm,zs=T(()=>{or();Ao=0,Em=[],X=C,mm=X.__b,vm=X.__r,gm=X.diffed,_m=X.__c,ym=X.unmount,bm=X.__;X.__b=function(e){Ce=null,mm&&mm(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bm&&bm(e,t)},X.__r=function(e){vm&&vm(e),un=0;var t=(Ce=e.__c).__H;t&&(Bs===Ce?(t.__h=[],Ce.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(xo),t.__h.forEach($s),t.__h=[],un=0)),Bs=Ce},X.diffed=function(e){gm&&gm(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Em.push(t)!==1&&hm===X.requestAnimationFrame||((hm=X.requestAnimationFrame)||c1)(l1)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Bs=Ce=null},X.__c=function(e,t){t.some(function(r){try{r.__h.forEach(xo),r.__h=r.__h.filter(function(n){return!n.__||$s(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],X.__e(n,r.__v)}}),_m&&_m(e,t)},X.unmount=function(e){ym&&ym(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{xo(n)}catch(o){t=o}}),r.__H=void 0,t&&X.__e(t,r.__v))};wm=typeof requestAnimationFrame=="function"});function Pm(e,t){for(var r in t)e[r]=t[r];return e}function Ys(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 xm(e,t){this.props=e,this.context=t}function Qs(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ys(this.props,o)}function n(o){return this.shouldComponentUpdate=r,ot(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Nm(e){function t(r){var n=Pm({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=d1,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Dm(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=Pm({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Dm(n,t,r)})),e}function qm(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qm(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 Ws(){this.__u=0,this.o=null,this.__b=null}function Lm(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Io(){this.i=null,this.l=null}function Um(e,t,r){return t.__k==null&&(t.textContent=""),nr(e,t),typeof r=="function"&&r(),e?e.__c:null}function y1(){}function b1(){return this.cancelBubble}function w1(){return this.defaultPrevented}var Am,d1,f1,Sm,Im,p1,h1,m1,v1,g1,_1,Tm,Mm,E1,Rm,km,Cm,Xs=T(()=>{or();or();zs();zs();(xm.prototype=new Ue).isPureReactComponent=!0,xm.prototype.shouldComponentUpdate=function(e,t){return Ys(this.props,e)||Ys(this.state,t)};Am=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Am&&Am(e)};d1=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;f1=C.__e;C.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}f1(e,t,r,n)};Sm=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Sm&&Sm(e)},(Ws.prototype=new Ue).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Lm(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=qm(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)},Ws.prototype.componentWillUnmount=function(){this.o=[]},Ws.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]=Dm(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&ot(it,null,e.fallback);return o&&(o.__u&=-33),[ot(it,null,t.__a?null:e.children),o]};Im=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]}};(Io.prototype=new Ue).__a=function(e){var t=this,r=Lm(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Im(t,e,n)):o()};r?r(i):i()}},Io.prototype.render=function(e){this.i=null,this.l=new Map;var t=Yr(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},Io.prototype.componentDidUpdate=Io.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Im(e,r,t)})};p1=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,h1=/^(?: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]/,m1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,v1=/[A-Z0-9]/g,g1=typeof document!="undefined",_1=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Tm=C.event;C.event=function(e){return Tm&&(e=Tm(e)),e.persist=y1,e.isPropagationStopped=b1,e.isDefaultPrevented=w1,e.nativeEvent=e};E1={enumerable:!1,configurable:!0,get:function(){return this.class}},Rm=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||g1&&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"||_1(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":m1.test(a)&&(a=l):l=a="oninput":i&&h1.test(a)?a=a.replace(v1,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Yr(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Yr(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",E1)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=p1,Rm&&Rm(e)};km=C.__r;C.__r=function(e){km&&km(e),Mm=e.__c};Cm=C.diffed;C.diffed=function(e){Cm&&Cm(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),Mm=null}});var Zs=f((IB,Fm)=>{"use strict";var x1=Rs(),A1=Math.max,S1=Math.min;Fm.exports=function(e,t){var r=x1(e);return r<0?A1(r+t,0):S1(r,t)}});var $m=f(()=>{"use strict";var I1=ne(),jm=nn(),T1=Ps(),R1=pe(),Bm=Zs(),k1=hr(),C1=Pt(),O1=Us(),P1=ke(),N1=an(),D1=cn(),q1=N1("slice"),L1=P1("species"),el=Array,U1=Math.max;I1({target:"Array",proto:!0,forced:!q1},{slice:function(t,r){var n=C1(this),o=k1(n),i=Bm(t,o),a=Bm(r===void 0?o:r,o),s,l,c;if(jm(n)&&(s=n.constructor,T1(s)&&(s===el||jm(s.prototype))?s=void 0:R1(s)&&(s=s[L1],s===null&&(s=void 0)),s===el||s===void 0))return D1(n,i,a);for(l=new(s===void 0?el:s)(U1(a-i,0)),c=0;i<a;i++,c++)i in n&&O1(l,c,n[i]);return l.length=c,l}})});var Jm=f((kB,Hm)=>{"use strict";$m();var M1=Ge();Hm.exports=M1("Array","slice")});var Gm=f((CB,Vm)=>{"use strict";var F1=Re(),j1=Jm(),tl=Array.prototype;Vm.exports=function(e){var t=e.slice;return e===tl||F1(tl,e)&&t===tl.slice?j1:t}});var zm=f((OB,Km)=>{"use strict";var B1=Gm();Km.exports=B1});var Ym=f((PB,Wm)=>{Wm.exports=zm()});var Qm=f(()=>{"use strict";var $1=ne(),H1=nn();$1({target:"Array",stat:!0},{isArray:H1})});var Zm=f((qB,Xm)=>{"use strict";Qm();var J1=mt();Xm.exports=J1.Array.isArray});var tv=f((LB,ev)=>{"use strict";var V1=Zm();ev.exports=V1});var nv=f((UB,rv)=>{rv.exports=tv()});var rl=f((MB,ov)=>{"use strict";var G1=mr(),K1=String;ov.exports=function(e){if(G1(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return K1(e)}});var av=f((FB,iv)=>{"use strict";var z1=pe(),W1=pt(),Y1=ke(),Q1=Y1("match");iv.exports=function(e){var t;return z1(e)&&((t=e[Q1])!==void 0?!!t:W1(e)==="RegExp")}});var lv=f((jB,sv)=>{"use strict";var X1=av(),Z1=TypeError;sv.exports=function(e){if(X1(e))throw new Z1("The method doesn't accept regular expressions");return e}});var uv=f((BB,cv)=>{"use strict";var eR=ke(),tR=eR("match");cv.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[tR]=!1,"/./"[e](t)}catch(n){}}return!1}});var pv=f(()=>{"use strict";var rR=ne(),nR=Xr(),oR=Es().f,iR=ks(),dv=rl(),aR=lv(),sR=sr(),lR=uv(),cR=cr(),uR=nR("".slice),dR=Math.min,fv=lR("startsWith"),fR=!cR&&!fv&&!!function(){var e=oR(String.prototype,"startsWith");return e&&!e.writable}();rR({target:"String",proto:!0,forced:!fR&&!fv},{startsWith:function(t){var r=dv(sR(this));aR(t);var n=iR(dR(arguments.length>1?arguments[1]:void 0,r.length)),o=dv(t);return uR(r,n,n+o.length)===o}})});var mv=f((JB,hv)=>{"use strict";pv();var pR=Ge();hv.exports=pR("String","startsWith")});var gv=f((VB,vv)=>{"use strict";var hR=Re(),mR=mv(),nl=String.prototype;vv.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===nl||hR(nl,e)&&t===nl.startsWith?mR:t}});var yv=f((GB,_v)=>{"use strict";var vR=gv();_v.exports=vR});var wv=f((KB,bv)=>{bv.exports=yv()});var Iv=f((zB,Sv)=>{"use strict";var xv=fe(),gR=lr(),_R=pe(),yR=Fe(),Ev=cn(),bR=ir(),Av=Function,wR=xv([].concat),ER=xv([].join),ol={},xR=function(e,t,r){if(!yR(ol,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";ol[t]=Av("C,a","return new C("+ER(n,",")+")")}return ol[t](e,r)};Sv.exports=bR?Av.bind:function(t){var r=gR(this),n=r.prototype,o=Ev(arguments,1),i=function(){var s=wR(o,Ev(arguments));return this instanceof i?xR(r,s.length,s):r.apply(t,s)};return _R(n)&&(i.prototype=n),i}});var Rv=f(()=>{"use strict";var AR=ne(),Tv=Iv();AR({target:"Function",proto:!0,forced:Function.bind!==Tv},{bind:Tv})});var Cv=f((QB,kv)=>{"use strict";Rv();var SR=Ge();kv.exports=SR("Function","bind")});var Pv=f((XB,Ov)=>{"use strict";var IR=Re(),TR=Cv(),il=Function.prototype;Ov.exports=function(e){var t=e.bind;return e===il||IR(il,e)&&t===il.bind?TR:t}});var Dv=f((ZB,Nv)=>{"use strict";var RR=Pv();Nv.exports=RR});var Lv=f((e5,qv)=>{qv.exports=Dv()});var Mv=f((t5,Uv)=>{"use strict";Uv.exports=function(){}});var zt=f((r5,Fv)=>{"use strict";Fv.exports={}});var al=f((n5,Bv)=>{"use strict";var kR=re(),CR=ge(),jv=kR.WeakMap;Bv.exports=CR(jv)&&/native code/.test(String(jv))});var To=f((o5,Hv)=>{"use strict";var OR=vs(),PR=go(),$v=OR("keys");Hv.exports=function(e){return $v[e]||($v[e]=PR(e))}});var fn=f((i5,Jv)=>{"use strict";Jv.exports={}});var hn=f((a5,Kv)=>{"use strict";var NR=al(),Gv=re(),DR=pe(),qR=Kt(),sl=Fe(),ll=en(),LR=To(),UR=fn(),Vv="Object already initialized",cl=Gv.TypeError,MR=Gv.WeakMap,Ro,pn,ko,FR=function(e){return ko(e)?pn(e):Ro(e,{})},jR=function(e){return function(t){var r;if(!DR(t)||(r=pn(t)).type!==e)throw new cl("Incompatible receiver, "+e+" required");return r}};NR||ll.state?(Xe=ll.state||(ll.state=new MR),Xe.get=Xe.get,Xe.has=Xe.has,Xe.set=Xe.set,Ro=function(e,t){if(Xe.has(e))throw new cl(Vv);return t.facade=e,Xe.set(e,t),t},pn=function(e){return Xe.get(e)||{}},ko=function(e){return Xe.has(e)}):(Wt=LR("state"),UR[Wt]=!0,Ro=function(e,t){if(sl(e,Wt))throw new cl(Vv);return t.facade=e,qR(e,Wt,t),t},pn=function(e){return sl(e,Wt)?e[Wt]:{}},ko=function(e){return sl(e,Wt)});var Xe,Wt;Kv.exports={set:Ro,get:pn,has:ko,enforce:FR,getterFor:jR}});var fl=f((s5,Wv)=>{"use strict";var ul=Me(),BR=Fe(),zv=Function.prototype,$R=ul&&Object.getOwnPropertyDescriptor,dl=BR(zv,"name"),HR=dl&&(function(){}).name==="something",JR=dl&&(!ul||ul&&$R(zv,"name").configurable);Wv.exports={EXISTS:dl,PROPER:HR,CONFIGURABLE:JR}});var pl=f((l5,Qv)=>{"use strict";var VR=Pt(),GR=Zs(),KR=hr(),Yv=function(e){return function(t,r,n){var o=VR(t),i=KR(o);if(i===0)return!e&&-1;var a=GR(n,i),s;if(e&&r!==r){for(;i>a;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}};Qv.exports={includes:Yv(!0),indexOf:Yv(!1)}});var ml=f((c5,Zv)=>{"use strict";var zR=fe(),hl=Fe(),WR=Pt(),YR=pl().indexOf,QR=fn(),Xv=zR([].push);Zv.exports=function(e,t){var r=WR(e),n=0,o=[],i;for(i in r)!hl(QR,i)&&hl(r,i)&&Xv(o,i);for(;t.length>n;)hl(r,i=t[n++])&&(~YR(o,i)||Xv(o,i));return o}});var Co=f((u5,eg)=>{"use strict";eg.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var vl=f((d5,tg)=>{"use strict";var XR=ml(),ZR=Co();tg.exports=Object.keys||function(t){return XR(t,ZR)}});var ng=f(rg=>{"use strict";var ek=Me(),tk=xs(),rk=Dt(),nk=Nt(),ok=Pt(),ik=vl();rg.f=ek&&!tk?Object.defineProperties:function(t,r){nk(t);for(var n=ok(r),o=ik(r),i=o.length,a=0,s;i>a;)rk.f(t,s=o[a++],n[s]);return t}});var ig=f((p5,og)=>{"use strict";var ak=uo();og.exports=ak("document","documentElement")});var No=f((h5,fg)=>{"use strict";var sk=Nt(),lk=ng(),ag=Co(),ck=fn(),uk=ig(),dk=bs(),fk=To(),sg=">",lg="<",_l="prototype",yl="script",ug=fk("IE_PROTO"),gl=function(){},dg=function(e){return lg+yl+sg+e+lg+"/"+yl+sg},cg=function(e){e.write(dg("")),e.close();var t=e.parentWindow.Object;return e=null,t},pk=function(){var e=dk("iframe"),t="java"+yl+":",r;return e.style.display="none",uk.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(dg("document.F=Object")),r.close(),r.F},Oo,Po=function(){try{Oo=new ActiveXObject("htmlfile")}catch(t){}Po=typeof document!="undefined"?document.domain&&Oo?cg(Oo):pk():cg(Oo);for(var e=ag.length;e--;)delete Po[_l][ag[e]];return Po()};ck[ug]=!0;fg.exports=Object.create||function(t,r){var n;return t!==null?(gl[_l]=sk(t),n=new gl,gl[_l]=null,n[ug]=t):n=Po(),r===void 0?n:lk.f(n,r)}});var hg=f((m5,pg)=>{"use strict";var hk=Q();pg.exports=!hk(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var wl=f((v5,vg)=>{"use strict";var mk=Fe(),vk=ge(),gk=ur(),_k=To(),yk=hg(),mg=_k("IE_PROTO"),bl=Object,bk=bl.prototype;vg.exports=yk?bl.getPrototypeOf:function(e){var t=gk(e);if(mk(t,mg))return t[mg];var r=t.constructor;return vk(r)&&t instanceof r?r.prototype:t instanceof bl?bk:null}});var Do=f((g5,gg)=>{"use strict";var wk=Kt();gg.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:wk(e,t,r),e}});var Sl=f((_5,bg)=>{"use strict";var Ek=Q(),xk=ge(),Ak=pe(),Sk=No(),_g=wl(),Ik=Do(),Tk=ke(),Rk=cr(),Al=Tk("iterator"),yg=!1,vt,El,xl;[].keys&&(xl=[].keys(),"next"in xl?(El=_g(_g(xl)),El!==Object.prototype&&(vt=El)):yg=!0);var kk=!Ak(vt)||Ek(function(){var e={};return vt[Al].call(e)!==e});kk?vt={}:Rk&&(vt=Sk(vt));xk(vt[Al])||Ik(vt,Al,function(){return this});bg.exports={IteratorPrototype:vt,BUGGY_SAFARI_ITERATORS:yg}});var Eg=f((y5,wg)=>{"use strict";var Ck=bo(),Ok=mr();wg.exports=Ck?{}.toString:function(){return"[object "+Ok(this)+"]"}});var mn=f((b5,Ag)=>{"use strict";var Pk=bo(),Nk=Dt().f,Dk=Kt(),qk=Fe(),Lk=Eg(),Uk=ke(),xg=Uk("toStringTag");Ag.exports=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(qk(o,xg)||Nk(o,xg,{configurable:!0,value:t}),n&&!Pk&&Dk(o,"toString",Lk))}});var Ig=f((w5,Sg)=>{"use strict";var Mk=Sl().IteratorPrototype,Fk=No(),jk=Zr(),Bk=mn(),$k=zt(),Hk=function(){return this};Sg.exports=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Fk(Mk,{next:jk(+!n,r)}),Bk(e,o,!1,!0),$k[o]=Hk,e}});var Rg=f((E5,Tg)=>{"use strict";var Jk=fe(),Vk=lr();Tg.exports=function(e,t,r){try{return Jk(Vk(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Cg=f((x5,kg)=>{"use strict";var Gk=pe();kg.exports=function(e){return Gk(e)||e===null}});var Pg=f((A5,Og)=>{"use strict";var Kk=Cg(),zk=String,Wk=TypeError;Og.exports=function(e){if(Kk(e))return e;throw new Wk("Can't set "+zk(e)+" as a prototype")}});var Dg=f((S5,Ng)=>{"use strict";var Yk=Rg(),Qk=pe(),Xk=sr(),Zk=Pg();Ng.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Yk(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(o,i){return Xk(o),Zk(i),Qk(o)&&(e?r(o,i):o.__proto__=i),o}}():void 0)});var Vg=f((I5,Jg)=>{"use strict";var eC=ne(),tC=ht(),qo=cr(),$g=fl(),rC=ge(),nC=Ig(),qg=wl(),Lg=Dg(),oC=mn(),iC=Kt(),Il=Do(),aC=ke(),Ug=zt(),Hg=Sl(),sC=$g.PROPER,lC=$g.CONFIGURABLE,Mg=Hg.IteratorPrototype,Lo=Hg.BUGGY_SAFARI_ITERATORS,vn=aC("iterator"),Fg="keys",gn="values",jg="entries",Bg=function(){return this};Jg.exports=function(e,t,r,n,o,i,a){nC(r,t,n);var s=function(v){if(v===o&&h)return h;if(!Lo&&v&&v in d)return d[v];switch(v){case Fg:return function(){return new r(this,v)};case gn:return function(){return new r(this,v)};case jg:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[vn]||d["@@iterator"]||o&&d[o],h=!Lo&&u||s(o),p=t==="Array"&&d.entries||u,m,g,_;if(p&&(m=qg(p.call(new e)),m!==Object.prototype&&m.next&&(!qo&&qg(m)!==Mg&&(Lg?Lg(m,Mg):rC(m[vn])||Il(m,vn,Bg)),oC(m,l,!0,!0),qo&&(Ug[l]=Bg))),sC&&o===gn&&u&&u.name!==gn&&(!qo&&lC?iC(d,"name",gn):(c=!0,h=function(){return tC(u,this)})),o)if(g={values:s(gn),keys:i?h:s(Fg),entries:s(jg)},a)for(_ in g)(Lo||c||!(_ in d))&&Il(d,_,g[_]);else eC({target:t,proto:!0,forced:Lo||c},g);return(!qo||a)&&d[vn]!==h&&Il(d,vn,h,{name:o}),Ug[t]=h,g}});var Kg=f((T5,Gg)=>{"use strict";Gg.exports=function(e,t){return{value:e,done:t}}});var Rl=f((R5,Xg)=>{"use strict";var cC=Pt(),Tl=Mv(),zg=zt(),Yg=hn(),uC=Dt().f,dC=Vg(),Uo=Kg(),fC=cr(),pC=Me(),Qg="Array Iterator",hC=Yg.set,mC=Yg.getterFor(Qg);Xg.exports=dC(Array,"Array",function(e,t){hC(this,{type:Qg,target:cC(e),index:0,kind:t})},function(){var e=mC(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Uo(void 0,!0);switch(e.kind){case"keys":return Uo(r,!1);case"values":return Uo(t[r],!1)}return Uo([r,t[r]],!1)},"values");var Wg=zg.Arguments=zg.Array;Tl("keys");Tl("values");Tl("entries");if(!fC&&pC&&Wg.name!=="values")try{uC(Wg,"name",{value:"values"})}catch(e){}});var Zg=f(()=>{});var kl=f((O5,e_)=>{"use strict";var vC=Q();e_.exports=!vC(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Cl=f((P5,t_)=>{"use strict";var gC=Do();t_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:gC(e,n,t[n],r);return e}});var Ol=f(r_=>{"use strict";var _C=ml(),yC=Co(),bC=yC.concat("length","prototype");r_.f=Object.getOwnPropertyNames||function(t){return _C(t,bC)}});var a_=f((D5,i_)=>{"use strict";var wC=pt(),EC=Pt(),n_=Ol().f,xC=cn(),o_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AC=function(e){try{return n_(e)}catch(t){return xC(o_)}};i_.exports.f=function(t){return o_&&wC(t)==="Window"?AC(t):n_(EC(t))}});var l_=f((q5,s_)=>{"use strict";var SC=Q();s_.exports=SC(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var d_=f((L5,u_)=>{"use strict";var IC=Q(),TC=pe(),RC=pt(),c_=l_(),Mo=Object.isExtensible,kC=IC(function(){Mo(1)});u_.exports=kC||c_?function(t){return!TC(t)||c_&&RC(t)==="ArrayBuffer"?!1:Mo?Mo(t):!0}:Mo});var Fo=f((U5,h_)=>{"use strict";var CC=ne(),OC=fe(),PC=fn(),NC=pe(),Pl=Fe(),DC=Dt().f,f_=Ol(),qC=a_(),Nl=d_(),LC=go(),UC=kl(),p_=!1,gt=LC("meta"),MC=0,Dl=function(e){DC(e,gt,{value:{objectID:"O"+MC++,weakData:{}}})},FC=function(e,t){if(!NC(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Pl(e,gt)){if(!Nl(e))return"F";if(!t)return"E";Dl(e)}return e[gt].objectID},jC=function(e,t){if(!Pl(e,gt)){if(!Nl(e))return!0;if(!t)return!1;Dl(e)}return e[gt].weakData},BC=function(e){return UC&&p_&&Nl(e)&&!Pl(e,gt)&&Dl(e),e},$C=function(){HC.enable=function(){},p_=!0;var e=f_.f,t=OC([].splice),r={};r[gt]=1,e(r).length&&(f_.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===gt){t(o,i,1);break}return o},CC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qC.f}))},HC=h_.exports={enable:$C,fastKey:FC,getWeakData:jC,onFreeze:BC};PC[gt]=!0});var v_=f((M5,m_)=>{"use strict";var JC=ke(),VC=zt(),GC=JC("iterator"),KC=Array.prototype;m_.exports=function(e){return e!==void 0&&(VC.Array===e||KC[GC]===e)}});var ql=f((F5,__)=>{"use strict";var zC=mr(),g_=vo(),WC=ar(),YC=zt(),QC=ke(),XC=QC("iterator");__.exports=function(e){if(!WC(e))return g_(e,XC)||g_(e,"@@iterator")||YC[zC(e)]}});var b_=f((j5,y_)=>{"use strict";var ZC=ht(),eO=lr(),tO=Nt(),rO=mo(),nO=ql(),oO=TypeError;y_.exports=function(e,t){var r=arguments.length<2?nO(e):t;if(eO(r))return tO(ZC(r,e));throw new oO(rO(e)+" is not iterable")}});var x_=f((B5,E_)=>{"use strict";var iO=ht(),w_=Nt(),aO=vo();E_.exports=function(e,t,r){var n,o;w_(e);try{if(n=aO(e,"return"),!n){if(t==="throw")throw r;return r}n=iO(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return w_(n),r}});var Ll=f(($5,T_)=>{"use strict";var sO=_o(),lO=ht(),cO=Nt(),uO=mo(),dO=v_(),fO=hr(),A_=Re(),pO=b_(),hO=ql(),S_=x_(),mO=TypeError,jo=function(e,t){this.stopped=e,this.result=t},I_=jo.prototype;T_.exports=function(e,t,r){var n=r&&r.that,o=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=sO(t,n),c,d,u,h,p,m,g,_=function(y){return c&&S_(c,"normal",y),new jo(!0,y)},v=function(y){return o?(cO(y),s?l(y[0],y[1],_):l(y[0],y[1])):s?l(y,_):l(y)};if(i)c=e.iterator;else if(a)c=e;else{if(d=hO(e),!d)throw new mO(uO(e)+" is not iterable");if(dO(d)){for(u=0,h=fO(e);h>u;u++)if(p=v(e[u]),p&&A_(I_,p))return p;return new jo(!1)}c=pO(e,d)}for(m=i?e.next:c.next;!(g=lO(m,c)).done;){try{p=v(g.value)}catch(y){S_(c,"throw",y)}if(typeof p=="object"&&p&&A_(I_,p))return p}return new jo(!1)}});var Ul=f((H5,R_)=>{"use strict";var vO=Re(),gO=TypeError;R_.exports=function(e,t){if(vO(t,e))return e;throw new gO("Incorrect invocation")}});var O_=f((J5,C_)=>{"use strict";var _O=ne(),yO=re(),bO=Fo(),wO=Q(),EO=Kt(),xO=Ll(),AO=Ul(),SO=ge(),IO=pe(),TO=ar(),RO=mn(),kO=Dt().f,CO=Lt().forEach,OO=Me(),k_=hn(),PO=k_.set,NO=k_.getterFor;C_.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=yO[e],s=a&&a.prototype,l={},c;if(!OO||!SO(a)||!(o||s.forEach&&!wO(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,i),bO.enable();else{c=t(function(h,p){PO(AO(h,d),{type:e,collection:new a}),TO(p)||xO(p,h[i],{that:h,AS_ENTRIES:n})});var d=c.prototype,u=NO(e);CO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var p=h==="add"||h==="set";h in s&&!(o&&h==="clear")&&EO(d,h,function(m,g){var _=u(this).collection;if(!p&&o&&!IO(m))return h==="get"?void 0:!1;var v=_[h](m===0?0:m,g);return p?this:v})}),o||kO(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return RO(c,e,!1,!0),l[e]=c,_O({global:!0,forced:!0},l),o||r.setStrong(c,e,n),c}});var M_=f((V5,U_)=>{"use strict";var DO=fe(),P_=Cl(),Bo=Fo().getWeakData,qO=Ul(),LO=Nt(),UO=ar(),Ml=pe(),MO=Ll(),D_=Lt(),N_=Fe(),q_=hn(),FO=q_.set,jO=q_.getterFor,BO=D_.find,$O=D_.findIndex,HO=DO([].splice),JO=0,$o=function(e){return e.frozen||(e.frozen=new L_)},L_=function(){this.entries=[]},Fl=function(e,t){return BO(e.entries,function(r){return r[0]===t})};L_.prototype={get:function(e){var t=Fl(this,e);if(t)return t[1]},has:function(e){return!!Fl(this,e)},set:function(e,t){var r=Fl(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=$O(this.entries,function(r){return r[0]===e});return~t&&HO(this.entries,t,1),!!~t}};U_.exports={getConstructor:function(e,t,r,n){var o=e(function(l,c){qO(l,i),FO(l,{type:t,id:JO++,frozen:null}),UO(c)||MO(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=jO(t),s=function(l,c,d){var u=a(l),h=Bo(LO(c),!0);return h===!0?$o(u).set(c,d):h[u.id]=d,l};return P_(i,{delete:function(l){var c=a(this);if(!Ml(l))return!1;var d=Bo(l);return d===!0?$o(c).delete(l):d&&N_(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Ml(c))return!1;var u=Bo(c);return u===!0?$o(d).has(c):u&&N_(u,d.id)}}),P_(i,r?{get:function(c){var d=a(this);if(Ml(c)){var u=Bo(c);if(u===!0)return $o(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)}}),o}}});var G_=f(()=>{"use strict";var VO=kl(),F_=re(),Go=fe(),j_=Cl(),GO=Fo(),KO=O_(),B_=M_(),Ho=pe(),Jo=hn().enforce,zO=Q(),WO=al(),bn=Object,YO=Array.isArray,Vo=bn.isExtensible,$_=bn.isFrozen,QO=bn.isSealed,H_=bn.freeze,XO=bn.seal,ZO=!F_.ActiveXObject&&"ActiveXObject"in F_,_n,J_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},V_=KO("WeakMap",J_,B_),vr=V_.prototype,Ko=Go(vr.set),eP=function(){return VO&&zO(function(){var e=H_([]);return Ko(new V_,e,1),!$_(e)})};WO&&(ZO?(_n=B_.getConstructor(J_,"WeakMap",!0),GO.enable(),jl=Go(vr.delete),yn=Go(vr.has),Bl=Go(vr.get),j_(vr,{delete:function(e){if(Ho(e)&&!Vo(e)){var t=Jo(this);return t.frozen||(t.frozen=new _n),jl(this,e)||t.frozen.delete(e)}return jl(this,e)},has:function(t){if(Ho(t)&&!Vo(t)){var r=Jo(this);return r.frozen||(r.frozen=new _n),yn(this,t)||r.frozen.has(t)}return yn(this,t)},get:function(t){if(Ho(t)&&!Vo(t)){var r=Jo(this);return r.frozen||(r.frozen=new _n),yn(this,t)?Bl(this,t):r.frozen.get(t)}return Bl(this,t)},set:function(t,r){if(Ho(t)&&!Vo(t)){var n=Jo(this);n.frozen||(n.frozen=new _n),yn(this,t)?Ko(this,t,r):n.frozen.set(t,r)}else Ko(this,t,r);return this}})):eP()&&j_(vr,{set:function(t,r){var n;return YO(t)&&($_(t)?n=H_:QO(t)&&(n=XO)),Ko(this,t,r),n&&n(t),this}}));var jl,yn,Bl});var K_=f(()=>{"use strict";G_()});var W_=f((Y5,z_)=>{"use strict";Rl();Zg();K_();var tP=mt();z_.exports=tP.WeakMap});var Q_=f((Q5,Y_)=>{"use strict";Y_.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 Z_=f(()=>{"use strict";Rl();var rP=Q_(),nP=re(),oP=mn(),X_=zt();for(zo in rP)oP(nP[zo],zo),X_[zo]=X_.Array;var zo});var ty=f((e3,ey)=>{"use strict";var iP=W_();Z_();ey.exports=iP});var ny=f((t3,ry)=>{ry.exports=ty()});var iy=f(()=>{"use strict";var aP=ne(),sP=Xr(),lP=pl().indexOf,cP=sn(),$l=sP([].indexOf),oy=!!$l&&1/$l([1],1,-0)<0,uP=oy||!cP("indexOf");aP({target:"Array",proto:!0,forced:uP},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return oy?$l(this,t,r)||0:lP(this,t,r)}})});var sy=f((o3,ay)=>{"use strict";iy();var dP=Ge();ay.exports=dP("Array","indexOf")});var cy=f((i3,ly)=>{"use strict";var fP=Re(),pP=sy(),Hl=Array.prototype;ly.exports=function(e){var t=e.indexOf;return e===Hl||fP(Hl,e)&&t===Hl.indexOf?pP:t}});var dy=f((a3,uy)=>{"use strict";var hP=cy();uy.exports=hP});var py=f((s3,fy)=>{fy.exports=dy()});var hy=f(()=>{"use strict";var mP=ne(),vP=Me(),gP=No();mP({target:"Object",stat:!0,sham:!vP},{create:gP})});var vy=f((u3,my)=>{"use strict";hy();var _P=mt(),yP=_P.Object;my.exports=function(t,r){return yP.create(t,r)}});var _y=f((d3,gy)=>{"use strict";var bP=vy();gy.exports=bP});var by=f((f3,yy)=>{yy.exports=_y()});var wy=f(()=>{"use strict";var wP=ne(),EP=Lt().map,xP=an(),AP=xP("map");wP({target:"Array",proto:!0,forced:!AP},{map:function(t){return EP(this,t,arguments.length>1?arguments[1]:void 0)}})});var xy=f((m3,Ey)=>{"use strict";wy();var SP=Ge();Ey.exports=SP("Array","map")});var Sy=f((v3,Ay)=>{"use strict";var IP=Re(),TP=xy(),Jl=Array.prototype;Ay.exports=function(e){var t=e.map;return e===Jl||IP(Jl,e)&&t===Jl.map?TP:t}});var Ty=f((g3,Iy)=>{"use strict";var RP=Sy();Iy.exports=RP});var ky=f((_3,Ry)=>{Ry.exports=Ty()});var Oy=f(Cy=>{"use strict";Cy.f=Object.getOwnPropertySymbols});var qy=f((b3,Dy)=>{"use strict";var Py=Me(),kP=fe(),CP=ht(),OP=Q(),Vl=vl(),PP=Oy(),NP=is(),DP=ur(),qP=co(),gr=Object.assign,Ny=Object.defineProperty,LP=kP([].concat);Dy.exports=!gr||OP(function(){if(Py&&gr({b:1},gr(Ny({},"a",{enumerable:!0,get:function(){Ny(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(o){t[o]=o}),gr({},e)[r]!==7||Vl(gr({},t)).join("")!==n})?function(t,r){for(var n=DP(t),o=arguments.length,i=1,a=PP.f,s=NP.f;o>i;)for(var l=qP(arguments[i++]),c=a?LP(Vl(l),a(l)):Vl(l),d=c.length,u=0,h;d>u;)h=c[u++],(!Py||CP(s,l,h))&&(n[h]=l[h]);return n}:gr});var Uy=f(()=>{"use strict";var UP=ne(),Ly=qy();UP({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ly},{assign:Ly})});var Fy=f((x3,My)=>{"use strict";Uy();var MP=mt();My.exports=MP.Object.assign});var By=f((A3,jy)=>{"use strict";var FP=Fy();jy.exports=FP});var Hy=f((S3,$y)=>{$y.exports=By()});var Gl=f((I3,Jy)=>{"use strict";Jy.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 Ky=f((T3,Gy)=>{"use strict";var jP=fe(),BP=sr(),$P=rl(),zl=Gl(),Vy=jP("".replace),HP=RegExp("^["+zl+"]+"),JP=RegExp("(^|[^"+zl+"])["+zl+"]+$"),Kl=function(e){return function(t){var r=$P(BP(t));return e&1&&(r=Vy(r,HP,"")),e&2&&(r=Vy(r,JP,"$1")),r}};Gy.exports={start:Kl(1),end:Kl(2),trim:Kl(3)}});var Qy=f((R3,Yy)=>{"use strict";var VP=fl().PROPER,GP=Q(),zy=Gl(),Wy="\u200B\x85\u180E";Yy.exports=function(e){return GP(function(){return!!zy[e]()||Wy[e]()!==Wy||VP&&zy[e].name!==e})}});var Xy=f(()=>{"use strict";var KP=ne(),zP=Ky().trim,WP=Qy();KP({target:"String",proto:!0,forced:WP("trim")},{trim:function(){return zP(this)}})});var eb=f((O3,Zy)=>{"use strict";Xy();var YP=Ge();Zy.exports=YP("String","trim")});var rb=f((P3,tb)=>{"use strict";var QP=Re(),XP=eb(),Wl=String.prototype;tb.exports=function(e){var t=e.trim;return typeof e=="string"||e===Wl||QP(Wl,e)&&t===Wl.trim?XP:t}});var ob=f((N3,nb)=>{"use strict";var ZP=rb();nb.exports=ZP});var ab=f((D3,ib)=>{ib.exports=ob()});function uc(e,t){oe.__h&&oe.__h(Z,e,xn||t),xn=0;var r=Z.__H||(Z.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yt(e){return xn=1,eN(Nb,e)}function eN(e,t,r){var n=uc(En++,2);if(n.t=e,!n.__c&&(n.__=[Nb(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=Z,!Z.__f)){var o=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,lc.default)(d=n.__c.__H.__).call(d,function(p){return!!p.__c});if((0,Eb.default)(u).call(u,function(p){return!p.__N}))return!i||i.call(this,s,l,c);var h=n.__c.props!==s;return(0,Ae.default)(u).call(u,function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(h=!0)}}),i&&i.call(this,s,l,c)||h};Z.__f=!0;var i=Z.shouldComponentUpdate,a=Z.componentWillUpdate;Z.componentWillUpdate=function(s,l,c){if(this.__e){var d=i;i=void 0,o(s,l,c),i=d}a&&a.call(this,s,l,c)},Z.shouldComponentUpdate=o}return n.__N||n.__}function Ut(e,t){var r=uc(En++,3);!oe.__s&&Pb(r.__H,t)&&(r.__=e,r.u=t,Z.__H.__h.push(r))}function ri(e){return xn=5,Ob(function(){return{current:e}},[])}function Ob(e,t){var r=uc(En++,7);return Pb(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ke(e,t){return xn=8,Ob(function(){return e},t)}function tN(){for(var e;e=Cb.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ae.default)(t=e.__H.__h).call(t,Yo),(0,Ae.default)(r=e.__H.__h).call(r,nc),e.__H.__h=[]}catch(n){e.__H.__h=[],oe.__e(n,e.__v)}}function rN(e){var t,r=function(){clearTimeout(n),hb&&cancelAnimationFrame(t),(0,tc.default)(e)},n=(0,tc.default)(r,100);hb&&(t=requestAnimationFrame(r))}function Yo(e){var t=Z,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Z=t}function nc(e){var t=Z;e.__c=e.__(),Z=t}function Pb(e,t){return!e||e.length!==t.length||(0,ei.default)(t).call(t,function(r,n){return r!==e[n]})}function Nb(e,t){return typeof t=="function"?t(e):t}function b(e,t,r,n,o,i){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:--nN,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function sN(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 lN(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 hN(e,t){return _e(e,0)^45?(((t<<2^_e(e,0))<<2^_e(e,1))<<2^_e(e,2))<<2^_e(e,3):0}function Lb(e){return(0,kb.default)(e).call(e)}function mN(e,t){return(e=t.exec(e))?e[0]:e}function M(e,t,r){return e.replace(t,r)}function oc(e,t){return(0,cc.default)(e).call(e,t)}function _e(e,t){return e.charCodeAt(t)|0}function An(e,t,r){return(0,Ab.default)(e).call(e,t,r)}function at(e){return e.length}function pc(e){return e.length}function Wo(e,t){return t.push(e),e}function vN(e,t){return(0,Tb.default)(e).call(e,t).join("")}function si(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ai,column:br,length:a,return:""}}function wn(e,t){return pN(si("",null,null,"",null,null,0),e,{length:-e.length},t)}function gN(){return ie}function _N(){return ie=Pe>0?_e(wr,--Pe):0,br--,ie===10&&(br=1,ai--),ie}function je(){return ie=Pe<Ub?_e(wr,Pe++):0,br++,ie===10&&(br=1,ai++),ie}function st(){return _e(wr,Pe)}function Qo(){return Pe}function In(e,t){return An(wr,e,t)}function Sn(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 Mb(e){return ai=br=1,Ub=at(wr=e),Pe=0,[]}function Fb(e){return wr="",e}function Xo(e){return Lb(In(Pe-1,ic(e===91?e+2:e===40?e+1:e)))}function yN(e){for(;(ie=st())&&ie<33;)je();return Sn(e)>2||Sn(ie)>3?"":" "}function bN(e,t){for(;--t&&je()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return In(e,Qo()+(t<6&&st()==32&&je()==32))}function ic(e){for(;je();)switch(ie){case e:return Pe;case 34:case 39:e!==34&&e!==39&&ic(ie);break;case 40:e===41&&ic(e);break;case 92:je();break}return Pe}function wN(e,t){for(;je()&&e+ie!==57&&!(e+ie===84&&st()===47););return"/*"+In(t,Pe-1)+"*"+ii(e===47?e:je())}function EN(e){for(;!Sn(st());)je();return In(e,Pe)}function xN(e){return Fb(Zo("",null,null,null,[""],e=Mb(e),0,[0],e))}function Zo(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,u=a,h=0,p=0,m=0,g=1,_=1,v=1,y=0,A="",k=o,O=i,I=n,w=A;_;)switch(m=y,y=je()){case 40:if(m!=108&&_e(w,u-1)==58){oc(w+=M(Xo(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Xo(y);break;case 9:case 10:case 13:case 32:w+=yN(m);break;case 92:w+=bN(Qo()-1,7);continue;case 47:switch(st()){case 42:case 47:Wo(AN(wN(je(),Qo()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=at(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=M(w,/\f/g,"")),p>0&&at(w)-u&&Wo(p>32?vb(w+";",n,r,u-1):vb(M(w," ","")+";",n,r,u-2),l);break;case 59:w+=";";default:if(Wo(I=mb(w,t,r,c,d,o,s,A,k=[],O=[],u),i),y===123)if(d===0)Zo(w,t,I,I,k,i,u,s,O);else switch(h===99&&_e(w,3)===110?100:h){case 100:case 108:case 109:case 115:Zo(e,I,I,n&&Wo(mb(e,I,I,0,0,o,s,A,o,k=[],u),O),o,O,u,s,n?k:O);break;default:Zo(w,I,I,I,[""],O,0,s,O)}}c=d=p=0,g=v=1,A=w="",u=a;break;case 58:u=1+at(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&_N()==125)continue}switch(w+=ii(y),y*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(at(w)-1)*v,v=1;break;case 64:st()===45&&(w+=Xo(je())),h=st(),d=u=at(A=w+=EN(Qo())),y++;break;case 45:m===45&&at(w)==2&&(g=0)}}return i}function mb(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,h=o===0?i:[""],p=pc(h),m=0,g=0,_=0;m<n;++m)for(var v=0,y=An(e,u+1,u=fN(g=a[m])),A=e;v<p;++v)(A=Lb(g>0?h[v]+" "+y:M(y,/&\f/g,h[v])))&&(l[_++]=A);return si(e,t,r,o===0?dc:s,l,c,d)}function AN(e,t,r){return si(e,t,r,Db,ii(gN()),An(e,2,-2),0)}function vb(e,t,r,n){return si(e,t,r,fc,An(e,0,n),An(e,n+1,-1),n)}function yr(e,t){for(var r="",n=pc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function SN(e,t,r,n){switch(e.type){case dN:if(e.children.length)break;case uN:case fc:return e.return=e.return||e.value;case Db:return"";case qb:return e.return=e.value+"{"+yr(e.children,n)+"}";case dc:e.value=e.props.join(",")}return at(r=yr(e.children,n))?e.return=e.value+"{"+r+"}":""}function IN(e){var t=pc(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function TN(e){return function(t){t.root||(t=t.return)&&e(t)}}function RN(e){var t=(0,Ib.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function jb(e,t){switch(hN(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+ni+e+xe+e+e;case 6828:case 4268:return U+e+xe+e+e;case 6165:return U+e+xe+"flex-"+e+e;case 5187:return U+e+M(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+xe+"flex-$1$2")+e;case 5443:return U+e+xe+"flex-item-"+M(e,/flex-|-self/,"")+e;case 4675:return U+e+xe+"flex-line-pack"+M(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+xe+M(e,"shrink","negative")+e;case 5292:return U+e+xe+M(e,"basis","preferred-size")+e;case 6060:return U+"box-"+M(e,"-grow","")+U+e+xe+M(e,"grow","positive")+e;case 4554:return U+M(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return M(M(M(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return M(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(at(e)-1-t>6)switch(_e(e,t+1)){case 109:if(_e(e,t+4)!==45)break;case 102:return M(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+ni+(_e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oc(e,"stretch")?jb(M(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_e(e,t+1)!==115)break;case 6444:switch(_e(e,at(e)-3-(~oc(e,"!important")&&10))){case 107:return M(e,":",":"+U)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(_e(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+xe+e+e}return e}function UN(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 oi(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 o=r;if(o.anim===1)return Mt={name:o.name,styles:o.styles,next:Mt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Mt={name:a.name,styles:a.styles,next:Mt},a=a.next;var s=i.styles+";";return s}return BN(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function BN(e,t,r){var n="";if((0,ti.default)(r))for(var o=0;o<r.length;o++)n+=oi(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":_b(s)&&(n+=Xl(i)+":"+yb(i,s)+";")}else if((0,ti.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)_b(a[l])&&(n+=Xl(i)+":"+yb(i,a[l])+";");else{var c=oi(e,t,a);switch(i){case"animation":case"animationName":{n+=Xl(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}function Zl(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,o="";Mt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=oi(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=oi(r,t,e[s]),n){var l=i;o+=l[s]}bb.lastIndex=0;for(var c="",d;(d=bb.exec(o))!==null;)c+="-"+d[1];var u=UN(o)+c;return{name:u,styles:o,next:Mt}}function ac(e,t,r){var n,o="";return(0,Ae.default)(n=r.split(" ")).call(n,function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}function wb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ec(e,t,r){var n=[],o=ac(e,n,r);return n.length<2?r:o+t(n)}function hc(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=yt(e());return Ut(()=>{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 YN(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:o,imgStyle:i}=l,a=et(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=WN(()=>{t&&n()});return e==="Image"?b("div",{className:o,style:{borderRadius:"8px"},children:ot("img",q(R({},a),{ref:c,src:t!=null?t:"",style:R({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},i||{})}))}):b("div",q(R({},a),{ref:c,className:o,children:r}))}function QN(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((o,i)=>o&&typeof o=="object"&&"type"in o?ot(o.type,q(R({},o.props),{style:q(R({},o.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:o.key||i})):o):e&&typeof e=="object"&&"type"in e?ot(e.type,q(R({},e.props),{style:q(R({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}var lc,Eb,Ae,xb,ei,tc,Ab,ti,U3,rc,Sb,cc,Ib,Tb,Rb,kb,En,Z,Yl,sb,xn,Cb,oe,lb,cb,ub,db,fb,pb,hb,nN,Ql,oN,iN,aN,cN,xe,ni,U,Db,dc,fc,uN,qb,dN,fN,ii,pN,ai,br,Ub,Pe,ie,wr,kN,CN,ON,gb,PN,NN,DN,qN,LN,MN,FN,jN,Bb,_b,Xl,yb,bb,Mt,$N,HN,JN,VN,GN,N,KN,zN,mc,WN,vc,gc,$b,XN,ZN,eD,sc,tD,Hb,Er,_t,Jb,_r,rD,nD,oD,iD,aD,W,sD,lD,Vb,Gb,Kb,zb,cD,uD,Wb,li=T(()=>{"use strict";or();lc=ue(rh(),1),Eb=ue(fh(),1),Ae=ue(Sh(),1),xb=ue(jh(),1),ei=ue(Wh(),1),tc=ue(pm(),1);Xs();Ab=ue(Ym(),1),ti=ue(nv(),1),U3=ue(wv(),1),rc=ue(Lv(),1),Sb=ue(ny(),1),cc=ue(py(),1),Ib=ue(by(),1),Tb=ue(ky(),1),Rb=ue(Hy(),1),kb=ue(ab(),1),xn=0,Cb=[],oe=C,lb=oe.__b,cb=oe.__r,ub=oe.diffed,db=oe.__c,fb=oe.unmount,pb=oe.__;oe.__b=function(e){Z=null,lb&&lb(e)},oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pb&&pb(e,t)},oe.__r=function(e){var t,r,n;cb&&cb(e),En=0;var o=(Z=e.__c).__H;o&&(Yl===Z?(o.__h=[],Z.__h=[],(0,Ae.default)(t=o.__).call(t,function(i){i.__N&&(i.__=i.__N),i.u=i.__N=void 0})):((0,Ae.default)(r=o.__h).call(r,Yo),(0,Ae.default)(n=o.__h).call(n,nc),o.__h=[],En=0)),Yl=Z},oe.diffed=function(e){var t;ub&&ub(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Cb.push(r)!==1&&sb===oe.requestAnimationFrame||((sb=oe.requestAnimationFrame)||rN)(tN)),(0,Ae.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Yl=Z=null},oe.__c=function(e,t){(0,ei.default)(t).call(t,function(r){try{var n,o;(0,Ae.default)(n=r.__h).call(n,Yo),r.__h=(0,lc.default)(o=r.__h).call(o,function(i){return!i.__||nc(i)})}catch(i){(0,ei.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],oe.__e(i,r.__v)}}),db&&db(e,t)},oe.unmount=function(e){var t;fb&&fb(e);var r,n=e.__c;n&&n.__H&&((0,Ae.default)(t=n.__H.__).call(t,function(o){try{Yo(o)}catch(i){r=i}}),n.__H=void 0,r&&oe.__e(r,n.__v))};hb=typeof requestAnimationFrame=="function";nN=0;Ql={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},oN=`
19
+ `;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{function a(l){return E(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,h)=>{let f=new XMLHttpRequest;f.open("GET",c),f.responseType="arraybuffer",f.addEventListener("load",()=>u(f.response)),f.addEventListener("error",h),f.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},o=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=r};return n(),i(),o}var Ip=I(()=>{"use strict"});var Tp=I(()=>{"use strict"});var kp=I(()=>{"use strict";N();il()});var Rp=I(()=>{"use strict";oe()});var io,ml=I(()=>{"use strict";Tp();kp();oe();Rp();N();io=new mt});function Nt(e,t){for(var r in t)e[r]=t[r];return e}function wl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ne(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?lo.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 ao(e,a,n,i,null)}function ao(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?++Np:i,__i:-1,__u:0};return i==null&&C.vnode!=null&&C.vnode(o),o}function Ke(e){return e.children}function ze(e,t){this.props=e,this.context=t}function Nr(e,t){if(t==null)return e.__?Nr(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"?Nr(e):null}function jp(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 jp(e)}}function yl(e){(!e.__d&&(e.__d=!0)&&vr.push(e)&&!so.__r++||Cp!==C.debounceRendering)&&((Cp=C.debounceRendering)||Dp)(so)}function so(){for(var e,t,r,n,i,o,a,s=1;vr.length;)vr.length>s&&vr.sort(qp),e=vr.shift(),s=vr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Nt({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),El(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Nr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,$p(o,r,a),r.__e!=i&&jp(r)));so.__r=0}function Fp(e,t,r,n,i,o,a,s,l,c,d){var u,h,f,m,g,_,v=n&&n.__k||Mp,b=t.length;for(l=Q1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(h=f.__i===-1?Pn:v[f.__i]||Pn,f.__i=u,_=El(e,f,h,i,o,a,s,l,c,d),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&xl(h.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||h.__k===f.__k?l=Bp(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function Q1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,h=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+h,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ao(null,a,null,null,null):Nn(a)?ao(Ke,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ao(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=X1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?h--:i<d&&h++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,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=Nr(s)),Hp(s,s));return n}function Bp(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=Bp(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Nr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Dn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nn(e)?e.some(function(r){Dn(r,t)}):t.push(e)),t}function X1(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 Op(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Y1.test(t)?r:r+"px"}function oo(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||Op(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Op(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Lp,"$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=bl,e.addEventListener(t,o?gl:vl,o)):e.removeEventListener(t,o?gl:vl,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 Pp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=bl++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function El(e,t,r,n,i,o,a,s,l,c){var d,u,h,f,m,g,_,v,b,x,T,O,R,y,J,Ze,Cr,et=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof et=="function")try{if(v=t.props,b="prototype"in et&&et.prototype.render,x=(d=et.contextType)&&n[d.__c],T=d?x?x.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new et(v,T):(t.__c=u=new ze(v,T),u.constructor=et,u.render=eT),x&&x.sub(u),u.props=v,u.state||(u.state={}),u.context=T,u.__n=n,h=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&et.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Nt({},u.__s)),Nt(u.__s,et.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,h)b&&et.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&et.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,T),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,T)===!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(pr){pr&&(pr.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,T),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=T,u.props=v,u.__P=e,u.__e=!1,R=C.__r,y=0,b){for(u.state=u.__s,u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++y<25);u.state=u.__s,u.getChildContext!=null&&(n=Nt(Nt({},n),u.getChildContext())),b&&!h&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),Ze=d,d!=null&&d.type===Ke&&d.key==null&&(Ze=Jp(d.props.children)),s=Fp(e,Nn(Ze)?Ze:[Ze],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(pr){if(t.__v=null,l||o!=null)if(pr.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(Cr=o.length;Cr--;)wl(o[Cr]);else t.__e=r.__e,t.__k=r.__k;C.__e(pr,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Z1(r.__e,t,r,n,i,o,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function $p(e,t,r){for(var n=0;n<r.length;n++)xl(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){C.__e(o,i.__v)}})}function Jp(e){return typeof e!="object"||e==null?e:Nn(e)?e.map(Jp):Nt({},e)}function Z1(e,t,r,n,i,o,a,s,l){var c,d,u,h,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(C.__m&&C.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&lo.call(e.childNodes),_=r.props||Pn,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;oo(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?h=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||oo(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Fp(t.type==="template"?e.content:e,Nn(h)?h:[h],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Nr(r,0),s,l),o!=null)for(c=o.length;c--;)wl(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&oo(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&oo(e,c,g,_[c],i))}return e}function xl(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){C.__e(i,r)}}function Hp(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||xl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Hp(n[i],t,r||typeof e.type!="function");r||wl(e.__e),e.__c=e.__=e.__e=void 0}function eT(e,t,r){return this.constructor(e,r)}function Dr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],El(t,e=(!n&&r||t).__k=Ne(Ke,null,[e]),i||Pn,Pn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?lo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),$p(o,e,a)}function gr(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,yl(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"+Up++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var lo,C,Np,_l,vr,Cp,Dp,qp,Lp,bl,vl,gl,Up,Pn,Mp,Y1,Nn,qr=I(()=>{Pn={},Mp=[],Y1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nn=Array.isArray;lo=Mp.slice,C={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Np=0,_l=function(e){return e!=null&&e.constructor==null},ze.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},r),this.props)),e&&Nt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),yl(this))},ze.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),yl(this))},ze.prototype.render=Ke,vr=[],Dp=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qp=function(e,t){return e.__v.__b-t.__v.__b},so.__r=0,Lp=/(PointerCapture)$|Capture$/i,bl=0,vl=Pp(!1),gl=Pp(!0),Up=0});var re=p((qJ,Vp)=>{"use strict";Vp.exports=function(e){try{return!!e()}catch(t){return!0}}});var Lr=p((LJ,Gp)=>{"use strict";var tT=re();Gp.exports=!tT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var de=p((UJ,Wp)=>{"use strict";var zp=Lr(),Kp=Function.prototype,Al=Kp.call,rT=zp&&Kp.bind.bind(Al,Al);Wp.exports=zp?rT:function(e){return function(){return Al.apply(e,arguments)}}});var je=p((MJ,Yp)=>{"use strict";var nT=de();Yp.exports=nT({}.isPrototypeOf)});var ne=p((Sl,Qp)=>{"use strict";var qn=function(e){return e&&e.Math===Math&&e};Qp.exports=qn(typeof globalThis=="object"&&globalThis)||qn(typeof window=="object"&&window)||qn(typeof self=="object"&&self)||qn(typeof global=="object"&&global)||qn(typeof Sl=="object"&&Sl)||function(){return this}()||Function("return this")()});var Il=p((jJ,th)=>{"use strict";var iT=Lr(),eh=Function.prototype,Xp=eh.apply,Zp=eh.call;th.exports=typeof Reflect=="object"&&Reflect.apply||(iT?Zp.bind(Xp):function(){return Zp.apply(Xp,arguments)})});var Dt=p((FJ,nh)=>{"use strict";var rh=de(),oT=rh({}.toString),aT=rh("".slice);nh.exports=function(e){return aT(oT(e),8,-1)}});var Ln=p((BJ,ih)=>{"use strict";var sT=Dt(),lT=de();ih.exports=function(e){if(sT(e)==="Function")return lT(e)}});var xe=p(($J,oh)=>{"use strict";var Tl=typeof document=="object"&&document.all;oh.exports=typeof Tl=="undefined"&&Tl!==void 0?function(e){return typeof e=="function"||e===Tl}:function(e){return typeof e=="function"}});var Fe=p((JJ,ah)=>{"use strict";var cT=re();ah.exports=!cT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ct=p((HJ,sh)=>{"use strict";var uT=Lr(),co=Function.prototype.call;sh.exports=uT?co.bind(co):function(){return co.apply(co,arguments)}});var kl=p(uh=>{"use strict";var lh={}.propertyIsEnumerable,ch=Object.getOwnPropertyDescriptor,dT=ch&&!lh.call({1:2},1);uh.f=dT?function(t){var r=ch(this,t);return!!r&&r.enumerable}:lh});var Un=p((GJ,dh)=>{"use strict";dh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var uo=p((zJ,fh)=>{"use strict";var fT=de(),pT=re(),hT=Dt(),Rl=Object,mT=fT("".split);fh.exports=pT(function(){return!Rl("z").propertyIsEnumerable(0)})?function(e){return hT(e)==="String"?mT(e,""):Rl(e)}:Rl});var yr=p((KJ,ph)=>{"use strict";ph.exports=function(e){return e==null}});var _r=p((WJ,hh)=>{"use strict";var vT=yr(),gT=TypeError;hh.exports=function(e){if(vT(e))throw new gT("Can't call method on "+e);return e}});var Zt=p((YJ,mh)=>{"use strict";var yT=uo(),_T=_r();mh.exports=function(e){return yT(_T(e))}});var ye=p((QJ,vh)=>{"use strict";var bT=xe();vh.exports=function(e){return typeof e=="object"?e!==null:bT(e)}});var vt=p((XJ,gh)=>{"use strict";gh.exports={}});var Ur=p((ZJ,_h)=>{"use strict";var Cl=vt(),Ol=ne(),wT=xe(),yh=function(e){return wT(e)?e:void 0};_h.exports=function(e,t){return arguments.length<2?yh(Cl[e])||yh(Ol[e]):Cl[e]&&Cl[e][t]||Ol[e]&&Ol[e][t]}});var fo=p((eH,Eh)=>{"use strict";var ET=ne(),bh=ET.navigator,wh=bh&&bh.userAgent;Eh.exports=wh?String(wh):""});var ho=p((tH,kh)=>{"use strict";var Th=ne(),Pl=fo(),xh=Th.process,Ah=Th.Deno,Sh=xh&&xh.versions||Ah&&Ah.version,Ih=Sh&&Sh.v8,ut,po;Ih&&(ut=Ih.split("."),po=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!po&&Pl&&(ut=Pl.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=Pl.match(/Chrome\/(\d+)/),ut&&(po=+ut[1])));kh.exports=po});var Nl=p((rH,Ch)=>{"use strict";var Rh=ho(),xT=re(),AT=ne(),ST=AT.String;Ch.exports=!!Object.getOwnPropertySymbols&&!xT(function(){var e=Symbol("symbol detection");return!ST(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rh&&Rh<41})});var Dl=p((nH,Oh)=>{"use strict";var IT=Nl();Oh.exports=IT&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ql=p((iH,Ph)=>{"use strict";var TT=Ur(),kT=xe(),RT=je(),CT=Dl(),OT=Object;Ph.exports=CT?function(e){return typeof e=="symbol"}:function(e){var t=TT("Symbol");return kT(t)&&RT(t.prototype,OT(e))}});var Mn=p((oH,Nh)=>{"use strict";var PT=String;Nh.exports=function(e){try{return PT(e)}catch(t){return"Object"}}});var br=p((aH,Dh)=>{"use strict";var NT=xe(),DT=Mn(),qT=TypeError;Dh.exports=function(e){if(NT(e))return e;throw new qT(DT(e)+" is not a function")}});var mo=p((sH,qh)=>{"use strict";var LT=br(),UT=yr();qh.exports=function(e,t){var r=e[t];return UT(r)?void 0:LT(r)}});var Uh=p((lH,Lh)=>{"use strict";var Ll=ct(),Ul=xe(),Ml=ye(),MT=TypeError;Lh.exports=function(e,t){var r,n;if(t==="string"&&Ul(r=e.toString)&&!Ml(n=Ll(r,e))||Ul(r=e.valueOf)&&!Ml(n=Ll(r,e))||t!=="string"&&Ul(r=e.toString)&&!Ml(n=Ll(r,e)))return n;throw new MT("Can't convert object to primitive value")}});var Mr=p((cH,Mh)=>{"use strict";Mh.exports=!0});var Bh=p((uH,Fh)=>{"use strict";var jh=ne(),jT=Object.defineProperty;Fh.exports=function(e,t){try{jT(jh,e,{value:t,configurable:!0,writable:!0})}catch(r){jh[e]=t}return t}});var jn=p((dH,Hh)=>{"use strict";var FT=Mr(),BT=ne(),$T=Bh(),$h="__core-js_shared__",Jh=Hh.exports=BT[$h]||$T($h,{});(Jh.versions||(Jh.versions=[])).push({version:"3.41.0",mode:FT?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var jl=p((fH,Gh)=>{"use strict";var Vh=jn();Gh.exports=function(e,t){return Vh[e]||(Vh[e]=t||{})}});var jr=p((pH,zh)=>{"use strict";var JT=_r(),HT=Object;zh.exports=function(e){return HT(JT(e))}});var We=p((hH,Kh)=>{"use strict";var VT=de(),GT=jr(),zT=VT({}.hasOwnProperty);Kh.exports=Object.hasOwn||function(t,r){return zT(GT(t),r)}});var vo=p((mH,Wh)=>{"use strict";var KT=de(),WT=0,YT=Math.random(),QT=KT(1 .toString);Wh.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+QT(++WT+YT,36)}});var De=p((vH,Qh)=>{"use strict";var XT=ne(),ZT=jl(),Yh=We(),ek=vo(),tk=Nl(),rk=Dl(),Fr=XT.Symbol,Fl=ZT("wks"),nk=rk?Fr.for||Fr:Fr&&Fr.withoutSetter||ek;Qh.exports=function(e){return Yh(Fl,e)||(Fl[e]=tk&&Yh(Fr,e)?Fr[e]:nk("Symbol."+e)),Fl[e]}});var tm=p((gH,em)=>{"use strict";var ik=ct(),Xh=ye(),Zh=ql(),ok=mo(),ak=Uh(),sk=De(),lk=TypeError,ck=sk("toPrimitive");em.exports=function(e,t){if(!Xh(e)||Zh(e))return e;var r=ok(e,ck),n;if(r){if(t===void 0&&(t="default"),n=ik(r,e,t),!Xh(n)||Zh(n))return n;throw new lk("Can't convert object to primitive value")}return t===void 0&&(t="number"),ak(e,t)}});var Bl=p((yH,rm)=>{"use strict";var uk=tm(),dk=ql();rm.exports=function(e){var t=uk(e,"string");return dk(t)?t:t+""}});var Jl=p((_H,im)=>{"use strict";var fk=ne(),nm=ye(),$l=fk.document,pk=nm($l)&&nm($l.createElement);im.exports=function(e){return pk?$l.createElement(e):{}}});var Hl=p((bH,om)=>{"use strict";var hk=Fe(),mk=re(),vk=Jl();om.exports=!hk&&!mk(function(){return Object.defineProperty(vk("div"),"a",{get:function(){return 7}}).a!==7})});var Vl=p(sm=>{"use strict";var gk=Fe(),yk=ct(),_k=kl(),bk=Un(),wk=Zt(),Ek=Bl(),xk=We(),Ak=Hl(),am=Object.getOwnPropertyDescriptor;sm.f=gk?am:function(t,r){if(t=wk(t),r=Ek(r),Ak)try{return am(t,r)}catch(n){}if(xk(t,r))return bk(!yk(_k.f,t,r),t[r])}});var cm=p((EH,lm)=>{"use strict";var Sk=re(),Ik=xe(),Tk=/#|\.prototype\./,Fn=function(e,t){var r=Rk[kk(e)];return r===Ok?!0:r===Ck?!1:Ik(t)?Sk(t):!!t},kk=Fn.normalize=function(e){return String(e).replace(Tk,".").toLowerCase()},Rk=Fn.data={},Ck=Fn.NATIVE="N",Ok=Fn.POLYFILL="P";lm.exports=Fn});var Bn=p((xH,dm)=>{"use strict";var um=Ln(),Pk=br(),Nk=Lr(),Dk=um(um.bind);dm.exports=function(e,t){return Pk(e),t===void 0?e:Nk?Dk(e,t):function(){return e.apply(t,arguments)}}});var Gl=p((AH,fm)=>{"use strict";var qk=Fe(),Lk=re();fm.exports=qk&&Lk(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var qt=p((SH,pm)=>{"use strict";var Uk=ye(),Mk=String,jk=TypeError;pm.exports=function(e){if(Uk(e))return e;throw new jk(Mk(e)+" is not an object")}});var Lt=p(mm=>{"use strict";var Fk=Fe(),Bk=Hl(),$k=Gl(),go=qt(),hm=Bl(),Jk=TypeError,zl=Object.defineProperty,Hk=Object.getOwnPropertyDescriptor,Kl="enumerable",Wl="configurable",Yl="writable";mm.f=Fk?$k?function(t,r,n){if(go(t),r=hm(r),go(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Yl in n&&!n[Yl]){var i=Hk(t,r);i&&i[Yl]&&(t[r]=n.value,n={configurable:Wl in n?n[Wl]:i[Wl],enumerable:Kl in n?n[Kl]:i[Kl],writable:!1})}return zl(t,r,n)}:zl:function(t,r,n){if(go(t),r=hm(r),go(n),Bk)try{return zl(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new Jk("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var wr=p((TH,vm)=>{"use strict";var Vk=Fe(),Gk=Lt(),zk=Un();vm.exports=Vk?function(e,t,r){return Gk.f(e,t,zk(1,r))}:function(e,t,r){return e[t]=r,e}});var V=p((kH,ym)=>{"use strict";var $n=ne(),Kk=Il(),Wk=Ln(),Yk=xe(),Qk=Vl().f,Xk=cm(),Br=vt(),Zk=Bn(),$r=wr(),gm=We();jn();var eR=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 Kk(e,this,arguments)};return t.prototype=e.prototype,t};ym.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?$n:i?$n[r]:$n[r]&&$n[r].prototype,s=n?Br:Br[r]||$r(Br,r,{})[r],l=s.prototype,c,d,u,h,f,m,g,_,v;for(h in t)c=Xk(n?h:r+(i?".":"#")+h,e.forced),d=!c&&a&&gm(a,h),m=s[h],d&&(e.dontCallGetSet?(v=Qk(a,h),g=v&&v.value):g=a[h]),f=d&&g?g:t[h],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=Zk(f,$n):e.wrap&&d?_=eR(f):o&&Yk(f)?_=Wk(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&$r(_,"sham",!0),$r(s,h,_),o&&(u=r+"Prototype",gm(Br,u)||$r(Br,u,{}),$r(Br[u],h,f),e.real&&l&&(c||!l[h])&&$r(l,h,f)))}});var bm=p((RH,_m)=>{"use strict";var tR=Math.ceil,rR=Math.floor;_m.exports=Math.trunc||function(t){var r=+t;return(r>0?rR:tR)(r)}});var Jn=p((CH,wm)=>{"use strict";var nR=bm();wm.exports=function(e){var t=+e;return t!==t||t===0?0:nR(t)}});var Ql=p((OH,Em)=>{"use strict";var iR=Jn(),oR=Math.min;Em.exports=function(e){var t=iR(e);return t>0?oR(t,9007199254740991):0}});var Jr=p((PH,xm)=>{"use strict";var aR=Ql();xm.exports=function(e){return aR(e.length)}});var Hn=p((NH,Am)=>{"use strict";var sR=Dt();Am.exports=Array.isArray||function(t){return sR(t)==="Array"}});var yo=p((DH,Im)=>{"use strict";var lR=De(),cR=lR("toStringTag"),Sm={};Sm[cR]="z";Im.exports=String(Sm)==="[object z]"});var Hr=p((qH,Tm)=>{"use strict";var uR=yo(),dR=xe(),_o=Dt(),fR=De(),pR=fR("toStringTag"),hR=Object,mR=_o(function(){return arguments}())==="Arguments",vR=function(e,t){try{return e[t]}catch(r){}};Tm.exports=uR?_o:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=vR(t=hR(e),pR))=="string"?r:mR?_o(t):(n=_o(t))==="Object"&&dR(t.callee)?"Arguments":n}});var Rm=p((LH,km)=>{"use strict";var gR=de(),yR=xe(),Xl=jn(),_R=gR(Function.toString);yR(Xl.inspectSource)||(Xl.inspectSource=function(e){return _R(e)});km.exports=Xl.inspectSource});var ec=p((UH,Dm)=>{"use strict";var bR=de(),wR=re(),Cm=xe(),ER=Hr(),xR=Ur(),AR=Rm(),Om=function(){},Pm=xR("Reflect","construct"),Zl=/^\s*(?:class|function)\b/,SR=bR(Zl.exec),IR=!Zl.test(Om),Vn=function(t){if(!Cm(t))return!1;try{return Pm(Om,[],t),!0}catch(r){return!1}},Nm=function(t){if(!Cm(t))return!1;switch(ER(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return IR||!!SR(Zl,AR(t))}catch(r){return!0}};Nm.sham=!0;Dm.exports=!Pm||wR(function(){var e;return Vn(Vn.call)||!Vn(Object)||!Vn(function(){e=!0})||e})?Nm:Vn});var Mm=p((MH,Um)=>{"use strict";var qm=Hn(),TR=ec(),kR=ye(),RR=De(),CR=RR("species"),Lm=Array;Um.exports=function(e){var t;return qm(e)&&(t=e.constructor,TR(t)&&(t===Lm||qm(t.prototype))?t=void 0:kR(t)&&(t=t[CR],t===null&&(t=void 0))),t===void 0?Lm:t}});var tc=p((jH,jm)=>{"use strict";var OR=Mm();jm.exports=function(e,t){return new(OR(e))(t===0?0:t)}});var tr=p((FH,Bm)=>{"use strict";var PR=Bn(),NR=de(),DR=uo(),qR=jr(),LR=Jr(),UR=tc(),Fm=NR([].push),er=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 h=qR(l),f=DR(h),m=LR(f),g=PR(c,d),_=0,v=u||UR,b=t?v(l,m):r||a?v(l,0):void 0,x,T;m>_;_++)if((s||_ in f)&&(x=f[_],T=g(x,_,h),e))if(t)b[_]=T;else if(T)switch(e){case 3:return!0;case 5:return x;case 6:return _;case 2:Fm(b,x)}else switch(e){case 4:return!1;case 7:Fm(b,x)}return o?-1:n||i?i:b}};Bm.exports={forEach:er(0),map:er(1),filter:er(2),some:er(3),every:er(4),find:er(5),findIndex:er(6),filterReject:er(7)}});var Gn=p((BH,$m)=>{"use strict";var MR=re(),jR=De(),FR=ho(),BR=jR("species");$m.exports=function(e){return FR>=51||!MR(function(){var t=[],r=t.constructor={};return r[BR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Jm=p(()=>{"use strict";var $R=V(),JR=tr().filter,HR=Gn(),VR=HR("filter");$R({target:"Array",proto:!0,forced:!VR},{filter:function(t){return JR(this,t,arguments.length>1?arguments[1]:void 0)}})});var nt=p((HH,Hm)=>{"use strict";var GR=ne(),zR=vt();Hm.exports=function(e,t){var r=zR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=GR[e],o=i&&i.prototype;return o&&o[t]}});var Gm=p((VH,Vm)=>{"use strict";Jm();var KR=nt();Vm.exports=KR("Array","filter")});var Km=p((GH,zm)=>{"use strict";var WR=je(),YR=Gm(),rc=Array.prototype;zm.exports=function(e){var t=e.filter;return e===rc||WR(rc,e)&&t===rc.filter?YR:t}});var Ym=p((zH,Wm)=>{"use strict";var QR=Km();Wm.exports=QR});var Xm=p((KH,Qm)=>{Qm.exports=Ym()});var zn=p((WH,Zm)=>{"use strict";var XR=re();Zm.exports=function(e,t){var r=[][e];return!!r&&XR(function(){r.call(null,t||function(){return 1},1)})}});var ev=p(()=>{"use strict";var ZR=V(),eC=tr().every,tC=zn(),rC=tC("every");ZR({target:"Array",proto:!0,forced:!rC},{every:function(t){return eC(this,t,arguments.length>1?arguments[1]:void 0)}})});var rv=p((XH,tv)=>{"use strict";ev();var nC=nt();tv.exports=nC("Array","every")});var iv=p((ZH,nv)=>{"use strict";var iC=je(),oC=rv(),nc=Array.prototype;nv.exports=function(e){var t=e.every;return e===nc||iC(nc,e)&&t===nc.every?oC:t}});var av=p((e6,ov)=>{"use strict";var aC=iv();ov.exports=aC});var lv=p((t6,sv)=>{sv.exports=av()});var uv=p((r6,cv)=>{"use strict";var sC=tr().forEach,lC=zn(),cC=lC("forEach");cv.exports=cC?[].forEach:function(t){return sC(this,t,arguments.length>1?arguments[1]:void 0)}});var fv=p(()=>{"use strict";var uC=V(),dv=uv();uC({target:"Array",proto:!0,forced:[].forEach!==dv},{forEach:dv})});var hv=p((o6,pv)=>{"use strict";fv();var dC=nt();pv.exports=dC("Array","forEach")});var vv=p((a6,mv)=>{"use strict";var fC=hv();mv.exports=fC});var gv=p(()=>{});var _v=p((c6,yv)=>{"use strict";var pC=Hr(),hC=We(),mC=je(),vC=vv();gv();var ic=Array.prototype,gC={DOMTokenList:!0,NodeList:!0};yv.exports=function(e){var t=e.forEach;return e===ic||mC(ic,e)&&t===ic.forEach||hC(gC,pC(e))?vC:t}});var wv=p((u6,bv)=>{bv.exports=_v()});var xv=p((d6,Ev)=>{"use strict";var yC=TypeError,_C=9007199254740991;Ev.exports=function(e){if(e>_C)throw yC("Maximum allowed index exceeded");return e}});var oc=p((f6,Av)=>{"use strict";var bC=Fe(),wC=Lt(),EC=Un();Av.exports=function(e,t,r){bC?wC.f(e,t,EC(0,r)):e[t]=r}});var kv=p(()=>{"use strict";var xC=V(),AC=re(),SC=Hn(),IC=ye(),TC=jr(),kC=Jr(),Sv=xv(),Iv=oc(),RC=tc(),CC=Gn(),OC=De(),PC=ho(),Tv=OC("isConcatSpreadable"),NC=PC>=51||!AC(function(){var e=[];return e[Tv]=!1,e.concat()[0]!==e}),DC=function(e){if(!IC(e))return!1;var t=e[Tv];return t!==void 0?!!t:SC(e)},qC=!NC||!CC("concat");xC({target:"Array",proto:!0,arity:1,forced:qC},{concat:function(t){var r=TC(this),n=RC(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],DC(c))for(l=kC(c),Sv(i+l),a=0;a<l;a++,i++)a in c&&Iv(n,i,c[a]);else Sv(i+1),Iv(n,i++,c);return n.length=i,n}})});var Cv=p((m6,Rv)=>{"use strict";kv();var LC=nt();Rv.exports=LC("Array","concat")});var Pv=p((v6,Ov)=>{"use strict";var UC=je(),MC=Cv(),ac=Array.prototype;Ov.exports=function(e){var t=e.concat;return e===ac||UC(ac,e)&&t===ac.concat?MC:t}});var Dv=p((g6,Nv)=>{"use strict";var jC=Pv();Nv.exports=jC});var Lv=p((y6,qv)=>{qv.exports=Dv()});var Uv=p(()=>{"use strict";var FC=V(),BC=tr().some,$C=zn(),JC=$C("some");FC({target:"Array",proto:!0,forced:!JC},{some:function(t){return BC(this,t,arguments.length>1?arguments[1]:void 0)}})});var jv=p((w6,Mv)=>{"use strict";Uv();var HC=nt();Mv.exports=HC("Array","some")});var Bv=p((E6,Fv)=>{"use strict";var VC=je(),GC=jv(),sc=Array.prototype;Fv.exports=function(e){var t=e.some;return e===sc||VC(sc,e)&&t===sc.some?GC:t}});var Jv=p((x6,$v)=>{"use strict";var zC=Bv();$v.exports=zC});var Vv=p((A6,Hv)=>{Hv.exports=Jv()});var zv=p((S6,Gv)=>{"use strict";var Kn=ne(),KC=fo(),WC=Dt(),bo=function(e){return KC.slice(0,e.length)===e};Gv.exports=function(){return bo("Bun/")?"BUN":bo("Cloudflare-Workers")?"CLOUDFLARE":bo("Deno/")?"DENO":bo("Node.js/")?"NODE":Kn.Bun&&typeof Bun.version=="string"?"BUN":Kn.Deno&&typeof Deno.version=="object"?"DENO":WC(Kn.process)==="process"?"NODE":Kn.window&&Kn.document?"BROWSER":"REST"}()});var Wn=p((I6,Kv)=>{"use strict";var YC=de();Kv.exports=YC([].slice)});var Yv=p((T6,Wv)=>{"use strict";var QC=TypeError;Wv.exports=function(e,t){if(e<t)throw new QC("Not enough arguments");return e}});var lc=p((k6,Xv)=>{"use strict";var Qv=ne(),XC=Il(),ZC=xe(),eO=zv(),tO=fo(),rO=Wn(),nO=Yv(),iO=Qv.Function,oO=/MSIE .\./.test(tO)||eO==="BUN"&&function(){var e=Qv.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Xv.exports=function(e,t){var r=t?2:1;return oO?function(n,i){var o=nO(arguments.length,1)>r,a=ZC(n)?n:iO(n),s=o?rO(arguments,r):[],l=o?function(){XC(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var tg=p(()=>{"use strict";var aO=V(),eg=ne(),sO=lc(),Zv=sO(eg.setInterval,!0);aO({global:!0,bind:!0,forced:eg.setInterval!==Zv},{setInterval:Zv})});var ig=p(()=>{"use strict";var lO=V(),ng=ne(),cO=lc(),rg=cO(ng.setTimeout,!0);lO({global:!0,bind:!0,forced:ng.setTimeout!==rg},{setTimeout:rg})});var og=p(()=>{"use strict";tg();ig()});var sg=p((q6,ag)=>{"use strict";og();var uO=vt();ag.exports=uO.setTimeout});var cg=p((L6,lg)=>{lg.exports=sg()});function xo(e,t){se.__h&&se.__h(Ae,e,Eo||t),Eo=0;var r=Ae.__H||(Ae.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function dc(e,t){var r=xo(Vr++,3);!se.__s&&fc(r.__H,t)&&(r.__=e,r.u=t,Ae.__H.__h.push(r))}function Gr(e,t){var r=xo(Vr++,4);!se.__s&&fc(r.__H,t)&&(r.__=e,r.u=t,Ae.__h.push(r))}function Yn(e){return Eo=5,Qn(function(){return{current:e}},[])}function Qn(e,t){var r=xo(Vr++,7);return fc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ao(e,t){return Eo=8,Qn(function(){return e},t)}function zr(e){var t=Ae.context[e.__c],r=xo(Vr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Ae)),t.props.value):e.__}function dO(){for(var e;e=yg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(wo),e.__H.__h.forEach(uc),e.__H.__h=[]}catch(t){e.__H.__h=[],se.__e(t,e.__v)}}function fO(e){var t,r=function(){clearTimeout(n),gg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);gg&&(t=requestAnimationFrame(r))}function wo(e){var t=Ae,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ae=t}function uc(e){var t=Ae;e.__c=e.__(),Ae=t}function fc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}var Vr,Ae,cc,ug,Eo,yg,se,dg,fg,pg,hg,mg,vg,gg,pc=I(()=>{qr();Eo=0,yg=[],se=C,dg=se.__b,fg=se.__r,pg=se.diffed,hg=se.__c,mg=se.unmount,vg=se.__;se.__b=function(e){Ae=null,dg&&dg(e)},se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),vg&&vg(e,t)},se.__r=function(e){fg&&fg(e),Vr=0;var t=(Ae=e.__c).__H;t&&(cc===Ae?(t.__h=[],Ae.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(wo),t.__h.forEach(uc),t.__h=[],Vr=0)),cc=Ae},se.diffed=function(e){pg&&pg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(yg.push(t)!==1&&ug===se.requestAnimationFrame||((ug=se.requestAnimationFrame)||fO)(dO)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),cc=Ae=null},se.__c=function(e,t){t.some(function(r){try{r.__h.forEach(wo),r.__h=r.__h.filter(function(n){return!n.__||uc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],se.__e(n,r.__v)}}),hg&&hg(e,t)},se.unmount=function(e){mg&&mg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{wo(n)}catch(i){t=i}}),r.__H=void 0,t&&se.__e(t,r.__v))};gg=typeof requestAnimationFrame=="function"});function kg(e,t){for(var r in t)e[r]=t[r];return e}function mc(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 _g(e,t){this.props=e,this.context=t}function gc(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:mc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ne(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function yc(e){function t(r){var n=kg({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=pO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Rg(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=kg({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Rg(n,t,r)})),e}function Cg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Cg(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 hc(){this.__u=0,this.o=null,this.__b=null}function Og(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function So(){this.i=null,this.l=null}function Pg(e,t,r){return t.__k==null&&(t.textContent=""),Dr(e,t),typeof r=="function"&&r(),e?e.__c:null}function wO(){}function EO(){return this.cancelBubble}function xO(){return this.defaultPrevented}var vc,bg,pO,hO,wg,Eg,mO,vO,gO,yO,_O,bO,xg,Ng,AO,Ag,Sg,Ig,Io=I(()=>{qr();qr();pc();pc();vc=Gr;(_g.prototype=new ze).isPureReactComponent=!0,_g.prototype.shouldComponentUpdate=function(e,t){return mc(this.props,e)||mc(this.state,t)};bg=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),bg&&bg(e)};pO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;hO=C.__e;C.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}hO(e,t,r,n)};wg=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),wg&&wg(e)},(hc.prototype=new ze).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Og(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]=Cg(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)},hc.prototype.componentWillUnmount=function(){this.o=[]},hc.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]=Rg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ne(Ke,null,e.fallback);return i&&(i.__u&=-33),[Ne(Ke,null,t.__a?null:e.children),i]};Eg=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]}};(So.prototype=new ze).__a=function(e){var t=this,r=Og(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Eg(t,e,n)):i()};r?r(o):o()}},So.prototype.render=function(e){this.i=null,this.l=new Map;var t=Dn(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},So.prototype.componentDidUpdate=So.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Eg(e,r,t)})};mO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,vO=/^(?: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]/,gO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yO=/[A-Z0-9]/g,_O=typeof document!="undefined",bO=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ze.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});xg=C.event;C.event=function(e){return xg&&(e=xg(e)),e.persist=wO,e.isPropagationStopped=EO,e.isDefaultPrevented=xO,e.nativeEvent=e};AO={enumerable:!1,configurable:!0,get:function(){return this.class}},Ag=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||_O&&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"||bO(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":gO.test(a)&&(a=l):l=a="oninput":o&&vO.test(a)?a=a.replace(yO,"-$&").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=Dn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Dn(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",AO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=mO,Ag&&Ag(e)};Sg=C.__r;C.__r=function(e){Sg&&Sg(e),Ng=e.__c};Ig=C.diffed;C.diffed=function(e){Ig&&Ig(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),Ng=null}});var _c=p((Y6,Dg)=>{"use strict";var IO=Jn(),TO=Math.max,kO=Math.min;Dg.exports=function(e,t){var r=IO(e);return r<0?TO(r+t,0):kO(r,t)}});var Ug=p(()=>{"use strict";var RO=V(),qg=Hn(),CO=ec(),OO=ye(),Lg=_c(),PO=Jr(),NO=Zt(),DO=oc(),qO=De(),LO=Gn(),UO=Wn(),MO=LO("slice"),jO=qO("species"),bc=Array,FO=Math.max;RO({target:"Array",proto:!0,forced:!MO},{slice:function(t,r){var n=NO(this),i=PO(n),o=Lg(t,i),a=Lg(r===void 0?i:r,i),s,l,c;if(qg(n)&&(s=n.constructor,CO(s)&&(s===bc||qg(s.prototype))?s=void 0:OO(s)&&(s=s[jO],s===null&&(s=void 0)),s===bc||s===void 0))return UO(n,o,a);for(l=new(s===void 0?bc:s)(FO(a-o,0)),c=0;o<a;o++,c++)o in n&&DO(l,c,n[o]);return l.length=c,l}})});var jg=p((Z6,Mg)=>{"use strict";Ug();var BO=nt();Mg.exports=BO("Array","slice")});var Bg=p((e9,Fg)=>{"use strict";var $O=je(),JO=jg(),wc=Array.prototype;Fg.exports=function(e){var t=e.slice;return e===wc||$O(wc,e)&&t===wc.slice?JO:t}});var Jg=p((t9,$g)=>{"use strict";var HO=Bg();$g.exports=HO});var Vg=p((r9,Hg)=>{Hg.exports=Jg()});var Gg=p(()=>{"use strict";var VO=V(),GO=Hn();VO({target:"Array",stat:!0},{isArray:GO})});var Kg=p((o9,zg)=>{"use strict";Gg();var zO=vt();zg.exports=zO.Array.isArray});var Yg=p((a9,Wg)=>{"use strict";var KO=Kg();Wg.exports=KO});var Xg=p((s9,Qg)=>{Qg.exports=Yg()});var Xn=p((l9,Zg)=>{"use strict";var WO=Hr(),YO=String;Zg.exports=function(e){if(WO(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return YO(e)}});var ty=p((c9,ey)=>{"use strict";var QO=ye(),XO=Dt(),ZO=De(),eP=ZO("match");ey.exports=function(e){var t;return QO(e)&&((t=e[eP])!==void 0?!!t:XO(e)==="RegExp")}});var ny=p((u9,ry)=>{"use strict";var tP=ty(),rP=TypeError;ry.exports=function(e){if(tP(e))throw new rP("The method doesn't accept regular expressions");return e}});var oy=p((d9,iy)=>{"use strict";var nP=De(),iP=nP("match");iy.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[iP]=!1,"/./"[e](t)}catch(n){}}return!1}});var ly=p(()=>{"use strict";var oP=V(),aP=Ln(),sP=Vl().f,lP=Ql(),ay=Xn(),cP=ny(),uP=_r(),dP=oy(),fP=Mr(),pP=aP("".slice),hP=Math.min,sy=dP("startsWith"),mP=!fP&&!sy&&!!function(){var e=sP(String.prototype,"startsWith");return e&&!e.writable}();oP({target:"String",proto:!0,forced:!mP&&!sy},{startsWith:function(t){var r=ay(uP(this));cP(t);var n=lP(hP(arguments.length>1?arguments[1]:void 0,r.length)),i=ay(t);return pP(r,n,n+i.length)===i}})});var uy=p((h9,cy)=>{"use strict";ly();var vP=nt();cy.exports=vP("String","startsWith")});var fy=p((m9,dy)=>{"use strict";var gP=je(),yP=uy(),Ec=String.prototype;dy.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Ec||gP(Ec,e)&&t===Ec.startsWith?yP:t}});var hy=p((v9,py)=>{"use strict";var _P=fy();py.exports=_P});var vy=p((g9,my)=>{my.exports=hy()});var Ac=p(()=>{"use strict";var bP=V(),xc=ne();bP({global:!0,forced:xc.globalThis!==xc},{globalThis:xc})});var gy=p(()=>{"use strict";Ac()});var _y=p((E9,yy)=>{"use strict";Ac();yy.exports=ne()});var wy=p((x9,by)=>{"use strict";var wP=_y();by.exports=wP});var xy=p((A9,Ey)=>{"use strict";var EP=wy();Ey.exports=EP});var Sy=p((S9,Ay)=>{"use strict";gy();var xP=xy();Ay.exports=xP});var Ty=p((I9,Iy)=>{"use strict";Iy.exports=Sy()});var Ry=p((T9,ky)=>{ky.exports=Ty()});var Oy=p((k9,Cy)=>{"use strict";Cy.exports=function(){}});var Er=p((R9,Py)=>{"use strict";Py.exports={}});var Sc=p((C9,Dy)=>{"use strict";var AP=ne(),SP=xe(),Ny=AP.WeakMap;Dy.exports=SP(Ny)&&/native code/.test(String(Ny))});var To=p((O9,Ly)=>{"use strict";var IP=jl(),TP=vo(),qy=IP("keys");Ly.exports=function(e){return qy[e]||(qy[e]=TP(e))}});var Zn=p((P9,Uy)=>{"use strict";Uy.exports={}});var Ar=p((N9,Fy)=>{"use strict";var kP=Sc(),jy=ne(),RP=ye(),CP=wr(),Ic=We(),Tc=jn(),OP=To(),PP=Zn(),My="Object already initialized",kc=jy.TypeError,NP=jy.WeakMap,ko,ei,Ro,DP=function(e){return Ro(e)?ei(e):ko(e,{})},qP=function(e){return function(t){var r;if(!RP(t)||(r=ei(t)).type!==e)throw new kc("Incompatible receiver, "+e+" required");return r}};kP||Tc.state?(dt=Tc.state||(Tc.state=new NP),dt.get=dt.get,dt.has=dt.has,dt.set=dt.set,ko=function(e,t){if(dt.has(e))throw new kc(My);return t.facade=e,dt.set(e,t),t},ei=function(e){return dt.get(e)||{}},Ro=function(e){return dt.has(e)}):(xr=OP("state"),PP[xr]=!0,ko=function(e,t){if(Ic(e,xr))throw new kc(My);return t.facade=e,CP(e,xr,t),t},ei=function(e){return Ic(e,xr)?e[xr]:{}},Ro=function(e){return Ic(e,xr)});var dt,xr;Fy.exports={set:ko,get:ei,has:Ro,enforce:DP,getterFor:qP}});var Oc=p((D9,$y)=>{"use strict";var Rc=Fe(),LP=We(),By=Function.prototype,UP=Rc&&Object.getOwnPropertyDescriptor,Cc=LP(By,"name"),MP=Cc&&(function(){}).name==="something",jP=Cc&&(!Rc||Rc&&UP(By,"name").configurable);$y.exports={EXISTS:Cc,PROPER:MP,CONFIGURABLE:jP}});var Pc=p((q9,Hy)=>{"use strict";var FP=Zt(),BP=_c(),$P=Jr(),Jy=function(e){return function(t,r,n){var i=FP(t),o=$P(i);if(o===0)return!e&&-1;var a=BP(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}};Hy.exports={includes:Jy(!0),indexOf:Jy(!1)}});var Dc=p((L9,Gy)=>{"use strict";var JP=de(),Nc=We(),HP=Zt(),VP=Pc().indexOf,GP=Zn(),Vy=JP([].push);Gy.exports=function(e,t){var r=HP(e),n=0,i=[],o;for(o in r)!Nc(GP,o)&&Nc(r,o)&&Vy(i,o);for(;t.length>n;)Nc(r,o=t[n++])&&(~VP(i,o)||Vy(i,o));return i}});var Co=p((U9,zy)=>{"use strict";zy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var qc=p((M9,Ky)=>{"use strict";var zP=Dc(),KP=Co();Ky.exports=Object.keys||function(t){return zP(t,KP)}});var Yy=p(Wy=>{"use strict";var WP=Fe(),YP=Gl(),QP=Lt(),XP=qt(),ZP=Zt(),eN=qc();Wy.f=WP&&!YP?Object.defineProperties:function(t,r){XP(t);for(var n=ZP(r),i=eN(r),o=i.length,a=0,s;o>a;)QP.f(t,s=i[a++],n[s]);return t}});var Xy=p((F9,Qy)=>{"use strict";var tN=Ur();Qy.exports=tN("document","documentElement")});var ti=p((B9,o_)=>{"use strict";var rN=qt(),nN=Yy(),Zy=Co(),iN=Zn(),oN=Xy(),aN=Jl(),sN=To(),e_=">",t_="<",Uc="prototype",Mc="script",n_=sN("IE_PROTO"),Lc=function(){},i_=function(e){return t_+Mc+e_+e+t_+"/"+Mc+e_},r_=function(e){e.write(i_("")),e.close();var t=e.parentWindow.Object;return e=null,t},lN=function(){var e=aN("iframe"),t="java"+Mc+":",r;return e.style.display="none",oN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(i_("document.F=Object")),r.close(),r.F},Oo,Po=function(){try{Oo=new ActiveXObject("htmlfile")}catch(t){}Po=typeof document!="undefined"?document.domain&&Oo?r_(Oo):lN():r_(Oo);for(var e=Zy.length;e--;)delete Po[Uc][Zy[e]];return Po()};iN[n_]=!0;o_.exports=Object.create||function(t,r){var n;return t!==null?(Lc[Uc]=rN(t),n=new Lc,Lc[Uc]=null,n[n_]=t):n=Po(),r===void 0?n:nN.f(n,r)}});var s_=p(($9,a_)=>{"use strict";var cN=re();a_.exports=!cN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Fc=p((J9,c_)=>{"use strict";var uN=We(),dN=xe(),fN=jr(),pN=To(),hN=s_(),l_=pN("IE_PROTO"),jc=Object,mN=jc.prototype;c_.exports=hN?jc.getPrototypeOf:function(e){var t=fN(e);if(uN(t,l_))return t[l_];var r=t.constructor;return dN(r)&&t instanceof r?r.prototype:t instanceof jc?mN:null}});var No=p((H9,u_)=>{"use strict";var vN=wr();u_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:vN(e,t,r),e}});var Hc=p((V9,p_)=>{"use strict";var gN=re(),yN=xe(),_N=ye(),bN=ti(),d_=Fc(),wN=No(),EN=De(),xN=Mr(),Jc=EN("iterator"),f_=!1,Ut,Bc,$c;[].keys&&($c=[].keys(),"next"in $c?(Bc=d_(d_($c)),Bc!==Object.prototype&&(Ut=Bc)):f_=!0);var AN=!_N(Ut)||gN(function(){var e={};return Ut[Jc].call(e)!==e});AN?Ut={}:xN&&(Ut=bN(Ut));yN(Ut[Jc])||wN(Ut,Jc,function(){return this});p_.exports={IteratorPrototype:Ut,BUGGY_SAFARI_ITERATORS:f_}});var m_=p((G9,h_)=>{"use strict";var SN=yo(),IN=Hr();h_.exports=SN?{}.toString:function(){return"[object "+IN(this)+"]"}});var ri=p((z9,g_)=>{"use strict";var TN=yo(),kN=Lt().f,RN=wr(),CN=We(),ON=m_(),PN=De(),v_=PN("toStringTag");g_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(CN(i,v_)||kN(i,v_,{configurable:!0,value:t}),n&&!TN&&RN(i,"toString",ON))}});var __=p((K9,y_)=>{"use strict";var NN=Hc().IteratorPrototype,DN=ti(),qN=Un(),LN=ri(),UN=Er(),MN=function(){return this};y_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=DN(NN,{next:qN(+!n,r)}),LN(e,i,!1,!0),UN[i]=MN,e}});var w_=p((W9,b_)=>{"use strict";var jN=de(),FN=br();b_.exports=function(e,t,r){try{return jN(FN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var x_=p((Y9,E_)=>{"use strict";var BN=ye();E_.exports=function(e){return BN(e)||e===null}});var S_=p((Q9,A_)=>{"use strict";var $N=x_(),JN=String,HN=TypeError;A_.exports=function(e){if($N(e))return e;throw new HN("Can't set "+JN(e)+" as a prototype")}});var T_=p((X9,I_)=>{"use strict";var VN=w_(),GN=ye(),zN=_r(),KN=S_();I_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=VN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return zN(i),KN(o),GN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Lo=p((Z9,U_)=>{"use strict";var WN=V(),YN=ct(),Do=Mr(),q_=Oc(),QN=xe(),XN=__(),k_=Fc(),R_=T_(),ZN=ri(),eD=wr(),Vc=No(),tD=De(),C_=Er(),L_=Hc(),rD=q_.PROPER,nD=q_.CONFIGURABLE,O_=L_.IteratorPrototype,qo=L_.BUGGY_SAFARI_ITERATORS,ni=tD("iterator"),P_="keys",ii="values",N_="entries",D_=function(){return this};U_.exports=function(e,t,r,n,i,o,a){XN(r,t,n);var s=function(v){if(v===i&&h)return h;if(!qo&&v&&v in d)return d[v];switch(v){case P_:return function(){return new r(this,v)};case ii:return function(){return new r(this,v)};case N_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ni]||d["@@iterator"]||i&&d[i],h=!qo&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=k_(f.call(new e)),m!==Object.prototype&&m.next&&(!Do&&k_(m)!==O_&&(R_?R_(m,O_):QN(m[ni])||Vc(m,ni,D_)),ZN(m,l,!0,!0),Do&&(C_[l]=D_))),rD&&i===ii&&u&&u.name!==ii&&(!Do&&nD?eD(d,"name",ii):(c=!0,h=function(){return YN(u,this)})),i)if(g={values:s(ii),keys:o?h:s(P_),entries:s(N_)},a)for(_ in g)(qo||c||!(_ in d))&&Vc(d,_,g[_]);else WN({target:t,proto:!0,forced:qo||c},g);return(!Do||a)&&d[ni]!==h&&Vc(d,ni,h,{name:i}),C_[t]=h,g}});var Uo=p((eV,M_)=>{"use strict";M_.exports=function(e,t){return{value:e,done:t}}});var jo=p((tV,J_)=>{"use strict";var iD=Zt(),Gc=Oy(),j_=Er(),B_=Ar(),oD=Lt().f,aD=Lo(),Mo=Uo(),sD=Mr(),lD=Fe(),$_="Array Iterator",cD=B_.set,uD=B_.getterFor($_);J_.exports=aD(Array,"Array",function(e,t){cD(this,{type:$_,target:iD(e),index:0,kind:t})},function(){var e=uD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Mo(void 0,!0);switch(e.kind){case"keys":return Mo(r,!1);case"values":return Mo(t[r],!1)}return Mo([r,t[r]],!1)},"values");var F_=j_.Arguments=j_.Array;Gc("keys");Gc("values");Gc("entries");if(!sD&&lD&&F_.name!=="values")try{oD(F_,"name",{value:"values"})}catch(e){}});var zc=p(()=>{});var Kc=p((iV,H_)=>{"use strict";var dD=re();H_.exports=!dD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Fo=p((oV,V_)=>{"use strict";var fD=No();V_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:fD(e,n,t[n],r);return e}});var Wc=p(G_=>{"use strict";var pD=Dc(),hD=Co(),mD=hD.concat("length","prototype");G_.f=Object.getOwnPropertyNames||function(t){return pD(t,mD)}});var Y_=p((sV,W_)=>{"use strict";var vD=Dt(),gD=Zt(),z_=Wc().f,yD=Wn(),K_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_D=function(e){try{return z_(e)}catch(t){return yD(K_)}};W_.exports.f=function(t){return K_&&vD(t)==="Window"?_D(t):z_(gD(t))}});var X_=p((lV,Q_)=>{"use strict";var bD=re();Q_.exports=bD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var tb=p((cV,eb)=>{"use strict";var wD=re(),ED=ye(),xD=Dt(),Z_=X_(),Bo=Object.isExtensible,AD=wD(function(){Bo(1)});eb.exports=AD||Z_?function(t){return!ED(t)||Z_&&xD(t)==="ArrayBuffer"?!1:Bo?Bo(t):!0}:Bo});var oi=p((uV,ib)=>{"use strict";var SD=V(),ID=de(),TD=Zn(),kD=ye(),Yc=We(),RD=Lt().f,rb=Wc(),CD=Y_(),Qc=tb(),OD=vo(),PD=Kc(),nb=!1,Mt=OD("meta"),ND=0,Xc=function(e){RD(e,Mt,{value:{objectID:"O"+ND++,weakData:{}}})},DD=function(e,t){if(!kD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Yc(e,Mt)){if(!Qc(e))return"F";if(!t)return"E";Xc(e)}return e[Mt].objectID},qD=function(e,t){if(!Yc(e,Mt)){if(!Qc(e))return!0;if(!t)return!1;Xc(e)}return e[Mt].weakData},LD=function(e){return PD&&nb&&Qc(e)&&!Yc(e,Mt)&&Xc(e),e},UD=function(){MD.enable=function(){},nb=!0;var e=rb.f,t=ID([].splice),r={};r[Mt]=1,e(r).length&&(rb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Mt){t(i,o,1);break}return i},SD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:CD.f}))},MD=ib.exports={enable:UD,fastKey:DD,getWeakData:qD,onFreeze:LD};TD[Mt]=!0});var ab=p((dV,ob)=>{"use strict";var jD=De(),FD=Er(),BD=jD("iterator"),$D=Array.prototype;ob.exports=function(e){return e!==void 0&&(FD.Array===e||$D[BD]===e)}});var Zc=p((fV,lb)=>{"use strict";var JD=Hr(),sb=mo(),HD=yr(),VD=Er(),GD=De(),zD=GD("iterator");lb.exports=function(e){if(!HD(e))return sb(e,zD)||sb(e,"@@iterator")||VD[JD(e)]}});var ub=p((pV,cb)=>{"use strict";var KD=ct(),WD=br(),YD=qt(),QD=Mn(),XD=Zc(),ZD=TypeError;cb.exports=function(e,t){var r=arguments.length<2?XD(e):t;if(WD(r))return YD(KD(r,e));throw new ZD(QD(e)+" is not iterable")}});var $o=p((hV,fb)=>{"use strict";var eq=ct(),db=qt(),tq=mo();fb.exports=function(e,t,r){var n,i;db(e);try{if(n=tq(e,"return"),!n){if(t==="throw")throw r;return r}n=eq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return db(n),r}});var Ho=p((mV,vb)=>{"use strict";var rq=Bn(),nq=ct(),iq=qt(),oq=Mn(),aq=ab(),sq=Jr(),pb=je(),lq=ub(),cq=Zc(),hb=$o(),uq=TypeError,Jo=function(e,t){this.stopped=e,this.result=t},mb=Jo.prototype;vb.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=rq(t,n),c,d,u,h,f,m,g,_=function(b){return c&&hb(c,"normal",b),new Jo(!0,b)},v=function(b){return i?(iq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=cq(e),!d)throw new uq(oq(e)+" is not iterable");if(aq(d)){for(u=0,h=sq(e);h>u;u++)if(f=v(e[u]),f&&pb(mb,f))return f;return new Jo(!1)}c=lq(e,d)}for(m=o?e.next:c.next;!(g=nq(m,c)).done;){try{f=v(g.value)}catch(b){hb(c,"throw",b)}if(typeof f=="object"&&f&&pb(mb,f))return f}return new Jo(!1)}});var Vo=p((vV,gb)=>{"use strict";var dq=je(),fq=TypeError;gb.exports=function(e,t){if(dq(t,e))return e;throw new fq("Incorrect invocation")}});var eu=p((gV,_b)=>{"use strict";var pq=V(),hq=ne(),mq=oi(),vq=re(),gq=wr(),yq=Ho(),_q=Vo(),bq=xe(),wq=ye(),Eq=yr(),xq=ri(),Aq=Lt().f,Sq=tr().forEach,Iq=Fe(),yb=Ar(),Tq=yb.set,kq=yb.getterFor;_b.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=hq[e],s=a&&a.prototype,l={},c;if(!Iq||!bq(a)||!(i||s.forEach&&!vq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),mq.enable();else{c=t(function(h,f){Tq(_q(h,d),{type:e,collection:new a}),Eq(f)||yq(f,h[o],{that:h,AS_ENTRIES:n})});var d=c.prototype,u=kq(e);Sq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var f=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&gq(d,h,function(m,g){var _=u(this).collection;if(!f&&i&&!wq(m))return h==="get"?void 0:!1;var v=_[h](m===0?0:m,g);return f?this:v})}),i||Aq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return xq(c,e,!1,!0),l[e]=c,pq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Ib=p((yV,Sb)=>{"use strict";var Rq=de(),bb=Fo(),Go=oi().getWeakData,Cq=Vo(),Oq=qt(),Pq=yr(),tu=ye(),Nq=Ho(),Eb=tr(),wb=We(),xb=Ar(),Dq=xb.set,qq=xb.getterFor,Lq=Eb.find,Uq=Eb.findIndex,Mq=Rq([].splice),jq=0,zo=function(e){return e.frozen||(e.frozen=new Ab)},Ab=function(){this.entries=[]},ru=function(e,t){return Lq(e.entries,function(r){return r[0]===t})};Ab.prototype={get:function(e){var t=ru(this,e);if(t)return t[1]},has:function(e){return!!ru(this,e)},set:function(e,t){var r=ru(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Uq(this.entries,function(r){return r[0]===e});return~t&&Mq(this.entries,t,1),!!~t}};Sb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Cq(l,o),Dq(l,{type:t,id:jq++,frozen:null}),Pq(c)||Nq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=qq(t),s=function(l,c,d){var u=a(l),h=Go(Oq(c),!0);return h===!0?zo(u).set(c,d):h[u.id]=d,l};return bb(o,{delete:function(l){var c=a(this);if(!tu(l))return!1;var d=Go(l);return d===!0?zo(c).delete(l):d&&wb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!tu(c))return!1;var u=Go(c);return u===!0?zo(d).has(c):u&&wb(u,d.id)}}),bb(o,r?{get:function(c){var d=a(this);if(tu(c)){var u=Go(c);if(u===!0)return zo(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 Db=p(()=>{"use strict";var Fq=Kc(),Tb=ne(),Qo=de(),kb=Fo(),Bq=oi(),$q=eu(),Rb=Ib(),Ko=ye(),Wo=Ar().enforce,Jq=re(),Hq=Sc(),li=Object,Vq=Array.isArray,Yo=li.isExtensible,Cb=li.isFrozen,Gq=li.isSealed,Ob=li.freeze,zq=li.seal,Kq=!Tb.ActiveXObject&&"ActiveXObject"in Tb,ai,Pb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Nb=$q("WeakMap",Pb,Rb),Kr=Nb.prototype,Xo=Qo(Kr.set),Wq=function(){return Fq&&Jq(function(){var e=Ob([]);return Xo(new Nb,e,1),!Cb(e)})};Hq&&(Kq?(ai=Rb.getConstructor(Pb,"WeakMap",!0),Bq.enable(),nu=Qo(Kr.delete),si=Qo(Kr.has),iu=Qo(Kr.get),kb(Kr,{delete:function(e){if(Ko(e)&&!Yo(e)){var t=Wo(this);return t.frozen||(t.frozen=new ai),nu(this,e)||t.frozen.delete(e)}return nu(this,e)},has:function(t){if(Ko(t)&&!Yo(t)){var r=Wo(this);return r.frozen||(r.frozen=new ai),si(this,t)||r.frozen.has(t)}return si(this,t)},get:function(t){if(Ko(t)&&!Yo(t)){var r=Wo(this);return r.frozen||(r.frozen=new ai),si(this,t)?iu(this,t):r.frozen.get(t)}return iu(this,t)},set:function(t,r){if(Ko(t)&&!Yo(t)){var n=Wo(this);n.frozen||(n.frozen=new ai),si(this,t)?Xo(this,t,r):n.frozen.set(t,r)}else Xo(this,t,r);return this}})):Wq()&&kb(Kr,{set:function(t,r){var n;return Vq(t)&&(Cb(t)?n=Ob:Gq(t)&&(n=zq)),Xo(this,t,r),n&&n(t),this}}));var nu,si,iu});var qb=p(()=>{"use strict";Db()});var Ub=p((xV,Lb)=>{"use strict";jo();zc();qb();var Yq=vt();Lb.exports=Yq.WeakMap});var jb=p((AV,Mb)=>{"use strict";Mb.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 ou=p(()=>{"use strict";jo();var Qq=jb(),Xq=ne(),Zq=ri(),Fb=Er();for(Zo in Qq)Zq(Xq[Zo],Zo),Fb[Zo]=Fb.Array;var Zo});var $b=p((TV,Bb)=>{"use strict";var eL=Ub();ou();Bb.exports=eL});var Hb=p((kV,Jb)=>{Jb.exports=$b()});var Gb=p(()=>{"use strict";var tL=V(),rL=Ln(),nL=Pc().indexOf,iL=zn(),au=rL([].indexOf),Vb=!!au&&1/au([1],1,-0)<0,oL=Vb||!iL("indexOf");tL({target:"Array",proto:!0,forced:oL},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Vb?au(this,t,r)||0:nL(this,t,r)}})});var Kb=p((OV,zb)=>{"use strict";Gb();var aL=nt();zb.exports=aL("Array","indexOf")});var Yb=p((PV,Wb)=>{"use strict";var sL=je(),lL=Kb(),su=Array.prototype;Wb.exports=function(e){var t=e.indexOf;return e===su||sL(su,e)&&t===su.indexOf?lL:t}});var Xb=p((NV,Qb)=>{"use strict";var cL=Yb();Qb.exports=cL});var e0=p((DV,Zb)=>{Zb.exports=Xb()});var t0=p(()=>{"use strict";var uL=V(),dL=tr().map,fL=Gn(),pL=fL("map");uL({target:"Array",proto:!0,forced:!pL},{map:function(t){return dL(this,t,arguments.length>1?arguments[1]:void 0)}})});var n0=p((UV,r0)=>{"use strict";t0();var hL=nt();r0.exports=hL("Array","map")});var o0=p((MV,i0)=>{"use strict";var mL=je(),vL=n0(),lu=Array.prototype;i0.exports=function(e){var t=e.map;return e===lu||mL(lu,e)&&t===lu.map?vL:t}});var s0=p((jV,a0)=>{"use strict";var gL=o0();a0.exports=gL});var c0=p((FV,l0)=>{l0.exports=s0()});var u0=p(()=>{"use strict";var yL=V(),_L=Fe(),bL=ti();yL({target:"Object",stat:!0,sham:!_L},{create:bL})});var f0=p((JV,d0)=>{"use strict";u0();var wL=vt(),EL=wL.Object;d0.exports=function(t,r){return EL.create(t,r)}});var h0=p((HV,p0)=>{"use strict";var xL=f0();p0.exports=xL});var v0=p((VV,m0)=>{m0.exports=h0()});var cu=p((GV,g0)=>{"use strict";var AL=Lt();g0.exports=function(e,t,r){return AL.f(e,t,r)}});var b0=p((zV,_0)=>{"use strict";var SL=Ur(),IL=cu(),TL=De(),kL=Fe(),y0=TL("species");_0.exports=function(e){var t=SL(e);kL&&t&&!t[y0]&&IL(t,y0,{configurable:!0,get:function(){return this}})}});var T0=p((KV,I0)=>{"use strict";var w0=ti(),RL=cu(),E0=Fo(),CL=Bn(),OL=Vo(),PL=yr(),NL=Ho(),DL=Lo(),ea=Uo(),qL=b0(),ci=Fe(),x0=oi().fastKey,S0=Ar(),A0=S0.set,uu=S0.getterFor;I0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){OL(c,o),A0(c,{type:t,index:w0(null),first:null,last:null,size:0}),ci||(c.size=0),PL(d)||NL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=uu(t),s=function(c,d,u){var h=a(c),f=l(c,d),m,g;return f?f.value=u:(h.last=f={index:g=x0(d,!0),key:d,value:u,previous:m=h.last,next:null,removed:!1},h.first||(h.first=f),m&&(m.next=f),ci?h.size++:c.size++,g!=="F"&&(h.index[g]=f)),c},l=function(c,d){var u=a(c),h=x0(d),f;if(h!=="F")return u.index[h];for(f=u.first;f;f=f.next)if(f.key===d)return f};return E0(o,{clear:function(){for(var d=this,u=a(d),h=u.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=null),h=h.next;u.first=u.last=null,u.index=w0(null),ci?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),h=l(d,c);if(h){var f=h.next,m=h.previous;delete u.index[h.index],h.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===h&&(u.first=f),u.last===h&&(u.last=m),ci?u.size--:d.size--}return!!h},forEach:function(d){for(var u=a(this),h=CL(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(h(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),E0(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)}}),ci&&RL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=uu(t),o=uu(n);DL(e,t,function(a,s){A0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,ea(void 0,!0)):ea(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),qL(t)}}});var k0=p(()=>{"use strict";var LL=eu(),UL=T0();LL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},UL)});var R0=p(()=>{"use strict";k0()});var rr=p((ZV,C0)=>{"use strict";var ML=Mn(),jL=TypeError;C0.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 jL(ML(e)+" is not a set")}});var P0=p((eG,O0)=>{"use strict";O0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var nr=p((tG,D0)=>{"use strict";var FL=Ur(),du=P0(),N0=FL("Set"),BL=N0.prototype;D0.exports={Set:N0,add:du("add",1),has:du("has",1),remove:du("delete",1),proto:BL}});var ir=p((rG,q0)=>{"use strict";var $L=ct();q0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=$L(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Wr=p((nG,L0)=>{"use strict";var JL=ir();L0.exports=function(e,t,r){return r?JL(e.keys(),t,!0):e.forEach(t)}});var ta=p((iG,M0)=>{"use strict";var U0=nr(),HL=Wr(),VL=U0.Set,GL=U0.add;M0.exports=function(e){var t=new VL;return HL(e,function(r){GL(t,r)}),t}});var Yr=p((oG,j0)=>{"use strict";j0.exports=function(e){return e.size}});var B0=p((aG,F0)=>{"use strict";F0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var or=p((sG,z0)=>{"use strict";var $0=br(),V0=qt(),J0=ct(),zL=Jn(),KL=B0(),H0="Invalid size",WL=RangeError,YL=TypeError,QL=Math.max,G0=function(e,t){this.set=e,this.size=QL(t,0),this.has=$0(e.has),this.keys=$0(e.keys)};G0.prototype={getIterator:function(){return KL(V0(J0(this.keys,this.set)))},includes:function(e){return J0(this.has,this.set,e)}};z0.exports=function(e){V0(e);var t=+e.size;if(t!==t)throw new YL(H0);var r=zL(t);if(r<0)throw new WL(H0);return new G0(e,r)}});var Q0=p((lG,Y0)=>{"use strict";var XL=rr(),W0=nr(),ZL=ta(),eU=Yr(),tU=or(),rU=Wr(),nU=ir(),iU=W0.has,K0=W0.remove;Y0.exports=function(t){var r=XL(this),n=tU(t),i=ZL(r);return eU(r)<=n.size?rU(r,function(o){n.includes(o)&&K0(i,o)}):nU(n.getIterator(),function(o){iU(r,o)&&K0(i,o)}),i}});var ar=p((cG,X0)=>{"use strict";X0.exports=function(){return!1}});var Z0=p(()=>{"use strict";var oU=V(),aU=Q0(),sU=ar(),lU=!sU("difference",function(e){return e.size===0});oU({target:"Set",proto:!0,real:!0,forced:lU},{difference:aU})});var rw=p((fG,tw)=>{"use strict";var cU=rr(),fu=nr(),uU=Yr(),dU=or(),fU=Wr(),pU=ir(),hU=fu.Set,ew=fu.add,mU=fu.has;tw.exports=function(t){var r=cU(this),n=dU(t),i=new hU;return uU(r)>n.size?pU(n.getIterator(),function(o){mU(r,o)&&ew(i,o)}):fU(r,function(o){n.includes(o)&&ew(i,o)}),i}});var nw=p(()=>{"use strict";var vU=V(),gU=re(),yU=rw(),_U=ar(),bU=!_U("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||gU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});vU({target:"Set",proto:!0,real:!0,forced:bU},{intersection:yU})});var ow=p((mG,iw)=>{"use strict";var wU=rr(),EU=nr().has,xU=Yr(),AU=or(),SU=Wr(),IU=ir(),TU=$o();iw.exports=function(t){var r=wU(this),n=AU(t);if(xU(r)<=n.size)return SU(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return IU(i,function(o){if(EU(r,o))return TU(i,"normal",!1)})!==!1}});var aw=p(()=>{"use strict";var kU=V(),RU=ow(),CU=ar(),OU=!CU("isDisjointFrom",function(e){return!e});kU({target:"Set",proto:!0,real:!0,forced:OU},{isDisjointFrom:RU})});var lw=p((yG,sw)=>{"use strict";var PU=rr(),NU=Yr(),DU=Wr(),qU=or();sw.exports=function(t){var r=PU(this),n=qU(t);return NU(r)>n.size?!1:DU(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var cw=p(()=>{"use strict";var LU=V(),UU=lw(),MU=ar(),jU=!MU("isSubsetOf",function(e){return e});LU({target:"Set",proto:!0,real:!0,forced:jU},{isSubsetOf:UU})});var dw=p((wG,uw)=>{"use strict";var FU=rr(),BU=nr().has,$U=Yr(),JU=or(),HU=ir(),VU=$o();uw.exports=function(t){var r=FU(this),n=JU(t);if($U(r)<n.size)return!1;var i=n.getIterator();return HU(i,function(o){if(!BU(r,o))return VU(i,"normal",!1)})!==!1}});var fw=p(()=>{"use strict";var GU=V(),zU=dw(),KU=ar(),WU=!KU("isSupersetOf",function(e){return!e});GU({target:"Set",proto:!0,real:!0,forced:WU},{isSupersetOf:zU})});var hw=p((AG,pw)=>{"use strict";var YU=rr(),pu=nr(),QU=ta(),XU=or(),ZU=ir(),eM=pu.add,tM=pu.has,rM=pu.remove;pw.exports=function(t){var r=YU(this),n=XU(t).getIterator(),i=QU(r);return ZU(n,function(o){tM(r,o)?rM(i,o):eM(i,o)}),i}});var mw=p(()=>{"use strict";var nM=V(),iM=hw(),oM=ar();nM({target:"Set",proto:!0,real:!0,forced:!oM("symmetricDifference")},{symmetricDifference:iM})});var gw=p((TG,vw)=>{"use strict";var aM=rr(),sM=nr().add,lM=ta(),cM=or(),uM=ir();vw.exports=function(t){var r=aM(this),n=cM(t).getIterator(),i=lM(r);return uM(n,function(o){sM(i,o)}),i}});var yw=p(()=>{"use strict";var dM=V(),fM=gw(),pM=ar();dM({target:"Set",proto:!0,real:!0,forced:!pM("union")},{union:fM})});var Ew=p((CG,ww)=>{"use strict";var hu=de(),hM=Jn(),mM=Xn(),vM=_r(),gM=hu("".charAt),_w=hu("".charCodeAt),yM=hu("".slice),bw=function(e){return function(t,r){var n=mM(vM(t)),i=hM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=_w(n,i),a<55296||a>56319||i+1===o||(s=_w(n,i+1))<56320||s>57343?e?gM(n,i):a:e?yM(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};ww.exports={codeAt:bw(!1),charAt:bw(!0)}});var Iw=p(()=>{"use strict";var _M=Ew().charAt,bM=Xn(),Aw=Ar(),wM=Lo(),xw=Uo(),Sw="String Iterator",EM=Aw.set,xM=Aw.getterFor(Sw);wM(String,"String",function(e){EM(this,{type:Sw,string:bM(e),index:0})},function(){var t=xM(this),r=t.string,n=t.index,i;return n>=r.length?xw(void 0,!0):(i=_M(r,n),t.index+=i.length,xw(i,!1))})});var kw=p((NG,Tw)=>{"use strict";jo();zc();R0();Z0();nw();aw();cw();fw();mw();yw();Iw();var AM=vt();Tw.exports=AM.Set});var Cw=p((DG,Rw)=>{"use strict";var SM=kw();ou();Rw.exports=SM});var Pw=p((qG,Ow)=>{Ow.exports=Cw()});var Dw=p(Nw=>{"use strict";Nw.f=Object.getOwnPropertySymbols});var Mw=p((UG,Uw)=>{"use strict";var qw=Fe(),IM=de(),TM=ct(),kM=re(),mu=qc(),RM=Dw(),CM=kl(),OM=jr(),PM=uo(),Qr=Object.assign,Lw=Object.defineProperty,NM=IM([].concat);Uw.exports=!Qr||kM(function(){if(qw&&Qr({b:1},Qr(Lw({},"a",{enumerable:!0,get:function(){Lw(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}),Qr({},e)[r]!==7||mu(Qr({},t)).join("")!==n})?function(t,r){for(var n=OM(t),i=arguments.length,o=1,a=RM.f,s=CM.f;i>o;)for(var l=PM(arguments[o++]),c=a?NM(mu(l),a(l)):mu(l),d=c.length,u=0,h;d>u;)h=c[u++],(!qw||TM(s,l,h))&&(n[h]=l[h]);return n}:Qr});var Fw=p(()=>{"use strict";var DM=V(),jw=Mw();DM({target:"Object",stat:!0,arity:2,forced:Object.assign!==jw},{assign:jw})});var $w=p((FG,Bw)=>{"use strict";Fw();var qM=vt();Bw.exports=qM.Object.assign});var Hw=p((BG,Jw)=>{"use strict";var LM=$w();Jw.exports=LM});var Gw=p(($G,Vw)=>{Vw.exports=Hw()});var vu=p((JG,zw)=>{"use strict";zw.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 Yw=p((HG,Ww)=>{"use strict";var UM=de(),MM=_r(),jM=Xn(),yu=vu(),Kw=UM("".replace),FM=RegExp("^["+yu+"]+"),BM=RegExp("(^|[^"+yu+"])["+yu+"]+$"),gu=function(e){return function(t){var r=jM(MM(t));return e&1&&(r=Kw(r,FM,"")),e&2&&(r=Kw(r,BM,"$1")),r}};Ww.exports={start:gu(1),end:gu(2),trim:gu(3)}});var eE=p((VG,Zw)=>{"use strict";var $M=Oc().PROPER,JM=re(),Qw=vu(),Xw="\u200B\x85\u180E";Zw.exports=function(e){return JM(function(){return!!Qw[e]()||Xw[e]()!==Xw||$M&&Qw[e].name!==e})}});var tE=p(()=>{"use strict";var HM=V(),VM=Yw().trim,GM=eE();HM({target:"String",proto:!0,forced:GM("trim")},{trim:function(){return VM(this)}})});var nE=p((KG,rE)=>{"use strict";tE();var zM=nt();rE.exports=zM("String","trim")});var oE=p((WG,iE)=>{"use strict";var KM=je(),WM=nE(),_u=String.prototype;iE.exports=function(e){var t=e.trim;return typeof e=="string"||e===_u||KM(_u,e)&&t===_u.trim?WM:t}});var sE=p((YG,aE)=>{"use strict";var YM=oE();aE.exports=YM});var cE=p((QG,lE)=>{lE.exports=sE()});var bu=I(()=>{});var hE=p((ZG,pE)=>{"use strict";var dE=de(),QM=br(),XM=ye(),ZM=We(),uE=Wn(),ej=Lr(),fE=Function,tj=dE([].concat),rj=dE([].join),wu={},nj=function(e,t,r){if(!ZM(wu,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";wu[t]=fE("C,a","return new C("+rj(n,",")+")")}return wu[t](e,r)};pE.exports=ej?fE.bind:function(t){var r=QM(this),n=r.prototype,i=uE(arguments,1),o=function(){var s=tj(i,uE(arguments));return this instanceof o?nj(r,s.length,s):r.apply(t,s)};return XM(n)&&(o.prototype=n),o}});var vE=p(()=>{"use strict";var ij=V(),mE=hE();ij({target:"Function",proto:!0,forced:Function.bind!==mE},{bind:mE})});var yE=p((r8,gE)=>{"use strict";vE();var oj=nt();gE.exports=oj("Function","bind")});var bE=p((n8,_E)=>{"use strict";var aj=je(),sj=yE(),Eu=Function.prototype;_E.exports=function(e){var t=e.bind;return e===Eu||aj(Eu,e)&&t===Eu.bind?sj:t}});var EE=p((i8,wE)=>{"use strict";var lj=bE();wE.exports=lj});var AE=p((o8,xE)=>{xE.exports=EE()});function xi(e,t){le.__h&&le.__h(W,e,mi||t),mi=0;var r=W.__H||(W.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function St(e){return mi=1,cj(sx,e)}function cj(e,t,r){var n=xi(Ir++,2);if(n.t=e,!n.__c&&(n.__=[sx(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=W,!W.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Ju.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,nx.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var h=n.__c.props!==s;return(0,_e.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),o&&o.call(this,s,l,c)||h};W.__f=!0;var o=W.shouldComponentUpdate,a=W.componentWillUpdate;W.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)},W.shouldComponentUpdate=i}return n.__N||n.__}function sr(e,t){var r=xi(Ir++,3);!le.__s&&Ku(r.__H,t)&&(r.__=e,r.u=t,W.__H.__h.push(r))}function uj(e,t){var r=xi(Ir++,4);!le.__s&&Ku(r.__H,t)&&(r.__=e,r.u=t,W.__h.push(r))}function Sr(e){return mi=5,ax(function(){return{current:e}},[])}function ax(e,t){var r=xi(Ir++,7);return Ku(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function it(e,t){return mi=8,ax(function(){return e},t)}function dj(e){var t=W.context[e.__c],r=xi(Ir++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(W)),t.props.value):e.__}function fj(){for(var e;e=ox.shift();)if(e.__P&&e.__H)try{var t,r;(0,_e.default)(t=e.__H.__h).call(t,oa),(0,_e.default)(r=e.__H.__h).call(r,Pu),e.__H.__h=[]}catch(n){e.__H.__h=[],le.__e(n,e.__v)}}function pj(e){var t,r=function(){clearTimeout(n),PE&&cancelAnimationFrame(t),(0,Et.default)(e)},n=(0,Et.default)(r,100);PE&&(t=requestAnimationFrame(r))}function oa(e){var t=W,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),W=t}function Pu(e){var t=W;e.__c=e.__(),W=t}function Ku(e,t){return!e||e.length!==t.length||(0,pa.default)(t).call(t,function(r,n){return r!==e[n]})}function sx(e,t){return typeof t=="function"?t(e):t}function w(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--hj,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function yj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nu(){throw new Error("setTimeout has not been defined")}function Du(){throw new Error("clearTimeout has not been defined")}function cx(e){if(gt===Et.default)return(0,Et.default)(e,0);if((gt===Nu||!gt)&&Et.default)return gt=Et.default,(0,Et.default)(e,0);try{return gt(e,0)}catch(t){try{return gt.call(null,e,0)}catch(r){return gt.call(this,e,0)}}}function _j(e){if(yt===clearTimeout)return clearTimeout(e);if((yt===Du||!yt)&&clearTimeout)return yt=clearTimeout,clearTimeout(e);try{return yt(e)}catch(t){try{return yt.call(null,e)}catch(r){return yt.call(this,e)}}}function bj(){!Zr||!lr||(Zr=!1,lr.length?Ft=(0,ga.default)(lr).call(lr,Ft):aa=-1,Ft.length&&ux())}function ux(){if(!Zr){var e=cx(bj);Zr=!0;for(var t=Ft.length;t;){for(lr=Ft,Ft=[];++aa<t;)lr&&lr[aa].run();aa=-1,t=Ft.length}lr=null,Zr=!1,_j(e)}}function dx(e,t){this.fun=e,this.array=t}function Bt(){}function xj(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 Aj(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 Se(e,0)^45?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}function hx(e){return(0,zu.default)(e).call(e)}function Rj(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,Tr.default)(e).call(e,t)}function Se(e,t){return e.charCodeAt(t)|0}function gi(e,t,r){return(0,Hu.default)(e).call(e,t,r)}function _t(e){return e.length}function Xu(e){return e.length}function ra(e,t){return t.push(e),e}function Cj(e,t){return(0,hi.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:_a,column:rn,length:a,return:""}}function ui(e,t){return Tj(ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function Oj(){return fe}function Pj(){return fe=Be>0?Se(on,--Be):0,rn--,fe===10&&(rn=1,_a--),fe}function Ye(){return fe=Be<mx?Se(on,Be++):0,rn++,fe===10&&(rn=1,_a++),fe}function xt(){return Se(on,Be)}function sa(){return Be}function Ai(e,t){return gi(on,e,t)}function yi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vx(e){return _a=rn=1,mx=_t(on=e),Be=0,[]}function gx(e){return on="",e}function la(e){return hx(Ai(Be-1,Lu(e===91?e+2:e===40?e+1:e)))}function Nj(e){for(;(fe=xt())&&fe<33;)Ye();return yi(e)>2||yi(fe)>3?"":" "}function Dj(e,t){for(;--t&&Ye()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Ai(e,sa()+(t<6&&xt()==32&&Ye()==32))}function Lu(e){for(;Ye();)switch(fe){case e:return Be;case 34:case 39:e!==34&&e!==39&&Lu(fe);break;case 40:e===41&&Lu(e);break;case 92:Ye();break}return Be}function qj(e,t){for(;Ye()&&e+fe!==57&&!(e+fe===84&&xt()===47););return"/*"+Ai(t,Be-1)+"*"+ya(e===47?e:Ye())}function Lj(e){for(;!yi(xt());)Ye();return Ai(e,Be)}function Uj(e){return gx(ca("",null,null,null,[""],e=vx(e),0,[0],e))}function ca(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,h=0,f=0,m=0,g=1,_=1,v=1,b=0,x="",T=i,O=o,R=n,y=x;_;)switch(m=b,b=Ye()){case 40:if(m!=108&&Se(y,u-1)==58){qu(y+=$(la(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=la(b);break;case 9:case 10:case 13:case 32:y+=Nj(m);break;case 92:y+=Dj(sa()-1,7);continue;case 47:switch(xt()){case 42:case 47:ra(Mj(qj(Ye(),sa()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=_t(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&_t(y)-u&&ra(f>32?DE(y+";",n,r,u-1):DE($(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ra(R=NE(y,t,r,c,d,i,s,x,T=[],O=[],u),o),b===123)if(d===0)ca(y,t,R,R,T,o,u,s,O);else switch(h===99&&Se(y,3)===110?100:h){case 100:case 109:case 115:ca(e,R,R,n&&ra(NE(e,R,R,0,0,i,s,x,i,T=[],u),O),i,O,u,s,n?T:O);break;default:ca(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,x=y="",u=a;break;case 58:u=1+_t(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Pj()==125)continue}switch(y+=ya(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(_t(y)-1)*v,v=1;break;case 64:xt()===45&&(y+=la(Ye())),h=xt(),d=u=_t(x=y+=Lj(sa())),b++;break;case 45:m===45&&_t(y)==2&&(g=0)}}return o}function NE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,h=i===0?o:[""],f=Xu(h),m=0,g=0,_=0;m<n;++m)for(var v=0,b=gi(e,u+1,u=Ij(g=a[m])),x=e;v<f;++v)(x=hx(g>0?h[v]+" "+b:$(b,/&\f/g,h[v])))&&(l[_++]=x);return ba(e,t,r,i===0?Yu:s,l,c,d)}function Mj(e,t,r){return ba(e,t,r,Wu,ya(Oj()),gi(e,2,-2),0)}function DE(e,t,r,n){return ba(e,t,r,Qu,gi(e,0,n),gi(e,n+1,-1),n)}function en(e,t){for(var r="",n=Xu(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function jj(e,t,r,n){switch(e.type){case Sj:case Qu:return e.return=e.return||e.value;case Wu:return"";case px:return e.return=e.value+"{"+en(e.children,n)+"}";case Yu:e.value=e.props.join(",")}return _t(r=en(e.children,n))?e.return=e.value+"{"+r+"}":""}function Fj(e){var t=Xu(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 Bj(e){return function(t){t.root||(t=t.return)&&e(t)}}function _x(e,t){switch(kj(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+ma+e+qe+e+e;case 6828:case 4268:return U+e+qe+e+e;case 6165:return U+e+qe+"flex-"+e+e;case 5187:return U+e+$(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return U+e+qe+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return U+e+qe+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+qe+$(e,"shrink","negative")+e;case 5292:return U+e+qe+$(e,"basis","preferred-size")+e;case 6060:return U+"box-"+$(e,"-grow","")+U+e+qe+$(e,"grow","positive")+e;case 4554:return U+$(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_t(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+ma+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qu(e,"stretch")?_x($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Se(e,t+1)!==115)break;case 6444:switch(Se(e,_t(e)-3-(~qu(e,"!important")&&10))){case 107:return $(e,":",":"+U)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(Se(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Se(e,t+11)){case 114:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+qe+e+e}return e}function wx(){if(UE)return na.exports;UE=1;let e=wx();return na.exports={default:e},na.exports.default=e,na.exports}function _i(e,t,r){var n,i="";return(0,_e.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function t2(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 n2(e){var t=(0,ix.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function bi(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return bt={name:i.name,styles:i.styles,next:bt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)bt={name:a.name,styles:a.styles,next:bt},a=a.next;var s=o.styles+";";return s}return a2(e,t,r)}case"function":{if(e!==void 0){var l=bt,c=r(e);return bt=l,bi(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function a2(e,t,r){var n="";if((0,pi.default)(r))for(var i=0;i<r.length;i++)n+=bi(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]+"}":ME(s)&&(n+=Su(o)+":"+jE(o,s)+";")}else if((0,pi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)ME(a[l])&&(n+=Su(o)+":"+jE(o,a[l])+";");else{var c=bi(e,t,a);switch(o){case"animation":case"animationName":{n+=Su(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function cr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";bt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=bi(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=bi(r,t,e[s]),n){var l=o;i+=l[s]}FE.lastIndex=0;for(var c="",d;(d=FE.exec(i))!==null;)c+="-"+d[1];var u=t2(i)+c;return{name:u,styles:i,next:bt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return cr(t)}function m2(e,t,r){var n=[],i=_i(e,n,r);return n.length<2?r:i+t(n)}function rd(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=St(e());return sr(()=>{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 M2(){return Z&&document.body.contains(Z)||(Z=document.createElement("iframe"),Z.style.position="fixed",Z.style.left="0",Z.style.top="0",Z.style.width="100vw",Z.style.height="100vh",Z.style.zIndex="99999999",Z.style.border="none",Z.style.background="transparent",Z.setAttribute("allowtransparency","true"),Z.style.display="none",document.body.appendChild(Z),ju=new Promise(e=>{di=e}),Z.onload=()=>{var e;if(!((e=Z==null?void 0:Z.contentDocument)!=null&&e.head)){console.error("[Modal] Persistent iframe loaded, but document or head is not available.");return}console.log("[Modal] Persistent iframe content loaded."),Mu=bx({key:"iframepersistentcss",container:Z.contentDocument.head,prepend:!0}),Ru&&Ru(),Ru=F2(Z),di==null||di(),di=null},Z.onerror=()=>{console.error("[Modal] Persistent iframe failed to load.")},Z.src="about:blank"),Z}function j2(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 Cx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=j2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function F2(e){let t=()=>Cx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function $2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=pt(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=B2(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ne("img",q(k({},a),{ref:c,src:t!=null?t:"",style:k({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",q(k({},a),{ref:c,className:i,children:r}))}function J2(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Ne(i.type,q(k({},i.props),{style:q(k({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Ne(e.type,q(k({},e.props),{style:q(k({},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 K2(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 lF(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function Bx(e){return(0,zu.default)(e).call(e)}function cF(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,r){return e.replace(t,r)}function Bu(e,t){return(0,Tr.default)(e).call(e,t)}function Ie(e,t){return e.charCodeAt(t)|0}function wi(e,t,r){return(0,Hu.default)(e).call(e,t,r)}function wt(e){return e.length}function sd(e){return e.length}function ia(e,t){return t.push(e),e}function uF(e,t){return(0,hi.default)(e).call(e,t).join("")}function Ia(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Sa,column:nn,length:a,return:""}}function fi(e,t){return sF(Ia("",null,null,"",null,null,0),e,{length:-e.length},t)}function dF(){return pe}function fF(){return pe=$e>0?Ie(sn,--$e):0,nn--,pe===10&&(nn=1,Sa--),pe}function Qe(){return pe=$e<$x?Ie(sn,$e++):0,nn++,pe===10&&(nn=1,Sa++),pe}function At(){return Ie(sn,$e)}function ua(){return $e}function Si(e,t){return wi(sn,e,t)}function Ei(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 Jx(e){return Sa=nn=1,$x=wt(sn=e),$e=0,[]}function Hx(e){return sn="",e}function da(e){return Bx(Si($e-1,$u(e===91?e+2:e===40?e+1:e)))}function pF(e){for(;(pe=At())&&pe<33;)Qe();return Ei(e)>2||Ei(pe)>3?"":" "}function hF(e,t){for(;--t&&Qe()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return Si(e,ua()+(t<6&&At()==32&&Qe()==32))}function $u(e){for(;Qe();)switch(pe){case e:return $e;case 34:case 39:e!==34&&e!==39&&$u(pe);break;case 40:e===41&&$u(e);break;case 92:Qe();break}return $e}function mF(e,t){for(;Qe()&&e+pe!==57&&!(e+pe===84&&At()===47););return"/*"+Si(t,$e-1)+"*"+Aa(e===47?e:Qe())}function vF(e){for(;!Ei(At());)Qe();return Si(e,$e)}function gF(e){return Hx(fa("",null,null,null,[""],e=Jx(e),0,[0],e))}function fa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,h=0,f=0,m=0,g=1,_=1,v=1,b=0,x="",T=i,O=o,R=n,y=x;_;)switch(m=b,b=Qe()){case 40:if(m!=108&&Ie(y,u-1)==58){Bu(y+=j(da(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=da(b);break;case 9:case 10:case 13:case 32:y+=pF(m);break;case 92:y+=hF(ua()-1,7);continue;case 47:switch(At()){case 42:case 47:ia(yF(mF(Qe(),ua()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=wt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=j(y,/\f/g,"")),f>0&&wt(y)-u&&ia(f>32?ex(y+";",n,r,u-1):ex(j(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ia(R=ZE(y,t,r,c,d,i,s,x,T=[],O=[],u),o),b===123)if(d===0)fa(y,t,R,R,T,o,u,s,O);else switch(h===99&&Ie(y,3)===110?100:h){case 100:case 108:case 109:case 115:fa(e,R,R,n&&ia(ZE(e,R,R,0,0,i,s,x,i,T=[],u),O),i,O,u,s,n?T:O);break;default:fa(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,x=y="",u=a;break;case 58:u=1+wt(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&fF()==125)continue}switch(y+=Aa(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(wt(y)-1)*v,v=1;break;case 64:At()===45&&(y+=da(Qe())),h=At(),d=u=wt(x=y+=vF(ua())),b++;break;case 45:m===45&&wt(y)==2&&(g=0)}}return o}function ZE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,h=i===0?o:[""],f=sd(h),m=0,g=0,_=0;m<n;++m)for(var v=0,b=wi(e,u+1,u=aF(g=a[m])),x=e;v<f;++v)(x=Bx(g>0?h[v]+" "+b:j(b,/&\f/g,h[v])))&&(l[_++]=x);return Ia(e,t,r,i===0?od:s,l,c,d)}function yF(e,t,r){return Ia(e,t,r,jx,Aa(dF()),wi(e,2,-2),0)}function ex(e,t,r,n){return Ia(e,t,r,ad,wi(e,0,n),wi(e,n+1,-1),n)}function tn(e,t){for(var r="",n=sd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function _F(e,t,r,n){switch(e.type){case oF:if(e.children.length)break;case iF:case ad:return e.return=e.return||e.value;case jx:return"";case Fx:return e.return=e.value+"{"+tn(e.children,n)+"}";case od:e.value=e.props.join(",")}return wt(r=tn(e.children,n))?e.return=e.value+"{"+r+"}":""}function bF(e){var t=sd(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 wF(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vx(e,t){switch(lF(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+va+e+Le+e+e;case 6828:case 4268:return M+e+Le+e+e;case 6165:return M+e+Le+"flex-"+e+e;case 5187:return M+e+j(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return M+e+Le+"flex-item-"+j(e,/flex-|-self/,"")+e;case 4675:return M+e+Le+"flex-line-pack"+j(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Le+j(e,"shrink","negative")+e;case 5292:return M+e+Le+j(e,"basis","preferred-size")+e;case 6060:return M+"box-"+j(e,"-grow","")+M+e+Le+j(e,"grow","positive")+e;case 4554:return M+j(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wt(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+va+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bu(e,"stretch")?Vx(j(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,wt(e)-3-(~Bu(e,"!important")&&10))){case 107:return j(e,":",":"+M)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(Ie(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return M+e+Le+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Le+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Le+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Le+e+e}return e}function rx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Cu(e,t,r){var n=[],i=_i(e,n,r);return n.length<2?r:i+t(n)}var Ju,nx,_e,ga,pa,Et,Hu,pi,l8,ha,Vu,Tr,hi,ix,c8,Gu,zu,Ou,Ir,W,xu,SE,mi,ox,le,IE,TE,kE,RE,CE,OE,PE,hj,Au,mj,vj,gj,lx,ce,gt,yt,Ft,Zr,lr,aa,wj,Te,Ej,fx,qe,ma,U,Wu,Yu,Qu,Sj,px,Ij,ya,Tj,_a,rn,mx,Be,fe,on,$j,Jj,Hj,qE,Vj,Gj,zj,Kj,Wj,yx,Yj,LE,Qj,Xj,Zj,bx,na,UE,e2,Zu,wa,r2,i2,o2,Ex,ME,Su,jE,FE,bt,s2,xx,Ax,BE,l2,ed,c2,td,Ea,$E,JE,u2,d2,f2,HE,p2,h2,v2,g2,Iu,VE,Tu,ku,y2,GE,_2,zE,b2,KE,w2,WE,E2,x2,A2,S2,I2,YE,T2,k2,R2,C2,O2,QE,P2,N2,D2,q2,Sx,Ix,Tx,Uu,L2,kx,Rx,U2,Z,Mu,di,ju,Ru,nd,B2,Ox,Px,Nx,H2,V2,G2,Fu,z2,Dx,an,xa,XE,jt,qx,Xr,W2,Y2,Q2,X2,Z2,ee,eF,tF,Lx,Ux,Mx,id,rF,nF,Le,va,M,jx,od,ad,iF,Fx,oF,aF,Aa,sF,Sa,nn,$x,$e,pe,sn,EF,xF,AF,tx,SF,IF,TF,kF,RF,CF,OF,PF,Gx,NF,DF,zx,Ii=I(()=>{"use strict";qr();Ju=ie(Xm(),1),nx=ie(lv(),1),_e=ie(wv(),1),ga=ie(Lv(),1),pa=ie(Vv(),1),Et=ie(cg(),1);Io();Io();Hu=ie(Vg(),1),pi=ie(Xg(),1),l8=ie(vy(),1),ha=ie(Ry(),1),Vu=ie(Hb(),1),Tr=ie(e0(),1),hi=ie(c0(),1),ix=ie(v0(),1),c8=ie(Pw(),1),Gu=ie(Gw(),1),zu=ie(cE(),1);bu();bu();Ou=ie(AE(),1),mi=0,ox=[],le=C,IE=le.__b,TE=le.__r,kE=le.diffed,RE=le.__c,CE=le.unmount,OE=le.__;le.__b=function(e){W=null,IE&&IE(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),OE&&OE(e,t)},le.__r=function(e){var t,r,n;TE&&TE(e),Ir=0;var i=(W=e.__c).__H;i&&(xu===W?(i.__h=[],W.__h=[],(0,_e.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,_e.default)(r=i.__h).call(r,oa),(0,_e.default)(n=i.__h).call(n,Pu),i.__h=[],Ir=0)),xu=W},le.diffed=function(e){var t;kE&&kE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(ox.push(r)!==1&&SE===le.requestAnimationFrame||((SE=le.requestAnimationFrame)||pj)(fj)),(0,_e.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),xu=W=null},le.__c=function(e,t){(0,pa.default)(t).call(t,function(r){try{var n,i;(0,_e.default)(n=r.__h).call(n,oa),r.__h=(0,Ju.default)(i=r.__h).call(i,function(o){return!o.__||Pu(o)})}catch(o){(0,pa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],le.__e(o,r.__v)}}),RE&&RE(e,t)},le.unmount=function(e){var t;CE&&CE(e);var r,n=e.__c;n&&n.__H&&((0,_e.default)(t=n.__H.__).call(t,function(i){try{oa(i)}catch(o){r=o}}),n.__H=void 0,r&&le.__e(r,n.__v))};PE=typeof requestAnimationFrame=="function";hj=0;Au={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto",minHeight:"250px"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},mj=`
21
21
  @keyframes fadeIn {
22
22
  from { opacity: 0; }
23
23
  to { opacity: 1; }
@@ -53,51 +53,48 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
53
53
  .drawer-leave {
54
54
  animation: slideDown 0.3s ease forwards;
55
55
  }
56
- `,iN=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:o="",backdropColor:i},a)=>{let[s,l]=yt(t),[c,d]=yt(null),u=ri(null),h=ri(!1);Ut(()=>{let I=document.createElement("style");return I.innerHTML=oN,document.head.appendChild(I),()=>{document.head.removeChild(I)}},[]),Ut(()=>{t!==s&&!h.current&&(l(t),d(t?"enter":"leave"),t?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):!t&&!h.current&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""))},[t,s]),Ut(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let p=Ke(()=>{c==="leave"&&(d(null),l(!1),h.current=!1)},[c]),m=Ke(I=>{I.preventDefault(),I.stopPropagation(),I.target===u.current&&_()},[]),g=Ke(()=>{h.current=!1,l(!0),d("enter")},[]),_=Ke(()=>{h.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),v=Ke(()=>s&&!h.current,[s]);if(Ut(()=>{if(a){let I={show:g,hide:_,isOpen:v};typeof a=="function"?a(I):a&&(a.current=I)}},[g,_,v,a]),!s&&!c)return null;let y=q(R({},Ql.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:i||"rgba(255, 255, 255, 1)"}),A=q(R({},Ql.drawerBackdrop),{pointerEvents:"auto"}),k=c?`drawer-${c}`:"",O=c?`backdrop-${c}`:"";return b("div",{ref:u,style:A,className:O,onClick:m,onTouchMove:I=>I.preventDefault(),onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:b("div",{style:y,className:`${k} ${o}`,onAnimationEnd:p,onClick:I=>I.stopPropagation(),onTouchMove:I=>{I.stopPropagation()},onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:b("div",{style:q(R({},Ql.drawerContent),{pointerEvents:"auto"}),onTouchMove:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:e})})})},aN=Nm(iN);cN=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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,Ae.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lN(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=sN(n);try{o.insertRule(r,o.cssRules.length)}catch(i){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ae.default)(r=this.tags).call(r,function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),xe="-ms-",ni="-moz-",U="-webkit-",Db="comm",dc="rule",fc="decl",uN="@import",qb="@keyframes",dN="@layer",fN=Math.abs,ii=String.fromCharCode,pN=Rb.default;ai=1,br=1,Ub=0,Pe=0,ie=0,wr="";kN=function(e,t,r){for(var n=0,o=0;n=o,o=st(),n===38&&o===12&&(t[r]=1),!Sn(o);)je();return In(e,Pe)},CN=function(e,t){var r=-1,n=44;do switch(Sn(n)){case 0:n===38&&st()===12&&(t[r]=1),e[r]+=kN(Pe-1,t,r);break;case 2:e[r]+=Xo(n);break;case 4:if(n===44){e[++r]=st()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ii(n)}while(n=je());return e},ON=function(e,t){return Fb(CN(Mb(e),t))},gb=new Sb.default,PN=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&&!gb.get(r))&&!n){gb.set(e,!0);for(var o=[],i=ON(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},NN=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};DN=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case fc:e.return=jb(e.value,e.length);break;case qb:return yr([wn(e,{value:M(e.value,"@","@"+U)})],n);case dc:if(e.length)return vN(e.props,function(o){switch(mN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yr([wn(e,{props:[M(o,/:(read-\w+)/,":"+ni+"$1")]})],n);case"::placeholder":return yr([wn(e,{props:[M(o,/:(plac\w+)/,":"+U+"input-$1")]}),wn(e,{props:[M(o,/:(plac\w+)/,":"+ni+"$1")]}),wn(e,{props:[M(o,/:(plac\w+)/,xe+"input-$1")]})],n)}return""})}},qN=[DN],LN=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ae.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,cc.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||qN,o={},i,a=[];i=e.container||document.head,(0,Ae.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)o[g[_]]=!0;a.push(m)});var s,l=[PN,NN];{var c,d=[SN,TN(function(m){c.insert(m)})],u=IN((0,xb.default)(l).call(l,n,d)),h=function(m){return yr(xN(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new cN({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return p.sheet.hydrate(a),p};MN={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},FN=/[A-Z]|^ms/g,jN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bb=function(e){return e.charCodeAt(1)===45},_b=function(e){return e!=null&&typeof e!="boolean"},Xl=RN(function(e){return Bb(e)?e:e.replace(FN,"-$&").toLowerCase()}),yb=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(jN,function(r,n,o){return Mt={name:n,styles:o,next:Mt},n})}return MN[e]!==1&&!Bb(e)&&typeof t=="number"&&t!==0?t+"px":t};bb=/label:\s*([^\s;{]+)\s*(;|$)/g;$N=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},HN=function(e,t,r){$N(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};JN=function(e){var t=LN(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=Zl(s,t.registered,void 0);return HN(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=Zl(s,t.registered),d="animation-"+c.name;return wb(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Zl(s,t.registered);wb(t,c)},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ec(t.registered,r,VN(s))};return{css:r,cx:i,injectGlobal:o,keyframes:n,hydrate:function(a){(0,Ae.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,rc.default)(ac).call(ac,null,t.registered),merge:(0,rc.default)(ec).call(ec,null,t.registered,r)}},VN=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,ti.default)(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},GN=JN({key:"css"}),N=GN.css;KN=({title:e,content:t,noHeader:r,height:n,padding:o="16px",footerButtons:i,onClose:a})=>{let s=hc(),l={container:N`
56
+ `,vj=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,l]=St(t),[c,d]=St(null),u=Sr(null),h=Sr(!1),f=Sr(t);sr(()=>{let y=document.createElement("style");return y.innerHTML=mj,document.head.appendChild(y),()=>{document.head.removeChild(y)}},[]),sr(()=>{t?!s&&!h.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)}),f.current=!0):s&&(h.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r())},[t]),sr(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let m=it(()=>{c==="leave"?(d(null),l(!1),h.current=!1,r&&r()):c==="enter"&&d(null)},[c,r]),g=it(y=>{y.preventDefault(),y.stopPropagation(),y.target===u.current&&v()},[]),_=it(()=>{h.current=!1,s||(!t||!f.current?(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)})):t&&f.current&&c!=="enter"&&d("enter")),f.current=!1},[s,t,c]),v=it(()=>{h.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),b=it(()=>s&&!h.current,[s]);if(sr(()=>{if(a){let y={show:_,hide:v,isOpen:b};typeof a=="function"?a(y):a&&(a.current=y)}},[_,v,b,a]),!s&&!c)return null;let x=q(k({},Au.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:o||"rgba(255, 255, 255, 1)"}),T=q(k({},Au.drawerBackdrop),{pointerEvents:"auto"}),O=c?`drawer-${c}`:"",R=c?`backdrop-${c}`:"";return w("div",{ref:u,style:T,className:R,onClick:g,onTouchMove:y=>y.preventDefault(),onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:x,className:`${O} ${i}`,onAnimationEnd:m,onClick:y=>y.stopPropagation(),onTouchMove:y=>{y.stopPropagation()},onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:q(k({},Au.drawerContent),{pointerEvents:"auto"}),onTouchMove:y=>y.stopPropagation(),onClick:y=>y.stopPropagation(),children:e})})})},gj=yc(vj);lx={exports:{}},ce=lx.exports={};(function(){try{typeof Et.default=="function"?gt=Et.default:gt=Nu}catch(e){gt=Nu}try{typeof clearTimeout=="function"?yt=clearTimeout:yt=Du}catch(e){yt=Du}})();Ft=[],Zr=!1,aa=-1;ce.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];Ft.push(new dx(e,t)),Ft.length===1&&!Zr&&cx(ux)};dx.prototype.run=function(){this.fun.apply(null,this.array)};ce.title="browser";ce.browser=!0;ce.env={};ce.argv=[];ce.version="";ce.versions={};ce.on=Bt;ce.addListener=Bt;ce.once=Bt;ce.off=Bt;ce.removeListener=Bt;ce.removeAllListeners=Bt;ce.emit=Bt;ce.prependListener=Bt;ce.prependOnceListener=Bt;ce.listeners=function(e){return[]};ce.binding=function(e){throw new Error("process.binding is not supported")};ce.cwd=function(){return"/"};ce.chdir=function(e){throw new Error("process.chdir is not supported")};ce.umask=function(){return 0};wj=lx.exports,Te=yj(wj),Ej=ha.default||void 0||self;fx=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,_e.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Aj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,_e.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),qe="-ms-",ma="-moz-",U="-webkit-",Wu="comm",Yu="rule",Qu="decl",Sj="@import",px="@keyframes",Ij=Math.abs,ya=String.fromCharCode,Tj=Gu.default;_a=1,rn=1,mx=0,Be=0,fe=0,on="";$j=function(e,t,r){for(var n=0,i=0;n=i,i=xt(),n===38&&i===12&&(t[r]=1),!yi(i);)Ye();return Ai(e,Be)},Jj=function(e,t){var r=-1,n=44;do switch(yi(n)){case 0:n===38&&xt()===12&&(t[r]=1),e[r]+=$j(Be-1,t,r);break;case 2:e[r]+=la(n);break;case 4:if(n===44){e[++r]=xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ya(n)}while(n=Ye());return e},Hj=function(e,t){return gx(Jj(vx(e),t))},qE=new Vu.default,Vj=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&&!qE.get(r))&&!n){qE.set(e,!0);for(var i=[],o=Hj(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]}}},Gj=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},zj="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Kj=function(e){var t;return e.type==="comm"&&(0,Tr.default)(t=e.children).call(t,zj)>-1},Wj=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(Kj(l))return;break}}(0,_e.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".')})}}}},yx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},Yj=function(e,t){for(var r=e-1;r>=0;r--)if(!yx(t[r]))return!0;return!1},LE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Qj=function(e,t,r){yx(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."),LE(e)):Yj(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),LE(e)))};Xj=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qu:e.return=_x(e.value,e.length);break;case px:return en([ui(e,{value:$(e.value,"@","@"+U)})],n);case Yu:if(e.length)return Cj(e.props,function(i){switch(Rj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return en([ui(e,{props:[$(i,/:(read-\w+)/,":"+ma+"$1")]})],n);case"::placeholder":return en([ui(e,{props:[$(i,/:(plac\w+)/,":"+U+"input-$1")]}),ui(e,{props:[$(i,/:(plac\w+)/,":"+ma+"$1")]}),ui(e,{props:[$(i,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},Zj=[Xj],bx=function(e){var t=e.key;if(Te.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
57
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,_e.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Tr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||Zj;if(Te.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,_e.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[Vj,Gj];Te.env.NODE_ENV!=="production"&&l.push(Wj({get compat(){return f.compat}}),Qj);{var c,d=[jj,Te.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Wu&&c.insert(m.value+"{}"))}:Bj(function(m){c.insert(m)})],u=Fj((0,ga.default)(l).call(l,n,d)),h=function(m){return en(Uj(m),u)};s=function(m,g,_,v){c=_,Te.env.NODE_ENV!=="production"&&(0,hi.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,hi.default)(g))}}),h(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new fx({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},na={exports:{}};wx();e2=!0;Zu=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||e2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},wa=function(e,t,r){Zu(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)}};r2={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};i2=/[A-Z]|^ms/g,o2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ex=function(e){return e.charCodeAt(1)===45},ME=function(e){return e!=null&&typeof e!="boolean"},Su=n2(function(e){return Ex(e)?e:e.replace(i2,"-$&").toLowerCase()}),jE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(o2,function(r,n,i){return bt={name:n,styles:i,next:bt},n})}return r2[e]!==1&&!Ex(e)&&typeof t=="number"&&t!==0?t+"px":t};FE=/label:\s*([^\s;{]+)\s*(;|$)/g;s2=function(e){return e()},xx=vc?vc:!1,Ax=xx||s2,BE=xx||Gr,l2={}.hasOwnProperty,ed=gr(typeof HTMLElement<"u"?bx({key:"css"}):null);Te.env.NODE_ENV!=="production"&&(ed.displayName="EmotionCacheContext");c2=ed.Provider,td=function(e){return yc(function(t,r){var n=zr(ed);return e(t,n,r)})},Ea=gr({});Te.env.NODE_ENV!=="production"&&(Ea.displayName="EmotionThemeContext");$E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",JE="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",u2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Zu(t,r,n),Ax(function(){return wa(t,r,n)}),null},d2=td(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[$E],a=[i],s="";typeof e.className=="string"?s=_i(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=cr(a,void 0,zr(Ea));if(Te.env.NODE_ENV!=="production"&&(0,Tr.default)(n=l.name).call(n,"-")===-1){var c=e[JE];c&&(l=cr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)l2.call(e,u)&&u!=="css"&&u!==$E&&(Te.env.NODE_ENV==="production"||u!==JE)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ne(Ke,null,Ne(u2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ne(o,d))});Te.env.NODE_ENV!=="production"&&(d2.displayName="EmotionCssPropInternal");f2={version:"11.10.5"},HE=!1,p2=td(function(e,t){Te.env.NODE_ENV!=="production"&&!HE&&(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?"),HE=!0);var r=e.styles,n=cr([r],void 0,zr(Ea)),i=Yn();return BE(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]),BE(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&wa(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Te.env.NODE_ENV!=="production"&&(p2.displayName="EmotionGlobal");h2=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,pi.default)(o))a=e(o);else{Te.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};v2=function(e){var t=e.cache,r=e.serializedArr;return Ax(function(){for(var n=0;n<r.length;n++)wa(t,r[n],!1)}),null},g2=td(function(e,t){var r=!1,n=[],i=function(){if(r&&Te.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=cr(c,t.registered);return n.push(u),Zu(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Te.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return m2(t.registered,i,h2(c))},a={css:i,cx:o,theme:zr(Ea)},s=e.children(a);return r=!0,Ne(Ke,null,Ne(v2,{cache:t,serializedArr:n}),s)});Te.env.NODE_ENV!=="production"&&(g2.displayName="EmotionClassNames");Te.env.NODE_ENV!=="production"&&(Iu=!0,VE=typeof jest<"u"||typeof vi<"u",Iu&&!VE&&(Tu=typeof ha.default<"u"?ha.default:Iu?window:Ej,ku="__EMOTION_REACT_"+f2.version.split(".")[0]+"__",Tu[ku]&&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."),Tu[ku]=!0));y2={unlockNeeds:"Unlock needs",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Deduct Jolicoin automatically for digital items",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"JoliCoins used"},GE={jolicoin:y2},_2={unlockNeeds:"\u89E3\u9501\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",unlockWithJolicoinDescription:"\u81EA\u52A8\u4E3A\u6570\u5B57\u7269\u54C1\u6263\u9664Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\uFF0C\u770B\u5E7F\u544A",noThanks:"\u4E0D\uFF0C\u8C22\u8C22",balance:"\u4F59\u989D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},zE={jolicoin:_2},b2={unlockWithJolicoinDescription:"Kurangi Jolicoin secara otomatis untuk item digital",balance:"Saldo",unlockNeeds:"Perlu membuka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",coinUsed:"Jolicoin digunakan"},KE={jolicoin:b2},w2={unlockWithJolicoinDescription:"Memotong jolicoin secara automatik untuk barang digital",unlockNeeds:"Perlu buka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin Digunakan"},WE={jolicoin:w2},E2={unlockWithJolicoinDescription:"\u0E2B\u0E31\u0E01 jolicoin \u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25",unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48, \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48, \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19",coinUsed:"Jolicoin \u0E43\u0E0A\u0E49"},x2={jolicoin:E2},A2={unlockWithJolicoinDescription:"Kh\u1EA5u tr\u1EEB t\u1EF1 \u0111\u1ED9ng cho Jolicoin cho c\xE1c m\u1EB7t h\xE0ng k\u1EF9 thu\u1EADt s\u1ED1",unlockNeeds:"C\u1EA7n m\u1EDF",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin \u0111\u1EC3 c\xF3 tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng"},S2={jolicoin:A2},I2={unlockWithJolicoinDescription:"Bantad ang Jolicoin Awtomatikong para sa mga digital na item",unlockNeeds:"Kailangan buksan",unlockWithJolicoin:"I-unlock gamit ang Jolicoin para sa mas magandang karanasan",useJolicoin:"Gumamit ng Jolicoin",payAndUnlock:"Bayad at i-unlock",noWatchAds:"Hindi, titingnan ang mga ad",noThanks:"Hindi, salamat",balance:"Balansehin",coinUsed:"Jolicoin ang ginamit"},YE={jolicoin:I2},T2={unlockWithJolicoinDescription:"Deducir Jolicoin autom\xE1ticamente para art\xEDculos digitales",unlockNeeds:"Neces. desbloq",unlockWithJolicoin:"Desbloquear con Jolicoin para una mejor experiencia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin utilizados"},k2={jolicoin:T2},R2={unlockWithJolicoinDescription:"\u30C7\u30B8\u30BF\u30EB\u30A2\u30A4\u30C6\u30E0\u306E\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u81EA\u52D5\u5F15\u304D\u843D\u3068\u3057",unlockNeeds:"\u89E3\u9664\u5FC5\u8981",unlockWithJolicoin:"\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3063\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528"},C2={jolicoin:R2},O2={unlockWithJolicoinDescription:"Deduzir Jolicoin automaticamente para itens digitais",unlockNeeds:"Precisa moeda",unlockWithJolicoin:"Desbloqueie com Jolicoin para uma melhor experi\xEAncia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado"},QE={jolicoin:O2},P2={unlockWithJolicoinDescription:"\uB514\uC9C0\uD138 \uC544\uC774\uD15C\uC5D0 \uB300\uD55C \uC878\uB9AC\uCF54\uC778 \uC790\uB3D9 \uCC28\uAC10",unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",unlockWithJolicoin:"\uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC878\uB9AC\uCF54\uC778\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C\uD558\uACE0 \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9"},N2={jolicoin:P2},D2={unlockNeeds:"\u89E3\u9396\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",unlockWithJolicoinDescription:"\u6578\u4F4D\u7269\u54C1\u81EA\u52D5\u6263\u9664 Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u4ED8\u6B3E\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86\uFF0C\u8B1D\u8B1D",balance:"\u9918\u984D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},q2={jolicoin:D2},Sx={en:{translations:GE},en_GB:{translations:GE},zh:{translations:zE},"zh-Hans":{translations:zE},"zh-Hant":{translations:q2},id:{translations:KE},in:{translations:KE},ms:{translations:WE},my:{translations:WE},th:{translations:x2},vi:{translations:S2},fil:{translations:YE},tl:{translations:YE},es:{translations:k2},ja:{translations:C2},pt:{translations:QE},pt_PT:{translations:QE},ko:{translations:N2}},Ix=gr(void 0),Tx=({definition:e,children:t})=>{let r={translations:e};return w(Ix.Provider,{value:r,children:t})},Uu=null,L2={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"},kx=e=>{Uu=e},Rx=()=>{var e;if(typeof Uu!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Uu();return(e=L2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}},U2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=rd(),l={container:D`
57
58
  display: flex;
58
59
  flex-direction: column;
59
60
  height: 100%;
60
61
  width: 100%;
61
62
  max-width: ${s==="portrait"?"440px":"75%"};
62
63
  margin: 0 auto;
63
- `,header:N`
64
+ `,header:D`
64
65
  padding: 16px;
65
66
  border-bottom: 1px solid #eee;
66
67
  display: flex;
67
68
  justify-content: space-between;
68
69
  align-items: center;
69
- `,content:N`
70
- padding: ${o};
70
+ `,content:D`
71
+ padding: ${i};
71
72
  flex: 1;
72
73
  overflow: auto;
73
- `,footer:N`
74
+ `,footer:D`
74
75
  padding: 16px;
75
76
  border-top: 1px solid #eee;
76
77
  display: flex;
77
78
  justify-content: flex-end;
78
79
  gap: 8px;
79
- `,closeButton:N`
80
+ `,closeButton:D`
80
81
  background: none;
81
82
  border: none;
82
83
  cursor: pointer;
83
84
  font-size: 20px;
84
- `,button:N`
85
+ `,button:D`
85
86
  padding: 8px 16px;
86
87
  border-radius: 4px;
87
88
  border: 1px solid #ddd;
88
89
  cursor: pointer;
89
- `};return b("div",{className:l.container,children:[!r&&b("div",{className:l.header,children:[b("h3",{children:e}),b("button",{className:l.closeButton,onClick:a,children:"\xD7"})]}),b("div",{className:l.content,children:t}),i&&i.length>0&&b("div",{className:l.footer,children:i.map((c,d)=>b("button",{className:N`
90
- ${l.button}
91
- background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
92
- color: ${c.variant==="primary"?"#fff":"#333"};
93
- `,onClick:u=>{var h;return(h=c.onClick)==null?void 0:h.call(c,u,{hide:a})},children:c.text},d))})]})},zN=()=>{let e=document.createElement("div");return e.id=`jolibox-ui-modal-container-${Math.random().toString(36).substring(2,15)}`,e.style.position="absolute",e.style.zIndex=`${1e3+document.querySelectorAll('[id^="jolibox-ui-modal-container-"]').length}`,document.body.appendChild(e),e},mc=e=>{let t=zN(),r=null,n=!1,o=!1,i=()=>{o||(n=!1,e.onClose&&e.onClose(),s(),setTimeout(()=>{o||t.remove()},300))},a=()=>window.innerWidth>window.innerHeight,s=()=>{var c;nr(b(aN,{ref:d=>{r=d},isOpen:n,onClose:i,height:a()?"60vh":(c=e.height)!=null?c:"50vh",backdropColor:e.backdropColor,children:b(KN,q(R({},e),{onClose:i}))}),t)},l=()=>{!o&&n&&s()};return window.addEventListener("resize",l),s(),{show:()=>{o||(n=!0,s(),setTimeout(()=>{r&&(r.show(),e.onOpen&&e.onOpen())},0))},hide:()=>{o||r&&r.hide()},isOpen:()=>n,destroy:()=>{o=!0,t.remove()}}},WN=(e,t={threshold:.6})=>{let r=ri(null),n=ri(!1),o=Ke(i=>{let[a]=i;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Ut(()=>{if(r.current){let i=new IntersectionObserver(o,t);return i.observe(r.current),()=>{r.current&&i.unobserve(r.current)}}},[o,t]),r};vc=i=>{var a=i,{children:e,fluid:t=!1,className:r="",style:n={}}=a,o=et(a,["children","fluid","className","style"]);let s=R({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",q(R({className:r,style:s},o),{children:e}))},gc=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:o="",style:i={}}=l,a=et(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=R({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},i);if(t){let p=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;p>0&&(u.marginLeft=`-${p/2}px`,u.marginRight=`-${p/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let h=t?QN(e,t):e;return b("div",q(R({className:o,style:u},a),{children:h}))};$b=u=>{var h=u,{children:e,span:t,offset:r,xs:n,sm:o,md:i,lg:a,xl:s,className:l="",style:c={}}=h,d=et(h,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let p=R({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;p.flex=`0 0 ${m}%`,p.maxWidth=`${m}%`}return r!==void 0&&(p.marginLeft=`${r/24*100}%`),b("div",q(R({className:l,style:p},d),{children:e}))},XN=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:o})=>{var s,l;let i=So(c=>{c.preventDefault(),o==null||o(e)},[o,e]),a=So(()=>{},[e,t]);return b($b,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px"},onClick:i,role:"button",tabIndex:0,onTouchEnd:i,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(YN,{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)},ZN=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:o}=s,i=et(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(vc,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:o==="landscape"?"100%":"440px",minHeight:"1px"},children:b(gc,{gutter:8,className:N`
94
- display: flex;
95
- flex-wrap: ${o==="landscape"?"nowrap":"wrap"};
96
- overflow-x: ${o==="landscape"?"auto":"visible"};
97
- padding-bottom: ${o==="landscape"?"10px":"0"};
98
- justify-content: ${o==="landscape"?"flex-start":"center"};
99
- `,children:e==null?void 0:e.map(l=>b(XN,{orientation:o,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},eD=Qs(ZN),sc=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(sc||{}),tD=e=>{let{games:t,title:r,buttons:n,onClose:o}=e,[i,a]=yt(null),s=Ke(u=>{o==null||o({type:u.type===sc.Quit?"quit":"dismiss"})},[o]),l=Ke(u=>{o==null||o({type:"navigate",data:{game:u}})},[o]),c=hc();if(!t.length)return b(it,{});let d=Ke(u=>{if(u!==null&&!u.shadowRoot){let h=u.attachShadow({mode:"open"}),p=document.createElement("style");p.textContent=`
90
+ `};return w("div",{className:l.container.name,children:[!r&&w("div",{className:l.header.name,children:[w("h3",{children:e}),w("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),w("div",{className:l.content.name,children:t}),o&&o.length>0&&w("div",{className:l.footer.name,children:o.map((c,d)=>w("button",{className:D`
91
+ ${l.button}
92
+ background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
93
+ color: ${c.variant==="primary"?"#fff":"#333"};
94
+ `.name,onClick:u=>{var h;return(h=c.onClick)==null?void 0:h.call(c,u,{hide:a})},children:c.text},d))})]})},Z=null,Mu=null,di=null,ju=null,Ru=null;nd=e=>{let t=M2(),r=null,n=!1,i=Rx(),o=Sx[i].translations,a=()=>window.innerWidth>window.innerHeight,s=u=>{var f;if(!t.contentDocument||!t.contentWindow||!Mu){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}Cx(t);let h=t.contentDocument.getElementById("drawer-container");h||(h=t.contentDocument.createElement("div"),h.id="drawer-container",t.contentDocument.body.appendChild(h)),Dr(w(c2,{value:Mu,children:w(Tx,{definition:o,children:w(gj,{ref:m=>{r=m},isOpen:u,onClose:l,height:a()?"60vh":(f=e.height)!=null?f:"50vh",backdropColor:e.backdropColor,children:w(U2,q(k({},e),{onClose:l}))})})}),h)},l=()=>{var u;n=!1,t.style.display="none",(u=e.onClose)==null||u.call(e)},c=()=>E(void 0,null,function*(){if(!ju){console.error("[Modal] Iframe load promise not initialized!");return}yield ju,n=!0,t.style.display="block",s(!0),setTimeout(()=>{var u;r&&r.show,(u=e.onOpen)==null||u.call(e)},50)}),d=()=>{r&&typeof r.hide=="function"?s(!1):l()};return{show:()=>{n||c()},hide:()=>{n&&d()},isOpen:()=>n,destroy:()=>{n&&d(),console.log("[Modal] Instance destroyed.")}}},B2=(e,t={threshold:.6})=>{let r=Sr(null),n=Sr(!1),i=it(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return sr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};Ox=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=pt(a,["children","fluid","className","style"]);let s=k({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",q(k({className:r,style:s},i),{children:e}))},Px=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=pt(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=k({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 h=t?J2(e,t):e;return w("div",q(k({className:i,style:u},a),{children:h}))};Nx=u=>{var h=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=h,d=pt(h,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=k({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}%`),w("div",q(k({className:l,style:f},d),{children:e}))},H2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Ao(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Ao(()=>{},[e,t]);return w(Nx,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,onTouchEnd:o,children:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w($2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),w("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},V2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=pt(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(Ox,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(Px,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>w(H2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},G2=gc(V2),Fu=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Fu||{}),z2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=St(null),s=it(u=>{i==null||i({type:u.type===Fu.Quit?"quit":"dismiss"})},[i]),l=it(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=rd();if(!t.length)return w(Ke,{});let d=it(u=>{if(u!==null&&!u.shadowRoot){let h=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
100
95
  .recommend-panel {
96
+ display: flex;
97
+ flex-direction: column;
101
98
  background-color: #1a1a1a;
102
99
  width: 100%;
103
100
  height: 100%;
@@ -116,7 +113,7 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
116
113
  text-align: center;
117
114
  padding: 20px 10px;
118
115
  margin-block-end: 0px;
119
- position: fixed;
116
+ position: absolute;
120
117
  top: 0;
121
118
  left: 0;
122
119
  right: 0;
@@ -130,13 +127,20 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
130
127
  .games-container {
131
128
  display: flex;
132
129
  flex: 1;
133
- min-height: 100px;
130
+ min-height: 120px;
134
131
  overflow: auto;
135
- margin-bottom: ${c==="portrait"?"88px":"75px"};
132
+ margin-bottom: 88px;
136
133
  margin-top: 64px;
134
+
135
+ @media (orientation: landscape) {
136
+ width: 80%;
137
+ margin-bottom: 75px;
138
+ margin-left: auto;
139
+ margin-right: auto;
140
+ }
137
141
  }
138
142
  .buttons-container {
139
- position: fixed;
143
+ position: absolute;
140
144
  left: 0;
141
145
  right: 0;
142
146
  width: calc(100% - 32px);
@@ -147,7 +151,10 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
147
151
  padding-bottom: 16px;
148
152
  padding-left: 16px;
149
153
  padding-right: 16px;
150
- background-color: #1a1a1a;
154
+ display: flex;
155
+ flex-direction: row;
156
+ justify-content: space-between;
157
+ align-items: center;
151
158
  }
152
159
  @media (orientation: portrait) {
153
160
  .buttons-container {
@@ -155,16 +162,19 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
155
162
  }
156
163
  }
157
164
  @media (orientation: landscape) {
158
- .recommend-panel {
159
- height: 50%;
160
- }
161
165
  .buttons-container {
162
166
  bottom: 0;
167
+ width: 80%;
168
+ margin-left: auto;
169
+ margin-right: auto;
163
170
  }
164
171
  }
165
172
  .button-wrapper {
166
173
  flex: 0 0 50%;
167
174
  box-sizing: border-box;
175
+ display: flex;
176
+ justify-content: center;
177
+ align-items: center;
168
178
  }
169
179
  .button {
170
180
  width: 100%;
@@ -179,7 +189,7 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
179
189
  cursor: pointer;
180
190
  flex: 1;
181
191
  text-align: center;
182
- font-size: 14px;
192
+ font-size: 16px;
183
193
  font-weight: normal;
184
194
  outline: none;
185
195
  overflow: hidden;
@@ -202,31 +212,36 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
202
212
  background-color: #7817FF;
203
213
  color: #fff;
204
214
  }
205
- `;let m=document.createElement("div");m.id="recommend-panel-content",h.appendChild(p),h.appendChild(m),a(h)}},[]);return Ut(()=>{if(i){let u=i.getElementById("recommend-panel-content");u&&nr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(eD,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:b(vc,{children:b(gc,{gutter:10,children:(n!=null?n:[]).map((h,p)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${h.type===sc.Quit?"quit-button":"action-button"}`,onClick:()=>s(h),children:b("span",{className:"button-text-ellipsis",children:h.text})})},p))})})})]})}),u)}},[i,t,r,n,s,l]),b("div",{ref:d})},Hb=e=>{let t=mc({title:e.title,content:b(tD,{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},Er="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=",_t={coinInfo:N`
215
+ `;let m=document.createElement("div");m.id="recommend-panel-content",h.appendChild(f),h.appendChild(m),a(h)}},[]);return sr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Dr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(G2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((h,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${h.type===Fu.Quit?"quit-button":"action-button"}`,onClick:()=>s(h),children:w("span",{className:"button-text-ellipsis",children:h.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),w("div",{ref:d})},Dx=e=>{let t=nd({title:e.title,content:w(z2,{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},an="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=";xa=()=>{let e=dj(Ix);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=K2(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}},XE=({text:e,initialFontSize:t,minFontSize:r=8,maxWidthPx:n,styles:i})=>{let[o,a]=St(t),s=Sr(null),l=Sr(null);return uj(()=>{let c=s.current,d=l.current;if(!c||!d)return;n&&n>0?c.style.maxWidth=`${n}px`:c.style.maxWidth="";let u=t;c.style.fontSize=`${u}px`;let h=requestAnimationFrame(()=>{if(d.clientWidth>0)for(;c.scrollWidth>d.clientWidth&&u>r;)u-=1,c.style.fontSize=`${u}px`;a(u)});return()=>cancelAnimationFrame(h)},[e,t,r,n]),w("span",{ref:l,style:i,children:w("span",{ref:s,style:{fontSize:`${o}px`,display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle",maxWidth:"100%"},children:e})})},jt={coinInfo:D`
206
216
  display: flex;
207
217
  gap: 24px;
208
- `,coinAmount:N`
218
+ width: 100%;
219
+ justify-content: space-between;
220
+ `,coinAmount:D`
209
221
  display: flex;
210
222
  flex-direction: row;
211
223
  gap: 4px;
212
- `,coinLabel:N`
213
- font-size: 13px;
224
+ align-items: center;
225
+ flex: 1;
226
+ min-width: 0;
227
+ `,coinLabelContainer:D`
214
228
  font-weight: 700;
215
229
  text-align: center;
216
- height: 36px;
217
- width: 100%;
218
- line-height: 36px;
219
- `,coinValue:N`
230
+ flex-shrink: 1;
231
+ flex-grow: 0;
232
+ min-width: 30px;
233
+ overflow: hidden;
234
+ `,coinValue:D`
220
235
  display: flex;
221
236
  align-items: center;
222
237
  gap: 8px;
223
238
  font-size: 25px;
224
239
  font-weight: 900;
225
- color: #ffd700;
226
- `,coinIcon:N`
240
+ color: #fdde9d;
241
+ `,coinIcon:D`
227
242
  width: 16px;
228
243
  height: 16px;
229
- `},Jb=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Er,formatter:n=s=>s>999?`${s}+`:`${s}`,hideNeeds:o=!1,hideBalance:i=!1,className:a=""})=>{let s=n(t);return b("div",{className:`${_t.coinInfo} ${a}`,children:[!o&&b("div",{className:_t.coinAmount,children:[b("span",{className:_t.coinLabel,children:"Unlock needs"}),b("div",{className:_t.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:_t.coinIcon}),b("span",{children:e})]})]}),!i&&b("div",{className:_t.coinAmount,children:[b("span",{className:_t.coinLabel,children:"Balance"}),b("div",{className:_t.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:_t.coinIcon}),b("span",{children:s})]})]})]})},_r={card:N`
244
+ `},qx=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=an,formatter:n=a=>a>999?`${a}+`:`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=xa(),l=13;return w("div",{style:jt.coinInfo.styles,children:[!i&&w("div",{style:jt.coinAmount.styles,children:[w(XE,{text:s("jolicoin.unlockNeeds"),initialFontSize:l,minFontSize:8,styles:jt.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:jt.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:jt.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:jt.coinAmount.styles,children:[w(XE,{text:s("jolicoin.balance"),initialFontSize:l,minFontSize:8,styles:jt.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:jt.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:jt.coinIcon.styles}),w("span",{children:a})]})]})]})},Xr={card:D`
230
245
  display: flex;
231
246
  flex-direction: column;
232
247
  align-items: center;
@@ -236,48 +251,49 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
236
251
  padding: 24px 16px;
237
252
  cursor: pointer;
238
253
  transition: all 0.2s ease;
254
+ border: 1px solid transparent;
239
255
 
240
256
  &:hover {
241
- background-color: #2a2a2a;
257
+ background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
258
+ background: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
242
259
  }
243
- `,selectedCard:N`
244
- background-color: rgba(106, 61, 232, 0.2);
260
+ `,selectedCard:D`
261
+ background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
262
+ background: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
245
263
  border: 1px solid #6a3de8;
246
264
 
247
265
  &:hover {
248
- background-color: rgba(106, 61, 232, 0.3);
266
+ background-color: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
249
267
  }
250
- `,coinContainer:N`
268
+ `,coinContainer:D`
251
269
  display: flex;
252
270
  align-items: center;
253
271
  margin-bottom: 16px;
254
- `,coinIcon:N`
272
+ `,coinIcon:D`
255
273
  width: 21px;
256
274
  height: 21px;
257
- `,coinValue:N`
275
+ margin-right: 4px;
276
+ `,coinValue:D`
258
277
  font-size: 24px;
259
278
  font-weight: bold;
260
279
  color: white;
261
- `,price:N`
280
+ `,price:D`
262
281
  font-size: 16px;
263
282
  color: #a88aff;
264
283
  font-weight: bold;
265
- `},rD=N`
284
+ `},W2=D`
266
285
  padding: 5px;
267
286
  box-sizing: border-box;
268
287
  height: 100%;
269
288
  width: 100%;
270
289
  margin-bottom: 10px;
271
- `,nD=N`
290
+ `,Y2=D`
272
291
  aspect-ratio: 1/1.1; // 强制 1:1 的宽高比
273
292
  height: 100%;
274
293
  display: flex;
275
294
  flex-direction: column;
276
295
  justify-content: center;
277
- `,oD=e=>b("div",{className:rD,children:b("div",{className:nD,children:b("div",{className:`${_r.card} ${e.option.id===e.selectedId?_r.selectedCard:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{className:_r.coinContainer,children:[b("img",{src:Er,alt:"Coin",className:_r.coinIcon}),b("span",{className:_r.coinValue,children:e.option.coins})]}),b("div",{className:_r.price,children:e.option.price})]})})}),iD=({options:e,defaultSelectedId:t,onSelect:r})=>{let[n,o]=yt(t!=null?t:""),i=a=>{o(a.id),r==null||r(a)};return b(vc,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(gc,{gutter:[10,10],className:N`
278
- display: flex;
279
- flex-wrap: wrap;
280
- `,children:e.map(a=>b($b,{span:8,children:b(oD,{option:a,selectedId:n,coinImageSrc:Er,handleSelect:i})},a.id))})})},aD=Qs(iD),W={modal:N`
296
+ `,Q2=e=>w("div",{style:W2.styles,children:w("div",{style:Y2.styles,children:w("div",{style:`${Xr.card.styles} ${e.option.id===e.selectedId?Xr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Xr.coinContainer.styles,children:[w("img",{src:an,alt:"Coin",style:Xr.coinIcon.styles}),w("span",{style:Xr.coinValue.styles,children:e.option.coins})]}),w("div",{style:Xr.price.styles,children:e.option.price})]})})}),X2=({options:e,defaultSelectedId:t,onSelect:r})=>{let[n,i]=St(t!=null?t:""),o=a=>{i(a.id),r==null||r(a)};return w(Ox,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(Px,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(a=>w(Nx,{span:8,children:w(Q2,{option:a,selectedId:n,coinImageSrc:an,handleSelect:o})},a.id))})})},Z2=gc(X2),ee={modal:D`
281
297
  font-family: PingFangSC-Regular;
282
298
  background-color: #1a1a1a;
283
299
  color: white;
@@ -288,39 +304,39 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
288
304
  margin: 0 auto;
289
305
  display: flex;
290
306
  flex-direction: column;
291
- `,header:N`
307
+ `,header:D`
292
308
  display: flex;
293
309
  justify-content: space-between;
294
310
  align-items: center;
295
- `,closeButton:N`
311
+ `,closeButton:D`
296
312
  background: none;
297
313
  border: none;
298
314
  cursor: pointer;
299
315
  color: white;
300
316
  padding: 8px;
301
- `,content:N`
317
+ `,content:D`
302
318
  display: flex;
303
319
  flex-direction: column;
304
320
  gap: 16px;
305
- `,title:N`
321
+ `,title:D`
306
322
  font-size: 16px;
307
323
  font-weight: 600;
308
324
  line-height: 1.2;
309
325
  margin: 0;
310
- `,autoDeductOption:N`
326
+ `,autoDeductOption:D`
311
327
  display: flex;
312
328
  justify-content: space-between;
313
329
  align-items: center;
314
- `,toggleSwitch:N`
330
+ `,toggleSwitch:D`
315
331
  position: relative;
316
332
  display: inline-block;
317
333
  width: 33px;
318
334
  height: 18px;
319
- `,toggleInput:N`
335
+ `,toggleInput:D`
320
336
  opacity: 0;
321
337
  width: 0;
322
338
  height: 0;
323
- `,toggleSlider:N`
339
+ `,toggleSlider:D`
324
340
  position: absolute;
325
341
  cursor: pointer;
326
342
  top: 0;
@@ -342,13 +358,13 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
342
358
  transition: 0.4s;
343
359
  border-radius: 50%;
344
360
  }
345
- `,toggleSliderActive:N`
361
+ `,toggleSliderActive:D`
346
362
  background-color: #6a3de8;
347
363
 
348
364
  &:before {
349
365
  transform: translateX(18px);
350
366
  }
351
- `,confirmButton:N`
367
+ `,confirmButton:D`
352
368
  background-color: #6a3de8;
353
369
  color: white;
354
370
  border: none;
@@ -362,7 +378,7 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
362
378
  &:hover {
363
379
  background-color: #5730c5;
364
380
  }
365
- `,cancelButton:N`
381
+ `,cancelButton:D`
366
382
  background-color: transparent;
367
383
  color: white;
368
384
  border: 1px solid rgba(255, 255, 255, 0.2);
@@ -376,23 +392,23 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
376
392
  &:hover {
377
393
  background-color: rgba(255, 255, 255, 0.05);
378
394
  }
379
- `,bottomIndicator:N`
395
+ `,bottomIndicator:D`
380
396
  width: 40px;
381
397
  height: 4px;
382
398
  background-color: rgba(255, 255, 255, 0.3);
383
399
  border-radius: 2px;
384
400
  margin: 0 auto;
385
- `},sD=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:o,onEnableDeductChanged:i,confirmButtonText:a,cancelButtonText:s})=>{let[l,c]=yt(r),d=hc(),u=()=>{n(l)},h=Ke(()=>{c(!l),i(!l)},[l]);return b("div",{className:W.modal,style:{maxWidth:d==="portrait"?"440px":"75%"},children:[b("div",{className:W.header,children:[b(Jb,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Er}),b("button",{className:W.closeButton,onClick:o,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:W.content,children:[b("h2",{className:W.title,children:"Unlock with Jolicoin for a better experience"}),!r&&b("div",{className:W.autoDeductOption,children:[b("span",{className:N`
386
- font-size: 14px;
387
- font-weight: 400;
388
- line-height: 1.2;
389
- `,children:"Deduct Jolicoin automatically for digital items"}),b("label",{className:W.toggleSwitch,children:[b("input",{className:W.toggleInput,type:"checkbox",checked:l,onChange:h}),b("span",{className:`${W.toggleSlider} ${l?W.toggleSliderActive:""}`})]})]}),b("button",{className:W.confirmButton,onClick:u,children:a}),b("button",{className:W.cancelButton,onClick:o,children:s})]})]})},lD=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:o,onClose:i,onEnableDeductChanged:a,confirmButtonText:s,cancelButtonText:l})=>{let[c,d]=yt(r),[u,h]=yt(n[0].productId),p=()=>{o(u)},m=Ke(_=>{console.log(_),h(_)},[]),g=Ke(()=>{d(!c),a(!c)},[c]);return b("div",{className:W.modal,children:[b("div",{className:W.header,children:[b(Jb,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Er}),b("button",{className:W.closeButton,onClick:i,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:W.content,children:[b("div",{className:N`
390
- padding: 0px;
391
- `,children:b(aD,{options:n.map(_=>({id:_.productId,coins:_.quantity,price:_.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:_=>m(_.id)})}),!r&&b("div",{className:W.autoDeductOption,children:[b("span",{className:N`
392
- font-size: 14px;
393
- font-weight: 400;
394
- line-height: 1.2;
395
- `,children:"Deduct Jolicoin automatically for digital items"}),b("label",{className:W.toggleSwitch,children:[b("input",{className:W.toggleInput,type:"checkbox",checked:c,onChange:g}),b("span",{className:`${W.toggleSlider} ${c?W.toggleSliderActive:""}`})]})]}),b("button",{className:W.confirmButton,onClick:p,children:s}),b("button",{className:W.cancelButton,onClick:i,children:l})]})]})},Vb=e=>{let t=mc({title:"",content:b(sD,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonText:e.buttons.confirm.text,cancelButtonText: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},Gb=e=>{let t=mc({title:"",content:b(lD,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonText:e.buttons.confirm.text,cancelButtonText:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},Kb=new Map,zb=(e,t)=>{Kb.set(e,t)};zb(/^\{slot-checkmark\}/,(e,t)=>{var n,o;let r=(o=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?o:{};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"})})})]})})});zb(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Er;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});cD=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let i=null,a=1/0,s=null;for(let[l,c]of Kb.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let h=u.exec(e);h&&h.index<a&&(i=h,a=h.index,s=c)}if(i&&s)a>n&&r.push(e.substring(n,a)),r.push(s(i,t)),n=a+i[0].length;else{r.push(e.substring(n));break}}let o=N`
401
+ `},eF=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=St(r),d=rd(),{t:u}=xa(),h=()=>{n(l)},f=it(()=>{c(!l),o(!l)},[l]);return w("div",{style:`${ee.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:ee.header.styles,children:[w(qx,{unlockNeedsAmount:e,balanceAmount:t,coinImage:an}),w("button",{style:ee.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:ee.content.styles,children:[w("h2",{style:ee.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&w("div",{style:ee.autoDeductOption.styles,children:[w("span",{style:D`
402
+ font-size: 14px;
403
+ font-weight: 400;
404
+ line-height: 1.2;
405
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:ee.toggleSwitch.styles,children:[w("input",{style:ee.toggleInput.styles,type:"checkbox",checked:l,onChange:f}),w("span",{style:`${ee.toggleSlider.styles} ${l?ee.toggleSliderActive.styles:""}`})]})]}),w("button",{style:ee.confirmButton.styles,onClick:h,children:u(a)}),w("button",{style:ee.cancelButton.styles,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})},tF=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=St(r),{t:u}=xa(),[h,f]=St(n[0].productId),m=()=>{i(h)},g=it(v=>{console.log(v),f(v)},[]),_=it(()=>{d(!c),a(!c)},[c]);return w("div",{style:ee.modal.styles,children:[w("div",{style:ee.header.styles,children:[w(qx,{unlockNeedsAmount:e,balanceAmount:t,coinImage:an}),w("button",{style:ee.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:ee.content.styles,children:[w("div",{style:D`
406
+ padding: 0px;
407
+ `.styles,children:w(Z2,{options:n.map(v=>({id:v.productId,coins:v.quantity,price:v.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:v=>g(v.id)})}),!r&&w("div",{style:ee.autoDeductOption.styles,children:[w("span",{style:D`
408
+ font-size: 14px;
409
+ font-weight: 400;
410
+ line-height: 1.2;
411
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:ee.toggleSwitch.styles,children:[w("input",{style:ee.toggleInput.styles,type:"checkbox",checked:c,onChange:_}),w("span",{style:`${ee.toggleSlider.styles} ${c?ee.toggleSliderActive.styles:""}`})]})]}),w("button",{style:ee.confirmButton.styles,onClick:m,children:u(s)}),w("button",{style:ee.cancelButton.styles,onClick:o.bind(null,{type:"FAILED"}),children:u(l)})]})]})},Lx=e=>{let t=nd({title:"",content:w(eF,{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},Ux=e=>{let t=nd({title:"",content:w(tF,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},Mx=new Map,id=(e,t)=>{Mx.set(e,t)};id(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});id(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:an;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});rF=/^\{slot-i18n-(.+?)\}/,nF=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=xa(),i=n(e,t);return w("span",{children:i||r})};id(rF,(e,t)=>{var n;let r=e[1];return r?w(nF,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});Le="-ms-",va="-moz-",M="-webkit-",jx="comm",od="rule",ad="decl",iF="@import",Fx="@keyframes",oF="@layer",aF=Math.abs,Aa=String.fromCharCode,sF=Gu.default;Sa=1,nn=1,$x=0,$e=0,pe=0,sn="";EF=function(e,t,r){for(var n=0,i=0;n=i,i=At(),n===38&&i===12&&(t[r]=1),!Ei(i);)Qe();return Si(e,$e)},xF=function(e,t){var r=-1,n=44;do switch(Ei(n)){case 0:n===38&&At()===12&&(t[r]=1),e[r]+=EF($e-1,t,r);break;case 2:e[r]+=da(n);break;case 4:if(n===44){e[++r]=At()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Aa(n)}while(n=Qe());return e},AF=function(e,t){return Hx(xF(Jx(e),t))},tx=new Vu.default,SF=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!tx.get(r))&&!n){tx.set(e,!0);for(var i=[],o=AF(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]}}},IF=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};TF=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ad:e.return=Vx(e.value,e.length);break;case Fx:return tn([fi(e,{value:j(e.value,"@","@"+M)})],n);case od:if(e.length)return uF(e.props,function(i){switch(cF(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tn([fi(e,{props:[j(i,/:(read-\w+)/,":"+va+"$1")]})],n);case"::placeholder":return tn([fi(e,{props:[j(i,/:(plac\w+)/,":"+M+"input-$1")]}),fi(e,{props:[j(i,/:(plac\w+)/,":"+va+"$1")]}),fi(e,{props:[j(i,/:(plac\w+)/,Le+"input-$1")]})],n)}return""})}},kF=[TF],RF=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,_e.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Tr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||kF,i={},o,a=[];o=e.container||document.head,(0,_e.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[SF,IF];{var c,d=[_F,wF(function(m){c.insert(m)})],u=bF((0,ga.default)(l).call(l,n,d)),h=function(m){return tn(gF(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new fx({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};CF=function(e){var t=RF(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=cr(s,t.registered,void 0);return wa(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=cr(s,t.registered),d="animation-"+c.name;return rx(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=cr(s,t.registered);rx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Cu(t.registered,r,OF(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,_e.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,Ou.default)(_i).call(_i,null,t.registered),merge:(0,Ou.default)(Cu).call(Cu,null,t.registered,r)}},OF=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,pi.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},PF=CF({key:"css"}),Gx=PF.css,NF=(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 Mx.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let h=u.exec(e);h&&h.index<a&&(o=h,a=h.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=Gx`
396
412
  display: 'flex',
397
413
  alignItems: 'center',
398
414
  gap: '4px',
@@ -403,7 +419,7 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
403
419
  fontWeight: 600,
404
420
  lineHeight: '18px',
405
421
  width: 'max-content'
406
- `;return r.length===1?r[0]:b("div",{className:o,children:r})},uD=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[o,i]=yt(!0);Ut(()=>{let s=setTimeout(()=>{i(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=N`
422
+ `;return r.length===1?r[0]:w("div",{className:i,children:r})},DF=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[i,o]=St(!0);sr(()=>{let s=setTimeout(()=>{o(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=Gx`
407
423
  position: fixed;
408
424
  top: max(20px, env(safe-area-inset-top));
409
425
  left: 50%;
@@ -418,13 +434,13 @@ var nE=Object.create;var Vn=Object.defineProperty,oE=Object.defineProperties,iE=
418
434
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
419
435
  z-index: 9999;
420
436
  transition: opacity 0.3s, transform 0.3s;
421
- opacity: ${o?1:0};
422
- transform: ${o?"translate(-50%, 0)":"translate(-50%, -20px)"};
437
+ opacity: ${i?1:0};
438
+ transform: ${i?"translate(-50%, 0)":"translate(-50%, -20px)"};
423
439
  text-align: center;
424
440
  word-wrap: break-word;
425
- `;return b("div",{className:`toast toast-${t} ${o?"toast-visible":"toast-hidden"} ${a}`,children:e})},Wb=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},o=cD(e,t);nr(b(uD,{message:o,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n}),r)}});function Yb(){return x(this,null,function*(){if(_c)return _c;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 ve(t);return _c=r,r})}function Qb(){return x(this,null,function*(){let e=new kt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(yc)return e.resolve(!0),e.promise;let t=yield Yb();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:o}=t.data;yc=!0;let i=Hb({games:r.games,title:n,buttons:o,onClose:a=>{var s;switch(yc=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),i.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;dD(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);i.hide();break;default:e.resolve(!0);break}}});return e.promise})}var _c,dD,yc,Xb=T(()=>{"use strict";te();Ie();D();li();Vt();_c=null;Yb();dD=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let i=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:i})},yc=!1});function pD(e){let t=R(R({},fD),e),{url:r,height:n,showCloseButton:o,enableDragClose:i,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,h=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},p=()=>a?300:0;function m(){let{overlayTransition:y,containerTransition:A,iframeTransition:k}=h();G=document.createElement("div"),G.id="jolibox-modal-overlay",G.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:${y}; opacity:0; visibility:hidden;`,$=document.createElement("div"),$.id="jolibox-modal-container",$.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:${A};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let I=document.createElement("style");I.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(I);let w=document.createElement("div");if(w.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ze=document.createElement("iframe"),ze.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${k};`,ze.src=r,ze.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),ze.style.opacity="1",g(),l==null||l(),de.emit("onModalIframeLoaded",{url:r})},w.appendChild(ze),w.appendChild(O),$.appendChild(w),o){let B=document.createElement("div");B.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",B.innerHTML="\u2715",B.onclick=v,$.appendChild(B)}G.appendChild($),document.body.appendChild(G),G.addEventListener("click",function(B){B.target===G&&v()}),i&&_()}function g(){!G||!$||u||(G.style.visibility="visible",a?requestAnimationFrame(()=>{G&&(G.style.opacity="1"),$&&($.style.transform="translateY(0)"),u=!0}):(G&&(G.style.opacity="1"),$&&($.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!$)return;let y=O=>{c=O.touches[0].clientY},A=O=>{if(!u)return;d=O.touches[0].clientY;let I=d-c;I>0&&($&&($.style.transition="none",$.style.transform=`translateY(${I}px)`),O.preventDefault())},k=()=>{!u||!$||($.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():$.style.transform="translateY(0)")};$.addEventListener("touchstart",y),$.addEventListener("touchmove",A),$.addEventListener("touchend",k)}function v(){!G||!$||!u||(a?($.style.transform="translateY(100%)",G.style.opacity="0"):G.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{G&&(G.remove(),G=null,$=null,ze=null,s==null||s(),de.emit("onModalIframeClosed",{url:r}))},p()))}return m(),{close:v}}function Zb(){return window.joliboxUI=q(R({},window.joliboxUI),{createIframeModal:pD}),()=>{window.joliboxUI=void 0,G&&G.parentNode&&G.parentNode.removeChild(G),$&&$.parentNode&&$.parentNode.removeChild($),ze&&ze.parentNode&&ze.parentNode.removeChild(ze),G=null,$=null,ze=null}}var fD,G,$,ze,e0=T(()=>{"use strict";Ie();te();D();fD={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},G=null,$=null,ze=null});var r0={};hu(r0,{config:()=>AD});function mD(){no.on("isAdShowing",e=>{di=e,Hr(di)&&L("updateContainerConfigSync",{displayCapsuleButton:!di,webviewId:S.webviewId})})}function vD(){de.on("onInterceptSystemExit",({intercept:e})=>{t0=e})}function gD(){de.on("onInterceptBackPress",({intercept:e})=>{hD=e}),Ve("onBeforeBackPress",({uuid:e})=>{var t,r;de.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function _D(){de.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Le("onDocumentReady",{start_timestamp:pi,timestamp:Date.now()})})}function yD(){Ve("onI18nChanged",({language:e})=>{de.emit("onI18nChanged",{i18n:e})})}function bD(e){S.mpType==="game"&&Oe.start(e)}function wD(){Ve("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),de.emit("LifecycleEvent.onReady",R({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Le("joliboxServiceReady",{start_timestamp:pi,timestamp:Date.now()}),bD(t)}),Ve("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function ED(){let e=()=>{Le("onBeforeExit",{timestamp:Date.now()}),ci==null||ci(),ui==null||ui(),Oe.close(Date.now()-pi)},t=()=>di||t0;Je.onDoExit(()=>x(this,null,function*(){return t()?!0:Hr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):fi!=null&&fi.canShowRecommended&&(yield Qb())?!0:(e(),!1)})),Je.onDoBackPress(()=>x(this,null,function*(){return!!t()}))}function xD(){return x(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ve(e);t&&(fi=t)})}function AD(){pi=Date.now(),wD(),mD(),vD(),gD(),ED(),_D(),yD(),xD(),ui=Zb(),ci=Rd()}var ci,ui,pi,di,fi,t0,hD,n0=T(()=>{"use strict";Ie();te();D();Ot();kd();Ka();Xb();Vt();e0();di=!1,fi=null,t0=!1,hD=!1;Je.onReady(()=>{})});function o0(e){let t=Da.config[e];return t||(t={},Da.config[e]=t),(r,n)=>{if(t[r]){tt.warn(`[can i use] ${r} already registered`);return}t[r]=R({},n)}}var i0=T(()=>{"use strict";D()});function bc(e){a0=e}function hi(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>hi(t)):Object.keys(e).reduce((t,r)=>(t[r]=hi(e[r]),t),{})}function bt(e){return typeof e=="number"}function wc(e){let t=Ec(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Ec(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var a0,ae,mi,vi,gi,_i,xr,yi,bi,wi,Ei,xi,Ai,Si,Ii,Ti,Ri,ki,Ci,xc=T(()=>{"use strict";a0=!1;ae=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(a0)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 ${wc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return hi(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:hi(this._default)}optional(){return this._optional=!0,this}};mi=class extends ae{validate(t){return this._optional&&t===void 0?!0:bt(t)?bt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):bt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):bt(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}},vi=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},gi=class extends ae{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(bt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(bt(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}},_i=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},xr=class extends ae{validate(t){return!0}},yi=class extends ae{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},bi=class extends ae{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},wi=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ei=class extends ae{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 ${wc(t)}`)}return!0}},xi=class extends ae{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(bt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(bt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(bt(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 o=!0;if(r.forEach((i,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,i===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(i)||(n.hasFallback?r[a]=n.fallbackValue:o=!1)}),this._uniqueItems){let i=new Map;for(let a in r)i.has(r[a])?o=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${i.get(r[a])}] and ${this.path}[${a}] are identical)`):i.set(r[a],a)}return o}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}},Ai=class extends ae{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ec(r)!=="object")return this.fail({expect:"object",actual:r});let o=r,i=this._value;i.errors=this.errors;let a=!0;for(let s in o){let l=o[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?i.path=`${this.path}.${s}`:i.path=`${this.path}["${s}"]`,!(l===void 0&&i._optional)){if(l===void 0&&i.hasDefault){o[s]=i.defaultValue;continue}i.validate(l)||(i.hasFallback?o[s]=i.fallbackValue:a=!1)}}return a}},Si=class extends ae{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ec(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,o=!0;for(let i in this._object){let a=n[i],s=this._object[i];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(i)?s.path=`${this.path}.${i}`:s.path=`${this.path}["${i}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[i]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[i]=s.fallbackValue:o=!1)}}return o}},Ii=class extends ae{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:wc(this.value),actual:r}):!0}},Ti=class extends ae{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,o=this._items.length;for(let i=0;i<o;i++){let a=this._items[i];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let i=r.join(`
426
- or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let o=t[n];if(o._optional||o.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,o)=>{if(n.path=`${this.path}[${o}]`,n.errors=this.errors,t[o]===void 0&&n.hasDefault){t[o]=n.defaultValue;return}n.validate(t[o])||(n.hasFallback?t[o]=n._fallback:r=!1)}),r}},ki=class extends ae{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ci=class extends ae{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 Ac(e,t,r="param"){if(e.errors=[],e.path=r,bc(!0),!e.validate(t)){let n=e.errors.join(`
427
- `);throw e.errors.length=0,bc(!1),new TypeError(n)}}var E,Sc=T(()=>{"use strict";xc();xc();E={object(e){return new Si(e)},array(e){return new xi(e)},tuple(...e){return new Ri(...e)},literal(e){return new Ii(e)},or(...e){return new Ti(...e)},symbol(){return new _i},record(e){return new Ai(e)},function(){return new wi},boolean(){return new vi},string(){return new gi},number(){return new mi},undefined(){return new yi},null(){return new bi},unknown(){return new xr},any(){return new xr},as(){return new xr},arraybuffer(){return new ki},enum(...e){return new Ei(...e)},typedarray(e){return new Ci(e)}}});var Oi,s0,l0=T(()=>{"use strict";D();nt();Sc();tr();Oi=1,s0=e=>{function t(n,o){return(...i)=>{var u,h,p,m;let a=Date.now(),s={method:n,trace_id:Oi};Oi+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(o.paramsSchema)try{Ac(o.paramsSchema,i,"params")}catch(y){throw $a(`${n}:fail ${y.message}`)}let g=o.implement(...i),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:y,data:A,message:k}=g;l=y,_=A,v=k}return{code:l,message:v,data:_}}catch(g){let _=g;d=(h=(u=_.code)!=null?u:_.errNo)!=null?h:2e3,l="FAILURE";let v=(m=(p=_.message)!=null?p:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Te(new Vr(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(R({},s),{duration:g,status:l}))}}}function r(n,o){return(...i)=>x(this,null,function*(){var h,p,m,g;let a=ju(i)?i:[i],s=Date.now(),l={method:n,trace_id:Oi};Oi+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(o.paramsSchema)try{Ac(o.paramsSchema,a,"params")}catch(y){throw $a(y.message)}let v=yield o.implement(...a);if(v&&"code"in v){let{code:y,data:A,message:k}=v;d=y,c=k,v=A}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,y=(p=(h=v.code)!=null?h:v.errNo)!=null?p:2e3;d="FAILURE";let A=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,k=`${n}:${d} ${A.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:k}),Te(new Vr(k,y)),u}finally{let _=Date.now()-s;e("apiInvoked",q(R({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var se,J,P,lt=T(()=>{"use strict";i0();Ot();l0();Sc();({createAPI:se,createSyncAPI:J}=s0(Le)),P=o0("native")});var c0,ID,TD,RD,kD,u0=T(()=>{"use strict";D();lt();Ie();c0=ee(),ID="env",TD="getSystemInfoSync",RD=J(TD,{implement:()=>{var r;let e=L("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion}}}),kD=J(ID,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});c0.registerCommand("API.getSystemInfoSync",RD);c0.registerCommand("API.env",kD);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var d0=f(Ic=>{"use strict";D();lt();nt();Ie();Ot();te();var CD="exitGame",OD="onReady",PD="onJoliboxShow",ND="onJoliboxHide",Pi=ee(),Ni=Xn(Te),DD=se(CD,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>x(Ic,null,function*(){Ni(e).call(Ic),Hr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&qu("onRetentionResult",{shouldStay:t},S.from,!0),yield Ee("exitAppAsync")})}),qD=J(PD,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);Ve("onJoliboxEnterForeground",()=>{t.call(this),Kr.emit("visible",!0)})}}),LD=J(ND,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);Ve("onJoliboxEnterBackground",()=>{t.call(this),Kr.emit("visible",!1)})}}),UD=J(OD,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);de.on("LifecycleEvent.onReady",r=>{t(r)})}});Pi.registerCommand("LifecycleSDK.exit",DD);Pi.registerCommand("LifecycleSDK.onReady",UD);Pi.registerCommand("LifecycleSDK.onJoliboxShow",qD);Pi.registerCommand("LifecycleSDK.onJoliboxHide",LD);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function f0(e){let t={};if(!Ht(e))return t;for(let[r,n]of Object.entries(e)){let o=r.toLocaleLowerCase();n?typeof n=="object"?t[o]=Object.prototype.toString.call(n):t[o]=String(n):t[o]=""}return t}function p0(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 h0(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function m0(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Ht(r))return e;let[n,o=""]=e.split("?"),i=new URLSearchParams(o);for(let[s,l]of Object.entries(r))l!=null&&i.append(s,String(l));let a=i.toString();return a?`${n}?${a}`:n}var v0=T(()=>{"use strict";D()});var MD,FD,Tc,Rc,g0,jD,BD,$D,_0=T(()=>{"use strict";tr();Va();lt();v0();D();nt();te();MD=15,FD=to("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Tc=0,Rc=[],g0=Xn(Te),jD=(e,t)=>{let r=e.filter(t),n=e.filter(o=>!t(o));return e.length=0,e.push(...n),r},BD=e=>{let t=new kt,r=()=>{};return J("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object(),data:E.object().optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(o){let i=()=>x(this,null,function*(){var s,l;let a=g0(o.fail);try{if(Tc+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:h,appendHostCookie:p}=o,m=f0(o.headers),g=p0(o.method),_=h0(o.timeout),v=m0(o.url,g,c),y=g0(o.success),A=Object.assign({},o,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:h,query:(s=o.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:p});_&&(A.timeout=_);let k=FD(v,A);{let{response:O}=yield k,{code:I,data:w,message:B}=O;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw Ct({code:w.status||-1,msg:`request:fail status ${w.status}`});t.resolve({code:I!=null?I:"SUCCESS",data:w,message:B!=null?B:"request:ok"}),y({code:"SUCCESS",message:"request:ok",data:w})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Tc-=1,(l=Rc.shift())==null||l()}});return Tc>=MD?(r=()=>{jD(Rc,a=>a===i)},Rc.push(i)):i(),t.promise}})(e),{abort(){t.reject(Ct({code:-1,msg:"request:fail abort"})),r()}}},$D=ee();$D.registerCommand("HttpSDK.request",BD);P("request",{version:"1.0.0"})});function y0(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return KD.includes(t)?t:""}function b0(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 w0(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 Di,HD,JD,VD,GD,sH,lH,KD,Tn,kc,Cc=T(()=>{"use strict";lt();Ie();D();Vt();te();Di=ee(),HD=se("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){let{response:t}=yield ve(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:o}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:o==null?void 0:o.value};try{let{data:{data:i,dataType:a}}=yield Ee("getLocalStorageAsync",{key:e}),s=b0(i,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(i){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Di.registerCommand("StorageSDK.getItem",HD);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});JD=se("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return x(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:o}=yield ve(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:i,message:a}}=o,s=y0(t),l=w0(t,s);return yield Ee("setLocalStorageAsync",{key:e,data:l,dataType:s}),i=="SUCCESS"?{code:i,message:a}:{code:i,message:`${a}. fallback to native`}})}});Di.registerCommand("StorageSDK.setItem",JD);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});VD=se("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){let t=S.mpId,{response:r}=yield ve(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:o}}=r;return yield Ee("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:o}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Di.registerCommand("StorageSDK.removeItem",VD);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});GD=se("clearStorage",{implement(){return x(this,null,function*(){let e=S.mpId,{response:t}=yield ve(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Ee("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Di.registerCommand("StorageSDK.clear",GD);P("storage.clear",{version:"1.0.0"});sH=se("getStorageInfo",{implement(){return x(this,null,function*(){let{data:e}=yield Ee("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});lH=J("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),KD=["string","number","boolean","object",""];Tn=se("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){try{let{data:t,dataType:r}=yield Ee("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:b0(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),kc=se("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return x(this,null,function*(){try{let r=y0(t),n=w0(t,r);return yield Ee("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 zD,WD,YD,Oc,E0=T(()=>{"use strict";D();Ie();lt();zD=J("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",q(R({},e),{defaultValue:r,maxLength:t}))}});P("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});WD=J("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});YD=J("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});Oc=ee();Oc.registerCommand("KeyboardSDK.showKeyboard",zD);Oc.registerCommand("KeyboardSDK.updateKeyboard",WD);Oc.registerCommand("KeyboardSDK.hideKeyboard",YD)});var x0=f(Yt=>{"use strict";D();lt();Ot();var Ar=ee(),QD=se("levelFinished",{paramsSchema:E.tuple(E.string(),E.object({result:E.boolean(),duration:E.number()})),implement:(e,t)=>x(Yt,null,function*(){let{result:r,duration:n}=t,o=[];o.push(Oe.tracker("LevelFinished",{levelId:e,result:r,duration:n})),o.push(Oe.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),XD=se("taskFinished",{paramsSchema:E.tuple(E.string(),E.object({duration:E.number()})),implement:(e,t)=>x(Yt,null,function*(){let{duration:r}=t;return yield Oe.reportToNative({event:"TaskFinished",params:{duration:r,taskId:e}})})}),ZD=se("levelUpgrade",{paramsSchema:E.tuple(E.string(),E.string()),implement:(e,t)=>x(Yt,null,function*(){let r=[];r.push(Oe.reportToNative({event:"LevelUpgrade",params:{name:t,levelId:e}})),yield Promise.all(r)})}),eq=se("onHistoryUserLevel",{paramsSchema:E.tuple(E.number()),implement:e=>x(Yt,null,function*(){return yield Oe.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),tq=se("onHistoryUserScore",{paramsSchema:E.tuple(E.number()),implement:e=>x(Yt,null,function*(){return yield Oe.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),rq=se("taskEvent",{paramsSchema:E.tuple(E.string(),E.object({tools:E.array(E.object({id:E.string(),name:E.string(),count:E.number(),description:E.string().optional(),price:E.object({amount:E.number(),unit:E.string()}).optional()})).optional(),awards:E.array(E.object({id:E.string(),name:E.string()})).optional()})),implement:(e,t)=>x(Yt,null,function*(){var n,o;let r=[];r.push(Oe.reportToNative({event:"TaskEvent",params:R({taskId:e},t)})),(o=(n=t.tools)==null?void 0:n.length)!=null&&o&&(r.push(Oe.reporter({event:"USE_GAME_ITEM"})),r.push(Oe.reportToNative({event:"UseGameItem",params:R({taskId:e},t)}))),yield Promise.all(r)})});Ar.registerCommand("TaskTrackerSDK.levelFinished",QD);Ar.registerCommand("TaskTrackerSDK.taskFinished",XD);Ar.registerCommand("TaskTrackerSDK.levelUpgrade",ZD);Ar.registerCommand("TaskTrackerSDK.historyUserLevel",eq);Ar.registerCommand("TaskTrackerSDK.historyUserScore",tq);Ar.registerCommand("TaskTrackerSDK.taskEvent",rq);P("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});P("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});P("TaskTrackerSDK.onTaskEvent",{version:"1.0.0",properties:{taskId:"1.0.0",params:{tools:{id:"1.0.0",name:"1.0.0",count:"1.0.0",description:"1.0.0",price:{amount:"1.0.0",unit:"1.0.0"}},awards:{id:"1.0.0",name:"1.0.0"}}}})});var Pc,nq,A0,Nc=T(()=>{"use strict";te();Ie();lt();D();tr();P("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Pc=se("login",{implement(){return x(this,null,function*(){var a;let{data:{isLogin:e}}=yield Ee("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};Ve("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&o({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw Ct({code:-1,msg:"login failed"});let{promise:n,resolve:o}=new kt,i=yield n;return S.onEnvConfigChanged({hostUserInfo:i}),de.emit("onLoginComplete",i),i})}}),nq=se("checkSession",{implement(){return x(this,null,function*(){let{data:{isLogin:e}}=yield Ee("checkLoginAsync");return{isLogin:e}})}}),A0=ee();A0.registerCommand("API.login",Pc);A0.registerCommand("API.checkSession",nq)});var Ir,qi,wt,Li,Tr,Ui,Sr,oq,V,Qt,Xt=T(()=>{"use strict";D();Ir="UNLOCK_OPTIONS_CHANGED",qi="INVOKE_PAYMENT",wt="ON_PAYMENT_RESULT",Li="ON_USE_MODAL_EVENT",Tr="ON_USE_MODAL_RESULT",Ui="ON_USE_MODAL_FREQUENCY",Sr=new rt,oq=()=>({on:Sr.on.bind(Sr),off:Sr.off.bind(Sr),emit:Sr.emit.bind(Sr)}),V=oq(),Qt={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Et(e,t){let r=null,n=null,o=null,i=()=>{if(o){r=Promise.resolve(o);return}r=new Promise(a=>{n=a})};return i(),e.on(t,(...a)=>{let s=a[0];o=s,n&&(n(s),n=null)}),{getData:()=>(r||i(),r),getCachedData:()=>o,clearCache:()=>{o=null,r=null},getFreshData:()=>(o=null,r=null,i(),r)}}var Rn=T(()=>{"use strict"});var Dc,S0=T(()=>{"use strict";Dc=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(o=>o>=r&&o<n)}});var I0,T0,R0,k0,C0=T(()=>{"use strict";Cc();S0();I0=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Tn("joli_coin_use_modal_frequency");if(!n.data)return!0;let o=n.data,i=Dc(o);return!(i.length>=t||Date.now()-i[i.length-1]<r)}),T0=()=>x(void 0,null,function*(){var n;let e=Date.now(),r=(n=(yield Tn("joli_coin_use_modal_frequency")).data)!=null?n:[];r.push(e),r.sort((o,i)=>i-o).splice(8),yield kc("joli_coin_use_modal_frequency",r)}),R0=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Tn("joli_coin_payment_frequency");if(!n.data)return!0;let o=n.data,i=Dc(o);return!(i.length>=t||Date.now()-i[i.length-1]<r)}),k0=()=>x(void 0,null,function*(){var n;let e=Date.now(),r=(n=(yield Tn("joli_coin_payment_frequency")).data)!=null?n:[];r.push(e),r.sort((o,i)=>i-o).splice(8),yield kc("joli_coin_payment_frequency",r)})});var N0=f(xt=>{"use strict";Xt();li();Vt();te();Nc();Rn();C0();var Lc=Et(V,Ui);Lc.getData();var qc=Promise.resolve(),P0=e=>x(xt,null,function*(){qc=qc.then(()=>x(xt,null,function*(){yield ve("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield qc});V.on(Li,(e,t)=>x(xt,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield Lc.getData();if(!(yield I0(n.joliCoinUseAndCharge.useJolicoin))){V.emit(Tr,{useModalResult:"CONFIRM"});return}}let r=Vb({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{V.emit(Tr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{V.emit(Tr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>x(xt,null,function*(){yield P0(n)})}});yield T0()}));V.on(qi,(e,t)=>x(xt,null,function*(){try{if(e==="ADS-JOLI_COIN"){let o=yield Lc.getData();if(!(yield R0(o.joliCoinUseAndCharge.charge))){V.emit(wt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield O0();if(!r){V.emit(wt,{paymentResult:"FAILED"});return}let n=Gb({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:o=>x(xt,null,function*(){var i,a;if(!((i=S.hostUserInfo)!=null&&i.isLogin)){let{data:s}=yield Pc();if(!(s!=null&&s.isLogin)){console.log("login failed");return}let l=yield O0();if(((a=l==null?void 0:l.balance)!=null?a:0)>=t.joliCoinQuantity&&t.enableAutoDeduct){V.emit(wt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",o),V.emit(wt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{V.emit(wt,{paymentResult:(o!=null?o:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:o=>x(xt,null,function*(){yield P0(o)})}});yield k0()}catch(r){console.info("payment failed",r),V.emit(wt,{paymentResult:"FAILED"})}}));var O0=()=>x(xt,null,function*(){var t;let{response:e}=yield ve("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function We(e,t,r){return(t=lq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e){var t=cq(e,"string");return typeof t=="symbol"?t:t+""}function cq(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 Mi(e,t,r){return(t=uq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uq(e){var t=dq(e,"string");return typeof t=="symbol"?t:t+""}function dq(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 bq(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function wq(e){return typeof e=="string"}function Eq(e){return typeof e=="undefined"}function xq(e){return Eq(e)||e===null}function Aq(e){return typeof e=="function"}function ow(e){let t=e,r=null,n=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kn(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Bi(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((o,i)=>(o[i]=String(n[i]),o),{})}return e[r]})}function Cq(e){let t=e.location?Bi(e.location,M0):null,r=e.target?Bi(e.target,M0):null;return Bi(gq(vq({},e),{location:t,target:r}),Rq)}function Oq(e){let t=e.events.map(n=>Cq(n)),r=Bi(e.device,kq);return[e.protocolVersion,t,r,e.project]}function Pq(){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 Uq(e){return new Promise(t=>lw(e)(t))}function lw(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function Mq(e,t){return(r=>{let n={onWillAddFirstListener(){r(o.fire,o)}},o=new Dn(n);return o.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(o=>t(o)&&r.call(n,o),null)})}function jq(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)Bq(e[n],t[n])}function Bq(e,t){if(wq(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Aq(t)){try{if(e instanceof t)return}catch(r){}if(!xq(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 Mc(e,t,r){return(t=$q(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $q(e){var t=Hq(e,"string");return typeof t=="symbol"?t:t+""}function Hq(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 Fi(e,t,r){return(t=Jq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jq(e){var t=Vq(e,"string");return typeof t=="symbol"?t:t+""}function Vq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e,t,r){return(t=Gq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gq(e){var t=Kq(e,"string");return typeof t=="symbol"?t:t+""}function Kq(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 zq(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 Wq(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 tL(e,t){return be(e,0)^45?(((t<<2^be(e,0))<<2^be(e,1))<<2^be(e,2))<<2^be(e,3):0}function dw(e){return e.trim()}function rL(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,r){return e.replace(t,r)}function Xc(e,t){return e.indexOf(t)}function be(e,t){return e.charCodeAt(t)|0}function qn(e,t,r){return e.slice(t,r)}function ct(e){return e.length}function lu(e){return e.length}function ji(e,t){return t.push(e),e}function nL(e,t){return e.map(t).join("")}function ta(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ea,column:kr,length:a,return:""}}function On(e,t){return eL(ta("",null,null,"",null,null,0),e,{length:-e.length},t)}function oL(){return ce}function iL(){return ce=qe>0?be(Cr,--qe):0,kr--,ce===10&&(kr=1,ea--),ce}function Be(){return ce=qe<fw?be(Cr,qe++):0,kr++,ce===10&&(kr=1,ea++),ce}function ut(){return be(Cr,qe)}function $i(){return qe}function Un(e,t){return qn(Cr,e,t)}function Ln(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 pw(e){return ea=kr=1,fw=ct(Cr=e),qe=0,[]}function hw(e){return Cr="",e}function Hi(e){return dw(Un(qe-1,Zc(e===91?e+2:e===40?e+1:e)))}function aL(e){for(;(ce=ut())&&ce<33;)Be();return Ln(e)>2||Ln(ce)>3?"":" "}function sL(e,t){for(;--t&&Be()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return Un(e,$i()+(t<6&&ut()==32&&Be()==32))}function Zc(e){for(;Be();)switch(ce){case e:return qe;case 34:case 39:e!==34&&e!==39&&Zc(ce);break;case 40:e===41&&Zc(e);break;case 92:Be();break}return qe}function lL(e,t){for(;Be()&&e+ce!==57&&!(e+ce===84&&ut()===47););return"/*"+Un(t,qe-1)+"*"+Zi(e===47?e:Be())}function cL(e){for(;!Ln(ut());)Be();return Un(e,qe)}function uL(e){return hw(Ji("",null,null,null,[""],e=pw(e),0,[0],e))}function Ji(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,u=a,h=0,p=0,m=0,g=1,_=1,v=1,y=0,A="",k=o,O=i,I=n,w=A;_;)switch(m=y,y=Be()){case 40:if(m!=108&&be(w,u-1)==58){Xc(w+=j(Hi(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Hi(y);break;case 9:case 10:case 13:case 32:w+=aL(m);break;case 92:w+=sL($i()-1,7);continue;case 47:switch(ut()){case 42:case 47:ji(dL(lL(Be(),$i()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=ct(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=j(w,/\f/g,"")),p>0&&ct(w)-u&&ji(p>32?B0(w+";",n,r,u-1):B0(j(w," ","")+";",n,r,u-2),l);break;case 59:w+=";";default:if(ji(I=j0(w,t,r,c,d,o,s,A,k=[],O=[],u),i),y===123)if(d===0)Ji(w,t,I,I,k,i,u,s,O);else switch(h===99&&be(w,3)===110?100:h){case 100:case 108:case 109:case 115:Ji(e,I,I,n&&ji(j0(e,I,I,0,0,o,s,A,o,k=[],u),O),o,O,u,s,n?k:O);break;default:Ji(w,I,I,I,[""],O,0,s,O)}}c=d=p=0,g=v=1,A=w="",u=a;break;case 58:u=1+ct(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&iL()==125)continue}switch(w+=Zi(y),y*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(ct(w)-1)*v,v=1;break;case 64:ut()===45&&(w+=Hi(Be())),h=ut(),d=u=ct(A=w+=cL($i())),y++;break;case 45:m===45&&ct(w)==2&&(g=0)}}return i}function j0(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,h=o===0?i:[""],p=lu(h),m=0,g=0,_=0;m<n;++m)for(var v=0,y=qn(e,u+1,u=Zq(g=a[m])),A=e;v<p;++v)(A=dw(g>0?h[v]+" "+y:j(y,/&\f/g,h[v])))&&(l[_++]=A);return ta(e,t,r,o===0?au:s,l,c,d)}function dL(e,t,r){return ta(e,t,r,cw,Zi(oL()),qn(e,2,-2),0)}function B0(e,t,r,n){return ta(e,t,r,su,qn(e,0,n),qn(e,n+1,-1),n)}function Rr(e,t){for(var r="",n=lu(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fL(e,t,r,n){switch(e.type){case Xq:if(e.children.length)break;case Qq:case su:return e.return=e.return||e.value;case cw:return"";case uw:return e.return=e.value+"{"+Rr(e.children,n)+"}";case au:e.value=e.props.join(",")}return ct(r=Rr(e.children,n))?e.return=e.value+"{"+r+"}":""}function pL(e){var t=lu(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function hL(e){return function(t){t.root||(t=t.return)&&e(t)}}function mL(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function mw(e,t){switch(tL(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Ki+e+Se+e+e;case 6828:case 4268:return F+e+Se+e+e;case 6165:return F+e+Se+"flex-"+e+e;case 5187:return F+e+j(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Se+"flex-$1$2")+e;case 5443:return F+e+Se+"flex-item-"+j(e,/flex-|-self/,"")+e;case 4675:return F+e+Se+"flex-line-pack"+j(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Se+j(e,"shrink","negative")+e;case 5292:return F+e+Se+j(e,"basis","preferred-size")+e;case 6060:return F+"box-"+j(e,"-grow","")+F+e+Se+j(e,"grow","positive")+e;case 4554:return F+j(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ct(e)-1-t>6)switch(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+Ki+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xc(e,"stretch")?mw(j(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(be(e,t+1)!==115)break;case 6444:switch(be(e,ct(e)-3-(~Xc(e,"!important")&&10))){case 107:return j(e,":",":"+F)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(be(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Se+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Se+e+e}return e}function AL(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 zi(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 o=r;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=i.styles+";";return s}return RL(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function RL(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=zi(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":H0(s)&&(n+=Fc(i)+":"+J0(i,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++)H0(a[l])&&(n+=Fc(i)+":"+J0(i,a[l])+";");else{var c=zi(e,t,a);switch(i){case"animation":case"animationName":{n+=Fc(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}function jc(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,o="";jt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=zi(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=zi(r,t,e[s]),n){var l=i;o+=l[s]}V0.lastIndex=0;for(var c="",d;(d=V0.exec(o))!==null;)c+="-"+d[1];var u=AL(o)+c;return{name:u,styles:o,next:jt}}function gw(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}function G0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function K0(e,t,r){var n=[],o=gw(e,n,r);return n.length<2?r:o+t(n)}function yw(e,t){le.__h&&le.__h(De,e,eu||t),eu=0;var r=De.__H||(De.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function DL(e,t){var r=yw(Wi++,3);!le.__s&&bw(r.__H,t)&&(r.__=e,r.u=t,De.__H.__h.push(r))}function qL(e){return eu=5,cu(function(){return{current:e}},[])}function cu(e,t){var r=yw(Wi++,7);return bw(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function LL(){for(var e;e=_w.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vi),e.__H.__h.forEach(tu),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}function UL(e){var t,r=function(){clearTimeout(n),tw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);tw&&(t=requestAnimationFrame(r))}function Vi(e){var t=De,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),De=t}function tu(e){var t=De;e.__c=e.__(),De=t}function bw(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ra(){if(Bt>1)Bt--;else{for(var e,t=!1;Pn!==void 0;){var r=Pn;for(Pn=void 0,ru++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ew(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(ru=0,Bt--,t)throw e}}function Ye(e){if(Bt>0)return e();Bt++;try{return e()}finally{ra()}}function ww(e){if(H!==void 0){var t=e.n;if(t===void 0||t.t!==H)return t={i:0,S:e,p:H.s,n:void 0,t:H,e:void 0,x:void 0,r:t},H.s!==void 0&&(H.s.n=t),H.s=t,e.n=t,32&H.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=H.s,t.n=void 0,H.s.n=t,H.s=t),t}}function we(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ye(e){return new we(e)}function Ew(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 xw(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 Aw(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 Or(e){we.call(this,void 0),this.x=e,this.s=void 0,this.g=Yi-1,this.f=4}function Nn(e){return new Or(e)}function Sw(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Bt++;var r=H;H=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,uu(e),n}finally{H=r,ra()}}}function uu(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Sw(e)}function FL(e){if(H!==this)throw new Error("Out-of-order effect");Aw(this),H=e,this.f&=-2,8&this.f&&uu(this),ra()}function Fn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Pr(e){var t=new Fn(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Nr(e,t){C[e]=t.bind(null,C[e]||function(){})}function Qi(e){$c&&$c(),$c=e&&e.S()}function Rw(e){var t=this,r=e.data,n=kw(r);n.value=r;var o=cu(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Nn(function(){var p=n.value.value;return p===0?0:p===!0?"":p||""}),d=Nn(function(){return!Array.isArray(c.value)&&!Ya(c.value)}),u=Pr(function(){if(this.N=Cw,d.value){var p=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}function jL(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=ye(r);return{o:function(a,s){i.value=a,n=s},d:Pr(function(){this.N=Cw;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function kw(e){return cu(function(){return ye(e)},[])}function HL(){Ye(function(){for(var e;e=Iw.shift();)du.call(e)})}function JL(){Iw.push(this)===1&&(C.requestAnimationFrame||BL)(HL)}function VL(){Ye(function(){for(var e;e=Tw.shift();)du.call(e)})}function Cw(){Tw.push(this)===1&&(C.requestAnimationFrame||$L)(VL)}function GL(e){var t=qL(e);t.current=e,DL(function(){return Pr(function(){return this.N=JL,t.current()})},[])}function KL(e,t){let r=Gs(e);Vs(()=>{r.current=e},[e]),Js(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function he(e,t,r,n,o,i){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:--zL,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function St(e,t,r){return(t=aU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aU(e){var t=sU(e,"string");return typeof t=="symbol"?t:t+""}function sU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,r){return(t=lU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lU(e){var t=cU(e,"string");return typeof t=="symbol"?t:t+""}function cU(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 D0,iq,aq,sq,Hc,Jc,rw,fq,pq,q0,hq,mq,L0,vq,gq,_q,nw,yq,Sq,Iq,U0,Tq,iw,aw,sw,M0,Rq,kq,Vc,Y,Nq,Dq,Cn,Dn,qq,Kc,Lq,Uc,Fq,zc,F0,Wc,Yc,Qc,Yq,Se,Ki,F,cw,au,su,Qq,uw,Xq,Zq,Zi,eL,ea,kr,fw,qe,ce,Cr,vL,gL,_L,$0,yL,bL,wL,EL,xL,SL,IL,TL,vw,H0,Fc,J0,V0,jt,kL,CL,OL,PL,NL,Mn,Wi,De,Bc,z0,eu,_w,le,W0,Y0,Q0,X0,Z0,ew,tw,ML,H,Pn,Bt,ru,Yi,du,$c,Iw,Tw,BL,$L,Ne,zL,WL,It,nu,ou,Gi,YL,QL,XL,ZL,eU,tU,rU,nU,oU,iU,iu,Xi,XH,Ow=T(()=>{"use strict";or();Xs();D0=Object.getOwnPropertySymbols,iq=Object.prototype.hasOwnProperty,aq=Object.prototype.propertyIsEnumerable,sq=(e,t)=>{var r={};for(var n in e)iq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&D0)for(var n of D0(e))t.indexOf(n)<0&&aq.call(e,n)&&(r[n]=e[n]);return r};Hc=class{constructor(t){We(this,"context",void 0),We(this,"continueCallback",void 0),We(this,"isBeforeAdCalled",!1),We(this,"isBeforeRewardCalled",!1),We(this,"isAdDismissedCalled",!1),We(this,"isAdViewedCalled",!1),We(this,"isAfterAdCalled",!1),We(this,"currentProvider",void 0),We(this,"currentClientParams",void 0),We(this,"adsHasResponse",!1),We(this,"videoChecker",window.document.createElement("video")),We(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),r()}),this.context=t}get paramsToTrack(){var t,r,n,o,i,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:((o=this.currentClientParams)==null?void 0:o.type)==="preroll"?null:(a=(i=this.currentClientParams)==null?void 0:i.name)!=null?a:""}}wrapBeforeAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}wrapAdBreakDone(t){return r=>{var n,o,i,a,s;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(o=(n=this.currentProvider)==null?void 0:n.name)!=null?o:null,breakType:r.breakType,breakName:(i=r.breakName)!=null?i:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{t==null||t(r),(a=this.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return x(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o;let i;switch(r.type){case"preroll":{i={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{i={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:{i={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var a,s,l,c;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(c=this.continueCallback)==null||c.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(i,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Jc=class{constructor(t){Mi(this,"context",void 0),Mi(this,"adBreakIsShowing",!1),Mi(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Mi(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()})}},rw=Object.defineProperty,fq=Object.defineProperties,pq=Object.getOwnPropertyDescriptors,q0=Object.getOwnPropertySymbols,hq=Object.prototype.hasOwnProperty,mq=Object.prototype.propertyIsEnumerable,L0=(e,t,r)=>t in e?rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vq=(e,t)=>{for(var r in t||(t={}))hq.call(t,r)&&L0(e,r,t[r]);if(q0)for(var r of q0(t))mq.call(t,r)&&L0(e,r,t[r]);return e},gq=(e,t)=>fq(e,pq(t)),_q=(e,t)=>{for(var r in t)rw(e,r,{get:t[r],enumerable:!0})},nw=(e,t,r,n)=>{for(var o=t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=a(o)||o);return o},yq=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,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}Sq=(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))(Sq||{});Iq={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:Iq});U0=Symbol.for("Jolibox.canIUseMap"),Tq={};globalThis[U0]||(globalThis[U0]=Tq);iw=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(iw||{}),aw=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(aw||{}),sw=(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))(sw||{}),M0=["name","params"],Rq=["name","type","location","target","extra","timestamp","userId"],kq=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];Pq();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");Vc=class Gc{constructor(t){this.element=t,this.next=Gc.Undefined,this.prev=Gc.Undefined}};Vc.Undefined=new Vc(void 0);Y=Vc,Nq=class{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let e=this._first;for(;e!==Y.Undefined;){let t=e.next;e.prev=Y.Undefined,e.next=Y.Undefined,e=t}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Y(e);if(this._first===Y.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==Y.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Y.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Y.Undefined&&e.next!==Y.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Y.Undefined&&e.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):e.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):e.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Y.Undefined;)yield e.element,e=e.next}},Dq=0,Cn=class{constructor(e){this.value=e,this.id=Dq++}},Dn=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 Cn&&(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,o,i,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new Cn(e);return this._listeners?this._listeners instanceof Cn?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,(i=(o=this.options)==null?void 0:o.onDidFirstListener)==null||i.call(o,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,h;if(!this._disposed){if(this._listeners instanceof Cn)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let p=this._listeners.indexOf(l);p>=0&&(this._listeners.splice(p,1),this._size--,this._size===0&&((h=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||h.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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof Cn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},qq=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 o=(n=this.listeners.get(e))!=null?n:new Dn,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];r||(r=new Nq,this.cachedEventQueue.set(e,r)),r.push({args:o}),t&&t.fire({event:e,args:o})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Kc={};_q(Kc,{None:()=>Lq,filter:()=>Mq,once:()=>lw,toPromise:()=>Uq});Lq=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Uc=Symbol.for("Jolibox.hostEmitter"),Fq=()=>{let e=new qq;return globalThis[Uc]||(globalThis[Uc]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Uc]};Fq();zc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Dn,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return jq(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}};zc=nw([ow],zc);F0=class{constructor(){this._onWillExecuteCommand=new Dn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Dn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=bq(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 yq(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Kc.toPromise(Kc.filter(this.registry.onDidRegisterCommand,o=>o===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),o=1;o<r;o++)n[o-1]=arguments[o];this._onWillExecuteCommand.fire({commandId:e,args:n});let i=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),i}_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{}}};F0=nw([ow],F0);Wc=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Mc(this,"context",void 0),Mc(this,"placement","GAME"),Mc(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,o)=>{r[o]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,o;return{platform:(t=this.contextInfo.platform)!=null?t:sw.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:(o=this.contextInfo.deviceBrand)!=null?o:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let o={protocolVersion:"1.0.0",events:[{name:t,type:iw.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:aw.WebSDK};return Oq(o)}};Yc=class{constructor(t){Fi(this,"configs",null),Fi(this,"firstRun",!0),Fi(this,"context",void 0),Fi(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return x(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let o=(t=this.contextInfo.channel)!=null?t:"",i=this.configs[o],a=(r=i==null?void 0:i.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Qc=class{constructor(t,r){At(this,"name","ADSENSE"),At(this,"context",void 0),At(this,"contextInfo",void 0),At(this,"configured",!1),At(this,"initParams",void 0),At(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),At(this,"adConfig",n=>{let o=n,{onReady:i}=o,a=sq(o,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),At(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),At(this,"adUnit",n=>x(this,null,function*(){var o,i,a,s;if(this.context.track("CallAdUnit",{adFormat:(i=(o=n.adFormat)==null?void 0:o.toString())!=null?i: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:h}=n,p;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?p=document.querySelector(l):p=l,!p)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),h&&_.setAttribute("style",h),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",p.appendChild(_),_.appendChild(v)}else p.appendChild(_),new MutationObserver(v=>{v.forEach(y=>{if(y.type==="attributes"&&y.attributeName==="data-ad-status"){let A=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:A!=null?A:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return x(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let o=document.createElement("script");o.id=r,o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),document.head.appendChild(o),this.context.track("LoadAdsenseCompleted",null)}})}};Yq=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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(Wq(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=zq(n);try{o.insertRule(r,o.cssRules.length)}catch(i){}}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}(),Se="-ms-",Ki="-moz-",F="-webkit-",cw="comm",au="rule",su="decl",Qq="@import",uw="@keyframes",Xq="@layer",Zq=Math.abs,Zi=String.fromCharCode,eL=Object.assign;ea=1,kr=1,fw=0,qe=0,ce=0,Cr="";vL=function(e,t,r){for(var n=0,o=0;n=o,o=ut(),n===38&&o===12&&(t[r]=1),!Ln(o);)Be();return Un(e,qe)},gL=function(e,t){var r=-1,n=44;do switch(Ln(n)){case 0:n===38&&ut()===12&&(t[r]=1),e[r]+=vL(qe-1,t,r);break;case 2:e[r]+=Hi(n);break;case 4:if(n===44){e[++r]=ut()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zi(n)}while(n=Be());return e},_L=function(e,t){return hw(gL(pw(e),t))},$0=new WeakMap,yL=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&&!$0.get(r))&&!n){$0.set(e,!0);for(var o=[],i=_L(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},bL=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};wL=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case su:e.return=mw(e.value,e.length);break;case uw:return Rr([On(e,{value:j(e.value,"@","@"+F)})],n);case au:if(e.length)return nL(e.props,function(o){switch(rL(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rr([On(e,{props:[j(o,/:(read-\w+)/,":"+Ki+"$1")]})],n);case"::placeholder":return Rr([On(e,{props:[j(o,/:(plac\w+)/,":"+F+"input-$1")]}),On(e,{props:[j(o,/:(plac\w+)/,":"+Ki+"$1")]}),On(e,{props:[j(o,/:(plac\w+)/,Se+"input-$1")]})],n)}return""})}},EL=[wL],xL=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||EL,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)o[g[_]]=!0;a.push(m)});var s,l=[yL,bL];{var c,d=[fL,hL(function(m){c.insert(m)})],u=pL(l.concat(n,d)),h=function(m){return Rr(uL(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new Yq({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return p.sheet.hydrate(a),p};SL={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},IL=/[A-Z]|^ms/g,TL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vw=function(e){return e.charCodeAt(1)===45},H0=function(e){return e!=null&&typeof e!="boolean"},Fc=mL(function(e){return vw(e)?e:e.replace(IL,"-$&").toLowerCase()}),J0=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(TL,function(r,n,o){return jt={name:n,styles:o,next:jt},n})}return SL[e]!==1&&!vw(e)&&typeof t=="number"&&t!==0?t+"px":t};V0=/label:\s*([^\s;{]+)\s*(;|$)/g;kL=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},CL=function(e,t,r){kL(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};OL=function(e){var t=xL(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=jc(s,t.registered,void 0);return CL(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=jc(s,t.registered),d="animation-"+c.name;return G0(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=jc(s,t.registered);G0(t,c)},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return K0(t.registered,r,PL(s))};return{css:r,cx:i,injectGlobal:o,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:gw.bind(null,t.registered),merge:K0.bind(null,t.registered,r)}},PL=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},NL=OL({key:"css"}),Mn=NL.css,eu=0,_w=[],le=C,W0=le.__b,Y0=le.__r,Q0=le.diffed,X0=le.__c,Z0=le.unmount,ew=le.__;le.__b=function(e){De=null,W0&&W0(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ew&&ew(e,t)},le.__r=function(e){Y0&&Y0(e),Wi=0;var t=(De=e.__c).__H;t&&(Bc===De?(t.__h=[],De.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Vi),t.__h.forEach(tu),t.__h=[],Wi=0)),Bc=De},le.diffed=function(e){Q0&&Q0(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_w.push(t)!==1&&z0===le.requestAnimationFrame||((z0=le.requestAnimationFrame)||UL)(LL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Bc=De=null},le.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Vi),r.__h=r.__h.filter(function(n){return!n.__||tu(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(n,r.__v)}}),X0&&X0(e,t)},le.unmount=function(e){Z0&&Z0(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Vi(n)}catch(o){t=o}}),r.__H=void 0,t&&le.__e(t,r.__v))};tw=typeof requestAnimationFrame=="function";ML=Symbol.for("preact-signals");H=void 0,Pn=void 0,Bt=0,ru=0,Yi=0;we.prototype.brand=ML;we.prototype.h=function(){return!0};we.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)};we.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)}};we.prototype.subscribe=function(e){var t=this;return Pr(function(){var r=t.value,n=H;H=void 0;try{e(r)}finally{H=n}})};we.prototype.valueOf=function(){return this.value};we.prototype.toString=function(){return this.value+""};we.prototype.toJSON=function(){return this.value};we.prototype.peek=function(){var e=H;H=void 0;try{return this.value}finally{H=e}};Object.defineProperty(we.prototype,"value",{get:function(){var e=ww(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ru>100)throw new Error("Cycle detected");this.v=e,this.i++,Yi++,Bt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ra()}}}});(Or.prototype=new we).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Yi))return!0;if(this.g=Yi,this.f|=1,this.i>0&&!Ew(this))return this.f&=-2,!0;var e=H;try{xw(this),H=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 H=e,Aw(this),this.f&=-2,!0};Or.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)}we.prototype.S.call(this,e)};Or.prototype.U=function(e){if(this.t!==void 0&&(we.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)}};Or.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(Or.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ww(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Fn.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()}};Fn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Sw(this),xw(this),Bt++;var e=H;return H=this,FL.bind(this,e)};Fn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Pn,Pn=this)};Fn.prototype.d=function(){this.f|=8,1&this.f||uu(this)};Iw=[],Tw=[];Pr(function(){du=this.N})();Rw.displayName="_st";Object.defineProperties(we.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Rw},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Nr("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof we&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});Nr("__r",function(e,t){Qi();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Pr(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),Qi(r),e(t)});Nr("__e",function(e,t,r,n){Qi(),e(t,r,n)});Nr("diffed",function(e,t){Qi();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],d=n[l];c===void 0?(c=jL(r,l,d,o),i[l]=c):c.o(d,o)}}}e(t)});Nr("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 o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Nr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ue.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||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};BL=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(r),cancelAnimationFrame(n),e()},r=setTimeout(t,100),n=requestAnimationFrame(t)},$L=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ne=Mn`
441
+ `;return w("div",{className:`toast toast-${t} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},zx=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},i=NF(e,t),o=Rx(),a=Sx[o].translations;Dr(w(Tx,{definition:a,children:w(DF,{message:i,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n})}),r)}});function Kx(){return E(this,null,function*(){if(ld)return ld;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 ae(t);return ld=r,r})}function Wx(){return E(this,null,function*(){let e=new Yt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(cd)return e.resolve(!0),e.promise;let t=yield Kx();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;cd=!0;let o=Dx({games:r.games,title:n,buttons:i,onClose:a=>{var s;switch(cd=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;qF(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var ld,qF,cd,Yx=I(()=>{"use strict";oe();Me();N();Ii();Ot();ld=null;Kx();qF=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:o})},cd=!1});function UF(e){let t=k(k({},LF),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,h=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:x,iframeTransition:T}=h();Y=document.createElement("div"),Y.id="jolibox-modal-overlay",Y.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,H=document.createElement("div"),H.id="jolibox-modal-container",H.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${x};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let R=document.createElement("style");R.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(R);let y=document.createElement("div");if(y.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ot=document.createElement("iframe"),ot.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${T};`,ot.src=r,ot.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),ot.style.opacity="1",g(),l==null||l(),ge.emit("onModalIframeLoaded",{url:r})},y.appendChild(ot),y.appendChild(O),H.appendChild(y),i){let J=document.createElement("div");J.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",J.innerHTML="\u2715",J.onclick=v,H.appendChild(J)}Y.appendChild(H),document.body.appendChild(Y),Y.addEventListener("click",function(J){J.target===Y&&v()}),o&&_()}function g(){!Y||!H||u||(Y.style.visibility="visible",a?requestAnimationFrame(()=>{Y&&(Y.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0}):(Y&&(Y.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!H)return;let b=O=>{c=O.touches[0].clientY},x=O=>{if(!u)return;d=O.touches[0].clientY;let R=d-c;R>0&&(H&&(H.style.transition="none",H.style.transform=`translateY(${R}px)`),O.preventDefault())},T=()=>{!u||!H||(H.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():H.style.transform="translateY(0)")};H.addEventListener("touchstart",b),H.addEventListener("touchmove",x),H.addEventListener("touchend",T)}function v(){!Y||!H||!u||(a?(H.style.transform="translateY(100%)",Y.style.opacity="0"):Y.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{Y&&(Y.remove(),Y=null,H=null,ot=null,s==null||s(),ge.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function Qx(){return window.joliboxUI=q(k({},window.joliboxUI),{createIframeModal:UF}),()=>{window.joliboxUI=void 0,Y&&Y.parentNode&&Y.parentNode.removeChild(Y),H&&H.parentNode&&H.parentNode.removeChild(H),ot&&ot.parentNode&&ot.parentNode.removeChild(ot),Y=null,H=null,ot=null}}var LF,Y,H,ot,Xx=I(()=>{"use strict";Me();oe();N();LF={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},Y=null,H=null,ot=null});var eA={};uf(eA,{config:()=>KF});function jF(){io.on("isAdShowing",e=>{Ra=e,Tn(Ra)&&L("updateContainerConfigSync",{displayCapsuleButton:!Ra,webviewId:S.webviewId})})}function FF(){ge.on("onInterceptSystemExit",({intercept:e})=>{Zx=e})}function BF(){ge.on("onInterceptBackPress",({intercept:e})=>{MF=e}),rt("onBeforeBackPress",({uuid:e})=>{var t,r;ge.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function $F(){ge.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Ge("onDocumentReady",{start_timestamp:Oa,timestamp:Date.now()})})}function JF(){rt("onI18nChanged",({language:e})=>{ge.emit("onI18nChanged",{i18n:e})})}function HF(e){S.mpType==="game"&&Pt.start(e)}function VF(){rt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),ge.emit("LifecycleEvent.onReady",k({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Ge("joliboxServiceReady",{start_timestamp:Oa,timestamp:Date.now()}),HF(t),kx(()=>S.language)}),rt("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function GF(){let e=()=>{Ge("onBeforeExit",{timestamp:Date.now()}),Ta==null||Ta(),ka==null||ka(),Pt.close(Date.now()-Oa)},t=()=>Ra||Zx;tt.onDoExit(()=>E(this,null,function*(){return t()?!0:Tn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Ca!=null&&Ca.canShowRecommended&&(yield Wx())?!0:(e(),!1)})),tt.onDoBackPress(()=>E(this,null,function*(){return!!t()}))}function zF(){return E(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ae(e);t&&(Ca=t)})}function KF(){Oa=Date.now(),VF(),jF(),FF(),BF(),GF(),$F(),JF(),zF(),ka=Qx(),Ta=Sp()}var Ta,ka,Oa,Ra,Ca,Zx,MF,tA=I(()=>{"use strict";Me();oe();N();Xt();Ip();ml();Yx();Ot();Ii();Xx();Ra=!1,Ca=null,Zx=!1,MF=!1;tt.onReady(()=>{})});function rA(e){let t=rl.config[e];return t||(t={},rl.config[e]=t),(r,n)=>{if(t[r]){ht.warn(`[can i use] ${r} already registered`);return}t[r]=k({},n)}}var nA=I(()=>{"use strict";N()});function ud(e){iA=e}function Pa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Pa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Pa(e[r]),t),{})}function $t(e){return typeof e=="number"}function dd(e){let t=fd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function fd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var iA,he,Na,Da,qa,La,ln,Ua,Ma,ja,Fa,Ba,$a,Ja,Ha,Va,Ga,za,Ka,pd=I(()=>{"use strict";iA=!1;he=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(iA)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 ${dd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Pa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Pa(this._default)}optional(){return this._optional=!0,this}};Na=class extends he{validate(t){return this._optional&&t===void 0?!0:$t(t)?$t(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):$t(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):$t(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Da=class extends he{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},qa=class extends he{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if($t(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if($t(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},La=class extends he{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},ln=class extends he{validate(t){return!0}},Ua=class extends he{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ma=class extends he{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ja=class extends he{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Fa=class extends he{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 ${dd(t)}`)}return!0}},Ba=class extends he{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if($t(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if($t(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if($t(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},$a=class extends he{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(fd(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}},Ja=class extends he{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(fd(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}},Ha=class extends he{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:dd(this.value),actual:r}):!0}},Va=class extends he{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
442
+ or `);this.errors.push(o)}return n}},Ga=class extends he{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}},za=class extends he{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ka=class extends he{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 hd(e,t,r="param"){if(e.errors=[],e.path=r,ud(!0),!e.validate(t)){let n=e.errors.join(`
443
+ `);throw e.errors.length=0,ud(!1),new TypeError(n)}}var A,md=I(()=>{"use strict";pd();pd();A={object(e){return new Ja(e)},array(e){return new Ba(e)},tuple(...e){return new Ga(...e)},literal(e){return new Ha(e)},or(...e){return new Va(...e)},symbol(){return new La},record(e){return new $a(e)},function(){return new ja},boolean(){return new Da},string(){return new qa},number(){return new Na},undefined(){return new Ua},null(){return new Ma},unknown(){return new ln},any(){return new ln},as(){return new ln},arraybuffer(){return new za},enum(...e){return new Fa(...e)},typedarray(e){return new Ka(e)}}});var Wa,oA,aA=I(()=>{"use strict";N();lt();md();Pr();Wa=1,oA=e=>{function t(n,i){return(...o)=>{var u,h,f,m;let a=Date.now(),s={method:n,trace_id:Wa};Wa+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{hd(i.paramsSchema,o,"params")}catch(b){throw ul(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:x,message:T}=g;l=b,_=x,v=T}return{code:l,message:v,data:_}}catch(g){let _=g;d=(h=(u=_.code)!=null?u:_.errNo)!=null?h:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ee(new Rn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(k({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>E(this,null,function*(){var h,f,m,g;let a=Lf(o)?o:[o],s=Date.now(),l={method:n,trace_id:Wa};Wa+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{hd(i.paramsSchema,a,"params")}catch(b){throw ul(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:x,message:T}=v;d=b,c=T,v=x}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(h=v.code)!=null?h:v.errNo)!=null?f:2e3;d="FAILURE";let x=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,T=`${n}:${d} ${x.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:T}),Ee(new Rn(T,b)),u}finally{let _=Date.now()-s;e("apiInvoked",q(k({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var ke,z,P,It=I(()=>{"use strict";nA();Xt();aA();md();({createAPI:ke,createSyncAPI:z}=oA(Ge)),P=rA("native")});var sA,YF,QF,XF,ZF,lA=I(()=>{"use strict";N();It();Me();sA=ue(),YF="env",QF="getSystemInfoSync",XF=z(QF,{implement:()=>{var r;let e=L("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion}}}),ZF=z(YF,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});sA.registerCommand("API.getSystemInfoSync",XF);sA.registerCommand("API.env",ZF);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var cA=p(vd=>{"use strict";N();It();lt();Me();Xt();oe();var e5="exitGame",t5="onReady",r5="onJoliboxShow",n5="onJoliboxHide",Ya=ue(),Qa=Zi(Ee),i5=ke(e5,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>E(vd,null,function*(){Qa(e).call(vd),Tn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Of("onRetentionResult",{shouldStay:t},S.from,!0),yield Pe("exitAppAsync")})}),o5=z(r5,{paramsSchema:A.tuple(A.function()),implement(e){let t=Qa(e);rt("onJoliboxEnterForeground",()=>{t.call(this),On.emit("visible",!0)})}}),a5=z(n5,{paramsSchema:A.tuple(A.function()),implement(e){let t=Qa(e);rt("onJoliboxEnterBackground",()=>{t.call(this),On.emit("visible",!1)})}}),s5=z(t5,{paramsSchema:A.tuple(A.function()),implement(e){let t=Qa(e);ge.on("LifecycleEvent.onReady",r=>{t(r)})}});Ya.registerCommand("LifecycleSDK.exit",i5);Ya.registerCommand("LifecycleSDK.onReady",s5);Ya.registerCommand("LifecycleSDK.onJoliboxShow",o5);Ya.registerCommand("LifecycleSDK.onJoliboxHide",a5);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function uA(e){let t={};if(!hr(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 dA(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 fA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function pA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!hr(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 hA=I(()=>{"use strict";N()});var l5,c5,gd,yd,mA,u5,d5,f5,vA=I(()=>{"use strict";Pr();pl();It();hA();N();lt();oe();l5=15,c5=ro("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),gd=0,yd=[],mA=Zi(Ee),u5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},d5=e=>{let t=new Yt,r=()=>{};return z("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object(),data:A.object().optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>E(this,null,function*(){var s,l;let a=mA(i.fail);try{if(gd+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:h,appendHostCookie:f}=i,m=uA(i.headers),g=dA(i.method),_=fA(i.timeout),v=pA(i.url,g,c),b=mA(i.success),x=Object.assign({},i,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:h,query:(s=i.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:f});_&&(x.timeout=_);let T=c5(v,x);{let{response:O}=yield T,{code:R,data:y,message:J}=O;if(y&&typeof y=="object"&&"status"in y&&y.status!==200)throw Qt({code:y.status||-1,msg:`request:fail status ${y.status}`});t.resolve({code:R!=null?R:"SUCCESS",data:y,message:J!=null?J:"request:ok"}),b({code:"SUCCESS",message:"request:ok",data:y})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{gd-=1,(l=yd.shift())==null||l()}});return gd>=l5?(r=()=>{u5(yd,a=>a===o)},yd.push(o)):o(),t.promise}})(e),{abort(){t.reject(Qt({code:-1,msg:"request:fail abort"})),r()}}},f5=ue();f5.registerCommand("HttpSDK.request",d5);P("request",{version:"1.0.0"})});function gA(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),g5.includes(t)?t:""}function yA(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 _A(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 Xa,p5,h5,m5,v5,Lz,Uz,g5,Ti,_d,bd=I(()=>{"use strict";It();Me();N();Ot();oe();Xa=ue(),p5=ke("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return E(this,null,function*(){let{response:t}=yield ae(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield Pe("getLocalStorageAsync",{key:e}),s=yA(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}}})}});Xa.registerCommand("StorageSDK.getItem",p5);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});h5=ke("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return E(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ae(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=gA(t),l=_A(t,s);return yield Pe("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Xa.registerCommand("StorageSDK.setItem",h5);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});m5=ke("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return E(this,null,function*(){let t=S.mpId,{response:r}=yield ae(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield Pe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Xa.registerCommand("StorageSDK.removeItem",m5);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});v5=ke("clearStorage",{implement(){return E(this,null,function*(){let e=S.mpId,{response:t}=yield ae(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Pe("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Xa.registerCommand("StorageSDK.clear",v5);P("storage.clear",{version:"1.0.0"});Lz=ke("getStorageInfo",{implement(){return E(this,null,function*(){let{data:e}=yield Pe("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});Uz=z("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),g5=["string","number","boolean","object",""];Ti=ke("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return E(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield Pe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:yA(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),_d=ke("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return E(this,null,function*(){try{let r=gA(t),n=_A(t,r);return yield Pe("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var y5,_5,b5,wd,bA=I(()=>{"use strict";N();Me();It();y5=z("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",q(k({},e),{defaultValue:r,maxLength:t}))}});P("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});_5=z("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});b5=z("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});wd=ue();wd.registerCommand("KeyboardSDK.showKeyboard",y5);wd.registerCommand("KeyboardSDK.updateKeyboard",_5);wd.registerCommand("KeyboardSDK.hideKeyboard",b5)});var wA=p(Za=>{"use strict";N();It();Xt();var Ed=ue(),w5=ke("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional()})),implement:e=>E(Za,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Pt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Pt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),E5=ke("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number()})),implement:e=>E(Za,null,function*(){let{duration:t,rating:r,score:n}=e;return Pt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),x5=ke("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>E(Za,[r],function*({levelId:e,name:t}){let n=[];n.push(Pt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Ed.registerCommand("TaskTrackerSDK.levelFinished",w5);Ed.registerCommand("TaskTrackerSDK.gamePlayEnded",E5);Ed.registerCommand("TaskTrackerSDK.levelUpgrade",x5);P("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var xd,A5,EA,Ad=I(()=>{"use strict";oe();Me();It();N();Pr();P("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});xd=ke("login",{implement(){return E(this,null,function*(){var a;let{data:{isLogin:e}}=yield Pe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};rt("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&i({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw Qt({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new Yt,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),ge.emit("onLoginComplete",o),o})}}),A5=ke("checkSession",{implement(){return E(this,null,function*(){let{data:{isLogin:e}}=yield Pe("checkLoginAsync");return{isLogin:e}})}}),EA=ue();EA.registerCommand("API.login",xd);EA.registerCommand("API.checkSession",A5)});var un,es,Tt,ts,dn,rs,cn,S5,K,kr,Rr=I(()=>{"use strict";N();un="UNLOCK_OPTIONS_CHANGED",es="INVOKE_PAYMENT",Tt="ON_PAYMENT_RESULT",ts="ON_USE_MODAL_EVENT",dn="ON_USE_MODAL_RESULT",rs="ON_USE_MODAL_FREQUENCY",cn=new mt,S5=()=>({on:cn.on.bind(cn),off:cn.off.bind(cn),emit:cn.emit.bind(cn)}),K=S5(),kr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Jt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r)}}var ki=I(()=>{"use strict"});var Sd,xA=I(()=>{"use strict";Sd=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 ns,AA,SA,IA,TA,kA=I(()=>{"use strict";bd();xA();ns=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},AA=e=>E(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ti("joli_coin_use_modal_frequency");if(!n.data)return!0;let i=ns(n.data),o=Sd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),SA=()=>E(void 0,null,function*(){var n;let e=Date.now(),t=yield Ti("joli_coin_use_modal_frequency"),r=ns((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield _d("joli_coin_use_modal_frequency",JSON.stringify(r))}),IA=e=>E(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ti("joli_coin_payment_frequency");if(!n.data)return!0;let i=ns(n.data),o=Sd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),TA=()=>E(void 0,null,function*(){var n;let e=Date.now(),t=yield Ti("joli_coin_payment_frequency"),r=ns((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield _d("joli_coin_payment_frequency",JSON.stringify(r))})});function RA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return E(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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var CA=I(()=>{"use strict";lt()});var Id=I(()=>{"use strict"});var T5,is,Td,k5,os,OA=I(()=>{"use strict";Id();N();oe();Ot();T5=()=>{let[e,t]=[$f,Hf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:is,createPaymentInternalError:Td}=T5(),k5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",os=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>E(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{data:r,code:n,message:i}=yield this.placeOrder(t);if(n!=="SUCCESS"||!r||!r.orderId)throw is(i,1001);if((r==null?void 0:r.status)!=="PENDING")throw Td(`Place order failed, status: ${r==null?void 0:r.status}`,1001);let{orderId:o}=r;this._orderId=o;let a=this.generateCallbackUrl()});this.cancelOrder=t=>E(this,null,function*(){var n,i;let{response:r}=yield ae(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw is((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(k({},this.generatePaymentContext()))),`${k5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var kd,PA,NA=I(()=>{"use strict";Ot();OA();Id();kd=class extends os{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId})}placeOrder(r){return E(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ae("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw is((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),Td((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},PA=()=>{let e=new Map;return t=>E(void 0,null,function*(){let r=e.get(t);return r||(r=new kd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Rd,DA=I(()=>{"use strict";CA();NA();Rd=RA();Rd.registerPaymentHandler("JOLI_COIN",PA())});var UA=p(Ht=>{"use strict";Rr();Ii();Ot();oe();Ad();ki();kA();DA();var Od=Jt(K,rs);Od.getData();var Cd=Promise.resolve(),LA=e=>E(Ht,null,function*(){Cd=Cd.then(()=>E(Ht,null,function*(){yield ae("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Cd});K.on(ts,(e,t)=>E(Ht,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield Od.getData();if(!(yield AA(n.joliCoinUseAndCharge.useJolicoin))){K.emit(dn,{useModalResult:"CONFIRM"});return}}let r=Lx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K.emit(dn,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{K.emit(dn,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>E(Ht,null,function*(){yield LA(n)})}});yield SA()}));K.on(es,(e,t)=>E(Ht,null,function*(){try{if(e==="ADS-JOLI_COIN"){let i=yield Od.getData();if(!(yield IA(i.joliCoinUseAndCharge.charge))){K.emit(Tt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield qA();if(!r){K.emit(Tt,{paymentResult:"FAILED"});return}let n=Ux({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:i=>E(Ht,null,function*(){var a,s;if(!((a=S.hostUserInfo)!=null&&a.isLogin)){let{data:l}=yield xd();if(!(l!=null&&l.isLogin)){console.log("login failed");return}let c=yield qA();if(((s=c==null?void 0:c.balance)!=null?s:0)>=t.joliCoinQuantity){K.emit(Tt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",i);let{code:o}=yield Rd.invokePayment("JOLI_COIN",i);if(o!=="SUCCESS"){K.emit(Tt,{paymentResult:"FAILED"}),n.destroy();return}K.emit(Tt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:i})=>{K.emit(Tt,{paymentResult:(i!=null?i:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:i=>E(Ht,null,function*(){yield LA(i)})}});yield TA()}catch(r){console.info("payment failed",r),K.emit(Tt,{paymentResult:"FAILED"})}}));var qA=()=>E(Ht,null,function*(){var t;let{response:e}=yield ae("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function at(e,t,r){return(t=P5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P5(e){var t=N5(e,"string");return typeof t=="symbol"?t:t+""}function N5(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 as(e,t,r){return(t=D5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D5(e){var t=q5(e,"string");return typeof t=="symbol"?t:t+""}function q5(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 H5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function V5(e){return typeof e=="string"}function G5(e){return typeof e=="undefined"}function z5(e){return G5(e)||e===null}function K5(e){return typeof e=="function"}function lS(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 Ri(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function cs(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 eB(e){let t=e.location?cs(e.location,$A):null,r=e.target?cs(e.target,$A):null;return cs(B5(F5({},e),{location:t,target:r}),X5)}function tB(e){let t=e.events.map(n=>eB(n)),r=cs(e.device,Z5);return[e.protocolVersion,t,r,e.project]}function rB(){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 sB(e){return new Promise(t=>fS(e)(t))}function fS(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 lB(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Di(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 uB(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)dB(e[n],t[n])}function dB(e,t){if(V5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(K5(t)){try{if(e instanceof t)return}catch(r){}if(!z5(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 Nd(e,t,r){return(t=fB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fB(e){var t=pB(e,"string");return typeof t=="symbol"?t:t+""}function pB(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 ss(e,t,r){return(t=hB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hB(e){var t=mB(e,"string");return typeof t=="symbol"?t:t+""}function mB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vt(e,t,r){return(t=vB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=gB(e,"string");return typeof t=="symbol"?t:t+""}function gB(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 yB(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 _B(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 SB(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function mS(e){return e.trim()}function IB(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,r){return e.replace(t,r)}function zd(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function qi(e,t,r){return e.slice(t,r)}function kt(e){return e.length}function nf(e){return e.length}function ls(e,t){return t.push(e),e}function TB(e,t){return e.map(t).join("")}function xs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Es,column:pn,length:a,return:""}}function Oi(e,t){return AB(xs("",null,null,"",null,null,0),e,{length:-e.length},t)}function kB(){return ve}function RB(){return ve=Ve>0?Ce(hn,--Ve):0,pn--,ve===10&&(pn=1,Es--),ve}function Xe(){return ve=Ve<vS?Ce(hn,Ve++):0,pn++,ve===10&&(pn=1,Es++),ve}function Rt(){return Ce(hn,Ve)}function us(){return Ve}function Ui(e,t){return qi(hn,e,t)}function Li(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 gS(e){return Es=pn=1,vS=kt(hn=e),Ve=0,[]}function yS(e){return hn="",e}function ds(e){return mS(Ui(Ve-1,Kd(e===91?e+2:e===40?e+1:e)))}function CB(e){for(;(ve=Rt())&&ve<33;)Xe();return Li(e)>2||Li(ve)>3?"":" "}function OB(e,t){for(;--t&&Xe()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Ui(e,us()+(t<6&&Rt()==32&&Xe()==32))}function Kd(e){for(;Xe();)switch(ve){case e:return Ve;case 34:case 39:e!==34&&e!==39&&Kd(ve);break;case 40:e===41&&Kd(e);break;case 92:Xe();break}return Ve}function PB(e,t){for(;Xe()&&e+ve!==57&&!(e+ve===84&&Rt()===47););return"/*"+Ui(t,Ve-1)+"*"+ws(e===47?e:Xe())}function NB(e){for(;!Li(Rt());)Xe();return Ui(e,Ve)}function DB(e){return yS(fs("",null,null,null,[""],e=gS(e),0,[0],e))}function fs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,h=0,f=0,m=0,g=1,_=1,v=1,b=0,x="",T=i,O=o,R=n,y=x;_;)switch(m=b,b=Xe()){case 40:if(m!=108&&Ce(y,u-1)==58){zd(y+=B(ds(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=ds(b);break;case 9:case 10:case 13:case 32:y+=CB(m);break;case 92:y+=OB(us()-1,7);continue;case 47:switch(Rt()){case 42:case 47:ls(qB(PB(Xe(),us()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=kt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=B(y,/\f/g,"")),f>0&&kt(y)-u&&ls(f>32?VA(y+";",n,r,u-1):VA(B(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(ls(R=HA(y,t,r,c,d,i,s,x,T=[],O=[],u),o),b===123)if(d===0)fs(y,t,R,R,T,o,u,s,O);else switch(h===99&&Ce(y,3)===110?100:h){case 100:case 108:case 109:case 115:fs(e,R,R,n&&ls(HA(e,R,R,0,0,i,s,x,i,T=[],u),O),i,O,u,s,n?T:O);break;default:fs(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,x=y="",u=a;break;case 58:u=1+kt(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&RB()==125)continue}switch(y+=ws(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(kt(y)-1)*v,v=1;break;case 64:Rt()===45&&(y+=ds(Xe())),h=Rt(),d=u=kt(x=y+=NB(us())),b++;break;case 45:m===45&&kt(y)==2&&(g=0)}}return o}function HA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,h=i===0?o:[""],f=nf(h),m=0,g=0,_=0;m<n;++m)for(var v=0,b=qi(e,u+1,u=xB(g=a[m])),x=e;v<f;++v)(x=mS(g>0?h[v]+" "+b:B(b,/&\f/g,h[v])))&&(l[_++]=x);return xs(e,t,r,i===0?tf:s,l,c,d)}function qB(e,t,r){return xs(e,t,r,pS,ws(kB()),qi(e,2,-2),0)}function VA(e,t,r,n){return xs(e,t,r,rf,qi(e,0,n),qi(e,n+1,-1),n)}function fn(e,t){for(var r="",n=nf(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 EB:if(e.children.length)break;case wB:case rf:return e.return=e.return||e.value;case pS:return"";case hS:return e.return=e.value+"{"+fn(e.children,n)+"}";case tf:e.value=e.props.join(",")}return kt(r=fn(e.children,n))?e.return=e.value+"{"+r+"}":""}function UB(e){var t=nf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function MB(e){return function(t){t.root||(t=t.return)&&e(t)}}function jB(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function _S(e,t){switch(SB(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+ms+e+Ue+e+e;case 6828:case 4268:return F+e+Ue+e+e;case 6165:return F+e+Ue+"flex-"+e+e;case 5187:return F+e+B(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return F+e+Ue+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return F+e+Ue+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Ue+B(e,"shrink","negative")+e;case 5292:return F+e+Ue+B(e,"basis","preferred-size")+e;case 6060:return F+"box-"+B(e,"-grow","")+F+e+Ue+B(e,"grow","positive")+e;case 4554:return F+B(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+ms+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zd(e,"stretch")?_S(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,kt(e)-3-(~zd(e,"!important")&&10))){case 107:return B(e,":",":"+F)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Ce(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Ue+e+e}return e}function KB(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 vs(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 dr={name:i.name,styles:i.styles,next:dr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)dr={name:a.name,styles:a.styles,next:dr},a=a.next;var s=o.styles+";";return s}return XB(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function XB(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=vs(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]+"}":zA(s)&&(n+=Dd(o)+":"+KA(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++)zA(a[l])&&(n+=Dd(o)+":"+KA(o,a[l])+";");else{var c=vs(e,t,a);switch(o){case"animation":case"animationName":{n+=Dd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function qd(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="";dr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=vs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=vs(r,t,e[s]),n){var l=o;i+=l[s]}WA.lastIndex=0;for(var c="",d;(d=WA.exec(i))!==null;)c+="-"+d[1];var u=KB(i)+c;return{name:u,styles:i,next:dr}}function wS(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function YA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function QA(e,t,r){var n=[],i=wS(e,n,r);return n.length<2?r:i+t(n)}function xS(e,t){me.__h&&me.__h(He,e,Wd||t),Wd=0;var r=He.__H||(He.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function i3(e,t){var r=xS(gs++,3);!me.__s&&AS(r.__H,t)&&(r.__=e,r.u=t,He.__H.__h.push(r))}function o3(e){return Wd=5,of(function(){return{current:e}},[])}function of(e,t){var r=xS(gs++,7);return AS(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function a3(){for(var e;e=ES.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ps),e.__H.__h.forEach(Yd),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function s3(e){var t,r=function(){clearTimeout(n),oS&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);oS&&(t=requestAnimationFrame(r))}function ps(e){var t=He,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),He=t}function Yd(e){var t=He;e.__c=e.__(),He=t}function AS(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function As(){if(fr>1)fr--;else{for(var e,t=!1;Pi!==void 0;){var r=Pi;for(Pi=void 0,Qd++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&IS(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Qd=0,fr--,t)throw e}}function st(e){if(fr>0)return e();fr++;try{return e()}finally{As()}}function SS(e){if(G!==void 0){var t=e.n;if(t===void 0||t.t!==G)return t={i:0,S:e,p:G.s,n:void 0,t:G,e:void 0,x:void 0,r:t},G.s!==void 0&&(G.s.n=t),G.s=t,e.n=t,32&G.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=G.s,t.n=void 0,G.s.n=t,G.s=t),t}}function Oe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Re(e){return new Oe(e)}function IS(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 TS(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 kS(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 mn(e){Oe.call(this,void 0),this.x=e,this.s=void 0,this.g=ys-1,this.f=4}function Ni(e){return new mn(e)}function RS(e){var t=e.u;if(e.u=void 0,typeof t=="function"){fr++;var r=G;G=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,af(e),n}finally{G=r,As()}}}function af(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,RS(e)}function c3(e){if(G!==this)throw new Error("Out-of-order effect");kS(this),G=e,this.f&=-2,8&this.f&&af(this),As()}function ji(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function vn(e){var t=new ji(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function gn(e,t){C[e]=t.bind(null,C[e]||function(){})}function _s(e){Ud&&Ud(),Ud=e&&e.S()}function PS(e){var t=this,r=e.data,n=NS(r);n.value=r;var i=of(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Ni(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Ni(function(){return!Array.isArray(c.value)&&!_l(c.value)}),u=vn(function(){if(this.N=DS,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function u3(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=Re(r);return{o:function(a,s){o.value=a,n=s},d:vn(function(){this.N=DS;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function NS(e){return of(function(){return Re(e)},[])}function p3(){st(function(){for(var e;e=CS.shift();)sf.call(e)})}function h3(){CS.push(this)===1&&(C.requestAnimationFrame||d3)(p3)}function m3(){st(function(){for(var e;e=OS.shift();)sf.call(e)})}function DS(){OS.push(this)===1&&(C.requestAnimationFrame||f3)(m3)}function v3(e){var t=o3(e);t.current=e,i3(function(){return vn(function(){return this.N=h3,t.current()})},[])}function g3(e,t){let r=Yn(e);Gr(()=>{r.current=e},[e]),dc(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function we(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:--y3,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function Gt(e,t,r){return(t=C3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=O3(e,"string");return typeof t=="symbol"?t:t+""}function O3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ur(e,t,r){return(t=P3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P3(e){var t=N3(e,"string");return typeof t=="symbol"?t:t+""}function N3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MA,R5,C5,O5,Md,jd,aS,L5,U5,jA,M5,j5,FA,F5,B5,$5,sS,J5,W5,Y5,BA,Q5,cS,uS,dS,$A,X5,Z5,Fd,te,nB,iB,Ci,Di,oB,$d,aB,Pd,cB,Jd,JA,Hd,Vd,Gd,bB,Ue,ms,F,pS,tf,rf,wB,hS,EB,xB,ws,AB,Es,pn,vS,Ve,ve,hn,FB,BB,$B,GA,JB,HB,VB,GB,zB,WB,YB,QB,bS,zA,Dd,KA,WA,dr,ZB,e3,t3,r3,n3,Mi,gs,He,Ld,XA,Wd,ES,me,ZA,eS,tS,rS,nS,iS,oS,l3,G,Pi,fr,Qd,ys,sf,Ud,CS,OS,d3,f3,Je,y3,_3,zt,Xd,Zd,hs,b3,w3,E3,x3,A3,S3,I3,T3,k3,R3,ef,bs,zK,qS=I(()=>{"use strict";qr();Io();MA=Object.getOwnPropertySymbols,R5=Object.prototype.hasOwnProperty,C5=Object.prototype.propertyIsEnumerable,O5=(e,t)=>{var r={};for(var n in e)R5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&MA)for(var n of MA(e))t.indexOf(n)<0&&C5.call(e,n)&&(r[n]=e[n]);return r};Md=class{constructor(t){at(this,"context",void 0),at(this,"continueCallback",void 0),at(this,"isBeforeAdCalled",!1),at(this,"isBeforeRewardCalled",!1),at(this,"isAdDismissedCalled",!1),at(this,"isAdViewedCalled",!1),at(this,"isAfterAdCalled",!1),at(this,"currentProvider",void 0),at(this,"currentClientParams",void 0),at(this,"adsHasResponse",!1),at(this,"videoChecker",window.document.createElement("video")),at(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),r()}),this.context=t}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{t==null||t(r),(a=this.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return E(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(i=>{this.continueCallback=i;let o;switch(r.type){case"preroll":{o={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{o={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{o={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var a,s,l,c;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(c=this.continueCallback)==null||c.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(o,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};jd=class{constructor(t){as(this,"context",void 0),as(this,"adBreakIsShowing",!1),as(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),as(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()})}},aS=Object.defineProperty,L5=Object.defineProperties,U5=Object.getOwnPropertyDescriptors,jA=Object.getOwnPropertySymbols,M5=Object.prototype.hasOwnProperty,j5=Object.prototype.propertyIsEnumerable,FA=(e,t,r)=>t in e?aS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F5=(e,t)=>{for(var r in t||(t={}))M5.call(t,r)&&FA(e,r,t[r]);if(jA)for(var r of jA(t))j5.call(t,r)&&FA(e,r,t[r]);return e},B5=(e,t)=>L5(e,U5(t)),$5=(e,t)=>{for(var r in t)aS(e,r,{get:t[r],enumerable:!0})},sS=(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},J5=(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}W5=(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))(W5||{});Y5={log:Ri("log"),warn:Ri("warn"),info:Ri("info"),error:Ri("error"),debug:Ri("debug")};Object.assign(globalThis,{logger:Y5});BA=Symbol.for("Jolibox.canIUseMap"),Q5={};globalThis[BA]||(globalThis[BA]=Q5);cS=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(cS||{}),uS=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(uS||{}),dS=(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))(dS||{}),$A=["name","params"],X5=["name","type","location","target","extra","timestamp","userId"],Z5=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];rB();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");Fd=class Bd{constructor(t){this.element=t,this.next=Bd.Undefined,this.prev=Bd.Undefined}};Fd.Undefined=new Fd(void 0);te=Fd,nB=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}},iB=0,Ci=class{constructor(e){this.value=e,this.id=iB++}},Di=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 Ci&&(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 Ci(e);return this._listeners?this._listeners instanceof Ci?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,h;if(!this._disposed){if(this._listeners instanceof Ci)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&&((h=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||h.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 Ci?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},oB=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 Di,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 nB,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)}},$d={};$5($d,{None:()=>aB,filter:()=>lB,once:()=>fS,toPromise:()=>sB});aB=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Pd=Symbol.for("Jolibox.hostEmitter"),cB=()=>{let e=new oB;return globalThis[Pd]||(globalThis[Pd]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Pd]};cB();Jd=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Di,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 uB(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}};Jd=sS([lS],Jd);JA=class{constructor(){this._onWillExecuteCommand=new Di,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Di,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jd,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=H5(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 J5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),$d.toPromise($d.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{}}};JA=sS([lS],JA);Hd=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Nd(this,"context",void 0),Nd(this,"placement","GAME"),Nd(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:dS.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:cS.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:uS.WebSDK};return tB(i)}};Vd=class{constructor(t){ss(this,"configs",null),ss(this,"firstRun",!0),ss(this,"context",void 0),ss(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return E(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}};Gd=class{constructor(t,r){Vt(this,"name","ADSENSE"),Vt(this,"context",void 0),Vt(this,"contextInfo",void 0),Vt(this,"configured",!1),Vt(this,"initParams",void 0),Vt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Vt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=O5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Vt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Vt(this,"adUnit",n=>E(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:h}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),h&&_.setAttribute("style",h),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let x=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:x!=null?x:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return E(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};bB=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(_B(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=yB(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-",ms="-moz-",F="-webkit-",pS="comm",tf="rule",rf="decl",wB="@import",hS="@keyframes",EB="@layer",xB=Math.abs,ws=String.fromCharCode,AB=Object.assign;Es=1,pn=1,vS=0,Ve=0,ve=0,hn="";FB=function(e,t,r){for(var n=0,i=0;n=i,i=Rt(),n===38&&i===12&&(t[r]=1),!Li(i);)Xe();return Ui(e,Ve)},BB=function(e,t){var r=-1,n=44;do switch(Li(n)){case 0:n===38&&Rt()===12&&(t[r]=1),e[r]+=FB(Ve-1,t,r);break;case 2:e[r]+=ds(n);break;case 4:if(n===44){e[++r]=Rt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ws(n)}while(n=Xe());return e},$B=function(e,t){return yS(BB(gS(e),t))},GA=new WeakMap,JB=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&&!GA.get(r))&&!n){GA.set(e,!0);for(var i=[],o=$B(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]}}},HB=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 rf:e.return=_S(e.value,e.length);break;case hS:return fn([Oi(e,{value:B(e.value,"@","@"+F)})],n);case tf:if(e.length)return TB(e.props,function(i){switch(IB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fn([Oi(e,{props:[B(i,/:(read-\w+)/,":"+ms+"$1")]})],n);case"::placeholder":return fn([Oi(e,{props:[B(i,/:(plac\w+)/,":"+F+"input-$1")]}),Oi(e,{props:[B(i,/:(plac\w+)/,":"+ms+"$1")]}),Oi(e,{props:[B(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},GB=[VB],zB=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||GB,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[JB,HB];{var c,d=[LB,MB(function(m){c.insert(m)})],u=UB(l.concat(n,d)),h=function(m){return fn(DB(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new bB({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};WB={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},YB=/[A-Z]|^ms/g,QB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bS=function(e){return e.charCodeAt(1)===45},zA=function(e){return e!=null&&typeof e!="boolean"},Dd=jB(function(e){return bS(e)?e:e.replace(YB,"-$&").toLowerCase()}),KA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(QB,function(r,n,i){return dr={name:n,styles:i,next:dr},n})}return WB[e]!==1&&!bS(e)&&typeof t=="number"&&t!==0?t+"px":t};WA=/label:\s*([^\s;{]+)\s*(;|$)/g;ZB=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},e3=function(e,t,r){ZB(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)}};t3=function(e){var t=zB(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=qd(s,t.registered,void 0);return e3(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=qd(s,t.registered),d="animation-"+c.name;return YA(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=qd(s,t.registered);YA(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return QA(t.registered,r,r3(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:wS.bind(null,t.registered),merge:QA.bind(null,t.registered,r)}},r3=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},n3=t3({key:"css"}),Mi=n3.css,Wd=0,ES=[],me=C,ZA=me.__b,eS=me.__r,tS=me.diffed,rS=me.__c,nS=me.unmount,iS=me.__;me.__b=function(e){He=null,ZA&&ZA(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),iS&&iS(e,t)},me.__r=function(e){eS&&eS(e),gs=0;var t=(He=e.__c).__H;t&&(Ld===He?(t.__h=[],He.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ps),t.__h.forEach(Yd),t.__h=[],gs=0)),Ld=He},me.diffed=function(e){tS&&tS(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ES.push(t)!==1&&XA===me.requestAnimationFrame||((XA=me.requestAnimationFrame)||s3)(a3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ld=He=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ps),r.__h=r.__h.filter(function(n){return!n.__||Yd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),rS&&rS(e,t)},me.unmount=function(e){nS&&nS(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ps(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};oS=typeof requestAnimationFrame=="function";l3=Symbol.for("preact-signals");G=void 0,Pi=void 0,fr=0,Qd=0,ys=0;Oe.prototype.brand=l3;Oe.prototype.h=function(){return!0};Oe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Oe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Oe.prototype.subscribe=function(e){var t=this;return vn(function(){var r=t.value,n=G;G=void 0;try{e(r)}finally{G=n}})};Oe.prototype.valueOf=function(){return this.value};Oe.prototype.toString=function(){return this.value+""};Oe.prototype.toJSON=function(){return this.value};Oe.prototype.peek=function(){var e=G;G=void 0;try{return this.value}finally{G=e}};Object.defineProperty(Oe.prototype,"value",{get:function(){var e=SS(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Qd>100)throw new Error("Cycle detected");this.v=e,this.i++,ys++,fr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{As()}}}});(mn.prototype=new Oe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ys))return!0;if(this.g=ys,this.f|=1,this.i>0&&!IS(this))return this.f&=-2,!0;var e=G;try{TS(this),G=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 G=e,kS(this),this.f&=-2,!0};mn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Oe.prototype.S.call(this,e)};mn.prototype.U=function(e){if(this.t!==void 0&&(Oe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};mn.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(mn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=SS(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ji.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()}};ji.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,RS(this),TS(this),fr++;var e=G;return G=this,c3.bind(this,e)};ji.prototype.N=function(){2&this.f||(this.f|=2,this.o=Pi,Pi=this)};ji.prototype.d=function(){this.f|=8,1&this.f||af(this)};CS=[],OS=[];vn(function(){sf=this.N})();PS.displayName="_st";Object.defineProperties(Oe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:PS},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});gn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Oe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});gn("__r",function(e,t){_s();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return vn(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),_s(r),e(t)});gn("__e",function(e,t,r,n){_s(),e(t,r,n)});gn("diffed",function(e,t){_s();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=u3(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});gn("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)});gn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ze.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};d3=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(r),cancelAnimationFrame(n),e()},r=setTimeout(t,100),n=requestAnimationFrame(t)},f3=function(e){queueMicrotask(function(){queueMicrotask(e)})};Je=Mi`
428
444
  inset: 0;
429
445
  clear: none;
430
446
  float: none;
@@ -442,8 +458,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
442
458
  text-decoration: none;
443
459
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
444
460
  'Helvetica Neue', sans-serif;
445
- `;zL=0;WL=Mn`
446
- ${Ne}
461
+ `;y3=0;_3=Mi`
462
+ ${Je}
447
463
  position: fixed;
448
464
  top: 0;
449
465
  left: 0;
@@ -456,7 +472,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
456
472
  height: 100vh;
457
473
 
458
474
  .card-wrapper {
459
- ${Ne}
475
+ ${Je}
460
476
  position: relative;
461
477
  display: flex;
462
478
  flex-direction: column;
@@ -470,7 +486,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
470
486
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
471
487
 
472
488
  .body {
473
- ${Ne}
489
+ ${Je}
474
490
  display: flex;
475
491
  flex-direction: column;
476
492
  width: 100%;
@@ -479,7 +495,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
479
495
  box-sizing: border-box;
480
496
  justify-content: center;
481
497
  .title {
482
- ${Ne}
498
+ ${Je}
483
499
  text-align: center;
484
500
  font-size: 16px;
485
501
  font-weight: bold;
@@ -487,7 +503,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
487
503
  }
488
504
 
489
505
  .content {
490
- ${Ne}
506
+ ${Je}
491
507
  font-size: 14px;
492
508
  color: #888;
493
509
  margin-bottom: 16px;
@@ -495,13 +511,13 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
495
511
  }
496
512
 
497
513
  .footer {
498
- ${Ne}
514
+ ${Je}
499
515
  display: flex;
500
516
  align-items: center;
501
517
  width: 100%;
502
518
  height: 40px;
503
519
  button {
504
- ${Ne}
520
+ ${Je}
505
521
  border: none;
506
522
  outline: none;
507
523
  height: 100%;
@@ -517,8 +533,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
517
533
  }
518
534
  }
519
535
  }
520
- `,It=ye(null),nu=ye(""),ou=ye(""),Gi=ye(!1),YL=()=>{var e;(e=It.value)==null||e.call(It,!1)},QL=()=>{var e;(e=It.value)==null||e.call(It,!0)},XL=e=>x(void 0,null,function*(){let{title:t,content:r}=e;return It.value&&(It.value(!1),Ye(()=>{It.value=null,Gi.value=!1})),Ye(()=>{nu.value=t||"",ou.value=r||"",Gi.value=!0}),new Promise(n=>{It.value=o=>{Ye(()=>{It.value=null,Gi.value=!1,nu.value="",ou.value=""}),n(o)}})}),ZL=()=>Gi.value?he("div",{className:WL,children:he("div",{className:"card-wrapper",children:[he("div",{className:"body",children:[he("div",{className:"title",children:nu.value}),he("div",{className:"content",children:ou.value})]}),he("div",{className:"footer",children:[he("button",{onClick:YL,className:"cancel-btn",children:"Cancel"}),he("button",{onClick:QL,className:"confirm-btm",children:"Confirm"})]})]})}):null,eU=Mn`
521
- ${Ne}
536
+ `,zt=Re(null),Xd=Re(""),Zd=Re(""),hs=Re(!1),b3=()=>{var e;(e=zt.value)==null||e.call(zt,!1)},w3=()=>{var e;(e=zt.value)==null||e.call(zt,!0)},E3=e=>E(void 0,null,function*(){let{title:t,content:r}=e;return zt.value&&(zt.value(!1),st(()=>{zt.value=null,hs.value=!1})),st(()=>{Xd.value=t||"",Zd.value=r||"",hs.value=!0}),new Promise(n=>{zt.value=i=>{st(()=>{zt.value=null,hs.value=!1,Xd.value="",Zd.value=""}),n(i)}})}),x3=()=>hs.value?we("div",{className:_3,children:we("div",{className:"card-wrapper",children:[we("div",{className:"body",children:[we("div",{className:"title",children:Xd.value}),we("div",{className:"content",children:Zd.value})]}),we("div",{className:"footer",children:[we("button",{onClick:b3,className:"cancel-btn",children:"Cancel"}),we("button",{onClick:w3,className:"confirm-btm",children:"Confirm"})]})]})}):null,A3=Mi`
537
+ ${Je}
522
538
  position: relative;
523
539
  display: flex;
524
540
  align-items: center;
@@ -536,7 +552,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
536
552
  }
537
553
 
538
554
  button {
539
- ${Ne}
555
+ ${Je}
540
556
  padding: 0 20px;
541
557
  height: 30px;
542
558
  line-height: 30px;
@@ -550,8 +566,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
550
566
  cursor: not-allowed;
551
567
  }
552
568
  }
553
- `,tU=()=>{let e=ye(!1),t=ye(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ye(()=>{t.value=Date.now(),e.value=!1})}}},rU=e=>{let{countdown:t=0,mode:r,onClose:n,state:o}=e,{startTimestamp:i,timerPaused:a}=o,s=kw(t);GL(()=>{i.value&&(s.value=t)}),KL(()=>{s.value>0?s.value-=1:Ye(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Nn(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!i.value)return!1;let p=Date.now()-i.value;return s.value>0&&t-s.value>=5&&p>=5e3}),c=Nn(()=>{if(r==="interstitial")return!0;if(!i.value)return!1;let p=Date.now()-i.value;return s.value<=0&&p>=(t-1)*1e3&&t>5}),d=Nn(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>x(void 0,null,function*(){if(a.value=!0,!(yield XL({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ye(()=>{a.value=!0,s.value=0,i.value=null})}),h=()=>{n("viewed"),Ye(()=>{a.value=!0,s.value=0,i.value=null})};return he("div",{className:eU,children:[s.value>0&&r!=="interstitial"&&he("div",{className:"timer",children:[s.value,"s"]}),he("button",{onClick:l.value?u:c.value?h:void 0,disabled:d.value,children:he("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:he("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"})})})]})},nU=()=>{let e=ye(),t=ye(),r=ye(),n=ye(),o=ye(),i=ye(!1),a=ye(15),s=ye(""),l=ye("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:o,visible:i,countdown:a,src:s,mode:l}},oU=Mn`
554
- ${Ne}
569
+ `,S3=()=>{let e=Re(!1),t=Re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},I3=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=NS(t);v3(()=>{o.value&&(s.value=t)}),g3(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Ni(()=>{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=Ni(()=>{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=Ni(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>E(void 0,null,function*(){if(a.value=!0,!(yield E3({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),h=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return we("div",{className:A3,children:[s.value>0&&r!=="interstitial"&&we("div",{className:"timer",children:[s.value,"s"]}),we("button",{onClick:l.value?u:c.value?h:void 0,disabled:d.value,children:we("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:we("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"})})})]})},T3=()=>{let e=Re(),t=Re(),r=Re(),n=Re(),i=Re(),o=Re(!1),a=Re(15),s=Re(""),l=Re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},k3=Mi`
570
+ ${Je}
555
571
  position: fixed;
556
572
  z-index: 2147483647;
557
573
  background: white;
@@ -561,7 +577,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
561
577
  flex-direction: column;
562
578
 
563
579
  iframe {
564
- ${Ne}
580
+ ${Je}
565
581
  flex: 1;
566
582
  position: relative;
567
583
  display: block;
@@ -569,8 +585,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
569
585
  width: 100%;
570
586
  height: 100%;
571
587
  }
572
- `,iU=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:o,adBreakDone:i,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=dn(()=>tU(),[]),h=m=>{var g,_,v,y;s.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=o.value)==null||_.call(o)),(v=r.value)==null||v.call(r),(y=i.value)==null||y.call(i)},p=()=>{var m;(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100),(m=a.value)==null||m.call(a)};return s.value?he("div",{className:oU,children:[he(rU,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&he("iframe",{src:c.value,onLoad:p,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),he(ZL,{})]}):null};iu=class{constructor(t,r){St(this,"name","OKSPIN"),St(this,"initialized",!1),St(this,"initCompleter",null),St(this,"context",void 0),St(this,"initParams",void 0),St(this,"adsOverlay",null),St(this,"adsIsShowing",!1),St(this,"lastUnDisplayedAdBreak",null),St(this,"state",nU()),this.context=t,this.initParams=r}init(){return x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Um(he(iU,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return x(this,null,function*(){var n,o,i,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var p;this.adsIsShowing=!1,(p=t.afterAd)==null||p.call(t)},h=()=>{var p;this.adsIsShowing=!1,(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ye(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=h,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},p=()=>{var v;this.adsIsShowing=!1,h.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,h.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,h)};Ye(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=p,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ye(()=>{var y;this.state.countdown.value=(y=r.params.countdown)!=null?y:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}})}};Xi=class{constructor(t){if(Ft(this,"context",void 0),Ft(this,"contextInfo",void 0),Ft(this,"providers",{}),Ft(this,"channelPolicy",void 0),Ft(this,"adsActionDetection",void 0),Ft(this,"adsTrackSerializer",void 0),Ft(this,"initialized",!1),Ft(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Yc(this.context),this.adsActionDetection=new Jc(this.context),this.adsTrackSerializer=new Wc(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand"}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}init(t){return x(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":{let o=new Qc(this.context,n.params);yield o.init(),this.providers.ADSENSE=o;break}case"OKSPIN":{let o=new iu(this.context,n.params);yield o.init(),this.providers.OKSPIN=o;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return x(this,null,function*(){var r,n,o,i,a,s,l,c,d;if(Date.now()-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let{data:u,code:h}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(h!=="SUCCESS"){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let p=u;if(p.length===0){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let m=!0,g=null,_=new Hc(this.context);for((s=this.context.eventEmitter)==null||s.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0;p.length>0;){let v=p.shift(),y=this.providers[v.provider];if(y){let[A,k]=yield _.callAdBreakAndContinue(y,t,v);m=A,g=k}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(u){(c=t.adBreakDone)==null||c.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},XH=Mn`
573
- ${Ne}
588
+ `,R3=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Qn(()=>S3(),[]),h=m=>{var g,_,v,b;s.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100),(m=a.value)==null||m.call(a)};return s.value?we("div",{className:k3,children:[we(I3,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&we("iframe",{src:c.value,onLoad:f,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),we(x3,{})]}):null};ef=class{constructor(t,r){Gt(this,"name","OKSPIN"),Gt(this,"initialized",!1),Gt(this,"initCompleter",null),Gt(this,"context",void 0),Gt(this,"initParams",void 0),Gt(this,"adsOverlay",null),Gt(this,"adsIsShowing",!1),Gt(this,"lastUnDisplayedAdBreak",null),Gt(this,"state",T3()),this.context=t,this.initParams=r}init(){return E(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Pg(we(R3,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return E(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},h=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=h,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,h.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,h.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,h)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}})}};bs=class{constructor(t){if(ur(this,"context",void 0),ur(this,"contextInfo",void 0),ur(this,"providers",{}),ur(this,"channelPolicy",void 0),ur(this,"adsActionDetection",void 0),ur(this,"adsTrackSerializer",void 0),ur(this,"initialized",!1),ur(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Vd(this.context),this.adsActionDetection=new jd(this.context),this.adsTrackSerializer=new Hd(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand"}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}init(t){return E(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":{let i=new Gd(this.context,n.params);yield i.init(),this.providers.ADSENSE=i;break}case"OKSPIN":{let i=new ef(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return E(this,null,function*(){var r,n,i,o,a,s,l,c,d;if(Date.now()-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let{data:u,code:h}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(h!=="SUCCESS"){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let f=u;if(f.length===0){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let m=!0,g=null,_=new Md(this.context);for((s=this.context.eventEmitter)==null||s.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0;f.length>0;){let v=f.shift(),b=this.providers[v.provider];if(b){let[x,T]=yield _.callAdBreakAndContinue(b,t,v);m=x,g=T}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(u){(c=t.adBreakDone)==null||c.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},zK=Mi`
589
+ ${Je}
574
590
  position: fixed;
575
591
  left: 0;
576
592
  top: 0;
@@ -585,7 +601,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
585
601
  }
586
602
 
587
603
  .ads-wrapper {
588
- ${Ne}
604
+ ${Je}
589
605
  position: relative;
590
606
  width: 100%;
591
607
  height: 100%;
@@ -608,7 +624,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
608
624
  }
609
625
 
610
626
  .retry-button {
611
- ${Ne}
627
+ ${Je}
612
628
  position: absolute;
613
629
  width: 100%;
614
630
  height: 100%;
@@ -618,4 +634,4 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
618
634
  cursor: pointer;
619
635
  }
620
636
  }
621
- `});function Nw(){let e=new Map,t,r;return{registerRewardHandler(o,i){e.set(o,i)},handleReward(o,...i){return x(this,null,function*(){return yield o.reduce((s,l)=>x(this,null,function*(){let c=yield s;if(c===!0)return!0;Pw&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...i):c;return Pw&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(o){return x(this,null,function*(){t=(...i)=>x(this,null,function*(){try{return yield o(...i)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(o){return x(this,null,function*(){r=(...i)=>x(this,null,function*(){try{return yield o(...i)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Qt}}})})},getRewardsTypes(...o){return x(this,null,function*(){return t?yield t(...o):["ADS"]})},getRewardFrequencyConfig(...o){return x(this,null,function*(){return r?yield r(...o):{joliCoinUseAndCharge:Qt}})}}}var Pw,Dw=T(()=>{"use strict";te();Xt();Pw=S.testMode});var uU,dU,qw,Lw,Uw=T(()=>{"use strict";Xt();uU=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,dU=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(uU()):["ADS"],qw=e=>{e.registerRewardsFetcher(t=>x(void 0,null,function*(){var n,o,i,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;V.emit(Ir,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((o=s.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(i=s.data)==null?void 0:i.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return dU(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},Lw=e=>{e.registerRewardFrequencyConfigFetcher(t=>x(void 0,null,function*(){var n,o;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return r.code!=="SUCCESS"?{joliCoinUseAndCharge:Qt}:(V.emit(Ui,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Qt}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Qt})}))}});var Mw,Fw=T(()=>{"use strict";Mw=e=>t=>x(void 0,null,function*(){return e.adBreak(t),!0})});var jw,Bw=T(()=>{"use strict";jw=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var o;return n.joliCoinQuantity<=((o=t==null?void 0:t.balance)!=null?o:0)}))});var na,oa,$w,ia,aa=T(()=>{"use strict";te();D();Xt();Bw();Rn();na=(e,t)=>r=>x(void 0,null,function*(){let n=Et(V,wt);return V.emit(qi,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),oa=(e,t)=>r=>x(void 0,null,function*(){let n=Et(V,Tr);return V.emit(Li,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),$w=e=>{if(e=="CANCEL")throw new Error("CANCEL")},ia=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i}})=>a=>x(void 0,null,function*(){var s,l,c,d,u,h,p;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(A=>A.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!jw((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let A=yield o({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if($w(A),A!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let A=yield i({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if($w(A),A!=="CONFIRM")return r==null||r(a),!1}let y=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${Zn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return y.code=="SUCCESS"?((h=a.adBreakDone)==null||h.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((p=a.adViewed)==null||p.call(a)),t==null||t({quantity:y.data.quantity,balance:y.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 Hw,Jw=T(()=>{"use strict";Xt();Rn();aa();aa();Hw=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Et(V,Ir),o=()=>{r==null||r()},i=oa("ADS-JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No watch ads"}),a=na("ADS-JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No watch ads"});return ia(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:o,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:i}})}});var Vw,Gw=T(()=>{"use strict";Xt();aa();Rn();Vw=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Et(V,Ir),o=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=oa("JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No thanks"}),a=na("JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No thanks"});return ia(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:o,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:i}})}});var Tt,Kw=T(()=>{"use strict";Dw();Uw();Fw();Jw();Gw();Tt=Nw();qw(Tt);Lw(Tt)});var Q4,sa,fU,jn,pU,Bn,zw,hU,mU,vU,gU,Ww=T(()=>{"use strict";D();lt();li();Q4=ue(N0());Ow();Ot();te();Vt();Ie();Kw();Ka();sa=ee(),fU=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},jn={get:(e,t)=>ve(e,R({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ve(e,R({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},pU={httpClient:jn,checkNetwork:fU,track:Le,eventEmitter:no,getContextInfo:()=>{var e,t,r,n,o,i,a,s;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:(o=S.sessionId)!=null?o:"",userId:(a=(i=S.hostUserInfo)==null?void 0:i.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}}},Bn=new Xi(pU);Tt.getRewardFrequencyConfig(jn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Mw(Bn));Tt.registerRewardHandler("JOLI_COIN",Hw(jn,{onUnlockSuccess:e=>{zw(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",Vw(jn,{onUnlockSuccess:e=>{zw(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));zw=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} JoliCoins used`;Wb(r,{customStyle:{mark:{marginRight:"8px"}}})},hU=J("adInit",{implement:e=>{Bn.init(e)}}),mU=J("adConfig",{implement:e=>{Bn.adConfig(e)}}),vU=J("adBreak",{implement:e=>{e.type==="reward"?Tt.getRewardsTypes(jn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})})}):Bn.adBreak(e)}}),gU=J("adUnit",{implement:e=>{Bn.adUnit(e)}});sa.registerCommand("AdsSDK.init",hU);sa.registerCommand("AdsSDK.adConfig",mU);sa.registerCommand("AdsSDK.adBreak",vU);sa.registerCommand("AdsSDK.adUnit",gU);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var $n,_U,yU,bU,wU,EU,Yw=T(()=>{"use strict";D();Ie();lt();te();$n=ee(),_U=J("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new er(r.errMsg,r.errNo)}}),yU=J("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new er(r,t);return{webviewId:n.webviewId}}}),bU=J("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new er(r,t)}}),wU=J("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{de.emit("onInterceptSystemExit",{intercept:e}),de.emit("onInterceptBackPress",{intercept:e})}}),EU=J("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory"),E.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=L("callHostMethodAsync",{method:e,params:R({},t)});if(r!==0)throw new er(n,r)}});$n.registerCommand("RouterSDK.openSchema",_U);$n.registerCommand("RouterSDK.openPage",yU);$n.registerCommand("RouterSDK.closePage",bU);$n.registerCommand("RouterSDK.interceptSystemExit",wU);$n.registerCommand("RouterSDK.navigateToNativePage",EU);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var xU={};var fJ,vJ,Qw=T(()=>{"use strict";u0();fJ=ue(d0());_0();Cc();E0();vJ=ue(x0());Nc();Ww();Yw()});var Xw=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Xw])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Xw]=!0;x(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(n0(),r0)),Promise.resolve().then(()=>(Qw(),xU)),Promise.resolve().then(()=>(Ot(),Td))]);e()});
637
+ `});function US(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return E(this,null,function*(){return yield i.reduce((s,l)=>E(this,null,function*(){let c=yield s;if(c===!0)return!0;LS&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return LS&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return E(this,null,function*(){t=(...o)=>E(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return E(this,null,function*(){r=(...o)=>E(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:kr}}})})},getRewardsTypes(...i){return E(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return E(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:kr}})}}}var LS,MS=I(()=>{"use strict";oe();Rr();LS=S.testMode});var D3,q3,jS,FS,BS=I(()=>{"use strict";Rr();D3=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,q3=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(D3()):["ADS"],jS=e=>{e.registerRewardsFetcher(t=>E(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;K.emit(un,{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 q3(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},FS=e=>{e.registerRewardFrequencyConfigFetcher(t=>E(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return r.code!=="SUCCESS"?{joliCoinUseAndCharge:kr}:(K.emit(rs,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||kr}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||kr})}))}});var $S,JS=I(()=>{"use strict";$S=e=>t=>E(void 0,null,function*(){return e.adBreak(t),!0})});var HS,VS=I(()=>{"use strict";HS=(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 Ss,Is,GS,Ts,ks=I(()=>{"use strict";oe();N();Rr();VS();ki();Ss=(e,t)=>r=>E(void 0,null,function*(){let n=Jt(K,Tt);return K.emit(es,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Is=(e,t)=>r=>E(void 0,null,function*(){let n=Jt(K,dn);return K.emit(ts,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),GS=e=>{if(e=="CANCEL")throw new Error("CANCEL")},Ts=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>E(void 0,null,function*(){var s,l,c,d,u,h,f;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(x=>x.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!HS((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let x=yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(GS(x),x!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let x=yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(GS(x),x!=="CONFIRM")return r==null||r(a),!1}let b=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${eo()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return b.code=="SUCCESS"?((h=a.adBreakDone)==null||h.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:b.data.quantity,balance:b.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var zS,KS=I(()=>{"use strict";Rr();ki();ks();ks();zS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,un),i=()=>{r==null||r()},o=Is("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Ss("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Ts(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var WS,YS=I(()=>{"use strict";Rr();ks();ki();WS=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,un),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=Is("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Ss("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Ts(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Kt,QS=I(()=>{"use strict";MS();BS();JS();KS();YS();Kt=US();jS(Kt);FS(Kt)});var GW,Rs,L3,Fi,U3,Bi,XS,M3,j3,F3,B3,ZS=I(()=>{"use strict";N();It();Ii();GW=ie(UA());qS();Xt();oe();Ot();Me();QS();ml();Rs=ue(),L3=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Fi={get:(e,t)=>ae(e,k({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ae(e,k({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},U3={httpClient:Fi,checkNetwork:L3,track:Ge,eventEmitter:io,getContextInfo:()=>{var e,t,r,n,i,o,a,s;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}}},Bi=new bs(U3);Kt.getRewardFrequencyConfig(Fi).then(e=>{console.log("getRewardFrequencyConfig",e)});Kt.registerRewardHandler("ADS",$S(Bi));Kt.registerRewardHandler("JOLI_COIN",zS(Fi,{onUnlockSuccess:e=>{XS(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Kt.registerRewardHandler("JOLI_COIN_ONLY",WS(Fi,{onUnlockSuccess:e=>{XS(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));XS=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;zx(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},M3=z("adInit",{implement:e=>{Bi.init(e)}}),j3=z("adConfig",{implement:e=>{Bi.adConfig(e)}}),F3=z("adBreak",{implement:e=>{e.type==="reward"?Kt.getRewardsTypes(Fi).then(t=>{Kt.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"})})}):Bi.adBreak(e)}}),B3=z("adUnit",{implement:e=>{Bi.adUnit(e)}});Rs.registerCommand("AdsSDK.init",M3);Rs.registerCommand("AdsSDK.adConfig",j3);Rs.registerCommand("AdsSDK.adBreak",F3);Rs.registerCommand("AdsSDK.adUnit",B3);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var $i,$3,J3,H3,V3,G3,eI=I(()=>{"use strict";N();Me();It();oe();$i=ue(),$3=z("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Or(r.errMsg,r.errNo)}}),J3=z("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new Or(r,t);return{webviewId:n.webviewId}}}),H3=z("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new Or(r,t)}}),V3=z("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{ge.emit("onInterceptSystemExit",{intercept:e}),ge.emit("onInterceptBackPress",{intercept:e})}}),G3=z("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory"),A.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=L("callHostMethodAsync",{method:e,params:k({},t)});if(r!==0)throw new Or(n,r)}});$i.registerCommand("RouterSDK.openSchema",$3);$i.registerCommand("RouterSDK.openPage",J3);$i.registerCommand("RouterSDK.closePage",H3);$i.registerCommand("RouterSDK.interceptSystemExit",V3);$i.registerCommand("RouterSDK.navigateToNativePage",G3);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var z3={};var s7,d7,tI=I(()=>{"use strict";lA();s7=ie(cA());vA();bd();bA();d7=ie(wA());Ad();ZS();eI()});var rI=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[rI])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[rI]=!0;E(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(tA(),eA)),Promise.resolve().then(()=>(tI(),z3)),Promise.resolve().then(()=>(Xt(),Ap))]);e()});