@jolibox/implement 1.1.16-beta.5 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=Object.getOwnPropertyDescriptor,RS=Object.getOwnPropertyDescriptors,AS=Object.getOwnPropertyNames,dn=Object.getOwnPropertySymbols,qS=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty,Bu=Object.prototype.propertyIsEnumerable;var Mu=(e,r,t)=>r in e?fn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,T=(e,r)=>{for(var t in r||(r={}))Eo.call(r,t)&&Mu(e,t,r[t]);if(dn)for(var t of dn(r))Bu.call(r,t)&&Mu(e,t,r[t]);return e},C=(e,r)=>IS(e,RS(r));var Ae=(e,r)=>{var t={};for(var n in e)Eo.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&dn)for(var n of dn(e))r.indexOf(n)<0&&Bu.call(e,n)&&(t[n]=e[n]);return t};var R=(e,r)=>()=>(e&&(r=e(e=0)),r);var f=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),$u=(e,r)=>{for(var t in r)fn(e,t,{get:r[t],enumerable:!0})},kS=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of AS(r))!Eo.call(e,i)&&i!==t&&fn(e,i,{get:()=>r[i],enumerable:!(n=TS(r,i))||n.enumerable});return e};var M=(e,r,t)=>(t=e!=null?ES(qS(e)):{},kS(r||!e||!e.__esModule?fn(t,"default",{value:e,enumerable:!0}):t,e));var E=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});function LS(e){return!!(e!=null&&e.__nativeBuffers__)}function Po(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(t){return{}}if(typeof e!="object"||e===null)return{};if(!LS(e))return e;let r=e.__nativeBuffers__;if(delete e.__nativeBuffers__,r)for(let t=0;t<r.length;t++){let n=r[t];if(n){let i;n.value?i=n.value:n.base64&&(i=FS(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function US(e={},r=!1){let t=e,n=[];for(let[i,o]of Object.entries(t))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=r?{value:o,key:i}:{base64:jS(o),key:i};n.push(a),delete t[i]}return n.length>0&&(t.__nativeBuffers__=n),t}function HS(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function Zu(e){return typeof e=="string"}function dt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function GS(e){return typeof e=="undefined"}function VS(e){return GS(e)||e===null}function ec(e){return typeof e=="function"}function JS(e){return dt(e)&&ec(e.then)}function rc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function ct(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function ix(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 ux(e){return new Promise(r=>tc(e)(r))}function tc(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function cx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new pt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function dx(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)fx(e[n],r[n])}function fx(e,r){if(Zu(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(ec(r)){try{if(e instanceof r)return}catch(t){}if(!VS(e)&&e.constructor===r||r.length===1&&r.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 Gu(e,r){return`[${e}]:${r}`}function yx(e,r){Vu||(Ro=new mn({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ao=new mn({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),qo=new mn({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),r("onJoliboxEnterBackground",()=>{Ro.flush(),Ao.flush(),qo.flush()}),Vu=!0);function t(i){var o,a;let{method:s,args:u,startTime:c,isForeground:d,errMsg:l=`${s}:fail no errMsg`,errNo:p=0,__timing:m={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:h,invokeCallback:y}=m,v=(a=(o=l.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ro.report({status:v,method:n(s,u),errNo:`${p}`,errMsg:l,isForeground:d,duration:Date.now()-c}),c&&h&&y&&(Ao.report({status:v,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),qo.report({status:v,method:s,isForeground:d,duration:Number((Date.now()-y).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return t}function bx(e,r){let t=0,n=!0;globalThis[Oo]||(globalThis[Oo]=new Map);let i=globalThis[Oo],o=yx(e,r);r("onJoliboxEnterBackground",()=>{n=!1}),r("onJoliboxEnterForeground",()=>{n=!0,ko.forEach(u=>jo(this,[u],function*({method:c,args:d,resolve:l}){let p=yield s(c,d);l(p)})),ko.length=0});let a=(u,c)=>{let d=i.get(Number(u));if(!d)return;let l=Po(c);d(l),i.delete(Number(u))},s=(u,c)=>{var d,l;let p=Date.now(),m=`${n}`;t+=1;let h=new KS;if(i.set(t,h.resolve),!n&&hx.includes(u))return new Promise(q=>{ko.push({method:u,args:c,resolve:q})});let y=NS(tr({},{method:u,startTime:p,args:c,isForeground:m}),{invokeType:"js-bridge"}),v=!_x&&mx.includes(u),g=US(c,v),_=v?g:JSON.stringify(g),x;if(u.endsWith("Sync")||vx.includes(u)?x=(d=e.call)==null?void 0:d.call(e,u,g,t):typeof _=="string"?x=e.invoke(u,_,t):x=(l=e.call)==null?void 0:l.call(e,u,_,t),x){try{typeof x=="string"&&(x=JSON.parse(x)),x=Po(x)}catch(q){Uo.error(q)}return i.delete(t),x.errorCode&&(x.errorCode=Gu(u,x.errorCode)),o(tr(tr({},y),x)),x}return u.endsWith("Sync")&&i.delete(t),h.promise.then(q=>(q.errorCode&&(q.errorCode=Gu(u,q.errorCode)),o(tr(tr({},y),q)),q))};return{invokeNative:s,applyNative:(u,c)=>{let d=s(u,c);return JS(d)?d.then(l=>Ju(u,l)):Ju(u,d)},invokeHandler:a}}function Ju(e,r){if(!dt(r)){Uo.warn(`[Jolibox SDK]${e} no response value`);return}let t=r,{errMsg:n,errNo:i,errorType:o,errorCode:a}=t,s=DS(t,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new QS(n,i,o,a);return s}function wx(e){if(globalThis[pn])return globalThis[pn];let r=new Do,t=new Do,n=new mn({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return r.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[pn]={onNative:r.on.bind(r),offNative:r.off.bind(r),subscribe:t.on.bind(t),unsubscribe:t.off.bind(t),subscribeHandler(i,o,a){let s=Po(o),u;if(s.__extra){u=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else u=s;if(i===nc){u.forEach(c=>{let[d,l]=c;try{t.emit(d.slice(ft.length),l,a)}catch(p){}});return}if(i.startsWith(ft)){t.emit(i.slice(ft.length),u,a);return}r.emit(i,u,a)}},globalThis[pn]}function Sx(e){let r=new Map,t;return(n,i,o,a)=>{if(a){let u=o?[o]:"*";e.publish(`${ft}${n}`,i,u);return}t||(t=Promise.resolve().then(()=>{r.forEach((u,c)=>{try{let d=c?[c]:"*";e.publish(nc,u,d)}catch(d){}}),t=void 0,r.clear()}));let s=r.get(o);s||(s=[],r.set(o,s)),s.push([`${ft}${n}`,i])}}function xx(e){let{subscribeHandler:r,onNative:t,offNative:n,subscribe:i,unsubscribe:o}=wx(e),{invokeNative:a,invokeHandler:s,applyNative:u}=bx(e,t),c=Sx(e);return{invokeHandler:s,subscribeHandler:r,applyNative:u,invokeNative:a,onNative:t,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function ic(e,r){return{params:e,__extra:{startTime:Date.now(),type:r}}}var OS,PS,CS,hn,zu,Yu,Hu,tr,NS,DS,jo,FS,jS,Qu,MS,BS,Xu,$S,KS,WS,zS,vn,YS,QS,XS,Io,Uo,ZS,ex,rx,tx,nx,AF,Co,$,ox,ax,lt,pt,Do,Lo,sx,To,lx,qF,Fo,Ku,kF,px,ft,mx,hx,vx,nc,gx,mn,Vu,Ro,Ao,qo,ko,_x,Oo,pn,Mo,Ge,oc,ac,Ex,sc,Wu,be,F,qe,OF,Ix,uc,PF,CF,pe=R(()=>{"use strict";OS=Object.defineProperty,PS=Object.defineProperties,CS=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Yu=Object.prototype.propertyIsEnumerable,Hu=(e,r,t)=>r in e?OS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tr=(e,r)=>{for(var t in r||(r={}))zu.call(r,t)&&Hu(e,t,r[t]);if(hn)for(var t of hn(r))Yu.call(r,t)&&Hu(e,t,r[t]);return e},NS=(e,r)=>PS(e,CS(r)),DS=(e,r)=>{var t={};for(var n in e)zu.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))r.indexOf(n)<0&&Yu.call(e,n)&&(t[n]=e[n]);return t},jo=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});FS=e=>{let r=atob(e),t=r.length,n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=r.charCodeAt(i);return n.buffer};jS=e=>{let r="",t=new Uint8Array(e),n=t.byteLength;for(let i=0;i<n;i++)r+=String.fromCharCode(t[i]);return btoa(r)};Qu=Object.defineProperty,MS=Object.getOwnPropertyDescriptor,BS=(e,r)=>{for(var t in r)Qu(e,t,{get:r[t],enumerable:!0})},Xu=(e,r,t,n)=>{for(var i=n>1?void 0:n?MS(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Qu(r,t,i),i},$S=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}KS=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};WS=(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))(WS||{}),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}},vn=class extends zS{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},YS=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},QS=class extends vn{constructor(e,r,t,n){super(e),this.errNo=r,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=t,this.errorCode=n}},XS=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Io=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Uo={log:ct("log"),warn:ct("warn"),info:ct("info"),error:ct("error"),debug:ct("debug")};Object.assign(globalThis,{logger:Uo});ZS=Symbol.for("Jolibox.canIUseMap"),ex={};globalThis[ZS]=ex;rx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(rx||{}),tx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(tx||{}),nx=(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))(nx||{});ix();AF={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")},Co=class No{constructor(r){this.element=r,this.next=No.Undefined,this.prev=No.Undefined}};Co.Undefined=new Co(void 0);$=Co,ox=class{constructor(){this._first=$.Undefined,this._last=$.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===$.Undefined}clear(){let e=this._first;for(;e!==$.Undefined;){let r=e.next;e.prev=$.Undefined,e.next=$.Undefined,e=r}this._first=$.Undefined,this._last=$.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new $(e);if(this._first===$.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==$.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$.Undefined&&e.next!==$.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===$.Undefined&&e.next===$.Undefined?(this._first=$.Undefined,this._last=$.Undefined):e.next===$.Undefined?(this._last=this._last.prev,this._last.next=$.Undefined):e.prev===$.Undefined&&(this._first=this._first.next,this._first.prev=$.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$.Undefined;)yield e.element,e=e.next}},ax=0,lt=class{constructor(e){this.value=e,this.id=ax++}},pt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof lt&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new lt(r);return this._listeners?this._listeners instanceof lt?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof lt)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof lt?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},Do=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new pt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e);if(t)t.fire({event:e,args:r});else{let n=this.cachedEventQueue.get(e);n||(n=new ox,this.cachedEventQueue.set(e,n)),n.push({args:r})}}},Lo={};BS(Lo,{None:()=>sx,filter:()=>cx,once:()=>tc,toPromise:()=>ux});sx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});To=Symbol.for("Jolibox.hostEmitter"),lx=()=>{let e=new Do;return globalThis[To]||(globalThis[To]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[To]},qF=lx();Fo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new pt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return dx(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};Fo=Xu([rc],Fo);Ku=class{constructor(){this._onWillExecuteCommand=new pt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new pt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Fo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=HS(3e4)),this._starActivation}executeCommand(e,...r){return $S(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Lo.toPromise(Lo.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Ku=Xu([rc],Ku);kF=Symbol.for("Jolibox.commands");px=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),ft="custom_event_",mx=[],hx=[],vx=["env","createRequestTask","login"],nc="__batch_event__",gx=e=>e==="pv"?e:"default",mn=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:r,interval:t=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=r,this.interval=t,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=gx(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 r=(t,n,i,o)=>{let a=n.shift();if(a){let s=o[a];t[s]||(t[s]={}),r(t[s],n,i,o)}else t[i]||(t[i]=[]),t[i].push(o[i])};r(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let r=(n,i,o,a)=>{let s=i.shift();if(!s&&dt(a))throw new Io(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);if(s){let u=[];if(dt(a))u.push(...Object.keys(a));else if(Zu(a)){if(i.length>0)throw new Io(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);u.push(a)}else throw new Io(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(t)}`);u.forEach(c=>{n[c]||(n[c]={});let d=dt(a)?a[c]:a;r(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},t={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};r(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={}}},Vu=!1;ko=[],_x=!1,Oo=Symbol.for("Jolibox.invokeResolverInstance");pn=Symbol.for("Jolibox.subscribeInstance");Ge={trigger(){},exit(){return Promise.resolve(!1)},onReady(e){Ge.trigger=e},onDoExit(e){Ge.exit=e}},oc=e=>{let r=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!r)e.onError(new YS("native env failed"));else{let{data:t}=JSON.parse(r);return t!=null?t:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,r=(i="")=>{Ge.trigger(),e.onDocumentReady.postMessage({path:i})},t=i=>jo(void 0,null,function*(){let o=yield Ge.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Mo={onDocumentReady:r,doExit:t,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ic(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:r,env:oc,doExit:t};globalThis.joliboxJSCore=tr({},n)}if(window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,r=(i="")=>{Ge.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},t=i=>jo(void 0,null,function*(){let o=yield Ge.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});Mo={onDocumentReady:r,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:t,publish(i,o,a){let s=ic(o,"joliboxJSCore");e.publish({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:r,env:oc,doExit:t};globalThis.joliboxJSCore=tr({},n)}ac=Mo;if(!ac&&px())throw new XS("No joliboxJScore is found, native bridge not found.");Ex=tr({},ac),sc=xx(Ex),{invokeHandler:Wu}=sc,{applyNative:be,invokeNative:F,onNative:qe,offNative:OF,subscribeHandler:Ix,publish:uc,subscribe:PF,unsubscribe:CF}=sc;globalThis.joliboxJSBridge={callHandler:Wu,invokeHandler:Wu,subscribeHandler:Ix}});function Px(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function gt(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function pc(e){return typeof e=="object"&&Array.isArray(e)}function yt(e){return e===!0||e===!1}function mc(e){return typeof e=="undefined"}function Cx(e){return mc(e)||e===null}function Nx(e){return typeof e=="function"}function hc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function vc(e,r,t){if(typeof t!="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],u=o[a],c=t(s,u,a,i,o);c!==void 0?i[a]=c:dc(u)&&dc(s)?i[a]=n(qx({},s),u):Array.isArray(u)&&Array.isArray(s)?i[a]=[...s,...u]:i[a]=u}return i}return n(e,r)}function dc(e){return e&&typeof e=="object"&&e.constructor===Object}function gc(e,r){if(Array.isArray(e))return e.concat(r)}function _t(e,r,t={}){let n=null,i,o,a,{leading:s=!1,trailing:u=!0}=t,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...l){i=l,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,u&&!p&&c()},r),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function Lx(e,r){return(...t)=>r(e,...t)}function yn(e){return r=>Lx(r,function(t,...n){if(typeof t=="function")try{return t.apply(this,n)}catch(i){e(new bt(`${i}`))}})}function mt(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function Xo(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 Gx(e){return new Promise(r=>Ec(e)(r))}function Ec(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function Vx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new vt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function Wx(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)zx(e[n],r[n])}function zx(e,r){if(gt(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(Nx(r)){try{if(e instanceof r)return}catch(t){}if(!Cx(e)&&e.constructor===r||r.length===1&&r.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 Yx(){return typeof globalThis!="undefined"?globalThis[Ic]:void 0}function Qx(e){typeof globalThis!="undefined"&&(globalThis[Ic]=e)}function z(){let e=Yx();if(e)return e;let r=new gn,t=new Go,n={registerCommand(i,o,a){r.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return t.executeCommand(i,...o)},excuteCommandSync(i,...o){return t.executeCommandThowErr(i,...o)}};return Qx(n),n}var Vo,Tx,cc,Rx,Ax,lc,qx,kx,fc,Ox,nr,Dx,Jo,Wo,yc,_c,bt,bc,wc,wt,zo,Ne,Sc,Fx,Yo,jx,Qo,Ux,_n,zF,Mx,Bx,xc,$o,H,$x,Hx,ht,vt,De,Ko,Kx,Bo,Jx,Le,gn,Go,Ic,P=R(()=>{"use strict";Vo=Object.defineProperty,Tx=Object.getOwnPropertyDescriptor,cc=Object.getOwnPropertySymbols,Rx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,lc=(e,r,t)=>r in e?Vo(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,qx=(e,r)=>{for(var t in r||(r={}))Rx.call(r,t)&&lc(e,t,r[t]);if(cc)for(var t of cc(r))Ax.call(r,t)&&lc(e,t,r[t]);return e},kx=(e,r)=>{for(var t in r)Vo(e,t,{get:r[t],enumerable:!0})},fc=(e,r,t,n)=>{for(var i=n>1?void 0:n?Tx(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Vo(r,t,i),i},Ox=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}nr=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};Dx=(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))(Dx||{}),Jo=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}},Wo=class extends Jo{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},yc=class extends Jo{constructor(){super(...arguments),this.kind="USER_ERROR"}},_c=class extends yc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},bt=class extends yc{constructor(e,r,t){super(e),this.message=e,this.errNo=r,this.name="USER_CUSTOM_ERROR",this.errMsg=e,t&&(this.extra=Object.assign({},this.extra,t))}},bc=class extends Wo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},wc=class extends Wo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},wt=class extends Jo{constructor(e,r,t,n,i){super(e),this.message=e,this.code=r,this.kind="API_ERROR",this.name="API_ERROR",t&&(this.errorType=t),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}}},zo=class extends Wo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ne={log:mt("log"),warn:mt("warn"),info:mt("info"),error:mt("error"),debug:mt("debug")};Object.assign(globalThis,{logger:Ne});Sc=Symbol.for("Jolibox.canIUseMap"),Fx={};globalThis[Sc]=Fx;Yo={get config(){return globalThis[Sc]}},jx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(jx||{}),Qo=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Qo||{}),Ux=(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))(Ux||{}),_n=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)});Xo();zF={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")},Mx="device_id",Bx=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,_n()),window.__joliboxLocalStorage__.getItem(e)),xc=()=>new URLSearchParams(window.location.search).get("deviceId")||Bx(Mx),$o=class Ho{constructor(r){this.element=r,this.next=Ho.Undefined,this.prev=Ho.Undefined}};$o.Undefined=new $o(void 0);H=$o,$x=class{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let e=this._first;for(;e!==H.Undefined;){let r=e.next;e.prev=H.Undefined,e.next=H.Undefined,e=r}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new H(e);if(this._first===H.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==H.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==H.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==H.Undefined&&e.next!==H.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===H.Undefined&&e.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):e.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):e.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==H.Undefined;)yield e.element,e=e.next}},Hx=0,ht=class{constructor(e){this.value=e,this.id=Hx++}},vt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ht&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new ht(r);return this._listeners?this._listeners instanceof ht?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof ht)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ht?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},De=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new vt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e);if(t)t.fire({event:e,args:r});else{let n=this.cachedEventQueue.get(e);n||(n=new $x,this.cachedEventQueue.set(e,n)),n.push({args:r})}}},Ko={};kx(Ko,{None:()=>Kx,filter:()=>Vx,once:()=>Ec,toPromise:()=>Gx});Kx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Bo=Symbol.for("Jolibox.hostEmitter"),Jx=()=>{let e=new De;return globalThis[Bo]||(globalThis[Bo]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[Bo]},Le=Jx();gn=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new vt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return Wx(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};gn=fc([hc],gn);Go=class{constructor(){this._onWillExecuteCommand=new vt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new vt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new gn,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Px(3e4)),this._starActivation}executeCommand(e,...r){return Ox(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Ko.toPromise(Ko.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Go=fc([hc],Go);Ic=Symbol.for("Jolibox.commands")});function le(e,r={}){Zo.emit("ERROR_REPORT",{error:e,options:r})}var Zo,_r,Fe=R(()=>{"use strict";P();P();Zo=new De,_r=new De;le.debounce=_t(le,50,{leading:!0})});var ea,Xx,Tc,Rc,Ac=R(()=>{"use strict";P();Fe();ea=e=>{let r=e.replace(/-/g,"+").replace(/_/g,"/"),t=r.length%4===0?"":"=".repeat(4-r.length%4),n=atob(r+t);try{return JSON.parse(n)}catch(i){return{}}},Xx=e=>{let r=JSON.stringify(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Tc=e=>{var r;try{let i=(r=new URL(e).searchParams.get("joliSource"))==null?void 0:r.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:ea(o),payloadJson:ea(a),signature:ea(s)}}else throw"joli_source is missing"}catch(t){return le(new bc(`${e} not a valid schema: ${t}`)),{headerJson:{},payloadJson:{},signature:{}}}},Rc=(e,r)=>{let t=r.split(".");if(t&&t.length===3){let n=t[0],i=Xx(e),o=t[2];return`${n}.${i}.${o}`}return r}});var Zx,ra,qc=R(()=>{"use strict";P();Zx="1.1.16-beta.5",ra=()=>Zx});var e0,kc,ta,Oc,de,r0,S,ae=R(()=>{"use strict";P();Ac();qc();P();e0={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:xc(),pixelRatio:window.devicePixelRatio||1,platform:"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:ra()},schema:window.location.href,platform:"h5"},ta=(kc=globalThis.joliboxJSCore)==null?void 0:kc.env,de=Object.assign({},(Oc=ta==null?void 0:ta())!=null?Oc:e0),r0=()=>{var p,m,h,y,v,g,_,x,q,V,I;let{payloadJson:e,headerJson:r,signature:t}=de.schema.length?Tc(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(h=(m=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?m:o.get("gameId"))!=null?h:"",s=(g=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?g:n,u=!!((x=(_=e==null?void 0:e.testAdsMode)!=null?_:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(I=(V=(q=e==null?void 0:e.joliboxEnv)!=null?q:e==null?void 0:e.__joliboxEnv)!=null?V:o.get("joliboxEnv"))!=null?I:"production",d=c==="staging",l=r==null?void 0:r.channel;return{get testMode(){return d},get testAdsMode(){return u},get joliboxEnv(){return c},get joliSource(){var w;return(w=o.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=r==null?void 0:r.ver)!=null?w:ra()},get mpType(){var w,K;return(K=(w=r==null?void 0:r.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?K:"game"},get platform(){var w;return(w=de.platform)!=null?w:de.deviceInfo.platform},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var w,K;return(K=(w=de.clientSessionId)!=null?w:s)!=null?K:n},get channel(){return l},get webviewId(){var w;return(w=de.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"},onEnvConfigChanged:w=>{vc(de,w,gc)},encodeJoliSourceQuery:w=>{var K,xe;return r&&t?Rc(T(T({},e),w),(K=o.get("joliSource"))!=null?K:""):(xe=o.get("joliSource"))!=null?xe:""}}},S=r0()});var na,Cc,t0,n0,Pc,i0,Nc=R(()=>{"use strict";P();Fe();ae();P();na=!1,Cc=(e,r)=>e==null?!1:r in e,t0=e=>Cc(e,"kind"),n0=e=>{let r=e.toLowerCase().split("_");return r[0]+r.slice(1).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")},Pc=(e,r={},t)=>{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:n0(e.name)},i=C(T({},n),{env:r.environment,isFromUser:t});t?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},i0=e=>Cc(e,"kind")&&e.kind==="USER_ERROR";Zo.on("ERROR_REPORT",({error:e,options:r})=>{if(na)return;na=!0;let t=t0(e)&&e.raw?e.raw:e;try{let n=i0(e);Pc(e,r,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new zo(`${i}, origin error: ${t.message}`);Ne.error(o),Pc(new zo(o.message),{environment:r.environment},!1)}finally{na=!1}})});var ir,ia,Nr=R(()=>{"use strict";Fe();P();Fe();ir=(e,r)=>{var t,n;return new wt((n=(t=r==null?void 0:r.errMsg)!=null?t:e.msg)!=null?n:"",e.code,e.type)},ia=e=>new _c(e)});var Dc=R(()=>{"use strict";Nc();Nr();P();pe();_r.on("GLOBAL_ERROR",(e,r)=>{var n;let t={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:t})});_r.on("GLOBAL_USER_ERROR",(e,r)=>{Ne.log("UserError",e,r)})});var oa=R(()=>{"use strict"});function Lc(e,r){let t=(n,i,o)=>{let a=C(T({tag:n},r),{extra:T({},i)});n=="globalJsError"?le(new wc(JSON.stringify(a))):e("systemLog",a,o)};return t.debounce=_t(t,500,{leading:!0}),t}function Fc(e){let r=(t,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:t,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return r.debounce=_t(r,500,{leading:!0}),r}var jc=R(()=>{"use strict";P();P();Fe()});function Uc(e,r){let t=Lc(e,r),n=Fc(t);return{track:t,trackPerformance:n}}var Mc=R(()=>{"use strict";jc()});var Bc=R(()=>{"use strict";ae();P();P()});var $c=R(()=>{"use strict";Mc();oa();Bc()});var bn,Hc=R(()=>{"use strict";bn=class{constructor(r,t){this.eventEmitter=r;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(r=>{this.reporter({event:"PLAY_GAME",params:{duration:r}}),this.tracker("PlayGame",{duration:r})});this.interval=t!=null?t:5*1e3,r.on("visible",n=>{this.visible=n})}start(r){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:r!=null?r:0}}),this.tracker("OpenGame",{duration:r!=null?r:0}),this.timer.start()}close(r){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:r}}),this.tracker("CloseGame",{duration:r}),this.timer.stop()}createRAFTimer(r){let t=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let m=Date.now(),h=m-t;h>=this.interval&&(this.visible&&(a+=h,r(a)),t=m),n=requestAnimationFrame(s)},u=()=>{d(),t=Date.now(),i=window.setInterval(()=>{if(!o)return;let m=Date.now();m-t>=this.interval&&(t=m)},this.interval)},c=()=>{l(),t=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},l=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",m=>{o&&(console.log("visible",m),m?c():u())});let p=this.visible;return{start(){o||(o=!0,p?c():u())},stop(){o=!1,d(),l()}}}}});var aa=R(()=>{"use strict"});function Gc(e,r,t){let{response:n,startTime:i,endTime:o,requestFrom:a}=t,{errMsg:s="",profile:u={}}=n,d={duration:o-i,request_type:e,url:r.split("?")[0],result:t.state,error_msg:t.state==="fail"?s:"",socket_reused:u.socketReused?1:0,request_from:a};(a==="public"&&Kc<a0||a==="inner")&&(d.joli_request_number=Kc++,setTimeout(()=>{we("joliboxNetRequestResult",d)},500))}var Kc,a0,Vc=R(()=>{"use strict";aa();or();Kc=0,a0=10});function wn(e,r,t){var u,c,d;let n=new Map,i=(u=t==null?void 0:t.baseUrl)!=null?u:"https://api.jolibox.com",o=(c=t==null?void 0:t.type)!=null?c:"public",a=(d=t==null?void 0:t.defaultHeaders)!=null?d:{};return qe("onRequestTaskStateChange",l=>{if(typeof l.requestTaskId!="string")return;let p=n.get(l.requestTaskId);if(p)if(l.state==="success"){let m=l,{requestTaskId:y,state:v}=m,g=Ae(m,["requestTaskId","state"]);l.statusCode===200?p.resolve(g):p.reject(g),n.delete(y)}else if(l.state==="fail"){let h=l,{requestTaskId:y,state:v}=h,g=Ae(h,["requestTaskId","state"]);p.reject(g),n.delete(y)}else Ne.warn("onRequestTaskStateChange unknown event",l)}),Le.on("onLoginComplete",({isLogin:l,token:p})=>{l&&p&&(a["X-JOLI-TOKEN"]=p)}),(m,...h)=>E(this,[m,...h],function*(l,p={}){let y=Date.now(),v=s0(l,C(T({},p),{baseUrl:i})),{method:g="GET",responseType:_="text",dataType:x="json",timeout:q,enableCache:V=!1,appendHostCookie:I=!0}=p,w=Object.assign({"content-type":"application/json"},a,p.header),K={url:v,method:g,header:w,enableCache:V,responseType:_,appendHostCookie:I};if(g=="POST"||g=="PUT"){let Ce=c0(p.data,w["content-type"]);K.data=Ce}q&&Object.assign(K,{timeout:q});let{data:{requestTaskId:xe}}=F(e,K);if(typeof xe!="string")throw ir({code:-1,msg:"requestTaskId is not a string"});let Cr=(Ce,Ke)=>{Gc("request",v,{state:Ce,startTime:y,endTime:Date.now(),params:K,response:Ke,requestId:xe,requestFrom:o=="public"?"public":"inner"})},{resolve:Ee,reject:gr,promise:bS}=new nr;n.set(xe,{resolve:Ee,reject:gr});try{let Ce=yield bS;Cr("success",Ce);let{data:Ke}=Ce;return x==="json"&&typeof Ke=="string"&&(Ke=u0(Ke)),{url:v,timeout:q,method:g,response:C(T({},Ce),{data:Ke})}}catch(Ce){let Ke=Ce;if(yr(Ke)){let{errMsg:ln,prefetchDetail:wS,isPrefetch:SS,errNo:xS}=Ke;gt(ln)&&(Cr("fail",{errMsg:ln,isPrefetch:SS,prefetchDetail:wS}),le(ir({code:-1,msg:ln},{errNo:xS,errMsg:ln})))}throw Ce}})}function u0(e){try{return JSON.parse(e.trim())}catch(r){return e}}function c0(e,r="application/json"){let t=r.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:t.includes("application/x-www-form-urlencoded")||t.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var s0,sa=R(()=>{"use strict";P();Vc();aa();pe();Fe();Nr();s0=(e,r)=>{if(/^https?:\/\//.test(e))return e;let t=r==null?void 0:r.query,i=new URLSearchParams(t).toString();return r!=null&&r.baseUrl?`${r.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var ua,Jc,me,Dr=R(()=>{"use strict";sa();ae();ua={};(Jc=S.hostUserInfo)!=null&&Jc.token&&(ua["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(ua["x-joli-source"]=S.joliSource);me=wn("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:ua})});var Sn,Wc=R(()=>{"use strict";ae();Hc();Dr();pe();Sn=class extends bn{constructor(r,t,n){super(t,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r}reporter(r){return E(this,null,function*(){let{event:t,params:n}=r,i=[];i.push(me("/api/base/app-event",{method:"POST",data:{eventType:t,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)}})),yield Promise.all(i)})}reportToNative(r){return E(this,null,function*(){let{event:t,params:n}=r;yield be("userTrackAsync",{event:t,params:T({},n),gameId:this.gameId})})}tracker(r,t=null){this.track(r,t)}}});var Zc={};$u(Zc,{nativeTaskEmitter:()=>St,taskTracker:()=>he,track:()=>we,trackPerformance:()=>Qc});var l0,zc,Yc,we,Qc,Xc,St,he,or=R(()=>{"use strict";Dc();P();oa();$c();ae();Wc();pe();l0=(e,r,t)=>{var a,s;let n=r,i=yr(n.extra)?n.extra:gt(n.extra)?JSON.parse(n.extra):{},o=C(T({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:""});F("trackAsync",{event:e,data:o,webviewId:t})},{track:we,trackPerformance:Qc}=Uc(l0,{type:Qo.AppSDK,platform:"native",jssdk_version:(Yc=(zc=S.sdkInfo)==null?void 0:zc.jssdkVersion)!=null?Yc:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Xc=z();Xc.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:r,extra:t})=>{Qc(e,r,t)});Xc.registerCommand("ReportSDK.traceSystem",({event:e,info:r})=>{we(e,r)});St=new De,he=new Sn(we,St)});function el(){let e=null,r=window.fetch,t=()=>{e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let o=`
|
|
1
|
+
var IS=Object.create;var fn=Object.defineProperty,TS=Object.defineProperties,RS=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyDescriptors,qS=Object.getOwnPropertyNames,dn=Object.getOwnPropertySymbols,kS=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable;var Bu=(e,r,t)=>r in e?fn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,T=(e,r)=>{for(var t in r||(r={}))Eo.call(r,t)&&Bu(e,t,r[t]);if(dn)for(var t of dn(r))$u.call(r,t)&&Bu(e,t,r[t]);return e},C=(e,r)=>TS(e,AS(r));var Ae=(e,r)=>{var t={};for(var n in e)Eo.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&dn)for(var n of dn(e))r.indexOf(n)<0&&$u.call(e,n)&&(t[n]=e[n]);return t};var R=(e,r)=>()=>(e&&(r=e(e=0)),r);var f=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Hu=(e,r)=>{for(var t in r)fn(e,t,{get:r[t],enumerable:!0})},OS=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of qS(r))!Eo.call(e,i)&&i!==t&&fn(e,i,{get:()=>r[i],enumerable:!(n=RS(r,i))||n.enumerable});return e};var M=(e,r,t)=>(t=e!=null?IS(kS(e)):{},OS(r||!e||!e.__esModule?fn(t,"default",{value:e,enumerable:!0}):t,e));var E=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});function FS(e){return!!(e!=null&&e.__nativeBuffers__)}function Oo(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(t){return{}}if(typeof e!="object"||e===null)return{};if(!FS(e))return e;let r=e.__nativeBuffers__;if(delete e.__nativeBuffers__,r)for(let t=0;t<r.length;t++){let n=r[t];if(n){let i;n.value?i=n.value:n.base64&&(i=jS(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function MS(e={},r=!1){let t=e,n=[];for(let[i,o]of Object.entries(t))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=r?{value:o,key:i}:{base64:US(o),key:i};n.push(a),delete t[i]}return n.length>0&&(t.__nativeBuffers__=n),t}function KS(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function rc(e){return typeof e=="string"}function dt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function VS(e){return typeof e=="undefined"}function JS(e){return VS(e)||e===null}function tc(e){return typeof e=="function"}function WS(e){return dt(e)&&tc(e.then)}function nc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function ct(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function ix(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 cx(e){return new Promise(r=>ic(e)(r))}function ic(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function lx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new pt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function fx(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)px(e[n],r[n])}function px(e,r){if(rc(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(tc(r)){try{if(e instanceof r)return}catch(t){}if(!JS(e)&&e.constructor===r||r.length===1&&r.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 Ju(e,r){return`[${e}]:${r}`}function _x(e,r){Wu||(Ro=new mn({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ao=new mn({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),qo=new mn({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),r("onJoliboxEnterBackground",()=>{Ro.flush(),Ao.flush(),qo.flush()}),Wu=!0);function t(i){var o,a;let{method:s,args:u,startTime:c,isForeground:d,errMsg:l=`${s}:fail no errMsg`,errNo:p=0,__timing:m={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:h,invokeCallback:y}=m,v=(a=(o=l.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ro.report({status:v,method:n(s,u),errNo:`${p}`,errMsg:l,isForeground:d,duration:Date.now()-c}),c&&h&&y&&(Ao.report({status:v,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),qo.report({status:v,method:s,isForeground:d,duration:Number((Date.now()-y).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return t}function xx(e,r){let t=0,n=!0,i=Sx.resolveMap,o=_x(e,r);r("onJoliboxEnterBackground",()=>{n=!1}),r("onJoliboxEnterForeground",()=>{n=!0,ko.forEach(u=>jo(this,[u],function*({method:c,args:d,resolve:l}){let p=yield s(c,d);l(p)})),ko.length=0});let a=(u,c)=>{let d=i.get(Number(u));if(!d)return;let l=Oo(c);d(l),i.delete(Number(u))},s=(u,c)=>{var d,l;let p=Date.now(),m=`${n}`;t+=1;let h=new GS;if(i.set(t,h.resolve),!n&&vx.includes(u))return new Promise(q=>{ko.push({method:u,args:c,resolve:q})});let y=DS(tr({},{method:u,startTime:p,args:c,isForeground:m}),{invokeType:"js-bridge"}),v=!bx&&hx.includes(u),g=MS(c,v),_=v?g:JSON.stringify(g),x;if(u.endsWith("Sync")||gx.includes(u)?x=(d=e.call)==null?void 0:d.call(e,u,g,t):typeof _=="string"?x=e.invoke(u,_,t):x=(l=e.call)==null?void 0:l.call(e,u,_,t),x){try{typeof x=="string"&&(x=JSON.parse(x)),x=Oo(x)}catch(q){Uo.error(q)}return i.delete(t),x.errorCode&&(x.errorCode=Ju(u,x.errorCode)),o(tr(tr({},y),x)),x}return u.endsWith("Sync")&&i.delete(t),h.promise.then(q=>(q.errorCode&&(q.errorCode=Ju(u,q.errorCode)),o(tr(tr({},y),q)),q))};return{invokeNative:s,applyNative:(u,c)=>{let d=s(u,c);return WS(d)?d.then(l=>zu(u,l)):zu(u,d)},invokeHandler:a}}function zu(e,r){if(!dt(r)){Uo.warn(`[Jolibox SDK]${e} no response value`);return}let t=r,{errMsg:n,errNo:i,errorType:o,errorCode:a}=t,s=LS(t,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new XS(n,i,o,a);return s}function Ex(e){if(globalThis[pn])return globalThis[pn];let r=new No,t=new No,n=new mn({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return r.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[pn]={onNative:r.on.bind(r),offNative:r.off.bind(r),subscribe:t.on.bind(t),unsubscribe:t.off.bind(t),subscribeHandler(i,o,a){let s=Oo(o),u;if(s.__extra){u=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else u=s;if(i===oc){u.forEach(c=>{let[d,l]=c;try{t.emit(d.slice(ft.length),l,a)}catch(p){}});return}if(i.startsWith(ft)){t.emit(i.slice(ft.length),u,a);return}r.emit(i,u,a)}},globalThis[pn]}function Ix(e){let r=new Map,t;return(n,i,o,a)=>{if(a){let u=o?[o]:"*";e.publish(`${ft}${n}`,i,u);return}t||(t=Promise.resolve().then(()=>{r.forEach((u,c)=>{try{let d=c?[c]:"*";e.publish(oc,u,d)}catch(d){}}),t=void 0,r.clear()}));let s=r.get(o);s||(s=[],r.set(o,s)),s.push([`${ft}${n}`,i])}}function Tx(e){let{subscribeHandler:r,onNative:t,offNative:n,subscribe:i,unsubscribe:o}=Ex(e),{invokeNative:a,invokeHandler:s,applyNative:u}=xx(e,t),c=Ix(e);return{invokeHandler:s,subscribeHandler:r,applyNative:u,invokeNative:a,onNative:t,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function ac(e,r){return{params:e,__extra:{startTime:Date.now(),type:r}}}var PS,CS,NS,hn,Qu,Xu,Ku,tr,DS,LS,jo,jS,US,Zu,BS,$S,ec,HS,GS,zS,YS,vn,QS,XS,ZS,Io,Uo,Gu,ex,rx,tx,nx,ox,OF,Po,$,ax,sx,lt,pt,No,Do,ux,To,dx,PF,Lo,Vu,CF,mx,ft,hx,vx,gx,oc,yx,mn,Wu,Ro,Ao,qo,ko,bx,Fo,wx,Sx,pn,Mo,Ge,sc,uc,Rx,cc,Yu,be,F,qe,NF,Ax,lc,DF,LF,pe=R(()=>{"use strict";PS=Object.defineProperty,CS=Object.defineProperties,NS=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ku=(e,r,t)=>r in e?PS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tr=(e,r)=>{for(var t in r||(r={}))Qu.call(r,t)&&Ku(e,t,r[t]);if(hn)for(var t of hn(r))Xu.call(r,t)&&Ku(e,t,r[t]);return e},DS=(e,r)=>CS(e,NS(r)),LS=(e,r)=>{var t={};for(var n in e)Qu.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))r.indexOf(n)<0&&Xu.call(e,n)&&(t[n]=e[n]);return t},jo=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});jS=e=>{let r=atob(e),t=r.length,n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=r.charCodeAt(i);return n.buffer};US=e=>{let r="",t=new Uint8Array(e),n=t.byteLength;for(let i=0;i<n;i++)r+=String.fromCharCode(t[i]);return btoa(r)};Zu=Object.defineProperty,BS=Object.getOwnPropertyDescriptor,$S=(e,r)=>{for(var t in r)Zu(e,t,{get:r[t],enumerable:!0})},ec=(e,r,t,n)=>{for(var i=n>1?void 0:n?BS(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Zu(r,t,i),i},HS=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}GS=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};zS=(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))(zS||{}),YS=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}},vn=class extends YS{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},QS=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},XS=class extends vn{constructor(e,r,t,n){super(e),this.errNo=r,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=t,this.errorCode=n}},ZS=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Io=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Uo={log:ct("log"),warn:ct("warn"),info:ct("info"),error:ct("error"),debug:ct("debug")};Object.assign(globalThis,{logger:Uo});Gu=Symbol.for("Jolibox.canIUseMap"),ex={};globalThis[Gu]||(globalThis[Gu]=ex);rx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(rx||{}),tx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(tx||{}),nx=(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))(nx||{});ix();ox=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),OF={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")},Po=class Co{constructor(r){this.element=r,this.next=Co.Undefined,this.prev=Co.Undefined}};Po.Undefined=new Po(void 0);$=Po,ax=class{constructor(){this._first=$.Undefined,this._last=$.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===$.Undefined}clear(){let e=this._first;for(;e!==$.Undefined;){let r=e.next;e.prev=$.Undefined,e.next=$.Undefined,e=r}this._first=$.Undefined,this._last=$.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new $(e);if(this._first===$.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==$.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$.Undefined&&e.next!==$.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===$.Undefined&&e.next===$.Undefined?(this._first=$.Undefined,this._last=$.Undefined):e.next===$.Undefined?(this._last=this._last.prev,this._last.next=$.Undefined):e.prev===$.Undefined&&(this._first=this._first.next,this._first.prev=$.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$.Undefined;)yield e.element,e=e.next}},sx=0,lt=class{constructor(e){this.value=e,this.id=sx++}},pt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof lt&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new lt(r);return this._listeners?this._listeners instanceof lt?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof lt)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof lt?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},No=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new pt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e);if(t)t.fire({event:e,args:r});else{let n=this.cachedEventQueue.get(e);n||(n=new ax,this.cachedEventQueue.set(e,n)),n.push({args:r})}}},Do={};$S(Do,{None:()=>ux,filter:()=>lx,once:()=>ic,toPromise:()=>cx});ux=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});To=Symbol.for("Jolibox.hostEmitter"),dx=()=>{let e=new No;return globalThis[To]||(globalThis[To]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[To]},PF=dx();Lo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new pt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return fx(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};Lo=ec([nc],Lo);Vu=class{constructor(){this._onWillExecuteCommand=new pt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new pt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Lo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=KS(3e4)),this._starActivation}executeCommand(e,...r){return HS(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Do.toPromise(Do.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Vu=ec([nc],Vu);CF=Symbol.for("Jolibox.commands");mx=()=>ox(),ft="custom_event_",hx=[],vx=[],gx=["env","createRequestTask","login"],oc="__batch_event__",yx=e=>e==="pv"?e:"default",mn=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:r,interval:t=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=r,this.interval=t,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=yx(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 r=(t,n,i,o)=>{let a=n.shift();if(a){let s=o[a];t[s]||(t[s]={}),r(t[s],n,i,o)}else t[i]||(t[i]=[]),t[i].push(o[i])};r(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let r=(n,i,o,a)=>{let s=i.shift();if(!s&&dt(a))throw new Io(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);if(s){let u=[];if(dt(a))u.push(...Object.keys(a));else if(rc(a)){if(i.length>0)throw new Io(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);u.push(a)}else throw new Io(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(t)}`);u.forEach(c=>{n[c]||(n[c]={});let d=dt(a)?a[c]:a;r(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},t={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};r(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={}}},Wu=!1;ko=[],bx=!1,Fo=Symbol.for("Jolibox.invokeResolverInstance"),wx=new Map;globalThis[Fo]||(globalThis[Fo]=wx);Sx={get resolveMap(){return globalThis[Fo]}};pn=Symbol.for("Jolibox.subscribeInstance");Ge={trigger(){},exit(){return Promise.resolve(!1)},onReady(e){Ge.trigger=e},onDoExit(e){Ge.exit=e}},sc=e=>{let r=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!r)e.onError(new QS("native env failed"));else{let{data:t}=JSON.parse(r);return t!=null?t:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,r=(i="")=>{Ge.trigger(),e.onDocumentReady.postMessage({path:i})},t=i=>jo(void 0,null,function*(){let o=yield Ge.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Mo={onDocumentReady:r,doExit:t,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ac(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:r,env:sc,doExit:t};globalThis.joliboxJSCore=tr({},n)}if(window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,r=(i="")=>{Ge.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},t=i=>jo(void 0,null,function*(){let o=yield Ge.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});Mo={onDocumentReady:r,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:t,publish(i,o,a){let s=ac(o,"joliboxJSCore");e.publish({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:r,env:sc,doExit:t};globalThis.joliboxJSCore=tr({},n)}uc=Mo;if(!uc&&mx())throw new ZS("No joliboxJScore is found, native bridge not found.");Rx=tr({},uc),cc=Tx(Rx),{invokeHandler:Yu}=cc,{applyNative:be,invokeNative:F,onNative:qe,offNative:NF,subscribeHandler:Ax,publish:lc,subscribe:DF,unsubscribe:LF}=cc;globalThis.joliboxJSBridge={callHandler:Yu,invokeHandler:Yu,subscribeHandler:Ax}});function Dx(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function gt(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function hc(e){return typeof e=="object"&&Array.isArray(e)}function yt(e){return e===!0||e===!1}function vc(e){return typeof e=="undefined"}function Lx(e){return vc(e)||e===null}function Fx(e){return typeof e=="function"}function gc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function yc(e,r,t){if(typeof t!="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],u=o[a],c=t(s,u,a,i,o);c!==void 0?i[a]=c:pc(u)&&pc(s)?i[a]=n(Px({},s),u):Array.isArray(u)&&Array.isArray(s)?i[a]=[...s,...u]:i[a]=u}return i}return n(e,r)}function pc(e){return e&&typeof e=="object"&&e.constructor===Object}function _c(e,r){if(Array.isArray(e))return e.concat(r)}function _t(e,r,t={}){let n=null,i,o,a,{leading:s=!1,trailing:u=!0}=t,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...l){i=l,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,u&&!p&&c()},r),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function Ux(e,r){return(...t)=>r(e,...t)}function yn(e){return r=>Ux(r,function(t,...n){if(typeof t=="function")try{return t.apply(this,n)}catch(i){e(new bt(`${i}`))}})}function mt(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function Zo(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 Wx(e){return new Promise(r=>Ic(e)(r))}function Ic(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function zx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new vt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function Qx(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)Xx(e[n],r[n])}function Xx(e,r){if(gt(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(Fx(r)){try{if(e instanceof r)return}catch(t){}if(!Lx(e)&&e.constructor===r||r.length===1&&r.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 Zx(){return typeof globalThis!="undefined"?globalThis[Tc]:void 0}function e0(e){typeof globalThis!="undefined"&&(globalThis[Tc]=e)}function z(){let e=Zx();if(e)return e;let r=new gn,t=new Vo,n={registerCommand(i,o,a){r.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return t.executeCommand(i,...o)},excuteCommandSync(i,...o){return t.executeCommandThowErr(i,...o)}};return e0(n),n}var Jo,qx,dc,kx,Ox,fc,Px,Cx,mc,Nx,nr,jx,Wo,zo,bc,wc,bt,Sc,xc,wt,Yo,Ne,$o,Mx,Qo,Bx,Xo,$x,_n,XF,Hx,Kx,Ec,Ho,H,Gx,Vx,ht,vt,De,Go,Jx,Bo,Yx,Le,gn,Vo,Tc,P=R(()=>{"use strict";Jo=Object.defineProperty,qx=Object.getOwnPropertyDescriptor,dc=Object.getOwnPropertySymbols,kx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,fc=(e,r,t)=>r in e?Jo(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Px=(e,r)=>{for(var t in r||(r={}))kx.call(r,t)&&fc(e,t,r[t]);if(dc)for(var t of dc(r))Ox.call(r,t)&&fc(e,t,r[t]);return e},Cx=(e,r)=>{for(var t in r)Jo(e,t,{get:r[t],enumerable:!0})},mc=(e,r,t,n)=>{for(var i=n>1?void 0:n?qx(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Jo(r,t,i),i},Nx=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}nr=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};jx=(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))(jx||{}),Wo=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}},zo=class extends Wo{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},bc=class extends Wo{constructor(){super(...arguments),this.kind="USER_ERROR"}},wc=class extends bc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},bt=class extends bc{constructor(e,r,t){super(e),this.message=e,this.errNo=r,this.name="USER_CUSTOM_ERROR",this.errMsg=e,t&&(this.extra=Object.assign({},this.extra,t))}},Sc=class extends zo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},xc=class extends zo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},wt=class extends Wo{constructor(e,r,t,n,i){super(e),this.message=e,this.code=r,this.kind="API_ERROR",this.name="API_ERROR",t&&(this.errorType=t),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}}},Yo=class extends zo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ne={log:mt("log"),warn:mt("warn"),info:mt("info"),error:mt("error"),debug:mt("debug")};Object.assign(globalThis,{logger:Ne});$o=Symbol.for("Jolibox.canIUseMap"),Mx={};globalThis[$o]||(globalThis[$o]=Mx);Qo={get config(){return globalThis[$o]}},Bx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Bx||{}),Xo=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Xo||{}),$x=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))($x||{}),_n=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)});Zo();XF={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")},Hx="device_id",Kx=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,_n()),window.__joliboxLocalStorage__.getItem(e)),Ec=()=>new URLSearchParams(window.location.search).get("deviceId")||Kx(Hx),Ho=class Ko{constructor(r){this.element=r,this.next=Ko.Undefined,this.prev=Ko.Undefined}};Ho.Undefined=new Ho(void 0);H=Ho,Gx=class{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let e=this._first;for(;e!==H.Undefined;){let r=e.next;e.prev=H.Undefined,e.next=H.Undefined,e=r}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new H(e);if(this._first===H.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==H.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==H.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==H.Undefined&&e.next!==H.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===H.Undefined&&e.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):e.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):e.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==H.Undefined;)yield e.element,e=e.next}},Vx=0,ht=class{constructor(e){this.value=e,this.id=Vx++}},vt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ht&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new ht(r);return this._listeners?this._listeners instanceof ht?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof ht)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ht?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},De=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new vt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e);if(t)t.fire({event:e,args:r});else{let n=this.cachedEventQueue.get(e);n||(n=new Gx,this.cachedEventQueue.set(e,n)),n.push({args:r})}}},Go={};Cx(Go,{None:()=>Jx,filter:()=>zx,once:()=>Ic,toPromise:()=>Wx});Jx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Bo=Symbol.for("Jolibox.hostEmitter"),Yx=()=>{let e=new De;return globalThis[Bo]||(globalThis[Bo]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[Bo]},Le=Yx();gn=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new vt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return Qx(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};gn=mc([gc],gn);Vo=class{constructor(){this._onWillExecuteCommand=new vt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new vt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new gn,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Dx(3e4)),this._starActivation}executeCommand(e,...r){return Nx(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Go.toPromise(Go.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Vo=mc([gc],Vo);Tc=Symbol.for("Jolibox.commands")});function le(e,r={}){ea.emit("ERROR_REPORT",{error:e,options:r})}var ea,_r,Fe=R(()=>{"use strict";P();P();ea=new De,_r=new De;le.debounce=_t(le,50,{leading:!0})});var ra,r0,Rc,Ac,qc=R(()=>{"use strict";P();Fe();ra=e=>{let r=e.replace(/-/g,"+").replace(/_/g,"/"),t=r.length%4===0?"":"=".repeat(4-r.length%4),n=atob(r+t);try{return JSON.parse(n)}catch(i){return{}}},r0=e=>{let r=JSON.stringify(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rc=e=>{var r;try{let i=(r=new URL(e).searchParams.get("joliSource"))==null?void 0:r.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:ra(o),payloadJson:ra(a),signature:ra(s)}}else throw"joli_source is missing"}catch(t){return le(new Sc(`${e} not a valid schema: ${t}`)),{headerJson:{},payloadJson:{},signature:{}}}},Ac=(e,r)=>{let t=r.split(".");if(t&&t.length===3){let n=t[0],i=r0(e),o=t[2];return`${n}.${i}.${o}`}return r}});var t0,ta,kc=R(()=>{"use strict";P();t0="1.1.16",ta=()=>t0});var n0,Oc,na,Pc,de,i0,S,ae=R(()=>{"use strict";P();qc();kc();P();n0={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ec(),pixelRatio:window.devicePixelRatio||1,platform:"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:ta()},schema:window.location.href,platform:"h5"},na=(Oc=globalThis.joliboxJSCore)==null?void 0:Oc.env,de=Object.assign({},(Pc=na==null?void 0:na())!=null?Pc:n0),i0=()=>{var p,m,h,y,v,g,_,x,q,V,I;let{payloadJson:e,headerJson:r,signature:t}=de.schema.length?Rc(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(h=(m=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?m:o.get("gameId"))!=null?h:"",s=(g=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?g:n,u=!!((x=(_=e==null?void 0:e.testAdsMode)!=null?_:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(I=(V=(q=e==null?void 0:e.joliboxEnv)!=null?q:e==null?void 0:e.__joliboxEnv)!=null?V:o.get("joliboxEnv"))!=null?I:"production",d=c==="staging",l=r==null?void 0:r.channel;return{get testMode(){return d},get testAdsMode(){return u},get joliboxEnv(){return c},get joliSource(){var w;return(w=o.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=r==null?void 0:r.ver)!=null?w:ta()},get mpType(){var w,K;return(K=(w=r==null?void 0:r.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?K:"game"},get platform(){var w;return(w=de.platform)!=null?w:de.deviceInfo.platform},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var w,K;return(K=(w=de.clientSessionId)!=null?w:s)!=null?K:n},get channel(){return l},get webviewId(){var w;return(w=de.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"},onEnvConfigChanged:w=>{yc(de,w,_c)},encodeJoliSourceQuery:w=>{var K,xe;return r&&t?Ac(T(T({},e),w),(K=o.get("joliSource"))!=null?K:""):(xe=o.get("joliSource"))!=null?xe:""}}},S=i0()});var ia,Nc,o0,a0,Cc,s0,Dc=R(()=>{"use strict";P();Fe();ae();P();ia=!1,Nc=(e,r)=>e==null?!1:r in e,o0=e=>Nc(e,"kind"),a0=e=>{let r=e.toLowerCase().split("_");return r[0]+r.slice(1).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")},Cc=(e,r={},t)=>{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:a0(e.name)},i=C(T({},n),{env:r.environment,isFromUser:t});t?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},s0=e=>Nc(e,"kind")&&e.kind==="USER_ERROR";ea.on("ERROR_REPORT",({error:e,options:r})=>{if(ia)return;ia=!0;let t=o0(e)&&e.raw?e.raw:e;try{let n=s0(e);Cc(e,r,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Yo(`${i}, origin error: ${t.message}`);Ne.error(o),Cc(new Yo(o.message),{environment:r.environment},!1)}finally{ia=!1}})});var ir,oa,Nr=R(()=>{"use strict";Fe();P();Fe();ir=(e,r)=>{var t,n;return new wt((n=(t=r==null?void 0:r.errMsg)!=null?t:e.msg)!=null?n:"",e.code,e.type)},oa=e=>new wc(e)});var Lc=R(()=>{"use strict";Dc();Nr();P();pe();_r.on("GLOBAL_ERROR",(e,r)=>{var n;let t={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:t})});_r.on("GLOBAL_USER_ERROR",(e,r)=>{Ne.log("UserError",e,r)})});var aa=R(()=>{"use strict"});function Fc(e,r){let t=(n,i,o)=>{let a=C(T({tag:n},r),{extra:T({},i)});n=="globalJsError"?le(new xc(JSON.stringify(a))):e("systemLog",a,o)};return t.debounce=_t(t,500,{leading:!0}),t}function jc(e){let r=(t,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:t,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return r.debounce=_t(r,500,{leading:!0}),r}var Uc=R(()=>{"use strict";P();P();Fe()});function Mc(e,r){let t=Fc(e,r),n=jc(t);return{track:t,trackPerformance:n}}var Bc=R(()=>{"use strict";Uc()});var $c=R(()=>{"use strict";ae();P();P()});var Hc=R(()=>{"use strict";Bc();aa();$c()});var bn,Kc=R(()=>{"use strict";bn=class{constructor(r,t){this.eventEmitter=r;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(r=>{this.reporter({event:"PLAY_GAME",params:{duration:r}}),this.tracker("PlayGame",{duration:r})});this.interval=t!=null?t:5*1e3,r.on("visible",n=>{this.visible=n})}start(r){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:r!=null?r:0}}),this.tracker("OpenGame",{duration:r!=null?r:0}),this.timer.start()}close(r){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:r}}),this.tracker("CloseGame",{duration:r}),this.timer.stop()}createRAFTimer(r){let t=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let m=Date.now(),h=m-t;h>=this.interval&&(this.visible&&(a+=h,r(a)),t=m),n=requestAnimationFrame(s)},u=()=>{d(),t=Date.now(),i=window.setInterval(()=>{if(!o)return;let m=Date.now();m-t>=this.interval&&(t=m)},this.interval)},c=()=>{l(),t=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},l=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",m=>{o&&(console.log("visible",m),m?c():u())});let p=this.visible;return{start(){o||(o=!0,p?c():u())},stop(){o=!1,d(),l()}}}}});var sa=R(()=>{"use strict"});function Vc(e,r,t){let{response:n,startTime:i,endTime:o,requestFrom:a}=t,{errMsg:s="",profile:u={}}=n,d={duration:o-i,request_type:e,url:r.split("?")[0],result:t.state,error_msg:t.state==="fail"?s:"",socket_reused:u.socketReused?1:0,request_from:a};(a==="public"&&Gc<c0||a==="inner")&&(d.joli_request_number=Gc++,setTimeout(()=>{we("joliboxNetRequestResult",d)},500))}var Gc,c0,Jc=R(()=>{"use strict";sa();or();Gc=0,c0=10});function wn(e,r,t){var u,c,d;let n=new Map,i=(u=t==null?void 0:t.baseUrl)!=null?u:"https://api.jolibox.com",o=(c=t==null?void 0:t.type)!=null?c:"public",a=(d=t==null?void 0:t.defaultHeaders)!=null?d:{};return qe("onRequestTaskStateChange",l=>{if(typeof l.requestTaskId!="string")return;let p=n.get(l.requestTaskId);if(p)if(l.state==="success"){let m=l,{requestTaskId:y,state:v}=m,g=Ae(m,["requestTaskId","state"]);l.statusCode===200?p.resolve(g):p.reject(g),n.delete(y)}else if(l.state==="fail"){let h=l,{requestTaskId:y,state:v}=h,g=Ae(h,["requestTaskId","state"]);p.reject(g),n.delete(y)}else Ne.warn("onRequestTaskStateChange unknown event",l)}),Le.on("onLoginComplete",({isLogin:l,token:p})=>{l&&p&&(a["X-JOLI-TOKEN"]=p)}),(m,...h)=>E(this,[m,...h],function*(l,p={}){let y=Date.now(),v=l0(l,C(T({},p),{baseUrl:i})),{method:g="GET",responseType:_="text",dataType:x="json",timeout:q,enableCache:V=!1,appendHostCookie:I=!0}=p,w=Object.assign({"content-type":"application/json"},a,p.header),K={url:v,method:g,header:w,enableCache:V,responseType:_,appendHostCookie:I};if(g=="POST"||g=="PUT"){let Ce=f0(p.data,w["content-type"]);K.data=Ce}q&&Object.assign(K,{timeout:q});let{data:{requestTaskId:xe}}=F(e,K);if(typeof xe!="string")throw ir({code:-1,msg:"requestTaskId is not a string"});let Cr=(Ce,Ke)=>{Vc("request",v,{state:Ce,startTime:y,endTime:Date.now(),params:K,response:Ke,requestId:xe,requestFrom:o=="public"?"public":"inner"})},{resolve:Ee,reject:gr,promise:wS}=new nr;n.set(xe,{resolve:Ee,reject:gr});try{let Ce=yield wS;Cr("success",Ce);let{data:Ke}=Ce;return x==="json"&&typeof Ke=="string"&&(Ke=d0(Ke)),{url:v,timeout:q,method:g,response:C(T({},Ce),{data:Ke})}}catch(Ce){let Ke=Ce;if(yr(Ke)){let{errMsg:ln,prefetchDetail:SS,isPrefetch:xS,errNo:ES}=Ke;gt(ln)&&(Cr("fail",{errMsg:ln,isPrefetch:xS,prefetchDetail:SS}),le(ir({code:-1,msg:ln},{errNo:ES,errMsg:ln})))}throw Ce}})}function d0(e){try{return JSON.parse(e.trim())}catch(r){return e}}function f0(e,r="application/json"){let t=r.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:t.includes("application/x-www-form-urlencoded")||t.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var l0,ua=R(()=>{"use strict";P();Jc();sa();pe();Fe();Nr();l0=(e,r)=>{if(/^https?:\/\//.test(e))return e;let t=r==null?void 0:r.query,i=new URLSearchParams(t).toString();return r!=null&&r.baseUrl?`${r.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var ca,Wc,me,Dr=R(()=>{"use strict";ua();ae();ca={};(Wc=S.hostUserInfo)!=null&&Wc.token&&(ca["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(ca["x-joli-source"]=S.joliSource);me=wn("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:ca})});var Sn,zc=R(()=>{"use strict";ae();Kc();Dr();pe();Sn=class extends bn{constructor(r,t,n){super(t,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r}reporter(r){return E(this,null,function*(){let{event:t,params:n}=r,i=[];i.push(me("/api/base/app-event",{method:"POST",data:{eventType:t,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)}})),yield Promise.all(i)})}reportToNative(r){return E(this,null,function*(){let{event:t,params:n}=r;yield be("userTrackAsync",{event:t,params:T({},n),gameId:this.gameId})})}tracker(r,t=null){this.track(r,t)}}});var el={};Hu(el,{nativeTaskEmitter:()=>St,taskTracker:()=>he,track:()=>we,trackPerformance:()=>Xc});var p0,Yc,Qc,we,Xc,Zc,St,he,or=R(()=>{"use strict";Lc();P();aa();Hc();ae();zc();pe();p0=(e,r,t)=>{var a,s;let n=r,i=yr(n.extra)?n.extra:gt(n.extra)?JSON.parse(n.extra):{},o=C(T({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:""});F("trackAsync",{event:e,data:o,webviewId:t})},{track:we,trackPerformance:Xc}=Mc(p0,{type:Xo.AppSDK,platform:"native",jssdk_version:(Qc=(Yc=S.sdkInfo)==null?void 0:Yc.jssdkVersion)!=null?Qc:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Zc=z();Zc.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:r,extra:t})=>{Xc(e,r,t)});Zc.registerCommand("ReportSDK.traceSystem",({event:e,info:r})=>{we(e,r)});St=new De,he=new Sn(we,St)});function rl(){let e=null,r=window.fetch,t=()=>{e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let o=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,8 +16,8 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=o;let a=document.head||document.getElementsByTagName("head")[0];a.insertBefore(e,a.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},n=()=>{function o(s){return E(this,null,function*(){let u=s instanceof URL?s.href:s,c=new Promise((d,l)=>{let p=new XMLHttpRequest;p.open("GET",u),p.responseType="arraybuffer",p.addEventListener("load",()=>d(p.response)),p.addEventListener("error",l),p.send()});try{let d=yield c;return new Response(d,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(d){throw console.error("Failed to load wasm:",d),d}})}let a=window.fetch;window.fetch=(s,u)=>{let c=s instanceof URL?s.href:s.toString();return c.endsWith(".wasm")?o(c):a(s,u)}},i=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=r};return t(),n(),i}var rl=R(()=>{"use strict"});var xn,tl=R(()=>{"use strict";xn=class{constructor(r){this.track=r;this.adBreakIsShowing=!1;this.reportPageJumpOut=()=>{this.track("AdBreakJumpOut",{context:"AdsActionDetection"})};this.reportPageHide=()=>{this.track("AdBreakHide",{context:"AdsActionDetection"})};window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",t=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}}});var En,d0,f0,p0,m0,nl=R(()=>{"use strict";P();Xo();En=class{constructor(r,t,n,i){this.track=r;this.httpClient=t;this.checkNetwork=n;this.checkAdsDisplayPermission=r=>{if(!this.checkNetwork())return{reason:"NETWORK_NOT_OK"};let t=this.checkShouldBanInitial();if(t)return{reason:t};let n=this.checkShouldBanForSession(r);if(n)return{reason:n};let i=this.checkShouldBanHighFreq(r);if(i)return i;let o=this.checkShouldBanForTime(r);return o?{reason:o}:{reason:"ALLOWED"}};var p,m,h,y,v,g,_;let o=(p=i==null?void 0:i.maxAllowedAdsForTime)!=null?p:8,a=(m=i==null?void 0:i.banForTimeThreshold)!=null?m:6e4,s=(h=i==null?void 0:i.bannedReleaseTime)!=null?h:6e4,u=(y=i==null?void 0:i.maxAllowedAdsForSession)!=null?y:200,c=(v=i==null?void 0:i.banForSessionThreshold)!=null?v:6e5,d=(g=i==null?void 0:i.initialThreshold)!=null?g:2e3,l=(_=i==null?void 0:i.highFreqThreshold)!=null?_:2e3;this.checkShouldBanInitial=p0(d),this.checkShouldBanHighFreq=m0(l),this.checkShouldBanForTime=f0(o,a,s),this.checkShouldBanForSession=d0(u,c)}report(r,t){let n=t?{reason:r,count:t}:{reason:r};this.track("PreventAdsCheating",n),this.httpClient.post("/api/base/app-event",{data:{eventType:"PREVENT_ADS_CHEATING",adsInfo:n}})}},d0=(e,r)=>{let t=!1,n=[];return o=>{if(t)return"BANNED_FOR_SESSION";let a=Date.now();if(n=n.concat({timestamp:a,type:o}),n.length!==1&&(n.length>e&&(n=n.slice(-e)),n.length===e&&a-n[0].timestamp<=r))return t=!0,"BANNED_FOR_SESSION"}},f0=(e,r,t)=>{let n=null,i=d=>{n&&(window.clearTimeout(n),n=null),n=window.setTimeout(()=>{u.value=!1,n=null},d)},o="jolibox-sdk-ads-callbreak-timestamps",a="jolibox-sdk-ads-ban-for-time",s={_records:[],init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(o))!=null?d:"[]");Array.isArray(l)?this._records=l:this._records=[]}catch(l){this._records=[]}},get values(){return this._records},set values(d){try{window.__joliboxLocalStorage__.setItem(o,JSON.stringify(d))}catch(l){}this._records=d}},u={_record:!1,init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(a))!=null?d:"false");typeof l=="boolean"&&(this._record=l)}catch(l){this._record=!1}if(this._record){let l=s.values[s.values.length-1],p=l?Date.now()-l.timestamp:t;p<=t&&p>0?i(p):this._record=!1}},get value(){return this._record},set value(d){try{window.__joliboxLocalStorage__.setItem(a,JSON.stringify(d))}catch(l){}this._record=d}};return s.init(),u.init(),d=>{if(u.value)return"WAITING_BANNED_RELEASE";let l=Date.now();if(s.values=s.values.concat({timestamp:l,type:d}),s.values.length!==1&&(s.values.length>e&&(s.values=s.values.slice(-e)),s.values.length===e&&l-s.values[0].timestamp<=r))return u.value=!0,i(t),"BANNED_FOR_TIME"}},p0=e=>{let r=Date.now();return()=>{if(Date.now()-r<=e)return"BLOCK_INITIAL"}},m0=(e=2e3)=>{let r=0,t=null;return i=>{if(i==="reward"){if(t)return r+=1,{reason:"HOLDING_HIGH_FREQ",info:{count:r}};t=window.setTimeout(()=>{t&&(window.clearTimeout(t),t=0,r=0)},e)}}}});var In,il=R(()=>{"use strict";ae();In=class{constructor(r){this.httpClient=r;this.configs=null;this.firstRun=!0;this.init()}init(){return E(this,null,function*(){try{this.configs=yield this.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config")}catch(r){}})}shouldBypassCallingInterstitial(){var t,n;let r;if(!this.configs)this.init(),r=!this.firstRun;else{let i=(t=S.channel)!=null?t:"",o=this.configs[i],a=(n=o==null?void 0:o.interstitialRate)!=null?n:1;r=Math.random()<a}return this.firstRun=!1,r}}});var Lr,Tn,ca=R(()=>{"use strict";tl();nl();ae();il();P();Lr=new De,Tn=class{constructor(r,t,n){this.track=r;this.httpClient=t;this.checkNetwork=n;this.configured=!1;this.config={};this.getGameId=()=>S.mpId;this.getTestAdsMode=()=>S.testAdsMode;this.asyncLoad=()=>E(this,null,function*(){var a,s,u,c,d;let r="ca-pub-7171363994453626",t,n,i=window.encodeURIComponent(window.btoa((a=this.getGameId())!=null?a:"")),o=(s=this.getTestAdsMode())!=null?s:!1;try{let l=yield this.httpClient.get("/public/ads",{query:{objectId:i,testAdsMode:`${o}`}});r=(u=l.data)==null?void 0:u.clientId,t=(c=l.data)==null?void 0:c.channelId,n=(d=l.data)==null?void 0:d.unitId}catch(l){console.error("Failed to fetch client info",l)}this.clientId=r,this.channelId=t,this.unitId=n});this.asyncInit=r=>E(this,null,function*(){var i;if(typeof window=="undefined")return;yield this.asyncLoad();let t="google-adsense",n=(i=this.getTestAdsMode())!=null?i:!1;if(!document.getElementById(t)&&this.clientId){let o=document.createElement("script");o.id=t,o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.clientId}`,n&&o.setAttribute("data-adbreak-test","on"),this.channelId&&o.setAttribute("data-ad-channel",this.channelId),document.head.appendChild(o),this.track("LoadAdsenseCompleted",null)}});this.push=(r={})=>{window.adsbygoogle.push(r)};this.wrapAdBreakParams=r=>{let t=!1,n=r.adBreakDone,i=a=>{var s;t=!0,this.adsActionDetection.adBreakIsShowing=!1,this.track("CallAdBreakDone",{breakType:a.breakType,breakName:(s=a.breakName)!=null?s:"",breakFormat:a.breakFormat,breakStatus:a.breakStatus}),n&&n(a)};if(r.adBreakDone=i,r.type==="reward"){let a=r.beforeReward,s=c=>()=>{this.track("CallShowAdFn",null),c()},u=c=>{t=!0,a&&a(s(c))};r.beforeReward=u,window.setTimeout(()=>{var c,d;t||(this.track("CallAdBreakTimeout",{type:r.type}),(d=r.adBreakDone)==null||d.call(r,{breakType:r.type,breakName:(c=r.name)!=null?c:"",breakFormat:"reward",breakStatus:"timeout"}))},5e3)}if((a=>a.type==="preroll")(r)){Lr.emit("isAdShowing",!0);let a=r.adBreakDone,s=u=>{Lr.emit("isAdShowing",!1),a&&a(u)};return C(T({},r),{adBreakDone:s})}else{let a=r.beforeAd,s=r.afterAd,u=()=>{var d;t=!0,Lr.emit("isAdShowing",!0),this.track("CallBeforeAd",{type:r.type,name:(d=r.name)!=null?d:""}),a&&a()},c=()=>{var d;t=!0,Lr.emit("isAdShowing",!1),this.track("CallAfterAd",{type:r.type,name:(d=r.name)!=null?d:""}),s&&s()};return C(T({},r),{beforeAd:u,afterAd:c})}};this.adConfig=r=>{let i=r,{onReady:t}=i,n=Ae(i,["onReady"]);this.track("CallAdConfig",n),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(r))};this.adBreak=r=>{var s,u,c,d,l,p;if(!this.getGameId()){console.warn("Game ID is not set, skip calling adBreak");return}if(r.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(s=r.adBreakDone)==null||s.call(r,{breakType:r.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}let{reason:t,info:n}=this.antiCheating.checkAdsDisplayPermission(r.type==="reward"?"reward":"interstitial");switch(t){case"NETWORK_NOT_OK":case"BANNED_FOR_SESSION":(u=r.adBreakDone)==null||u.call(r,{breakType:r.type,breakName:t,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"}),this.antiCheating.report(t);return;case"BLOCK_INITIAL":case"BANNED_FOR_TIME":case"WAITING_BANNED_RELEASE":(c=r.adBreakDone)==null||c.call(r,{breakType:r.type,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"}),this.antiCheating.report(t);return;case"HOLDING_HIGH_FREQ":(l=r.adBreakDone)==null||l.call(r,{breakFormat:r.type==="reward"?"reward":"interstitial",breakName:"",breakStatus:((d=n==null?void 0:n.count)!=null?d:0)>6?"other":"frequencyCapped",breakType:r.type}),n!=null&&n.count&&n.count!==0&&n.count%3===0&&this.antiCheating.report(t,n==null?void 0:n.count);return;default:break}let i=r.type,o;switch(i){case"preroll":o={type:i};break;case"start":case"pause":case"next":case"browse":case"reward":o={type:i,name:(p=r.name)!=null?p:""};break}this.adsActionDetection.adBreakIsShowing=!0,this.track("CallAdBreak",o);let a=this.wrapAdBreakParams(r);this.push(a),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")};this.adUnit=r=>E(this,null,function*(){var p,m,h,y;if(this.track("CallAdUnit",{adFormat:(m=(p=r.adFormat)==null?void 0:p.toString())!=null?m:null,fullWidthResponsive:(h=r.fullWidthResponsive)!=null?h:null}),this.clientId||(yield this.asyncLoad()),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:t,slot:n,adFormat:i,fullWidthResponsive:o,style:a}=r,s;if(!t)throw new Error("targeting element is required");if(typeof t=="string"?s=document.querySelector(t):s=t,!s)throw new Error("targeting element not found");let u=n;if(u||(u=this.unitId),!u)throw new Error("slot is required");let c=typeof i=="object"&&Array.isArray(i)?i.join(", "):i,d=document.createElement("ins");if(d.className="adsbygoogle",d.id="jolibox-ads",d.style.display="block",d.setAttribute("data-ad-client",this.clientId),d.setAttribute("data-ad-slot",u),c&&d.setAttribute("data-ad-format",c),o&&d.setAttribute("data-full-width-responsive",o),a&&d.setAttribute("style",a),(y=this.getTestAdsMode())!=null?y:!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",d.style.position="relative",s.appendChild(d),d.appendChild(v)}else s.appendChild(d),new MutationObserver(g=>{g.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let x=d.getAttribute("data-ad-status");this.track("AdSenseUnitStatusChanged",{status:x!=null?x:"null"})}})}).observe(d,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})});this.antiCheating=new En(r,t,n),this.adsActionDetection=new xn(this.track),this.channelPolicy=new In(t)}init(r){this.track("CallAdsInit",null),typeof window!="undefined"&&(this.config=r!=null?r:{},window.adsbygoogle=window.adsbygoogle||[],this.asyncInit(r))}}});function Ve(e,r){for(var t in r)e[t]=r[t];return e}function pa(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,r,t){var n,i,o,a={};for(o in r)o=="key"?n=r[o]:o=="ref"?i=r[o]:a[o]=r[o];if(arguments.length>2&&(a.children=arguments.length>3?kn.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return An(e,a,n,i,null)}function An(e,r,t,n,i){var o={type:e,props:r,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++cl:i,__i:-1,__u:0};return i==null&&k.vnode!=null&&k.vnode(o),o}function ar(e){return e.children}function je(e,r){this.props=e,this.context=r}function Fr(e,r){if(r==null)return e.__?Fr(e.__,e.__i+1):null;for(var t;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?Fr(e):null}function ml(e){var r,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return ml(e)}}function al(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!qn.__r++||ol!==k.debounceRendering)&&((ol=k.debounceRendering)||ll)(qn)}function qn(){for(var e,r,t,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(dl),e=br.shift(),s=br.length,e.__d&&(t=void 0,i=(n=(r=e).__v).__e,o=[],a=[],r.__P&&((t=Ve({},n)).__v=n.__v+1,k.vnode&&k.vnode(t),ma(r.__P,t,n,r.__n,r.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Fr(n):i,!!(32&n.__u),a),t.__v=n.__v,t.__.__k[t.__i]=t,gl(o,t,a),t.__e!=i&&ml(t)));qn.__r=0}function hl(e,r,t,n,i,o,a,s,u,c,d){var l,p,m,h,y,v,g=n&&n.__k||pl,_=r.length;for(u=y0(t,r,g,u,_),l=0;l<_;l++)(m=t.__k[l])!=null&&(p=m.__i===-1?xt:g[m.__i]||xt,m.__i=l,v=ma(e,m,p,i,o,a,s,u,c,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&ha(p.ref,null,m),d.push(m.ref,m.__c||h,m)),y==null&&h!=null&&(y=h),4&m.__u||p.__k===m.__k?u=vl(m,u,e):typeof m.type=="function"&&v!==void 0?u=v:h&&(u=h.nextSibling),m.__u&=-7);return t.__e=y,u}function y0(e,r,t,n,i){var o,a,s,u,c,d=t.length,l=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=r[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(u=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?An(null,a,null,null,null):Et(a)?An(ar,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?An(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=_0(a,t,u,l))!==-1&&(l--,(s=t[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,a.__u|=4))):e.__k[o]=null;if(l)for(o=0;o<d;o++)(s=t[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Fr(s)),_l(s,s));return n}function vl(e,r,t){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,r=vl(n[i],r,t));return r}e.__e!=r&&(r&&e.type&&!t.contains(r)&&(r=Fr(e)),t.insertBefore(e.__e,r||null),r=e.__e);do r=r&&r.nextSibling;while(r!=null&&r.nodeType==8);return r}function It(e,r){return r=r||[],e==null||typeof e=="boolean"||(Et(e)?e.some(function(t){It(t,r)}):r.push(e)),r}function _0(e,r,t,n){var i,o,a=e.key,s=e.type,u=r[t];if(u===null&&e.key==null||u&&a==u.key&&s===u.type&&!(2&u.__u))return t;if(n>(u!=null&&!(2&u.__u)?1:0))for(i=t-1,o=t+1;i>=0||o<r.length;){if(i>=0){if((u=r[i])&&!(2&u.__u)&&a==u.key&&s===u.type)return i;i--}if(o<r.length){if((u=r[o])&&!(2&u.__u)&&a==u.key&&s===u.type)return o;o++}}return-1}function sl(e,r,t){r[0]=="-"?e.setProperty(r,t==null?"":t):e[r]=t==null?"":typeof t!="number"||g0.test(r)?t:t+"px"}function Rn(e,r,t,n,i){var o;e:if(r=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(r in n)t&&r in t||sl(e.style,r,"");if(t)for(r in t)n&&t[r]===n[r]||sl(e.style,r,t[r])}else if(r[0]=="o"&&r[1]=="n")o=r!=(r=r.replace(fl,"$1")),r=r.toLowerCase()in e||r=="onFocusOut"||r=="onFocusIn"?r.toLowerCase().slice(2):r.slice(2),e.l||(e.l={}),e.l[r+o]=t,t?n?t.t=n.t:(t.t=fa,e.addEventListener(r,o?da:la,o)):e.removeEventListener(r,o?da:la,o);else{if(i=="http://www.w3.org/2000/svg")r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!="width"&&r!="height"&&r!="href"&&r!="list"&&r!="form"&&r!="tabIndex"&&r!="download"&&r!="rowSpan"&&r!="colSpan"&&r!="role"&&r!="popover"&&r in e)try{e[r]=t==null?"":t;break e}catch(a){}typeof t=="function"||(t==null||t===!1&&r[4]!="-"?e.removeAttribute(r):e.setAttribute(r,r=="popover"&&t==1?"":t))}}function ul(e){return function(r){if(this.l){var t=this.l[r.type+e];if(r.u==null)r.u=fa++;else if(r.u<t.t)return;return t(k.event?k.event(r):r)}}}function ma(e,r,t,n,i,o,a,s,u,c){var d,l,p,m,h,y,v,g,_,x,q,V,I,w,K,xe,Cr,Ee=r.type;if(r.constructor!==void 0)return null;128&t.__u&&(u=!!(32&t.__u),o=[s=r.__e=t.__e]),(d=k.__b)&&d(r);e:if(typeof Ee=="function")try{if(g=r.props,_="prototype"in Ee&&Ee.prototype.render,x=(d=Ee.contextType)&&n[d.__c],q=d?x?x.props.value:d.__:n,t.__c?v=(l=r.__c=t.__c).__=l.__E:(_?r.__c=l=new Ee(g,q):(r.__c=l=new je(g,q),l.constructor=Ee,l.render=w0),x&&x.sub(l),l.props=g,l.state||(l.state={}),l.context=q,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&Ee.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ve({},l.__s)),Ve(l.__s,Ee.getDerivedStateFromProps(g,l.__s))),m=l.props,h=l.state,l.__v=r,p)_&&Ee.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&Ee.getDerivedStateFromProps==null&&g!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,q),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,q)===!1||r.__v==t.__v)){for(r.__v!=t.__v&&(l.props=g,l.state=l.__s,l.__d=!1),r.__e=t.__e,r.__k=t.__k,r.__k.some(function(gr){gr&&(gr.__=r)}),V=0;V<l._sb.length;V++)l.__h.push(l._sb[V]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,q),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,y)})}if(l.context=q,l.props=g,l.__P=e,l.__e=!1,I=k.__r,w=0,_){for(l.state=l.__s,l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),K=0;K<l._sb.length;K++)l.__h.push(l._sb[K]);l._sb=[]}else do l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++w<25);l.state=l.__s,l.getChildContext!=null&&(n=Ve(Ve({},n),l.getChildContext())),_&&!p&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(m,h)),xe=d,d!=null&&d.type===ar&&d.key==null&&(xe=yl(d.props.children)),s=hl(e,Et(xe)?xe:[xe],r,t,n,i,o,a,s,u,c),l.base=r.__e,r.__u&=-161,l.__h.length&&a.push(l),v&&(l.__E=l.__=null)}catch(gr){if(r.__v=null,u||o!=null)if(gr.then){for(r.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,r.__e=s}else for(Cr=o.length;Cr--;)pa(o[Cr]);else r.__e=t.__e,r.__k=t.__k;k.__e(gr,r,t)}else o==null&&r.__v==t.__v?(r.__k=t.__k,r.__e=t.__e):s=r.__e=b0(t.__e,r,t,n,i,o,a,u,c);return(d=k.diffed)&&d(r),128&r.__u?void 0:s}function gl(e,r,t){for(var n=0;n<t.length;n++)ha(t[n],t[++n],t[++n]);k.__c&&k.__c(r,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){k.__e(o,i.__v)}})}function yl(e){return typeof e!="object"||e==null?e:Et(e)?e.map(yl):Ve({},e)}function b0(e,r,t,n,i,o,a,s,u){var c,d,l,p,m,h,y,v=t.props,g=r.props,_=r.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((m=o[c])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){e=m,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(g);e=document.createElementNS(i,_,g.is&&g),s&&(k.__m&&k.__m(r,o),s=!1),o=null}if(_===null)v===g||s&&e.data===g||(e.data=g);else{if(o=o&&kn.call(e.childNodes),v=t.props||xt,!s&&o!=null)for(v={},c=0;c<e.attributes.length;c++)v[(m=e.attributes[c]).name]=m.value;for(c in v)if(m=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")l=m;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;Rn(e,c,null,m,i)}}for(c in g)m=g[c],c=="children"?p=m:c=="dangerouslySetInnerHTML"?d=m:c=="value"?h=m:c=="checked"?y=m:s&&typeof m!="function"||v[c]===m||Rn(e,c,m,v[c],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),r.__k=[];else if(l&&(e.innerHTML=""),hl(r.type==="template"?e.content:e,Et(p)?p:[p],r,t,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:t.__k&&Fr(t,0),s,u),o!=null)for(c=o.length;c--;)pa(o[c]);s||(c="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_=="progress"&&!h||_=="option"&&h!==v[c])&&Rn(e,c,h,v[c],i),c="checked",y!==void 0&&y!==e[c]&&Rn(e,c,y,v[c],i))}return e}function ha(e,r,t){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&r==null||(e.__u=e(r))}else e.current=r}catch(i){k.__e(i,t)}}function _l(e,r,t){var n,i;if(k.unmount&&k.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ha(n,null,r)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){k.__e(o,r)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&_l(n[i],r,t||typeof e.type!="function");t||pa(e.__e),e.__c=e.__=e.__e=void 0}function w0(e,r,t){return this.constructor(e,t)}function Tt(e,r,t){var n,i,o,a;r==document&&(r=document.documentElement),k.__&&k.__(e,r),i=(n=typeof t=="function")?null:t&&t.__k||r.__k,o=[],a=[],ma(r,e=(!n&&t||r).__k=Je(ar,null,[e]),i||xt,xt,r.namespaceURI,!n&&t?[t]:i?null:r.firstChild?kn.call(r.childNodes):null,o,!n&&t?t:i?i.__e:r.firstChild,n,a),gl(o,e,a)}var kn,k,cl,h0,br,ol,ll,dl,fl,fa,la,da,v0,xt,pl,g0,Et,bl=R(()=>{xt={},pl=[],g0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Et=Array.isArray;kn=pl.slice,k={__e:function(e,r,t,n){for(var i,o,a;r=r.__;)if((i=r.__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}},cl=0,h0=function(e){return e!=null&&e.constructor==null},je.prototype.setState=function(e,r){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ve({},this.state),typeof e=="function"&&(e=e(Ve({},t),this.props)),e&&Ve(t,e),e!=null&&this.__v&&(r&&this._sb.push(r),al(this))},je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),al(this))},je.prototype.render=ar,br=[],ll=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dl=function(e,r){return e.__v.__b-r.__v.__b},qn.__r=0,fl=/(PointerCapture)$|Capture$/i,fa=0,la=ul(!1),da=ul(!0),v0=0});var j=f((lM,wl)=>{"use strict";wl.exports=function(e){try{return!!e()}catch(r){return!0}}});var jr=f((dM,Sl)=>{"use strict";var S0=j();Sl.exports=!S0(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var U=f((fM,Il)=>{"use strict";var xl=jr(),El=Function.prototype,va=El.call,x0=xl&&El.bind.bind(va,va);Il.exports=xl?x0:function(e){return function(){return va.apply(e,arguments)}}});var te=f((pM,Tl)=>{"use strict";var E0=U();Tl.exports=E0({}.isPrototypeOf)});var G=f((ga,Rl)=>{"use strict";var Rt=function(e){return e&&e.Math===Math&&e};Rl.exports=Rt(typeof globalThis=="object"&&globalThis)||Rt(typeof window=="object"&&window)||Rt(typeof self=="object"&&self)||Rt(typeof global=="object"&&global)||Rt(typeof ga=="object"&&ga)||function(){return this}()||Function("return this")()});var On=f((mM,Ol)=>{"use strict";var I0=jr(),kl=Function.prototype,Al=kl.apply,ql=kl.call;Ol.exports=typeof Reflect=="object"&&Reflect.apply||(I0?ql.bind(Al):function(){return ql.apply(Al,arguments)})});var Ue=f((hM,Cl)=>{"use strict";var Pl=U(),T0=Pl({}.toString),R0=Pl("".slice);Cl.exports=function(e){return R0(T0(e),8,-1)}});var At=f((vM,Nl)=>{"use strict";var A0=Ue(),q0=U();Nl.exports=function(e){if(A0(e)==="Function")return q0(e)}});var Z=f((gM,Dl)=>{"use strict";var ya=typeof document=="object"&&document.all;Dl.exports=typeof ya=="undefined"&&ya!==void 0?function(e){return typeof e=="function"||e===ya}:function(e){return typeof e=="function"}});var ne=f((yM,Ll)=>{"use strict";var k0=j();Ll.exports=!k0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Ie=f((_M,Fl)=>{"use strict";var O0=jr(),Pn=Function.prototype.call;Fl.exports=O0?Pn.bind(Pn):function(){return Pn.apply(Pn,arguments)}});var Cn=f(Ml=>{"use strict";var jl={}.propertyIsEnumerable,Ul=Object.getOwnPropertyDescriptor,P0=Ul&&!jl.call({1:2},1);Ml.f=P0?function(r){var t=Ul(this,r);return!!t&&t.enumerable}:jl});var Ur=f((wM,Bl)=>{"use strict";Bl.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Nn=f((SM,$l)=>{"use strict";var C0=U(),N0=j(),D0=Ue(),_a=Object,L0=C0("".split);$l.exports=N0(function(){return!_a("z").propertyIsEnumerable(0)})?function(e){return D0(e)==="String"?L0(e,""):_a(e)}:_a});var wr=f((xM,Hl)=>{"use strict";Hl.exports=function(e){return e==null}});var sr=f((EM,Kl)=>{"use strict";var F0=wr(),j0=TypeError;Kl.exports=function(e){if(F0(e))throw new j0("Can't call method on "+e);return e}});var We=f((IM,Gl)=>{"use strict";var U0=Nn(),M0=sr();Gl.exports=function(e){return U0(M0(e))}});var ee=f((TM,Vl)=>{"use strict";var B0=Z();Vl.exports=function(e){return typeof e=="object"?e!==null:B0(e)}});var ve=f((RM,Jl)=>{"use strict";Jl.exports={}});var Me=f((AM,zl)=>{"use strict";var ba=ve(),wa=G(),$0=Z(),Wl=function(e){return $0(e)?e:void 0};zl.exports=function(e,r){return arguments.length<2?Wl(ba[e])||Wl(wa[e]):ba[e]&&ba[e][r]||wa[e]&&wa[e][r]}});var Dn=f((qM,Xl)=>{"use strict";var H0=G(),Yl=H0.navigator,Ql=Yl&&Yl.userAgent;Xl.exports=Ql?String(Ql):""});var Fn=f((kM,id)=>{"use strict";var nd=G(),Sa=Dn(),Zl=nd.process,ed=nd.Deno,rd=Zl&&Zl.versions||ed&&ed.version,td=rd&&rd.v8,ke,Ln;td&&(ke=td.split("."),Ln=ke[0]>0&&ke[0]<4?1:+(ke[0]+ke[1]));!Ln&&Sa&&(ke=Sa.match(/Edge\/(\d+)/),(!ke||ke[1]>=74)&&(ke=Sa.match(/Chrome\/(\d+)/),ke&&(Ln=+ke[1])));id.exports=Ln});var Sr=f((OM,ad)=>{"use strict";var od=Fn(),K0=j(),G0=G(),V0=G0.String;ad.exports=!!Object.getOwnPropertySymbols&&!K0(function(){var e=Symbol("symbol detection");return!V0(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&od&&od<41})});var xa=f((PM,sd)=>{"use strict";var J0=Sr();sd.exports=J0&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var qt=f((CM,ud)=>{"use strict";var W0=Me(),z0=Z(),Y0=te(),Q0=xa(),X0=Object;ud.exports=Q0?function(e){return typeof e=="symbol"}:function(e){var r=W0("Symbol");return z0(r)&&Y0(r.prototype,X0(e))}});var Mr=f((NM,cd)=>{"use strict";var Z0=String;cd.exports=function(e){try{return Z0(e)}catch(r){return"Object"}}});var xr=f((DM,ld)=>{"use strict";var eE=Z(),rE=Mr(),tE=TypeError;ld.exports=function(e){if(eE(e))return e;throw new tE(rE(e)+" is not a function")}});var jn=f((LM,dd)=>{"use strict";var nE=xr(),iE=wr();dd.exports=function(e,r){var t=e[r];return iE(t)?void 0:nE(t)}});var pd=f((FM,fd)=>{"use strict";var Ea=Ie(),Ia=Z(),Ta=ee(),oE=TypeError;fd.exports=function(e,r){var t,n;if(r==="string"&&Ia(t=e.toString)&&!Ta(n=Ea(t,e))||Ia(t=e.valueOf)&&!Ta(n=Ea(t,e))||r!=="string"&&Ia(t=e.toString)&&!Ta(n=Ea(t,e)))return n;throw new oE("Can't convert object to primitive value")}});var ur=f((jM,md)=>{"use strict";md.exports=!0});var gd=f((UM,vd)=>{"use strict";var hd=G(),aE=Object.defineProperty;vd.exports=function(e,r){try{aE(hd,e,{value:r,configurable:!0,writable:!0})}catch(t){hd[e]=r}return r}});var kt=f((MM,bd)=>{"use strict";var sE=ur(),uE=G(),cE=gd(),yd="__core-js_shared__",_d=bd.exports=uE[yd]||cE(yd,{});(_d.versions||(_d.versions=[])).push({version:"3.41.0",mode:sE?"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 Br=f((BM,Sd)=>{"use strict";var wd=kt();Sd.exports=function(e,r){return wd[e]||(wd[e]=r||{})}});var cr=f(($M,xd)=>{"use strict";var lE=sr(),dE=Object;xd.exports=function(e){return dE(lE(e))}});var se=f((HM,Ed)=>{"use strict";var fE=U(),pE=cr(),mE=fE({}.hasOwnProperty);Ed.exports=Object.hasOwn||function(r,t){return mE(pE(r),t)}});var Ot=f((KM,Id)=>{"use strict";var hE=U(),vE=0,gE=Math.random(),yE=hE(1 .toString);Id.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+yE(++vE+gE,36)}});var re=f((GM,Rd)=>{"use strict";var _E=G(),bE=Br(),Td=se(),wE=Ot(),SE=Sr(),xE=xa(),$r=_E.Symbol,Ra=bE("wks"),EE=xE?$r.for||$r:$r&&$r.withoutSetter||wE;Rd.exports=function(e){return Td(Ra,e)||(Ra[e]=SE&&Td($r,e)?$r[e]:EE("Symbol."+e)),Ra[e]}});var Od=f((VM,kd)=>{"use strict";var IE=Ie(),Ad=ee(),qd=qt(),TE=jn(),RE=pd(),AE=re(),qE=TypeError,kE=AE("toPrimitive");kd.exports=function(e,r){if(!Ad(e)||qd(e))return e;var t=TE(e,kE),n;if(t){if(r===void 0&&(r="default"),n=IE(t,e,r),!Ad(n)||qd(n))return n;throw new qE("Can't convert object to primitive value")}return r===void 0&&(r="number"),RE(e,r)}});var Un=f((JM,Pd)=>{"use strict";var OE=Od(),PE=qt();Pd.exports=function(e){var r=OE(e,"string");return PE(r)?r:r+""}});var qa=f((WM,Nd)=>{"use strict";var CE=G(),Cd=ee(),Aa=CE.document,NE=Cd(Aa)&&Cd(Aa.createElement);Nd.exports=function(e){return NE?Aa.createElement(e):{}}});var ka=f((zM,Dd)=>{"use strict";var DE=ne(),LE=j(),FE=qa();Dd.exports=!DE&&!LE(function(){return Object.defineProperty(FE("div"),"a",{get:function(){return 7}}).a!==7})});var Mn=f(Fd=>{"use strict";var jE=ne(),UE=Ie(),ME=Cn(),BE=Ur(),$E=We(),HE=Un(),KE=se(),GE=ka(),Ld=Object.getOwnPropertyDescriptor;Fd.f=jE?Ld:function(r,t){if(r=$E(r),t=HE(t),GE)try{return Ld(r,t)}catch(n){}if(KE(r,t))return BE(!UE(ME.f,r,t),r[t])}});var Ud=f((QM,jd)=>{"use strict";var VE=j(),JE=Z(),WE=/#|\.prototype\./,Pt=function(e,r){var t=YE[zE(e)];return t===XE?!0:t===QE?!1:JE(r)?VE(r):!!r},zE=Pt.normalize=function(e){return String(e).replace(WE,".").toLowerCase()},YE=Pt.data={},QE=Pt.NATIVE="N",XE=Pt.POLYFILL="P";jd.exports=Pt});var Ct=f((XM,Bd)=>{"use strict";var Md=At(),ZE=xr(),eI=jr(),rI=Md(Md.bind);Bd.exports=function(e,r){return ZE(e),r===void 0?e:eI?rI(e,r):function(){return e.apply(r,arguments)}}});var Oa=f((ZM,$d)=>{"use strict";var tI=ne(),nI=j();$d.exports=tI&&nI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ze=f((eB,Hd)=>{"use strict";var iI=ee(),oI=String,aI=TypeError;Hd.exports=function(e){if(iI(e))return e;throw new aI(oI(e)+" is not an object")}});var Te=f(Gd=>{"use strict";var sI=ne(),uI=ka(),cI=Oa(),Bn=ze(),Kd=Un(),lI=TypeError,Pa=Object.defineProperty,dI=Object.getOwnPropertyDescriptor,Ca="enumerable",Na="configurable",Da="writable";Gd.f=sI?cI?function(r,t,n){if(Bn(r),t=Kd(t),Bn(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Da in n&&!n[Da]){var i=dI(r,t);i&&i[Da]&&(r[t]=n.value,n={configurable:Na in n?n[Na]:i[Na],enumerable:Ca in n?n[Ca]:i[Ca],writable:!1})}return Pa(r,t,n)}:Pa:function(r,t,n){if(Bn(r),t=Kd(t),Bn(n),uI)try{return Pa(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new lI("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Er=f((tB,Vd)=>{"use strict";var fI=ne(),pI=Te(),mI=Ur();Vd.exports=fI?function(e,r,t){return pI.f(e,r,mI(1,t))}:function(e,r,t){return e[r]=t,e}});var L=f((nB,Wd)=>{"use strict";var Nt=G(),hI=On(),vI=At(),gI=Z(),yI=Mn().f,_I=Ud(),Hr=ve(),bI=Ct(),Kr=Er(),Jd=se();kt();var wI=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return hI(e,this,arguments)};return r.prototype=e.prototype,r};Wd.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Nt:i?Nt[t]:Nt[t]&&Nt[t].prototype,s=n?Hr:Hr[t]||Kr(Hr,t,{})[t],u=s.prototype,c,d,l,p,m,h,y,v,g;for(p in r)c=_I(n?p:t+(i?".":"#")+p,e.forced),d=!c&&a&&Jd(a,p),h=s[p],d&&(e.dontCallGetSet?(g=yI(a,p),y=g&&g.value):y=a[p]),m=d&&y?y:r[p],!(!c&&!o&&typeof h==typeof m)&&(e.bind&&d?v=bI(m,Nt):e.wrap&&d?v=wI(m):o&&gI(m)?v=vI(m):v=m,(e.sham||m&&m.sham||h&&h.sham)&&Kr(v,"sham",!0),Kr(s,p,v),o&&(l=t+"Prototype",Jd(Hr,l)||Kr(Hr,l,{}),Kr(Hr[l],p,m),e.real&&u&&(c||!u[p])&&Kr(u,p,m)))}});var Yd=f((iB,zd)=>{"use strict";var SI=Math.ceil,xI=Math.floor;zd.exports=Math.trunc||function(r){var t=+r;return(t>0?xI:SI)(t)}});var Dt=f((oB,Qd)=>{"use strict";var EI=Yd();Qd.exports=function(e){var r=+e;return r!==r||r===0?0:EI(r)}});var La=f((aB,Xd)=>{"use strict";var II=Dt(),TI=Math.min;Xd.exports=function(e){var r=II(e);return r>0?TI(r,9007199254740991):0}});var Ir=f((sB,Zd)=>{"use strict";var RI=La();Zd.exports=function(e){return RI(e.length)}});var lr=f((uB,ef)=>{"use strict";var AI=Ue();ef.exports=Array.isArray||function(r){return AI(r)==="Array"}});var $n=f((cB,tf)=>{"use strict";var qI=re(),kI=qI("toStringTag"),rf={};rf[kI]="z";tf.exports=String(rf)==="[object z]"});var Gr=f((lB,nf)=>{"use strict";var OI=$n(),PI=Z(),Hn=Ue(),CI=re(),NI=CI("toStringTag"),DI=Object,LI=Hn(function(){return arguments}())==="Arguments",FI=function(e,r){try{return e[r]}catch(t){}};nf.exports=OI?Hn:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=FI(r=DI(e),NI))=="string"?t:LI?Hn(r):(n=Hn(r))==="Object"&&PI(r.callee)?"Arguments":n}});var af=f((dB,of)=>{"use strict";var jI=U(),UI=Z(),Fa=kt(),MI=jI(Function.toString);UI(Fa.inspectSource)||(Fa.inspectSource=function(e){return MI(e)});of.exports=Fa.inspectSource});var Ua=f((fB,df)=>{"use strict";var BI=U(),$I=j(),sf=Z(),HI=Gr(),KI=Me(),GI=af(),uf=function(){},cf=KI("Reflect","construct"),ja=/^\s*(?:class|function)\b/,VI=BI(ja.exec),JI=!ja.test(uf),Lt=function(r){if(!sf(r))return!1;try{return cf(uf,[],r),!0}catch(t){return!1}},lf=function(r){if(!sf(r))return!1;switch(HI(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return JI||!!VI(ja,GI(r))}catch(t){return!0}};lf.sham=!0;df.exports=!cf||$I(function(){var e;return Lt(Lt.call)||!Lt(Object)||!Lt(function(){e=!0})||e})?lf:Lt});var hf=f((pB,mf)=>{"use strict";var ff=lr(),WI=Ua(),zI=ee(),YI=re(),QI=YI("species"),pf=Array;mf.exports=function(e){var r;return ff(e)&&(r=e.constructor,WI(r)&&(r===pf||ff(r.prototype))?r=void 0:zI(r)&&(r=r[QI],r===null&&(r=void 0))),r===void 0?pf:r}});var Kn=f((mB,vf)=>{"use strict";var XI=hf();vf.exports=function(e,r){return new(XI(e))(r===0?0:r)}});var Ye=f((hB,yf)=>{"use strict";var ZI=Ct(),eT=U(),rT=Nn(),tT=cr(),nT=Ir(),iT=Kn(),gf=eT([].push),dr=function(e){var r=e===1,t=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(u,c,d,l){for(var p=tT(u),m=rT(p),h=nT(m),y=ZI(c,d),v=0,g=l||iT,_=r?g(u,h):t||a?g(u,0):void 0,x,q;h>v;v++)if((s||v in m)&&(x=m[v],q=y(x,v,p),e))if(r)_[v]=q;else if(q)switch(e){case 3:return!0;case 5:return x;case 6:return v;case 2:gf(_,x)}else switch(e){case 4:return!1;case 7:gf(_,x)}return o?-1:n||i?i:_}};yf.exports={forEach:dr(0),map:dr(1),filter:dr(2),some:dr(3),every:dr(4),find:dr(5),findIndex:dr(6),filterReject:dr(7)}});var Vr=f((vB,_f)=>{"use strict";var oT=j(),aT=re(),sT=Fn(),uT=aT("species");_f.exports=function(e){return sT>=51||!oT(function(){var r=[],t=r.constructor={};return t[uT]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var bf=f(()=>{"use strict";var cT=L(),lT=Ye().filter,dT=Vr(),fT=dT("filter");cT({target:"Array",proto:!0,forced:!fT},{filter:function(r){return lT(this,r,arguments.length>1?arguments[1]:void 0)}})});var ge=f((_B,wf)=>{"use strict";var pT=G(),mT=ve();wf.exports=function(e,r){var t=mT[e+"Prototype"],n=t&&t[r];if(n)return n;var i=pT[e],o=i&&i.prototype;return o&&o[r]}});var xf=f((bB,Sf)=>{"use strict";bf();var hT=ge();Sf.exports=hT("Array","filter")});var If=f((wB,Ef)=>{"use strict";var vT=te(),gT=xf(),Ma=Array.prototype;Ef.exports=function(e){var r=e.filter;return e===Ma||vT(Ma,e)&&r===Ma.filter?gT:r}});var Rf=f((SB,Tf)=>{"use strict";var yT=If();Tf.exports=yT});var qf=f((xB,Af)=>{Af.exports=Rf()});var Ft=f((EB,kf)=>{"use strict";var _T=j();kf.exports=function(e,r){var t=[][e];return!!t&&_T(function(){t.call(null,r||function(){return 1},1)})}});var Of=f(()=>{"use strict";var bT=L(),wT=Ye().every,ST=Ft(),xT=ST("every");bT({target:"Array",proto:!0,forced:!xT},{every:function(r){return wT(this,r,arguments.length>1?arguments[1]:void 0)}})});var Cf=f((RB,Pf)=>{"use strict";Of();var ET=ge();Pf.exports=ET("Array","every")});var Df=f((AB,Nf)=>{"use strict";var IT=te(),TT=Cf(),Ba=Array.prototype;Nf.exports=function(e){var r=e.every;return e===Ba||IT(Ba,e)&&r===Ba.every?TT:r}});var Ff=f((qB,Lf)=>{"use strict";var RT=Df();Lf.exports=RT});var Uf=f((kB,jf)=>{jf.exports=Ff()});var Bf=f((OB,Mf)=>{"use strict";var AT=Ye().forEach,qT=Ft(),kT=qT("forEach");Mf.exports=kT?[].forEach:function(r){return AT(this,r,arguments.length>1?arguments[1]:void 0)}});var Hf=f(()=>{"use strict";var OT=L(),$f=Bf();OT({target:"Array",proto:!0,forced:[].forEach!==$f},{forEach:$f})});var Gf=f((NB,Kf)=>{"use strict";Hf();var PT=ge();Kf.exports=PT("Array","forEach")});var Jf=f((DB,Vf)=>{"use strict";var CT=Gf();Vf.exports=CT});var Wf=f(()=>{});var Yf=f((jB,zf)=>{"use strict";var NT=Gr(),DT=se(),LT=te(),FT=Jf();Wf();var $a=Array.prototype,jT={DOMTokenList:!0,NodeList:!0};zf.exports=function(e){var r=e.forEach;return e===$a||LT($a,e)&&r===$a.forEach||DT(jT,NT(e))?FT:r}});var Xf=f((UB,Qf)=>{Qf.exports=Yf()});var Ha=f((MB,Zf)=>{"use strict";var UT=TypeError,MT=9007199254740991;Zf.exports=function(e){if(e>MT)throw UT("Maximum allowed index exceeded");return e}});var Gn=f((BB,ep)=>{"use strict";var BT=ne(),$T=Te(),HT=Ur();ep.exports=function(e,r,t){BT?$T.f(e,r,HT(0,t)):e[r]=t}});var Ka=f(()=>{"use strict";var KT=L(),GT=j(),VT=lr(),JT=ee(),WT=cr(),zT=Ir(),rp=Ha(),tp=Gn(),YT=Kn(),QT=Vr(),XT=re(),ZT=Fn(),np=XT("isConcatSpreadable"),eR=ZT>=51||!GT(function(){var e=[];return e[np]=!1,e.concat()[0]!==e}),rR=function(e){if(!JT(e))return!1;var r=e[np];return r!==void 0?!!r:VT(e)},tR=!eR||!QT("concat");KT({target:"Array",proto:!0,arity:1,forced:tR},{concat:function(r){var t=WT(this),n=YT(t,0),i=0,o,a,s,u,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?t:arguments[o],rR(c))for(u=zT(c),rp(i+u),a=0;a<u;a++,i++)a in c&&tp(n,i,c[a]);else rp(i+1),tp(n,i++,c);return n.length=i,n}})});var op=f((KB,ip)=>{"use strict";Ka();var nR=ge();ip.exports=nR("Array","concat")});var sp=f((GB,ap)=>{"use strict";var iR=te(),oR=op(),Ga=Array.prototype;ap.exports=function(e){var r=e.concat;return e===Ga||iR(Ga,e)&&r===Ga.concat?oR:r}});var cp=f((VB,up)=>{"use strict";var aR=sp();up.exports=aR});var dp=f((JB,lp)=>{lp.exports=cp()});var fp=f(()=>{"use strict";var sR=L(),uR=Ye().some,cR=Ft(),lR=cR("some");sR({target:"Array",proto:!0,forced:!lR},{some:function(r){return uR(this,r,arguments.length>1?arguments[1]:void 0)}})});var mp=f((YB,pp)=>{"use strict";fp();var dR=ge();pp.exports=dR("Array","some")});var vp=f((QB,hp)=>{"use strict";var fR=te(),pR=mp(),Va=Array.prototype;hp.exports=function(e){var r=e.some;return e===Va||fR(Va,e)&&r===Va.some?pR:r}});var yp=f((XB,gp)=>{"use strict";var mR=vp();gp.exports=mR});var bp=f((ZB,_p)=>{_p.exports=yp()});var Sp=f((e$,wp)=>{"use strict";var jt=G(),hR=Dn(),vR=Ue(),Vn=function(e){return hR.slice(0,e.length)===e};wp.exports=function(){return Vn("Bun/")?"BUN":Vn("Cloudflare-Workers")?"CLOUDFLARE":Vn("Deno/")?"DENO":Vn("Node.js/")?"NODE":jt.Bun&&typeof Bun.version=="string"?"BUN":jt.Deno&&typeof Deno.version=="object"?"DENO":vR(jt.process)==="process"?"NODE":jt.window&&jt.document?"BROWSER":"REST"}()});var Jr=f((r$,xp)=>{"use strict";var gR=U();xp.exports=gR([].slice)});var Ip=f((t$,Ep)=>{"use strict";var yR=TypeError;Ep.exports=function(e,r){if(e<r)throw new yR("Not enough arguments");return e}});var Ja=f((n$,Rp)=>{"use strict";var Tp=G(),_R=On(),bR=Z(),wR=Sp(),SR=Dn(),xR=Jr(),ER=Ip(),IR=Tp.Function,TR=/MSIE .\./.test(SR)||wR==="BUN"&&function(){var e=Tp.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Rp.exports=function(e,r){var t=r?2:1;return TR?function(n,i){var o=ER(arguments.length,1)>t,a=bR(n)?n:IR(n),s=o?xR(arguments,t):[],u=o?function(){_R(a,this,s)}:a;return r?e(u,i):e(u)}:e}});var kp=f(()=>{"use strict";var RR=L(),qp=G(),AR=Ja(),Ap=AR(qp.setInterval,!0);RR({global:!0,bind:!0,forced:qp.setInterval!==Ap},{setInterval:Ap})});var Cp=f(()=>{"use strict";var qR=L(),Pp=G(),kR=Ja(),Op=kR(Pp.setTimeout,!0);qR({global:!0,bind:!0,forced:Pp.setTimeout!==Op},{setTimeout:Op})});var Np=f(()=>{"use strict";kp();Cp()});var Lp=f((l$,Dp)=>{"use strict";Np();var OR=ve();Dp.exports=OR.setTimeout});var jp=f((d$,Fp)=>{Fp.exports=Lp()});var Jn=f(()=>{});var fr=f((m$,Up)=>{"use strict";var PR=Gr(),CR=String;Up.exports=function(e){if(PR(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return CR(e)}});var Wn=f((h$,Mp)=>{"use strict";var NR=Dt(),DR=Math.max,LR=Math.min;Mp.exports=function(e,r){var t=NR(e);return t<0?DR(t+r,0):LR(t,r)}});var Wa=f((v$,$p)=>{"use strict";var FR=We(),jR=Wn(),UR=Ir(),Bp=function(e){return function(r,t,n){var i=FR(r),o=UR(i);if(o===0)return!e&&-1;var a=jR(n,o),s;if(e&&t!==t){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}};$p.exports={includes:Bp(!0),indexOf:Bp(!1)}});var Wr=f((g$,Hp)=>{"use strict";Hp.exports={}});var Ya=f((y$,Gp)=>{"use strict";var MR=U(),za=se(),BR=We(),$R=Wa().indexOf,HR=Wr(),Kp=MR([].push);Gp.exports=function(e,r){var t=BR(e),n=0,i=[],o;for(o in t)!za(HR,o)&&za(t,o)&&Kp(i,o);for(;r.length>n;)za(t,o=r[n++])&&(~$R(i,o)||Kp(i,o));return i}});var zn=f((_$,Vp)=>{"use strict";Vp.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yn=f((b$,Jp)=>{"use strict";var KR=Ya(),GR=zn();Jp.exports=Object.keys||function(r){return KR(r,GR)}});var Qa=f(Wp=>{"use strict";var VR=ne(),JR=Oa(),WR=Te(),zR=ze(),YR=We(),QR=Yn();Wp.f=VR&&!JR?Object.defineProperties:function(r,t){zR(r);for(var n=YR(t),i=QR(t),o=i.length,a=0,s;o>a;)WR.f(r,s=i[a++],n[s]);return r}});var Yp=f((S$,zp)=>{"use strict";var XR=Me();zp.exports=XR("document","documentElement")});var Ut=f((x$,Xp)=>{"use strict";var ZR=Br(),eA=Ot(),Qp=ZR("keys");Xp.exports=function(e){return Qp[e]||(Qp[e]=eA(e))}});var zr=f((E$,om)=>{"use strict";var rA=ze(),tA=Qa(),Zp=zn(),nA=Wr(),iA=Yp(),oA=qa(),aA=Ut(),em=">",rm="<",Za="prototype",es="script",nm=aA("IE_PROTO"),Xa=function(){},im=function(e){return rm+es+em+e+rm+"/"+es+em},tm=function(e){e.write(im("")),e.close();var r=e.parentWindow.Object;return e=null,r},sA=function(){var e=oA("iframe"),r="java"+es+":",t;return e.style.display="none",iA.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(im("document.F=Object")),t.close(),t.F},Qn,Xn=function(){try{Qn=new ActiveXObject("htmlfile")}catch(r){}Xn=typeof document!="undefined"?document.domain&&Qn?tm(Qn):sA():tm(Qn);for(var e=Zp.length;e--;)delete Xn[Za][Zp[e]];return Xn()};nA[nm]=!0;om.exports=Object.create||function(r,t){var n;return r!==null?(Xa[Za]=rA(r),n=new Xa,Xa[Za]=null,n[nm]=r):n=Xn(),t===void 0?n:tA.f(n,t)}});var Zn=f(am=>{"use strict";var uA=Ya(),cA=zn(),lA=cA.concat("length","prototype");am.f=Object.getOwnPropertyNames||function(r){return uA(r,lA)}});var rs=f((T$,cm)=>{"use strict";var dA=Ue(),fA=We(),sm=Zn().f,pA=Jr(),um=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mA=function(e){try{return sm(e)}catch(r){return pA(um)}};cm.exports.f=function(r){return um&&dA(r)==="Window"?mA(r):sm(fA(r))}});var ei=f(lm=>{"use strict";lm.f=Object.getOwnPropertySymbols});var Yr=f((A$,dm)=>{"use strict";var hA=Er();dm.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:hA(e,r,t),e}});var ri=f((q$,fm)=>{"use strict";var vA=Te();fm.exports=function(e,r,t){return vA.f(e,r,t)}});var ts=f(pm=>{"use strict";var gA=re();pm.f=gA});var fe=f((O$,hm)=>{"use strict";var mm=ve(),yA=se(),_A=ts(),bA=Te().f;hm.exports=function(e){var r=mm.Symbol||(mm.Symbol={});yA(r,e)||bA(r,e,{value:_A.f(e)})}});var ns=f((P$,vm)=>{"use strict";var wA=Ie(),SA=Me(),xA=re(),EA=Yr();vm.exports=function(){var e=SA("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=xA("toPrimitive");r&&!r[n]&&EA(r,n,function(i){return wA(t,this)},{arity:1})}});var ym=f((C$,gm)=>{"use strict";var IA=$n(),TA=Gr();gm.exports=IA?{}.toString:function(){return"[object "+TA(this)+"]"}});var pr=f((N$,bm)=>{"use strict";var RA=$n(),AA=Te().f,qA=Er(),kA=se(),OA=ym(),PA=re(),_m=PA("toStringTag");bm.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(kA(i,_m)||AA(i,_m,{configurable:!0,value:r}),n&&!RA&&qA(i,"toString",OA))}});var is=f((D$,Sm)=>{"use strict";var CA=G(),NA=Z(),wm=CA.WeakMap;Sm.exports=NA(wm)&&/native code/.test(String(wm))});var mr=f((L$,Im)=>{"use strict";var DA=is(),Em=G(),LA=ee(),FA=Er(),os=se(),as=kt(),jA=Ut(),UA=Wr(),xm="Object already initialized",ss=Em.TypeError,MA=Em.WeakMap,ti,Mt,ni,BA=function(e){return ni(e)?Mt(e):ti(e,{})},$A=function(e){return function(r){var t;if(!LA(r)||(t=Mt(r)).type!==e)throw new ss("Incompatible receiver, "+e+" required");return t}};DA||as.state?(Oe=as.state||(as.state=new MA),Oe.get=Oe.get,Oe.has=Oe.has,Oe.set=Oe.set,ti=function(e,r){if(Oe.has(e))throw new ss(xm);return r.facade=e,Oe.set(e,r),r},Mt=function(e){return Oe.get(e)||{}},ni=function(e){return Oe.has(e)}):(Tr=jA("state"),UA[Tr]=!0,ti=function(e,r){if(os(e,Tr))throw new ss(xm);return r.facade=e,FA(e,Tr,r),r},Mt=function(e){return os(e,Tr)?e[Tr]:{}},ni=function(e){return os(e,Tr)});var Oe,Tr;Im.exports={set:ti,get:Mt,has:ni,enforce:BA,getterFor:$A}});var $m=f(()=>{"use strict";var ii=L(),Ht=G(),vs=Ie(),HA=U(),KA=ur(),Qr=ne(),Xr=Sr(),GA=j(),ie=se(),VA=te(),ds=ze(),oi=We(),gs=Un(),JA=fr(),fs=Ur(),Zr=zr(),Am=Yn(),WA=Zn(),qm=rs(),zA=ei(),km=Mn(),Om=Te(),YA=Qa(),Pm=Cn(),us=Yr(),QA=ri(),ys=Br(),XA=Ut(),Cm=Wr(),Tm=Ot(),ZA=re(),eq=ts(),rq=fe(),tq=ns(),nq=pr(),Nm=mr(),ai=Ye().forEach,ye=XA("hidden"),si="Symbol",$t="prototype",iq=Nm.set,Rm=Nm.getterFor(si),Re=Object[$t],Rr=Ht.Symbol,Bt=Rr&&Rr[$t],oq=Ht.RangeError,aq=Ht.TypeError,cs=Ht.QObject,Dm=km.f,Ar=Om.f,Lm=qm.f,sq=Pm.f,Fm=HA([].push),Qe=ys("symbols"),Kt=ys("op-symbols"),uq=ys("wks"),ps=!cs||!cs[$t]||!cs[$t].findChild,jm=function(e,r,t){var n=Dm(Re,r);n&&delete Re[r],Ar(e,r,t),n&&e!==Re&&Ar(Re,r,n)},ms=Qr&&GA(function(){return Zr(Ar({},"a",{get:function(){return Ar(this,"a",{value:7}).a}})).a!==7})?jm:Ar,ls=function(e,r){var t=Qe[e]=Zr(Bt);return iq(t,{type:si,tag:e,description:r}),Qr||(t.description=r),t},ui=function(r,t,n){r===Re&&ui(Kt,t,n),ds(r);var i=gs(t);return ds(n),ie(Qe,i)?(n.enumerable?(ie(r,ye)&&r[ye][i]&&(r[ye][i]=!1),n=Zr(n,{enumerable:fs(0,!1)})):(ie(r,ye)||Ar(r,ye,fs(1,Zr(null))),r[ye][i]=!0),ms(r,i,n)):Ar(r,i,n)},_s=function(r,t){ds(r);var n=oi(t),i=Am(n).concat(Bm(n));return ai(i,function(o){(!Qr||vs(hs,n,o))&&ui(r,o,n[o])}),r},cq=function(r,t){return t===void 0?Zr(r):_s(Zr(r),t)},hs=function(r){var t=gs(r),n=vs(sq,this,t);return this===Re&&ie(Qe,t)&&!ie(Kt,t)?!1:n||!ie(this,t)||!ie(Qe,t)||ie(this,ye)&&this[ye][t]?n:!0},Um=function(r,t){var n=oi(r),i=gs(t);if(!(n===Re&&ie(Qe,i)&&!ie(Kt,i))){var o=Dm(n,i);return o&&ie(Qe,i)&&!(ie(n,ye)&&n[ye][i])&&(o.enumerable=!0),o}},Mm=function(r){var t=Lm(oi(r)),n=[];return ai(t,function(i){!ie(Qe,i)&&!ie(Cm,i)&&Fm(n,i)}),n},Bm=function(e){var r=e===Re,t=Lm(r?Kt:oi(e)),n=[];return ai(t,function(i){ie(Qe,i)&&(!r||ie(Re,i))&&Fm(n,Qe[i])}),n};Xr||(Rr=function(){if(VA(Bt,this))throw new aq("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:JA(arguments[0]),t=Tm(r),n=function(i){var o=this===void 0?Ht:this;o===Re&&vs(n,Kt,i),ie(o,ye)&&ie(o[ye],t)&&(o[ye][t]=!1);var a=fs(1,i);try{ms(o,t,a)}catch(s){if(!(s instanceof oq))throw s;jm(o,t,a)}};return Qr&&ps&&ms(Re,t,{configurable:!0,set:n}),ls(t,r)},Bt=Rr[$t],us(Bt,"toString",function(){return Rm(this).tag}),us(Rr,"withoutSetter",function(e){return ls(Tm(e),e)}),Pm.f=hs,Om.f=ui,YA.f=_s,km.f=Um,WA.f=qm.f=Mm,zA.f=Bm,eq.f=function(e){return ls(ZA(e),e)},Qr&&(QA(Bt,"description",{configurable:!0,get:function(){return Rm(this).description}}),KA||us(Re,"propertyIsEnumerable",hs,{unsafe:!0})));ii({global:!0,constructor:!0,wrap:!0,forced:!Xr,sham:!Xr},{Symbol:Rr});ai(Am(uq),function(e){rq(e)});ii({target:si,stat:!0,forced:!Xr},{useSetter:function(){ps=!0},useSimple:function(){ps=!1}});ii({target:"Object",stat:!0,forced:!Xr,sham:!Qr},{create:cq,defineProperty:ui,defineProperties:_s,getOwnPropertyDescriptor:Um});ii({target:"Object",stat:!0,forced:!Xr},{getOwnPropertyNames:Mm});tq();nq(Rr,si);Cm[ye]=!0});var bs=f((U$,Hm)=>{"use strict";var lq=Sr();Hm.exports=lq&&!!Symbol.for&&!!Symbol.keyFor});var Gm=f(()=>{"use strict";var dq=L(),fq=Me(),pq=se(),mq=fr(),Km=Br(),hq=bs(),ws=Km("string-to-symbol-registry"),vq=Km("symbol-to-string-registry");dq({target:"Symbol",stat:!0,forced:!hq},{for:function(e){var r=mq(e);if(pq(ws,r))return ws[r];var t=fq("Symbol")(r);return ws[r]=t,vq[t]=r,t}})});var Jm=f(()=>{"use strict";var gq=L(),yq=se(),_q=qt(),bq=Mr(),wq=Br(),Sq=bs(),Vm=wq("symbol-to-string-registry");gq({target:"Symbol",stat:!0,forced:!Sq},{keyFor:function(r){if(!_q(r))throw new TypeError(bq(r)+" is not a symbol");if(yq(Vm,r))return Vm[r]}})});var Xm=f((K$,Qm)=>{"use strict";var xq=U(),Wm=lr(),Eq=Z(),zm=Ue(),Iq=fr(),Ym=xq([].push);Qm.exports=function(e){if(Eq(e))return e;if(Wm(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?Ym(t,i):(typeof i=="number"||zm(i)==="Number"||zm(i)==="String")&&Ym(t,Iq(i))}var o=t.length,a=!0;return function(s,u){if(a)return a=!1,u;if(Wm(this))return u;for(var c=0;c<o;c++)if(t[c]===s)return u}}}});var lh=f(()=>{"use strict";var Tq=L(),ah=Me(),sh=On(),Rq=Ie(),Gt=U(),uh=j(),Zm=Z(),eh=qt(),ch=Jr(),Aq=Xm(),qq=Sr(),kq=String,hr=ah("JSON","stringify"),ci=Gt(/./.exec),rh=Gt("".charAt),Oq=Gt("".charCodeAt),Pq=Gt("".replace),Cq=Gt(1 .toString),Nq=/[\uD800-\uDFFF]/g,th=/^[\uD800-\uDBFF]$/,nh=/^[\uDC00-\uDFFF]$/,ih=!qq||uh(function(){var e=ah("Symbol")("stringify detection");return hr([e])!=="[null]"||hr({a:e})!=="{}"||hr(Object(e))!=="{}"}),oh=uh(function(){return hr("\uDF06\uD834")!=='"\\udf06\\ud834"'||hr("\uDEAD")!=='"\\udead"'}),Dq=function(e,r){var t=ch(arguments),n=Aq(r);if(!(!Zm(n)&&(e===void 0||eh(e))))return t[1]=function(i,o){if(Zm(n)&&(o=Rq(n,this,kq(i),o)),!eh(o))return o},sh(hr,null,t)},Lq=function(e,r,t){var n=rh(t,r-1),i=rh(t,r+1);return ci(th,e)&&!ci(nh,i)||ci(nh,e)&&!ci(th,n)?"\\u"+Cq(Oq(e,0),16):e};hr&&Tq({target:"JSON",stat:!0,arity:3,forced:ih||oh},{stringify:function(r,t,n){var i=ch(arguments),o=sh(ih?Dq:hr,null,i);return oh&&typeof o=="string"?Pq(o,Nq,Lq):o}})});var fh=f(()=>{"use strict";var Fq=L(),jq=Sr(),Uq=j(),dh=ei(),Mq=cr(),Bq=!jq||Uq(function(){dh.f(1)});Fq({target:"Object",stat:!0,forced:Bq},{getOwnPropertySymbols:function(r){var t=dh.f;return t?t(Mq(r)):[]}})});var Ss=f(()=>{"use strict";$m();Gm();Jm();lh();fh()});var ph=f(()=>{"use strict";var $q=fe();$q("asyncIterator")});var mh=f(()=>{});var hh=f(()=>{"use strict";var Hq=fe();Hq("hasInstance")});var vh=f(()=>{"use strict";var Kq=fe();Kq("isConcatSpreadable")});var gh=f(()=>{"use strict";var Gq=fe();Gq("iterator")});var yh=f(()=>{"use strict";var Vq=fe();Vq("match")});var _h=f(()=>{"use strict";var Jq=fe();Jq("matchAll")});var bh=f(()=>{"use strict";var Wq=fe();Wq("replace")});var wh=f(()=>{"use strict";var zq=fe();zq("search")});var Sh=f(()=>{"use strict";var Yq=fe();Yq("species")});var xh=f(()=>{"use strict";var Qq=fe();Qq("split")});var Eh=f(()=>{"use strict";var Xq=fe(),Zq=ns();Xq("toPrimitive");Zq()});var Ih=f(()=>{"use strict";var ek=Me(),rk=fe(),tk=pr();rk("toStringTag");tk(ek("Symbol"),"Symbol")});var Th=f(()=>{"use strict";var nk=fe();nk("unscopables")});var Rh=f(()=>{"use strict";var ik=G(),ok=pr();ok(ik.JSON,"JSON",!0)});var Ah=f(()=>{});var qh=f(()=>{});var Oh=f((O2,kh)=>{"use strict";Ka();Jn();Ss();ph();mh();hh();vh();gh();yh();_h();bh();wh();Sh();xh();Eh();Ih();Th();Rh();Ah();qh();var ak=ve();kh.exports=ak.Symbol});var Ch=f((P2,Ph)=>{"use strict";Ph.exports=function(){}});var qr=f((C2,Nh)=>{"use strict";Nh.exports={}});var Is=f((N2,Lh)=>{"use strict";var xs=ne(),sk=se(),Dh=Function.prototype,uk=xs&&Object.getOwnPropertyDescriptor,Es=sk(Dh,"name"),ck=Es&&(function(){}).name==="something",lk=Es&&(!xs||xs&&uk(Dh,"name").configurable);Lh.exports={EXISTS:Es,PROPER:ck,CONFIGURABLE:lk}});var jh=f((D2,Fh)=>{"use strict";var dk=j();Fh.exports=!dk(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Rs=f((L2,Mh)=>{"use strict";var fk=se(),pk=Z(),mk=cr(),hk=Ut(),vk=jh(),Uh=hk("IE_PROTO"),Ts=Object,gk=Ts.prototype;Mh.exports=vk?Ts.getPrototypeOf:function(e){var r=mk(e);if(fk(r,Uh))return r[Uh];var t=r.constructor;return pk(t)&&r instanceof t?t.prototype:r instanceof Ts?gk:null}});var Os=f((F2,Hh)=>{"use strict";var yk=j(),_k=Z(),bk=ee(),wk=zr(),Bh=Rs(),Sk=Yr(),xk=re(),Ek=ur(),ks=xk("iterator"),$h=!1,Xe,As,qs;[].keys&&(qs=[].keys(),"next"in qs?(As=Bh(Bh(qs)),As!==Object.prototype&&(Xe=As)):$h=!0);var Ik=!bk(Xe)||yk(function(){var e={};return Xe[ks].call(e)!==e});Ik?Xe={}:Ek&&(Xe=wk(Xe));_k(Xe[ks])||Sk(Xe,ks,function(){return this});Hh.exports={IteratorPrototype:Xe,BUGGY_SAFARI_ITERATORS:$h}});var Gh=f((j2,Kh)=>{"use strict";var Tk=Os().IteratorPrototype,Rk=zr(),Ak=Ur(),qk=pr(),kk=qr(),Ok=function(){return this};Kh.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Rk(Tk,{next:Ak(+!n,t)}),qk(e,i,!1,!0),kk[i]=Ok,e}});var Jh=f((U2,Vh)=>{"use strict";var Pk=U(),Ck=xr();Vh.exports=function(e,r,t){try{return Pk(Ck(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var zh=f((M2,Wh)=>{"use strict";var Nk=ee();Wh.exports=function(e){return Nk(e)||e===null}});var Qh=f((B2,Yh)=>{"use strict";var Dk=zh(),Lk=String,Fk=TypeError;Yh.exports=function(e){if(Dk(e))return e;throw new Fk("Can't set "+Lk(e)+" as a prototype")}});var Zh=f(($2,Xh)=>{"use strict";var jk=Jh(),Uk=ee(),Mk=sr(),Bk=Qh();Xh.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=jk(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Mk(i),Bk(o),Uk(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var fi=f((H2,cv)=>{"use strict";var $k=L(),Hk=Ie(),li=ur(),sv=Is(),Kk=Z(),Gk=Gh(),ev=Rs(),rv=Zh(),Vk=pr(),Jk=Er(),Ps=Yr(),Wk=re(),tv=qr(),uv=Os(),zk=sv.PROPER,Yk=sv.CONFIGURABLE,nv=uv.IteratorPrototype,di=uv.BUGGY_SAFARI_ITERATORS,Vt=Wk("iterator"),iv="keys",Jt="values",ov="entries",av=function(){return this};cv.exports=function(e,r,t,n,i,o,a){Gk(t,r,n);var s=function(g){if(g===i&&p)return p;if(!di&&g&&g in d)return d[g];switch(g){case iv:return function(){return new t(this,g)};case Jt:return function(){return new t(this,g)};case ov:return function(){return new t(this,g)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,d=e.prototype,l=d[Vt]||d["@@iterator"]||i&&d[i],p=!di&&l||s(i),m=r==="Array"&&d.entries||l,h,y,v;if(m&&(h=ev(m.call(new e)),h!==Object.prototype&&h.next&&(!li&&ev(h)!==nv&&(rv?rv(h,nv):Kk(h[Vt])||Ps(h,Vt,av)),Vk(h,u,!0,!0),li&&(tv[u]=av))),zk&&i===Jt&&l&&l.name!==Jt&&(!li&&Yk?Jk(d,"name",Jt):(c=!0,p=function(){return Hk(l,this)})),i)if(y={values:s(Jt),keys:o?p:s(iv),entries:s(ov)},a)for(v in y)(di||c||!(v in d))&&Ps(d,v,y[v]);else $k({target:r,proto:!0,forced:di||c},y);return(!li||a)&&d[Vt]!==p&&Ps(d,Vt,p,{name:i}),tv[r]=p,y}});var pi=f((K2,lv)=>{"use strict";lv.exports=function(e,r){return{value:e,done:r}}});var hi=f((G2,hv)=>{"use strict";var Qk=We(),Cs=Ch(),dv=qr(),pv=mr(),Xk=Te().f,Zk=fi(),mi=pi(),eO=ur(),rO=ne(),mv="Array Iterator",tO=pv.set,nO=pv.getterFor(mv);hv.exports=Zk(Array,"Array",function(e,r){tO(this,{type:mv,target:Qk(e),index:0,kind:r})},function(){var e=nO(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,mi(void 0,!0);switch(e.kind){case"keys":return mi(t,!1);case"values":return mi(r[t],!1)}return mi([t,r[t]],!1)},"values");var fv=dv.Arguments=dv.Array;Cs("keys");Cs("values");Cs("entries");if(!eO&&rO&&fv.name!=="values")try{Xk(fv,"name",{value:"values"})}catch(e){}});var gv=f((V2,vv)=>{"use strict";vv.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 gi=f(()=>{"use strict";hi();var iO=gv(),oO=G(),aO=pr(),yv=qr();for(vi in iO)aO(oO[vi],vi),yv[vi]=yv.Array;var vi});var bv=f((z2,_v)=>{"use strict";var sO=Oh();gi();_v.exports=sO});var Sv=f((Y2,wv)=>{wv.exports=bv()});var Ev=f((Q2,xv)=>{"use strict";Ss();var uO=ve();xv.exports=uO.Symbol.for});var Tv=f((X2,Iv)=>{"use strict";var cO=Ev();Iv.exports=cO});var Av=f((Z2,Rv)=>{Rv.exports=Tv()});var qv=f(()=>{"use strict";var lO=L(),dO=Ye().map,fO=Vr(),pO=fO("map");lO({target:"Array",proto:!0,forced:!pO},{map:function(r){return dO(this,r,arguments.length>1?arguments[1]:void 0)}})});var Ov=f((tH,kv)=>{"use strict";qv();var mO=ge();kv.exports=mO("Array","map")});var Cv=f((nH,Pv)=>{"use strict";var hO=te(),vO=Ov(),Ns=Array.prototype;Pv.exports=function(e){var r=e.map;return e===Ns||hO(Ns,e)&&r===Ns.map?vO:r}});var Dv=f((iH,Nv)=>{"use strict";var gO=Cv();Nv.exports=gO});var Fv=f((oH,Lv)=>{Lv.exports=Dv()});var Uv=f((aH,jv)=>{"use strict";var yO=ne(),_O=lr(),bO=TypeError,wO=Object.getOwnPropertyDescriptor,SO=yO&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();jv.exports=SO?function(e,r){if(_O(e)&&!wO(e,"length").writable)throw new bO("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r}});var $v=f((sH,Bv)=>{"use strict";var Mv=Mr(),xO=TypeError;Bv.exports=function(e,r){if(!delete e[r])throw new xO("Cannot delete property "+Mv(r)+" of "+Mv(e))}});var Hv=f(()=>{"use strict";var EO=L(),IO=cr(),TO=Wn(),RO=Dt(),AO=Ir(),qO=Uv(),kO=Ha(),OO=Kn(),PO=Gn(),Ds=$v(),CO=Vr(),NO=CO("splice"),DO=Math.max,LO=Math.min;EO({target:"Array",proto:!0,forced:!NO},{splice:function(r,t){var n=IO(this),i=AO(n),o=TO(r,i),a=arguments.length,s,u,c,d,l,p;for(a===0?s=u=0:a===1?(s=0,u=i-o):(s=a-2,u=LO(DO(RO(t),0),i-o)),kO(i+s-u),c=OO(n,u),d=0;d<u;d++)l=o+d,l in n&&PO(c,d,n[l]);if(c.length=u,s<u){for(d=o;d<i-u;d++)l=d+u,p=d+s,l in n?n[p]=n[l]:Ds(n,p);for(d=i;d>i-u+s;d--)Ds(n,d-1)}else if(s>u)for(d=i-u;d>o;d--)l=d+u-1,p=d+s-1,l in n?n[p]=n[l]:Ds(n,p);for(d=0;d<s;d++)n[d+o]=arguments[d+2];return qO(n,i-u+s),c}})});var Gv=f((lH,Kv)=>{"use strict";Hv();var FO=ge();Kv.exports=FO("Array","splice")});var Jv=f((dH,Vv)=>{"use strict";var jO=te(),UO=Gv(),Ls=Array.prototype;Vv.exports=function(e){var r=e.splice;return e===Ls||jO(Ls,e)&&r===Ls.splice?UO:r}});var zv=f((fH,Wv)=>{"use strict";var MO=Jv();Wv.exports=MO});var Qv=f((pH,Yv)=>{Yv.exports=zv()});var Zv=f(()=>{"use strict";var BO=L(),$O=At(),HO=Wa().indexOf,KO=Ft(),Fs=$O([].indexOf),Xv=!!Fs&&1/Fs([1],1,-0)<0,GO=Xv||!KO("indexOf");BO({target:"Array",proto:!0,forced:GO},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return Xv?Fs(this,r,t)||0:HO(this,r,t)}})});var rg=f((vH,eg)=>{"use strict";Zv();var VO=ge();eg.exports=VO("Array","indexOf")});var ng=f((gH,tg)=>{"use strict";var JO=te(),WO=rg(),js=Array.prototype;tg.exports=function(e){var r=e.indexOf;return e===js||JO(js,e)&&r===js.indexOf?WO:r}});var og=f((yH,ig)=>{"use strict";var zO=ng();ig.exports=zO});var sg=f((_H,ag)=>{ag.exports=og()});var cg=f((bH,ug)=>{"use strict";var YO=j();ug.exports=YO(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var fg=f((wH,dg)=>{"use strict";var QO=j(),XO=ee(),ZO=Ue(),lg=cg(),yi=Object.isExtensible,eP=QO(function(){yi(1)});dg.exports=eP||lg?function(r){return!XO(r)||lg&&ZO(r)==="ArrayBuffer"?!1:yi?yi(r):!0}:yi});var Us=f((SH,pg)=>{"use strict";var rP=j();pg.exports=!rP(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Wt=f((xH,vg)=>{"use strict";var tP=L(),nP=U(),iP=Wr(),oP=ee(),Ms=se(),aP=Te().f,mg=Zn(),sP=rs(),Bs=fg(),uP=Ot(),cP=Us(),hg=!1,Ze=uP("meta"),lP=0,$s=function(e){aP(e,Ze,{value:{objectID:"O"+lP++,weakData:{}}})},dP=function(e,r){if(!oP(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Ms(e,Ze)){if(!Bs(e))return"F";if(!r)return"E";$s(e)}return e[Ze].objectID},fP=function(e,r){if(!Ms(e,Ze)){if(!Bs(e))return!0;if(!r)return!1;$s(e)}return e[Ze].weakData},pP=function(e){return cP&&hg&&Bs(e)&&!Ms(e,Ze)&&$s(e),e},mP=function(){hP.enable=function(){},hg=!0;var e=mg.f,r=nP([].splice),t={};t[Ze]=1,e(t).length&&(mg.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Ze){r(i,o,1);break}return i},tP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sP.f}))},hP=vg.exports={enable:mP,fastKey:dP,getWeakData:fP,onFreeze:pP};iP[Ze]=!0});var yg=f((EH,gg)=>{"use strict";var vP=re(),gP=qr(),yP=vP("iterator"),_P=Array.prototype;gg.exports=function(e){return e!==void 0&&(gP.Array===e||_P[yP]===e)}});var Hs=f((IH,bg)=>{"use strict";var bP=Gr(),_g=jn(),wP=wr(),SP=qr(),xP=re(),EP=xP("iterator");bg.exports=function(e){if(!wP(e))return _g(e,EP)||_g(e,"@@iterator")||SP[bP(e)]}});var Sg=f((TH,wg)=>{"use strict";var IP=Ie(),TP=xr(),RP=ze(),AP=Mr(),qP=Hs(),kP=TypeError;wg.exports=function(e,r){var t=arguments.length<2?qP(e):r;if(TP(t))return RP(IP(t,e));throw new kP(AP(e)+" is not iterable")}});var Ig=f((RH,Eg)=>{"use strict";var OP=Ie(),xg=ze(),PP=jn();Eg.exports=function(e,r,t){var n,i;xg(e);try{if(n=PP(e,"return"),!n){if(r==="throw")throw t;return t}n=OP(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return xg(n),t}});var zt=f((AH,qg)=>{"use strict";var CP=Ct(),NP=Ie(),DP=ze(),LP=Mr(),FP=yg(),jP=Ir(),Tg=te(),UP=Sg(),MP=Hs(),Rg=Ig(),BP=TypeError,_i=function(e,r){this.stopped=e,this.result=r},Ag=_i.prototype;qg.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=CP(r,n),c,d,l,p,m,h,y,v=function(_){return c&&Rg(c,"normal",_),new _i(!0,_)},g=function(_){return i?(DP(_),s?u(_[0],_[1],v):u(_[0],_[1])):s?u(_,v):u(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=MP(e),!d)throw new BP(LP(e)+" is not iterable");if(FP(d)){for(l=0,p=jP(e);p>l;l++)if(m=g(e[l]),m&&Tg(Ag,m))return m;return new _i(!1)}c=UP(e,d)}for(h=o?e.next:c.next;!(y=NP(h,c)).done;){try{m=g(y.value)}catch(_){Rg(c,"throw",_)}if(typeof m=="object"&&m&&Tg(Ag,m))return m}return new _i(!1)}});var bi=f((qH,kg)=>{"use strict";var $P=te(),HP=TypeError;kg.exports=function(e,r){if($P(r,e))return e;throw new HP("Incorrect invocation")}});var Ks=f((kH,Pg)=>{"use strict";var KP=L(),GP=G(),VP=Wt(),JP=j(),WP=Er(),zP=zt(),YP=bi(),QP=Z(),XP=ee(),ZP=wr(),e1=pr(),r1=Te().f,t1=Ye().forEach,n1=ne(),Og=mr(),i1=Og.set,o1=Og.getterFor;Pg.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=GP[e],s=a&&a.prototype,u={},c;if(!n1||!QP(a)||!(i||s.forEach&&!JP(function(){new a().entries().next()})))c=t.getConstructor(r,e,n,o),VP.enable();else{c=r(function(p,m){i1(YP(p,d),{type:e,collection:new a}),ZP(m)||zP(m,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,l=o1(e);t1(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var m=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&WP(d,p,function(h,y){var v=l(this).collection;if(!m&&i&&!XP(h))return p==="get"?void 0:!1;var g=v[p](h===0?0:h,y);return m?this:g})}),i||r1(d,"size",{configurable:!0,get:function(){return l(this).collection.size}})}return e1(c,e,!1,!0),u[e]=c,KP({global:!0,forced:!0},u),i||t.setStrong(c,e,n),c}});var wi=f((OH,Cg)=>{"use strict";var a1=Yr();Cg.exports=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:a1(e,n,r[n],t);return e}});var Lg=f((PH,Dg)=>{"use strict";var s1=Me(),u1=ri(),c1=re(),l1=ne(),Ng=c1("species");Dg.exports=function(e){var r=s1(e);l1&&r&&!r[Ng]&&u1(r,Ng,{configurable:!0,get:function(){return this}})}});var Hg=f((CH,$g)=>{"use strict";var Fg=zr(),d1=ri(),jg=wi(),f1=Ct(),p1=bi(),m1=wr(),h1=zt(),v1=fi(),Si=pi(),g1=Lg(),Yt=ne(),Ug=Wt().fastKey,Bg=mr(),Mg=Bg.set,Gs=Bg.getterFor;$g.exports={getConstructor:function(e,r,t,n){var i=e(function(c,d){p1(c,o),Mg(c,{type:r,index:Fg(null),first:null,last:null,size:0}),Yt||(c.size=0),m1(d)||h1(d,c[n],{that:c,AS_ENTRIES:t})}),o=i.prototype,a=Gs(r),s=function(c,d,l){var p=a(c),m=u(c,d),h,y;return m?m.value=l:(p.last=m={index:y=Ug(d,!0),key:d,value:l,previous:h=p.last,next:null,removed:!1},p.first||(p.first=m),h&&(h.next=m),Yt?p.size++:c.size++,y!=="F"&&(p.index[y]=m)),c},u=function(c,d){var l=a(c),p=Ug(d),m;if(p!=="F")return l.index[p];for(m=l.first;m;m=m.next)if(m.key===d)return m};return jg(o,{clear:function(){for(var d=this,l=a(d),p=l.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;l.first=l.last=null,l.index=Fg(null),Yt?l.size=0:d.size=0},delete:function(c){var d=this,l=a(d),p=u(d,c);if(p){var m=p.next,h=p.previous;delete l.index[p.index],p.removed=!0,h&&(h.next=m),m&&(m.previous=h),l.first===p&&(l.first=m),l.last===p&&(l.last=h),Yt?l.size--:d.size--}return!!p},forEach:function(d){for(var l=a(this),p=f1(d,arguments.length>1?arguments[1]:void 0),m;m=m?m.next:l.first;)for(p(m.value,m.key,this);m&&m.removed;)m=m.previous},has:function(d){return!!u(this,d)}}),jg(o,t?{get:function(d){var l=u(this,d);return l&&l.value},set:function(d,l){return s(this,d===0?0:d,l)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Yt&&d1(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Gs(r),o=Gs(n);v1(e,r,function(a,s){Mg(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,u=a.last;u&&u.removed;)u=u.previous;return!a.target||!(a.last=u=u?u.next:a.state.first)?(a.target=null,Si(void 0,!0)):Si(s==="keys"?u.key:s==="values"?u.value:[u.key,u.value],!1)},t?"entries":"values",!t,!0),g1(r)}}});var Kg=f(()=>{"use strict";var y1=Ks(),_1=Hg();y1("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_1)});var Gg=f(()=>{"use strict";Kg()});var Jg=f((jH,Vg)=>{"use strict";Vg.exports=function(e,r){return r===1?function(t,n){return t[e](n)}:function(t,n,i){return t[e](n,i)}}});var Yg=f((UH,zg)=>{"use strict";var b1=Me(),xi=Jg(),Wg=b1("Map");zg.exports={Map:Wg,set:xi("set",2),get:xi("get",1),has:xi("has",1),remove:xi("delete",1),proto:Wg.prototype}});var Zg=f(()=>{"use strict";var w1=L(),S1=U(),x1=xr(),E1=sr(),I1=zt(),Ei=Yg(),Qg=ur(),T1=j(),Xg=Ei.Map,R1=Ei.has,A1=Ei.get,q1=Ei.set,k1=S1([].push),O1=Qg||T1(function(){return Xg.groupBy("ab",function(e){return e}).get("a").length!==1});w1({target:"Map",stat:!0,forced:Qg||O1},{groupBy:function(r,t){E1(r),x1(t);var n=new Xg,i=0;return I1(r,function(o){var a=t(o,i++);R1(n,a)?k1(A1(n,a),o):q1(n,a,[o])}),n}})});var ny=f(($H,ty)=>{"use strict";var Vs=U(),P1=Dt(),C1=fr(),N1=sr(),D1=Vs("".charAt),ey=Vs("".charCodeAt),L1=Vs("".slice),ry=function(e){return function(r,t){var n=C1(N1(r)),i=P1(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=ey(n,i),a<55296||a>56319||i+1===o||(s=ey(n,i+1))<56320||s>57343?e?D1(n,i):a:e?L1(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};ty.exports={codeAt:ry(!1),charAt:ry(!0)}});var sy=f(()=>{"use strict";var F1=ny().charAt,j1=fr(),oy=mr(),U1=fi(),iy=pi(),ay="String Iterator",M1=oy.set,B1=oy.getterFor(ay);U1(String,"String",function(e){M1(this,{type:ay,string:j1(e),index:0})},function(){var r=B1(this),t=r.string,n=r.index,i;return n>=t.length?iy(void 0,!0):(i=F1(t,n),r.index+=i.length,iy(i,!1))})});var cy=f((GH,uy)=>{"use strict";hi();Gg();Zg();Jn();sy();var $1=ve();uy.exports=$1.Map});var dy=f((VH,ly)=>{"use strict";var H1=cy();gi();ly.exports=H1});var py=f((JH,fy)=>{fy.exports=dy()});var hy=f(()=>{"use strict";var K1=L(),G1=U(),V1=lr(),J1=G1([].reverse),my=[1,2];K1({target:"Array",proto:!0,forced:String(my)===String(my.reverse())},{reverse:function(){return V1(this)&&(this.length=this.length),J1(this)}})});var gy=f((YH,vy)=>{"use strict";hy();var W1=ge();vy.exports=W1("Array","reverse")});var _y=f((QH,yy)=>{"use strict";var z1=te(),Y1=gy(),Js=Array.prototype;yy.exports=function(e){var r=e.reverse;return e===Js||z1(Js,e)&&r===Js.reverse?Y1:r}});var wy=f((XH,by)=>{"use strict";var Q1=_y();by.exports=Q1});var xy=f((ZH,Sy)=>{Sy.exports=wy()});var Iy=f(()=>{"use strict";var X1=L(),Z1=ne(),Ey=Te().f;X1({target:"Object",stat:!0,forced:Object.defineProperty!==Ey,sham:!Z1},{defineProperty:Ey})});var Ay=f((tK,Ry)=>{"use strict";Iy();var eC=ve(),Ty=eC.Object,rC=Ry.exports=function(r,t,n){return Ty.defineProperty(r,t,n)};Ty.defineProperty.sham&&(rC.sham=!0)});var ky=f((nK,qy)=>{"use strict";var tC=Ay();qy.exports=tC});var Py=f((iK,Oy)=>{Oy.exports=ky()});var Cy=f(()=>{"use strict";var nC=L(),iC=lr();nC({target:"Array",stat:!0},{isArray:iC})});var Dy=f((sK,Ny)=>{"use strict";Cy();var oC=ve();Ny.exports=oC.Array.isArray});var Fy=f((uK,Ly)=>{"use strict";var aC=Dy();Ly.exports=aC});var Uy=f((cK,jy)=>{jy.exports=Fy()});var Ky=f((lK,Hy)=>{"use strict";var By=U(),sC=xr(),uC=ee(),cC=se(),My=Jr(),lC=jr(),$y=Function,dC=By([].concat),fC=By([].join),Ws={},pC=function(e,r,t){if(!cC(Ws,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";Ws[r]=$y("C,a","return new C("+fC(n,",")+")")}return Ws[r](e,t)};Hy.exports=lC?$y.bind:function(r){var t=sC(this),n=t.prototype,i=My(arguments,1),o=function(){var s=dC(i,My(arguments));return this instanceof o?pC(t,s.length,s):t.apply(r,s)};return uC(n)&&(o.prototype=n),o}});var Vy=f(()=>{"use strict";var mC=L(),Gy=Ky();mC({target:"Function",proto:!0,forced:Function.bind!==Gy},{bind:Gy})});var Wy=f((pK,Jy)=>{"use strict";Vy();var hC=ge();Jy.exports=hC("Function","bind")});var Yy=f((mK,zy)=>{"use strict";var vC=te(),gC=Wy(),zs=Function.prototype;zy.exports=function(e){var r=e.bind;return e===zs||vC(zs,e)&&r===zs.bind?gC:r}});var Xy=f((hK,Qy)=>{"use strict";var yC=Yy();Qy.exports=yC});var e_=f((vK,Zy)=>{Zy.exports=Xy()});var t_=f((gK,r_)=>{"use strict";var _C=ee(),bC=Ue(),wC=re(),SC=wC("match");r_.exports=function(e){var r;return _C(e)&&((r=e[SC])!==void 0?!!r:bC(e)==="RegExp")}});var i_=f((yK,n_)=>{"use strict";var xC=t_(),EC=TypeError;n_.exports=function(e){if(xC(e))throw new EC("The method doesn't accept regular expressions");return e}});var a_=f((_K,o_)=>{"use strict";var IC=re(),TC=IC("match");o_.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[TC]=!1,"/./"[e](r)}catch(n){}}return!1}});var c_=f(()=>{"use strict";var RC=L(),AC=At(),qC=Mn().f,kC=La(),s_=fr(),OC=i_(),PC=sr(),CC=a_(),NC=ur(),DC=AC("".slice),LC=Math.min,u_=CC("startsWith"),FC=!NC&&!u_&&!!function(){var e=qC(String.prototype,"startsWith");return e&&!e.writable}();RC({target:"String",proto:!0,forced:!FC&&!u_},{startsWith:function(r){var t=s_(PC(this));OC(r);var n=kC(LC(arguments.length>1?arguments[1]:void 0,t.length)),i=s_(r);return DC(t,n,n+i.length)===i}})});var d_=f((SK,l_)=>{"use strict";c_();var jC=ge();l_.exports=jC("String","startsWith")});var p_=f((xK,f_)=>{"use strict";var UC=te(),MC=d_(),Ys=String.prototype;f_.exports=function(e){var r=e.startsWith;return typeof e=="string"||e===Ys||UC(Ys,e)&&r===Ys.startsWith?MC:r}});var h_=f((EK,m_)=>{"use strict";var BC=p_();m_.exports=BC});var g_=f((IK,v_)=>{v_.exports=h_()});var b_=f(()=>{"use strict";var $C=L(),y_=lr(),HC=Ua(),KC=ee(),__=Wn(),GC=Ir(),VC=We(),JC=Gn(),WC=re(),zC=Vr(),YC=Jr(),QC=zC("slice"),XC=WC("species"),Qs=Array,ZC=Math.max;$C({target:"Array",proto:!0,forced:!QC},{slice:function(r,t){var n=VC(this),i=GC(n),o=__(r,i),a=__(t===void 0?i:t,i),s,u,c;if(y_(n)&&(s=n.constructor,HC(s)&&(s===Qs||y_(s.prototype))?s=void 0:KC(s)&&(s=s[XC],s===null&&(s=void 0)),s===Qs||s===void 0))return YC(n,o,a);for(u=new(s===void 0?Qs:s)(ZC(a-o,0)),c=0;o<a;o++,c++)o in n&&JC(u,c,n[o]);return u.length=c,u}})});var S_=f((AK,w_)=>{"use strict";b_();var eN=ge();w_.exports=eN("Array","slice")});var E_=f((qK,x_)=>{"use strict";var rN=te(),tN=S_(),Xs=Array.prototype;x_.exports=function(e){var r=e.slice;return e===Xs||rN(Xs,e)&&r===Xs.slice?tN:r}});var T_=f((kK,I_)=>{"use strict";var nN=E_();I_.exports=nN});var A_=f((OK,R_)=>{R_.exports=T_()});var D_=f((PK,N_)=>{"use strict";var iN=U(),q_=wi(),Ii=Wt().getWeakData,oN=bi(),aN=ze(),sN=wr(),Zs=ee(),uN=zt(),O_=Ye(),k_=se(),P_=mr(),cN=P_.set,lN=P_.getterFor,dN=O_.find,fN=O_.findIndex,pN=iN([].splice),mN=0,Ti=function(e){return e.frozen||(e.frozen=new C_)},C_=function(){this.entries=[]},eu=function(e,r){return dN(e.entries,function(t){return t[0]===r})};C_.prototype={get:function(e){var r=eu(this,e);if(r)return r[1]},has:function(e){return!!eu(this,e)},set:function(e,r){var t=eu(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=fN(this.entries,function(t){return t[0]===e});return~r&&pN(this.entries,r,1),!!~r}};N_.exports={getConstructor:function(e,r,t,n){var i=e(function(u,c){oN(u,o),cN(u,{type:r,id:mN++,frozen:null}),sN(c)||uN(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=lN(r),s=function(u,c,d){var l=a(u),p=Ii(aN(c),!0);return p===!0?Ti(l).set(c,d):p[l.id]=d,u};return q_(o,{delete:function(u){var c=a(this);if(!Zs(u))return!1;var d=Ii(u);return d===!0?Ti(c).delete(u):d&&k_(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Zs(c))return!1;var l=Ii(c);return l===!0?Ti(d).has(c):l&&k_(l,d.id)}}),q_(o,t?{get:function(c){var d=a(this);if(Zs(c)){var l=Ii(c);if(l===!0)return Ti(d).get(c);if(l)return l[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var H_=f(()=>{"use strict";var hN=Us(),L_=G(),ki=U(),F_=wi(),vN=Wt(),gN=Ks(),j_=D_(),Ri=ee(),Ai=mr().enforce,yN=j(),_N=is(),Zt=Object,bN=Array.isArray,qi=Zt.isExtensible,U_=Zt.isFrozen,wN=Zt.isSealed,M_=Zt.freeze,SN=Zt.seal,xN=!L_.ActiveXObject&&"ActiveXObject"in L_,Qt,B_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$_=gN("WeakMap",B_,j_),et=$_.prototype,Oi=ki(et.set),EN=function(){return hN&&yN(function(){var e=M_([]);return Oi(new $_,e,1),!U_(e)})};_N&&(xN?(Qt=j_.getConstructor(B_,"WeakMap",!0),vN.enable(),ru=ki(et.delete),Xt=ki(et.has),tu=ki(et.get),F_(et,{delete:function(e){if(Ri(e)&&!qi(e)){var r=Ai(this);return r.frozen||(r.frozen=new Qt),ru(this,e)||r.frozen.delete(e)}return ru(this,e)},has:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)||t.frozen.has(r)}return Xt(this,r)},get:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)?tu(this,r):t.frozen.get(r)}return tu(this,r)},set:function(r,t){if(Ri(r)&&!qi(r)){var n=Ai(this);n.frozen||(n.frozen=new Qt),Xt(this,r)?Oi(this,r,t):n.frozen.set(r,t)}else Oi(this,r,t);return this}})):EN()&&F_(et,{set:function(r,t){var n;return bN(r)&&(U_(r)?n=M_:wN(r)&&(n=SN)),Oi(this,r,t),n&&n(r),this}}));var ru,Xt,tu});var K_=f(()=>{"use strict";H_()});var V_=f((FK,G_)=>{"use strict";hi();Jn();K_();var IN=ve();G_.exports=IN.WeakMap});var W_=f((jK,J_)=>{"use strict";var TN=V_();gi();J_.exports=TN});var Y_=f((UK,z_)=>{z_.exports=W_()});var Q_=f(()=>{"use strict";var RN=L(),AN=ne(),qN=zr();RN({target:"Object",stat:!0,sham:!AN},{create:qN})});var Z_=f(($K,X_)=>{"use strict";Q_();var kN=ve(),ON=kN.Object;X_.exports=function(r,t){return ON.create(r,t)}});var rb=f((HK,eb)=>{"use strict";var PN=Z_();eb.exports=PN});var nb=f((KK,tb)=>{tb.exports=rb()});var sb=f((GK,ab)=>{"use strict";var ib=ne(),CN=U(),NN=Ie(),DN=j(),nu=Yn(),LN=ei(),FN=Cn(),jN=cr(),UN=Nn(),rt=Object.assign,ob=Object.defineProperty,MN=CN([].concat);ab.exports=!rt||DN(function(){if(ib&&rt({b:1},rt(ob({},"a",{enumerable:!0,get:function(){ob(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),rt({},e)[t]!==7||nu(rt({},r)).join("")!==n})?function(r,t){for(var n=jN(r),i=arguments.length,o=1,a=LN.f,s=FN.f;i>o;)for(var u=UN(arguments[o++]),c=a?MN(nu(u),a(u)):nu(u),d=c.length,l=0,p;d>l;)p=c[l++],(!ib||NN(s,u,p))&&(n[p]=u[p]);return n}:rt});var cb=f(()=>{"use strict";var BN=L(),ub=sb();BN({target:"Object",stat:!0,arity:2,forced:Object.assign!==ub},{assign:ub})});var db=f((WK,lb)=>{"use strict";cb();var $N=ve();lb.exports=$N.Object.assign});var pb=f((zK,fb)=>{"use strict";var HN=db();fb.exports=HN});var hb=f((YK,mb)=>{mb.exports=pb()});var iu=f((QK,vb)=>{"use strict";vb.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 _b=f((XK,yb)=>{"use strict";var KN=U(),GN=sr(),VN=fr(),au=iu(),gb=KN("".replace),JN=RegExp("^["+au+"]+"),WN=RegExp("(^|[^"+au+"])["+au+"]+$"),ou=function(e){return function(r){var t=VN(GN(r));return e&1&&(t=gb(t,JN,"")),e&2&&(t=gb(t,WN,"$1")),t}};yb.exports={start:ou(1),end:ou(2),trim:ou(3)}});var xb=f((ZK,Sb)=>{"use strict";var zN=Is().PROPER,YN=j(),bb=iu(),wb="\u200B\x85\u180E";Sb.exports=function(e){return YN(function(){return!!bb[e]()||wb[e]()!==wb||zN&&bb[e].name!==e})}});var Eb=f(()=>{"use strict";var QN=L(),XN=_b().trim,ZN=xb();QN({target:"String",proto:!0,forced:ZN("trim")},{trim:function(){return XN(this)}})});var Tb=f((tG,Ib)=>{"use strict";Eb();var eD=ge();Ib.exports=eD("String","trim")});var Ab=f((nG,Rb)=>{"use strict";var rD=te(),tD=Tb(),su=String.prototype;Rb.exports=function(e){var r=e.trim;return typeof e=="string"||e===su||rD(su,e)&&r===su.trim?tD:r}});var kb=f((iG,qb)=>{"use strict";var nD=Ab();qb.exports=nD});var Pb=f((oG,Ob)=>{Ob.exports=kb()});function xu(e,r){Y.__h&&Y.__h(J,e,an||r),an=0;var t=J.__H||(J.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Mi(e){return an=1,iD(hw,e)}function iD(e,r,t){var n=xu(on++,2);if(n.t=e,!n.__c&&(n.__=[t?t(r):hw(void 0,r),function(s){var u=n.__N?n.__N[0]:n.__[0],c=n.t(u,s);u!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=J,!J.__f)){var i=function(s,u,c){var d;if(!n.__c.__H)return!0;var l=(0,Su.default)(d=n.__c.__H.__).call(d,function(m){return!!m.__c});if((0,nw.default)(l).call(l,function(m){return!m.__N}))return!o||o.call(this,s,u,c);var p=n.__c.props!==s;return(0,W.default)(l).call(l,function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(p=!0)}}),o&&o.call(this,s,u,c)||p};J.__f=!0;var o=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(s,u,c){if(this.__e){var d=o;o=void 0,i(s,u,c),o=d}a&&a.call(this,s,u,c)},J.shouldComponentUpdate=i}return n.__N||n.__}function kr(e,r){var t=xu(on++,3);!Y.__s&&mw(t.__H,r)&&(t.__=e,t.u=r,J.__H.__h.push(t))}function Bi(e){return an=5,pw(function(){return{current:e}},[])}function pw(e,r){var t=xu(on++,7);return mw(t.__H,r)&&(t.__=e(),t.__H=r,t.__h=e),t.__}function Pe(e,r){return an=8,pw(function(){return e},r)}function oD(){for(var e;e=fw.shift();)if(e.__P&&e.__H)try{var r,t;(0,W.default)(r=e.__H.__h).call(r,Ni),(0,W.default)(t=e.__H.__h).call(t,vu),e.__H.__h=[]}catch(n){e.__H.__h=[],Y.__e(n,e.__v)}}function aD(e){var r,t=function(){clearTimeout(n),Mb&&cancelAnimationFrame(r),(0,mu.default)(e)},n=(0,mu.default)(t,100);Mb&&(r=requestAnimationFrame(t))}function Ni(e){var r=J,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),J=r}function vu(e){var r=J;e.__c=e.__(),J=r}function mw(e,r){return!e||e.length!==r.length||(0,ji.default)(r).call(r,function(t,n){return t!==e[n]})}function hw(e,r){return typeof r=="function"?r(e):r}function vw(e,r){for(var t in r)e[t]=r[t];return e}function gu(e,r){for(var t in e)if(t!=="__source"&&!(t in r))return!0;for(var n in r)if(n!=="__source"&&e[n]!==r[n])return!0;return!1}function $b(e,r){this.props=e,this.context=r}function sD(e,r){function t(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),r?!r(this.props,i)||!a:gu(this.props,i)}function n(i){return this.shouldComponentUpdate=t,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function cD(e){function r(t){var n=vw({},t);return delete n.ref,e(n,t.ref||null)}return r.$$typeof=uD,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(e.displayName||e.name)+")",r}function gw(e,r,t){var n,i;return e&&(e.__c&&e.__c.__H&&((0,W.default)(n=e.__c.__H.__).call(n,function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=vw({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=r),e.__c=null),e.__k=e.__k&&(0,Ki.default)(i=e.__k).call(i,function(o){return gw(o,r,t)})),e}function yw(e,r,t){var n;return e&&t&&(e.__v=null,e.__k=e.__k&&(0,Ki.default)(n=e.__k).call(n,function(i){return yw(i,r,t)}),e.__c&&e.__c.__P===r&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function cu(){this.__u=0,this.o=null,this.__b=null}function _w(e){var r=e.__.__c;return r&&r.__a&&r.__a(e)}function Pi(){this.i=null,this.l=null}function gD(){}function yD(){return this.cancelBubble}function _D(){return this.defaultPrevented}function A(e,r,t,n,i,o){r||(r={});var a,s,u=r;if("ref"in u)for(s in u={},r)s=="ref"?a=r[s]:u[s]=r[s];var c={type:e,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--wD,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)u[s]===void 0&&(u[s]=a[s]);return k.vnode&&k.vnode(c),c}function ID(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function TD(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}function PD(e,r){return ue(e,0)^45?(((r<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function Sw(e){return(0,dw.default)(e).call(e)}function CD(e,r){return(e=r.exec(e))?e[0]:e}function D(e,r,t){return e.replace(r,t)}function yu(e,r){return(0,tt.default)(e).call(e,r)}function ue(e,r){return e.charCodeAt(r)|0}function sn(e,r,t){return(0,sw.default)(e).call(e,r,t)}function Be(e){return e.length}function Tu(e){return e.length}function Ci(e,r){return r.push(e),e}function ND(e,r){return(0,Ki.default)(e).call(e,r).join("")}function Ji(e,r,t,n,i,o,a){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:Vi,column:it,length:a,return:""}}function en(e,r){return OD(Ji("",null,null,"",null,null,0),e,{length:-e.length},r)}function DD(){return Q}function LD(){return Q=_e>0?ue(ot,--_e):0,it--,Q===10&&(it=1,Vi--),Q}function Se(){return Q=_e<xw?ue(ot,_e++):0,it++,Q===10&&(it=1,Vi++),Q}function $e(){return ue(ot,_e)}function Di(){return _e}function cn(e,r){return sn(ot,e,r)}function un(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 Ew(e){return Vi=it=1,xw=Be(ot=e),_e=0,[]}function Iw(e){return ot="",e}function Li(e){return Sw(cn(_e-1,_u(e===91?e+2:e===40?e+1:e)))}function FD(e){for(;(Q=$e())&&Q<33;)Se();return un(e)>2||un(Q)>3?"":" "}function jD(e,r){for(;--r&&Se()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return cn(e,Di()+(r<6&&$e()==32&&Se()==32))}function _u(e){for(;Se();)switch(Q){case e:return _e;case 34:case 39:e!==34&&e!==39&&_u(Q);break;case 40:e===41&&_u(e);break;case 92:Se();break}return _e}function UD(e,r){for(;Se()&&e+Q!==57&&!(e+Q===84&&$e()===47););return"/*"+cn(r,_e-1)+"*"+Gi(e===47?e:Se())}function MD(e){for(;!un($e());)Se();return cn(e,_e)}function BD(e){return Iw(Fi("",null,null,null,[""],e=Ew(e),0,[0],e))}function Fi(e,r,t,n,i,o,a,s,u){for(var c=0,d=0,l=a,p=0,m=0,h=0,y=1,v=1,g=1,_=0,x="",q=i,V=o,I=n,w=x;v;)switch(h=_,_=Se()){case 40:if(h!=108&&ue(w,l-1)==58){yu(w+=D(Li(_),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:w+=Li(_);break;case 9:case 10:case 13:case 32:w+=FD(h);break;case 92:w+=jD(Di()-1,7);continue;case 47:switch($e()){case 42:case 47:Ci($D(UD(Se(),Di()),r,t),u);break;default:w+="/"}break;case 123*y:s[c++]=Be(w)*g;case 125*y:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:g==-1&&(w=D(w,/\f/g,"")),m>0&&Be(w)-l&&Ci(m>32?Qb(w+";",n,t,l-1):Qb(D(w," ","")+";",n,t,l-2),u);break;case 59:w+=";";default:if(Ci(I=Yb(w,r,t,c,d,i,s,x,q=[],V=[],l),o),_===123)if(d===0)Fi(w,r,I,I,q,o,l,s,V);else switch(p===99&&ue(w,3)===110?100:p){case 100:case 108:case 109:case 115:Fi(e,I,I,n&&Ci(Yb(e,I,I,0,0,i,s,x,i,q=[],l),V),i,V,l,s,n?q:V);break;default:Fi(w,I,I,I,[""],V,0,s,V)}}c=d=m=0,y=g=1,x=w="",l=a;break;case 58:l=1+Be(w),m=h;default:if(y<1){if(_==123)--y;else if(_==125&&y++==0&&LD()==125)continue}switch(w+=Gi(_),_*y){case 38:g=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(Be(w)-1)*g,g=1;break;case 64:$e()===45&&(w+=Li(Se())),p=$e(),d=l=Be(x=w+=MD(Di())),_++;break;case 45:h===45&&Be(w)==2&&(y=0)}}return o}function Yb(e,r,t,n,i,o,a,s,u,c,d){for(var l=i-1,p=i===0?o:[""],m=Tu(p),h=0,y=0,v=0;h<n;++h)for(var g=0,_=sn(e,l+1,l=kD(y=a[h])),x=e;g<m;++g)(x=Sw(y>0?p[g]+" "+_:D(_,/&\f/g,p[g])))&&(u[v++]=x);return Ji(e,r,t,i===0?Eu:s,u,c,d)}function $D(e,r,t){return Ji(e,r,t,bw,Gi(DD()),sn(e,2,-2),0)}function Qb(e,r,t,n){return Ji(e,r,t,Iu,sn(e,0,n),sn(e,n+1,-1),n)}function nt(e,r){for(var t="",n=Tu(e),i=0;i<n;i++)t+=r(e[i],i,e,r)||"";return t}function HD(e,r,t,n){switch(e.type){case qD:if(e.children.length)break;case AD:case Iu:return e.return=e.return||e.value;case bw:return"";case ww:return e.return=e.value+"{"+nt(e.children,n)+"}";case Eu:e.value=e.props.join(",")}return Be(t=nt(e.children,n))?e.return=e.value+"{"+t+"}":""}function KD(e){var r=Tu(e);return function(t,n,i,o){for(var a="",s=0;s<r;s++)a+=e[s](t,n,i,o)||"";return a}}function GD(e){return function(r){r.root||(r=r.return)&&e(r)}}function VD(e){var r=(0,cw.default)(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}function Tw(e,r){switch(PD(e,r)){case 5103:return N+"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 N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+$i+e+ce+e+e;case 6828:case 4268:return N+e+ce+e+e;case 6165:return N+e+ce+"flex-"+e+e;case 5187:return N+e+D(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+ce+"flex-$1$2")+e;case 5443:return N+e+ce+"flex-item-"+D(e,/flex-|-self/,"")+e;case 4675:return N+e+ce+"flex-line-pack"+D(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+ce+D(e,"shrink","negative")+e;case 5292:return N+e+ce+D(e,"basis","preferred-size")+e;case 6060:return N+"box-"+D(e,"-grow","")+N+e+ce+D(e,"grow","positive")+e;case 4554:return N+D(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,N+"$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(Be(e)-1-r>6)switch(ue(e,r+1)){case 109:if(ue(e,r+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+$i+(ue(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~yu(e,"stretch")?Tw(D(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ue(e,r+1)!==115)break;case 6444:switch(ue(e,Be(e)-3-(~yu(e,"!important")&&10))){case 107:return D(e,":",":"+N)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(ue(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ce+"$2box$3")+e}break;case 5936:switch(ue(e,r+11)){case 114:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+ce+e+e}return e}function rL(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function Hi(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return vr={name:i.name,styles:i.styles,next:vr},i.name;var o=t;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)vr={name:a.name,styles:a.styles,next:vr},a=a.next;var s=o.styles+";";return s}return oL(e,r,t)}}var u=t;if(r==null)return u;var c=r[u];return c!==void 0?c:u}function oL(e,r,t){var n="";if((0,nn.default)(t))for(var i=0;i<t.length;i++)n+=Hi(e,r,t[i])+";";else for(var o in t){var a=t[o];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=o+"{"+r[s]+"}":Zb(s)&&(n+=du(o)+":"+ew(o,s)+";")}else if((0,nn.default)(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var u=0;u<a.length;u++)Zb(a[u])&&(n+=du(o)+":"+ew(o,a[u])+";");else{var c=Hi(e,r,a);switch(o){case"animation":case"animationName":{n+=du(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function fu(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";vr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Hi(t,r,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Hi(t,r,e[s]),n){var u=o;i+=u[s]}rw.lastIndex=0;for(var c="",d;(d=rw.exec(i))!==null;)c+="-"+d[1];var l=rL(i)+c;return{name:l,styles:i,next:vr}}function bu(e,r,t){var n,i="";return(0,W.default)(n=t.split(" ")).call(n,function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(i+=o+" ")}),i}function tw(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function pu(e,r,t){var n=[],i=bu(e,n,t);return n.length<2?t:i+r(n)}function hL(s){var u=s,{elementTag:e="Image",src:r="",children:t,handleExposure:n,className:i,imgStyle:o}=u,a=Ae(u,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=mL(()=>{r&&n()});return e==="Image"?A("div",{className:i,style:{borderRadius:"8px"},children:Je("img",C(T({},a),{ref:c,src:r!=null?r:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"contain",maxWidth:"100%",maxHeight:"100%",borderRadius:"8px"},o||{})}))}):A("div",C(T({},a),{ref:c,className:i,children:t}))}function vL(e,r){if(!e)return null;let t=Array.isArray(r)?r[0]:r,n=Array.isArray(r)?r[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,C(T({},i.props),{style:C(T({},i.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,C(T({},e.props),{style:C(T({},e.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}var Su,nw,W,iw,ji,mu,rn,tn,Ki,sG,tt,ow,aw,Ui,nn,hu,uG,sw,uw,cw,lw,dw,on,J,uu,Cb,an,fw,Y,Nb,Db,Lb,Fb,jb,Ub,Mb,Bb,Hb,uD,lD,Kb,Gb,dD,fD,pD,mD,hD,vD,Vb,bD,Jb,Wb,zb,wD,lu,SD,xD,ED,RD,ce,$i,N,bw,Eu,Iu,AD,ww,qD,kD,Gi,OD,Vi,it,xw,_e,Q,ot,JD,WD,zD,Xb,YD,QD,XD,ZD,eL,tL,nL,iL,Rw,Zb,du,ew,rw,vr,aL,sL,uL,cL,lL,er,dL,fL,pL,mL,Aw,qw,gL,yL,_L,bL,wu,wL,kw,Ow,Pw,SL,xL,EL,Cw,Ru=R(()=>{"use strict";bl();Su=M(qf(),1),nw=M(Uf(),1),W=M(Xf(),1),iw=M(dp(),1),ji=M(bp(),1),mu=M(jp(),1),rn=M(Sv(),1),tn=M(Av(),1),Ki=M(Fv(),1),sG=M(Qv(),1),tt=M(sg(),1),ow=M(py(),1),aw=M(xy(),1),Ui=M(Py(),1),nn=M(Uy(),1),hu=M(e_(),1),uG=M(g_(),1),sw=M(A_(),1),uw=M(Y_(),1),cw=M(nb(),1),lw=M(hb(),1),dw=M(Pb(),1),an=0,fw=[],Y=k,Nb=Y.__b,Db=Y.__r,Lb=Y.diffed,Fb=Y.__c,jb=Y.unmount,Ub=Y.__;Y.__b=function(e){J=null,Nb&&Nb(e)},Y.__=function(e,r){e&&r.__k&&r.__k.__m&&(e.__m=r.__k.__m),Ub&&Ub(e,r)},Y.__r=function(e){var r,t,n;Db&&Db(e),on=0;var i=(J=e.__c).__H;i&&(uu===J?(i.__h=[],J.__h=[],(0,W.default)(r=i.__).call(r,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,W.default)(t=i.__h).call(t,Ni),(0,W.default)(n=i.__h).call(n,vu),i.__h=[],on=0)),uu=J},Y.diffed=function(e){var r;Lb&&Lb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(fw.push(t)!==1&&Cb===Y.requestAnimationFrame||((Cb=Y.requestAnimationFrame)||aD)(oD)),(0,W.default)(r=t.__H.__).call(r,function(n){n.u&&(n.__H=n.u),n.u=void 0})),uu=J=null},Y.__c=function(e,r){(0,ji.default)(r).call(r,function(t){try{var n,i;(0,W.default)(n=t.__h).call(n,Ni),t.__h=(0,Su.default)(i=t.__h).call(i,function(o){return!o.__||vu(o)})}catch(o){(0,ji.default)(r).call(r,function(a){a.__h&&(a.__h=[])}),r=[],Y.__e(o,t.__v)}}),Fb&&Fb(e,r)},Y.unmount=function(e){var r;jb&&jb(e);var t,n=e.__c;n&&n.__H&&((0,W.default)(r=n.__H.__).call(r,function(i){try{Ni(i)}catch(o){t=o}}),n.__H=void 0,t&&Y.__e(t,n.__v))};Mb=typeof requestAnimationFrame=="function";($b.prototype=new je).isPureReactComponent=!0,$b.prototype.shouldComponentUpdate=function(e,r){return gu(this.props,e)||gu(this.state,r)};Hb=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Hb&&Hb(e)};uD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.forward_ref")||3911;lD=k.__e;k.__e=function(e,r,t,n){if(e.then){for(var i,o=r;o=o.__;)if((i=o.__c)&&i.__c)return r.__e==null&&(r.__e=t.__e,r.__k=t.__k),i.__c(e,r)}lD(e,r,t,n)};Kb=k.unmount;k.unmount=function(e){var r=e.__c;r&&r.__R&&r.__R(),r&&32&e.__u&&(e.type=null),Kb&&Kb(e)},(cu.prototype=new je).__c=function(e,r){var t=r.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var i=_w(n.__v),o=!1,a=function(){o||(o=!0,t.__R=null,i?i(s):s())};t.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=yw(u,u.__c.__P,u.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&r.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},cu.prototype.componentWillUnmount=function(){this.o=[]},cu.prototype.render=function(e,r){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=gw(this.__b,t,n.__O=n.__P)}this.__b=null}var i=r.__a&&Je(ar,null,e.fallback);return i&&(i.__u&=-33),[Je(ar,null,r.__a?null:e.children),i]};Gb=function(e,r,t){if(++t[1]===t[0]&&e.l.delete(r),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(Pi.prototype=new je).__a=function(e){var r=this,t=_w(r.__v),n=r.l.get(e);return n[0]++,function(i){var o=function(){r.props.revealOrder?(n.push(i),Gb(r,e,n)):i()};t?t(o):o()}},Pi.prototype.render=function(e){this.i=null,this.l=new ow.default;var r=It(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&(0,aw.default)(r).call(r);for(var t=r.length;t--;)this.l.set(r[t],this.i=[1,0,this.i]);return e.children},Pi.prototype.componentDidUpdate=Pi.prototype.componentDidMount=function(){var e,r=this;(0,W.default)(e=this.l).call(e,function(t,n){Gb(r,n,t)})};dD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.element")||60103,fD=/^(?: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]/,pD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mD=/[A-Z0-9]/g,hD=typeof document<"u",vD=function(e){return(typeof rn.default<"u"&&typeof(0,rn.default)()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};je.prototype.isReactComponent={},(0,W.default)(Bb=["componentWillMount","componentWillReceiveProps","componentWillUpdate"]).call(Bb,function(e){(0,Ui.default)(je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(r){(0,Ui.default)(this,e,{configurable:!0,writable:!0,value:r})}})});Vb=k.event;k.event=function(e){return Vb&&(e=Vb(e)),e.persist=gD,e.isPropagationStopped=yD,e.isDefaultPrevented=_D,e.nativeEvent=e};bD={enumerable:!1,configurable:!0,get:function(){return this.class}},Jb=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(r,t,n){var i=r.props,o=r.type,a={},s=(0,tt.default)(o).call(o,"-")===-1;for(var u in i){var c=i[u];if(!(u==="value"&&"defaultValue"in i&&c==null||hD&&u==="children"&&o==="noscript"||u==="class"||u==="className")){var d=u.toLowerCase();u==="defaultValue"&&"value"in i&&i.value==null?u="value":u==="download"&&c===!0?c="":d==="translate"&&c==="no"?c=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?u="ondblclick":d!=="onchange"||o!=="input"&&o!=="textarea"||vD(i.type)?d==="onfocus"?u="onfocusin":d==="onblur"?u="onfocusout":pD.test(u)&&(u=d):d=u="oninput":s&&fD.test(u)?u=u.replace(mD,"-$&").toLowerCase():c===null&&(c=void 0),d==="oninput"&&a[u=d]&&(u="oninputCapture"),a[u]=c}}o=="select"&&a.multiple&&(0,nn.default)(a.value)&&(a.value=(0,W.default)(t=It(i.children)).call(t,function(l){var p;l.props.selected=(0,tt.default)(p=a.value).call(p,l.props.value)!=-1})),o=="select"&&a.defaultValue!=null&&(a.value=(0,W.default)(n=It(i.children)).call(n,function(l){var p;l.props.selected=a.multiple?(0,tt.default)(p=a.defaultValue).call(p,l.props.value)!=-1:a.defaultValue==l.props.value})),i.class&&!i.className?(a.class=i.class,(0,Ui.default)(a,"className",bD)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),r.props=a}(e),e.$$typeof=dD,Jb&&Jb(e)};Wb=k.__r;k.__r=function(e){Wb&&Wb(e),e.__c};zb=k.diffed;k.diffed=function(e){zb&&zb(e);var r=e.props,t=e.__e;t!=null&&e.type==="textarea"&&"value"in r&&r.value!==t.value&&(t.value=r.value==null?"":r.value)};wD=0;lu={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"}},SD=`
|
|
19
|
+
`;e.textContent=o;let a=document.head||document.getElementsByTagName("head")[0];a.insertBefore(e,a.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},n=()=>{function o(s){return E(this,null,function*(){let u=s instanceof URL?s.href:s,c=new Promise((d,l)=>{let p=new XMLHttpRequest;p.open("GET",u),p.responseType="arraybuffer",p.addEventListener("load",()=>d(p.response)),p.addEventListener("error",l),p.send()});try{let d=yield c;return new Response(d,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(d){throw console.error("Failed to load wasm:",d),d}})}let a=window.fetch;window.fetch=(s,u)=>{let c=s instanceof URL?s.href:s.toString();return c.endsWith(".wasm")?o(c):a(s,u)}},i=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=r};return t(),n(),i}var tl=R(()=>{"use strict"});var xn,nl=R(()=>{"use strict";xn=class{constructor(r){this.track=r;this.adBreakIsShowing=!1;this.reportPageJumpOut=()=>{this.track("AdBreakJumpOut",{context:"AdsActionDetection"})};this.reportPageHide=()=>{this.track("AdBreakHide",{context:"AdsActionDetection"})};window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",t=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}}});var En,m0,h0,v0,g0,il=R(()=>{"use strict";P();Zo();En=class{constructor(r,t,n,i){this.track=r;this.httpClient=t;this.checkNetwork=n;this.checkAdsDisplayPermission=r=>{if(!this.checkNetwork())return{reason:"NETWORK_NOT_OK"};let t=this.checkShouldBanInitial();if(t)return{reason:t};let n=this.checkShouldBanForSession(r);if(n)return{reason:n};let i=this.checkShouldBanHighFreq(r);if(i)return i;let o=this.checkShouldBanForTime(r);return o?{reason:o}:{reason:"ALLOWED"}};var p,m,h,y,v,g,_;let o=(p=i==null?void 0:i.maxAllowedAdsForTime)!=null?p:8,a=(m=i==null?void 0:i.banForTimeThreshold)!=null?m:6e4,s=(h=i==null?void 0:i.bannedReleaseTime)!=null?h:6e4,u=(y=i==null?void 0:i.maxAllowedAdsForSession)!=null?y:200,c=(v=i==null?void 0:i.banForSessionThreshold)!=null?v:6e5,d=(g=i==null?void 0:i.initialThreshold)!=null?g:2e3,l=(_=i==null?void 0:i.highFreqThreshold)!=null?_:2e3;this.checkShouldBanInitial=v0(d),this.checkShouldBanHighFreq=g0(l),this.checkShouldBanForTime=h0(o,a,s),this.checkShouldBanForSession=m0(u,c)}report(r,t){let n=t?{reason:r,count:t}:{reason:r};this.track("PreventAdsCheating",n),this.httpClient.post("/api/base/app-event",{data:{eventType:"PREVENT_ADS_CHEATING",adsInfo:n}})}},m0=(e,r)=>{let t=!1,n=[];return o=>{if(t)return"BANNED_FOR_SESSION";let a=Date.now();if(n=n.concat({timestamp:a,type:o}),n.length!==1&&(n.length>e&&(n=n.slice(-e)),n.length===e&&a-n[0].timestamp<=r))return t=!0,"BANNED_FOR_SESSION"}},h0=(e,r,t)=>{let n=null,i=d=>{n&&(window.clearTimeout(n),n=null),n=window.setTimeout(()=>{u.value=!1,n=null},d)},o="jolibox-sdk-ads-callbreak-timestamps",a="jolibox-sdk-ads-ban-for-time",s={_records:[],init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(o))!=null?d:"[]");Array.isArray(l)?this._records=l:this._records=[]}catch(l){this._records=[]}},get values(){return this._records},set values(d){try{window.__joliboxLocalStorage__.setItem(o,JSON.stringify(d))}catch(l){}this._records=d}},u={_record:!1,init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(a))!=null?d:"false");typeof l=="boolean"&&(this._record=l)}catch(l){this._record=!1}if(this._record){let l=s.values[s.values.length-1],p=l?Date.now()-l.timestamp:t;p<=t&&p>0?i(p):this._record=!1}},get value(){return this._record},set value(d){try{window.__joliboxLocalStorage__.setItem(a,JSON.stringify(d))}catch(l){}this._record=d}};return s.init(),u.init(),d=>{if(u.value)return"WAITING_BANNED_RELEASE";let l=Date.now();if(s.values=s.values.concat({timestamp:l,type:d}),s.values.length!==1&&(s.values.length>e&&(s.values=s.values.slice(-e)),s.values.length===e&&l-s.values[0].timestamp<=r))return u.value=!0,i(t),"BANNED_FOR_TIME"}},v0=e=>{let r=Date.now();return()=>{if(Date.now()-r<=e)return"BLOCK_INITIAL"}},g0=(e=2e3)=>{let r=0,t=null;return i=>{if(i==="reward"){if(t)return r+=1,{reason:"HOLDING_HIGH_FREQ",info:{count:r}};t=window.setTimeout(()=>{t&&(window.clearTimeout(t),t=0,r=0)},e)}}}});var In,ol=R(()=>{"use strict";ae();In=class{constructor(r){this.httpClient=r;this.configs=null;this.firstRun=!0;this.init()}init(){return E(this,null,function*(){try{this.configs=yield this.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config")}catch(r){}})}shouldBypassCallingInterstitial(){var t,n;let r;if(!this.configs)this.init(),r=!this.firstRun;else{let i=(t=S.channel)!=null?t:"",o=this.configs[i],a=(n=o==null?void 0:o.interstitialRate)!=null?n:1;r=Math.random()<a}return this.firstRun=!1,r}}});var Lr,Tn,la=R(()=>{"use strict";nl();il();ae();ol();P();Lr=new De,Tn=class{constructor(r,t,n){this.track=r;this.httpClient=t;this.checkNetwork=n;this.configured=!1;this.config={};this.getGameId=()=>S.mpId;this.getTestAdsMode=()=>S.testAdsMode;this.asyncLoad=()=>E(this,null,function*(){var a,s,u,c,d;let r="ca-pub-7171363994453626",t,n,i=window.encodeURIComponent(window.btoa((a=this.getGameId())!=null?a:"")),o=(s=this.getTestAdsMode())!=null?s:!1;try{let l=yield this.httpClient.get("/public/ads",{query:{objectId:i,testAdsMode:`${o}`}});r=(u=l.data)==null?void 0:u.clientId,t=(c=l.data)==null?void 0:c.channelId,n=(d=l.data)==null?void 0:d.unitId}catch(l){console.error("Failed to fetch client info",l)}this.clientId=r,this.channelId=t,this.unitId=n});this.asyncInit=r=>E(this,null,function*(){var i;if(typeof window=="undefined")return;yield this.asyncLoad();let t="google-adsense",n=(i=this.getTestAdsMode())!=null?i:!1;if(!document.getElementById(t)&&this.clientId){let o=document.createElement("script");o.id=t,o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.clientId}`,n&&o.setAttribute("data-adbreak-test","on"),this.channelId&&o.setAttribute("data-ad-channel",this.channelId),document.head.appendChild(o),this.track("LoadAdsenseCompleted",null)}});this.push=(r={})=>{window.adsbygoogle.push(r)};this.wrapAdBreakParams=r=>{let t=!1,n=r.adBreakDone,i=a=>{var s;t=!0,this.adsActionDetection.adBreakIsShowing=!1,this.track("CallAdBreakDone",{breakType:a.breakType,breakName:(s=a.breakName)!=null?s:"",breakFormat:a.breakFormat,breakStatus:a.breakStatus}),n&&n(a)};if(r.adBreakDone=i,r.type==="reward"){let a=r.beforeReward,s=c=>()=>{this.track("CallShowAdFn",null),c()},u=c=>{t=!0,a&&a(s(c))};r.beforeReward=u,window.setTimeout(()=>{var c,d;t||(this.track("CallAdBreakTimeout",{type:r.type}),(d=r.adBreakDone)==null||d.call(r,{breakType:r.type,breakName:(c=r.name)!=null?c:"",breakFormat:"reward",breakStatus:"timeout"}))},5e3)}if((a=>a.type==="preroll")(r)){Lr.emit("isAdShowing",!0);let a=r.adBreakDone,s=u=>{Lr.emit("isAdShowing",!1),a&&a(u)};return C(T({},r),{adBreakDone:s})}else{let a=r.beforeAd,s=r.afterAd,u=()=>{var d;t=!0,Lr.emit("isAdShowing",!0),this.track("CallBeforeAd",{type:r.type,name:(d=r.name)!=null?d:""}),a&&a()},c=()=>{var d;t=!0,Lr.emit("isAdShowing",!1),this.track("CallAfterAd",{type:r.type,name:(d=r.name)!=null?d:""}),s&&s()};return C(T({},r),{beforeAd:u,afterAd:c})}};this.adConfig=r=>{let i=r,{onReady:t}=i,n=Ae(i,["onReady"]);this.track("CallAdConfig",n),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(r))};this.adBreak=r=>{var s,u,c,d,l,p;if(!this.getGameId()){console.warn("Game ID is not set, skip calling adBreak");return}if(r.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(s=r.adBreakDone)==null||s.call(r,{breakType:r.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}let{reason:t,info:n}=this.antiCheating.checkAdsDisplayPermission(r.type==="reward"?"reward":"interstitial");switch(t){case"NETWORK_NOT_OK":case"BANNED_FOR_SESSION":(u=r.adBreakDone)==null||u.call(r,{breakType:r.type,breakName:t,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"}),this.antiCheating.report(t);return;case"BLOCK_INITIAL":case"BANNED_FOR_TIME":case"WAITING_BANNED_RELEASE":(c=r.adBreakDone)==null||c.call(r,{breakType:r.type,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"}),this.antiCheating.report(t);return;case"HOLDING_HIGH_FREQ":(l=r.adBreakDone)==null||l.call(r,{breakFormat:r.type==="reward"?"reward":"interstitial",breakName:"",breakStatus:((d=n==null?void 0:n.count)!=null?d:0)>6?"other":"frequencyCapped",breakType:r.type}),n!=null&&n.count&&n.count!==0&&n.count%3===0&&this.antiCheating.report(t,n==null?void 0:n.count);return;default:break}let i=r.type,o;switch(i){case"preroll":o={type:i};break;case"start":case"pause":case"next":case"browse":case"reward":o={type:i,name:(p=r.name)!=null?p:""};break}this.adsActionDetection.adBreakIsShowing=!0,this.track("CallAdBreak",o);let a=this.wrapAdBreakParams(r);this.push(a),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")};this.adUnit=r=>E(this,null,function*(){var p,m,h,y;if(this.track("CallAdUnit",{adFormat:(m=(p=r.adFormat)==null?void 0:p.toString())!=null?m:null,fullWidthResponsive:(h=r.fullWidthResponsive)!=null?h:null}),this.clientId||(yield this.asyncLoad()),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:t,slot:n,adFormat:i,fullWidthResponsive:o,style:a}=r,s;if(!t)throw new Error("targeting element is required");if(typeof t=="string"?s=document.querySelector(t):s=t,!s)throw new Error("targeting element not found");let u=n;if(u||(u=this.unitId),!u)throw new Error("slot is required");let c=typeof i=="object"&&Array.isArray(i)?i.join(", "):i,d=document.createElement("ins");if(d.className="adsbygoogle",d.id="jolibox-ads",d.style.display="block",d.setAttribute("data-ad-client",this.clientId),d.setAttribute("data-ad-slot",u),c&&d.setAttribute("data-ad-format",c),o&&d.setAttribute("data-full-width-responsive",o),a&&d.setAttribute("style",a),(y=this.getTestAdsMode())!=null?y:!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",d.style.position="relative",s.appendChild(d),d.appendChild(v)}else s.appendChild(d),new MutationObserver(g=>{g.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let x=d.getAttribute("data-ad-status");this.track("AdSenseUnitStatusChanged",{status:x!=null?x:"null"})}})}).observe(d,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})});this.antiCheating=new En(r,t,n),this.adsActionDetection=new xn(this.track),this.channelPolicy=new In(t)}init(r){this.track("CallAdsInit",null),typeof window!="undefined"&&(this.config=r!=null?r:{},window.adsbygoogle=window.adsbygoogle||[],this.asyncInit(r))}}});function Ve(e,r){for(var t in r)e[t]=r[t];return e}function ma(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,r,t){var n,i,o,a={};for(o in r)o=="key"?n=r[o]:o=="ref"?i=r[o]:a[o]=r[o];if(arguments.length>2&&(a.children=arguments.length>3?kn.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return An(e,a,n,i,null)}function An(e,r,t,n,i){var o={type:e,props:r,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++ll:i,__i:-1,__u:0};return i==null&&k.vnode!=null&&k.vnode(o),o}function ar(e){return e.children}function je(e,r){this.props=e,this.context=r}function Fr(e,r){if(r==null)return e.__?Fr(e.__,e.__i+1):null;for(var t;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?Fr(e):null}function hl(e){var r,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return hl(e)}}function sl(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!qn.__r++||al!==k.debounceRendering)&&((al=k.debounceRendering)||dl)(qn)}function qn(){for(var e,r,t,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(fl),e=br.shift(),s=br.length,e.__d&&(t=void 0,i=(n=(r=e).__v).__e,o=[],a=[],r.__P&&((t=Ve({},n)).__v=n.__v+1,k.vnode&&k.vnode(t),ha(r.__P,t,n,r.__n,r.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Fr(n):i,!!(32&n.__u),a),t.__v=n.__v,t.__.__k[t.__i]=t,yl(o,t,a),t.__e!=i&&hl(t)));qn.__r=0}function vl(e,r,t,n,i,o,a,s,u,c,d){var l,p,m,h,y,v,g=n&&n.__k||ml,_=r.length;for(u=w0(t,r,g,u,_),l=0;l<_;l++)(m=t.__k[l])!=null&&(p=m.__i===-1?xt:g[m.__i]||xt,m.__i=l,v=ha(e,m,p,i,o,a,s,u,c,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&va(p.ref,null,m),d.push(m.ref,m.__c||h,m)),y==null&&h!=null&&(y=h),4&m.__u||p.__k===m.__k?u=gl(m,u,e):typeof m.type=="function"&&v!==void 0?u=v:h&&(u=h.nextSibling),m.__u&=-7);return t.__e=y,u}function w0(e,r,t,n,i){var o,a,s,u,c,d=t.length,l=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=r[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(u=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?An(null,a,null,null,null):Et(a)?An(ar,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?An(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=S0(a,t,u,l))!==-1&&(l--,(s=t[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,a.__u|=4))):e.__k[o]=null;if(l)for(o=0;o<d;o++)(s=t[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Fr(s)),bl(s,s));return n}function gl(e,r,t){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,r=gl(n[i],r,t));return r}e.__e!=r&&(r&&e.type&&!t.contains(r)&&(r=Fr(e)),t.insertBefore(e.__e,r||null),r=e.__e);do r=r&&r.nextSibling;while(r!=null&&r.nodeType==8);return r}function It(e,r){return r=r||[],e==null||typeof e=="boolean"||(Et(e)?e.some(function(t){It(t,r)}):r.push(e)),r}function S0(e,r,t,n){var i,o,a=e.key,s=e.type,u=r[t];if(u===null&&e.key==null||u&&a==u.key&&s===u.type&&!(2&u.__u))return t;if(n>(u!=null&&!(2&u.__u)?1:0))for(i=t-1,o=t+1;i>=0||o<r.length;){if(i>=0){if((u=r[i])&&!(2&u.__u)&&a==u.key&&s===u.type)return i;i--}if(o<r.length){if((u=r[o])&&!(2&u.__u)&&a==u.key&&s===u.type)return o;o++}}return-1}function ul(e,r,t){r[0]=="-"?e.setProperty(r,t==null?"":t):e[r]=t==null?"":typeof t!="number"||b0.test(r)?t:t+"px"}function Rn(e,r,t,n,i){var o;e:if(r=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(r in n)t&&r in t||ul(e.style,r,"");if(t)for(r in t)n&&t[r]===n[r]||ul(e.style,r,t[r])}else if(r[0]=="o"&&r[1]=="n")o=r!=(r=r.replace(pl,"$1")),r=r.toLowerCase()in e||r=="onFocusOut"||r=="onFocusIn"?r.toLowerCase().slice(2):r.slice(2),e.l||(e.l={}),e.l[r+o]=t,t?n?t.t=n.t:(t.t=pa,e.addEventListener(r,o?fa:da,o)):e.removeEventListener(r,o?fa:da,o);else{if(i=="http://www.w3.org/2000/svg")r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!="width"&&r!="height"&&r!="href"&&r!="list"&&r!="form"&&r!="tabIndex"&&r!="download"&&r!="rowSpan"&&r!="colSpan"&&r!="role"&&r!="popover"&&r in e)try{e[r]=t==null?"":t;break e}catch(a){}typeof t=="function"||(t==null||t===!1&&r[4]!="-"?e.removeAttribute(r):e.setAttribute(r,r=="popover"&&t==1?"":t))}}function cl(e){return function(r){if(this.l){var t=this.l[r.type+e];if(r.u==null)r.u=pa++;else if(r.u<t.t)return;return t(k.event?k.event(r):r)}}}function ha(e,r,t,n,i,o,a,s,u,c){var d,l,p,m,h,y,v,g,_,x,q,V,I,w,K,xe,Cr,Ee=r.type;if(r.constructor!==void 0)return null;128&t.__u&&(u=!!(32&t.__u),o=[s=r.__e=t.__e]),(d=k.__b)&&d(r);e:if(typeof Ee=="function")try{if(g=r.props,_="prototype"in Ee&&Ee.prototype.render,x=(d=Ee.contextType)&&n[d.__c],q=d?x?x.props.value:d.__:n,t.__c?v=(l=r.__c=t.__c).__=l.__E:(_?r.__c=l=new Ee(g,q):(r.__c=l=new je(g,q),l.constructor=Ee,l.render=E0),x&&x.sub(l),l.props=g,l.state||(l.state={}),l.context=q,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&Ee.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ve({},l.__s)),Ve(l.__s,Ee.getDerivedStateFromProps(g,l.__s))),m=l.props,h=l.state,l.__v=r,p)_&&Ee.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&Ee.getDerivedStateFromProps==null&&g!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,q),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,q)===!1||r.__v==t.__v)){for(r.__v!=t.__v&&(l.props=g,l.state=l.__s,l.__d=!1),r.__e=t.__e,r.__k=t.__k,r.__k.some(function(gr){gr&&(gr.__=r)}),V=0;V<l._sb.length;V++)l.__h.push(l._sb[V]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,q),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,y)})}if(l.context=q,l.props=g,l.__P=e,l.__e=!1,I=k.__r,w=0,_){for(l.state=l.__s,l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),K=0;K<l._sb.length;K++)l.__h.push(l._sb[K]);l._sb=[]}else do l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++w<25);l.state=l.__s,l.getChildContext!=null&&(n=Ve(Ve({},n),l.getChildContext())),_&&!p&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(m,h)),xe=d,d!=null&&d.type===ar&&d.key==null&&(xe=_l(d.props.children)),s=vl(e,Et(xe)?xe:[xe],r,t,n,i,o,a,s,u,c),l.base=r.__e,r.__u&=-161,l.__h.length&&a.push(l),v&&(l.__E=l.__=null)}catch(gr){if(r.__v=null,u||o!=null)if(gr.then){for(r.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,r.__e=s}else for(Cr=o.length;Cr--;)ma(o[Cr]);else r.__e=t.__e,r.__k=t.__k;k.__e(gr,r,t)}else o==null&&r.__v==t.__v?(r.__k=t.__k,r.__e=t.__e):s=r.__e=x0(t.__e,r,t,n,i,o,a,u,c);return(d=k.diffed)&&d(r),128&r.__u?void 0:s}function yl(e,r,t){for(var n=0;n<t.length;n++)va(t[n],t[++n],t[++n]);k.__c&&k.__c(r,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){k.__e(o,i.__v)}})}function _l(e){return typeof e!="object"||e==null?e:Et(e)?e.map(_l):Ve({},e)}function x0(e,r,t,n,i,o,a,s,u){var c,d,l,p,m,h,y,v=t.props,g=r.props,_=r.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((m=o[c])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){e=m,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(g);e=document.createElementNS(i,_,g.is&&g),s&&(k.__m&&k.__m(r,o),s=!1),o=null}if(_===null)v===g||s&&e.data===g||(e.data=g);else{if(o=o&&kn.call(e.childNodes),v=t.props||xt,!s&&o!=null)for(v={},c=0;c<e.attributes.length;c++)v[(m=e.attributes[c]).name]=m.value;for(c in v)if(m=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")l=m;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;Rn(e,c,null,m,i)}}for(c in g)m=g[c],c=="children"?p=m:c=="dangerouslySetInnerHTML"?d=m:c=="value"?h=m:c=="checked"?y=m:s&&typeof m!="function"||v[c]===m||Rn(e,c,m,v[c],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),r.__k=[];else if(l&&(e.innerHTML=""),vl(r.type==="template"?e.content:e,Et(p)?p:[p],r,t,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:t.__k&&Fr(t,0),s,u),o!=null)for(c=o.length;c--;)ma(o[c]);s||(c="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_=="progress"&&!h||_=="option"&&h!==v[c])&&Rn(e,c,h,v[c],i),c="checked",y!==void 0&&y!==e[c]&&Rn(e,c,y,v[c],i))}return e}function va(e,r,t){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&r==null||(e.__u=e(r))}else e.current=r}catch(i){k.__e(i,t)}}function bl(e,r,t){var n,i;if(k.unmount&&k.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||va(n,null,r)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){k.__e(o,r)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&bl(n[i],r,t||typeof e.type!="function");t||ma(e.__e),e.__c=e.__=e.__e=void 0}function E0(e,r,t){return this.constructor(e,t)}function Tt(e,r,t){var n,i,o,a;r==document&&(r=document.documentElement),k.__&&k.__(e,r),i=(n=typeof t=="function")?null:t&&t.__k||r.__k,o=[],a=[],ha(r,e=(!n&&t||r).__k=Je(ar,null,[e]),i||xt,xt,r.namespaceURI,!n&&t?[t]:i?null:r.firstChild?kn.call(r.childNodes):null,o,!n&&t?t:i?i.__e:r.firstChild,n,a),yl(o,e,a)}var kn,k,ll,y0,br,al,dl,fl,pl,pa,da,fa,_0,xt,ml,b0,Et,wl=R(()=>{xt={},ml=[],b0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Et=Array.isArray;kn=ml.slice,k={__e:function(e,r,t,n){for(var i,o,a;r=r.__;)if((i=r.__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}},ll=0,y0=function(e){return e!=null&&e.constructor==null},je.prototype.setState=function(e,r){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ve({},this.state),typeof e=="function"&&(e=e(Ve({},t),this.props)),e&&Ve(t,e),e!=null&&this.__v&&(r&&this._sb.push(r),sl(this))},je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sl(this))},je.prototype.render=ar,br=[],dl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fl=function(e,r){return e.__v.__b-r.__v.__b},qn.__r=0,pl=/(PointerCapture)$|Capture$/i,pa=0,da=cl(!1),fa=cl(!0),_0=0});var j=f((pM,Sl)=>{"use strict";Sl.exports=function(e){try{return!!e()}catch(r){return!0}}});var jr=f((mM,xl)=>{"use strict";var I0=j();xl.exports=!I0(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var U=f((hM,Tl)=>{"use strict";var El=jr(),Il=Function.prototype,ga=Il.call,T0=El&&Il.bind.bind(ga,ga);Tl.exports=El?T0:function(e){return function(){return ga.apply(e,arguments)}}});var te=f((vM,Rl)=>{"use strict";var R0=U();Rl.exports=R0({}.isPrototypeOf)});var G=f((ya,Al)=>{"use strict";var Rt=function(e){return e&&e.Math===Math&&e};Al.exports=Rt(typeof globalThis=="object"&&globalThis)||Rt(typeof window=="object"&&window)||Rt(typeof self=="object"&&self)||Rt(typeof global=="object"&&global)||Rt(typeof ya=="object"&&ya)||function(){return this}()||Function("return this")()});var On=f((gM,Pl)=>{"use strict";var A0=jr(),Ol=Function.prototype,ql=Ol.apply,kl=Ol.call;Pl.exports=typeof Reflect=="object"&&Reflect.apply||(A0?kl.bind(ql):function(){return kl.apply(ql,arguments)})});var Ue=f((yM,Nl)=>{"use strict";var Cl=U(),q0=Cl({}.toString),k0=Cl("".slice);Nl.exports=function(e){return k0(q0(e),8,-1)}});var At=f((_M,Dl)=>{"use strict";var O0=Ue(),P0=U();Dl.exports=function(e){if(O0(e)==="Function")return P0(e)}});var Z=f((bM,Ll)=>{"use strict";var _a=typeof document=="object"&&document.all;Ll.exports=typeof _a=="undefined"&&_a!==void 0?function(e){return typeof e=="function"||e===_a}:function(e){return typeof e=="function"}});var ne=f((wM,Fl)=>{"use strict";var C0=j();Fl.exports=!C0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Ie=f((SM,jl)=>{"use strict";var N0=jr(),Pn=Function.prototype.call;jl.exports=N0?Pn.bind(Pn):function(){return Pn.apply(Pn,arguments)}});var Cn=f(Bl=>{"use strict";var Ul={}.propertyIsEnumerable,Ml=Object.getOwnPropertyDescriptor,D0=Ml&&!Ul.call({1:2},1);Bl.f=D0?function(r){var t=Ml(this,r);return!!t&&t.enumerable}:Ul});var Ur=f((EM,$l)=>{"use strict";$l.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Nn=f((IM,Hl)=>{"use strict";var L0=U(),F0=j(),j0=Ue(),ba=Object,U0=L0("".split);Hl.exports=F0(function(){return!ba("z").propertyIsEnumerable(0)})?function(e){return j0(e)==="String"?U0(e,""):ba(e)}:ba});var wr=f((TM,Kl)=>{"use strict";Kl.exports=function(e){return e==null}});var sr=f((RM,Gl)=>{"use strict";var M0=wr(),B0=TypeError;Gl.exports=function(e){if(M0(e))throw new B0("Can't call method on "+e);return e}});var We=f((AM,Vl)=>{"use strict";var $0=Nn(),H0=sr();Vl.exports=function(e){return $0(H0(e))}});var ee=f((qM,Jl)=>{"use strict";var K0=Z();Jl.exports=function(e){return typeof e=="object"?e!==null:K0(e)}});var ve=f((kM,Wl)=>{"use strict";Wl.exports={}});var Me=f((OM,Yl)=>{"use strict";var wa=ve(),Sa=G(),G0=Z(),zl=function(e){return G0(e)?e:void 0};Yl.exports=function(e,r){return arguments.length<2?zl(wa[e])||zl(Sa[e]):wa[e]&&wa[e][r]||Sa[e]&&Sa[e][r]}});var Dn=f((PM,Zl)=>{"use strict";var V0=G(),Ql=V0.navigator,Xl=Ql&&Ql.userAgent;Zl.exports=Xl?String(Xl):""});var Fn=f((CM,od)=>{"use strict";var id=G(),xa=Dn(),ed=id.process,rd=id.Deno,td=ed&&ed.versions||rd&&rd.version,nd=td&&td.v8,ke,Ln;nd&&(ke=nd.split("."),Ln=ke[0]>0&&ke[0]<4?1:+(ke[0]+ke[1]));!Ln&&xa&&(ke=xa.match(/Edge\/(\d+)/),(!ke||ke[1]>=74)&&(ke=xa.match(/Chrome\/(\d+)/),ke&&(Ln=+ke[1])));od.exports=Ln});var Sr=f((NM,sd)=>{"use strict";var ad=Fn(),J0=j(),W0=G(),z0=W0.String;sd.exports=!!Object.getOwnPropertySymbols&&!J0(function(){var e=Symbol("symbol detection");return!z0(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ad&&ad<41})});var Ea=f((DM,ud)=>{"use strict";var Y0=Sr();ud.exports=Y0&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var qt=f((LM,cd)=>{"use strict";var Q0=Me(),X0=Z(),Z0=te(),eE=Ea(),rE=Object;cd.exports=eE?function(e){return typeof e=="symbol"}:function(e){var r=Q0("Symbol");return X0(r)&&Z0(r.prototype,rE(e))}});var Mr=f((FM,ld)=>{"use strict";var tE=String;ld.exports=function(e){try{return tE(e)}catch(r){return"Object"}}});var xr=f((jM,dd)=>{"use strict";var nE=Z(),iE=Mr(),oE=TypeError;dd.exports=function(e){if(nE(e))return e;throw new oE(iE(e)+" is not a function")}});var jn=f((UM,fd)=>{"use strict";var aE=xr(),sE=wr();fd.exports=function(e,r){var t=e[r];return sE(t)?void 0:aE(t)}});var md=f((MM,pd)=>{"use strict";var Ia=Ie(),Ta=Z(),Ra=ee(),uE=TypeError;pd.exports=function(e,r){var t,n;if(r==="string"&&Ta(t=e.toString)&&!Ra(n=Ia(t,e))||Ta(t=e.valueOf)&&!Ra(n=Ia(t,e))||r!=="string"&&Ta(t=e.toString)&&!Ra(n=Ia(t,e)))return n;throw new uE("Can't convert object to primitive value")}});var ur=f((BM,hd)=>{"use strict";hd.exports=!0});var yd=f(($M,gd)=>{"use strict";var vd=G(),cE=Object.defineProperty;gd.exports=function(e,r){try{cE(vd,e,{value:r,configurable:!0,writable:!0})}catch(t){vd[e]=r}return r}});var kt=f((HM,wd)=>{"use strict";var lE=ur(),dE=G(),fE=yd(),_d="__core-js_shared__",bd=wd.exports=dE[_d]||fE(_d,{});(bd.versions||(bd.versions=[])).push({version:"3.41.0",mode:lE?"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 Br=f((KM,xd)=>{"use strict";var Sd=kt();xd.exports=function(e,r){return Sd[e]||(Sd[e]=r||{})}});var cr=f((GM,Ed)=>{"use strict";var pE=sr(),mE=Object;Ed.exports=function(e){return mE(pE(e))}});var se=f((VM,Id)=>{"use strict";var hE=U(),vE=cr(),gE=hE({}.hasOwnProperty);Id.exports=Object.hasOwn||function(r,t){return gE(vE(r),t)}});var Ot=f((JM,Td)=>{"use strict";var yE=U(),_E=0,bE=Math.random(),wE=yE(1 .toString);Td.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wE(++_E+bE,36)}});var re=f((WM,Ad)=>{"use strict";var SE=G(),xE=Br(),Rd=se(),EE=Ot(),IE=Sr(),TE=Ea(),$r=SE.Symbol,Aa=xE("wks"),RE=TE?$r.for||$r:$r&&$r.withoutSetter||EE;Ad.exports=function(e){return Rd(Aa,e)||(Aa[e]=IE&&Rd($r,e)?$r[e]:RE("Symbol."+e)),Aa[e]}});var Pd=f((zM,Od)=>{"use strict";var AE=Ie(),qd=ee(),kd=qt(),qE=jn(),kE=md(),OE=re(),PE=TypeError,CE=OE("toPrimitive");Od.exports=function(e,r){if(!qd(e)||kd(e))return e;var t=qE(e,CE),n;if(t){if(r===void 0&&(r="default"),n=AE(t,e,r),!qd(n)||kd(n))return n;throw new PE("Can't convert object to primitive value")}return r===void 0&&(r="number"),kE(e,r)}});var Un=f((YM,Cd)=>{"use strict";var NE=Pd(),DE=qt();Cd.exports=function(e){var r=NE(e,"string");return DE(r)?r:r+""}});var ka=f((QM,Dd)=>{"use strict";var LE=G(),Nd=ee(),qa=LE.document,FE=Nd(qa)&&Nd(qa.createElement);Dd.exports=function(e){return FE?qa.createElement(e):{}}});var Oa=f((XM,Ld)=>{"use strict";var jE=ne(),UE=j(),ME=ka();Ld.exports=!jE&&!UE(function(){return Object.defineProperty(ME("div"),"a",{get:function(){return 7}}).a!==7})});var Mn=f(jd=>{"use strict";var BE=ne(),$E=Ie(),HE=Cn(),KE=Ur(),GE=We(),VE=Un(),JE=se(),WE=Oa(),Fd=Object.getOwnPropertyDescriptor;jd.f=BE?Fd:function(r,t){if(r=GE(r),t=VE(t),WE)try{return Fd(r,t)}catch(n){}if(JE(r,t))return KE(!$E(HE.f,r,t),r[t])}});var Md=f((eB,Ud)=>{"use strict";var zE=j(),YE=Z(),QE=/#|\.prototype\./,Pt=function(e,r){var t=ZE[XE(e)];return t===rI?!0:t===eI?!1:YE(r)?zE(r):!!r},XE=Pt.normalize=function(e){return String(e).replace(QE,".").toLowerCase()},ZE=Pt.data={},eI=Pt.NATIVE="N",rI=Pt.POLYFILL="P";Ud.exports=Pt});var Ct=f((rB,$d)=>{"use strict";var Bd=At(),tI=xr(),nI=jr(),iI=Bd(Bd.bind);$d.exports=function(e,r){return tI(e),r===void 0?e:nI?iI(e,r):function(){return e.apply(r,arguments)}}});var Pa=f((tB,Hd)=>{"use strict";var oI=ne(),aI=j();Hd.exports=oI&&aI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ze=f((nB,Kd)=>{"use strict";var sI=ee(),uI=String,cI=TypeError;Kd.exports=function(e){if(sI(e))return e;throw new cI(uI(e)+" is not an object")}});var Te=f(Vd=>{"use strict";var lI=ne(),dI=Oa(),fI=Pa(),Bn=ze(),Gd=Un(),pI=TypeError,Ca=Object.defineProperty,mI=Object.getOwnPropertyDescriptor,Na="enumerable",Da="configurable",La="writable";Vd.f=lI?fI?function(r,t,n){if(Bn(r),t=Gd(t),Bn(n),typeof r=="function"&&t==="prototype"&&"value"in n&&La in n&&!n[La]){var i=mI(r,t);i&&i[La]&&(r[t]=n.value,n={configurable:Da in n?n[Da]:i[Da],enumerable:Na in n?n[Na]:i[Na],writable:!1})}return Ca(r,t,n)}:Ca:function(r,t,n){if(Bn(r),t=Gd(t),Bn(n),dI)try{return Ca(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new pI("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Er=f((oB,Jd)=>{"use strict";var hI=ne(),vI=Te(),gI=Ur();Jd.exports=hI?function(e,r,t){return vI.f(e,r,gI(1,t))}:function(e,r,t){return e[r]=t,e}});var L=f((aB,zd)=>{"use strict";var Nt=G(),yI=On(),_I=At(),bI=Z(),wI=Mn().f,SI=Md(),Hr=ve(),xI=Ct(),Kr=Er(),Wd=se();kt();var EI=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return yI(e,this,arguments)};return r.prototype=e.prototype,r};zd.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Nt:i?Nt[t]:Nt[t]&&Nt[t].prototype,s=n?Hr:Hr[t]||Kr(Hr,t,{})[t],u=s.prototype,c,d,l,p,m,h,y,v,g;for(p in r)c=SI(n?p:t+(i?".":"#")+p,e.forced),d=!c&&a&&Wd(a,p),h=s[p],d&&(e.dontCallGetSet?(g=wI(a,p),y=g&&g.value):y=a[p]),m=d&&y?y:r[p],!(!c&&!o&&typeof h==typeof m)&&(e.bind&&d?v=xI(m,Nt):e.wrap&&d?v=EI(m):o&&bI(m)?v=_I(m):v=m,(e.sham||m&&m.sham||h&&h.sham)&&Kr(v,"sham",!0),Kr(s,p,v),o&&(l=t+"Prototype",Wd(Hr,l)||Kr(Hr,l,{}),Kr(Hr[l],p,m),e.real&&u&&(c||!u[p])&&Kr(u,p,m)))}});var Qd=f((sB,Yd)=>{"use strict";var II=Math.ceil,TI=Math.floor;Yd.exports=Math.trunc||function(r){var t=+r;return(t>0?TI:II)(t)}});var Dt=f((uB,Xd)=>{"use strict";var RI=Qd();Xd.exports=function(e){var r=+e;return r!==r||r===0?0:RI(r)}});var Fa=f((cB,Zd)=>{"use strict";var AI=Dt(),qI=Math.min;Zd.exports=function(e){var r=AI(e);return r>0?qI(r,9007199254740991):0}});var Ir=f((lB,ef)=>{"use strict";var kI=Fa();ef.exports=function(e){return kI(e.length)}});var lr=f((dB,rf)=>{"use strict";var OI=Ue();rf.exports=Array.isArray||function(r){return OI(r)==="Array"}});var $n=f((fB,nf)=>{"use strict";var PI=re(),CI=PI("toStringTag"),tf={};tf[CI]="z";nf.exports=String(tf)==="[object z]"});var Gr=f((pB,of)=>{"use strict";var NI=$n(),DI=Z(),Hn=Ue(),LI=re(),FI=LI("toStringTag"),jI=Object,UI=Hn(function(){return arguments}())==="Arguments",MI=function(e,r){try{return e[r]}catch(t){}};of.exports=NI?Hn:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=MI(r=jI(e),FI))=="string"?t:UI?Hn(r):(n=Hn(r))==="Object"&&DI(r.callee)?"Arguments":n}});var sf=f((mB,af)=>{"use strict";var BI=U(),$I=Z(),ja=kt(),HI=BI(Function.toString);$I(ja.inspectSource)||(ja.inspectSource=function(e){return HI(e)});af.exports=ja.inspectSource});var Ma=f((hB,ff)=>{"use strict";var KI=U(),GI=j(),uf=Z(),VI=Gr(),JI=Me(),WI=sf(),cf=function(){},lf=JI("Reflect","construct"),Ua=/^\s*(?:class|function)\b/,zI=KI(Ua.exec),YI=!Ua.test(cf),Lt=function(r){if(!uf(r))return!1;try{return lf(cf,[],r),!0}catch(t){return!1}},df=function(r){if(!uf(r))return!1;switch(VI(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return YI||!!zI(Ua,WI(r))}catch(t){return!0}};df.sham=!0;ff.exports=!lf||GI(function(){var e;return Lt(Lt.call)||!Lt(Object)||!Lt(function(){e=!0})||e})?df:Lt});var vf=f((vB,hf)=>{"use strict";var pf=lr(),QI=Ma(),XI=ee(),ZI=re(),eT=ZI("species"),mf=Array;hf.exports=function(e){var r;return pf(e)&&(r=e.constructor,QI(r)&&(r===mf||pf(r.prototype))?r=void 0:XI(r)&&(r=r[eT],r===null&&(r=void 0))),r===void 0?mf:r}});var Kn=f((gB,gf)=>{"use strict";var rT=vf();gf.exports=function(e,r){return new(rT(e))(r===0?0:r)}});var Ye=f((yB,_f)=>{"use strict";var tT=Ct(),nT=U(),iT=Nn(),oT=cr(),aT=Ir(),sT=Kn(),yf=nT([].push),dr=function(e){var r=e===1,t=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(u,c,d,l){for(var p=oT(u),m=iT(p),h=aT(m),y=tT(c,d),v=0,g=l||sT,_=r?g(u,h):t||a?g(u,0):void 0,x,q;h>v;v++)if((s||v in m)&&(x=m[v],q=y(x,v,p),e))if(r)_[v]=q;else if(q)switch(e){case 3:return!0;case 5:return x;case 6:return v;case 2:yf(_,x)}else switch(e){case 4:return!1;case 7:yf(_,x)}return o?-1:n||i?i:_}};_f.exports={forEach:dr(0),map:dr(1),filter:dr(2),some:dr(3),every:dr(4),find:dr(5),findIndex:dr(6),filterReject:dr(7)}});var Vr=f((_B,bf)=>{"use strict";var uT=j(),cT=re(),lT=Fn(),dT=cT("species");bf.exports=function(e){return lT>=51||!uT(function(){var r=[],t=r.constructor={};return t[dT]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var wf=f(()=>{"use strict";var fT=L(),pT=Ye().filter,mT=Vr(),hT=mT("filter");fT({target:"Array",proto:!0,forced:!hT},{filter:function(r){return pT(this,r,arguments.length>1?arguments[1]:void 0)}})});var ge=f((SB,Sf)=>{"use strict";var vT=G(),gT=ve();Sf.exports=function(e,r){var t=gT[e+"Prototype"],n=t&&t[r];if(n)return n;var i=vT[e],o=i&&i.prototype;return o&&o[r]}});var Ef=f((xB,xf)=>{"use strict";wf();var yT=ge();xf.exports=yT("Array","filter")});var Tf=f((EB,If)=>{"use strict";var _T=te(),bT=Ef(),Ba=Array.prototype;If.exports=function(e){var r=e.filter;return e===Ba||_T(Ba,e)&&r===Ba.filter?bT:r}});var Af=f((IB,Rf)=>{"use strict";var wT=Tf();Rf.exports=wT});var kf=f((TB,qf)=>{qf.exports=Af()});var Ft=f((RB,Of)=>{"use strict";var ST=j();Of.exports=function(e,r){var t=[][e];return!!t&&ST(function(){t.call(null,r||function(){return 1},1)})}});var Pf=f(()=>{"use strict";var xT=L(),ET=Ye().every,IT=Ft(),TT=IT("every");xT({target:"Array",proto:!0,forced:!TT},{every:function(r){return ET(this,r,arguments.length>1?arguments[1]:void 0)}})});var Nf=f((kB,Cf)=>{"use strict";Pf();var RT=ge();Cf.exports=RT("Array","every")});var Lf=f((OB,Df)=>{"use strict";var AT=te(),qT=Nf(),$a=Array.prototype;Df.exports=function(e){var r=e.every;return e===$a||AT($a,e)&&r===$a.every?qT:r}});var jf=f((PB,Ff)=>{"use strict";var kT=Lf();Ff.exports=kT});var Mf=f((CB,Uf)=>{Uf.exports=jf()});var $f=f((NB,Bf)=>{"use strict";var OT=Ye().forEach,PT=Ft(),CT=PT("forEach");Bf.exports=CT?[].forEach:function(r){return OT(this,r,arguments.length>1?arguments[1]:void 0)}});var Kf=f(()=>{"use strict";var NT=L(),Hf=$f();NT({target:"Array",proto:!0,forced:[].forEach!==Hf},{forEach:Hf})});var Vf=f((FB,Gf)=>{"use strict";Kf();var DT=ge();Gf.exports=DT("Array","forEach")});var Wf=f((jB,Jf)=>{"use strict";var LT=Vf();Jf.exports=LT});var zf=f(()=>{});var Qf=f((BB,Yf)=>{"use strict";var FT=Gr(),jT=se(),UT=te(),MT=Wf();zf();var Ha=Array.prototype,BT={DOMTokenList:!0,NodeList:!0};Yf.exports=function(e){var r=e.forEach;return e===Ha||UT(Ha,e)&&r===Ha.forEach||jT(BT,FT(e))?MT:r}});var Zf=f(($B,Xf)=>{Xf.exports=Qf()});var Ka=f((HB,ep)=>{"use strict";var $T=TypeError,HT=9007199254740991;ep.exports=function(e){if(e>HT)throw $T("Maximum allowed index exceeded");return e}});var Gn=f((KB,rp)=>{"use strict";var KT=ne(),GT=Te(),VT=Ur();rp.exports=function(e,r,t){KT?GT.f(e,r,VT(0,t)):e[r]=t}});var Ga=f(()=>{"use strict";var JT=L(),WT=j(),zT=lr(),YT=ee(),QT=cr(),XT=Ir(),tp=Ka(),np=Gn(),ZT=Kn(),eR=Vr(),rR=re(),tR=Fn(),ip=rR("isConcatSpreadable"),nR=tR>=51||!WT(function(){var e=[];return e[ip]=!1,e.concat()[0]!==e}),iR=function(e){if(!YT(e))return!1;var r=e[ip];return r!==void 0?!!r:zT(e)},oR=!nR||!eR("concat");JT({target:"Array",proto:!0,arity:1,forced:oR},{concat:function(r){var t=QT(this),n=ZT(t,0),i=0,o,a,s,u,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?t:arguments[o],iR(c))for(u=XT(c),tp(i+u),a=0;a<u;a++,i++)a in c&&np(n,i,c[a]);else tp(i+1),np(n,i++,c);return n.length=i,n}})});var ap=f((JB,op)=>{"use strict";Ga();var aR=ge();op.exports=aR("Array","concat")});var up=f((WB,sp)=>{"use strict";var sR=te(),uR=ap(),Va=Array.prototype;sp.exports=function(e){var r=e.concat;return e===Va||sR(Va,e)&&r===Va.concat?uR:r}});var lp=f((zB,cp)=>{"use strict";var cR=up();cp.exports=cR});var fp=f((YB,dp)=>{dp.exports=lp()});var pp=f(()=>{"use strict";var lR=L(),dR=Ye().some,fR=Ft(),pR=fR("some");lR({target:"Array",proto:!0,forced:!pR},{some:function(r){return dR(this,r,arguments.length>1?arguments[1]:void 0)}})});var hp=f((ZB,mp)=>{"use strict";pp();var mR=ge();mp.exports=mR("Array","some")});var gp=f((e$,vp)=>{"use strict";var hR=te(),vR=hp(),Ja=Array.prototype;vp.exports=function(e){var r=e.some;return e===Ja||hR(Ja,e)&&r===Ja.some?vR:r}});var _p=f((r$,yp)=>{"use strict";var gR=gp();yp.exports=gR});var wp=f((t$,bp)=>{bp.exports=_p()});var xp=f((n$,Sp)=>{"use strict";var jt=G(),yR=Dn(),_R=Ue(),Vn=function(e){return yR.slice(0,e.length)===e};Sp.exports=function(){return Vn("Bun/")?"BUN":Vn("Cloudflare-Workers")?"CLOUDFLARE":Vn("Deno/")?"DENO":Vn("Node.js/")?"NODE":jt.Bun&&typeof Bun.version=="string"?"BUN":jt.Deno&&typeof Deno.version=="object"?"DENO":_R(jt.process)==="process"?"NODE":jt.window&&jt.document?"BROWSER":"REST"}()});var Jr=f((i$,Ep)=>{"use strict";var bR=U();Ep.exports=bR([].slice)});var Tp=f((o$,Ip)=>{"use strict";var wR=TypeError;Ip.exports=function(e,r){if(e<r)throw new wR("Not enough arguments");return e}});var Wa=f((a$,Ap)=>{"use strict";var Rp=G(),SR=On(),xR=Z(),ER=xp(),IR=Dn(),TR=Jr(),RR=Tp(),AR=Rp.Function,qR=/MSIE .\./.test(IR)||ER==="BUN"&&function(){var e=Rp.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Ap.exports=function(e,r){var t=r?2:1;return qR?function(n,i){var o=RR(arguments.length,1)>t,a=xR(n)?n:AR(n),s=o?TR(arguments,t):[],u=o?function(){SR(a,this,s)}:a;return r?e(u,i):e(u)}:e}});var Op=f(()=>{"use strict";var kR=L(),kp=G(),OR=Wa(),qp=OR(kp.setInterval,!0);kR({global:!0,bind:!0,forced:kp.setInterval!==qp},{setInterval:qp})});var Np=f(()=>{"use strict";var PR=L(),Cp=G(),CR=Wa(),Pp=CR(Cp.setTimeout,!0);PR({global:!0,bind:!0,forced:Cp.setTimeout!==Pp},{setTimeout:Pp})});var Dp=f(()=>{"use strict";Op();Np()});var Fp=f((p$,Lp)=>{"use strict";Dp();var NR=ve();Lp.exports=NR.setTimeout});var Up=f((m$,jp)=>{jp.exports=Fp()});var Jn=f(()=>{});var fr=f((g$,Mp)=>{"use strict";var DR=Gr(),LR=String;Mp.exports=function(e){if(DR(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return LR(e)}});var Wn=f((y$,Bp)=>{"use strict";var FR=Dt(),jR=Math.max,UR=Math.min;Bp.exports=function(e,r){var t=FR(e);return t<0?jR(t+r,0):UR(t,r)}});var za=f((_$,Hp)=>{"use strict";var MR=We(),BR=Wn(),$R=Ir(),$p=function(e){return function(r,t,n){var i=MR(r),o=$R(i);if(o===0)return!e&&-1;var a=BR(n,o),s;if(e&&t!==t){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}};Hp.exports={includes:$p(!0),indexOf:$p(!1)}});var Wr=f((b$,Kp)=>{"use strict";Kp.exports={}});var Qa=f((w$,Vp)=>{"use strict";var HR=U(),Ya=se(),KR=We(),GR=za().indexOf,VR=Wr(),Gp=HR([].push);Vp.exports=function(e,r){var t=KR(e),n=0,i=[],o;for(o in t)!Ya(VR,o)&&Ya(t,o)&&Gp(i,o);for(;r.length>n;)Ya(t,o=r[n++])&&(~GR(i,o)||Gp(i,o));return i}});var zn=f((S$,Jp)=>{"use strict";Jp.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yn=f((x$,Wp)=>{"use strict";var JR=Qa(),WR=zn();Wp.exports=Object.keys||function(r){return JR(r,WR)}});var Xa=f(zp=>{"use strict";var zR=ne(),YR=Pa(),QR=Te(),XR=ze(),ZR=We(),eA=Yn();zp.f=zR&&!YR?Object.defineProperties:function(r,t){XR(r);for(var n=ZR(t),i=eA(t),o=i.length,a=0,s;o>a;)QR.f(r,s=i[a++],n[s]);return r}});var Qp=f((I$,Yp)=>{"use strict";var rA=Me();Yp.exports=rA("document","documentElement")});var Ut=f((T$,Zp)=>{"use strict";var tA=Br(),nA=Ot(),Xp=tA("keys");Zp.exports=function(e){return Xp[e]||(Xp[e]=nA(e))}});var zr=f((R$,am)=>{"use strict";var iA=ze(),oA=Xa(),em=zn(),aA=Wr(),sA=Qp(),uA=ka(),cA=Ut(),rm=">",tm="<",es="prototype",rs="script",im=cA("IE_PROTO"),Za=function(){},om=function(e){return tm+rs+rm+e+tm+"/"+rs+rm},nm=function(e){e.write(om("")),e.close();var r=e.parentWindow.Object;return e=null,r},lA=function(){var e=uA("iframe"),r="java"+rs+":",t;return e.style.display="none",sA.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(om("document.F=Object")),t.close(),t.F},Qn,Xn=function(){try{Qn=new ActiveXObject("htmlfile")}catch(r){}Xn=typeof document!="undefined"?document.domain&&Qn?nm(Qn):lA():nm(Qn);for(var e=em.length;e--;)delete Xn[es][em[e]];return Xn()};aA[im]=!0;am.exports=Object.create||function(r,t){var n;return r!==null?(Za[es]=iA(r),n=new Za,Za[es]=null,n[im]=r):n=Xn(),t===void 0?n:oA.f(n,t)}});var Zn=f(sm=>{"use strict";var dA=Qa(),fA=zn(),pA=fA.concat("length","prototype");sm.f=Object.getOwnPropertyNames||function(r){return dA(r,pA)}});var ts=f((q$,lm)=>{"use strict";var mA=Ue(),hA=We(),um=Zn().f,vA=Jr(),cm=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gA=function(e){try{return um(e)}catch(r){return vA(cm)}};lm.exports.f=function(r){return cm&&mA(r)==="Window"?gA(r):um(hA(r))}});var ei=f(dm=>{"use strict";dm.f=Object.getOwnPropertySymbols});var Yr=f((O$,fm)=>{"use strict";var yA=Er();fm.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:yA(e,r,t),e}});var ri=f((P$,pm)=>{"use strict";var _A=Te();pm.exports=function(e,r,t){return _A.f(e,r,t)}});var ns=f(mm=>{"use strict";var bA=re();mm.f=bA});var fe=f((N$,vm)=>{"use strict";var hm=ve(),wA=se(),SA=ns(),xA=Te().f;vm.exports=function(e){var r=hm.Symbol||(hm.Symbol={});wA(r,e)||xA(r,e,{value:SA.f(e)})}});var is=f((D$,gm)=>{"use strict";var EA=Ie(),IA=Me(),TA=re(),RA=Yr();gm.exports=function(){var e=IA("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=TA("toPrimitive");r&&!r[n]&&RA(r,n,function(i){return EA(t,this)},{arity:1})}});var _m=f((L$,ym)=>{"use strict";var AA=$n(),qA=Gr();ym.exports=AA?{}.toString:function(){return"[object "+qA(this)+"]"}});var pr=f((F$,wm)=>{"use strict";var kA=$n(),OA=Te().f,PA=Er(),CA=se(),NA=_m(),DA=re(),bm=DA("toStringTag");wm.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(CA(i,bm)||OA(i,bm,{configurable:!0,value:r}),n&&!kA&&PA(i,"toString",NA))}});var os=f((j$,xm)=>{"use strict";var LA=G(),FA=Z(),Sm=LA.WeakMap;xm.exports=FA(Sm)&&/native code/.test(String(Sm))});var mr=f((U$,Tm)=>{"use strict";var jA=os(),Im=G(),UA=ee(),MA=Er(),as=se(),ss=kt(),BA=Ut(),$A=Wr(),Em="Object already initialized",us=Im.TypeError,HA=Im.WeakMap,ti,Mt,ni,KA=function(e){return ni(e)?Mt(e):ti(e,{})},GA=function(e){return function(r){var t;if(!UA(r)||(t=Mt(r)).type!==e)throw new us("Incompatible receiver, "+e+" required");return t}};jA||ss.state?(Oe=ss.state||(ss.state=new HA),Oe.get=Oe.get,Oe.has=Oe.has,Oe.set=Oe.set,ti=function(e,r){if(Oe.has(e))throw new us(Em);return r.facade=e,Oe.set(e,r),r},Mt=function(e){return Oe.get(e)||{}},ni=function(e){return Oe.has(e)}):(Tr=BA("state"),$A[Tr]=!0,ti=function(e,r){if(as(e,Tr))throw new us(Em);return r.facade=e,MA(e,Tr,r),r},Mt=function(e){return as(e,Tr)?e[Tr]:{}},ni=function(e){return as(e,Tr)});var Oe,Tr;Tm.exports={set:ti,get:Mt,has:ni,enforce:KA,getterFor:GA}});var Hm=f(()=>{"use strict";var ii=L(),Ht=G(),gs=Ie(),VA=U(),JA=ur(),Qr=ne(),Xr=Sr(),WA=j(),ie=se(),zA=te(),fs=ze(),oi=We(),ys=Un(),YA=fr(),ps=Ur(),Zr=zr(),qm=Yn(),QA=Zn(),km=ts(),XA=ei(),Om=Mn(),Pm=Te(),ZA=Xa(),Cm=Cn(),cs=Yr(),eq=ri(),_s=Br(),rq=Ut(),Nm=Wr(),Rm=Ot(),tq=re(),nq=ns(),iq=fe(),oq=is(),aq=pr(),Dm=mr(),ai=Ye().forEach,ye=rq("hidden"),si="Symbol",$t="prototype",sq=Dm.set,Am=Dm.getterFor(si),Re=Object[$t],Rr=Ht.Symbol,Bt=Rr&&Rr[$t],uq=Ht.RangeError,cq=Ht.TypeError,ls=Ht.QObject,Lm=Om.f,Ar=Pm.f,Fm=km.f,lq=Cm.f,jm=VA([].push),Qe=_s("symbols"),Kt=_s("op-symbols"),dq=_s("wks"),ms=!ls||!ls[$t]||!ls[$t].findChild,Um=function(e,r,t){var n=Lm(Re,r);n&&delete Re[r],Ar(e,r,t),n&&e!==Re&&Ar(Re,r,n)},hs=Qr&&WA(function(){return Zr(Ar({},"a",{get:function(){return Ar(this,"a",{value:7}).a}})).a!==7})?Um:Ar,ds=function(e,r){var t=Qe[e]=Zr(Bt);return sq(t,{type:si,tag:e,description:r}),Qr||(t.description=r),t},ui=function(r,t,n){r===Re&&ui(Kt,t,n),fs(r);var i=ys(t);return fs(n),ie(Qe,i)?(n.enumerable?(ie(r,ye)&&r[ye][i]&&(r[ye][i]=!1),n=Zr(n,{enumerable:ps(0,!1)})):(ie(r,ye)||Ar(r,ye,ps(1,Zr(null))),r[ye][i]=!0),hs(r,i,n)):Ar(r,i,n)},bs=function(r,t){fs(r);var n=oi(t),i=qm(n).concat($m(n));return ai(i,function(o){(!Qr||gs(vs,n,o))&&ui(r,o,n[o])}),r},fq=function(r,t){return t===void 0?Zr(r):bs(Zr(r),t)},vs=function(r){var t=ys(r),n=gs(lq,this,t);return this===Re&&ie(Qe,t)&&!ie(Kt,t)?!1:n||!ie(this,t)||!ie(Qe,t)||ie(this,ye)&&this[ye][t]?n:!0},Mm=function(r,t){var n=oi(r),i=ys(t);if(!(n===Re&&ie(Qe,i)&&!ie(Kt,i))){var o=Lm(n,i);return o&&ie(Qe,i)&&!(ie(n,ye)&&n[ye][i])&&(o.enumerable=!0),o}},Bm=function(r){var t=Fm(oi(r)),n=[];return ai(t,function(i){!ie(Qe,i)&&!ie(Nm,i)&&jm(n,i)}),n},$m=function(e){var r=e===Re,t=Fm(r?Kt:oi(e)),n=[];return ai(t,function(i){ie(Qe,i)&&(!r||ie(Re,i))&&jm(n,Qe[i])}),n};Xr||(Rr=function(){if(zA(Bt,this))throw new cq("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:YA(arguments[0]),t=Rm(r),n=function(i){var o=this===void 0?Ht:this;o===Re&&gs(n,Kt,i),ie(o,ye)&&ie(o[ye],t)&&(o[ye][t]=!1);var a=ps(1,i);try{hs(o,t,a)}catch(s){if(!(s instanceof uq))throw s;Um(o,t,a)}};return Qr&&ms&&hs(Re,t,{configurable:!0,set:n}),ds(t,r)},Bt=Rr[$t],cs(Bt,"toString",function(){return Am(this).tag}),cs(Rr,"withoutSetter",function(e){return ds(Rm(e),e)}),Cm.f=vs,Pm.f=ui,ZA.f=bs,Om.f=Mm,QA.f=km.f=Bm,XA.f=$m,nq.f=function(e){return ds(tq(e),e)},Qr&&(eq(Bt,"description",{configurable:!0,get:function(){return Am(this).description}}),JA||cs(Re,"propertyIsEnumerable",vs,{unsafe:!0})));ii({global:!0,constructor:!0,wrap:!0,forced:!Xr,sham:!Xr},{Symbol:Rr});ai(qm(dq),function(e){iq(e)});ii({target:si,stat:!0,forced:!Xr},{useSetter:function(){ms=!0},useSimple:function(){ms=!1}});ii({target:"Object",stat:!0,forced:!Xr,sham:!Qr},{create:fq,defineProperty:ui,defineProperties:bs,getOwnPropertyDescriptor:Mm});ii({target:"Object",stat:!0,forced:!Xr},{getOwnPropertyNames:Bm});oq();aq(Rr,si);Nm[ye]=!0});var ws=f(($$,Km)=>{"use strict";var pq=Sr();Km.exports=pq&&!!Symbol.for&&!!Symbol.keyFor});var Vm=f(()=>{"use strict";var mq=L(),hq=Me(),vq=se(),gq=fr(),Gm=Br(),yq=ws(),Ss=Gm("string-to-symbol-registry"),_q=Gm("symbol-to-string-registry");mq({target:"Symbol",stat:!0,forced:!yq},{for:function(e){var r=gq(e);if(vq(Ss,r))return Ss[r];var t=hq("Symbol")(r);return Ss[r]=t,_q[t]=r,t}})});var Wm=f(()=>{"use strict";var bq=L(),wq=se(),Sq=qt(),xq=Mr(),Eq=Br(),Iq=ws(),Jm=Eq("symbol-to-string-registry");bq({target:"Symbol",stat:!0,forced:!Iq},{keyFor:function(r){if(!Sq(r))throw new TypeError(xq(r)+" is not a symbol");if(wq(Jm,r))return Jm[r]}})});var Zm=f((J$,Xm)=>{"use strict";var Tq=U(),zm=lr(),Rq=Z(),Ym=Ue(),Aq=fr(),Qm=Tq([].push);Xm.exports=function(e){if(Rq(e))return e;if(zm(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?Qm(t,i):(typeof i=="number"||Ym(i)==="Number"||Ym(i)==="String")&&Qm(t,Aq(i))}var o=t.length,a=!0;return function(s,u){if(a)return a=!1,u;if(zm(this))return u;for(var c=0;c<o;c++)if(t[c]===s)return u}}}});var dh=f(()=>{"use strict";var qq=L(),sh=Me(),uh=On(),kq=Ie(),Gt=U(),ch=j(),eh=Z(),rh=qt(),lh=Jr(),Oq=Zm(),Pq=Sr(),Cq=String,hr=sh("JSON","stringify"),ci=Gt(/./.exec),th=Gt("".charAt),Nq=Gt("".charCodeAt),Dq=Gt("".replace),Lq=Gt(1 .toString),Fq=/[\uD800-\uDFFF]/g,nh=/^[\uD800-\uDBFF]$/,ih=/^[\uDC00-\uDFFF]$/,oh=!Pq||ch(function(){var e=sh("Symbol")("stringify detection");return hr([e])!=="[null]"||hr({a:e})!=="{}"||hr(Object(e))!=="{}"}),ah=ch(function(){return hr("\uDF06\uD834")!=='"\\udf06\\ud834"'||hr("\uDEAD")!=='"\\udead"'}),jq=function(e,r){var t=lh(arguments),n=Oq(r);if(!(!eh(n)&&(e===void 0||rh(e))))return t[1]=function(i,o){if(eh(n)&&(o=kq(n,this,Cq(i),o)),!rh(o))return o},uh(hr,null,t)},Uq=function(e,r,t){var n=th(t,r-1),i=th(t,r+1);return ci(nh,e)&&!ci(ih,i)||ci(ih,e)&&!ci(nh,n)?"\\u"+Lq(Nq(e,0),16):e};hr&&qq({target:"JSON",stat:!0,arity:3,forced:oh||ah},{stringify:function(r,t,n){var i=lh(arguments),o=uh(oh?jq:hr,null,i);return ah&&typeof o=="string"?Dq(o,Fq,Uq):o}})});var ph=f(()=>{"use strict";var Mq=L(),Bq=Sr(),$q=j(),fh=ei(),Hq=cr(),Kq=!Bq||$q(function(){fh.f(1)});Mq({target:"Object",stat:!0,forced:Kq},{getOwnPropertySymbols:function(r){var t=fh.f;return t?t(Hq(r)):[]}})});var xs=f(()=>{"use strict";Hm();Vm();Wm();dh();ph()});var mh=f(()=>{"use strict";var Gq=fe();Gq("asyncIterator")});var hh=f(()=>{});var vh=f(()=>{"use strict";var Vq=fe();Vq("hasInstance")});var gh=f(()=>{"use strict";var Jq=fe();Jq("isConcatSpreadable")});var yh=f(()=>{"use strict";var Wq=fe();Wq("iterator")});var _h=f(()=>{"use strict";var zq=fe();zq("match")});var bh=f(()=>{"use strict";var Yq=fe();Yq("matchAll")});var wh=f(()=>{"use strict";var Qq=fe();Qq("replace")});var Sh=f(()=>{"use strict";var Xq=fe();Xq("search")});var xh=f(()=>{"use strict";var Zq=fe();Zq("species")});var Eh=f(()=>{"use strict";var ek=fe();ek("split")});var Ih=f(()=>{"use strict";var rk=fe(),tk=is();rk("toPrimitive");tk()});var Th=f(()=>{"use strict";var nk=Me(),ik=fe(),ok=pr();ik("toStringTag");ok(nk("Symbol"),"Symbol")});var Rh=f(()=>{"use strict";var ak=fe();ak("unscopables")});var Ah=f(()=>{"use strict";var sk=G(),uk=pr();uk(sk.JSON,"JSON",!0)});var qh=f(()=>{});var kh=f(()=>{});var Ph=f((N2,Oh)=>{"use strict";Ga();Jn();xs();mh();hh();vh();gh();yh();_h();bh();wh();Sh();xh();Eh();Ih();Th();Rh();Ah();qh();kh();var ck=ve();Oh.exports=ck.Symbol});var Nh=f((D2,Ch)=>{"use strict";Ch.exports=function(){}});var qr=f((L2,Dh)=>{"use strict";Dh.exports={}});var Ts=f((F2,Fh)=>{"use strict";var Es=ne(),lk=se(),Lh=Function.prototype,dk=Es&&Object.getOwnPropertyDescriptor,Is=lk(Lh,"name"),fk=Is&&(function(){}).name==="something",pk=Is&&(!Es||Es&&dk(Lh,"name").configurable);Fh.exports={EXISTS:Is,PROPER:fk,CONFIGURABLE:pk}});var Uh=f((j2,jh)=>{"use strict";var mk=j();jh.exports=!mk(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var As=f((U2,Bh)=>{"use strict";var hk=se(),vk=Z(),gk=cr(),yk=Ut(),_k=Uh(),Mh=yk("IE_PROTO"),Rs=Object,bk=Rs.prototype;Bh.exports=_k?Rs.getPrototypeOf:function(e){var r=gk(e);if(hk(r,Mh))return r[Mh];var t=r.constructor;return vk(t)&&r instanceof t?t.prototype:r instanceof Rs?bk:null}});var Ps=f((M2,Kh)=>{"use strict";var wk=j(),Sk=Z(),xk=ee(),Ek=zr(),$h=As(),Ik=Yr(),Tk=re(),Rk=ur(),Os=Tk("iterator"),Hh=!1,Xe,qs,ks;[].keys&&(ks=[].keys(),"next"in ks?(qs=$h($h(ks)),qs!==Object.prototype&&(Xe=qs)):Hh=!0);var Ak=!xk(Xe)||wk(function(){var e={};return Xe[Os].call(e)!==e});Ak?Xe={}:Rk&&(Xe=Ek(Xe));Sk(Xe[Os])||Ik(Xe,Os,function(){return this});Kh.exports={IteratorPrototype:Xe,BUGGY_SAFARI_ITERATORS:Hh}});var Vh=f((B2,Gh)=>{"use strict";var qk=Ps().IteratorPrototype,kk=zr(),Ok=Ur(),Pk=pr(),Ck=qr(),Nk=function(){return this};Gh.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=kk(qk,{next:Ok(+!n,t)}),Pk(e,i,!1,!0),Ck[i]=Nk,e}});var Wh=f(($2,Jh)=>{"use strict";var Dk=U(),Lk=xr();Jh.exports=function(e,r,t){try{return Dk(Lk(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Yh=f((H2,zh)=>{"use strict";var Fk=ee();zh.exports=function(e){return Fk(e)||e===null}});var Xh=f((K2,Qh)=>{"use strict";var jk=Yh(),Uk=String,Mk=TypeError;Qh.exports=function(e){if(jk(e))return e;throw new Mk("Can't set "+Uk(e)+" as a prototype")}});var ev=f((G2,Zh)=>{"use strict";var Bk=Wh(),$k=ee(),Hk=sr(),Kk=Xh();Zh.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Bk(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Hk(i),Kk(o),$k(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var fi=f((V2,lv)=>{"use strict";var Gk=L(),Vk=Ie(),li=ur(),uv=Ts(),Jk=Z(),Wk=Vh(),rv=As(),tv=ev(),zk=pr(),Yk=Er(),Cs=Yr(),Qk=re(),nv=qr(),cv=Ps(),Xk=uv.PROPER,Zk=uv.CONFIGURABLE,iv=cv.IteratorPrototype,di=cv.BUGGY_SAFARI_ITERATORS,Vt=Qk("iterator"),ov="keys",Jt="values",av="entries",sv=function(){return this};lv.exports=function(e,r,t,n,i,o,a){Wk(t,r,n);var s=function(g){if(g===i&&p)return p;if(!di&&g&&g in d)return d[g];switch(g){case ov:return function(){return new t(this,g)};case Jt:return function(){return new t(this,g)};case av:return function(){return new t(this,g)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,d=e.prototype,l=d[Vt]||d["@@iterator"]||i&&d[i],p=!di&&l||s(i),m=r==="Array"&&d.entries||l,h,y,v;if(m&&(h=rv(m.call(new e)),h!==Object.prototype&&h.next&&(!li&&rv(h)!==iv&&(tv?tv(h,iv):Jk(h[Vt])||Cs(h,Vt,sv)),zk(h,u,!0,!0),li&&(nv[u]=sv))),Xk&&i===Jt&&l&&l.name!==Jt&&(!li&&Zk?Yk(d,"name",Jt):(c=!0,p=function(){return Vk(l,this)})),i)if(y={values:s(Jt),keys:o?p:s(ov),entries:s(av)},a)for(v in y)(di||c||!(v in d))&&Cs(d,v,y[v]);else Gk({target:r,proto:!0,forced:di||c},y);return(!li||a)&&d[Vt]!==p&&Cs(d,Vt,p,{name:i}),nv[r]=p,y}});var pi=f((J2,dv)=>{"use strict";dv.exports=function(e,r){return{value:e,done:r}}});var hi=f((W2,vv)=>{"use strict";var eO=We(),Ns=Nh(),fv=qr(),mv=mr(),rO=Te().f,tO=fi(),mi=pi(),nO=ur(),iO=ne(),hv="Array Iterator",oO=mv.set,aO=mv.getterFor(hv);vv.exports=tO(Array,"Array",function(e,r){oO(this,{type:hv,target:eO(e),index:0,kind:r})},function(){var e=aO(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,mi(void 0,!0);switch(e.kind){case"keys":return mi(t,!1);case"values":return mi(r[t],!1)}return mi([t,r[t]],!1)},"values");var pv=fv.Arguments=fv.Array;Ns("keys");Ns("values");Ns("entries");if(!nO&&iO&&pv.name!=="values")try{rO(pv,"name",{value:"values"})}catch(e){}});var yv=f((z2,gv)=>{"use strict";gv.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 gi=f(()=>{"use strict";hi();var sO=yv(),uO=G(),cO=pr(),_v=qr();for(vi in sO)cO(uO[vi],vi),_v[vi]=_v.Array;var vi});var wv=f((X2,bv)=>{"use strict";var lO=Ph();gi();bv.exports=lO});var xv=f((Z2,Sv)=>{Sv.exports=wv()});var Iv=f((eH,Ev)=>{"use strict";xs();var dO=ve();Ev.exports=dO.Symbol.for});var Rv=f((rH,Tv)=>{"use strict";var fO=Iv();Tv.exports=fO});var qv=f((tH,Av)=>{Av.exports=Rv()});var kv=f(()=>{"use strict";var pO=L(),mO=Ye().map,hO=Vr(),vO=hO("map");pO({target:"Array",proto:!0,forced:!vO},{map:function(r){return mO(this,r,arguments.length>1?arguments[1]:void 0)}})});var Pv=f((oH,Ov)=>{"use strict";kv();var gO=ge();Ov.exports=gO("Array","map")});var Nv=f((aH,Cv)=>{"use strict";var yO=te(),_O=Pv(),Ds=Array.prototype;Cv.exports=function(e){var r=e.map;return e===Ds||yO(Ds,e)&&r===Ds.map?_O:r}});var Lv=f((sH,Dv)=>{"use strict";var bO=Nv();Dv.exports=bO});var jv=f((uH,Fv)=>{Fv.exports=Lv()});var Mv=f((cH,Uv)=>{"use strict";var wO=ne(),SO=lr(),xO=TypeError,EO=Object.getOwnPropertyDescriptor,IO=wO&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();Uv.exports=IO?function(e,r){if(SO(e)&&!EO(e,"length").writable)throw new xO("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r}});var Hv=f((lH,$v)=>{"use strict";var Bv=Mr(),TO=TypeError;$v.exports=function(e,r){if(!delete e[r])throw new TO("Cannot delete property "+Bv(r)+" of "+Bv(e))}});var Kv=f(()=>{"use strict";var RO=L(),AO=cr(),qO=Wn(),kO=Dt(),OO=Ir(),PO=Mv(),CO=Ka(),NO=Kn(),DO=Gn(),Ls=Hv(),LO=Vr(),FO=LO("splice"),jO=Math.max,UO=Math.min;RO({target:"Array",proto:!0,forced:!FO},{splice:function(r,t){var n=AO(this),i=OO(n),o=qO(r,i),a=arguments.length,s,u,c,d,l,p;for(a===0?s=u=0:a===1?(s=0,u=i-o):(s=a-2,u=UO(jO(kO(t),0),i-o)),CO(i+s-u),c=NO(n,u),d=0;d<u;d++)l=o+d,l in n&&DO(c,d,n[l]);if(c.length=u,s<u){for(d=o;d<i-u;d++)l=d+u,p=d+s,l in n?n[p]=n[l]:Ls(n,p);for(d=i;d>i-u+s;d--)Ls(n,d-1)}else if(s>u)for(d=i-u;d>o;d--)l=d+u-1,p=d+s-1,l in n?n[p]=n[l]:Ls(n,p);for(d=0;d<s;d++)n[d+o]=arguments[d+2];return PO(n,i-u+s),c}})});var Vv=f((pH,Gv)=>{"use strict";Kv();var MO=ge();Gv.exports=MO("Array","splice")});var Wv=f((mH,Jv)=>{"use strict";var BO=te(),$O=Vv(),Fs=Array.prototype;Jv.exports=function(e){var r=e.splice;return e===Fs||BO(Fs,e)&&r===Fs.splice?$O:r}});var Yv=f((hH,zv)=>{"use strict";var HO=Wv();zv.exports=HO});var Xv=f((vH,Qv)=>{Qv.exports=Yv()});var eg=f(()=>{"use strict";var KO=L(),GO=At(),VO=za().indexOf,JO=Ft(),js=GO([].indexOf),Zv=!!js&&1/js([1],1,-0)<0,WO=Zv||!JO("indexOf");KO({target:"Array",proto:!0,forced:WO},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return Zv?js(this,r,t)||0:VO(this,r,t)}})});var tg=f((_H,rg)=>{"use strict";eg();var zO=ge();rg.exports=zO("Array","indexOf")});var ig=f((bH,ng)=>{"use strict";var YO=te(),QO=tg(),Us=Array.prototype;ng.exports=function(e){var r=e.indexOf;return e===Us||YO(Us,e)&&r===Us.indexOf?QO:r}});var ag=f((wH,og)=>{"use strict";var XO=ig();og.exports=XO});var ug=f((SH,sg)=>{sg.exports=ag()});var lg=f((xH,cg)=>{"use strict";var ZO=j();cg.exports=ZO(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var pg=f((EH,fg)=>{"use strict";var eP=j(),rP=ee(),tP=Ue(),dg=lg(),yi=Object.isExtensible,nP=eP(function(){yi(1)});fg.exports=nP||dg?function(r){return!rP(r)||dg&&tP(r)==="ArrayBuffer"?!1:yi?yi(r):!0}:yi});var Ms=f((IH,mg)=>{"use strict";var iP=j();mg.exports=!iP(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Wt=f((TH,gg)=>{"use strict";var oP=L(),aP=U(),sP=Wr(),uP=ee(),Bs=se(),cP=Te().f,hg=Zn(),lP=ts(),$s=pg(),dP=Ot(),fP=Ms(),vg=!1,Ze=dP("meta"),pP=0,Hs=function(e){cP(e,Ze,{value:{objectID:"O"+pP++,weakData:{}}})},mP=function(e,r){if(!uP(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Bs(e,Ze)){if(!$s(e))return"F";if(!r)return"E";Hs(e)}return e[Ze].objectID},hP=function(e,r){if(!Bs(e,Ze)){if(!$s(e))return!0;if(!r)return!1;Hs(e)}return e[Ze].weakData},vP=function(e){return fP&&vg&&$s(e)&&!Bs(e,Ze)&&Hs(e),e},gP=function(){yP.enable=function(){},vg=!0;var e=hg.f,r=aP([].splice),t={};t[Ze]=1,e(t).length&&(hg.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Ze){r(i,o,1);break}return i},oP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lP.f}))},yP=gg.exports={enable:gP,fastKey:mP,getWeakData:hP,onFreeze:vP};sP[Ze]=!0});var _g=f((RH,yg)=>{"use strict";var _P=re(),bP=qr(),wP=_P("iterator"),SP=Array.prototype;yg.exports=function(e){return e!==void 0&&(bP.Array===e||SP[wP]===e)}});var Ks=f((AH,wg)=>{"use strict";var xP=Gr(),bg=jn(),EP=wr(),IP=qr(),TP=re(),RP=TP("iterator");wg.exports=function(e){if(!EP(e))return bg(e,RP)||bg(e,"@@iterator")||IP[xP(e)]}});var xg=f((qH,Sg)=>{"use strict";var AP=Ie(),qP=xr(),kP=ze(),OP=Mr(),PP=Ks(),CP=TypeError;Sg.exports=function(e,r){var t=arguments.length<2?PP(e):r;if(qP(t))return kP(AP(t,e));throw new CP(OP(e)+" is not iterable")}});var Tg=f((kH,Ig)=>{"use strict";var NP=Ie(),Eg=ze(),DP=jn();Ig.exports=function(e,r,t){var n,i;Eg(e);try{if(n=DP(e,"return"),!n){if(r==="throw")throw t;return t}n=NP(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Eg(n),t}});var zt=f((OH,kg)=>{"use strict";var LP=Ct(),FP=Ie(),jP=ze(),UP=Mr(),MP=_g(),BP=Ir(),Rg=te(),$P=xg(),HP=Ks(),Ag=Tg(),KP=TypeError,_i=function(e,r){this.stopped=e,this.result=r},qg=_i.prototype;kg.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=LP(r,n),c,d,l,p,m,h,y,v=function(_){return c&&Ag(c,"normal",_),new _i(!0,_)},g=function(_){return i?(jP(_),s?u(_[0],_[1],v):u(_[0],_[1])):s?u(_,v):u(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=HP(e),!d)throw new KP(UP(e)+" is not iterable");if(MP(d)){for(l=0,p=BP(e);p>l;l++)if(m=g(e[l]),m&&Rg(qg,m))return m;return new _i(!1)}c=$P(e,d)}for(h=o?e.next:c.next;!(y=FP(h,c)).done;){try{m=g(y.value)}catch(_){Ag(c,"throw",_)}if(typeof m=="object"&&m&&Rg(qg,m))return m}return new _i(!1)}});var bi=f((PH,Og)=>{"use strict";var GP=te(),VP=TypeError;Og.exports=function(e,r){if(GP(r,e))return e;throw new VP("Incorrect invocation")}});var Gs=f((CH,Cg)=>{"use strict";var JP=L(),WP=G(),zP=Wt(),YP=j(),QP=Er(),XP=zt(),ZP=bi(),e1=Z(),r1=ee(),t1=wr(),n1=pr(),i1=Te().f,o1=Ye().forEach,a1=ne(),Pg=mr(),s1=Pg.set,u1=Pg.getterFor;Cg.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=WP[e],s=a&&a.prototype,u={},c;if(!a1||!e1(a)||!(i||s.forEach&&!YP(function(){new a().entries().next()})))c=t.getConstructor(r,e,n,o),zP.enable();else{c=r(function(p,m){s1(ZP(p,d),{type:e,collection:new a}),t1(m)||XP(m,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,l=u1(e);o1(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var m=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&QP(d,p,function(h,y){var v=l(this).collection;if(!m&&i&&!r1(h))return p==="get"?void 0:!1;var g=v[p](h===0?0:h,y);return m?this:g})}),i||i1(d,"size",{configurable:!0,get:function(){return l(this).collection.size}})}return n1(c,e,!1,!0),u[e]=c,JP({global:!0,forced:!0},u),i||t.setStrong(c,e,n),c}});var wi=f((NH,Ng)=>{"use strict";var c1=Yr();Ng.exports=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:c1(e,n,r[n],t);return e}});var Fg=f((DH,Lg)=>{"use strict";var l1=Me(),d1=ri(),f1=re(),p1=ne(),Dg=f1("species");Lg.exports=function(e){var r=l1(e);p1&&r&&!r[Dg]&&d1(r,Dg,{configurable:!0,get:function(){return this}})}});var Kg=f((LH,Hg)=>{"use strict";var jg=zr(),m1=ri(),Ug=wi(),h1=Ct(),v1=bi(),g1=wr(),y1=zt(),_1=fi(),Si=pi(),b1=Fg(),Yt=ne(),Mg=Wt().fastKey,$g=mr(),Bg=$g.set,Vs=$g.getterFor;Hg.exports={getConstructor:function(e,r,t,n){var i=e(function(c,d){v1(c,o),Bg(c,{type:r,index:jg(null),first:null,last:null,size:0}),Yt||(c.size=0),g1(d)||y1(d,c[n],{that:c,AS_ENTRIES:t})}),o=i.prototype,a=Vs(r),s=function(c,d,l){var p=a(c),m=u(c,d),h,y;return m?m.value=l:(p.last=m={index:y=Mg(d,!0),key:d,value:l,previous:h=p.last,next:null,removed:!1},p.first||(p.first=m),h&&(h.next=m),Yt?p.size++:c.size++,y!=="F"&&(p.index[y]=m)),c},u=function(c,d){var l=a(c),p=Mg(d),m;if(p!=="F")return l.index[p];for(m=l.first;m;m=m.next)if(m.key===d)return m};return Ug(o,{clear:function(){for(var d=this,l=a(d),p=l.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;l.first=l.last=null,l.index=jg(null),Yt?l.size=0:d.size=0},delete:function(c){var d=this,l=a(d),p=u(d,c);if(p){var m=p.next,h=p.previous;delete l.index[p.index],p.removed=!0,h&&(h.next=m),m&&(m.previous=h),l.first===p&&(l.first=m),l.last===p&&(l.last=h),Yt?l.size--:d.size--}return!!p},forEach:function(d){for(var l=a(this),p=h1(d,arguments.length>1?arguments[1]:void 0),m;m=m?m.next:l.first;)for(p(m.value,m.key,this);m&&m.removed;)m=m.previous},has:function(d){return!!u(this,d)}}),Ug(o,t?{get:function(d){var l=u(this,d);return l&&l.value},set:function(d,l){return s(this,d===0?0:d,l)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Yt&&m1(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Vs(r),o=Vs(n);_1(e,r,function(a,s){Bg(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,u=a.last;u&&u.removed;)u=u.previous;return!a.target||!(a.last=u=u?u.next:a.state.first)?(a.target=null,Si(void 0,!0)):Si(s==="keys"?u.key:s==="values"?u.value:[u.key,u.value],!1)},t?"entries":"values",!t,!0),b1(r)}}});var Gg=f(()=>{"use strict";var w1=Gs(),S1=Kg();w1("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},S1)});var Vg=f(()=>{"use strict";Gg()});var Wg=f((BH,Jg)=>{"use strict";Jg.exports=function(e,r){return r===1?function(t,n){return t[e](n)}:function(t,n,i){return t[e](n,i)}}});var Qg=f(($H,Yg)=>{"use strict";var x1=Me(),xi=Wg(),zg=x1("Map");Yg.exports={Map:zg,set:xi("set",2),get:xi("get",1),has:xi("has",1),remove:xi("delete",1),proto:zg.prototype}});var ey=f(()=>{"use strict";var E1=L(),I1=U(),T1=xr(),R1=sr(),A1=zt(),Ei=Qg(),Xg=ur(),q1=j(),Zg=Ei.Map,k1=Ei.has,O1=Ei.get,P1=Ei.set,C1=I1([].push),N1=Xg||q1(function(){return Zg.groupBy("ab",function(e){return e}).get("a").length!==1});E1({target:"Map",stat:!0,forced:Xg||N1},{groupBy:function(r,t){R1(r),T1(t);var n=new Zg,i=0;return A1(r,function(o){var a=t(o,i++);k1(n,a)?C1(O1(n,a),o):P1(n,a,[o])}),n}})});var iy=f((GH,ny)=>{"use strict";var Js=U(),D1=Dt(),L1=fr(),F1=sr(),j1=Js("".charAt),ry=Js("".charCodeAt),U1=Js("".slice),ty=function(e){return function(r,t){var n=L1(F1(r)),i=D1(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=ry(n,i),a<55296||a>56319||i+1===o||(s=ry(n,i+1))<56320||s>57343?e?j1(n,i):a:e?U1(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};ny.exports={codeAt:ty(!1),charAt:ty(!0)}});var uy=f(()=>{"use strict";var M1=iy().charAt,B1=fr(),ay=mr(),$1=fi(),oy=pi(),sy="String Iterator",H1=ay.set,K1=ay.getterFor(sy);$1(String,"String",function(e){H1(this,{type:sy,string:B1(e),index:0})},function(){var r=K1(this),t=r.string,n=r.index,i;return n>=t.length?oy(void 0,!0):(i=M1(t,n),r.index+=i.length,oy(i,!1))})});var ly=f((WH,cy)=>{"use strict";hi();Vg();ey();Jn();uy();var G1=ve();cy.exports=G1.Map});var fy=f((zH,dy)=>{"use strict";var V1=ly();gi();dy.exports=V1});var my=f((YH,py)=>{py.exports=fy()});var vy=f(()=>{"use strict";var J1=L(),W1=U(),z1=lr(),Y1=W1([].reverse),hy=[1,2];J1({target:"Array",proto:!0,forced:String(hy)===String(hy.reverse())},{reverse:function(){return z1(this)&&(this.length=this.length),Y1(this)}})});var yy=f((ZH,gy)=>{"use strict";vy();var Q1=ge();gy.exports=Q1("Array","reverse")});var by=f((eK,_y)=>{"use strict";var X1=te(),Z1=yy(),Ws=Array.prototype;_y.exports=function(e){var r=e.reverse;return e===Ws||X1(Ws,e)&&r===Ws.reverse?Z1:r}});var Sy=f((rK,wy)=>{"use strict";var eC=by();wy.exports=eC});var Ey=f((tK,xy)=>{xy.exports=Sy()});var Ty=f(()=>{"use strict";var rC=L(),tC=ne(),Iy=Te().f;rC({target:"Object",stat:!0,forced:Object.defineProperty!==Iy,sham:!tC},{defineProperty:Iy})});var qy=f((oK,Ay)=>{"use strict";Ty();var nC=ve(),Ry=nC.Object,iC=Ay.exports=function(r,t,n){return Ry.defineProperty(r,t,n)};Ry.defineProperty.sham&&(iC.sham=!0)});var Oy=f((aK,ky)=>{"use strict";var oC=qy();ky.exports=oC});var Cy=f((sK,Py)=>{Py.exports=Oy()});var Ny=f(()=>{"use strict";var aC=L(),sC=lr();aC({target:"Array",stat:!0},{isArray:sC})});var Ly=f((lK,Dy)=>{"use strict";Ny();var uC=ve();Dy.exports=uC.Array.isArray});var jy=f((dK,Fy)=>{"use strict";var cC=Ly();Fy.exports=cC});var My=f((fK,Uy)=>{Uy.exports=jy()});var Gy=f((pK,Ky)=>{"use strict";var $y=U(),lC=xr(),dC=ee(),fC=se(),By=Jr(),pC=jr(),Hy=Function,mC=$y([].concat),hC=$y([].join),zs={},vC=function(e,r,t){if(!fC(zs,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";zs[r]=Hy("C,a","return new C("+hC(n,",")+")")}return zs[r](e,t)};Ky.exports=pC?Hy.bind:function(r){var t=lC(this),n=t.prototype,i=By(arguments,1),o=function(){var s=mC(i,By(arguments));return this instanceof o?vC(t,s.length,s):t.apply(r,s)};return dC(n)&&(o.prototype=n),o}});var Jy=f(()=>{"use strict";var gC=L(),Vy=Gy();gC({target:"Function",proto:!0,forced:Function.bind!==Vy},{bind:Vy})});var zy=f((vK,Wy)=>{"use strict";Jy();var yC=ge();Wy.exports=yC("Function","bind")});var Qy=f((gK,Yy)=>{"use strict";var _C=te(),bC=zy(),Ys=Function.prototype;Yy.exports=function(e){var r=e.bind;return e===Ys||_C(Ys,e)&&r===Ys.bind?bC:r}});var Zy=f((yK,Xy)=>{"use strict";var wC=Qy();Xy.exports=wC});var r_=f((_K,e_)=>{e_.exports=Zy()});var n_=f((bK,t_)=>{"use strict";var SC=ee(),xC=Ue(),EC=re(),IC=EC("match");t_.exports=function(e){var r;return SC(e)&&((r=e[IC])!==void 0?!!r:xC(e)==="RegExp")}});var o_=f((wK,i_)=>{"use strict";var TC=n_(),RC=TypeError;i_.exports=function(e){if(TC(e))throw new RC("The method doesn't accept regular expressions");return e}});var s_=f((SK,a_)=>{"use strict";var AC=re(),qC=AC("match");a_.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[qC]=!1,"/./"[e](r)}catch(n){}}return!1}});var l_=f(()=>{"use strict";var kC=L(),OC=At(),PC=Mn().f,CC=Fa(),u_=fr(),NC=o_(),DC=sr(),LC=s_(),FC=ur(),jC=OC("".slice),UC=Math.min,c_=LC("startsWith"),MC=!FC&&!c_&&!!function(){var e=PC(String.prototype,"startsWith");return e&&!e.writable}();kC({target:"String",proto:!0,forced:!MC&&!c_},{startsWith:function(r){var t=u_(DC(this));NC(r);var n=CC(UC(arguments.length>1?arguments[1]:void 0,t.length)),i=u_(r);return jC(t,n,n+i.length)===i}})});var f_=f((IK,d_)=>{"use strict";l_();var BC=ge();d_.exports=BC("String","startsWith")});var m_=f((TK,p_)=>{"use strict";var $C=te(),HC=f_(),Qs=String.prototype;p_.exports=function(e){var r=e.startsWith;return typeof e=="string"||e===Qs||$C(Qs,e)&&r===Qs.startsWith?HC:r}});var v_=f((RK,h_)=>{"use strict";var KC=m_();h_.exports=KC});var y_=f((AK,g_)=>{g_.exports=v_()});var w_=f(()=>{"use strict";var GC=L(),__=lr(),VC=Ma(),JC=ee(),b_=Wn(),WC=Ir(),zC=We(),YC=Gn(),QC=re(),XC=Vr(),ZC=Jr(),eN=XC("slice"),rN=QC("species"),Xs=Array,tN=Math.max;GC({target:"Array",proto:!0,forced:!eN},{slice:function(r,t){var n=zC(this),i=WC(n),o=b_(r,i),a=b_(t===void 0?i:t,i),s,u,c;if(__(n)&&(s=n.constructor,VC(s)&&(s===Xs||__(s.prototype))?s=void 0:JC(s)&&(s=s[rN],s===null&&(s=void 0)),s===Xs||s===void 0))return ZC(n,o,a);for(u=new(s===void 0?Xs:s)(tN(a-o,0)),c=0;o<a;o++,c++)o in n&&YC(u,c,n[o]);return u.length=c,u}})});var x_=f((OK,S_)=>{"use strict";w_();var nN=ge();S_.exports=nN("Array","slice")});var I_=f((PK,E_)=>{"use strict";var iN=te(),oN=x_(),Zs=Array.prototype;E_.exports=function(e){var r=e.slice;return e===Zs||iN(Zs,e)&&r===Zs.slice?oN:r}});var R_=f((CK,T_)=>{"use strict";var aN=I_();T_.exports=aN});var q_=f((NK,A_)=>{A_.exports=R_()});var L_=f((DK,D_)=>{"use strict";var sN=U(),k_=wi(),Ii=Wt().getWeakData,uN=bi(),cN=ze(),lN=wr(),eu=ee(),dN=zt(),P_=Ye(),O_=se(),C_=mr(),fN=C_.set,pN=C_.getterFor,mN=P_.find,hN=P_.findIndex,vN=sN([].splice),gN=0,Ti=function(e){return e.frozen||(e.frozen=new N_)},N_=function(){this.entries=[]},ru=function(e,r){return mN(e.entries,function(t){return t[0]===r})};N_.prototype={get:function(e){var r=ru(this,e);if(r)return r[1]},has:function(e){return!!ru(this,e)},set:function(e,r){var t=ru(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=hN(this.entries,function(t){return t[0]===e});return~r&&vN(this.entries,r,1),!!~r}};D_.exports={getConstructor:function(e,r,t,n){var i=e(function(u,c){uN(u,o),fN(u,{type:r,id:gN++,frozen:null}),lN(c)||dN(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=pN(r),s=function(u,c,d){var l=a(u),p=Ii(cN(c),!0);return p===!0?Ti(l).set(c,d):p[l.id]=d,u};return k_(o,{delete:function(u){var c=a(this);if(!eu(u))return!1;var d=Ii(u);return d===!0?Ti(c).delete(u):d&&O_(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!eu(c))return!1;var l=Ii(c);return l===!0?Ti(d).has(c):l&&O_(l,d.id)}}),k_(o,t?{get:function(c){var d=a(this);if(eu(c)){var l=Ii(c);if(l===!0)return Ti(d).get(c);if(l)return l[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var K_=f(()=>{"use strict";var yN=Ms(),F_=G(),ki=U(),j_=wi(),_N=Wt(),bN=Gs(),U_=L_(),Ri=ee(),Ai=mr().enforce,wN=j(),SN=os(),Zt=Object,xN=Array.isArray,qi=Zt.isExtensible,M_=Zt.isFrozen,EN=Zt.isSealed,B_=Zt.freeze,IN=Zt.seal,TN=!F_.ActiveXObject&&"ActiveXObject"in F_,Qt,$_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},H_=bN("WeakMap",$_,U_),et=H_.prototype,Oi=ki(et.set),RN=function(){return yN&&wN(function(){var e=B_([]);return Oi(new H_,e,1),!M_(e)})};SN&&(TN?(Qt=U_.getConstructor($_,"WeakMap",!0),_N.enable(),tu=ki(et.delete),Xt=ki(et.has),nu=ki(et.get),j_(et,{delete:function(e){if(Ri(e)&&!qi(e)){var r=Ai(this);return r.frozen||(r.frozen=new Qt),tu(this,e)||r.frozen.delete(e)}return tu(this,e)},has:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)||t.frozen.has(r)}return Xt(this,r)},get:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)?nu(this,r):t.frozen.get(r)}return nu(this,r)},set:function(r,t){if(Ri(r)&&!qi(r)){var n=Ai(this);n.frozen||(n.frozen=new Qt),Xt(this,r)?Oi(this,r,t):n.frozen.set(r,t)}else Oi(this,r,t);return this}})):RN()&&j_(et,{set:function(r,t){var n;return xN(r)&&(M_(r)?n=B_:EN(r)&&(n=IN)),Oi(this,r,t),n&&n(r),this}}));var tu,Xt,nu});var G_=f(()=>{"use strict";K_()});var J_=f((MK,V_)=>{"use strict";hi();Jn();G_();var AN=ve();V_.exports=AN.WeakMap});var z_=f((BK,W_)=>{"use strict";var qN=J_();gi();W_.exports=qN});var Q_=f(($K,Y_)=>{Y_.exports=z_()});var X_=f(()=>{"use strict";var kN=L(),ON=ne(),PN=zr();kN({target:"Object",stat:!0,sham:!ON},{create:PN})});var eb=f((GK,Z_)=>{"use strict";X_();var CN=ve(),NN=CN.Object;Z_.exports=function(r,t){return NN.create(r,t)}});var tb=f((VK,rb)=>{"use strict";var DN=eb();rb.exports=DN});var ib=f((JK,nb)=>{nb.exports=tb()});var ub=f((WK,sb)=>{"use strict";var ob=ne(),LN=U(),FN=Ie(),jN=j(),iu=Yn(),UN=ei(),MN=Cn(),BN=cr(),$N=Nn(),rt=Object.assign,ab=Object.defineProperty,HN=LN([].concat);sb.exports=!rt||jN(function(){if(ob&&rt({b:1},rt(ab({},"a",{enumerable:!0,get:function(){ab(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),rt({},e)[t]!==7||iu(rt({},r)).join("")!==n})?function(r,t){for(var n=BN(r),i=arguments.length,o=1,a=UN.f,s=MN.f;i>o;)for(var u=$N(arguments[o++]),c=a?HN(iu(u),a(u)):iu(u),d=c.length,l=0,p;d>l;)p=c[l++],(!ob||FN(s,u,p))&&(n[p]=u[p]);return n}:rt});var lb=f(()=>{"use strict";var KN=L(),cb=ub();KN({target:"Object",stat:!0,arity:2,forced:Object.assign!==cb},{assign:cb})});var fb=f((QK,db)=>{"use strict";lb();var GN=ve();db.exports=GN.Object.assign});var mb=f((XK,pb)=>{"use strict";var VN=fb();pb.exports=VN});var vb=f((ZK,hb)=>{hb.exports=mb()});var ou=f((eG,gb)=>{"use strict";gb.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 bb=f((rG,_b)=>{"use strict";var JN=U(),WN=sr(),zN=fr(),su=ou(),yb=JN("".replace),YN=RegExp("^["+su+"]+"),QN=RegExp("(^|[^"+su+"])["+su+"]+$"),au=function(e){return function(r){var t=zN(WN(r));return e&1&&(t=yb(t,YN,"")),e&2&&(t=yb(t,QN,"$1")),t}};_b.exports={start:au(1),end:au(2),trim:au(3)}});var Eb=f((tG,xb)=>{"use strict";var XN=Ts().PROPER,ZN=j(),wb=ou(),Sb="\u200B\x85\u180E";xb.exports=function(e){return ZN(function(){return!!wb[e]()||Sb[e]()!==Sb||XN&&wb[e].name!==e})}});var Ib=f(()=>{"use strict";var eD=L(),rD=bb().trim,tD=Eb();eD({target:"String",proto:!0,forced:tD("trim")},{trim:function(){return rD(this)}})});var Rb=f((oG,Tb)=>{"use strict";Ib();var nD=ge();Tb.exports=nD("String","trim")});var qb=f((aG,Ab)=>{"use strict";var iD=te(),oD=Rb(),uu=String.prototype;Ab.exports=function(e){var r=e.trim;return typeof e=="string"||e===uu||iD(uu,e)&&r===uu.trim?oD:r}});var Ob=f((sG,kb)=>{"use strict";var aD=qb();kb.exports=aD});var Cb=f((uG,Pb)=>{Pb.exports=Ob()});function Eu(e,r){Y.__h&&Y.__h(J,e,an||r),an=0;var t=J.__H||(J.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Mi(e){return an=1,sD(vw,e)}function sD(e,r,t){var n=Eu(on++,2);if(n.t=e,!n.__c&&(n.__=[t?t(r):vw(void 0,r),function(s){var u=n.__N?n.__N[0]:n.__[0],c=n.t(u,s);u!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=J,!J.__f)){var i=function(s,u,c){var d;if(!n.__c.__H)return!0;var l=(0,xu.default)(d=n.__c.__H.__).call(d,function(m){return!!m.__c});if((0,iw.default)(l).call(l,function(m){return!m.__N}))return!o||o.call(this,s,u,c);var p=n.__c.props!==s;return(0,W.default)(l).call(l,function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(p=!0)}}),o&&o.call(this,s,u,c)||p};J.__f=!0;var o=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(s,u,c){if(this.__e){var d=o;o=void 0,i(s,u,c),o=d}a&&a.call(this,s,u,c)},J.shouldComponentUpdate=i}return n.__N||n.__}function kr(e,r){var t=Eu(on++,3);!Y.__s&&hw(t.__H,r)&&(t.__=e,t.u=r,J.__H.__h.push(t))}function Bi(e){return an=5,mw(function(){return{current:e}},[])}function mw(e,r){var t=Eu(on++,7);return hw(t.__H,r)&&(t.__=e(),t.__H=r,t.__h=e),t.__}function Pe(e,r){return an=8,mw(function(){return e},r)}function uD(){for(var e;e=pw.shift();)if(e.__P&&e.__H)try{var r,t;(0,W.default)(r=e.__H.__h).call(r,Ni),(0,W.default)(t=e.__H.__h).call(t,gu),e.__H.__h=[]}catch(n){e.__H.__h=[],Y.__e(n,e.__v)}}function cD(e){var r,t=function(){clearTimeout(n),Bb&&cancelAnimationFrame(r),(0,hu.default)(e)},n=(0,hu.default)(t,100);Bb&&(r=requestAnimationFrame(t))}function Ni(e){var r=J,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),J=r}function gu(e){var r=J;e.__c=e.__(),J=r}function hw(e,r){return!e||e.length!==r.length||(0,ji.default)(r).call(r,function(t,n){return t!==e[n]})}function vw(e,r){return typeof r=="function"?r(e):r}function gw(e,r){for(var t in r)e[t]=r[t];return e}function yu(e,r){for(var t in e)if(t!=="__source"&&!(t in r))return!0;for(var n in r)if(n!=="__source"&&e[n]!==r[n])return!0;return!1}function Hb(e,r){this.props=e,this.context=r}function lD(e,r){function t(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),r?!r(this.props,i)||!a:yu(this.props,i)}function n(i){return this.shouldComponentUpdate=t,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function fD(e){function r(t){var n=gw({},t);return delete n.ref,e(n,t.ref||null)}return r.$$typeof=dD,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(e.displayName||e.name)+")",r}function yw(e,r,t){var n,i;return e&&(e.__c&&e.__c.__H&&((0,W.default)(n=e.__c.__H.__).call(n,function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=gw({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=r),e.__c=null),e.__k=e.__k&&(0,Ki.default)(i=e.__k).call(i,function(o){return yw(o,r,t)})),e}function _w(e,r,t){var n;return e&&t&&(e.__v=null,e.__k=e.__k&&(0,Ki.default)(n=e.__k).call(n,function(i){return _w(i,r,t)}),e.__c&&e.__c.__P===r&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function lu(){this.__u=0,this.o=null,this.__b=null}function bw(e){var r=e.__.__c;return r&&r.__a&&r.__a(e)}function Pi(){this.i=null,this.l=null}function bD(){}function wD(){return this.cancelBubble}function SD(){return this.defaultPrevented}function A(e,r,t,n,i,o){r||(r={});var a,s,u=r;if("ref"in u)for(s in u={},r)s=="ref"?a=r[s]:u[s]=r[s];var c={type:e,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ED,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)u[s]===void 0&&(u[s]=a[s]);return k.vnode&&k.vnode(c),c}function AD(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function qD(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}function DD(e,r){return ue(e,0)^45?(((r<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function xw(e){return(0,fw.default)(e).call(e)}function LD(e,r){return(e=r.exec(e))?e[0]:e}function D(e,r,t){return e.replace(r,t)}function _u(e,r){return(0,tt.default)(e).call(e,r)}function ue(e,r){return e.charCodeAt(r)|0}function sn(e,r,t){return(0,uw.default)(e).call(e,r,t)}function Be(e){return e.length}function Ru(e){return e.length}function Ci(e,r){return r.push(e),e}function FD(e,r){return(0,Ki.default)(e).call(e,r).join("")}function Ji(e,r,t,n,i,o,a){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:Vi,column:it,length:a,return:""}}function en(e,r){return ND(Ji("",null,null,"",null,null,0),e,{length:-e.length},r)}function jD(){return Q}function UD(){return Q=_e>0?ue(ot,--_e):0,it--,Q===10&&(it=1,Vi--),Q}function Se(){return Q=_e<Ew?ue(ot,_e++):0,it++,Q===10&&(it=1,Vi++),Q}function $e(){return ue(ot,_e)}function Di(){return _e}function cn(e,r){return sn(ot,e,r)}function un(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 Iw(e){return Vi=it=1,Ew=Be(ot=e),_e=0,[]}function Tw(e){return ot="",e}function Li(e){return xw(cn(_e-1,bu(e===91?e+2:e===40?e+1:e)))}function MD(e){for(;(Q=$e())&&Q<33;)Se();return un(e)>2||un(Q)>3?"":" "}function BD(e,r){for(;--r&&Se()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return cn(e,Di()+(r<6&&$e()==32&&Se()==32))}function bu(e){for(;Se();)switch(Q){case e:return _e;case 34:case 39:e!==34&&e!==39&&bu(Q);break;case 40:e===41&&bu(e);break;case 92:Se();break}return _e}function $D(e,r){for(;Se()&&e+Q!==57&&!(e+Q===84&&$e()===47););return"/*"+cn(r,_e-1)+"*"+Gi(e===47?e:Se())}function HD(e){for(;!un($e());)Se();return cn(e,_e)}function KD(e){return Tw(Fi("",null,null,null,[""],e=Iw(e),0,[0],e))}function Fi(e,r,t,n,i,o,a,s,u){for(var c=0,d=0,l=a,p=0,m=0,h=0,y=1,v=1,g=1,_=0,x="",q=i,V=o,I=n,w=x;v;)switch(h=_,_=Se()){case 40:if(h!=108&&ue(w,l-1)==58){_u(w+=D(Li(_),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:w+=Li(_);break;case 9:case 10:case 13:case 32:w+=MD(h);break;case 92:w+=BD(Di()-1,7);continue;case 47:switch($e()){case 42:case 47:Ci(GD($D(Se(),Di()),r,t),u);break;default:w+="/"}break;case 123*y:s[c++]=Be(w)*g;case 125*y:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:g==-1&&(w=D(w,/\f/g,"")),m>0&&Be(w)-l&&Ci(m>32?Xb(w+";",n,t,l-1):Xb(D(w," ","")+";",n,t,l-2),u);break;case 59:w+=";";default:if(Ci(I=Qb(w,r,t,c,d,i,s,x,q=[],V=[],l),o),_===123)if(d===0)Fi(w,r,I,I,q,o,l,s,V);else switch(p===99&&ue(w,3)===110?100:p){case 100:case 108:case 109:case 115:Fi(e,I,I,n&&Ci(Qb(e,I,I,0,0,i,s,x,i,q=[],l),V),i,V,l,s,n?q:V);break;default:Fi(w,I,I,I,[""],V,0,s,V)}}c=d=m=0,y=g=1,x=w="",l=a;break;case 58:l=1+Be(w),m=h;default:if(y<1){if(_==123)--y;else if(_==125&&y++==0&&UD()==125)continue}switch(w+=Gi(_),_*y){case 38:g=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(Be(w)-1)*g,g=1;break;case 64:$e()===45&&(w+=Li(Se())),p=$e(),d=l=Be(x=w+=HD(Di())),_++;break;case 45:h===45&&Be(w)==2&&(y=0)}}return o}function Qb(e,r,t,n,i,o,a,s,u,c,d){for(var l=i-1,p=i===0?o:[""],m=Ru(p),h=0,y=0,v=0;h<n;++h)for(var g=0,_=sn(e,l+1,l=CD(y=a[h])),x=e;g<m;++g)(x=xw(y>0?p[g]+" "+_:D(_,/&\f/g,p[g])))&&(u[v++]=x);return Ji(e,r,t,i===0?Iu:s,u,c,d)}function GD(e,r,t){return Ji(e,r,t,ww,Gi(jD()),sn(e,2,-2),0)}function Xb(e,r,t,n){return Ji(e,r,t,Tu,sn(e,0,n),sn(e,n+1,-1),n)}function nt(e,r){for(var t="",n=Ru(e),i=0;i<n;i++)t+=r(e[i],i,e,r)||"";return t}function VD(e,r,t,n){switch(e.type){case PD:if(e.children.length)break;case OD:case Tu:return e.return=e.return||e.value;case ww:return"";case Sw:return e.return=e.value+"{"+nt(e.children,n)+"}";case Iu:e.value=e.props.join(",")}return Be(t=nt(e.children,n))?e.return=e.value+"{"+t+"}":""}function JD(e){var r=Ru(e);return function(t,n,i,o){for(var a="",s=0;s<r;s++)a+=e[s](t,n,i,o)||"";return a}}function WD(e){return function(r){r.root||(r=r.return)&&e(r)}}function zD(e){var r=(0,lw.default)(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}function Rw(e,r){switch(DD(e,r)){case 5103:return N+"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 N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+$i+e+ce+e+e;case 6828:case 4268:return N+e+ce+e+e;case 6165:return N+e+ce+"flex-"+e+e;case 5187:return N+e+D(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+ce+"flex-$1$2")+e;case 5443:return N+e+ce+"flex-item-"+D(e,/flex-|-self/,"")+e;case 4675:return N+e+ce+"flex-line-pack"+D(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+ce+D(e,"shrink","negative")+e;case 5292:return N+e+ce+D(e,"basis","preferred-size")+e;case 6060:return N+"box-"+D(e,"-grow","")+N+e+ce+D(e,"grow","positive")+e;case 4554:return N+D(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,N+"$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(Be(e)-1-r>6)switch(ue(e,r+1)){case 109:if(ue(e,r+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+$i+(ue(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~_u(e,"stretch")?Rw(D(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ue(e,r+1)!==115)break;case 6444:switch(ue(e,Be(e)-3-(~_u(e,"!important")&&10))){case 107:return D(e,":",":"+N)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(ue(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ce+"$2box$3")+e}break;case 5936:switch(ue(e,r+11)){case 114:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+ce+e+e}return e}function iL(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function Hi(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return vr={name:i.name,styles:i.styles,next:vr},i.name;var o=t;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)vr={name:a.name,styles:a.styles,next:vr},a=a.next;var s=o.styles+";";return s}return uL(e,r,t)}}var u=t;if(r==null)return u;var c=r[u];return c!==void 0?c:u}function uL(e,r,t){var n="";if((0,nn.default)(t))for(var i=0;i<t.length;i++)n+=Hi(e,r,t[i])+";";else for(var o in t){var a=t[o];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=o+"{"+r[s]+"}":ew(s)&&(n+=fu(o)+":"+rw(o,s)+";")}else if((0,nn.default)(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var u=0;u<a.length;u++)ew(a[u])&&(n+=fu(o)+":"+rw(o,a[u])+";");else{var c=Hi(e,r,a);switch(o){case"animation":case"animationName":{n+=fu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function pu(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";vr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Hi(t,r,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Hi(t,r,e[s]),n){var u=o;i+=u[s]}tw.lastIndex=0;for(var c="",d;(d=tw.exec(i))!==null;)c+="-"+d[1];var l=iL(i)+c;return{name:l,styles:i,next:vr}}function wu(e,r,t){var n,i="";return(0,W.default)(n=t.split(" ")).call(n,function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(i+=o+" ")}),i}function nw(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function mu(e,r,t){var n=[],i=wu(e,n,t);return n.length<2?t:i+r(n)}function yL(s){var u=s,{elementTag:e="Image",src:r="",children:t,handleExposure:n,className:i,imgStyle:o}=u,a=Ae(u,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=gL(()=>{r&&n()});return e==="Image"?A("div",{className:i,style:{borderRadius:"8px"},children:Je("img",C(T({},a),{ref:c,src:r!=null?r:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"contain",maxWidth:"100%",maxHeight:"100%",borderRadius:"8px"},o||{})}))}):A("div",C(T({},a),{ref:c,className:i,children:t}))}function _L(e,r){if(!e)return null;let t=Array.isArray(r)?r[0]:r,n=Array.isArray(r)?r[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,C(T({},i.props),{style:C(T({},i.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,C(T({},e.props),{style:C(T({},e.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}var xu,iw,W,ow,ji,hu,rn,tn,Ki,lG,tt,aw,sw,Ui,nn,vu,dG,uw,cw,lw,dw,fw,on,J,cu,Nb,an,pw,Y,Db,Lb,Fb,jb,Ub,Mb,Bb,$b,Kb,dD,pD,Gb,Vb,mD,hD,vD,gD,yD,_D,Jb,xD,Wb,zb,Yb,ED,du,ID,TD,RD,kD,ce,$i,N,ww,Iu,Tu,OD,Sw,PD,CD,Gi,ND,Vi,it,Ew,_e,Q,ot,YD,QD,XD,Zb,ZD,eL,rL,tL,nL,oL,aL,sL,Aw,ew,fu,rw,tw,vr,cL,lL,dL,fL,pL,er,mL,hL,vL,gL,qw,kw,bL,wL,SL,xL,Su,EL,Ow,Pw,Cw,IL,TL,RL,Nw,Au=R(()=>{"use strict";wl();xu=M(kf(),1),iw=M(Mf(),1),W=M(Zf(),1),ow=M(fp(),1),ji=M(wp(),1),hu=M(Up(),1),rn=M(xv(),1),tn=M(qv(),1),Ki=M(jv(),1),lG=M(Xv(),1),tt=M(ug(),1),aw=M(my(),1),sw=M(Ey(),1),Ui=M(Cy(),1),nn=M(My(),1),vu=M(r_(),1),dG=M(y_(),1),uw=M(q_(),1),cw=M(Q_(),1),lw=M(ib(),1),dw=M(vb(),1),fw=M(Cb(),1),an=0,pw=[],Y=k,Db=Y.__b,Lb=Y.__r,Fb=Y.diffed,jb=Y.__c,Ub=Y.unmount,Mb=Y.__;Y.__b=function(e){J=null,Db&&Db(e)},Y.__=function(e,r){e&&r.__k&&r.__k.__m&&(e.__m=r.__k.__m),Mb&&Mb(e,r)},Y.__r=function(e){var r,t,n;Lb&&Lb(e),on=0;var i=(J=e.__c).__H;i&&(cu===J?(i.__h=[],J.__h=[],(0,W.default)(r=i.__).call(r,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,W.default)(t=i.__h).call(t,Ni),(0,W.default)(n=i.__h).call(n,gu),i.__h=[],on=0)),cu=J},Y.diffed=function(e){var r;Fb&&Fb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pw.push(t)!==1&&Nb===Y.requestAnimationFrame||((Nb=Y.requestAnimationFrame)||cD)(uD)),(0,W.default)(r=t.__H.__).call(r,function(n){n.u&&(n.__H=n.u),n.u=void 0})),cu=J=null},Y.__c=function(e,r){(0,ji.default)(r).call(r,function(t){try{var n,i;(0,W.default)(n=t.__h).call(n,Ni),t.__h=(0,xu.default)(i=t.__h).call(i,function(o){return!o.__||gu(o)})}catch(o){(0,ji.default)(r).call(r,function(a){a.__h&&(a.__h=[])}),r=[],Y.__e(o,t.__v)}}),jb&&jb(e,r)},Y.unmount=function(e){var r;Ub&&Ub(e);var t,n=e.__c;n&&n.__H&&((0,W.default)(r=n.__H.__).call(r,function(i){try{Ni(i)}catch(o){t=o}}),n.__H=void 0,t&&Y.__e(t,n.__v))};Bb=typeof requestAnimationFrame=="function";(Hb.prototype=new je).isPureReactComponent=!0,Hb.prototype.shouldComponentUpdate=function(e,r){return yu(this.props,e)||yu(this.state,r)};Kb=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kb&&Kb(e)};dD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.forward_ref")||3911;pD=k.__e;k.__e=function(e,r,t,n){if(e.then){for(var i,o=r;o=o.__;)if((i=o.__c)&&i.__c)return r.__e==null&&(r.__e=t.__e,r.__k=t.__k),i.__c(e,r)}pD(e,r,t,n)};Gb=k.unmount;k.unmount=function(e){var r=e.__c;r&&r.__R&&r.__R(),r&&32&e.__u&&(e.type=null),Gb&&Gb(e)},(lu.prototype=new je).__c=function(e,r){var t=r.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var i=bw(n.__v),o=!1,a=function(){o||(o=!0,t.__R=null,i?i(s):s())};t.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=_w(u,u.__c.__P,u.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&r.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},lu.prototype.componentWillUnmount=function(){this.o=[]},lu.prototype.render=function(e,r){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=yw(this.__b,t,n.__O=n.__P)}this.__b=null}var i=r.__a&&Je(ar,null,e.fallback);return i&&(i.__u&=-33),[Je(ar,null,r.__a?null:e.children),i]};Vb=function(e,r,t){if(++t[1]===t[0]&&e.l.delete(r),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(Pi.prototype=new je).__a=function(e){var r=this,t=bw(r.__v),n=r.l.get(e);return n[0]++,function(i){var o=function(){r.props.revealOrder?(n.push(i),Vb(r,e,n)):i()};t?t(o):o()}},Pi.prototype.render=function(e){this.i=null,this.l=new aw.default;var r=It(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&(0,sw.default)(r).call(r);for(var t=r.length;t--;)this.l.set(r[t],this.i=[1,0,this.i]);return e.children},Pi.prototype.componentDidUpdate=Pi.prototype.componentDidMount=function(){var e,r=this;(0,W.default)(e=this.l).call(e,function(t,n){Vb(r,n,t)})};mD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.element")||60103,hD=/^(?: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]/,vD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gD=/[A-Z0-9]/g,yD=typeof document<"u",_D=function(e){return(typeof rn.default<"u"&&typeof(0,rn.default)()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};je.prototype.isReactComponent={},(0,W.default)($b=["componentWillMount","componentWillReceiveProps","componentWillUpdate"]).call($b,function(e){(0,Ui.default)(je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(r){(0,Ui.default)(this,e,{configurable:!0,writable:!0,value:r})}})});Jb=k.event;k.event=function(e){return Jb&&(e=Jb(e)),e.persist=bD,e.isPropagationStopped=wD,e.isDefaultPrevented=SD,e.nativeEvent=e};xD={enumerable:!1,configurable:!0,get:function(){return this.class}},Wb=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(r,t,n){var i=r.props,o=r.type,a={},s=(0,tt.default)(o).call(o,"-")===-1;for(var u in i){var c=i[u];if(!(u==="value"&&"defaultValue"in i&&c==null||yD&&u==="children"&&o==="noscript"||u==="class"||u==="className")){var d=u.toLowerCase();u==="defaultValue"&&"value"in i&&i.value==null?u="value":u==="download"&&c===!0?c="":d==="translate"&&c==="no"?c=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?u="ondblclick":d!=="onchange"||o!=="input"&&o!=="textarea"||_D(i.type)?d==="onfocus"?u="onfocusin":d==="onblur"?u="onfocusout":vD.test(u)&&(u=d):d=u="oninput":s&&hD.test(u)?u=u.replace(gD,"-$&").toLowerCase():c===null&&(c=void 0),d==="oninput"&&a[u=d]&&(u="oninputCapture"),a[u]=c}}o=="select"&&a.multiple&&(0,nn.default)(a.value)&&(a.value=(0,W.default)(t=It(i.children)).call(t,function(l){var p;l.props.selected=(0,tt.default)(p=a.value).call(p,l.props.value)!=-1})),o=="select"&&a.defaultValue!=null&&(a.value=(0,W.default)(n=It(i.children)).call(n,function(l){var p;l.props.selected=a.multiple?(0,tt.default)(p=a.defaultValue).call(p,l.props.value)!=-1:a.defaultValue==l.props.value})),i.class&&!i.className?(a.class=i.class,(0,Ui.default)(a,"className",xD)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),r.props=a}(e),e.$$typeof=mD,Wb&&Wb(e)};zb=k.__r;k.__r=function(e){zb&&zb(e),e.__c};Yb=k.diffed;k.diffed=function(e){Yb&&Yb(e);var r=e.props,t=e.__e;t!=null&&e.type==="textarea"&&"value"in r&&r.value!==t.value&&(t.value=r.value==null?"":r.value)};ED=0;du={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"}},ID=`
|
|
21
21
|
@keyframes fadeIn {
|
|
22
22
|
from { opacity: 0; }
|
|
23
23
|
to { opacity: 1; }
|
|
@@ -53,7 +53,7 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
53
53
|
.drawer-leave {
|
|
54
54
|
animation: slideDown 0.3s ease forwards;
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,TD=({children:e,isOpen:r=!1,onClose:t,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,u]=Mi(r),[c,d]=Mi(null),l=Bi(null),p=Bi(!1);kr(()=>{let I=document.createElement("style");return I.innerHTML=ID,document.head.appendChild(I),()=>{document.head.removeChild(I)}},[]),kr(()=>{r!==s&&!p.current&&(u(r),d(r?"enter":"leave"),r?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):!r&&!p.current&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""))},[r,s]),kr(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let m=Pe(()=>{c==="leave"&&(d(null),u(!1),p.current=!1)},[c]),h=Pe(I=>{I.preventDefault(),I.stopPropagation(),I.target===l.current&&v()},[]),y=Pe(()=>{p.current=!1,u(!0),d("enter")},[]),v=Pe(()=>{p.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",t&&t()},[t]),g=Pe(()=>s&&!p.current,[s]);if(kr(()=>{if(a){let I={show:y,hide:v,isOpen:g};typeof a=="function"?a(I):a&&(a.current=I)}},[y,v,g,a]),!s&&!c)return null;let _=C(T({},du.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:o||"rgba(255, 255, 255, 1)"}),x=C(T({},du.drawerBackdrop),{pointerEvents:"auto"}),q=c?`drawer-${c}`:"",V=c?`backdrop-${c}`:"";return A("div",{ref:l,style:x,className:V,onClick:h,onTouchMove:I=>I.preventDefault(),onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:A("div",{style:_,className:`${q} ${i}`,onAnimationEnd:m,onClick:I=>I.stopPropagation(),onTouchMove:I=>{I.stopPropagation()},onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:A("div",{style:C(T({},du.drawerContent),{pointerEvents:"auto"}),onTouchMove:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:e})})})},RD=fD(TD);kD=function(){function e(t){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=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(t){(0,W.default)(t).call(t,this._insertTag)},r.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qD(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=AD(n);try{i.insertRule(t,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(t));this.ctr++},r.flush=function(){var t;(0,W.default)(t=this.tags).call(t,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ce="-ms-",$i="-moz-",N="-webkit-",ww="comm",Iu="rule",Tu="decl",OD="@import",Sw="@keyframes",PD="@layer",CD=Math.abs,Gi=String.fromCharCode,ND=dw.default;Vi=1,it=1,Ew=0,_e=0,Q=0,ot="";YD=function(e,r,t){for(var n=0,i=0;n=i,i=$e(),n===38&&i===12&&(r[t]=1),!un(i);)Se();return cn(e,_e)},QD=function(e,r){var t=-1,n=44;do switch(un(n)){case 0:n===38&&$e()===12&&(r[t]=1),e[t]+=YD(_e-1,r,t);break;case 2:e[t]+=Li(n);break;case 4:if(n===44){e[++t]=$e()===58?"&\f":"",r[t]=e[t].length;break}default:e[t]+=Gi(n)}while(n=Se());return e},XD=function(e,r){return Tw(QD(Iw(e),r))},Zb=new cw.default,ZD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Zb.get(t))&&!n){Zb.set(e,!0);for(var i=[],o=XD(r,i),a=t.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},eL=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};rL=function(e,r,t,n){if(e.length>-1&&!e.return)switch(e.type){case Tu:e.return=Rw(e.value,e.length);break;case Sw:return nt([en(e,{value:D(e.value,"@","@"+N)})],n);case Iu:if(e.length)return FD(e.props,function(i){switch(LD(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nt([en(e,{props:[D(i,/:(read-\w+)/,":"+$i+"$1")]})],n);case"::placeholder":return nt([en(e,{props:[D(i,/:(plac\w+)/,":"+N+"input-$1")]}),en(e,{props:[D(i,/:(plac\w+)/,":"+$i+"$1")]}),en(e,{props:[D(i,/:(plac\w+)/,ce+"input-$1")]})],n)}return""})}},tL=[rL],nL=function(e){var r=e.key;if(r==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,W.default)(Array.prototype).call(t,function(h){var y=h.getAttribute("data-emotion");(0,tt.default)(y).call(y," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||tL,i={},o,a=[];o=e.container||document.head,(0,W.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)i[y[v]]=!0;a.push(h)});var s,u=[ZD,eL];{var c,d=[VD,WD(function(h){c.insert(h)})],l=JD((0,ow.default)(u).call(u,n,d)),p=function(h){return nt(KD(h),l)};s=function(h,y,v,g){c=v,p(h?h+"{"+y.styles+"}":y.styles),g&&(m.inserted[y.name]=!0)}}var m={key:r,sheet:new kD({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return m.sheet.hydrate(a),m};oL={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},aL=/[A-Z]|^ms/g,sL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Aw=function(e){return e.charCodeAt(1)===45},ew=function(e){return e!=null&&typeof e!="boolean"},fu=zD(function(e){return Aw(e)?e:e.replace(aL,"-$&").toLowerCase()}),rw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(sL,function(t,n,i){return vr={name:n,styles:i,next:vr},n})}return oL[e]!==1&&!Aw(e)&&typeof r=="number"&&r!==0?r+"px":r};tw=/label:\s*([^\s;{]+)\s*(;|$)/g;cL=function(e,r,t){var n=e.key+"-"+r.name;e.registered[n]===void 0&&(e.registered[n]=r.styles)},lL=function(e,r,t){cL(e,r);var n=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i=r;do e.insert(r===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};dL=function(e){var r=nL(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var t=function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var c=pu(s,r.registered,void 0);return lL(r,c),r.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var c=pu(s,r.registered),d="animation-"+c.name;return nw(r,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var c=pu(s,r.registered);nw(r,c)},o=function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return mu(r.registered,t,fL(s))};return{css:t,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,W.default)(a).call(a,function(s){r.inserted[s]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:(0,vu.default)(wu).call(wu,null,r.registered),merge:(0,vu.default)(mu).call(mu,null,r.registered,t)}},fL=function e(r){for(var t="",n=0;n<r.length;n++){var i=r[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,nn.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(t&&(t+=" "),t+=o)}}return t},pL=dL({key:"css"}),er=pL.css,mL=({title:e,content:r,noHeader:t,padding:n="16px",footerButtons:i,onClose:o})=>{let a={container:er`
|
|
57
57
|
display: flex;
|
|
58
58
|
flex-direction: column;
|
|
59
59
|
height: 100%;
|
|
@@ -90,7 +90,7 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
90
90
|
${a.button}
|
|
91
91
|
background-color: ${s.variant==="primary"?"#1677ff":"#fff"};
|
|
92
92
|
color: ${s.variant==="primary"?"#fff":"#333"};
|
|
93
|
-
`,onClick:c=>{var d;return(d=s.onClick)==null?void 0:d.call(s,c,{hide:o})},children:s.text},u))})]})},
|
|
93
|
+
`,onClick:c=>{var d;return(d=s.onClick)==null?void 0:d.call(s,c,{hide:o})},children:s.text},u))})]})},hL=(()=>{let e=null;return()=>(e||(e=document.createElement("div"),e.id=`jolibox-ui-modal-container-${Math.random().toString(36).substring(2,15)}`,document.body.appendChild(e)),e)})(),vL=e=>{let r=hL(),t=null,n=!1,i=!1,o=()=>{i||(n=!1,e.onClose&&e.onClose(),s())},a=()=>window.innerWidth>window.innerHeight,s=()=>{Tt(A(RD,{ref:c=>{t=c},isOpen:n,onClose:o,height:a()?"90vh":"50vh",backdropColor:e.backdropColor,children:A(mL,C(T({},e),{onClose:o}))}),r)},u=()=>{!i&&n&&s()};return window.addEventListener("resize",u),s(),{show:()=>{i||(n=!0,s(),setTimeout(()=>{t&&(t.show(),e.onOpen&&e.onOpen())},0))},hide:()=>{i||t&&t.hide()},isOpen:()=>n,destroy:()=>{i=!0,window.removeEventListener("resize",u),t&&t.hide(),setTimeout(()=>{Tt(null,r)},300)}}},gL=(e,r={threshold:.6})=>{let t=Bi(null),n=Bi(!1),i=Pe(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return kr(()=>{if(t.current){let o=new IntersectionObserver(i,r);return o.observe(t.current),()=>{t.current&&o.unobserve(t.current)}}},[i,r]),t};qw=o=>{var a=o,{children:e,fluid:r=!1,className:t="",style:n={}}=a,i=Ae(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:r?"100%":void 0},n);return A("div",C(T({className:t,style:s},i),{children:e}))},kw=s=>{var u=s,{children:e,gutter:r=0,justify:t="start",align:n="top",className:i="",style:o={}}=u,a=Ae(u,["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"},l=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[t],alignItems:d[n]},o);if(r){let m=Array.isArray(r)?r[0]:r,h=Array.isArray(r)?r[1]:0;m>0&&(l.marginLeft=`-${m/2}px`,l.marginRight=`-${m/2}px`),h>0&&(l.marginTop=`-${h/2}px`,l.marginBottom=`-${h/2}px`)}let p=r?_L(e,r):e;return A("div",C(T({className:i,style:l},a),{children:p}))};bL=l=>{var p=l,{children:e,span:r,offset:t,xs:n,sm:i,md:o,lg:a,xl:s,className:u="",style:c={}}=p,d=Ae(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let m=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(r!==void 0){let h=r/24*100;m.flex=`0 0 ${h}%`,m.maxWidth=`${h}%`}return t!==void 0&&(m.marginLeft=`${t/24*100}%`),A("div",C(T({className:u,style:m},d),{children:e}))},wL=({game:e,layerName:r,routeMode:t,onGameClick:n})=>{var a,s;let i=Pe(u=>{u.preventDefault(),n==null||n(e)},[n,e]),o=Pe(()=>{},[e,r]);return A(bL,{span:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:"8px"},onClick:i,role:"button",tabIndex:0,onTouchEnd:i,children:[A("div",{className:"relative w-full mb-[2px] ion-no-margin",children:A(yL,{src:(s=(a=e.logo)!=null?a:e.cover)!=null?s:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:o})}),A("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:"15px",lineHeight:1.2,fontWeight:"normal"},children:e.name})]},e.gameId)},SL=o=>{var a=o,{list:e,routeMode:r,layerName:t,onGameClick:n}=a,i=Ae(a,["list","routeMode","layerName","onGameClick"]);return A(qw,{className:"w-full max-w-[440px] mx-auto flex-grow overflow-y-auto",children:A(kw,{gutter:8,className:"flex-wrap",children:e==null?void 0:e.map(s=>A(wL,{game:s,routeMode:r,layerName:t,onGameClick:n},s.gameId))})})},xL=lD(SL),Su=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Su||{}),EL=e=>{let{games:r,title:t,buttons:n,onClose:i}=e,[o,a]=Mi(null),s=Pe(d=>{i==null||i({type:d.type===Su.Quit?"quit":"dismiss"})},[i]),u=Pe(d=>{i==null||i({type:"navigate",data:{game:d}})},[i]);if(!r.length)return A(ar,{});let c=Pe(d=>{if(d!==null&&!d.shadowRoot){let l=d.attachShadow({mode:"open"}),p=document.createElement("style");p.textContent=`
|
|
94
94
|
.recommend-panel {
|
|
95
95
|
background-color: #1a1a1a;
|
|
96
96
|
width: 100%;
|
|
@@ -181,7 +181,7 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
181
181
|
background-color: #7817FF;
|
|
182
182
|
color: #fff;
|
|
183
183
|
}
|
|
184
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",l.appendChild(p),l.appendChild(m),a(l)}},[]);return kr(()=>{if(o){let d=o.getElementById("recommend-panel-content");d&&Tt(A("div",{className:"recommend-panel",children:A("div",{className:"container",children:[A("p",{className:"title",children:t}),A("div",{className:"games-container",children:A(
|
|
184
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",l.appendChild(p),l.appendChild(m),a(l)}},[]);return kr(()=>{if(o){let d=o.getElementById("recommend-panel-content");d&&Tt(A("div",{className:"recommend-panel",children:A("div",{className:"container",children:[A("p",{className:"title",children:t}),A("div",{className:"games-container",children:A(xL,{list:r||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:u})}),A("div",{className:"buttons-container",children:A(qw,{children:A(kw,{gutter:10,children:(n!=null?n:[]).map((l,p)=>A("div",{className:"button-wrapper",children:A("button",{className:`button ${l.type===Su.Quit?"quit-button":"action-button"}`,onClick:()=>s(l),children:l.text})},p))})})})]})}),d)}},[o,r,t,n,s,u]),A("div",{ref:c})},Ow=e=>{let r=vL({title:e.title,content:A(EL,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",onClose:()=>{console.log("onClose")},onOpen:e.onOpen});return r.show(),r},Pw=new Map,Cw=(e,r)=>{Pw.set(e,r)};Cw(/^\{slot-checkmark\}/,(e,r)=>{var n,i;let t=(i=(n=r==null?void 0:r.customStyle)==null?void 0:n.mark)!=null?i:{};return A("div",{style:t,children:A("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[A("g",{clipPath:"url(#clip0_2247_16523)",children:A("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"})}),A("defs",{children:A("clipPath",{id:"clip0_2247_16523",children:A("rect",{width:"24",height:"24",fill:"white"})})})]})})});IL="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=";Cw(/^\{slot-coin\}/,(e,r)=>{var n;let t=(n=r==null?void 0:r.coinImage)!=null?n:IL;return A("img",{src:t,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});TL=(e,r)=>{if(!e.includes("{slot-"))return e;let t=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[u,c]of Pw.entries()){let d=u.source.startsWith("^")?u.source.slice(1):u.source,l=new RegExp(d,"g");l.lastIndex=n;let p=l.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&t.push(e.substring(n,a)),t.push(s(o,r)),n=a+o[0].length;else{t.push(e.substring(n));break}}let i=er`
|
|
185
185
|
display: 'flex',
|
|
186
186
|
alignItems: 'center',
|
|
187
187
|
gap: '4px',
|
|
@@ -192,7 +192,7 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
192
192
|
fontWeight: 600,
|
|
193
193
|
lineHeight: '18px',
|
|
194
194
|
width: 'max-content'
|
|
195
|
-
`;return t.length===1?t[0]:A("div",{className:i,children:t})},
|
|
195
|
+
`;return t.length===1?t[0]:A("div",{className:i,children:t})},RL=({message:e,type:r="info",duration:t=3e3,onClose:n})=>{let[i,o]=Mi(!0);kr(()=>{let s=setTimeout(()=>{o(!1),setTimeout(()=>{n==null||n()},300)},t);return()=>clearTimeout(s)},[t,n]);let a=er`
|
|
196
196
|
position: fixed;
|
|
197
197
|
top: max(20px, env(safe-area-inset-top));
|
|
198
198
|
left: 50%;
|
|
@@ -210,6 +210,6 @@ var ES=Object.create;var fn=Object.defineProperty,IS=Object.defineProperties,TS=
|
|
|
210
210
|
transform: ${i?"translate(-50%, 0)":"translate(-50%, -20px)"};
|
|
211
211
|
text-align: center;
|
|
212
212
|
word-wrap: break-word;
|
|
213
|
-
`;return A("div",{className:`toast toast-${r} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},
|
|
214
|
-
or `);this.errors.push(o)}return n}},po=class extends X{constructor(...r){super(),this._items=r;let t=0,n=r.length-1;for(;n>=0;n--){let i=r[n];if(i._optional||i.hasDefault)t+=1;else break}this._minItems=r.length-t}validate(r){if(r===void 0&&this._optional)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let t=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,r[i]===void 0&&n.hasDefault){r[i]=n.defaultValue;return}n.validate(r[i])||(n.hasFallback?r[i]=n._fallback:t=!1)}),t}},mo=class extends X{validate(r){return r===void 0&&this._optional||r instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:r})}},ho=class extends X{constructor(r){super(),this._ctor=r}validate(r){return r===void 0&&this._optional||r instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:r})}}});function
|
|
215
|
-
`);throw e.errors.length=0,qu(!1),new TypeError(n)}}var b,Nu=R(()=>{"use strict";Pu();Pu();b={object(e){return new co(e)},array(e){return new so(e)},tuple(...e){return new po(...e)},literal(e){return new lo(e)},or(...e){return new fo(...e)},symbol(){return new to},record(e){return new uo(e)},function(){return new oo},boolean(){return new eo},string(){return new ro},number(){return new Zi},undefined(){return new no},null(){return new io},unknown(){return new at},any(){return new at},as(){return new at},arraybuffer(){return new mo},enum(...e){return new ao(...e)},typedarray(e){return new ho(e)}}});var vo,$w,Hw=R(()=>{"use strict";P();Fe();Nu();Nr();vo=1,$w=e=>{function r(n,i){return(...o)=>{var l,p,m,h;let a=Date.now(),s={method:n,trace_id:vo};vo+=1;let u="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Cu(i.paramsSchema,o,"params")}catch(_){throw ia(`${n}:fail ${_.message}`)}let y=i.implement(...o),v=y,g=`${n}:ok`;if(y&&"code"in y){let{code:_,data:x,message:q}=y;u=_,v=x,g=q}return{code:u,message:g,data:v}}catch(y){let v=y;d=(p=(l=v.code)!=null?l:v.errNo)!=null?p:2e3,u="FAILURE";let g=(h=(m=v.message)!=null?m:v.errMsg)!=null?h:`${y}`;return c=`${n}:${u} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,le(new wt(c,d)),{code:u,message:c}}finally{let y=Date.now()-a;e("apiInvoked",C(T({},s),{duration:y,status:u}))}}}function t(n,i){return(...o)=>E(this,null,function*(){var p,m,h,y;let a=pc(o)?o:[o],s=Date.now(),u={method:n,trace_id:vo};vo+=1;let c=`${n}:ok`,d="SUCCESS",l={code:d,message:c};try{if(i.paramsSchema)try{Cu(i.paramsSchema,a,"params")}catch(_){throw ia(_.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:_,data:x,message:q}=g;d=_,c=q,g=x}return Object.assign(l,{code:d,message:c,data:g}),l}catch(v){let g=v,_=(m=(p=g.code)!=null?p:g.errNo)!=null?m:2e3;d="FAILURE";let x=(y=(h=g.message)!=null?h:g.errMsg)!=null?y:`${v}`,q=`${n}:${d} ${x.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(l,{code:d,message:q}),le(new wt(q,_)),l}finally{let v=Date.now()-s;e("apiInvoked",C(T({},u),{duration:v,status:d}))}})}return{createAPI:t,createSyncAPI:r}}});var oe,B,O,He=R(()=>{"use strict";Mw();or();Hw();Nu();({createAPI:oe,createSyncAPI:B}=$w(we)),O=Uw("native")});var Kw,DL,LL,FL,jL,Gw=R(()=>{"use strict";P();He();pe();Kw=z(),DL="env",LL="getSystemInfoSync",FL=B(LL,{implement:()=>{var t;let e=F("envSync"),{data:r}=e;return{system:r.deviceInfo.system,platform:r.deviceInfo.platform.toLowerCase(),version:r.sdkInfo.jssdkVersion,pixelRatio:r.deviceInfo.pixelRatio,language:r.deviceInfo.lang,brand:r.deviceInfo.brand,appName:(t=r.hostInfo)==null?void 0:t.appName,SDKVersion:r.sdkInfo.jssdkVersion}}}),jL=B(DL,{implement:()=>{var r;let e=F("envSync");return(r=e==null?void 0:e.data)!=null?r:void 0}});Kw.registerCommand("API.getSystemInfoSync",FL);Kw.registerCommand("API.env",jL);O("env",{version:"1.0.0"});O("getSystemInfoSync",{version:"1.0.0"})});var Vw=f(Du=>{"use strict";P();He();Fe();pe();or();ae();var UL="exitGame",ML="onReady",BL="onJoliboxShow",$L="onJoliboxHide",go=z(),yo=yn(le),HL=oe(UL,{paramsSchema:b.tuple(b.function(),b.boolean().optional().default(!1)),implement:(e,r=!1)=>E(Du,null,function*(){yo(e).call(Du),yt(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&uc("onRetentionResult",{shouldStay:r},S.from,!0),yield be("exitAppAsync")})}),KL=B(BL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);qe("onJoliboxEnterForeground",()=>{r.call(this),St.emit("visible",!0)})}}),GL=B($L,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);qe("onJoliboxEnterBackground",()=>{r.call(this),St.emit("visible",!1)})}}),VL=B(ML,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);Le.on("LifecycleEvent.onReady",t=>{r(t)})}});go.registerCommand("LifecycleSDK.exit",HL);go.registerCommand("LifecycleSDK.onReady",VL);go.registerCommand("LifecycleSDK.onJoliboxShow",KL);go.registerCommand("LifecycleSDK.onJoliboxHide",GL);O("lifeCycle.exit",{version:"1.0.0"});O("lifeCycle.onReady",{version:"1.0.0"});O("lifeCycle.onJoliboxShow",{version:"1.0.0"});O("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Jw(e){let r={};if(!yr(e))return r;for(let[t,n]of Object.entries(e)){let i=t.toLocaleLowerCase();n?typeof n=="object"?r[i]=Object.prototype.toString.call(n):r[i]=String(n):r[i]=""}return r}function Ww(e="GET"){if(e==="")return"POST";let r=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(r)?r:"GET"}function zw(e,r=!1){if(e)return r||e>0&&e<=6e4?Math.ceil(e):6e4}function Yw(e,r,t){if(["POST","PUT","PATCH"].includes(r)||!yr(t))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,u]of Object.entries(t))u!=null&&o.append(s,String(u));let a=o.toString();return a?`${n}?${a}`:n}var Qw=R(()=>{"use strict";P()});var JL,WL,Lu,Fu,Xw,zL,YL,QL,Zw=R(()=>{"use strict";Nr();sa();He();Qw();P();Fe();ae();JL=15,WL=wn("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Lu=0,Fu=[],Xw=yn(le),zL=(e,r)=>{let t=e.filter(r),n=e.filter(i=>!r(i));return e.length=0,e.push(...n),t},YL=e=>{let r=new nr,t=()=>{};return B("request",{paramsSchema:b.tuple(b.object({url:b.string(),method:b.string(),headers:b.object(),data:b.object().optional(),query:b.object().optional(),dataType:b.string().default("json"),responseType:b.string().default("text"),enableCache:b.boolean().default(!1),appendHostCookie:b.boolean().default(!0),timeout:b.number().default(3e4),success:b.function(),fail:b.function()})),implement(i){let o=()=>E(this,null,function*(){var s,u;let a=Xw(i.fail);try{if(Lu+=1,r.state!=="pending")return;let{data:c,dataType:d,responseType:l,enableCache:p,appendHostCookie:m}=i,h=Jw(i.headers),y=Ww(i.method),v=zw(i.timeout),g=Yw(i.url,y,c),_=Xw(i.success),x=Object.assign({},i,{method:y,header:h,data:y==="GET"||y==="HEAD"?void 0:c,enableCache:p,query:(s=i.query)!=null?s:{},dataType:d,responseType:l,appendHostCookie:m});v&&(x.timeout=v);let q=WL(g,x);{let{response:V}=yield q,{code:I,data:w,message:K}=V;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw ir({code:w.status||-1,msg:`request:fail status ${w.status}`});r.resolve({code:I!=null?I:"SUCCESS",data:w,message:K!=null?K:"request:ok"}),_({code:"SUCCESS",message:"request:ok",data:w})}}catch(c){r.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Lu-=1,(u=Fu.shift())==null||u()}});return Lu>=JL?(t=()=>{zL(Fu,a=>a===o)},Fu.push(o)):o(),r.promise}})(e),{abort(){r.reject(ir({code:-1,msg:"request:fail abort"})),t()}}},QL=z();QL.registerCommand("HttpSDK.request",YL);O("request",{version:"1.0.0"})});function nF(e){let r=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return tF.includes(r)?r:""}function iF(e,r){try{switch(r){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(t){return""}}function oF(e,r){try{switch(r){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(t){return""}}var _o,XL,ZL,eF,rF,I5,T5,tF,eS=R(()=>{"use strict";He();pe();P();Dr();ae();_o=z(),XL=oe("getLocalStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let{response:r}=yield me(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:t,message:n,data:i}}=yield r;if(t==="SUCCESS")return{code:t,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield be("getLocalStorageAsync",{key:e}),s=iF(o,a);return{code:t,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});_o.registerCommand("StorageSDK.getItem",XL);O("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});ZL=oe("setStorage",{paramsSchema:b.tuple(b.string(),b.or(b.string(),b.boolean(),b.number())),implement(e,r){return E(this,null,function*(){let t=S.mpId,n=typeof r=="string"?r:String(r),{response:i}=yield me(`/api/games/user-storage/${t}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=nF(r),u=oF(r,s);return yield be("setLocalStorageAsync",{key:e,data:u,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});_o.registerCommand("StorageSDK.setItem",ZL);O("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});eF=oe("removeStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let r=S.mpId,{response:t}=yield me(`/api/games/user-storage/${r}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=t;return yield be("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});_o.registerCommand("StorageSDK.removeItem",eF);O("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});rF=oe("clearStorage",{implement(){return E(this,null,function*(){let e=S.mpId,{response:r}=yield me(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});be("clearLocalStorageAsync");let{data:{code:t,message:n}}=r;return t==="SUCCESS"?{code:t,message:n}:{code:t,message:`${n}.fallback to native`}})}});_o.registerCommand("StorageSDK.clear",rF);O("storage.clear",{version:"1.0.0"});I5=oe("getStorageInfo",{implement(){return E(this,null,function*(){let{data:e}=yield be("getStorageInfoAsync");return e})}});O("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});T5=B("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),tF=["string","number","boolean","object",""]});var aF,sF,uF,ju,rS=R(()=>{"use strict";P();pe();He();aF=B("showKeyboard",{paramsSchema:b.tuple(b.object({defaultValue:b.string().optional().default(""),multiple:b.boolean().optional().default(!1),maxLength:b.unknown().optional().default(1e5)})),implement(e){var n;let r=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:t}=e;t&&r&&(t=t.slice(0,r)),F("showKeyboardSync",C(T({},e),{defaultValue:t,maxLength:r}))}});O("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"}});sF=B("updateKeyboard",{paramsSchema:b.tuple(b.object({value:b.string()})),implement(e){F("updateKeyboardSync",e)}});O("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});uF=B("hideKeyboard",{implement(){F("hideKeyboardSync")}});O("keyboard.hideKeyboard",{version:"1.0.0"});ju=z();ju.registerCommand("KeyboardSDK.showKeyboard",aF);ju.registerCommand("KeyboardSDK.updateKeyboard",sF);ju.registerCommand("KeyboardSDK.hideKeyboard",uF)});var tS=f(Or=>{"use strict";P();He();or();var st=z(),cF=oe("levelFinished",{paramsSchema:b.tuple(b.string(),b.object({result:b.boolean(),duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{result:t,duration:n}=r,i=[];i.push(he.tracker("LevelFinished",{levelId:e,result:t,duration:n})),i.push(he.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(i)})}),lF=oe("taskFinished",{paramsSchema:b.tuple(b.string(),b.object({duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{duration:t}=r;return yield he.reportToNative({event:"TaskFinished",params:{duration:t,taskId:e}})})}),dF=oe("levelUpgrade",{paramsSchema:b.tuple(b.string(),b.string()),implement:(e,r)=>E(Or,null,function*(){let t=[];t.push(he.reportToNative({event:"LevelUpgrade",params:{name:r,levelId:e}})),yield Promise.all(t)})}),fF=oe("onHistoryUserLevel",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield he.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),pF=oe("onHistoryUserScore",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield he.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),mF=oe("taskEvent",{paramsSchema:b.tuple(b.string(),b.object({tools:b.array(b.object({id:b.string(),name:b.string(),count:b.number(),description:b.string().optional(),price:b.object({amount:b.number(),unit:b.string()}).optional()})).optional(),awards:b.array(b.object({id:b.string(),name:b.string()})).optional()})),implement:(e,r)=>E(Or,null,function*(){var n,i;let t=[];t.push(he.reportToNative({event:"TaskEvent",params:T({taskId:e},r)})),(i=(n=r.tools)==null?void 0:n.length)!=null&&i&&(t.push(he.reporter({event:"USE_GAME_ITEM"})),t.push(he.reportToNative({event:"UseGameItem",params:T({taskId:e},r)}))),yield Promise.all(t)})});st.registerCommand("TaskTrackerSDK.levelFinished",cF);st.registerCommand("TaskTrackerSDK.taskFinished",lF);st.registerCommand("TaskTrackerSDK.levelUpgrade",dF);st.registerCommand("TaskTrackerSDK.historyUserLevel",fF);st.registerCommand("TaskTrackerSDK.historyUserScore",pF);st.registerCommand("TaskTrackerSDK.taskEvent",mF);O("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});O("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});O("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});O("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 hF,vF,nS,iS=R(()=>{"use strict";ae();pe();He();P();Nr();O("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"}});O("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});hF=oe("login",{implement(){return E(this,null,function*(){var a;let{data:{isLogin:e}}=yield be("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};qe("onLoginStateChange",({isLogin:s,token:u,uuid:c})=>{c==t&&i({isLogin:s,token:u})});let r=F("loginSync"),{data:{uuid:t}}=r;if(!t)throw ir({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new nr,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),Le.emit("onLoginComplete",o),o})}}),vF=oe("checkSession",{implement(){return E(this,null,function*(){let{data:{isLogin:e}}=yield be("checkLoginAsync");return{isLogin:e}})}}),nS=z();nS.registerCommand("API.login",hF);nS.registerCommand("API.checkSession",vF)});function aS(){let e=new Map,r;return{registerRewardHandler(n,i){e.set(n,i)},handleReward(n,...i){return E(this,null,function*(){return yield n.reduce((a,s)=>E(this,null,function*(){let u=yield a;if(u===!0)return!0;oS&&console.log(`handleReward ${s}`);let c=e.get(s),d=c?yield c(...i):u;return oS&&console.log(`handleReward ${s} ${d}`),d}),Promise.resolve(!1))})},registerRewardsFetcher(n){return E(this,null,function*(){r=(...i)=>E(this,null,function*(){try{return yield n(...i)}catch(o){return console.error("getRewardOptions error:",o),["ADS"]}})})},getRewardsTypes(...n){return E(this,null,function*(){return r?yield r(...n):["ADS"]})}}}var oS,sS=R(()=>{"use strict";ae();oS=S.testMode});var gF,uS,cS=R(()=>{"use strict";So();gF=()=>(e,r)=>e==="JOLI_COIN"&&r==="ADS"?-1:e==="ADS"&&r==="JOLI_COIN"?1:0,uS=e=>{e.registerRewardsFetcher(r=>E(void 0,null,function*(){var n,i,o,a;let t=["ADS"];try{let s=yield r.post("/api/games/unlock-options",{});return s.code!=="SUCCESS"?t:(wo.emit(bo,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}}),(((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(t)).sort(gF()))}catch(s){return console.error("getRewardOptions error:",s),t}}))}});var lS,dS=R(()=>{"use strict";lS=e=>r=>E(void 0,null,function*(){return e.adBreak(r),!0})});var fS,pS=R(()=>{"use strict";fS=(e,r)=>e.some(t=>t.type==="JOLI_COIN"&&t.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=r==null?void 0:r.balance)!=null?i:0)&&!!(r!=null&&r.enableAutoDeduct)}))});var mS,hS=R(()=>{"use strict";ae();P();So();pS();mS=(e,{onUnlockSuccess:r,onUnlockFailed:t})=>{let n=null,i=null,o=null,a=()=>{if(o){n=Promise.resolve(o);return}n=new Promise(s=>{i=s})};return a(),wo.on(bo,s=>{o=s,i&&(i(s),i=null)}),s=>E(void 0,null,function*(){var u,c,d;try{n||a();let l=yield n;if(!fS((l==null?void 0:l.options)||[],l==null?void 0:l.userJoliCoin))return t==null||t(),!1;let p=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${_n()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return p.code=="SUCCESS"?((c=s.adBreakDone)==null||c.call(s,{breakType:s.type,breakName:"name"in s&&(u=s.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in s&&((d=s.adViewed)==null||d.call(s)),r==null||r({quantity:p.data.quantity,balance:p.data.balance}),!0):(t==null||t(),!1)}catch(l){return console.error("JolicoinRewardHandler error:",l),t==null||t(),!1}})}});var ut,bo,wo,So=R(()=>{"use strict";sS();cS();P();dS();hS();ut=aS();uS(ut);bo="UNLOCK_OPTIONS_CHANGED",wo=new De});var xo,yF,Pr,_F,bF,wF,SF,vS=R(()=>{"use strict";P();He();Ru();ca();or();Dr();pe();So();xo=z(),yF=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Pr=new Tn(we,{get:(e,r)=>me(e,T({method:"GET",responseType:"json",appendHostCookie:!0},r)).then(t=>t.response.data),post:(e,r,t)=>me(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(n=>n.response.data)},yF);ut.registerRewardHandler("ADS",lS(Pr));ut.registerRewardHandler("JOLI_COIN",mS(Pr.httpClient,{onUnlockSuccess:e=>{let{quantity:r,balance:t}=e,n=t>=1e3?"999+":t;Cw(`{slot-checkmark} \u2212${r} {slot-coin} | Balance: ${n} {slot-coin}`,{customStyle:{mark:{marginRight:"8px"}}})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));_F=B("adInit",{implement:e=>{Pr.init(e)}}),bF=B("adConfig",{implement:e=>{Pr.adConfig(e)}}),wF=B("adBreak",{implement:e=>{e.type==="reward"?ut.getRewardsTypes(Pr.httpClient).then(r=>{ut.handleReward(r,e)}):Pr.adBreak(e)}}),SF=B("adUnit",{implement:e=>{Pr.adUnit(e)}});xo.registerCommand("AdsSDK.init",_F);xo.registerCommand("AdsSDK.adConfig",bF);xo.registerCommand("AdsSDK.adBreak",wF);xo.registerCommand("AdsSDK.adUnit",SF);O("AdsSDK.init",{version:"1.0.0"});O("AdsSDK.adConfig",{version:"1.0.0"});O("AdsSDK.adBreak",{version:"1.0.0"});O("AdsSDK.adUnit",{version:"1.0.0"})});var Uu,xF,EF,IF,gS=R(()=>{"use strict";P();pe();He();ae();Uu=z(),xF=B("openSchemaSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let r=e;e.match(/^https?:\/\//)||(r=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let t=F("openSchemaSync",{schema:r});if(t.errNo!==0)throw new bt(t.errMsg,t.errNo)}}),EF=B("openPageSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let{errNo:r,errMsg:t,data:n}=F("openPageSync",{url:e});if(r!==0||!n)throw new bt(t,r);return{webviewId:n.webviewId}}}),IF=B("closePageSync",{paramsSchema:b.tuple(b.number()),implement:e=>{let{errNo:r,errMsg:t}=F("closePageSync",{webviewId:e});if(r!==0)throw new bt(t,r)}});Uu.registerCommand("RouterSDK.openSchema",xF);Uu.registerCommand("RouterSDK.openPage",EF);Uu.registerCommand("RouterSDK.closePage",IF);O("router.openSchema",{version:"1.1.10"});O("router.openPage",{version:"1.1.10"});O("router.closePage",{version:"1.1.10"})});var TF={};var PV,LV,yS=R(()=>{"use strict";Gw();PV=M(Vw());Zw();eS();rS();LV=M(tS());iS();vS();gS()});var _S=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[_S])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[_S]=!0;E(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(jw(),Fw)),Promise.resolve().then(()=>(yS(),TF)),Promise.resolve().then(()=>(or(),Zc))]);e()});
|
|
213
|
+
`;return A("div",{className:`toast toast-${r} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},Nw=(e,r)=>{let t=document.createElement("div");document.body.appendChild(t);let n=()=>{document.body.removeChild(t)},i=TL(e,r);Tt(A(RL,{message:i,type:r==null?void 0:r.type,duration:r==null?void 0:r.duration,onClose:n}),t)}});function Dw(){return E(this,null,function*(){if(qu)return qu;let r=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:t}}=yield me(r);return qu=t,t})}function Lw(){return E(this,null,function*(){let e=new nr;if(S.mpType!=="game")return e.resolve(!1),e.promise;let r=yield Dw();if(r.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:t,title:n,buttons:i}=r.data,o=Ow({games:t.games,title:n,buttons:i,onClose:a=>{var s;switch(a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":(s=a.data)!=null&&s.game?AL(a.data.game):e.resolve(!0),o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var qu,AL,Fw=R(()=>{"use strict";ae();pe();P();Au();Dr();qu=null;Dw();AL=e=>{var a;let{data:r}=F("envSync"),t=new URL(r.schema),n=new URLSearchParams(t.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})}});var jw={};Hu(jw,{config:()=>LL});function qL(){Lr.on("isAdShowing",e=>{zi=e,yt(zi)&&F("updateContainerConfigSync",{displayCapsuleButton:!zi,webviewId:S.webviewId})})}function kL(){Le.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),we("onDocumentReady",{start_timestamp:Qi,timestamp:Date.now()})})}function OL(){qe("onI18nChanged",({language:e})=>{Le.emit("onI18nChanged",{i18n:e})})}function PL(e){S.mpType==="game"&&he.start(e)}function CL(){qe("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:r})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Le.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),we("joliboxServiceReady",{start_timestamp:Qi,timestamp:Date.now()}),PL(r)}),qe("onBeforeExit",({uuid:e})=>{var r;(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function NL(){let e=()=>{we("onBeforeExit",{timestamp:Date.now()}),Wi==null||Wi(),he.close(Date.now()-Qi)};Ge.onDoExit(()=>E(this,null,function*(){return zi?!0:yt(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Yi!=null&&Yi.canShowRecommended&&(yield Lw())?!0:(e(),!1)}))}function DL(){return E(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:r}}=yield me(e);r&&(Yi=r)})}function LL(){Qi=Date.now(),CL(),qL(),NL(),kL(),OL(),DL(),Wi=rl()}var Wi,Qi,zi,Yi,Uw=R(()=>{"use strict";pe();ae();P();or();tl();la();Fw();Dr();zi=!1,Yi=null;Ge.onReady(()=>{})});function Mw(e){let r=Qo.config[e];return r||(r={},Qo.config[e]=r),(t,n)=>{if(r[t]){Ne.warn(`[can i use] ${t} already registered`);return}r[t]=T({},n)}}var Bw=R(()=>{"use strict";P()});function ku(e){$w=e}function Xi(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(r=>Xi(r)):Object.keys(e).reduce((r,t)=>(r[t]=Xi(e[t]),r),{})}function rr(e){return typeof e=="number"}function Ou(e){let r=Pu(e);switch(r){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${r}`}}function Pu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var $w,X,Zi,eo,ro,to,at,no,io,oo,ao,so,uo,co,lo,fo,po,mo,ho,Cu=R(()=>{"use strict";$w=!1;X=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(r){if($w)if(typeof r=="string")this.errors.push(r);else{let t=`${this.path} should be ${r.expect}`;this._optional&&r.expect!=="undefined"?t+=" or undefined, ":t+=", ",t+=`but got ${Ou(r.actual)}`,this.errors.push(t)}return!1}fallback(r){return this.hasFallback=!0,this._fallback=r,this}get fallbackValue(){return Xi(this._fallback)}default(r){return this.hasDefault=!0,this._default=r,this}get defaultValue(){return typeof this._default=="function"?this._default:Xi(this._default)}optional(){return this._optional=!0,this}};Zi=class extends X{validate(r){return this._optional&&r===void 0?!0:rr(r)?rr(this._min)&&r<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):rr(this._max)&&r>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):rr(this._greater)&&r<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&r!==Math.floor(r)?this.fail(`the value of ${this.path} should be integer but got ${r}`):!0:this.fail({expect:"number",actual:r})}min(r){return this._min=r,this}max(r){return this._max=r,this}isInt(r){return this._isInt=r,this}greater(r){return this._greater=r,this}},eo=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="boolean"?this.fail({expect:"boolean",actual:r}):!0}},ro=class extends X{validate(r){if(this._optional&&r===void 0)return!0;if(typeof r!="string")return this.fail({expect:"string",actual:r});if(rr(this._maxLength)&&r.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(rr(this._minLength)&&r.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(r))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(r))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(r){return this._minLength=r,this}maxLength(r){return this._maxLength=r,this}pattern(r){return this._pattern=r,this}},to=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="symbol"?this.fail({expect:"symbol",actual:r}):!0}},at=class extends X{validate(r){return!0}},no=class extends X{validate(r){return r!==void 0?this.fail({expect:"undefined",actual:r}):!0}},io=class extends X{validate(r){return this._optional&&r===void 0?!0:r!==null?this.fail({expect:"null",actual:r}):!0}},oo=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="function"?this.fail({expect:"function",actual:r}):!0}},ao=class extends X{constructor(...r){super(),this._items=r}validate(r){if(this._optional&&r===void 0)return!0;if(!this._items.includes(r)){let t=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${t}, but got ${Ou(r)}`)}return!0}},so=class extends X{constructor(t){super();this._item=t}validate(t){if(this._optional&&t===void 0)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(rr(this._minItems)&&t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(rr(this._maxItems)&&t.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(rr(this._length)&&t.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(t.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){t[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?t[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in t)o.has(t[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(t[a])}] and ${this.path}[${a}] are identical)`):o.set(t[a],a)}return i}minItems(t){return this._minItems=t,this}maxItems(t){return this._maxItems=t,this}uniqueItems(){return this._uniqueItems=!0,this}length(t){return this._length=t,this}},uo=class extends X{constructor(t){super();this._value=t}validate(t){if(this._optional&&t===void 0)return!0;if(Pu(t)!=="object")return this.fail({expect:"object",actual:t});let i=t,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let u=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}"]`,!(u===void 0&&o._optional)){if(u===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(u)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},co=class extends X{constructor(t={}){super();this._object=t}validate(t){if(this._optional&&t===void 0)return!0;if(Pu(t)!=="object")return this.fail({expect:"object",actual:t});let n=t,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}},lo=class extends X{constructor(t){super();this.value=t}validate(t){return t===void 0&&this._optional?!0:t!==this.value?this.fail({expect:Ou(this.value),actual:t}):!0}},fo=class extends X{constructor(...r){super(),this._items=r}validate(r){if(r===void 0&&this._optional)return!0;let t=[],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(r))t.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=t.join(`
|
|
214
|
+
or `);this.errors.push(o)}return n}},po=class extends X{constructor(...r){super(),this._items=r;let t=0,n=r.length-1;for(;n>=0;n--){let i=r[n];if(i._optional||i.hasDefault)t+=1;else break}this._minItems=r.length-t}validate(r){if(r===void 0&&this._optional)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let t=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,r[i]===void 0&&n.hasDefault){r[i]=n.defaultValue;return}n.validate(r[i])||(n.hasFallback?r[i]=n._fallback:t=!1)}),t}},mo=class extends X{validate(r){return r===void 0&&this._optional||r instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:r})}},ho=class extends X{constructor(r){super(),this._ctor=r}validate(r){return r===void 0&&this._optional||r instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:r})}}});function Nu(e,r,t="param"){if(e.errors=[],e.path=t,ku(!0),!e.validate(r)){let n=e.errors.join(`
|
|
215
|
+
`);throw e.errors.length=0,ku(!1),new TypeError(n)}}var b,Du=R(()=>{"use strict";Cu();Cu();b={object(e){return new co(e)},array(e){return new so(e)},tuple(...e){return new po(...e)},literal(e){return new lo(e)},or(...e){return new fo(...e)},symbol(){return new to},record(e){return new uo(e)},function(){return new oo},boolean(){return new eo},string(){return new ro},number(){return new Zi},undefined(){return new no},null(){return new io},unknown(){return new at},any(){return new at},as(){return new at},arraybuffer(){return new mo},enum(...e){return new ao(...e)},typedarray(e){return new ho(e)}}});var vo,Hw,Kw=R(()=>{"use strict";P();Fe();Du();Nr();vo=1,Hw=e=>{function r(n,i){return(...o)=>{var l,p,m,h;let a=Date.now(),s={method:n,trace_id:vo};vo+=1;let u="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Nu(i.paramsSchema,o,"params")}catch(_){throw oa(`${n}:fail ${_.message}`)}let y=i.implement(...o),v=y,g=`${n}:ok`;if(y&&"code"in y){let{code:_,data:x,message:q}=y;u=_,v=x,g=q}return{code:u,message:g,data:v}}catch(y){let v=y;d=(p=(l=v.code)!=null?l:v.errNo)!=null?p:2e3,u="FAILURE";let g=(h=(m=v.message)!=null?m:v.errMsg)!=null?h:`${y}`;return c=`${n}:${u} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,le(new wt(c,d)),{code:u,message:c}}finally{let y=Date.now()-a;e("apiInvoked",C(T({},s),{duration:y,status:u}))}}}function t(n,i){return(...o)=>E(this,null,function*(){var p,m,h,y;let a=hc(o)?o:[o],s=Date.now(),u={method:n,trace_id:vo};vo+=1;let c=`${n}:ok`,d="SUCCESS",l={code:d,message:c};try{if(i.paramsSchema)try{Nu(i.paramsSchema,a,"params")}catch(_){throw oa(_.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:_,data:x,message:q}=g;d=_,c=q,g=x}return Object.assign(l,{code:d,message:c,data:g}),l}catch(v){let g=v,_=(m=(p=g.code)!=null?p:g.errNo)!=null?m:2e3;d="FAILURE";let x=(y=(h=g.message)!=null?h:g.errMsg)!=null?y:`${v}`,q=`${n}:${d} ${x.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(l,{code:d,message:q}),le(new wt(q,_)),l}finally{let v=Date.now()-s;e("apiInvoked",C(T({},u),{duration:v,status:d}))}})}return{createAPI:t,createSyncAPI:r}}});var oe,B,O,He=R(()=>{"use strict";Bw();or();Kw();Du();({createAPI:oe,createSyncAPI:B}=Hw(we)),O=Mw("native")});var Gw,jL,UL,ML,BL,Vw=R(()=>{"use strict";P();He();pe();Gw=z(),jL="env",UL="getSystemInfoSync",ML=B(UL,{implement:()=>{var t;let e=F("envSync"),{data:r}=e;return{system:r.deviceInfo.system,platform:r.deviceInfo.platform.toLowerCase(),version:r.sdkInfo.jssdkVersion,pixelRatio:r.deviceInfo.pixelRatio,language:r.deviceInfo.lang,brand:r.deviceInfo.brand,appName:(t=r.hostInfo)==null?void 0:t.appName,SDKVersion:r.sdkInfo.jssdkVersion}}}),BL=B(jL,{implement:()=>{var r;let e=F("envSync");return(r=e==null?void 0:e.data)!=null?r:void 0}});Gw.registerCommand("API.getSystemInfoSync",ML);Gw.registerCommand("API.env",BL);O("env",{version:"1.0.0"});O("getSystemInfoSync",{version:"1.0.0"})});var Jw=f(Lu=>{"use strict";P();He();Fe();pe();or();ae();var $L="exitGame",HL="onReady",KL="onJoliboxShow",GL="onJoliboxHide",go=z(),yo=yn(le),VL=oe($L,{paramsSchema:b.tuple(b.function(),b.boolean().optional().default(!1)),implement:(e,r=!1)=>E(Lu,null,function*(){yo(e).call(Lu),yt(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&lc("onRetentionResult",{shouldStay:r},S.from,!0),yield be("exitAppAsync")})}),JL=B(KL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);qe("onJoliboxEnterForeground",()=>{r.call(this),St.emit("visible",!0)})}}),WL=B(GL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);qe("onJoliboxEnterBackground",()=>{r.call(this),St.emit("visible",!1)})}}),zL=B(HL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);Le.on("LifecycleEvent.onReady",t=>{r(t)})}});go.registerCommand("LifecycleSDK.exit",VL);go.registerCommand("LifecycleSDK.onReady",zL);go.registerCommand("LifecycleSDK.onJoliboxShow",JL);go.registerCommand("LifecycleSDK.onJoliboxHide",WL);O("lifeCycle.exit",{version:"1.0.0"});O("lifeCycle.onReady",{version:"1.0.0"});O("lifeCycle.onJoliboxShow",{version:"1.0.0"});O("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Ww(e){let r={};if(!yr(e))return r;for(let[t,n]of Object.entries(e)){let i=t.toLocaleLowerCase();n?typeof n=="object"?r[i]=Object.prototype.toString.call(n):r[i]=String(n):r[i]=""}return r}function zw(e="GET"){if(e==="")return"POST";let r=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(r)?r:"GET"}function Yw(e,r=!1){if(e)return r||e>0&&e<=6e4?Math.ceil(e):6e4}function Qw(e,r,t){if(["POST","PUT","PATCH"].includes(r)||!yr(t))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,u]of Object.entries(t))u!=null&&o.append(s,String(u));let a=o.toString();return a?`${n}?${a}`:n}var Xw=R(()=>{"use strict";P()});var YL,QL,Fu,ju,Zw,XL,ZL,eF,eS=R(()=>{"use strict";Nr();ua();He();Xw();P();Fe();ae();YL=15,QL=wn("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Fu=0,ju=[],Zw=yn(le),XL=(e,r)=>{let t=e.filter(r),n=e.filter(i=>!r(i));return e.length=0,e.push(...n),t},ZL=e=>{let r=new nr,t=()=>{};return B("request",{paramsSchema:b.tuple(b.object({url:b.string(),method:b.string(),headers:b.object(),data:b.object().optional(),query:b.object().optional(),dataType:b.string().default("json"),responseType:b.string().default("text"),enableCache:b.boolean().default(!1),appendHostCookie:b.boolean().default(!0),timeout:b.number().default(3e4),success:b.function(),fail:b.function()})),implement(i){let o=()=>E(this,null,function*(){var s,u;let a=Zw(i.fail);try{if(Fu+=1,r.state!=="pending")return;let{data:c,dataType:d,responseType:l,enableCache:p,appendHostCookie:m}=i,h=Ww(i.headers),y=zw(i.method),v=Yw(i.timeout),g=Qw(i.url,y,c),_=Zw(i.success),x=Object.assign({},i,{method:y,header:h,data:y==="GET"||y==="HEAD"?void 0:c,enableCache:p,query:(s=i.query)!=null?s:{},dataType:d,responseType:l,appendHostCookie:m});v&&(x.timeout=v);let q=QL(g,x);{let{response:V}=yield q,{code:I,data:w,message:K}=V;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw ir({code:w.status||-1,msg:`request:fail status ${w.status}`});r.resolve({code:I!=null?I:"SUCCESS",data:w,message:K!=null?K:"request:ok"}),_({code:"SUCCESS",message:"request:ok",data:w})}}catch(c){r.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Fu-=1,(u=ju.shift())==null||u()}});return Fu>=YL?(t=()=>{XL(ju,a=>a===o)},ju.push(o)):o(),r.promise}})(e),{abort(){r.reject(ir({code:-1,msg:"request:fail abort"})),t()}}},eF=z();eF.registerCommand("HttpSDK.request",ZL);O("request",{version:"1.0.0"})});function aF(e){let r=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return oF.includes(r)?r:""}function sF(e,r){try{switch(r){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(t){return""}}function uF(e,r){try{switch(r){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(t){return""}}var _o,rF,tF,nF,iF,A5,q5,oF,rS=R(()=>{"use strict";He();pe();P();Dr();ae();_o=z(),rF=oe("getLocalStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let{response:r}=yield me(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:t,message:n,data:i}}=yield r;if(t==="SUCCESS")return{code:t,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield be("getLocalStorageAsync",{key:e}),s=sF(o,a);return{code:t,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});_o.registerCommand("StorageSDK.getItem",rF);O("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});tF=oe("setStorage",{paramsSchema:b.tuple(b.string(),b.or(b.string(),b.boolean(),b.number())),implement(e,r){return E(this,null,function*(){let t=S.mpId,n=typeof r=="string"?r:String(r),{response:i}=yield me(`/api/games/user-storage/${t}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=aF(r),u=uF(r,s);return yield be("setLocalStorageAsync",{key:e,data:u,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});_o.registerCommand("StorageSDK.setItem",tF);O("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});nF=oe("removeStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let r=S.mpId,{response:t}=yield me(`/api/games/user-storage/${r}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=t;return yield be("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});_o.registerCommand("StorageSDK.removeItem",nF);O("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});iF=oe("clearStorage",{implement(){return E(this,null,function*(){let e=S.mpId,{response:r}=yield me(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});be("clearLocalStorageAsync");let{data:{code:t,message:n}}=r;return t==="SUCCESS"?{code:t,message:n}:{code:t,message:`${n}.fallback to native`}})}});_o.registerCommand("StorageSDK.clear",iF);O("storage.clear",{version:"1.0.0"});A5=oe("getStorageInfo",{implement(){return E(this,null,function*(){let{data:e}=yield be("getStorageInfoAsync");return e})}});O("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});q5=B("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),oF=["string","number","boolean","object",""]});var cF,lF,dF,Uu,tS=R(()=>{"use strict";P();pe();He();cF=B("showKeyboard",{paramsSchema:b.tuple(b.object({defaultValue:b.string().optional().default(""),multiple:b.boolean().optional().default(!1),maxLength:b.unknown().optional().default(1e5)})),implement(e){var n;let r=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:t}=e;t&&r&&(t=t.slice(0,r)),F("showKeyboardSync",C(T({},e),{defaultValue:t,maxLength:r}))}});O("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"}});lF=B("updateKeyboard",{paramsSchema:b.tuple(b.object({value:b.string()})),implement(e){F("updateKeyboardSync",e)}});O("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});dF=B("hideKeyboard",{implement(){F("hideKeyboardSync")}});O("keyboard.hideKeyboard",{version:"1.0.0"});Uu=z();Uu.registerCommand("KeyboardSDK.showKeyboard",cF);Uu.registerCommand("KeyboardSDK.updateKeyboard",lF);Uu.registerCommand("KeyboardSDK.hideKeyboard",dF)});var nS=f(Or=>{"use strict";P();He();or();var st=z(),fF=oe("levelFinished",{paramsSchema:b.tuple(b.string(),b.object({result:b.boolean(),duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{result:t,duration:n}=r,i=[];i.push(he.tracker("LevelFinished",{levelId:e,result:t,duration:n})),i.push(he.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(i)})}),pF=oe("taskFinished",{paramsSchema:b.tuple(b.string(),b.object({duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{duration:t}=r;return yield he.reportToNative({event:"TaskFinished",params:{duration:t,taskId:e}})})}),mF=oe("levelUpgrade",{paramsSchema:b.tuple(b.string(),b.string()),implement:(e,r)=>E(Or,null,function*(){let t=[];t.push(he.reportToNative({event:"LevelUpgrade",params:{name:r,levelId:e}})),yield Promise.all(t)})}),hF=oe("onHistoryUserLevel",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield he.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),vF=oe("onHistoryUserScore",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield he.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),gF=oe("taskEvent",{paramsSchema:b.tuple(b.string(),b.object({tools:b.array(b.object({id:b.string(),name:b.string(),count:b.number(),description:b.string().optional(),price:b.object({amount:b.number(),unit:b.string()}).optional()})).optional(),awards:b.array(b.object({id:b.string(),name:b.string()})).optional()})),implement:(e,r)=>E(Or,null,function*(){var n,i;let t=[];t.push(he.reportToNative({event:"TaskEvent",params:T({taskId:e},r)})),(i=(n=r.tools)==null?void 0:n.length)!=null&&i&&(t.push(he.reporter({event:"USE_GAME_ITEM"})),t.push(he.reportToNative({event:"UseGameItem",params:T({taskId:e},r)}))),yield Promise.all(t)})});st.registerCommand("TaskTrackerSDK.levelFinished",fF);st.registerCommand("TaskTrackerSDK.taskFinished",pF);st.registerCommand("TaskTrackerSDK.levelUpgrade",mF);st.registerCommand("TaskTrackerSDK.historyUserLevel",hF);st.registerCommand("TaskTrackerSDK.historyUserScore",vF);st.registerCommand("TaskTrackerSDK.taskEvent",gF);O("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});O("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});O("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});O("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 yF,_F,iS,oS=R(()=>{"use strict";ae();pe();He();P();Nr();O("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"}});O("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});yF=oe("login",{implement(){return E(this,null,function*(){var a;let{data:{isLogin:e}}=yield be("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};qe("onLoginStateChange",({isLogin:s,token:u,uuid:c})=>{c==t&&i({isLogin:s,token:u})});let r=F("loginSync"),{data:{uuid:t}}=r;if(!t)throw ir({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new nr,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),Le.emit("onLoginComplete",o),o})}}),_F=oe("checkSession",{implement(){return E(this,null,function*(){let{data:{isLogin:e}}=yield be("checkLoginAsync");return{isLogin:e}})}}),iS=z();iS.registerCommand("API.login",yF);iS.registerCommand("API.checkSession",_F)});function sS(){let e=new Map,r;return{registerRewardHandler(n,i){e.set(n,i)},handleReward(n,...i){return E(this,null,function*(){return yield n.reduce((a,s)=>E(this,null,function*(){let u=yield a;if(u===!0)return!0;aS&&console.log(`handleReward ${s}`);let c=e.get(s),d=c?yield c(...i):u;return aS&&console.log(`handleReward ${s} ${d}`),d}),Promise.resolve(!1))})},registerRewardsFetcher(n){return E(this,null,function*(){r=(...i)=>E(this,null,function*(){try{return yield n(...i)}catch(o){return console.error("getRewardOptions error:",o),["ADS"]}})})},getRewardsTypes(...n){return E(this,null,function*(){return r?yield r(...n):["ADS"]})}}}var aS,uS=R(()=>{"use strict";ae();aS=S.testMode});var bF,cS,lS=R(()=>{"use strict";So();bF=()=>(e,r)=>e==="JOLI_COIN"&&r==="ADS"?-1:e==="ADS"&&r==="JOLI_COIN"?1:0,cS=e=>{e.registerRewardsFetcher(r=>E(void 0,null,function*(){var n,i,o,a;let t=["ADS"];try{let s=yield r.post("/api/games/unlock-options",{});return s.code!=="SUCCESS"?t:(wo.emit(bo,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}}),(((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(t)).sort(bF()))}catch(s){return console.error("getRewardOptions error:",s),t}}))}});var dS,fS=R(()=>{"use strict";dS=e=>r=>E(void 0,null,function*(){return e.adBreak(r),!0})});var pS,mS=R(()=>{"use strict";pS=(e,r)=>e.some(t=>t.type==="JOLI_COIN"&&t.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=r==null?void 0:r.balance)!=null?i:0)&&!!(r!=null&&r.enableAutoDeduct)}))});var hS,vS=R(()=>{"use strict";ae();P();So();mS();hS=(e,{onUnlockSuccess:r,onUnlockFailed:t})=>{let n=null,i=null,o=null,a=()=>{if(o){n=Promise.resolve(o);return}n=new Promise(s=>{i=s})};return a(),wo.on(bo,s=>{o=s,i&&(i(s),i=null)}),s=>E(void 0,null,function*(){var u,c,d;try{n||a();let l=yield n;if(!pS((l==null?void 0:l.options)||[],l==null?void 0:l.userJoliCoin))return t==null||t(),!1;let p=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${_n()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return p.code=="SUCCESS"?((c=s.adBreakDone)==null||c.call(s,{breakType:s.type,breakName:"name"in s&&(u=s.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in s&&((d=s.adViewed)==null||d.call(s)),r==null||r({quantity:p.data.quantity,balance:p.data.balance}),!0):(t==null||t(),!1)}catch(l){return console.error("JolicoinRewardHandler error:",l),t==null||t(),!1}})}});var ut,bo,wo,So=R(()=>{"use strict";uS();lS();P();fS();vS();ut=sS();cS(ut);bo="UNLOCK_OPTIONS_CHANGED",wo=new De});var xo,wF,Pr,SF,xF,EF,IF,gS=R(()=>{"use strict";P();He();Au();la();or();Dr();pe();So();xo=z(),wF=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Pr=new Tn(we,{get:(e,r)=>me(e,T({method:"GET",responseType:"json",appendHostCookie:!0},r)).then(t=>t.response.data),post:(e,r,t)=>me(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(n=>n.response.data)},wF);ut.registerRewardHandler("ADS",dS(Pr));ut.registerRewardHandler("JOLI_COIN",hS(Pr.httpClient,{onUnlockSuccess:e=>{let{quantity:r,balance:t}=e,n=t>=1e3?"999+":t;Nw(`{slot-checkmark} \u2212${r} {slot-coin} | Balance: ${n} {slot-coin}`,{customStyle:{mark:{marginRight:"8px"}}})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));SF=B("adInit",{implement:e=>{Pr.init(e)}}),xF=B("adConfig",{implement:e=>{Pr.adConfig(e)}}),EF=B("adBreak",{implement:e=>{e.type==="reward"?ut.getRewardsTypes(Pr.httpClient).then(r=>{ut.handleReward(r,e)}):Pr.adBreak(e)}}),IF=B("adUnit",{implement:e=>{Pr.adUnit(e)}});xo.registerCommand("AdsSDK.init",SF);xo.registerCommand("AdsSDK.adConfig",xF);xo.registerCommand("AdsSDK.adBreak",EF);xo.registerCommand("AdsSDK.adUnit",IF);O("AdsSDK.init",{version:"1.0.0"});O("AdsSDK.adConfig",{version:"1.0.0"});O("AdsSDK.adBreak",{version:"1.0.0"});O("AdsSDK.adUnit",{version:"1.0.0"})});var Mu,TF,RF,AF,yS=R(()=>{"use strict";P();pe();He();ae();Mu=z(),TF=B("openSchemaSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let r=e;e.match(/^https?:\/\//)||(r=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let t=F("openSchemaSync",{schema:r});if(t.errNo!==0)throw new bt(t.errMsg,t.errNo)}}),RF=B("openPageSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let{errNo:r,errMsg:t,data:n}=F("openPageSync",{url:e});if(r!==0||!n)throw new bt(t,r);return{webviewId:n.webviewId}}}),AF=B("closePageSync",{paramsSchema:b.tuple(b.number()),implement:e=>{let{errNo:r,errMsg:t}=F("closePageSync",{webviewId:e});if(r!==0)throw new bt(t,r)}});Mu.registerCommand("RouterSDK.openSchema",TF);Mu.registerCommand("RouterSDK.openPage",RF);Mu.registerCommand("RouterSDK.closePage",AF);O("router.openSchema",{version:"1.1.10"});O("router.openPage",{version:"1.1.10"});O("router.closePage",{version:"1.1.10"})});var qF={};var DV,UV,_S=R(()=>{"use strict";Vw();DV=M(Jw());eS();rS();tS();UV=M(nS());oS();gS();yS()});var bS=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[bS])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[bS]=!0;E(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Uw(),jw)),Promise.resolve().then(()=>(_S(),qF)),Promise.resolve().then(()=>(or(),el))]);e()});
|